Connecting a Medical Instrument with ScriptCommunicator (Linux)
ScriptCommunicator is a scriptable terminal that enables communication via serial ports (RS-232), TCP/IP, UDP, CAN, etc. It is ideal for testing and automating data exchange with medical devices.
Steps
Launch ScriptCommunicator on Linux:
./ScriptCommunicator
Configure the serial connection:
- Interface:
ttyS0
(equivalent to COM1 on Linux) - Common parameters:
115200, 8N1
- Click Connect.
Send the command to the medical device:
From the console, send the command to transmit the test result (see YouTube demo video).
Receive the results line by line:
Send the ACK character (hex 06) to indicate reception: 06
The instrument then sends data line by line until the EOT character (hex 04).
Concrete Example
- Port: /dev/ttyS0
- Steps in ScriptCommunicator:
- Open Connection → Serial → ttyS0 → Connect
- In the console:
06
- Observe the incoming lines until EOT.
