This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2148 usb controller

I use usb controller in Lpc2148. I get example code from keil website in HID class. I need adapt InReport up to 64 byte( InReport[0],InReport[1]....,InReport[64]) for send more data but I donn't good enough in C programming. How can I do? pleas give code. How can I develop application software in the host side. I need Visual Basic 6
thanks you

Parents
  • As we've observed on the sniffer, the enumeration seems to finish successfully.
    To confirm it, run these tests.

    Confirmation of Enumeration
    a) Windows Device Manager
    In the USB development, you should often summon up Device Manager.
    This is a tip to ease the procedure.

    1) Copy these two lines to a blank text file, and rename the file to, for example, DevManager.bat (any .bat will do)

    set devmgr_show_nonpresent_devices=1
    start devmgmt.msc
    


    2) Double click DevManager.bat, and Device Manager comes up.

    (Note) When you select 'Show hidden devices' from 'View' menu, you can see all device instances, even if it isn't currently connected. This function is convenient to clean up the device instances for lost devices.

    - Under 'Human Interface Device', can you see the device instance for your board?
    - Does the property window of the instance (double click the instance) show any trouble?

    b) USBView (or UVCView)
    USBView and UVCView are MS tool to show how Windows recognize the USB devices.

    The source code of the USBView is included in the WinDDK.
    C:\WINDDK\3790.1830\src\wdm\usb\usbview\

    MS distribute free WinDDK on this page.
    "Download the Windows Server 2003 SP1 DDK [236 MB ISO file]"
    www.microsoft.com/.../default.mspx

    SiLabs distributes USBView.exe on their KnowledgeBase page.
    See the right pane of this article for usbview.zip.
    "VID/PID/Descriptor Recovery"
    "
    "
    www.microsoft.com/.../WDKpkg.mspx

    - Can you see the descriptors of your device properly on the USBView screen?

    c) USB compliance test
    The USB compliance test (USBCV) is a good tool to debug the enumeration code, even if you don't apply the USB logo program of USB.org.

    USBCV R1.3
    www.usb.org/.../

    When you run this tool, attach PS/2 mouse to your PC.
    USB mouse (and keyboard) doesn't work while this tool is running.
    Laptop PC is a good platform to run this app, because it usually has PS/2 pointing device.
    Also, a high-speed hub has to be connected between your PC and the device.

    - Run Ch9 and HID test on USBCV

    Tsuneo

Reply
  • As we've observed on the sniffer, the enumeration seems to finish successfully.
    To confirm it, run these tests.

    Confirmation of Enumeration
    a) Windows Device Manager
    In the USB development, you should often summon up Device Manager.
    This is a tip to ease the procedure.

    1) Copy these two lines to a blank text file, and rename the file to, for example, DevManager.bat (any .bat will do)

    set devmgr_show_nonpresent_devices=1
    start devmgmt.msc
    


    2) Double click DevManager.bat, and Device Manager comes up.

    (Note) When you select 'Show hidden devices' from 'View' menu, you can see all device instances, even if it isn't currently connected. This function is convenient to clean up the device instances for lost devices.

    - Under 'Human Interface Device', can you see the device instance for your board?
    - Does the property window of the instance (double click the instance) show any trouble?

    b) USBView (or UVCView)
    USBView and UVCView are MS tool to show how Windows recognize the USB devices.

    The source code of the USBView is included in the WinDDK.
    C:\WINDDK\3790.1830\src\wdm\usb\usbview\

    MS distribute free WinDDK on this page.
    "Download the Windows Server 2003 SP1 DDK [236 MB ISO file]"
    www.microsoft.com/.../default.mspx

    SiLabs distributes USBView.exe on their KnowledgeBase page.
    See the right pane of this article for usbview.zip.
    "VID/PID/Descriptor Recovery"
    "
    "
    www.microsoft.com/.../WDKpkg.mspx

    - Can you see the descriptors of your device properly on the USBView screen?

    c) USB compliance test
    The USB compliance test (USBCV) is a good tool to debug the enumeration code, even if you don't apply the USB logo program of USB.org.

    USBCV R1.3
    www.usb.org/.../

    When you run this tool, attach PS/2 mouse to your PC.
    USB mouse (and keyboard) doesn't work while this tool is running.
    Laptop PC is a good platform to run this app, because it usually has PS/2 pointing device.
    Also, a high-speed hub has to be connected between your PC and the device.

    - Run Ch9 and HID test on USBCV

    Tsuneo

Children