Closed turriert closed 3 years ago
Hi @turriert,
Could you verify the operation mode of your local XBee? From the exception message it seems it is in transparent mode.
Unsupported operating mode: AT mode (0)
The library only supports API communication with local XBee nodes. This means its AO must be configured to use an API mode, generally AP=1
.
You can configure it using XCTU or you can use force_settings
when opening the connection with the local XBee in your code:
device.open(force_settings=True)
Best Regards
Hi @tatianaleon,
Thank you so much ! Indeed AT was at 0 I changed it to 1.
Now I have the following message:
$ python xbee.py +--------------------------------------+ | XBee Python Library Send Data Sample | +--------------------------------------+ Could not find the remote device
But I don't understand why he gets in there. Do I have to enter the name of the destination device? If yes, how ?
Thank you !
Best regards
Hi @turriert,
The method discover_device(REMOTE_NODE_ID)
is not discovering a node in your network with REMOTE
as node identifier (NI
).
You must ensure you have another node in the same network with NI=REMOTE
.
I encourage you read the readme.txt file of the "Send Data Sample" to setup and launch it successfully.
Best Regards
Hello everybody,
I have a problem with the xbee-python librairy. When I execute my script I have this result :
My python script :
My configuration :
To install my device I did the following operations :
sudo apt-get install python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 3
update-alternatives: utilisation de « /usr/bin/python3.7 » pour fournir « /usr/bin/python » (python) en mode automatique
sudo apt-get install python3-pip
sudo apt-get update
sudo apt-get upgrade
pip install digi-xbee
My Xbee Device : Xbee série 3 XB3-24Z8PT-J on USB with Module Xbee Explorer USB WRL-11812
My device configuration :
Can you help me please !!