question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

digi.xbee.exception.InvalidOperatingModeException: Unsupported operating mode: AT mode

See original GitHub issue

I’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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
ciel77commented, Apr 12, 2018

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?

0reactions
ghostcommented, Jan 27, 2022

I got this error when I plug the xbee into the socket but shifted up so the first two pins were not plugged in.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found