Quantcast
Viewing all articles
Browse latest Browse all 18089

Serial1 Stopped Working on Intel Edison

To all,

 

I have the following setup:

     - Intel Edison running the latest firmware

     - Arduino shield breakout board for Edison

     - Adafruit GPS talking at 9600 baud on Serial1 (Pins 0 and 1)

     - Bus Pirate monitoring the serial data stream

 

I had this working the other day:

 

/*

Basic code to troubleshoot the Adafruit Ultimate GPS

Connections:

  - Vin - +5

  - GND - GND

  - Rx to RX (pin 0)

  - TX to TX (pin 1)

Not much else required.

 

 

*/

 

 

void setup() {

  // put your setup code here, to run once:

  Serial.begin(9600);

  Serial1.begin(9600);

  Serial.println("GPS Serial1 Test Code");

  delay(1000);

}

 

 

char c;

 

 

void loop() {

  // put your main code here, to run repeatedly:

  while(Serial1.available()) {

    c = Serial1.read();

    Serial.print(c);

  }

  delay(100);

}

 

but it no longer works - nothing changed and the bus pirate shows the correct serial flow.

 

What to do?

 

Chip


Viewing all articles
Browse latest Browse all 18089

Trending Articles