Skip to content

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

Open
@manuaatitya

Description

@manuaatitya

I have 3 XBees s1 all configured in API mode with one coordinator and 2 end device and I'm tring to send data explcitly to one of the bees.I'm using XCTU to visualise the data recieved in which both my end devices have the serial connection closed.

My code is as follows :

from digi.xbee.devices import *

Instantiate a XBee object
server = XBeeDevice("COM4",115200)

Open a port for communication
server.open()

Instantiate a remote object
thanos = RemoteXBeeDevice(server,XBee64BitAddress.from_hex_string("0013A2004103D949"))
hulk = RemoteXBeeDevice(server,XBee64BitAddress.from_hex_string("0013A2004103D932"))

Message to be sent to the bot
server._send_expl_data(thanos,0xA0, 0xA1, 0x1554, 0xC105, "Iron Man")
time.sleep(2)

Close the communication port
server.close()

But i get the error :

Traceback (most recent call last):
File "explicit_data_bee.py", line 8, in
server.open()
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\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

But both all my Xbees are in API mode only.

Any help is appreciated.

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