Project

General

Profile

Can't make the serial reading with my Jeenode. Any help for a rookie ?

Added by baresse over 7 years ago

I’ve done something like the thing you can see in this page : http://blog.cquad.eu/2012/02/02/recuperer-la-teleinformation-avec-un-arduino/
and when I run on my arduino the code :

#include 

SoftwareSerial cptSerial(2, 3);

void setup() {
        Serial.begin(1200);     // opens serial port, sets data rate to 1200 bps
        cptSerial.begin(1200);
}

void loop() {

  if (cptSerial.available())
    Serial.write(cptSerial.read() & 0x7F);
}

Everything works perfectly. The issue comes when I try to do the same with JeeNode instead of an ardiuno. I can’t get anything….
Do you have any idea ?

Thanks in advance
Best regards,


Replies (6)

RE: Can't make the serial reading with my Jeenode. Any help for a rookie ? - Added by JohnO over 7 years ago

Are you still using pins 2 & 3 ? Which processor have you been using on Arduino and which JeeNode do you have?

RE: Can't make the serial reading with my Jeenode. Any help for a rookie ? - Added by baresse over 7 years ago

I’ve used an Arduino Uno rev3 and for the Jeenode I’ve tried with the jeenode V6 (http://jeelabs.com/products/jeenode) and with à Jeenode USB (http://jeelabs.com/products/jeenode-usb).

For the pins I’ve tried several case.
In first try I’ve plugged the wire plugged on pin 2 of the arduino on the pin RX of the PSIX connector. Then i tried the pin TX and then each DIO of each Port 1-4

RE: Can't make the serial reading with my Jeenode. Any help for a rookie ? - Added by tht over 7 years ago

Did you check the pinout of the JeeNode here? http://jeelabs.net/projects/hardware/wiki/Pinouts

There you can see the Arduino numbering for all the JeeNode ports. JeeNode DIO1 is not Arduino Digital pin 1.

RE: Can't make the serial reading with my Jeenode. Any help for a rookie ? - Added by JohnO over 7 years ago

baresse did you know that there is a hardware serial port on the JeeNode V6.

RE: Can't make the serial reading with my Jeenode. Any help for a rookie ? - Added by tht over 7 years ago

But only one and this is used to upload Sketches through the FTDI port. I also prefer to use this for debugging but that’s just my personal preference.

RE: Can't make the serial reading with my Jeenode. Any help for a rookie ? - Added by baresse over 7 years ago

I found my problem above. I was trying to debug the serial messages on the same RX chanel… Now I put my jeenode blindly and send via RF all incoming characters coming from serial RX (hardware), i can get the information.

Thanks anyway for helping. I keep go on this project until the end. ;)

    (1-6/6)