Configure The Baud Rate For The Serial Port:setuart、Getuart; Configure The Polarity Of The Output I/O Port:setgpiomode、Getgpiomode - DFRobot SEN0521 User Manual

5.8g microwave radar module
Table of Contents

Advertisement

Configure the baud rate for the serial port:setUart、getUart
4.1.5
Describe:
After configuring the baud rate for the serial port, it is necessary to reset and restart the module
(the parameters need to be saved first) for the new configuration to take effect. Once the new
configuration is effective, the serial port on the user side also needs to be changed to the new
baud rate for normal communication with the module.
Note: To make the baud rate take effect, a reset and restart command (resetSystem 0) is needed, instead
of the start command (sensorStart).
Command for configuring parameters:
Sending command: setUart par1
Command for reading configuration parameters:
Sending command:getUart
Command response:Response par1
Parameter options:
par1
Command execution result:
Done
Error
Example:
Configure the serial port
baud rate to 57600 bps.
Configure the polarity of the output I/O port:setGpioMode、
4.1.6
getGpioMode
Describe:
Configure the level of the effective signal output by the I/O pin after detecting the target,
whether it is high-level effective or low-level effective.
Configure parameter command:
Send command:setGpioMode par1 par2
Read configuration parameter command:
Baud rate of serial port, unit in bps:
Value range: 4800~115200; default 115200.
Note: Do not exceed the maximum baud rate of the serial port used by the
device, otherwise reconnection to the module will not be possible.
Command executed successfully.
Command execution failed.
setUart 57600
leapMMW:/>
12

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SEN0521 and is the answer not in the manual?

Table of Contents