Pages: [1]   Go Down
Author Topic: Simple Problem - Xbee Board  (Read 288 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not overly fluent in arduino.

I have two arduino uno's and two xbee shields with programmed antennas (I did the whole x-ctu thing and the whole led LHLHL thing).

I simply want to output data from one, and recieve and read it on the other.

Such as using an arduino measure voltage and current of an outlet (the programming is already done for this) and sending the measurements to another arduino and read it on the second arduino's serial monitor.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 642
Posts: 50367
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I simply want to output data from one, and recieve and read it on the other.
This seems worthwhile. Permission granted.

Did you have a(nother) question?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...ok

So anyways, I have the xbee's set up so when I type in the serial monitor on #1, the serial monitor on #2 picks it up (kinda like a one way chat). Now I'm reading values on #1, I want to be able to just send whatever is read on serial monitor #1, and read it on #2 also.

What is the proper function I would use?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 642
Posts: 50367
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So anyways, I have the xbee's set up so when I type in the serial monitor on #1, the serial monitor on #2 picks it up
I don't think you understand serial data at all. When you type something in the Serial Monitor application, that application then sends data to the serial port. When data arrives on the serial port, the Serial Monitor application reads that data and displays it.

Something must be on the other end of the serial port that reads data from, and writes data to, the port.

If that something is the Arduino, it can read from, and write to, the serial port IF there is proper code on it to make it do so. We haven't seen that code, yet, in spite of the fact that the sticky at the top of the forum instructs you to post your code.

If the Arduino has a XBee shield with XBee, the Arduino can send data to the XBee, to have it broadcast. Any data that the XBee receives will be made available for the Arduino to read. Exactly how to do that depends on the XBee shield and how it is set up. More information that is missing from your post.

If the XBee is configured to communicate with one or more other XBees, and that XBee is (or those XBees are) powered up and in range, the other XBee(s) will receive what the first one broadcast. You seem to have omitted any details about the configuration of the XBees.

Assuming that the other XBee, XBee shield, and Arduino are all properly set up, the data the XBee receives will be read by the Arduino and written to the serial port, for another instance of the Serial Monitor application to read and display.

That other Serial Monitor application can then start the process over again, from the other direction.
Logged

Pages: [1]   Go Up
Jump to: