
colorCONTROL C4
51
Example 190: DATA FRAME with ORDER NUMBER = 190:
ORDER NUMBER (second word = 190): Write new baud rate to sensor.
Attention! New baud rate is only in the RAM. To store the new baud rate to EEPROM refer to example 6.
baud rate is coded to:
0 9600 Bit/s
1 19200 Bit/s
2 38400 Bit/s
3 57600 Bit/s
4 115200 Bit/s
The completely data frame = 18 words must be sent to the sensor hardware in binary form with old baud rate
(sync-word / order-word / 16 parameter words).
DATA FRAME PC Æ Sensor (18 WORDS)
0x0055 SYNC.-WORD
190 ORDER-WORD
3 new baud rate 57600 Bit/s
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
DATA FRAME Sensor Æ PC (18 WORDS) comes also with old baud rate
0x00AA SYNC.-WORD
190 ORDER-WORD
3 new baud rate 57600 Bit/s
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
FROM now the sensor works with the new baud rate.
Kommentare zu diesen Handbüchern