Binary: [1 1 0 1 1 1 1 1] [0 0 0 0 1 0 0 0] [baud]
This command sets the baud rate of the Slink-e's serial port (the DCE port), for both transmit and receive.
The "baud" byte determines the baud rate as follows:
byte value | Baud |
---|---|
0x00 | 2400 |
0x01 | 4800 |
0x02 | 9600 |
0x03 | 19,200 |
0x04 | 38,400 |
In order to communicate on the serial line, the DTE (computer, or whatever is on the other end of the serial line) and DCE (Slink-e) must be set to the same baud rate. This command is of limited usefulness in achieving that, since you have to be able to communicate on the serial line in order to issue this command. But you can use it carefully to change baud rate after you've established communication.
The Slink-e changes the DCE baud rate immediately after sending the response to the Set Baud Rate command. As it does so, it sends an extra 0xE0 character. The DTE might receive this character normally, might receive different characters, or might experience a receive error. I don't know what's going on here, but you should ignore whatever you receive.
So to change the baud rate, do this:
The factory default baud rate is 38,400.
Use an Enable Port command to enable a port or enable ports globally.
The Slink-e normally generates a Baud Rate Is Control Report to confirm that it executed your command. It sends this at the old baud rate.
If your "baud" argument byte is not one of the values in the table above, Slink-e leaves the baud rate unchanged and responds with an Invalid Baud Rate report.