Wiki Home >> SIO-Command-$EB-Set-UART-Baudrate

SIO-Command-$EB-Set-UART-Baudrate


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

DCBValue
DDEVIC$70
DUNIT$01
DCOMND$EB
DAUX1speed index
DAUX20x00
DAUX1Description
0x0019200 bps
0x0138400 bps
0x0257600 bps
0x03115200 bps
0x04230400 bps
0x05460800 bps
0x06921600 bps

Notes

A possible approach to change baudrate from MCU/PC:

1) set MCU/host baudrate with default baudrate 19200 bps
1) reset ESP32 with GPIO (default UART is configured at 19200 bps)
2) send set_baudrate command (0xEB)
3) change MCU/host baudrate with new value


Wiki content is mirrored from the FujiNet Github Wiki