Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 31 of 31

Thread: MTP Responder Contribution

  1. #26
    Quote Originally Posted by murpia View Post
    See here for how to create a composite MTP and CDC device, which sounds to me like what you need:

    https://forum.pjrc.com/threads/44569...l=1#post145192

    Regards, Ian
    No, it should be using the "emulated serial" automatically.

  2. #27
    Junior Member
    Join Date
    Jun 2017
    Posts
    8
    No, emulated serial is for program downloads only. If you look at all the other 'Serial + ...' options in usb_desc.h you'll see they implement CDC in place of SEREMU.

    Compare 'MIDI' to 'Serial + MIDI' as an example. Open the basic Arduino example sketch 'AnalogReadSerial'. The serial monitor only works if you select 'Serial + MIDI'. It doesn't for 'MIDI'. At least not on my PC with a Teensy 3.6. You can see in Windows device monitor that the com port is only there for 'Serial + MIDI'.

    Then look into 'usb_desc.h' and you'll see that 'MIDI' implements emulated serial while 'Serial + MIDI' implements CDC. More details in my other post.

    Hopefully Paul can correct any errors in my explanation...

    Regards, Ian

  3. #28
    No need to bother Paul.
    The "emulated serial" is a simpler and non-standard (I think) usb serial port implementation. It still works with the serial monitor, but will not show up as a CDC device. (Because it's not.)
    If it doesn't work on your machine, that's a bug.

  4. #29
    Junior Member
    Join Date
    Jun 2017
    Posts
    8
    Possibly 'emulated' just works in the Arduino IDE serial monitor, then?

    I needed a real COM port to communicate with a Windows program, hence adding CDC to the MTP example.

    Regards, Ian

  5. #30
    Will this only work with 3.6 or will it work with the 3.2?

  6. #31
    Quote Originally Posted by bdoan View Post
    Will this only work with 3.6 or will it work with the 3.2?
    It should work on any of the 3.x. I wrote it using a 3.2.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •