Skip to content

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

Open
@cabas92

Description

@cabas92

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions