awardblvr:
OK I've read many forum posts, and FAQ's and examples.... Sorry for being clueless....
- Can I download a sketch via WiFi, reset/ start that sketch and see debug output (Serial.print() or Console.print() remotely without physically touching the Yun?
Yes, see answers below....
awardblvr:
2. I've downloaded Blink via WiFi... It works. I downloaded WiFiStatus.ino but see no output on the Serial Monitor window (using the port selection: "myYun at 192.168.1.48". But I DO see the output when I use the serial monitor downloaded and connected as /dev/tty.usbmodem411.
Yes, this is what should happen.
awardblvr:
3 I tried to connect to the serial port by ssh root@... then once in, entering "telnet localhost 6571" and all I get is "telnet: can't connect to remote host (127.0.0.1): Connection refused". What the heck is up with that. Shouldn't that connect to the serial port? Is there some web page that will explain thin to me? The Getting Started is superficial at best. And yes, during this time I do NOT have the Serial Monitor window open.
No comment, I haven't played with this.
awardblvr:
4. What is the difference between Serial.print() and Console.print()?
Serial works over the USB, Console works over the WiFi or Ethernet.
Here are a couple of examples that may help understand-
Here is a modified Blink sketch that reports led status through the USB.
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
Serial.begin(115200);
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH);
Serial.println("On"); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW);
Serial.println("Off"); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
You can upload through either USB or WiFi but after that you must have the Yun attached to the computer through a USB cable, select the Port relevant to USB in the Tools menu (for me this is /dev/ttyACMx, I use Ubuntu, it looks like you are on another distro)
The sketch will report on/off in the Serial Monitor working through the USB
Here is a sketch that does the same just over WiFi/Ethernet-
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
#include "Console.h"
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
Bridge.begin();
Console.begin();
while (!Console);
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH);
Console.println("On"); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW);
Console.println("Off"); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Again, you can upload through either USB or WiFi but after that you don't need to have the Yun attached to the computer through a USB cable, select the Port relevant to WiFi or Ethernet in the Tools menu (for me this is <your yun's name>@ 192.168.xxx.xxx (Arduino Yun)
The sketch will report on/off in the Serial Monitor working through the WiFi or Ethernet.
You can ssh into the Yun at this point and the serial connection is at /dev/ttyATH0 but I haven't worked out the details of baud rate etc yet, you can see that it is trying by using cat /dev/ttyATH0
awardblvr:
Or, more importantly, where in the docs is this explained?
Anyone have any ideas?
No slight intended to the Arduino and Yun bunch, but documentation doesn't cover everything about the Yun. In their defense, there is A LOT of stuff to explain and I think they have/are doing an excellent job.