User Tools

Site Tools


xnorit:public:dependencies:xnorbee

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xnorit:public:dependencies:xnorbee [2021/03/07 15:13] – [Automated, using Python3:] timdv91xnorit: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: {{ :xnorit:public:dependencies:xnorbee:xnorbeeslavetest.rar |}}+Download full slaves library code + example: {{ :xnorit:public:dependencies:xnorbee:xnorbeeslave.rar |}} \\ 
 +Dependencies: install 'xbee-arduino library' by Andrew Rapp (tested with v0.6.0) using the library manager. 
  
 \\ \\
Line 94: Line 95:
 ==== Manual, using XCTU: ==== ==== Manual, using XCTU: ====
  
-{{ :h2:daq:daqv2:embeddedsoftware:master:xctu_xnorbeemaster_framegeneratorexample.png?400|}}+{{ :xnorit:public:dependencies:xnorbee:xctu_xnorbeemaster_framegeneratorexample.png?400|}}
  
 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:** \\ <enter Mac from slave receiver>   * **64-bit dest.address:** \\ <enter Mac from slave receiver>
-  * **RF data:** \\ <enter data in the correct [[h2:daq:daqv2:embeddedsoftware:xbeelibrary_v0.1#Master protocol|Master protocol]]> +  * **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 'state' and 'xbee_message' contain rather difficult to read dictionary and object data. For easy data access combine this class with the XnorBeeMaster class. // //Note that the returned values inside 'state' and 'xbee_message' contain rather difficult to read dictionary and object data. For easy data access combine this class with the XnorBeeMaster class. //
 +
 +== 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("COM13", 9600)
 +rZBid = xbe.SetRemoteZigbeeDevice("0013A20041AE5856")
 +
 +# PIN / IOLine interactions: 
 +rZBDEV = xbe.GetRemoteZigbeeDevice(rZBid)  # Get the remote device object from the xbe object using the remote devices ID.
 +rZBDEV.set_io_configuration(IOLine.DIO10_PWM0, IOMode.DIGITAL_IN)  # Configure the pin as an input.
 +io_state = rZBDEV.get_dio_value(IOLine.DIO10_PWM0)  # Read the pin state HIGH or LOW
 +print(io_state)
 +</code>
  
 \\ \\
Line 174: Line 193:
 === XnorBeeMaster class === === XnorBeeMaster class ===
  
-The XnorBeeMaster class contains the higher level functions for the [[h2:daq:daqv2:embeddedsoftware:xbeelibrary_v0.1#XnorBee class|XnorBee]] class. \\+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:xbeelibrary_v0.1#Master protocol:|Master protocol]].  +  * Write data to a slave device following the correct [[xnorit:public:dependencies:xnorbee#Master protocol:|Master protocol]].  
-  * Read data from a slave device, following the correct [[h2:daq:daqv2:embeddedsoftware:xbeelibrary_v0.1#Master protocol:|Master protocol]]. +  * Read data from a slave device, following the correct [[xnorit:public:dependencies:xnorbee#Master protocol:|Master protocol]]. 
  
 == Initialization & usage: == == Initialization & usage: ==
Line 203: Line 222:
    
 === Download: === === Download: ===
-Download full Masters library code + example: {{ :xnorit:public:dependencies:xnorbee:xnorbee_master_.rar | XnorBee(Master) }}+Download full Masters library code + example: {{ :xnorit:public:dependencies:xnorbee:xnorbeemaster.rar |}} \\
 dependencies: [[https://xbplib.readthedocs.io/en/latest/getting_started_with_xbee_python_library.html]] dependencies: [[https://xbplib.readthedocs.io/en/latest/getting_started_with_xbee_python_library.html]]
  
Line 212: 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!
 </WRAP> </WRAP>
 +
xnorit/public/dependencies/xnorbee.1615129980.txt.gz · Last modified: (external edit)