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 Remote Transport setting (TTL to USB cable) (Read 3679 times)
LLSB
Junior Member
**
Offline


Posts: 14
Location: Tucson, AZ
Joined: Jun 10th, 2014
Remote Transport setting (TTL to USB cable)
Jul 3rd, 2014 at 2:51pm
Print Post  
I'm a little confused with this setting listed in the  'Micro Debug" properties panel. The "Remote Transport" properties setting that works for my TTL to USB Cable is "HardwareSerial" which uses the RTS/CTS signal which are not being used, they are floating or not connected.

I thought "SoftwareSerial" would be the correct setting because RTS/CTS are not being used for software flow control, am I missing something?

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Remote Transport setting (TTL to USB cable)
Reply #1 - Jul 3rd, 2014 at 3:13pm
Print Post  
Hi,

Yes some minor confusion.

Flow control is not used by the Arduino in any situation.

HardwareSerial is the most common generic term for the built in Arduino Serial ports. Depending on your Arduino you will have 1,2,3 or 4+ Serial ports available to your code Serial.print(), Serial1.print(), Serial2.print() etc.

So HardwareSerial can handle high speeds because it is a part of the mcu. HardwareSerial is also the name of the class that the Arduino core uses to provide the Serial,Serial1 etc object. 

Actually more recent Arduino boards have started to use different classes for the various types of built-in ports such as UART, USART, USB etc. However this is unimportant and Visual Micro automatically uses the correct classes for debug based upon the selected board. This is why HardwareSerial is a generic term.

If you do not have available built-in Serial ports then we can BitBang rx/tx using a couple of spare digital pins reliably at speeds up to 56k. Arduino comes with a library called SoftwareSerial which allows the two digital pins and preferred speed to be specified in the code which then provides a custom serial object that can be used to .print() and .read(). It's not quite as good as HardwareSerial but it's okay and only requires the tx pin for non-breaking trace debug. 

If you select the SoftwareSerial option then Visual Micro will automatically include the Arduino softwareSerial library in the temporary (hidden) copy of the sketch (as happens with all debug commands) during compile. 

If you select HardwareSerial then you can use the RemotePort to determine which Serial object (or custom) Visual Micro will use for debug, or leave empty for the default of Serial. 

You also do not need to specify HardwareSerial, the RemoteTransport will default to HardwareSerial if it is not set. 

The speed will default to 115k. With SoftwareSerial it is best to set the speed to 56k or less.

The documentation is still being enhanced but there is some info between these pages

http://www.visualmicro.com/page/User-Guide.aspx?doc=Advanced-Serial.html
http://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Properties-Reference...
http://www.visualmicro.com/post/2013/04/26/How-to-debug-Arduino-on-a-different-u...
http://www.visualmicro.com/post/2012/05/06/Configure-debug-for-other-types-of-se...

Hope this makes sense



« Last Edit: Jul 3rd, 2014 at 4:10pm by Tim@Visual Micro »  
Back to top
IP Logged
 
LLSB
Junior Member
**
Offline


Posts: 14
Location: Tucson, AZ
Joined: Jun 10th, 2014
Re: Remote Transport setting (TTL to USB cable)
Reply #2 - Jul 3rd, 2014 at 3:51pm
Print Post  
Thanks again for the outstanding support! Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint