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 Port (Read 2718 times)
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Serial Port
May 6th, 2016 at 5:14pm
Print Post  
Hello,

VM is using COM4 to communicate with the Ardruino.   

While debugging my app, is there a way for me to send ASCI data from the keyboard to that same port (COM4)?

If so, can you give me the instructions...

I have another app which could send data, but when starting it, it can not send to COM4 (it is busy).

Thanks much.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Port
Reply #1 - May 6th, 2016 at 6:43pm
Print Post  
Hi,

Yes only one windows app can use the COM port but you have a couple of options that might work for you.

1)

The Visual Micro debugger always opens the Serial Monitor. The single line text box at the top of the monitor allows the keyboard to be used to send data to the Arduino.

Sending data disrupts break points that stop/halt. Non-stop break points (messages, charts and watch expressions) are okay. The reason being that when the arduino stops at a breakpoint visual micro waits for a serial command to let the arduino know it can continue. So at a stop/pause point, visual micro is looping and your code is not running.

2)
Alternatively you can use a different serial port for debugging if you hardware has more than one serial port. If not then, if the hardware supports software serial, you can use one or two digital pins along with the SoftwareSerial debugger property. 

With SoftwareSerial, one digital pin gives trace only debug. (no pause, no change expression values), two pins gives "full" debug..

You can read about how to configure the debugger to use a different port or digital pins in this article in the documentation section of visualmicro.com http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Por...

You will probably need an usb>ftdi cable for 1) and 2) but you will only use up to two pins of the cable.

  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Serial Port
Reply #2 - May 6th, 2016 at 6:47pm
Print Post  
Thanks very much for your prompt reply. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint