Serial Port Example
Here is the basic Diameter Gx message. Example will send line “Test” and wait for the same input (echo).
# Configure serial port
@Port Serial {
PortName /dev/ttyUSB0
BaudRate 9600
Parity None
DataBits 8
StopBits 1
EOL "CRLF"
}
# Send line
WriteLine >Port {
Text Test
}
# Check we received the same line
ReadLine <Port {
Text Test
}