I have only one USB device port in my development board (running Linux), no Ethernet, no UART. I would like to use the USB device port as an interface by parsing and responding to the commands from the external users. I also need this USB port to output debuging information.
Here is my proposed solution:
- Create virtual ethernet ports via the USB device.
- Run GDB Server at the board side, then connect it to the GDB at my desktop via Port X.
- Run a socket at the board side, then communicate with the socket at my desktop vis Port Y, then parse and response to the user commands as the user interface.
Do you think it is feasible? Are you aware of any better or simpler solution?
Thank you very much!