芯查查logo
  • 数据服务
    1. 新产品
    2. 物料选型
    3. 查替代
    4. 丝印反查
    5. 查品牌
    6. PCN/PDN
    7. 查方案
    8. 查代理
    9. 数据合作
  • SaaS/方案
      SaaS产品
    1. 供应链波动监控
    2. 半导体产业链地图
    3. BOM管理
    4. 解决方案
    5. 汽车电子
    6. 政府机构
    7. 数据API
  • 商城
  • 行业资讯
    1. 资讯
    2. 直播
  • 论坛社区
    1. 论坛
    2. 学习
    3. 测评中心
    4. 活动中心
    5. 积分商城
  • 查一下
  • 开通会员
修充电器上瘾
萤火工场GD32VW553-IOT测评+1、基本指令

萤火工场GD32VW553-IOT开发板随机带的DEMO程序是GD32VW553的基本指令固件。基本指令不同于AT指令。

其帮助文件《GD32VW553 基本指令用户指南》可以从下面地址下载:

https://www.gigadevice.com.cn/Public/Uploads/uploadfile/files/20240418/AN153GD32VW553jibenzhilingyonghuzhinan.pdf

 

 

使用 USB 线将测试机与开发板连接,打开 UART 工具,连接到正确的COM 口。开发板上电并

正确启动后,通过UART 工具下发指令,开发板即可根据指令内容完成相应操作。

 

1、help指令

 

help
==============================
	ble_help
==============================
	help
	reboot
	version
	tasks
	free
	sys_ps
	cpu_stats
	rmem
	ps_stats
	ping
	join_group
	iperf
	iperf3
	wifi_debug
	wifi_open
	wifi_close
	wifi_mac_addr
	wifi_concurrent
	wifi_auto_conn
	wifi_wireless_mode
	wifi_roaming
	wifi_scan
	wifi_connect
	wifi_connect_bssid
	wifi_disconnect
	wifi_status
	wifi_set_ip
	wifi_ps
	wifi_listen_interval
	wifi_setup_twt
	wifi_teardown_twt
	wifi_monitor
	wifi_ap
	wifi_stop_ap
	nvds

 

2、ble_help:ble帮助信息

# ble_help
BLE COMMAND LIST:
==============================
    ble_enable
    ble_disable
    ble_ps
    ble_courier_wifi
    ble_adv
    ble_adv_stop
    ble_adv_restart
    ble_disconn
    ble_remove_bond
    ble_list_sec_devs
    ble_set_auth
    ble_pair
    ble_encrypt
    ble_passkey
    ble_compare
    ble_peer_feat
    ble_peer_ver
    ble_param_update
    ble_get_rssi
    ble_set_dev_name
    ble_set_pkt_size

3、ble_courier_wifi蓝牙配网

Usage: ble_courier_wifi <0:disable or 1:enable>

该指令用来打开或关闭蓝牙配网(配置 wifi 网络)功能,默认该功能是关闭的。打开该功能后,

设备会发送 advertising 报文供手机端发现,可以使用微信小程序“GD 蓝牙配网”进行操作。

关闭该功能后,advertising 会被关闭。

 

开启蓝牙配网:

ble_courier_wifi 1

# ble_courier_wifi 1
bcwl_adv_mgr_evt_hdlr state change 0x0 ==> 0x1, reason 0x0
ble_courier_wifi ret:0
# bcwl_adv_mgr_evt_hdlr state change 0x1 ==> 0x2, reason 0x0
bcwl_adv_mgr_evt_hdlr state change 0x2 ==> 0x3, reason 0x0
bcwl_adv_mgr_evt_hdlr state change 0x3 ==> 0x4, reason 0x0
bcwl_adv_mgr_evt_hdlr state change 0x4 ==> 0x6, reason 0x0

1)微信小程序安装“GD 蓝牙配网”

 

2)搜索BLE

 

3)输入WIFI SSID、PASSWORD

 

 

4)连接

5)日志输出:

 

connect success. conn idx:0, conn_hdl:0x1 
ble_addr_resolvable match irk 64:A2:00:61:15:21 
bcwl_adv_mgr_evt_hdlr state change 0x6 ==> 0x2, reason 0x0
le pkt size info: conn idx 0, tx oct 251, tx time 2120, rx oct 27, rx time 328
conn_idx 0 encrypt success, pairing_lvl 0x1
conn idx: 0, peer version: 0xb, subversion: 0x27b9, comp id 0x1d
conn idx: 0, peer feature: 0x000000000300f9ff
conn idx 0, intv_min 0x6, intv_max 0x6, latency 0, supv_tout 500
conn idx 0, param update ind: interval 6, latency 0, sup to 500
conn idx 0, intv_min 0x24, intv_max 0x24, latency 0, supv_tout 500
conn idx 0, param update ind: interval 36, latency 0, sup to 500
le pkt size info: conn idx 0, tx oct 251, tx time 2120, rx oct 132, rx time 2120
bcwl_handle_mgmt_handshake handshake success
conn idx 0, intv_min 0x6, intv_max 0x6, latency 0, supv_tout 500
conn idx 0, param update ind: interval 6, latency 0, sup to 500
conn idx 0, intv_min 0x24, intv_max 0x24, latency 0, supv_tout 500
conn idx 0, param update ind: interval 36, latency 0, sup to 500
disconnected. conn idx: 0, conn_hdl: 0x1 reason 0x13
bcwl_adv_mgr_evt_hdlr state change 0x2 ==> 0x6, reason 0x0
connect success. conn idx:0, conn_hdl:0x1 
ble_addr_resolvable match irk 64:A2:00:61:15:21 
bcwl_adv_mgr_evt_hdlr state change 0x6 ==> 0x2, reason 0x0
le pkt size info: conn idx 0, tx oct 251, tx time 2120, rx oct 27, rx time 328
conn_idx 0 encrypt success, pairing_lvl 0x1
conn idx 0, intv_min 0x6, intv_max 0x6, latency 0, supv_tout 500
conn idx: 0, peer version: 0xb, subversion: 0x27b9, comp id 0x1d
conn idx: 0, peer feature: 0x000000000300f9ff
conn idx 0, param update ind: interval 6, latency 0, sup to 500
conn idx 0, intv_min 0x24, intv_max 0x24, latency 0, supv_tout 500
conn idx 0, param update ind: interval 36, latency 0, sup to 500
le pkt size info: conn idx 0, tx oct 251, tx time 2120, rx oct 132, rx time 2120
bcwl_handle_mgmt_handshake handshake success
MAC: deauth send
[0] (-21 dBm) CH=  6 BSSID=f8:01:13:c6:d9:c5 SSID=lion  [RSN:WPA-PSK TKIP,CCMP/TKIP]
MAC: auth req send
MAC: auth rsp received, status = 0
MAC: assoc req send
MAC: assoc rsp received, status = 0
WPA: 4-1 received
WPA: 4-2 send
WPA: 4-3 received
WPA: 4-4 send
WIFI_MGMT: IPv4 addr got 192.168.8.10
conn idx 0, intv_min 0x6, intv_max 0x6, latency 0, supv_tout 500
conn idx 0, param update ind: interval 6, latency 0, sup to 500
conn idx 0, intv_min 0x24, intv_max 0x24, latency 0, supv_tout 500
conn idx 0, param update ind: interval 36, latency 0, sup to 500
disconnected. conn idx: 0, conn_hdl: 0x1 reason 0x13
bcwl_adv_mgr_evt_hdlr state change 0x2 ==> 0x6, reason 0x0

至此BLE配网已经完成。

 

4、wifi_status

WIFI Status:
==============================
WiFi VIF[0]: 76:ba:ed:09:99:13
	STA
	 Status: Connected
	 SSID: lion
	 BSSID: f8:01:13:c6:d9:c5
	 Channel: 6
	 Bandwidth: 20MHz
	 Security: WPA2	
	 Mode: 11bgn
	 RSSI: -15
	 IP: 192.168.8.10
	 GW: 192.168.8.1

 

5、ping 192.168.8.1

 

# ping 192.168.8.1
# [ping_test] PING 192.168.8.1 120 bytes of data
[ping_test] 120 bytes from 192.168.8.1: icmp_seq=1 time=115 ms
[ping_test] 120 bytes from 192.168.8.1: icmp_seq=2 time=85 ms
[ping_test] 120 bytes from 192.168.8.1: icmp_seq=3 time=85 ms
[ping_test] 120 bytes from 192.168.8.1: icmp_seq=4 time=85 ms
[ping_test] 120 bytes from 192.168.8.1: icmp_seq=5 time=85 ms
[ping_test] 5 packets transmitted, 5 received, 0% packet loss
[ping_test] delay: min 85 ms, max 115 ms, avg 91 ms

 

 

6、iperf3 -s -p 5003
 


Iperf3: start iperf3 server!
# iperf3 server:: -----------------------------------------------------------
iperf3 server:: Server listening on 5003
iperf3 server:: -----------------------------------------------------------

开启一个TCP服务在5003上

 

7、iperf3  -c 192.168.8.11 -p 5000

 

通过网络调试助手开启了一个TCP服务:192.168.8.11:5000,

串口工具输入以下指令

iperf3  -c 192.168.8.11 -p 5000

Iperf3: start iperf3 client!
# 

可以看到连接192.168.8.11:5000成功

 

 

 

 

 

 

 

 

 

 

 

 

 

 

开发板测评 GD32VW553
版块: 开发板测评
前天 13:52
  • 举报
😁😂😃😄😅😆😉😊😋😌😍😏😒😓😔😖😘😚😜😝😞😠😡😢😣😤😥😨😩😪😫😭😰😱😲😳😵😷😸😹😺😻😼😽😾😿🙀🙅🙆🙇🙈🙉🙊🙋🙌🙍🙎🙏✂✅✈✉✊✋✌✏✒✔✖✨✳✴❄❇❌❎❓❔❕❗❤➕➖➗➡➰🚀🚃🚄🚅🚇🚉🚌🚏🚑🚒🚓🚕🚗🚙🚚🚢🚤🚥🚧🚨🚩🚪🚫🚬🚭🚲🚶🚹🚺🚻🚼🚽🚾🛀Ⓜ🅰🅱🅾🅿🆎🆑🆒🆓🆔🆕
@好友

全部评论

加载中
游客登录通知
已选择 0 人
自定义圈子
移动
发布帖子
发布动态
发布问答
最新帖子
萤火工场GD32VW553-IOT测评+蓝牙串口透传树莓派pico 2测评 - 初体验【工程师经验】+ 飞线【开源】zvs142857 2.1A,3A快充 充电宝迷你UC3842 开关电源优化全解析:攻克常见难题,提升性能
热门版块
查看更多
电子DIY
维修技术
电子元器件
萤火工场
汽车电子工程师论坛
工业电子专区
新手入门指南
单片机/MCU论坛
PCB设计
开源项目

17

收藏

分享

微信扫码
分享给好友

评论