InvalidOperatingModeException: Could not determine operating mode.

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

Try using the XBee modules in API mode (ATAP=1).

I’m working with S2C Programable XBEE and receiving the same exception. Already put “API MODE = ATP1”