Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Dec 2015 09:33 AM by  Scott
How to use J19 (USB OTG) for USB communication?
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Derek Valleroy
New Member
New Member
Posts:26


--
06 Nov 2015 09:51 AM
    Hello,

    Does anyone have advice for using J19 (USB OTG) for communicating with a USB device, like a HID?

    There are forum posts about using this for battery charging, but I need to get actual data transfers working. Other USB ports on the kit go through a USB controller chip, which has driver support in LTIB. However, I couldn't find a configuration in LTIB that supports the J19 (USB OTG) port.  J19 appears to go to the PMIC USB transceiver on the SOM. There is an option for enabling the ULPI interface between the PMIC and the SOM, but I'm still not able to see the device attach in Linux. I think I need to enable another driver, or maybe write my own (hopefully not) .

    Is there documentation from LogicPD or maybe the PMIC manufacturer that anyone knows about? Can a generic USB driver be used from LTIB?

     FYI, we're using the 2.4-4 BSP.

     -Derek

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    06 Nov 2015 10:05 AM
    Derek,

    The DM37x Linux Software Test Plan section Test 15 USB OTG Test explains how to connect to HID devices.

    You can download the STP from our support website. Here is the link below.

    DM37x Linux BSP Test Results
    https://support.logicpd.com/DesktopModules/Bring2mind/DMX/Download.aspx?portalid=0&EntryId=1400

    Thanks,
    Brad
    Megan Briscoe
    New Member
    New Member
    Posts:4


    --
    09 Nov 2015 05:57 PM

    Is there a Kernel configuration option that allows the 100mA limit to be adjusted?  We are working on custom hardware but still get the message "rejected 1 configuration due to insufficient available bus power".

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    10 Nov 2015 07:08 AM
    Unfortunately, the limit is a hardware limit on the PMIC. I would suggest using a power USB Hub. If that doesn't work for you, our Design Checklist (http://support.logicpd.co...talid=0&EntryId=586) has an alternative suggestion in Section 2.11.

    adam
    Scott
    New Member
    New Member
    Posts:8


    --
    12 Dec 2015 03:00 PM

    We are also interested in options to increase the 100mA current limitation. I can't seem to get the link above to work. Can you post a new link or what the suggestion is. We would like to integrate a solution as small as possible so not sure if the best solution is to just integrate a USB controller chip if using in host mode with more than 100mA current required. We know we can override this current limit but assume this may risk damaging the PMIC. Is there any documentation on the PMIC to see if there is margin on this limit as the device still seems to work if we override it?

    Scott
    New Member
    New Member
    Posts:8


    --
    12 Dec 2015 03:14 PM

    Just found this other post (https://support.logicpd.com/TDGForum/tabid/124/aft/1945/Default.aspx). Do you know if integration with this chip automatically handles the USB power negotiation during device detection to increase the limit above 100mA so you will not get the error on plug in rejecting the device because of the request for more than 100mA current (I assume not)? Or is there another way to fix this once you integrate with this chip?

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    14 Dec 2015 07:11 AM
    The checklist link is here: https://support.logicpd.com/DesktopModules/Bring2mind/DMX/Download.aspx?portalid=0&EntryId=586

    You'll need to be logged into the support site and have a registered SOM in order to view it. Section 2.11 shows a schematic diagram. I'll check on whether or not there needs to be a software patch to go along with it.

    adam
    Scott
    New Member
    New Member
    Posts:8


    --
    14 Dec 2015 09:33 AM

    Thanks Adam. That is very helpful. Will check back here for the update on whether or not a software patch is needed. If you prefer to exchange via email I have a different address than the one I registered so let me know.

    You are not authorized to post a reply.