Difference between revisions of "Component: Zigbee (BL0152) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 52: | Line 52: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 57: | Line 59: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===NodeConfigureSleep=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 80: | Line 83: | ||
| + | ===ReadNameFromBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 103: | Line 107: | ||
| + | ===NodeWake=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 116: | Line 121: | ||
| + | ===ReadATResponse=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 134: | Line 140: | ||
| + | ===ScanBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 157: | Line 164: | ||
| + | ===SendChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 175: | Line 183: | ||
| + | ===InitNetwork=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 188: | Line 197: | ||
| + | ===ConnectToCoordinator=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 201: | Line 211: | ||
| + | ===ConnectToName=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 219: | Line 230: | ||
| + | ===EnterCommandMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 232: | Line 244: | ||
| + | ===RestartNetwork=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 245: | Line 258: | ||
| + | ===StoreParams=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 258: | Line 272: | ||
| + | ===ConnectToAll=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 271: | Line 286: | ||
| + | ===ConnectFromLibrary=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 294: | Line 310: | ||
| + | ===ConnectToAddress=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 312: | Line 329: | ||
| + | ===GetSignalLevel=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 325: | Line 343: | ||
| + | ===ExitCommandMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 338: | Line 357: | ||
| + | ===ReadAddressFromBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 361: | Line 381: | ||
| + | ===SendATCommand=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 379: | Line 400: | ||
| + | ===ScanNetwork=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 397: | Line 419: | ||
| + | ===GetATResponse=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 415: | Line 438: | ||
| + | ===ReceiveChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:49, 3 February 2023
| Author | Matrix TSL |
| Version | 1.0 |
| Category | E-blocks 2 |
Contents
- 1 Zigbee component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 NodeConfigureSleep
- 5.2 ReadNameFromBuffer
- 5.3 NodeWake
- 5.4 ReadATResponse
- 5.5 ScanBuffer
- 5.6 SendChar
- 5.7 InitNetwork
- 5.8 ConnectToCoordinator
- 5.9 ConnectToName
- 5.10 EnterCommandMode
- 5.11 RestartNetwork
- 5.12 StoreParams
- 5.13 ConnectToAll
- 5.14 ConnectFromLibrary
- 5.15 ConnectToAddress
- 5.16 GetSignalLevel
- 5.17 ExitCommandMode
- 5.18 ReadAddressFromBuffer
- 5.19 SendATCommand
- 5.20 ScanNetwork
- 5.21 GetATResponse
- 5.22 ReceiveChar
- 6 Property reference
Zigbee component
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_Zigbee_BL0152_2d.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_Zigbee_BL0152_2d.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
NodeConfigureSleep
ReadNameFromBuffer
| ReadNameFromBuffer | |
| Returns a byte from the 8-Byte name | |
| Device | |
| The Device name to collect. Range: 0-7 | |
| Idx | |
| The index position of the name. Range: 0-7 | |
| Return | |
NodeWake
| NodeWake | |
| Wakes up the local Zigbee module from sleep mode. | |
| Return | |
ReadATResponse
| ReadATResponse | |
| Reads a single byte from the received AT command response. | |
| idx | |
| Specified the byte index in the buffer. Range 0-15 | |
| Return | |
ScanBuffer
| ScanBuffer | |
| Returns a binary list of matched identifier names | |
| Compare_Str | |
| Length | |
| Return | |
SendChar
| SendChar | |
| Transmits a byte value to the Zigbee module. | |
| Byte | |
| Data byte to transmit. Range 0-255 | |
| Return | |
InitNetwork
| InitNetwork | |
| Initialises the Zigbee module and attempts to setup or join the network | |
| Return | |
ConnectToCoordinator
| ConnectToCoordinator | |
| Attempts to connect the data channel to the network coordinator node. | |
| Return | |
ConnectToName
| ConnectToName | |
| Attempts to connect the data channel to a named device on the network. | |
| Name | |
| Return | |
EnterCommandMode
| EnterCommandMode | |
| Moves from data mode into command mode by sending the special characters | |
| Return | |
RestartNetwork
| RestartNetwork | |
| Attempts to restart the network | |
| Return | |
StoreParams
| StoreParams | |
| Stores the current register set into the Zigbee module's non volatile memory | |
| Return | |
ConnectToAll
| ConnectToAll | |
| Attempts to connect the data channel to all devices on the network. | |
| Return | |
ConnectFromLibrary
| ConnectFromLibrary | |
| Attempts to connect the data channel to a known device on the network. | |
| Mode | |
| Device | |
| Return | |
ConnectToAddress
| ConnectToAddress | |
| Attempts to connect the data channel to a specific device address on the network. | |
| Address | |
| Return | |
GetSignalLevel
| GetSignalLevel | |
| Returns the signal strength of the last signal received | |
| Return | |
ExitCommandMode
| ExitCommandMode | |
| Returns from command mode to allow data to be sent and received | |
| Return | |
ReadAddressFromBuffer
| ReadAddressFromBuffer | |
| Reads a byte from a 16-bit Zigbee device address | |
| Device | |
| Idx | |
| Return | |
SendATCommand
| SendATCommand | |
| Transmits a string of values to the Zigbee module. | |
| Command | |
| Transmits a command to the Zigbee module followed by a carriage return | |
| Return | |
ScanNetwork
GetATResponse
| GetATResponse | |
| Waits for a response from the Zigbee module. If the Logging parameter is set then the response is stored in memory allowing the software to read the reply. | |
| Logging | |
| Return | |
ReceiveChar
| ReceiveChar | |
| Attempt to receive a byte from the Zigbee module. | |
| nTimeout | |
| Return | |