serial_speed (Set serial speed)

Sets the serial speed.

Syntax: (see Command structure)
Copy
serial_speed [speed]
Parameter Description
test Test whether the product supports an increase in serial speed from current speed
fast Increase serial speed
slow Reduce serial speed
Response: (see Response structure)
Copy
Response >>
Response Description
OK The product supports an increase in speed
Error The product does not support an increase in speed

You should flush the serial buffer after the first “serial_speed fast“ before the speed is changed to 1Mbaud. If during operation at 1Mbaud any serial errors are detected the speed is automatically dropped to 115200baud without warning. The host code must be aware of this and take suitable action. If the link regularly fails do not to try increase the speed again.

Example

To increase the serial speed to 1Mbaud use the following sequence:

Copy
serial_speed test OK >> serial_speed fast

If any error is detected in the above sequence the speed increase won’t occur or will be reset.

Before exiting the host should return the speed back to 115200baud with the following command

Copy
serial_speed slow

Failure to do so will result in the first characters being lost until the hub detects the incorrect baud rate as serial errors and drops back to 115200baud.