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 funny abbreviations? (Read 3832 times)
SeanMitchell
Newbies
*
Offline


Posts: 4
Joined: Mar 27th, 2017
Serial Port funny abbreviations?
Mar 27th, 2017 at 2:42pm
Print Post  
When I read information from my Arduino in the serial port monitor, everything is how it should be but when I read it from a C# form I created then some funny abbreviations appear before and after?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Port funny abbreviations?
Reply #1 - Mar 27th, 2017 at 2:58pm
Print Post  
Hi,

The debugger uses serial and can share a serial port in some situations. You are seeing "unknown" debug packets.

You are sharing the port because your code also sends serial. Sharing the port requires a little more care than normal.

Your code also reads the serial which can cause problems. You should make sure that "vMicro>debugger>trace only" mode is enabled so your breakpoints will not expect to stop. Actually the best solution is to configure the debugger for software serial or on a different serial port.

If your own code sends serial without line feeds (println()) then this will certainly cause visual micro to miss debugger packets. In that case it will show the "unknown packet" in the serial monitor. 

  
Back to top
IP Logged
 
SeanMitchell
Newbies
*
Offline


Posts: 4
Joined: Mar 27th, 2017
Re: Serial Port funny abbreviations?
Reply #2 - Mar 27th, 2017 at 4:58pm
Print Post  
Hello Administrator

"Actually the best solution is to configure the debugger for software serial or on a different serial port."

I went through all the option properties and could not find a way to configure debugger for software serial or changing the port. would you know of a tutorial that could assist one in doing this?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Port funny abbreviations?
Reply #3 - Mar 27th, 2017 at 5:05pm
Print Post  
Hi

1)
The advanced documentation for different ports or pins is here and is required for software serial.

or

2)
If you have a spare real/hardware serial port then you can take the easier route and use the vMicro>Debugger menu. Set the "override remote port" to "Serial2" or other serial port and set the "override local port" to the COM port connected to the remote port (normally an ftdi type of connection)


note

Don't confuse method 1) and method 2). If you use method 1) then make sure any changes you made to the "vMicro>Debugger" menu are cleared by clicking the "Reset these Settings" button on the same menu.
  
Back to top
IP Logged
 
SeanMitchell
Newbies
*
Offline


Posts: 4
Joined: Mar 27th, 2017
Re: Serial Port funny abbreviations?
Reply #4 - Mar 28th, 2017 at 4:37am
Print Post  
Thank you for your help, I will attempt it today, appreciate it.
  
Back to top
 
IP Logged
 
SeanMitchell
Newbies
*
Offline


Posts: 4
Joined: Mar 27th, 2017
Re: Serial Port funny abbreviations?
Reply #5 - Mar 28th, 2017 at 7:16am
Print Post  
Thank you, it works, Finally!!!! Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint