Home/Support/Support Forum/Why does S2C throw invalidOperatingmodeException in response to python library device.open()?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Why does S2C throw invalidOperatingmodeException in response to python library device.open()?

0 votes
Trying to swap out an ancient S2B Pro xBee with a new S2C Pro. Configured the new unit using XCTU to carefully match PAN, baud, etc. New unit plays nicely in the network when mounted on the XCTU development board. When deployed onto its home (where the S2B has sat comfortably) on a RaspberryPi3b running Python 3.5.3 with the digi.xbee library, the call to open the device throws invalidOperatingModeException:_Could_Not_Determine_Operating_Mode.

Why? What to do?

Old Device: XBP24BZ7PIT-004-revF
New Device: XBP24CZ7PIT-004-revF

This code:
from digi.xbee.devices import XBeeDevice
xb=XBeeDevice('//dev/tty/AMA0'.57600)
xb.open()

Generates this response:
/dev/ttyAMAo port opened
/dev/ttyAMA0 port closed
Traceback (most reent call last):
File "/home/pi/.local/lib/python3.5/site-packages/digi/xbee/devices.py", line 1259, in open
raise InvalidOperatingModeException("Could not determine operating mode")
digi.xbee.exception.invalidOperatingModeException: Could not determine opearting mode
asked Oct 25, 2018 in Python by BigBoomBlueAsh New to the Community (0 points)

Please log in or register to answer this question.

...