ENERGY SCAN
Not supported by the current SDK (2018-05, TWELITE NET 1.2.0 or later).
This is enabled by the module definition ToCoNet_REG_MOD_ENERGYSCAN
. This module measures the specified channel level (including noise and signal).
A channel with a low channel level implies less communication and less noise, but the channel level at that moment does not guarantee channel availability. It is difficult to determine without multiple evaluations over a long period of time.
Only available on SimpleNet.
This function may cause a hang-up depending on the timing of its use. It is recommended to use this function when wireless packet communication is not used.
Definition
functions
ToCoNet_EnergyScan_bStart()
The energy scan is started. After completion the E_EVENT_TOCONET_ENERGY_SCAN_COMPLETE
event is raised.
Argumtens
Type | Name | Remarks |
---|---|---|
|
| Channel mask to be measured ( |
|
| Measurement time. Approximately |
Returns
Type | Remark |
---|---|
| If |
Event
the value of pu8Result
byte offset | Remark |
---|---|
[0] | Number of channels measured [N]. |
[1] | Measured channel level for the youngest numbered channel |
[2] | Next youngest channel number |
... [N] | Data continues up to N |
The level takes the value 0..255, with 0 being the weakest and 255 the strongest. The higher the value, the noisier the channel.
Sample code
最終更新