RFbee communication help

Hello,

First, sorry for my language, it can be average because it's not my native language.

I know it could look like easy for some people but i have real difficulties whith that.

I come here to find some help about RFbee. I want to make a wireless communication between 2 computers with 2 RFbee like that :
COMPUTER --> UNO --> I/O SHIELD --> RFBee --> ------air------> RFBee --> I/O SHIELD --> UNO --> COMPUTER

To do that, i have :

  • 2 cards arduino uno
  • 2 shields DFRobot I/O Expansion Shield V7.1
  • 2 RFBee v1.1

I've searched much time but i just don't understand how it work and how to programate it. I found those sites :
-http://www.seeedstudio.com/depot/datasheet/RFBee%20User%20Manual%20v1.1.pdf
-Terminal
-forum of arduino.cc
-forum of seeedstudio.com
-New transmitting routine. · robots/RFBee@d090937 · GitHub
etc....

But even with all that, i don't understand how to do to make it work. Scripts or exemple just doesn't work when i try them. I tried to modify them but nothing worked.

Someone could take some time to explain me clearly and the easiest possible how tu do it please? An exemple of basic codage for RFBee would be really great!

To do that, i have :

  • 2 cards arduino uno
  • 2 shields DFRobot I/O Expansion Shield V7.1
  • 2 RFBee v1.1

You need to post links to the hardware. Don't expect us to google these names and hope to find the hardware that you have. (We know what an Arduino is...)

i don't really understand "hardware", does it mean code? if yes, here it is:

String write = "one";
byte incoming=0;
int ID=1010;

void setup()
{
 Serial.begin(9600);
 pinMode (5, OUTPUT);
 pinMode (6, INPUT);
}

void loop() {
  //text to send
  String text = Serial.readString();
  if (text != 0)
  {
    // print the text we want to send
    one = text;
    Serial.println(one);
  }
  digitalWrite(5, 50);
  incoming = analogRead(6);
  Serial.println(incoming);
}

If you want links to items, there it is:

arduino uno : http://www.arduino.cc/en/Main/ArduinoBoardUno

Shield expansion I/O : DFRobot IO_Expansion_Shield_for_Arduino_V7_SKU_DFR0265

RFBee : http://www.seeedstudio.com/wiki/RFbee_V1.1_-_Wireless_Arduino_compatible_node

I hope I gave you what you wanted ^^

i don't really understand "hardware", does it mean code?

No. Hardware is the hard stuff - the UNO, the RFbee, the shield, etc.

I hope I gave you what you wanted

Well, I asked for links, like:
http://www.seeedstudio.com/wiki/RFbee_V1.1_-_Wireless_Arduino_compatible_node
not text like:
http://www.seeedstudio.com/wiki/RFbee_V1.1_-_Wireless_Arduino_compatible_node

    one = text;

You don't have a variable named one.

Perhaps you need to explain whether you are having trouble writing code, as in it won't even compile, or are having trouble with the hardware.

Exact, i rectified the name of the variable to become "write" and i edited my post with links.

I can upload the code in arduino but I don't understand what to do after.
I mean after upload, i open the monitor and here is what it's show me :

There were only one arduino working so there shouldn't be any datas received. I don't understand what are those numbers and why it's always changing (it's look like randomly) from 0 to 255.
I think the number is 255 because "incoming" is defined as a "byte" (2^8 = 256 possibilities 0 to 255) but that's all i understand for now about this point.

  String text = Serial.readString();
  if (text != 0)
  {

In the if statement, what, exactly, are you comparing? Do you know?

yes, if i write something on monitor, it prints that. Else, it doesn't print anything, that permit to don't have blank lines on monitor.