SIO Command $EB Set UART Baudrate - FujiNetWIFI/fujinet-firmware GitHub Wiki
This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).
Set UART baudrate ($EB)
Description
Set UART baudrate from a set of available speeds. This command is useful when SIO is used from a PC/MCU in order to provide a fast communication between devices.
DAUX1 specifies speed index.
Parameters
DCB | Value |
---|---|
DDEVIC | $70 |
DUNIT | $01 |
DCOMND | $EB |
DAUX1 | speed index |
DAUX2 | 0x00 |
DAUX1 | Description |
---|---|
0x00 | 19200 bps |
0x01 | 38400 bps |
0x02 | 57600 bps |
0x03 | 115200 bps |
0x04 | 230400 bps |
0x05 | 460800 bps |
0x06 | 921600 bps |
Notes
A possible approach to change baudrate from MCU/PC:
- set MCU/host baudrate with default baudrate 19200 bps
- reset ESP32 with GPIO (default UART is configured at 19200 bps)
- send set_baudrate command (0xEB)
- change MCU/host baudrate with new value