Search code examples
qtstm32qtserialport

Qt Serial Communictaion - communicating with a stm32f0 board over Putty


I need to create a Qt GUI that enables the user to select an option from a comboBox and on pressing a 'send' button, send some data to a STM32f072-Disco board via Serial Communication ( over a COM Port - COM11). I looked at the Qt blockig master, blocking slva eexamples but don't understand them very clearly. Any suggestions on how I can proceed ?


Solution

  • I've managed to make a Qt application with some help from sources on github.. The application is able to send & read data from the stm32 board. The stm32 dev board is configured as a CDC device. The library provided @ https://brosnanyuen.blogspot.in/2016/06/stm32-usb-cdc-vcp.html is useful for CDC communication as the stm32 middleware is slightly complex to use. The git repor @ https://github.com/WalkingFrog/Qt-SerialPort-Programming-Demo is a good start for beginners looking for a start. I can share my code on any requets.