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

USB Communication

Hello,
i am new to LPC1768 and also in USB development. i want to send some text or textual data from my computer (working as host) to USB device on LPC1768 and vice versa. Please guide me how to start my development. I have read about the USB functionality. I have come to know about the classes that is used for development like Audio, HID etc,

i think that in my case USB CDC is best. Please guide me how to write the CDC Class. I have used the example that come up with LPC1768 but its not connecting with my computer as driver not installed successfully.
Please Help me
Thanks in advance

Parents
  • One more question from you. can i use this driver to communicate directly with USB Device instead of making it a virtual com port and send data from UART to USB device. communicate directly means that i want an application running on my PC and sending data to usb port and that data is directly received by USB Device in LPC1768. Please help me i am little bit confused in this.

Reply
  • One more question from you. can i use this driver to communicate directly with USB Device instead of making it a virtual com port and send data from UART to USB device. communicate directly means that i want an application running on my PC and sending data to usb port and that data is directly received by USB Device in LPC1768. Please help me i am little bit confused in this.

Children
  • Your device is mounted by Windows and exposed as an Virtual COM port meaning you from Windows communicate as if it were an UART port, embedded device gets data through USB and the example transfers that to physical UART on embedded device but you can do anything with received data.

  • Thanks for replying.

    i update the driver and give them path to project folder but it gives me error that no drivers found.

    i am working on windows 7 64-bit.
    below i have attached my .inf file. Please help me.

    ;
    ; Keil - An ARM Company  Comunication Device Class driver installation file
    ; (C)2007 Copyright
    ;
    
    [Version]
    Signature="$Windows NT$"
    Class=Ports
    ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
    Provider=%Keil%
    ;LayoutFile=layout.inf
    DriverVer=01/06/07
    
    [Manufacturer]
    %Keil%=DeviceList
    
    [DestinationDirs]
    DefaultDestDir=12
    
    [SourceDisksFiles]
    
    [SourceDisksNames]
    
    [DeviceList]
    %DESCRIPTION%=LPC17xxUSB, USB\VID_1FC9&PID_2002
    
    ;------------------------------------------------------------------------------
    ;  Windows 2000/XP Sections
    ;------------------------------------------------------------------------------
    
    [LPC17xxUSB.nt]
    include=mdmcpq.inf
    CopyFiles=DriverCopyFiles
    AddReg=LPC17xxUSB.nt.AddReg
    
    [DriverCopyFiles]
    usbser.sys,,,0x20
    
    [LPC17xxUSB.nt.AddReg]
    HKR,,DevLoader,,*ntkern
    HKR,,NTMPDriver,,usbser.sys
    HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
    
    [LPC17xxUSB.nt.Services]
    include=mdmcpq.inf
    AddService=usbser, 0x00000002, DriverService
    
    
    [LPC17xxUSB.nt.HW]
    include=mdmcpq.inf
    
    [DriverService]
    DisplayName=%DESCRIPTION%
    ServiceType=1
    StartType=3
    ErrorControl=1
    ServiceBinary=%12%\usbser.sys
    
    ;------------------------------------------------------------------------------
    ;  String Definitions
    ;------------------------------------------------------------------------------
    
    [Strings]
    NXP="NXP - Founded by Philips"
    DESCRIPTION="LPC17xx USB VCom Port"
    
    

    is it support for windows7?? or where is the problem or i am doing something wrong??

  • I suggest trying latest middleware.

  • Thank you so much.

    Please send me latest package of examples. i have old one. if you have link otherwise please send me latest package on my id.
    malik_naveed91@yahoo.com