The senddata command sends the SEND DATA message to MD30 and parses the response.
The data interval is given as a parameter in milliseconds. If the parameter value is:
-
0 = only 1 data set is sent as a response
-
25–5000 = message sending starts with the defined data interval
Only numeric values are counted as parameters.
Example 1
Data request with data interval 0.
Only one data set is sent as a response.
/> senddata 0
/> Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 2, Len: 54, icd_version: D, Err: 0
W: 0.00, I: 0.00, S: 0.00, G: 0.82, St: 1, EN: 1, TA: 23.99, RH: 47.74, DP: 11.54, FP: 11.54, TS: 23.82, C: 4603, DW: 0x0000, DE: 0x0000, USt: 0x00000000, UE: 0x00000000
Parameter | Description |
---|---|
W | Water layer thickness |
I | Ice layer thickness |
S | Snow layer thickness |
G | Grip |
St | Road state |
EN | EN15518 state |
TA | Air temperature |
RH | Relative humidity of the air |
DP | Dew point temperature |
FP | Frost point temperature |
TS | Surface temperature |
C | Analyze count |
DW | Data status warning |
DE | Data status error |
USt | Unit status info |
UE | Unit error info |
Example 2
Data request with data interval 1000.
The unit starts to send data with the defined data interval. You can stop the data sending with command s.
/> senddata 1000
/> Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 3, Len: 54, icd_version: D, Err: 0
W: 0.00, I: 0.00, S: 0.00, G: 0.82, St: 1, EN: 1, TA: 24.02, RH: 47.64, DP: 11.53, FP: 11.53, TS: 23.60, C: 6352, DW: 0x0000, DE: 0x0000, USt: 0x00000000, UE: 0x00000000
Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 4, Len: 54, icd_version: D, Err: 0
W: 0.00, I: 0.00, S: 0.00, G: 0.82, St: 1, EN: 1, TA: 24.02, RH: 47.62, DP: 11.53, FP: 11.53, TS: 23.70, C: 6392, DW: 0x0000, DE: 0x0000, USt: 0x00000000, UE: 0x00000000
Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 5, Len: 54, icd_version: D, Err: 0
W: 0.00, I: 0.00, S: 0.00, G: 0.82, St: 1, EN: 1, TA: 24.02, RH: 47.59, DP: 11.52, FP: 11.52, TS: 23.66, C: 6431, DW: 0x0000, DE: 0x0000, USt: 0x00000000, UE: 0x00000000
Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 6, Len: 54, icd_version: D, Err: 0
W: 0.00, I: 0.00, S: 0.00, G: 0.82, St: 1, EN: 1, TA: 24.02, RH: 47.58, DP: 11.52, FP: 11.52, TS: 23.60, C: 6471, DW: 0x0000, DE: 0x0000, USt: 0x00000000, UE: 0x00000000
Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 7, Len: 54, icd_version: D, Err: 0
W: 0.00, I: 0.00, S: 0.00, G: 0.82, St: 1, EN: 1, TA: 24.03, RH: 47.57, DP: 11.52, FP: 11.52, TS: 23.48, C: 6510, DW: 0x0000, DE: 0x0000, USt: 0x00000000, UE: 0x00000000
Example 3
Data request with data interval 10.
The data interval is not valid, which causes an invalid data error (error code = 4).
/> senddata 10
/> Unit ID: 1, Client ID: 0, ID: 0x20, Nb: 21, Len: 2, icd_version: D, Err: 4