Loading ...
Sorry, an error occurred while loading the content.

RadioShield 2.1

Expand Messages
  • Bigfoot Jim
    Hi guys, I hope I m in the right group as there is not a specific group for the RS, and Scott said that the 2.1 is basically an OTUSB.  If not, please forgive
    Message 1 of 41 , Jan 22, 2014
    • 0 Attachment
      Hi guys,

      I hope I'm in the right group as there is not a specific group for the RS, and Scott said that the 2.1 is basically an OTUSB.  If not, please forgive me and kindly point me in the right direction.

      I have the brand new RadioShield 2.1 and have a few questions.  Scott says the interface is the same as the RS1, so maybe somebody has run into this and can shed some light.  I can successfully transmit using the example from the wiki, but have not been able to integrate my $GPRMC data into the message.  I am attempting to accomplish this with the GPS connected to the Arduino instead of the RS, as I am also logging data to a microSD card.  I'm not certain if I'm looking at an Arduino code problem on my end, a limitation of the RS, or possibly an issue with UI-View.

      Here is the relevant code (on a Mega 2560R3, BTW):

      while (Serial1.available()>0)  // if serial data available from GPS
      {        
          sizeBuffer = Serial1.readBytesUntil('\n', inBuffer, BUFF_MAX);    // read one NMEA line from GPS until end of line
         
      Serial.print("!>The GPS says:");                                                                                //BEGIN MESSAGE BUT DON'T SEND YET...
      Serial.write(outBuffer, sizeBuffer);                                                    //add $GPRMC sentence
      Serial.print("\r\n");                                                                            //    ...SEND CR/LF TO COMPLETE AND TRANSMIT PACKET

      With that code, I receive the following in UI-View:
      >The GPS says:»ùé-Tü'W¢j++qeéǦ¬=¢-!'8+N

      Additionally, if I manually plug a static $GPRMC sentence into the code to transmit, it is cut off and only displays about half the characters.
      Serial.write logs the full, complete and correct $GPRMC sentence to both an SD card and to the Serial Monitor in the IDE.

      So, the questions:

      Can the GPS be kept separate from the RS2.1, and be passed the relevant sentence as a variable?

      If so, does anybody have an example?

      If not, how do you connect the GPS to the RS2.1? (neither the schematic for the RS, or OTUSB, have markings that match what's on the RS2.1, and nothing in the example code indicates a connection via soft serial, etc.).

      Thanks & 73s
      jim
      KJ6TSV
    • Scott Miller
      I did. I also found a partially-built GM2 (it s missing the transistors for the RS-232 side) and hooked it up to an RS2. It s working as expected - had to
      Message 41 of 41 , Jan 31, 2014
      • 0 Attachment
        I did. I also found a partially-built GM2 (it's missing the transistors
        for the RS-232 side) and hooked it up to an RS2. It's working as
        expected - had to set BBAUD to 9600 but the RS2 immediately started
        blinking.

        Just installed the transistors and it's still working properly.

        Scott

        On 1/31/2014 11:45 AM, bigfoot_jim@... wrote:
        > Scott,
        >
        > Any progress on the RS & GM2 yet? Did you get the information I sent
        > you earlier?
        >
        > thx,
        > jim
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.