xbee-micropython icon indicating copy to clipboard operation
xbee-micropython copied to clipboard

Question: XBee + Serial Comunication

Open SWoto opened this issue 3 years ago • 2 comments

Hello everyone,

I've going through XBee's documentarion regarding micropython and its two modules, the XB3 and the XBee Cellular. My goal is to implement a Modbus protocol on top of the RS485, we only need RX/TX pins for serial comunication, but I've some questions....

For what I understood, it seems pretty simple to use UART comunication with the XBee Cellular given that it has two UARTs. But, does anyone knows if it is possible to implement serial comunication between XB3 and another device/sensor? Looks like it has some limitation related to the primary UART.

SWoto avatar Apr 27 '21 20:04 SWoto

It is possible to communicate over primary UART, but please note that it will always send this text after each reboot:

Loading /flash/main.mpy...
Running bytecode...

Hope your device can tolerate that.

Shulyaka avatar Jul 16 '23 12:07 Shulyaka

The gps_uart sample demonstrates communication with another device via the secondary serial port, which leaves the primary port for MicroPython debugging, or usage of API frames with a host processor.

tomlogic avatar Jul 16 '23 19:07 tomlogic