ESP-32 interfacing with XBEE

omborse__
Posts: 11
Joined: Tue May 21, 2019 5:30 am

ESP-32 interfacing with XBEE

Postby omborse__ » 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 :)

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP-32 interfacing with XBEE

Postby rudi ;-) » Sat Aug 24, 2019 4:06 pm

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 8478 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
Attachments
22AT Commands.pdf
AT Commands
(130.36 KiB) Downloaded 667 times
90000976.pdf
User Guide
(2.35 MiB) Downloaded 714 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: Google [Bot] and 337 guests