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 Serial Monitor problem upon receiving (Read 4339 times)
simallie
Newbies
*
Offline


Posts: 2
Joined: Feb 3rd, 2012
Serial Monitor problem upon receiving
Feb 11th, 2012 at 11:37pm
Print Post  
It seems that when a serial communication is received and printed in visual studio, the data is also sent back to the arduino through the serial port.

For example, let say all what my arduino does is receive a char and when this char is equal to 'A' it does "Serial.println("A");"

The expected result would only be "A" but actually, what I get is "A" being spammed in the visual micro monitor as if when the A is printed in the monitor it is also sent back to the arduino.

I tried changing the serial.println so it print B instead and this time the result is as expected (because of the if Serial.read() == 'A').

The only work around i've found is by starting the official arduino IDE and using its own monitor.

I have VS 2010 ultimate and the 1.0 arduino IDE version

If someone has a solution, I would appreciate
« Last Edit: Feb 11th, 2012 at 11:38pm by simallie »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor problem upon receiving
Reply #1 - Feb 11th, 2012 at 11:47pm
Print Post  
sounds like your serial echo is switched on. "Echo" is a drop down list of serial ports on the serial window. Switch it to "None". You might need to make the window a bit wider to see the "Echo" label Smiley

It's easy to confuse the Echo list for the setting of the actual port for the serial viewer. However, that is done when you select a port to monitor. 

To change serial port close the window or selected a different port from the visual micro tool bar and click the monitor button.


Let us know how you get on
« Last Edit: Feb 11th, 2012 at 11:50pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
simallie
Newbies
*
Offline


Posts: 2
Joined: Feb 3rd, 2012
Re: Serial Monitor problem upon receiving
Reply #2 - Feb 12th, 2012 at 1:32am
Print Post  
Works like a charm ! Don't know why I haven't thought of it earlier ^^

Thank alot  Smiley
« Last Edit: Feb 12th, 2012 at 4:15pm by simallie »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor problem upon receiving
Reply #3 - Feb 12th, 2012 at 2:59am
Print Post  
thanks for the note. 

the next version shows the echo port in the serial window title (if it is set)
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint