Hello.
Is it possible to write an application to have TCP/IP functionality and USB host device (i.e. HID)?
Just a simple task, read a text line from a USB keyboard and send it via TCP/IP.
I tried so many different things without success:
- Started with mbed, but no USB library works (and yes I disabled the MPU)
- Merging USB Host HID demo app with lwip produces during USB init: memory full
- Using USB Host HID demo app (MQX) and extend it with Processor Expert
- Merging USB demo app with RTCS without Processor Expert
Any help is appreciated,
Joerg
Hi Joerg,
I made something similar with CW10.6 and MQX4.2. I took data from USB using CDC and forwarded data through TCP socket. The steps I followed where the following:
- I cloned virtual_com example form MQx installation path (C:\Freescale\Freescale_MQX_4_2\usb\device\examples\cdc)
- Then I added to the project settings the RTCS library, the required paths and preprocessor definitios required form an RTCS application. I copied these settings form and example application. E.g. httpsrv (C:\Freescale\Freescale_MQX_4_2\rtcs\examples\httpsrv)
- Then I just modified the application to get data from CDC and forward through TCP socket.
I hope this helps.
Best regards,
Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------