communication between qt application and stm32 board
-
I am developing an application in qt and want to connect it with the stm32 board. how the qt application and stm32 board will communicate with each other?
@kk2507 said in communication between qt application and stm32 board:
how the qt application and stm32 board will communicate with each other?
Serial port?
What communication technology does the board provide? -
@kk2507 And what will be the protocol?
There is no support for USB in Qt.
https://forum.qt.io/topic/105016/usb-communication-in-qt could give you some hints.
You can also use libusb library. -
we are using usb protocol. if usb is not supporting then how I can form the communication with both application and hardware. can you provide any solution to this?
@kk2507 said in communication between qt application and stm32 board:
can you provide any solution to this?
I already did above...
-
I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?
-
I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?
@kk2507 said in communication between qt application and stm32 board:
I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?
Which kind of STM32 board are you targeting?
Most of them has and OTG USB-Port which implements a virtual COM port (for example NUCLEO boards) -
@kk2507 said in communication between qt application and stm32 board:
I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?
Which kind of STM32 board are you targeting?
Most of them has and OTG USB-Port which implements a virtual COM port (for example NUCLEO boards)@KroMignon I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?
-
@KroMignon I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?
@kk2507 said in communication between qt application and stm32 board:
I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?
I don't understand your question?
You have asked about communication channel between NUCLEO board and a Qt Application.
My suggestion is to use the virtual COM port (over USB), so on Qt side you could useQSerialPort
.The communication protocol depends on software running on NUCLEO board, I do not have any NUCLEO board myself, so hard to give you more information.
EDIT a quick search on internet gives me this link for example: https://shawnhymel.com/1795/getting-started-with-stm32-nucleo-usb-virtual-com-port/
-
@kk2507 said in communication between qt application and stm32 board:
I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?
I don't understand your question?
You have asked about communication channel between NUCLEO board and a Qt Application.
My suggestion is to use the virtual COM port (over USB), so on Qt side you could useQSerialPort
.The communication protocol depends on software running on NUCLEO board, I do not have any NUCLEO board myself, so hard to give you more information.
EDIT a quick search on internet gives me this link for example: https://shawnhymel.com/1795/getting-started-with-stm32-nucleo-usb-virtual-com-port/
@KroMignon ok thank you.