We are using OEM QVGA BaseBoard (LPC2478 based) by Embedded Artists as a USB host. Our slave is a Kleindiek Nanocontroller running on 115200 baudrate. The Controller requires no special protocol to send it data. The PC has ben used to send commands (as ASCII characters )to the NanoController using MATLAB as a platform.
Our Project is to make the LPC2478 host transfer an array of 8bit ASCII characters to the NanoController.Using the NXP USBHostLite program we have configured our microcontroller as a host.The host gets initialized. By definition we feel that the Nanocontroller falls under the category of Communication Class of Devices for USB.
Following are our queries.
1) how do we modify the parsing function in the USBHostlite program to parse a CDC descriptor. 2) Once Parsed and our device enumerated, can we simply send a string of ASCII charcters using the WriteLE16U function provided in the NXP USBHostlite program
Thanks. This is really helpful. There is not sufficient information about arguments to be sent with Host_CtrlSend.
> There is not sufficient information about arguments to be sent with Host_CtrlSend.
I believe I gave enough information. Just your background is insufficient.
Linux (libusb) implementation of usb_control_msg() is here. lxr.free-electrons.com/.../message.c
Compare the arguments of usb_control_msg() with those of Host_CtrlSend() Most of them are common.
As the background, you should know that the arguments are the member of a Setup Packet of Control transfer.
The Setup Packet www.beyondlogic.org/.../usb6.shtml
That is, usb_control_msg() is the Linux version of Host_CtrlSend() With this fact in your mind, look in Linux change_speed() link on my previous post. The arguments of Host_CtrlSend() are there, with usb_control_msg().
This is the last hint of your puzzle ;-) If you wouldn't realize this hint, I recommend you to use FTDI Vinculum chip, which hides USB details from your firmware for connection to FTDI USB-UART.
www.ftdichip.com/.../VNC1L.htm www.ftdichip.com/.../DevelopmentModules.htm
Tsuneo