Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Teensy - Emulated Serial Mode (Read 4023 times)
Pensive666
Newbies
*
Offline



Posts: 9
Teensy - Emulated Serial Mode
Feb 15th, 2016 at 8:53pm
 
Hi There

    Absolutely love visualmicro. Thank you.

    I have found a small hole in the Teensy support; The Serial monitor window works fine in standard USB serial mode as there is a COM port.

    In other Teensy modes (like USB MIDI), the Serial is actually emulated and there is no COM port. So the Serial monitoring breaks.

I post a link here to Paul Stoffregen giving more details.
https://forum.pjrc.com/threads/23942-Using-Serial-and-MIDI-USB-types-at-the-same...

Perhaps this has broken in this release, or perhaps not implemented yet, not sure.

A Work around for now is to run the arduino IDE at the same time, running the same sketch in the same mode - you can then flip over to see the serial monitor form the arduino IDE instead. I haven't tried debugging yet - I'm stilling working up to it! but I'd imagine there might be impacts there as well?

Thanks

Jon
Back to top
« Last Edit: Feb 15th, 2016 at 8:55pm by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10864
United Kingdom
Re: Teensy - Emulated Serial Mode
Reply #1 - Feb 15th, 2016 at 8:59pm
 
Thanks for the post it's a useful link.

It's not implemented yet and no debug won't work.

I only found out about it a month or so ago when I asked Paul what changes teensyduino makes to the arduino ide. I thought the that the new 1.6 boards manager system would result in a Teensy core alternative and that's when he told me about the emulated serial port.

So it's on the list and this post is a good reminder. I'll flag it. Thanks!
Back to top
« Last Edit: Feb 15th, 2016 at 8:59pm by Visual Micro »  
WWW  
IP Logged
 
Pensive666
Newbies
*
Offline



Posts: 9
Re: Teensy - Emulated Serial Mode
Reply #2 - Feb 15th, 2016 at 9:29pm
 
Visual Micro wrote on Feb 15th, 2016 at 8:59pm:
So it's on the list and this post is a good reminder. I'll flag it. Thanks!


No problem!

For the record - and the benefit of others reading this - there is another fix. You can duplicate the USB_MIDI type, and include the full USB_SERIAL support and the device will operate as both a MIDI device and a Serial COM port. This would be an immediate fix for both serial monitoring and debugging I'd guess. It's a hack, but it would do it.

BUT there is a tradeoff in performance and this is the reason the COM port is only emulated for these modes - the USB bus is not perfect and loading all this functionality up is not free.

So there are not one but 2 workarounds available.

I will do without debugging for now and use the arduino IDE serial monitor.

I just bought a commercial license anyway as visual micro has transformed arduino development into a professional experience for me Wink

Thanks Tim!

Jon (Paynetech)
Back to top
 
 
IP Logged
 
Pensive666
Newbies
*
Offline



Posts: 9
Re: Teensy - Emulated Serial Mode
Reply #3 - Aug 14th, 2016 at 9:01am
 
Visual Micro wrote on Feb 15th, 2016 at 8:59pm:
Thanks for the post it's a useful link.

It's not implemented yet and no debug won't work.

I only found out about it a month or so ago when I asked Paul what changes teensyduino makes to the arduino ide. I thought the that the new 1.6 boards manager system would result in a Teensy core alternative and that's when he told me about the emulated serial port.

So it's on the list and this post is a good reminder. I'll flag it. Thanks!


Just for the record, I havent tested it yet - but apparently the Teensyduino package now features versions of the USB Midi with a hardware serial port out of the box, which means visualmicro will work fine without any further mods and this low priority feature can be removed from your roadmap.

I will confirm here once I've tested this.
Back to top
 
 
IP Logged
 
Pensive666
Newbies
*
Offline



Posts: 9
Re: Teensy - Emulated Serial Mode
Reply #4 - Aug 14th, 2016 at 9:26am
 
Confirmed with Arduino 1.6.9, and teensyduino 1.29, there are two new board types available:
  • Serial and Midi
    Serial + Keyboard + mouse +Joystick


I'll confirm operation later

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



Posts: 10864
United Kingdom
Re: Teensy - Emulated Serial Mode
Reply #5 - Aug 14th, 2016 at 1:13pm
 
Interesting, look forward to hearing the result. Thanks very much for the post.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print