ToCoNet_Nwk_bTx()

Explanation

Requests the transmission of radio packets on the relay net.

About the address

You can choose between two delivery addresses.

If TOCONET_NWK_ADDR_NEIGHBOUR_ABOVE is specified, it is directly transmitted to the neighboring parent or repeater, and the LQI between the child and the parent or repeater can be aggregated to determine which parent or repeater is closer to the child.

Note: The accuracy of the LQI and distance is not high, and it is only possible to distinguish between very close (within 1m) and other positions.

Dst address
Remark

TOCONET_NWK_ADDR_NEIGHBOUR_ABOVE

Direct transmission to a reachable parent or repeater (or all of them if there are more than one).

TOCONET_NWK_ADDR_PARENT

The packet is delivered to the parent device. (Even if a repeater receives a packet, it cannot know the reception of the packet by ToCoNet_vRxEvent())

Arguments

Type
Name
Remark

pContextNwk

A structure that manages the internal information of the relay network.

sTx

A structure containing the data to be sent.

Returns

Type
Remark

bool_t

TRUE: The request has been accepted.FALSE: not accepted.

Sample code

最終更新