[Closed] WifiStatus example sketch not working with Arduino Yun and Due

Hello,

First time posting here.

A little background on the setup. I have an Arduino Yun set on top of a Due. the Power to the Due is via a 9V adapter into the barrel jack. I also have a USB connected to the Due. I am in a windows 8.1 environment. The Yun is connected to my home wifi.

I have attached the screenshot of the output showing on the serial monitor. Essentially it is garbage being sent to the serial monitor. I have read that this may be an issue with the grounding between the Yun and the Due however I was under the assumption that the boards are grounded since they share a common ground when the Yun sits on top of the Due.

I have watched this video many times however I am still not sure why it is not working.

Here is the sample script I am using, it is the same one that is provided in the examples section.

#include <Process.h>
#include <Bridge.h>

void setup() {
  checkForRemoteSketchUpdate();
  Serial.begin(9600);  // initialize serial communication
  while (!Serial);     // do nothing until the serial monitor is opened

  Serial.println("Starting bridge...\n");
  pinMode(13, OUTPUT);
  digitalWrite(13, LOW);
  Bridge.begin();  // make contact with the linux processor
  digitalWrite(13, HIGH);  // Led on pin 13 turns on when the bridge is ready

  delay(2000);  // wait 2 seconds
}

void loop() {
  Process wifiCheck;  // initialize a new process

  wifiCheck.runShellCommand("/usr/bin/pretty-wifi-info.lua");  // command you want to run

  // while there's any characters coming back from the
  // process, print them to the serial monitor:
  while (wifiCheck.available() > 0) {
    char c = wifiCheck.read();
    Serial.print(c);
  }

  SerialUSB.println();

  delay(5000);
}

Please help and thank you in advance.

wifistatus output.pdf (1.07 MB)

Closing up this thread thought I might reply to the post in case others were having trouble loading sketches onto the Yun Shield with the Due attached.

  1. Make sure the micro-USB is connected to the USB Native port on the Due. Select Board: Arduino Due (Native USB Port) and select Port: COMX(Arduino Due (Native USB Port))

  2. The power source to the Due is 9-12V (I used the DC barrel jack but you can wire up your own circuit to an external battery source)

  3. In the Yun Shield Wiki (link below) it states to "Bridge between DUE and Yun Shield works. Be aware if use console to see result in serial monitor. User should select port to Yun Shield port instead of Arduino Due USB port." I found this last statement to be untrue. I kept my port and board selected to what i stated in number 1 above and opened Serial monitor and it works for me.

http://wiki.dragino.com/index.php?title=Yun_Shield#Connect_to_Arduino_DUE