Home/Support/Support Forum/InvalidOperatingModeException: Could not determine operating mode.

InvalidOperatingModeException: Could not determine operating mode.

0 votes
Hi,
Im trying to run the SendBroadcast example code on a S1 mounted on an Intel Edison board.

When executing myDevice.open(); I get the InvalidOperatingModeException: Could not determine operating mode. Exception.

The Operating mode is "UNKOWN"

Any ideas, please? This is the stack trace I get:

Mar 18, 2016 9:02:03 PM com.digi.xbee.api.XBeeDevice open
INFO: [/dev/ttyS81 - 9600/8/N/1/N] Opening the connection interface...
Mar 18, 2016 9:02:03 PM com.digi.xbee.api.XBeeDevice open
INFO: [/dev/ttyS81 - 9600/8/N/1/N] Connection interface open.
Mar 18, 2016 9:02:08 PM com.digi.xbee.api.XBeeDevice determineOperatingMode
SEVERE: There was a timeout while executing the requested operation.
com.digi.xbee.api.exceptions.TimeoutException: There was a timeout while executing the requested operation.
at com.digi.xbee.api.XBeeDevice.enterATCommandMode(XBeeDevice.java:426)
at com.digi.xbee.api.XBeeDevice.determineOperatingMode(XBeeDevice.java:376)
at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:213)
at SendBroadcast.main(SendBroadcast.java:94)

Mar 18, 2016 9:02:08 PM com.digi.xbee.api.XBeeDevice close
INFO: [/dev/ttyS81 - 9600/8/N/1/N] Connection interface closed.
Error
com.digi.xbee.api.exceptions.InvalidOperatingModeException: Could not determine operating mode.
at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:218)
at SendBroadcast.main(SendBroadcast.java:94)
logout
asked Mar 18, 2016 in IEEE 802.15.4 by TonyM New to the Community (0 points)

Please log in or register to answer this question.

2 Answers

0 votes
Try using the XBee modules in API mode (ATAP=1).
answered Mar 29, 2016 by mvut Veteran of the Digi Community (15,159 points)
0 votes
I'm working with S2C Programable XBEE and receiving the same exception. Already put "API MODE = ATP1"
answered Jun 12, 2017 by Molas89 New to the Community (4 points)
How are you setting the API mode to APT1?
...