This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3892 based board USB

Other Parts Discussed in Thread: AM3892

Hello, 

We have custom board based on TI AM3892 processor. I would like to use USB device with my board. HID (mouse, keyboard) and usb-storages for the first.

During startup everything seems to be okay, but when we trying to plug-in mouse or flash-storage we receive following output:

hub 2-0:1.0: over-current change on port 1

hub 2-0:1.0: over-current change on port 1

hub 2-0:1.0: over-current change on port 1

same situations is when we try to plug-in device in other usb port

hub 1-0:1.0: over-current change on port 1

hub 1-0:1.0: over-current change on port 1

hub 1-0:1.0: over-current change on port 1

when we plug-in usb keyboard same message doesn't produced

People said that usually overcurrent happens when short circuit within usb on board exists. Could you comment this please?

 

Best regards,

Anton

  • Hi Anton,

    We have two e2e threads which discuss this USB issue, please have a look:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/253740.aspx

    http://e2e.ti.com/support/embedded/linux/f/354/t/194938.aspx

    Regards,

    Pavel

  • Hi, Pavel 

    Pavel Botev said:

    We have two e2e threads which discuss this USB issue, please have a look:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/253740.aspx

    http://e2e.ti.com/support/embedded/linux/f/354/t/194938.aspx

    Thank to your advice we managed to find a mistake on board, USB was sealed in inversed manner.

     I managed to connect USB flash storage with FAT32 fs, mount it and even display a filce contained on storage.

    USB hub connected works good too.

    Usb mouse connected works properly in GUI Matrix application, but sometimes cursor in Matrix GUI Application disappears, what can be a reason?

    Finally keyboard doesn't works in Matrix GUI Application, and application and sometimes even entire device stucks when we try to print web-address in browser.

     

    Best regards,

    Anton 

  • Anton,

    Anton Skornyakob said:
    Usb mouse connected works properly in GUI Matrix application, but sometimes cursor in Matrix GUI Application disappears, what can be a reason?

    I have found something here: http://e2e.ti.com/support/embedded/linux/f/354/p/111342/395247.aspx#395247. I will make a test with USB mouse on my own 816X/389X EVM to see whether I can reproduce the issue. You can also ask this question in our Linux software forum, I think the question is more appropriate for this forum: http://e2e.ti.com/support/embedded/linux/default.aspx

    Anton Skornyakob said:
    Finally keyboard doesn't works in Matrix GUI Application, and application and sometimes even entire device stucks when we try to print web-address in browser.

    Can you check here:

    http://processors.wiki.ti.com/index.php/EZ_SDK_FAQ#My_USB_Keyboard_is_not_detected_by_QT_Applications._What_do_I_do.3F

    http://processors.wiki.ti.com/index.php/EZ_SDK_FAQ#What_is_supported_on_Web_Browser.3F

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/134042.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/135124.aspx

    http://processors.wiki.ti.com/index.php/Matrix_Users_Guide

    Regards,

    Pavel

  • Pavel,

    Regarding keyboard in matrix gui application issue:

    Andy Friedl said:
    I just added "export QWS_KEYBOARD=USB:/dev/input/event1" to the /etc/init.d/matrix-gui-e (e.g right after the export QWS_MOUSE_PROTO... line) and now I'm able to write/type with my USB keyboard (eg in the browser example ;) ).

    It hepls, so it seems to be Qt issue, and in fact keyboard works properly.

    Regarding mouse issue, I want to say additionally that in fact mouse work properly, the problem is that mouse cursor disappears when you move it out of screen and then trying to move back. I started new thread about in in Linux software forum. I will duplicate issue solving in this thread as soon as it will be solved.

     

    Best regards,

    Anton 

  • Anton,

    Regarding the mouse cursor issue, I made a test with my USB mouse and DM816X/AM389X EVM. I do not observed any issue with the mouse cursor. I move the mouse cursor out of the screen and then I move back on the screen, everything is working properly, the mouse cursor does not disappear. Do you have any console message when the mouse cursor disappear? I hope someone from our software team will provide you with hints soon.

    Meanwhile, below is what I have into the console, when I plug my USB mouse, do you have something similar?

    dm816x-evm login: root
    root@dm816x-evm:~# usb 1-1: new low speed USB device using musb-hdrc and address 2
    usb 1-1: New USB device found, idVendor=15d9, idProduct=0a4c
    usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    usb 1-1: Product:  USB OPTICAL MOUSE
    input:  USB OPTICAL MOUSE as /devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/1-1/1-1:1.0/input/input0
    generic-usb 0003:15D9:0A4C.0001: input: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-musb-hdrc.0-1/input0

    Best regards,

    Pavel

  • Pavel,

    Pavel Botev said:
    Do you have any console message when the mouse cursor disappear?

    No console messages. And in fact mouse moving still seems to be processed correctly, just it's cursor just doesn't displays. I infer it because after cursor disappears, when I'm clicking mouse right button, some right-button event image (refresh) appears on matrix gui application. And it looks like it's image position follows assumed mouse shiftings.

    Pavel Botev said:
    Meanwhile, below is what I have into the console, when I plug my USB mouse, do you have something similar?

    Yes, I have: 

    usb 1-1: USB disconnect, address 3
    usb 1-1: new low speed USB device using musb-hdrc and address 4
    usb 1-1: New USB device found, idVendor=046d, idProduct=c018
    usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 1-1: Product: USB Optical Mouse
    usb 1-1: Manufacturer: Logitech
    input: Logitech USB Optical Mouse as /devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/1-1/1-1:1.0/input/input3
    generic-usb 0003:046D:C018.0004: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-musb-hdrc.0-1/input0  

     

    Pavel, I suggest my matrix gui version is 1, while actual matrix gui version is 2. What version do u use? 

    Best regards,

    Anton 

  • Anton,

    I think I also use version 1. When boot up, I have the following label up in the middle: "Matrix Application Launcher p1".

    And according to the below wiki, this is indicating version 1:
    http://processors.wiki.ti.com/index.php?title=Matrix_Users_Guide&oldid=74107

    While for version 2, we should have" "Matrix Application Launcher v2", see http://processors.wiki.ti.com/index.php/Matrix_Users_Guide

    My previous test was with the latest EZSDK for DM816x device, which is 5.05.02.00. I will test with 5.04 to see if there will be any difference.

    Regards,

    Pavel

  • Pavel 

    Pavel Botev said:
    I think I also use version 1. When boot up, I have the following label up in the middle: "Matrix Application Launcher p1".

    Yes, I have the same.  Also following wiki you provided:

    http://processors.wiki.ti.com/index.php?title=Matrix_Users_Guide&oldid=74107

    there is two matrix gui v1 subversions: original and enhanced, I certainly have original version.

    Is it possible for me to use enhanced version or second version of matrix gui application? I downloaded matrix v2 sources, installed them, could you provide shell script for running matrix v2 if it not meaningless? Also it seems that I have to install matrix browser, is it possible?

     

    Best regards,

    Anton 

  • Anton,

    I tested with EZSDK 5.04. As expected, no difference, the mouse cursor does not disappear. The Matrix version in both EZSDK 5.04 and 5.05 is 1.3 :

    {EZSK}/example-applications/matrix-gui-e-1.3

    Check the {EZSK}/example-applications/matrix-gui-e-1.3/README file for how to build the Matrix GUI.

    The matrix-gui-e auto shell script is located at  {ROOTFS}/etc/init.d/matrix-gui-e

    Regards,

    Pavel

  • Hi, Pavel

    I've found some differences between your and my case. You run matrix gui by default shell script located in /etc/init.d/, don't you? I tried the same: I've connected full HD display to our board and mouse cursor behavior was absolutely proper, cursor didn't disappear.

    But I usually use DVI 1440x900 display with my board, so I run matrix gui manually by following script, provided by Margarita Gashova in  thread

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/255046/916293.aspx#916293

    and in this case we have mouse cursor behavior when it disappears.

     
    #!/bin/sh
    /etc/init.d/matrix-gui-e stop
    /etc/init.d/pvr-init stop
    echo 0 > /sys/devices/platform/vpss/display0/enabled
    echo 106500,1440/80/232/152,900/3/25/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 1 > /sys/devices/platform/vpss/display0/enabled
    fbset -xres 1440 -yres 900 -vxres 1440 -vyres 900
    /etc/init.d/matrix-gui-e start
    /etc/init.d/pvr-init start
    cat /sys/devices/platform/vpss/display0/mode

    Best regards,

    Anton 

  • Anton,

    Yes, following that script, my mouse cursor also disappears.

    Regards,
    Pavel

  • Pavel, 

    Pavel Botev said:
    Yes, following that script, my mouse cursor also disappears.

    Is there any workaround?

    Best regards,

    Anton 

  • Anton,

    I am not aware for any workaround. I will check with the SDK team and let you know if they know something about this.

    Best regards,

    Pavel

  • For using the Mouse with QT: 

    You should be able to use one of the following instead of specifying touchscreen

    export QWS_MOUSE_PROTO=Auto
    export QWS_MOUSE_PROTO=Auto:/dev/input/mice
    :http://processors.wiki.ti.com/index.php/How_to_use_a_Mouse_instead_of_the_Touchscreen_with_Matrix