Sunteți pe pagina 1din 11

I assume you know how to connect and open the XCTU software or you can refer to this

tutorial Getting Started with XBee-WiFi.


Once your module has been recognized by the XCTU software try to connect to your
!i"i network. "irst click on #$cti%e &can ' &can(.
I(m using )*& and this is my !i"i name Idris!i"i+. Click yours and enter the !i"i
password.
)es, -y module connected to Idris!i"i in ./01 ms.
Once connected $&&O 2*3 43&56 on your &7Xbee will blink that(s mean your module
has successfully 8oined the !i"i network and it will be gi%en specific I9 address. Click
on #:ead( and you will see the updated #-) ; -odule I9 $ddress( #-7 ; I9 $ddress
-ask( and #<! ; I9 $ddress of <ateway(. 2ook at #32 ; 3estination I9 $ddress( it
shows =55.=55.=55.=55 which means the broadcast address. It is better to set it
corresponding to your 9C>laptop I9 address.
-ake sure your 9C>laptop connected to !i"i too. Then check your I9 address. )ou can
use command prompt then type ipconfig+ followed by enter+. It will display your
current I9 address. -ine is192.168.1.10.
?ow I will set the #32 ; 3estination I9 $ddress( to 0.=.0/@.0.0A in XCTU. Then change
the #I9 ; I9 9rotocol( to (0BTC9(. !hy TC9C Decause I 8ust want to use the
EyperTerminal software and this software is a client TC9>I9. $fter done all the setting
click #!rite(.
-ake sure the $&&O 2*3 43&56 is blinkingF otherwise you can press reset button on
the &7XDee and wait until the $&&O 2*3 is blink. Then click #:ead( again to double
check all the parameter following what you set before. If it is different you can repeat
the configuration again.
?ow I want to test the connection. Open EyperTerminal software gi%e a name e.g.
Xbee!i"i+.
Choose connect using TC9>I9 4!insock6+. Then type your module I9 address at Eost
address+ boG followed by 9ort number+. ConfuseC
Eost address+ refers to #-) ; -odule I9 $ddress( 40.=.0/@.0.006
9ort number+ refers to #CO ; &ource 9ort( 4AH=/0/6.
I :*-*-D*:, #CO ; &ource 9ort( 4XCTU6 in E*X but 9ort number+ 4EyperTerminal6
in 3*C.
Click O7. -ake sure it is ConnectedJ A.AA.AA 4look at bottom left6.
3on(t forget the basic setting on $&CII &etup. Check boG for &end line ends with line
feed+ and *cho typed characters locally+.
Try to send any data. $ssalamualaikum+ is a data from EyperTerminal to XCTU and
!aalaikumussalam+ is a data from XCTU to EyperTerminal. The communication
between my laptop and the module %ia !i"i network is success.
?ow time to program the 9IC0/"@@K. I(m using -92$D X I3* L0.50 and XC@ L0.0=.
2et(s focus on the main part.
-------------------------------------------------------------------------------------------------------------------------------
----------------------------------program
$fter you download the program make sure the XDeeB!i"i is connected to your laptop
!ifi 4check the $&&O 2*3 on &7XDee :e%=.A it should blink6 press &!0. :obot will
send some string to the EyperTerminal then it will mo%e a little left and right to test the
motor. Once you get the :eady,+ string you can start press a key on the keyboard.
w>! ; "orward
a>$ ; :otate 2eft
d>3 ; :otate :ight
s>& ; &top
That(s all from me hope you can play with it. Of course you will face some problem and
troubleshooting that(s call eGperience and eGperience gi%es you %aluable
knowledge.

S-ar putea să vă placă și