USB Host+TCP/IP in one app possible for FRDM-K64F?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB Host+TCP/IP in one app possible for FRDM-K64F?

504 Views
york9
Contributor I

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

Labels (1)
0 Kudos
Reply
1 Reply

379 Views
Carlos_Musich
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply