I have a USB to RS485 converter:
It has a CH341 chip, that is all I know about it. When I plug it in, I can see that it is bound to port ttyUSB0. I want to be able to send and receive bytes from PC (Ubuntu) to a STM32 board. The board side is not a problem, but rather the PC side.
Does someone have experience with such a device? Do I write the bytes that I want to send onto this serial port and the magic will happen, or does it have some special protocol, config bytes or command bytes or such? The datasheet is basically 1 page with literally no information in it.
I am not familiar with serial port programming under Linux, but it will be fun to learn it. I just wanted to know whether I have to pay attention to anything special before I start working on this home project.
Any information, code snippet or just advice or experience is very welcome :)