cooldude4u2no
New Member
I been racking my brain over wireless communication. I cant seem to find a good tutorial on it either. But im trying to figure out how to send commands from a PC to another device wirelessly. Like for example: "80". When the device receives this is will display 80 on the sceen and then store the variable. With my code however, it seems its only receiving the first character which is "8". Im using two Xbee Series 1 Modules operating at 9600 baud.
Here is what i have.
Receiver:
Transmitter Connected to PC:
Please forgive if the code is sloppy. Im a complete newb to picaxe and just trying to learn it. Maybe complete wrong approach?
Here is what i have.
Receiver:
Code:
#NO_DATA
#NO_TABLE
Main:
Serin B.6, T9600_8, ($55, $55), B0
let b8 = b0
serout B.0, t9600_8, ("?f") 'LCD Clear Screen
pause 100
serout B.0, t9600_8, (#B0) '
goto main
Code:
#no_DATA
#NO_TABLE
main:
serin C.3, N9600_8, b0 'From PC using PicAxe Terminal
serout C.1, T9600_8, ($55,$55, b0) 'To Xbee
goto main