digi.xbee.exception.InvalidOperatingModeException: Unsupported operating mode: AT mode
See original GitHub issueI’m trying to use this library in a Raspberry Pi 3 with two modules XBEE S1. I have checked the correct operation of API mode [1] with a hyperterminal with different XBEE whit fixed PAN ID and CH. But, if I run the basic example:
from digi.xbee.devices import XBeeDevice
....
device = XBeeDevice('/dev/ttyS0', 9600)
device.open()
...
device.send_data_broadcast ("Hello XBees!")
...
device.close()
I get this error:
File "/home/pi/JairoC/ApiModeService.py", line 73, in <module>
device.open()
File "usr/local/lib/python3.5/dist-packages/digi_xbee-1.1.0-py3.5.egg/digi/
xbee/devices.py", line 1262, in open
raise InvalidOperatingModeException.from_operating_mode(self._operating_mode)
digi.xbee.exception.InvalidOperatingModeException: Unsupported operating mode:
AT mode
I don’t know what to do… Sometimes the application works and send information but with a long process or parallel trading, the error is presented.
Any help will be valued
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Invalid operating mode exception message - Digi International
In this case, the library cannot access the module. Check that the PORT constant is correct. Unsupported operating mode: com.digi.xbee.api.
Read more >digi.xbee.exception.InvalidOperatingModeException ... - GitHub
I'm trying to use this library in a Raspberry Pi 3 with two modules XBEE S1. I have checked the correct operation of...
Read more >Source code for digi.xbee.exception
[docs]class InvalidOperatingModeException(ConnectionException): """ This exception will be thrown if the operating mode is different than *OperatingMode.
Read more >Problem opening same port multiple times in python Digi ...
exception.InvalidOperatingModeException: Could not determine operating mode is raised. from digi.xbee.devices import * import time ...
Read more >XBee ZigBee Mesh Kit - manualzz
InvalidOperatingModeException : Unsupported operating mode: AT mode at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:214) at ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have similar issue with XBEE SX running on RPi 3. I am using 1 digi modem, and have another serial port device also connected via USB.
This AT mode exception happens every time I plug in both devices. But if only digi device is connected, it’s working fine.
So is there a fix for multiple devices connected to USB ports?
I got this error when I plug the xbee into the socket but shifted up so the first two pins were not plugged in.