Pages: [1]   Go Down
Author Topic: xBee api and serial port  (Read 450 times)
0 Members and 1 Guest are viewing this topic.
italy
Offline Offline
Full Member
***
Karma: 2
Posts: 215
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello. If I have an xBee connected on pin 0 and 1 and I am using it on API mode, can I use the serial port also to write on my computer screen for debug? I don't think what I write in screen is send on the wireless becuse it is not in api format. But what do you think about? Do you think packets for the monitor may interfere with radio transmission or not?
Thanks
Logged

Hamburg, Germany
Offline Offline
Sr. Member
****
Karma: 5
Posts: 291
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

did you ever try it?

markbee
Logged


Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think you'll find it will interfere - just because it's not a certain format doesn't mean the Xbee won't see it and try to interpret as something usable... so why not just use different pins for the Xbee comms and avoid any possible headaches...?


G.
Logged

Is life really that serious...??!

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3536
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not absolutely sure that it's 100% safe (it may be with AP=2), but I've done this and never noticed a problem. Use AP=2 if you can and as long as you don't send 0x7E in a debug message, the XBee should ignore it. You will see XBee API traffic on the monitor as gobbledegook, but you can ignore that!
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

italy
Offline Offline
Full Member
***
Karma: 2
Posts: 215
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so why not just use different pins for the Xbee comms and avoid any possible headaches...?

Because i have an xBee shield connected to pins 0 and 1 and I think I cannot redirect the Serial.print on the screen on other port. I think what Jack said about API mode 2 is rasonable
Logged

Pages: [1]   Go Up
Jump to: