Currently I'm not having any XBee modules but I require information for some purposes,
If I set baud rate Serial.begin(115200); on transmitter's sketch & Serial.begin(115200); on receiver's sketch, is that enough? or I still will have to configure baud rates using X-CTU or so?
They'll be talking together only & will transmit information serially to computer, I'm limited to use 115200 baud rate only, if above method isn't going to work then can I change baud rate of xbee just via serial commands first using arduino ide with xbee connected to arduino?
Thank you so much, hope to get reply as soon as possible.
or I still will have to configure baud rates using X-CTU or so?
The baud rate you use to talk to the XBee must match the baud rate that the XBee is expecting to be talked to. Setting the baud rate in the sketch to something other than what the XBee expects will NOT change what the XBee expects. ONLY X-CTU can do that.
I'm limited to use 115200 baud rate only
Without ANY reason being offered, I really have to question WHY.
if above method isn't going to work then can I change baud rate of xbee just via serial commands first using arduino ide with xbee connected to arduino?
No. The IDE has no clue how to talk to the XBee. The Serial Monitor application, on the other hand, can talk to the Arduino to which the XBee is connected. If the XBee is connected to the hardware serial pins AFTER uploading the appropriate sketch AND you know the proper commands to type AND you can get them typed in before the XBee switches modes, then yes you could configure the XBee without using X-CTU. But, why? X-CTU is so much easier to use. And it's not like it costs an arm and a leg.
PaulS: 1. The baud rate you use to talk to the XBee must match the baud rate that the XBee is expecting to be talked to. Setting the baud rate in the sketch to something other than what the XBee expects will NOT change what the XBee expects. ONLY X-CTU can do that.
2. Without ANY reason being offered, I really have to question WHY.
3. No. The IDE has no clue how to talk to the XBee. The Serial Monitor application, on the other hand, can talk to the Arduino to which the XBee is connected. If the XBee is connected to the hardware serial pins AFTER uploading the appropriate sketch AND you know the proper commands to type AND you can get them typed in before the XBee switches modes, then yes you could configure the XBee without using X-CTU. But, why? X-CTU is so much easier to use. And it's not like it costs an arm and a leg.
Thanks a lot sir, I got my confusion cleared.
I'm developing graphical based ide to program arduino & its shields & modules & for everything else I've used baud rate 115200, that's why if I am unable to use 9600 baud rate for xbee module in my program.
This ide will be used by kids, that's why I've to make everything at its simplest so that they won't have to use any other software than my ide, I was thinking if I can already write a program that will be uploaded to xbee & then an other program that will be sending commands to xbee itself, preset commands to change baud rate to 115200 so that kids won't have to do this task themselves.