Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
2 March 2023
When developing for Embedded Devices, turn-around times are often long and slow down the development experience. In this first video, Christoph Sterz shows how the Cross-Platform-Aspect of Qt allows developers to save time by developing on their desktop machines.
For the demo, one needs to forward a serial port to another PC, here is how to do that:
1. On the embedded board forward a USBSerial to a TCP-Port: sudo socat -v /dev/ttyUSB0,raw,echo=0 tcp-listen:8888,reuseaddr
2. On my Desktop receive that and re-inject it in to a virtual USBSerial: sudo socat -v PTY,raw,echo=0,link=/dev/ttyVUSB0 tcp:<IP_OF_EMBEDDED_BOARD>:8888
3. Just regularly use the Desktop to connect: sudo screen /dev/ttyVUSB0 115200 - I now have a "remote" serialport in my /dev/
Credits for this mostly go to
https://unix.stackexchange.com/questions/201757/how-can-i-set-up-a-usb-proxy-for-dev-ttyusb0-over-the-network
Materials mentioned in this video can be downloaded here: https://github.com/KDAB/kdabtv/tree/master/Qt-Embedded-Cycletime
All 'Reducing your Qt Embedded development cycle time' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6gUTZ9kAW7ocyjIVe5QbOUB
All 'Embedded with Qt' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6iVG059HBoLQZ1CMTyXCGpw