Difference between revisions of "Component: Zigbee (EB051, XBEE) (XBEE) (Wireless)"
From Flowcode Help
Jump to navigationJump to search| Line 77: | Line 77: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 83: | Line 85: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===NodeConfigureSleep=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 106: | Line 109: | ||
| + | ===ReadNameFromBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 129: | Line 133: | ||
| + | ===NodeWake=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 142: | Line 147: | ||
| + | ===ReadATResponse=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 160: | Line 166: | ||
| + | ===ScanBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 183: | Line 190: | ||
| + | ===SendChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 201: | Line 209: | ||
| + | ===InitNetwork=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 214: | Line 223: | ||
| + | ===ConnectToCoordinator=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 227: | Line 237: | ||
| + | ===MIAC_Module_GetData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 245: | Line 256: | ||
| + | ===ConnectToName=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 263: | Line 275: | ||
| + | ===StoreParams=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 276: | Line 289: | ||
| + | ===EnterCommandMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 289: | Line 303: | ||
| + | ===RestartNetwork=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 302: | Line 317: | ||
| + | ===MIAC_Module_Message=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 325: | Line 341: | ||
| + | ===ConnectToAll=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 338: | Line 355: | ||
| + | ===ConnectFromLibrary=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 361: | Line 379: | ||
| + | ===ConnectToAddress=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 379: | Line 398: | ||
| + | ===GetSignalLevel=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 392: | Line 412: | ||
| + | ===ExitCommandMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 405: | Line 426: | ||
| + | ===MIAC_Module_PushData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 423: | Line 445: | ||
| + | ===ReadAddressFromBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 446: | Line 469: | ||
| + | ===SendATCommand=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 464: | Line 488: | ||
| + | ===ScanNetwork=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 482: | Line 507: | ||
| + | ===GetATResponse=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 500: | Line 526: | ||
| + | ===ReceiveChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:53, 3 February 2023
| Author | Matrix Ltd. |
| Version | 1.5 |
| Category | Wireless |
Contents
- 1 Zigbee (EB051, XBEE) 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 MIAC_Module_GetData
- 5.10 ConnectToName
- 5.11 StoreParams
- 5.12 EnterCommandMode
- 5.13 RestartNetwork
- 5.14 MIAC_Module_Message
- 5.15 ConnectToAll
- 5.16 ConnectFromLibrary
- 5.17 ConnectToAddress
- 5.18 GetSignalLevel
- 5.19 ExitCommandMode
- 5.20 MIAC_Module_PushData
- 5.21 ReadAddressFromBuffer
- 5.22 SendATCommand
- 5.23 ScanNetwork
- 5.24 GetATResponse
- 5.25 ReceiveChar
- 6 Property reference
Zigbee (EB051, XBEE) component
Zigbee component designed to work with the XBEE range of modules from Digi. Provides a very simple interface to allow Zigbee mesh networks and communications. Also available in the form of the EB051 Zigbee E-block. Can also be used with Zigbee MIAC Addon module
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Zigbee.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Zigbee.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 | |
MIAC_Module_GetData
| MIAC_Module_GetData | |
| Index | |
| Return | |
ConnectToName
| ConnectToName | |
| Attempts to connect the data channel to a named device on the network. | |
| Name | |
| Return | |
StoreParams
| StoreParams | |
| Stores the current register set into the Zigbee module's non volatile memory | |
| Return | |
EnterCommandMode
| EnterCommandMode | |
| Moves from data mode into command mode by sending the special characters | |
| Return | |
RestartNetwork
| RestartNetwork | |
| Attempts to restart the network | |
| Return | |
MIAC_Module_Message
| MIAC_Module_Message | |
| CAN_ID | |
| CMD_ID | |
| 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 | |
MIAC_Module_PushData
| MIAC_Module_PushData | |
| Data | |
| 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 | |