Example:
Port speed is changed from 115200 bps to
9600 bps and back. Parameter 0x10 contains the port
speed, which is taken into use after the reset.
C:\>python md30InterfaceClient.py -P COM4 -B 115200
Welcome to MD30 interface client. MD30 interface client demonstrates the features of the MD30 serial interface.
MD30 interface client version 3.0.0
Interface version D
Copyright (c) Vaisala Oyj. All rights reserved.
/> setparam 0x10 0
/> Unit ID: 1, Client ID: 0, ID: 0x41, Nb: 0, Len: 2, icd_version: D, Err: 0
/> reset
/> Unit ID: 1, Client ID: 0, ID: 0x50, Nb: 1, Len: 2, icd_version: D, Err: 0
RESET ACK
/> bye
C:\>python md30InterfaceClient.py -P COM4 -B 9600
Welcome to MD30 interface client. MD30 interface client demonstrates the features of the MD30 serial interface.
MD30 interface client version 3.0.0
Interface version D
Copyright (c) Vaisala Oyj. All rights reserved.
/> getunitid
/> Unit ID: 1, Client ID: 0, ID: 0x10, Nb: 0, Len: 10, icd_version: D, Err: 0
Serial number: R2730011
/> setparam 0x10 4
/> Unit ID: 1, Client ID: 0, ID: 0x41, Nb: 1, Len: 2, icd_version: D, Err: 0
/> getparam 0x10
/> Unit ID: 1, Client ID: 0, ID: 0x40, Nb: 2, Len: 5, icd_version: D, Err: 0
ID: 0x10 Value: 4 (Baud rate)
/> reset
/> Unit ID: 1, Client ID: 0, ID: 0x50, Nb: 3, Len: 2, icd_version: D, Err: 0
RESET ACK
/> bye
C:\>python md30InterfaceClient.py -P COM4 -B 115200
Welcome to MD30 interface client. MD30 interface client demonstrates the features of the MD30 serial interface.
MD30 interface client version 3.0.0
Interface version D
Copyright (c) Vaisala Oyj. All rights reserved.
/> getunitid
/> Unit ID: 1, Client ID: 0, ID: 0x10, Nb: 0, Len: 10, icd_version: D, Err: 0
Serial number: R2730011