2020-08-05 03:03 AM
Hello,
I successfully sent data from the STM32H747 to the computer using USART1 via usb. Nonetheless, I can't find any solution to send data from the computer to the STM32. Any ideas on what communication protocol and medium I could use ?
Data are composed of low resolution images (about 6.4 kilobytes).
2020-08-05 03:47 AM
Well, you already sent it to a PC... For a trivial lazy code-clicking USART via USB converter is your simplest option. But, if you mean serious development and sending to a modern PC without using additional devices, then probably USB and Ethernet are the only options and implementing both of which are non-trivial. I would use Ethernet, because of versatility and robustness.
2020-08-05 06:49 AM
You could use the serial port, a terminal application, one capable to sending/transfering files using X-MODEM or Y-MODEM. You'd writing the inbound side of the protocol on the STM32. Other ways would be to write your own communications app on the PC and STM32, using a protocol of your choosing/construction.
If you could perhaps implement a USB MSC or MTP device.
2020-08-05 06:54 AM
Hello, thank you for your answers. I edited my message as I made an error : I didn't succeeded in sending data from computer to STM32 (and successfully sent data from the STM32H747 to the computer using USART1 via usb) .
At first I didn't understand that the COM port could be used in both directions. So using the COM port with USART1 on the STM32 and pyserial on the computer solved th the issue.