Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Unable to read console with Yun (Read 4869 times)
GKinAZ
Junior Member
**
Offline


Posts: 37
Location: Arizona
Joined: Jan 29th, 2014
Unable to read console with Yun
Nov 11th, 2015 at 5:46pm
Print Post  
Just now getting back into my Yuns. On my Windows 10 PC, installed Atmel 7 and have latest VM (1.1511.11). Using Arduino 1.6.4. Finding that I cannot read console. Although, using the serial monitor window in the Arduino IDE, console is read and outputted to both Arduino and Atmel/VM IDEs. The sketch:
Code (C++):
#include <Bridge.h>
#include <Console.h>

void setup()
{
     Bridge.begin();
     Console.begin();
     while(!Console);
     Console.println("Console started");
     /* add setup code here */
}

void loop()
{
     if(Console.available() > 0){
           Console.println("read character");
           char c = Console.read();
           Console.println(c);
     }
     /* add main program code here */

}
 



Also with new project all the bridge code is unrecognized (wavy red underlines), but disappears when opening existing project.
What do I need to do to read console with my Yun?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to read console with Yun
Reply #1 - Nov 12th, 2015 at 10:16pm
Print Post  
Hi,

1)
After adding the Bridge and Console libraries to a new sketch did you click "Save" or "Build". This will ensure that library paths are updated for intellisense.

2)
Did you select an ip address in the ports list in Visual Micro? 
Can you see an ip address? 
Do you know the ip address?

Thanks
  
Back to top
IP Logged
 
GKinAZ
Junior Member
**
Offline


Posts: 37
Location: Arizona
Joined: Jan 29th, 2014
Re: Unable to read console with Yun
Reply #2 - Nov 12th, 2015 at 11:39pm
Print Post  
Correct board and IP address (happens to be 192.168.1.2) are selected. Sketch uploads. Serial monitor window IP address is indeed 192.168.1.2. Console.print() does write to the serial monitor, but Console.available() doesn't seem to be responding in VM. And, like I said, inputting into the Arduino IDE monitor, running in parallel with VM, will have output of Console.read() on both the Arduino and VM monitor window.

Re: Underlines. Save or Build do not clear Bridge, etc. underlines in New Project. A very minor issue as is cleared first time you Open the project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to read console with Yun
Reply #3 - Nov 13th, 2015 at 12:56pm
Print Post  
Ah okay sorry being a bit dim. The ip "send" is not implemented yet in Visual Micro so, yes, you need to use a different terminal viewer. For the same reason the debugger will only work in trace only mode.

If there is popular demand for the Yun wifi send and debug then I will re-look at it. I found upload to be so slow and free memory on the yun to be so small that I didn't put much effort into it at the time. 

It's possible the esp8266 uses the same system so that would be a reason to continue with this work.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint