Console Versus Serial1

I have a Arduino Yun and I'm trying to send ASCII data through the Serial1 port. Here is my code. The console portion of the cod works, however the Serial1 or Softwareserial does not properly work.

#include <Console.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(8,9);

// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 2;
int ledPin = 13;

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  while (!Console){
  // make the pushbutton's pin an input:
  pinMode(ledPin, OUTPUT);
  pinMode(pushButton, INPUT);
  // Feedback Serial communication is setup correctly

// the loop routine runs over and over again forever:
void loop() {
  // read the input pin:
  int buttonState = digitalRead(pushButton);
  // print out the state of the button:
   if (buttonState == HIGH) {
    // turn LED on:
    digitalWrite(ledPin, HIGH);
  else {
    // turn LED off:
    digitalWrite(ledPin, LOW);
  delay(1);        // delay in between reads for stability

Arduino Serial Monitor displays the string "Connected". RealTerm displays the string "üonectWLø".

Why are Serial1 and mySerial transmissions being lost?

I'm not really a guru of those serial things and I've not fully understood what you're trying to do but here it is what I have done in some experiments:

  • read Serial via Arduino IDE Serial monitor
  • read Serial1 via /dev/ttyATH0 though nodes/python inside the onboard linux machine (be sure that you have disabled the Bridge library commenting out the line in /etc/inittab)
  • read Console via "telnet localhost 6571" from the onboard linux machine (after the ssh access)
  • I have no previous experience with SoftwareSerial in the yun

Hope it helps!

Thank you for your replay. I will work with your suggestions.

My objective is to ensure I am properly sending and receive data. I have two devices I want to collect data from with my Arduino Yun.

This post is at the very beginning of this effort. Right now I'm making sure I can use the libraries correctly.

Any other insight?