digidotcom / xbee-micropython

MIT License
70 stars 29 forks source link

Question: XBee + Serial Comunication #68

Open SWoto opened 3 years ago

SWoto commented 3 years ago

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.

Shulyaka commented 11 months ago

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.

tomlogic commented 11 months ago

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.