Page 1 of 1

ESP-32 interfacing with XBEE

Posted: Sat Aug 24, 2019 6:11 am
by omborse__
Hi all,
I have esp-32 Wrover and i want to connect it to XBEE Pro. And also wanted to form mesh network using xbee so that i can collect sensor data. But I'm not able to find any particular library which supports esp-32 to form a mesh using xbee.

Thank you for your time :)

Re: ESP-32 interfacing with XBEE

Posted: Sat Aug 24, 2019 4:06 pm
by rudi ;-)
omborse__ wrote:
Sat Aug 24, 2019 6:11 am
Hi all,
I have esp-32 Wrover and i want to connect it to XBEE Pro. And also wanted to form mesh network using xbee so that i can collect sensor data. But I'm not able to find any particular library which supports esp-32 to form a mesh using xbee.

Thank you for your time :)
hi

you mean the xbee pro 868 ? ( Xbee2, Xbee2Pro .. )

did you play with this one time ( example with your favorite µC )?
or with usb stick to ttl / uart stick on pc and terminal.
( Configuring XBee Modules using XCTU )

could you send several msg to the xbee pro in mesh?
you know the message frame protocoll from xbee pro and have xbee pro doc to your hand?

what will you do, send msg from one xbee to an other xbee in a mesh where this xbee units are, right?
how you want process the xbee units from esp32? which peripherals you want use?

remember me, that xbee pro use uart, so you can check, if xbee pro is driven by 3V3 or 5V, you know?
if it is driven by 5V ( Rx, Tx ) you can use volt divider ( Level Shifter ) to come down 3V3 in the Rx, Tx signals ( uart - uart )

xbee is AT command driven, so you can send AT commands from esp32 uart to the xbee pro uart.
you have the AT command list for your Xbee pro unit?

S.31 "Sending AT commands"
AT_cmd.png
AT_cmd.png (12.23 KiB) Viewed 8116 times
then simple create a communication between the esp32 and the xbee then over uart with AT commands.
any help you need, ask for it.

one question, how you want program for esp32 the xbee chat? ( arduino, esp-idf, python... )
i think for arduino there are xbee pro how to (libs) here and there available, not sure there are xbee pro component for esp-idf
but you could start this by self step by step.

first step, read in in xbee pro datasheet and study the AT Command for knowing what you must do for setup, meshing, send and receive message frame / blocks.

best wishes
rudi ;-)

edit: add few links