942 views|2 replies

39

Posts

0

Resources
The OP
 

[GD32VW553-EVAL Trial Evaluation] UART User Command Usage [Copy link]

This post was last edited by hollyedward on 2024-3-17 16:09

GD32VW553-EVAL Study Notes (Part 2)

Connect the test PC to the development board. Using UART command debugging requires two USB cables, one for power supply and one for connecting the UART communication interface.

After the development board is powered on and started normally, the corresponding UART tool can be used to receive data sent by the development board and send corresponding instructions to the development board.

I am on the Windows platform and use the software mobaXterm, which supports many types of communication connections.

session-serail option

Select the corresponding com port and bps rate to connect

There is a USB serial port, two Bluetooth serial ports, and Bluetooth UART output

After connecting, the information is printed by default. The MSDK with Bluetooth WiFi is burned, which realizes a more complete protocol stack.

There is a # sign after the enter key, which is the command prompt. The command format and prompt are similar to those in Linux.

Refer to the official document "GD32VW553 Basic Instruction User Guide"

Case sensitive, <> is required, [] is option

1. Help command, print all commands

2. ble_help prints commands related to ble

3. cpu_stats prints the CPU usage and runtime status of the task task

IDLE should be the interpreter for python?

4. Sys_ps sets mode 1 to CPU deep sleep mode. When the CPU is idle, it will automatically enter deep sleep, and then it can be automatically awakened by WiFi/ble or actively awakened by uart rx events.

WIFI Commands

1. wifi_open, wifi_scan

Enable the wifi function, which is enabled by default when the development board is powered on

Print the AP information scanned by the development board. It seems that it can only scan 2.4Ghz

Some beginner questions:

When using the wifi_scan command in the uart command, the uart serial port often drops out of the line, but sometimes it works. It's quite mysterious.

The documentation says that you cannot run wifi_scan in softap mode, but the device is always in STA mode (station)

I think the CPU load may be too high due to scanning wifi.

When IDLE occupies 97%, wifi_scan can be executed normally

Sometimes pressing the reset button will also cause the serial port to drop

If the serial port is disconnected when wifi_scan is running, pressing reset or reconnecting the serial port still does not work. Unplugging the power supply sometimes works.

2. wifi_connect <ssid> [paaword]

The wifi name must not have spaces in the middle

Changed to a serial port debugging tool SecureCRT

The serial port was still dropped when connecting, but it was found that the command was executed normally. The development board obtained the assigned IP address from the AP through the DHCP protocol.

I think it should have been executed when wifi_scan was executed above, but the serial port was lost and the information could not be printed out.

3. Ping command to test connection connectivity

First get the ip address of ping Baidu

Execute the ping command on the development board

Check the CPU usage at this time

Bluetooth Commands

1.ble_help

You can see that msdk_fd implements more Bluetooth protocol stacks

The serial port is often dropped after turning on Bluetooth and WiFi at the same time

The CPU usage has also become larger

2. ble_adv 1

The development board turns on Bluetooth broadcasting so that other devices can scan and pair with it.

Connect Bluetooth

3. ble_courier_wifi Bluetooth network configuration

Use the WeChat applet "GD32 Bluetooth Network Configuration" to search for the device.

connection succeeded

However, during the network configuration process, clicking on the scan button did not respond. I think it was related to the previous wifi_scan problem. I could not connect even after entering the ssid and password.

It is inevitable that beginners will make mistakes, and there are still many problems to be solved. I hope the experts will give me some advice.

AN153_GD32VW553_jibenzhilingyonghuzhinan.pdf

1.33 MB, downloads: 10

This post is from RF/Wirelessly

Latest reply

It is inevitable that a beginner will make mistakes, and there are still many problems that need to be solved. I hope the experts will give me some advice. That’s quite thoughtful!   Details Published on 2024-3-18 07:42
 

6841

Posts

11

Resources
2
 

It is inevitable that a beginner will make mistakes, and there are still many problems that need to be solved. I hope the experts will give me some advice.

That’s quite thoughtful!

This post is from RF/Wirelessly

Comments

There are many things I don't understand. I feel that the information is still not detailed enough. I have to read the source code directly.  Details Published on 2024-3-25 20:14
 
 

39

Posts

0

Resources
3
 
lugl4313820 posted on 2024-3-18 07:42 It is inevitable for a beginner to make mistakes, and there are still many problems to be solved. I hope the masters will give me some advice. I am very attentive!

There are many things I don't understand. I feel that the information is still not detailed enough. I have to read the source code directly.

This post is from RF/Wirelessly
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list