OCG USB Virtual COM port

Home Forums MultiConnect OCG OCG USB Virtual COM port

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4575
    Mike Goulet
    Participant

    Jesse,

    OK, I found the section you were talking about. Not clear how solid the Gadget driver is, the Multitech doc indicates it may not work unless the device boots up already connected (we really require hot-plug support). Also, Gadget online docs indicate no support for flow control (presumably HW or SW). Not sure if that’s an issue for us, though I’m sure we could design for use over an unreliable link (probably the right thing to do anyway). We’ll give it whirl.

    Thanks for the help!

    -Mike

    #2975
    Mike Goulet
    Participant

    Hi,

    Is there a way to make the OCG module look like a virtual COM port to an attached PC via the USB 2.0 device interface?

    Looks like the Linux USB gadget framework (http://www.linux-usb.org/gadget/) might help, but I was hoping there might be some “canned” solution included with the OCG or its SDK.

    Thanks,

    -Mike

    #4574
    Jesse Gilles
    Blocked

    Hi Mike,

    The USB device port on the OCG acts as a serial COM port by default (using USB gadget). It is available on the OCG side as /dev/ttyGS0 — by default the firmware runs a getty (login terminal) on it. If you disable the getty terminal, then you can have your software use /dev/ttyGS0 on the OCG and it will show up as serial port on the attached PC.

    Read the “Accessing Hardware Interfaces” page for your device, and you should find a section called USB Device.

    Jesse

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.