I would like to use Modelica_DeviceDrivers to send data through a serial port.
I have two PCs connected through a serial cable and can transmit and receive text through a terminal app (I use Tera Term).
When I try modelica, instead, I receive unrecognised stuff. I just I send "Hello world!" through AddString (picture below).
I think the first thing to check is the serial data:
- data (7/8 bit)
- parity
- stop bits
- flow control (Xon/Xoff, RTS/CTS, DSR/DTR, none)
While parity is under Modelica control, the other parameters are not. This is not bad per se. What is bad is that I don't know the values used by Modelica for them, and therefore cannot set the receiving PC to the right setting.
Can someone tell to me what values for the above communication parameters are used by SerialPortSend?
I would like to use Modelica_DeviceDrivers to send data through a serial port.
I have two PCs connected through a serial cable and can transmit and receive text through a terminal app (I use Tera Term).
When I try modelica, instead, I receive unrecognised stuff. I just I send "Hello world!" through AddString (picture below).
I think the first thing to check is the serial data:
While parity is under Modelica control, the other parameters are not. This is not bad per se. What is bad is that I don't know the values used by Modelica for them, and therefore cannot set the receiving PC to the right setting.
Can someone tell to me what values for the above communication parameters are used by SerialPortSend?