Just started getting my feet wet with communicating with the Yun over WiFi and using Console. I'm able to Console.println successfully and can view the output in the Serial Monitor. However, when I try to open the Serial Plotter, I get the error "Error opening serial port '192.168.8.129'. (Port not found)". I am then unable to open the Serial Monitor again, as it complains the Serial Plotter is open, until I restart the IDE.
The sketch I am using works over USB using Serial.println using both the Serial Monitor and Plotter. I'm not providing many details as the reason this is happening may be a simple "Serial Plotter doesn't work with Console because of X" and that'll be the end of that. However, I'm happy to provide more details if that's not the case.
Thanks.
Think you DO need to supply details.
The reason being others may have YUN's to test your sketches etc etc etc.
Without details its not really viable to provide much more than a guess.
Sketches, OS, Any other external programs you may have tried, list of what is connected to the YUN and HOW ?
From what you have said my guess is that you tried to open two serial instances to a single serial stream and AFAIK the IDE wont do that.
Continuing with my guess I can say that some EXTERNAL serial terminal programs allow you to "sniff" the stream in a "man in the middle" scenario to allow two instances of a serial stream to be used.
Sure, that's no problem.
I'm running Mac OS 10.12.2 and Arduino IDE 1.8.2. I've got an arduino.org Arduino Yun that was factory reset just before starting all of this. The Yun is connected to my laptop via micro USB. There are no other physical connections to the Yun. In addition, the Yun is connected to my wifi network which my laptop is also connected to.
Below is a simplified sketch which gives the error.
#include <Console.h>
void setup() {
Bridge.begin();
Console.begin();
while (!Console) {
}
}
void loop() {
Console.println(33);
}
Here are the steps I take:
- Restart IDE with Yun disconnected.
- Connect Yun to laptop using Micro USB. Wait for it to connect to WiFi (about 1 minute). The correct network port is automatically selected.
- Upload the sketch. Enter password to the Yun when prompted.
When I complete the above steps and then open the Serial Monitor, I see 33 repeatedly as expected. When I complete the above steps and then open the Serial Plotter, I get an orange error saying "Error opening serial port '192.168.8.129'. (Port not found)". After each IDE restart, I only try opening the monitor or plotter, so I suspect it isn't an issue with trying to open two serial streams (but I'm happy to be corrected if I'm off the mark).
I haven't tried any other external programs (yet) as I've had no problems doing similar things using Serial over the USB cable. It would be preferable to get this working within the IDE.