XBee's and Arduino - Basic XBee's Chat - Part1
Shopping List:
-1 Arduino Uno-2 Xbee Series1
-1 Xbee explorer dongle (USB adapter Xbee)
Software
-XCTU (On windows)-CoolTerm (Linux)
1.1 Settings the XBee's - Transparent Mode
XBEE
- Coordinator
ATID (PAN ID) | 3332 |
ATSH | 13A200 |
ATSL | <Look behind your Xbee> |
ATDH | 13A200 |
ATDL | <address of end device> |
ATMY | 1234 |
ATCE | 1 |
I set the DL (destination address-low) of the second Xbee (end device).
XBEE
- End Device
ATID (PAN ID)
|
3332
|
ATSH
|
13A200
|
ATSL
|
<Look behind your Xbee>
|
ATDH
|
13A200
|
ATDL
|
<address of Coordinator device>
|
ATMY
|
1235
|
ATCE
|
0
|
I set the DL (destination address-low) of the first Xbee (coordinator device).
As for the Xbee - End Device you can set it directly from the monitor serial Arduino after loading the sketch empty in USB mode or use XCTU colleganto it to the pc via the USB Dongle Xbee.
As for the Xbee - End Device you can set it directly from the monitor serial Arduino after loading the sketch empty in USB mode or use XCTU colleganto it to the pc via the USB Dongle Xbee.
Basic Xbee's Chat
After setting the Xbee's I have the following situation:XBEE - Coordinator
It's connected to the PC via the USB adapter Xbee.
By software XCTU (terminal mode) I can send and receive messages from Xbee present on Arduino (which acts as End Device).
XBEE - End Device
It's connected to the Arduino through the "Wireless SD Shield".
This shield offers two modes USB / MICRO.
Loading Arduino sketch of the shield must be in USB mode and Xbee should not be included in the Shield.
We are going to upload a sketch Arduino empty like this:
** N.B. When loading a sketch the shield must be in USB mode.
After loading the sketch I remove the power to arduino and insert in the Xbee.
After loading the sketch I remove the power to arduino and insert in the Xbee.
_________________
From the screenshot you can see that the writing in Blue has been sent from the PC while the Red was sent by this Xbee Arduino.
1.2 Settings the XBee's from a PC w/API mode using Python
Work in progress...
Comments
Post a Comment