xnorit:public:dependencies:xnorbee
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| xnorit:public:dependencies:xnorbee [2021/03/07 14:52] – created timdv91 | xnorit:public:dependencies:xnorbee [2023/02/26 04:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 46: | Line 46: | ||
| ===== Downloads: ===== | ===== Downloads: ===== | ||
| - | Download full slaves library code + example: {{ :h2:daq:daqv2:embeddedsoftware:slave: | + | Download full slaves library code + example: {{ :xnorit:public:dependencies:xnorbee:xnorbeeslave.rar |}} \\ |
| + | Dependencies: | ||
| \\ | \\ | ||
| Line 94: | Line 95: | ||
| ==== Manual, using XCTU: ==== | ==== Manual, using XCTU: ==== | ||
| - | {{ :h2:daq:daqv2:embeddedsoftware: | + | {{ :xnorit:public:dependencies:xnorbee: |
| Reading and/or writing data to the slave device can be done from the XCTU software inside the console mode. \\ | Reading and/or writing data to the slave device can be done from the XCTU software inside the console mode. \\ | ||
| Line 102: | Line 103: | ||
| * **Frame type:** \\ 0x10 - Transmit Request | * **Frame type:** \\ 0x10 - Transmit Request | ||
| * **64-bit dest.address: | * **64-bit dest.address: | ||
| - | * **RF data:** \\ <enter data in the correct [[h2:daq:daqv2:embeddedsoftware: | + | * **RF data:** \\ <enter data in the correct [[xnorit:public:dependencies:xnorbee#Master protocol|Master protocol]]> |
| <WRAP center round info 50%> | <WRAP center round info 50%> | ||
| Line 168: | Line 169: | ||
| //Note that the returned values inside ' | //Note that the returned values inside ' | ||
| + | |||
| + | == Read or write IO-Lines: == | ||
| + | If you need to read or set an IOLine in/out-put, this can be done as follow. | ||
| + | <code python> | ||
| + | from XnorBee.XnorBee import XnorBee | ||
| + | from digi.xbee.devices import IOMode | ||
| + | from digi.xbee.io import IOLine | ||
| + | |||
| + | # Get the basic functionality using the XnorBee class: | ||
| + | xbe = XnorBee(" | ||
| + | rZBid = xbe.SetRemoteZigbeeDevice(" | ||
| + | |||
| + | # PIN / IOLine interactions: | ||
| + | rZBDEV = xbe.GetRemoteZigbeeDevice(rZBid) | ||
| + | rZBDEV.set_io_configuration(IOLine.DIO10_PWM0, | ||
| + | io_state = rZBDEV.get_dio_value(IOLine.DIO10_PWM0) | ||
| + | print(io_state) | ||
| + | </ | ||
| \\ | \\ | ||
| Line 174: | Line 193: | ||
| === XnorBeeMaster class === | === XnorBeeMaster class === | ||
| - | The XnorBeeMaster class contains the higher level functions for the [[h2:daq:daqv2:embeddedsoftware: | + | The XnorBeeMaster class contains the higher level functions for the [[xnorit:public:dependencies:xnorbee#XnorBee class|XnorBee]] class. \\ |
| This class can be used to: | This class can be used to: | ||
| - | * Write data to a slave device following the correct [[h2:daq:daqv2:embeddedsoftware: | + | * Write data to a slave device following the correct [[xnorit:public:dependencies:xnorbee#Master protocol: |
| - | * Read data from a slave device, following the correct [[h2:daq:daqv2:embeddedsoftware: | + | * Read data from a slave device, following the correct [[xnorit:public:dependencies:xnorbee#Master protocol: |
| == Initialization & usage: == | == Initialization & usage: == | ||
| Line 203: | Line 222: | ||
| === Download: === | === Download: === | ||
| - | Download full Masters library code + example: {{ :h2:daq:daqv2:embeddedsoftware:master: | + | Download full Masters library code + example: {{ :xnorit:public:dependencies:xnorbee:xnorbeemaster.rar |}} \\ |
| + | dependencies: | ||
| === Known bugs: === | === Known bugs: === | ||
| Line 211: | Line 231: | ||
| ReceiveData function should be updated to hold an timeout delay in the future! | ReceiveData function should be updated to hold an timeout delay in the future! | ||
| </ | </ | ||
| + | |||
xnorit/public/dependencies/xnorbee.1615128721.txt.gz · Last modified: (external edit)
