Difference between revisions of "Component: Zigbee (EB051, XBEE) (XBEE) (Wireless)"
From Flowcode Help
Jump to navigationJump to search| Line 15: | Line 15: | ||
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 | 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 | + | ==Component Source Code== |
| − | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Zigbee.fcfx FC_Comp_Source_Zigbee.fcfx] | |
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 34: | Line 36: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 530: | Line 534: | ||
|- | |- | ||
| colspan="2" | Length of time to buffer packets for sleeping or powered down nodes. This value must be consistent throughout the Zigbee network. Default - Assigns the maximum buffer time of 28 seconds. Preset - Allows for a custom sleep time of 0.32 - 28 seconds. | | colspan="2" | Length of time to buffer packets for sleeping or powered down nodes. This value must be consistent throughout the Zigbee network. Default - Assigns the maximum buffer time of 28 seconds. Preset - Allows for a custom sleep time of 0.32 - 28 seconds. | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Channel | ||
| + | |- | ||
| + | | colspan="2" | UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | TX | ||
| + | |- | ||
| + | | colspan="2" | Pin to be used for Transmit data | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | RX | ||
| + | |- | ||
| + | | colspan="2" | Pin to be used for Receive data | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Baud Options | ||
| + | |- | ||
| + | | colspan="2" | Baud rate option selector | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] | ||
| + | | width="90%" | Baud Rate | ||
| + | |- | ||
| + | | colspan="2" | | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | Use Flow Control | ||
| + | |- | ||
| + | | colspan="2" | Flow Control (Handshake) enable or disable. On: Two I/O pins are used to control the flow of data in and out of the device. Off: Flow control is disabled. | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | RTS | ||
| + | |- | ||
| + | | colspan="2" | Pin to be used for Request To Send handshake function Output from target micro to inform remote device we are ready to receive data. Low = Ready to receive data High = Not ready to receive data | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | CTS | ||
| + | |- | ||
| + | | colspan="2" | Pin to be used for Clear To Send handshake function. Input to target micro to inform when the remote device is ready to transmit data. Low = Ready to transmit data High = Not ready to transmit data | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| + | | width="90%" | Sleep Pin | ||
| + | |- | ||
| + | | colspan="2" | Zigbee Sleep Control Pin | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Scan Channels | ||
| + | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | ||
| Line 621: | Line 678: | ||
| colspan="2" | The total amount of time that it will take to perform a complete RF channel scan based on the selected scan channels and duration. | | colspan="2" | The total amount of time that it will take to perform a complete RF channel scan based on the selected scan channels and duration. | ||
|- | |- | ||
| − | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
| − | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
|- | |- | ||
Revision as of 17:52, 9 November 2022
| Author | Matrix Ltd. |
| Version | 1.5 |
| Category | Wireless |
Contents
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 for the component source code: FC_Comp_Source_Zigbee.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| 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 | |
| Wakes up the local Zigbee module from sleep mode. | |
| Return | |
| ReadATResponse | |
| Reads a single byte from the received AT command response. | |
| idx | |
| Specified the byte index in the buffer. Range 0-15 | |
| Return | |
| ScanBuffer | |
| Returns a binary list of matched identifier names | |
| Compare_Str | |
| Length | |
| Return | |
| SendChar | |
| Transmits a byte value to the Zigbee module. | |
| Byte | |
| Data byte to transmit. Range 0-255 | |
| Return | |
| InitNetwork | |
| Initialises the Zigbee module and attempts to setup or join the network | |
| Return | |
| ConnectToCoordinator | |
| Attempts to connect the data channel to the network coordinator node. | |
| Return | |
| MIAC_Module_GetData | |
| Index | |
| Return | |
| ConnectToName | |
| Attempts to connect the data channel to a named device on the network. | |
| Name | |
| Return | |
| StoreParams | |
| Stores the current register set into the Zigbee module's non volatile memory | |
| Return | |
| EnterCommandMode | |
| Moves from data mode into command mode by sending the special characters | |
| Return | |
| RestartNetwork | |
| Attempts to restart the network | |
| Return | |
| MIAC_Module_Message | |
| CAN_ID | |
| CMD_ID | |
| Return | |
| ConnectToAll | |
| Attempts to connect the data channel to all devices on the network. | |
| Return | |
| ConnectFromLibrary | |
| Attempts to connect the data channel to a known device on the network. | |
| Mode | |
| Device | |
| Return | |
| ConnectToAddress | |
| Attempts to connect the data channel to a specific device address on the network. | |
| Address | |
| Return | |
| GetSignalLevel | |
| Returns the signal strength of the last signal received | |
| Return | |
| ExitCommandMode | |
| Returns from command mode to allow data to be sent and received | |
| Return | |
| MIAC_Module_PushData | |
| Data | |
| Return | |
| ReadAddressFromBuffer | |
| Reads a byte from a 16-bit Zigbee device address | |
| Device | |
| Idx | |
| Return | |
| SendATCommand | |
| Transmits a string of values to the Zigbee module. | |
| Command | |
| Transmits a command to the Zigbee module followed by a carriage return | |
| Return | |
| 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 | |
| Attempt to receive a byte from the Zigbee module. | |
| nTimeout | |
| Return | |