Skip to content

Commit 138033a

Browse files
authored
Merge pull request #85 from whj4674672/master
【升级】sdk 版本到 V1.0.0
2 parents aac8261 + 277115c commit 138033a

File tree

6 files changed

+37
-5
lines changed

6 files changed

+37
-5
lines changed

RealThread_STMH750-ART-Pi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
yaml_version: 3
3-
pkg_version: 0.3.2
3+
pkg_version: 1.0.0
44
pkg_vendor: RealThread
55
pkg_type: Board_Support_Packages
66
board:
@@ -15,8 +15,8 @@ board:
1515
sale_contact_global: http://www.st.com/stonline/contactus/contacts/index.php
1616
buy_url_cn: https://www.rt-thread.org/
1717
buy_url_global: https://www.rt-thread.org/
18-
price_cn: 9900.00 CNY
19-
price_global: 1000.00 USD
18+
price_cn: 169 CNY
19+
price_global: 24.99 USD
2020
debugger: ST-LINK
2121
debug_interface: SWD
2222
emulator_machine: ''

projects/art_pi_wifi/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
## 简介
44

5-
5+
本例程为 WIFI 例程,使用 AP6212 来连接到网络。并实现了断电自动重连。如果对本例程想进一步了解可以阅读[设计思想](./docs/设计思想.md)
66

77
## 硬件说明
88

9-
## 软件说明
9+
![wifi_hardware](./figures/wifi_hardware.png)
1010

11+
AP6212是正基AMPAK推出的一款低功耗高性能的WiFi+BT4.2模块,该模块符合802.11b/g/n,其中WiFi功能采用SDIO接口,蓝牙采用UART/I2S/PCM接口,具有StationMode,SoftAP,P2P功能等。该芯片硬件电路连接方式如上图所示。
1112

13+
## 软件说明
14+
15+
本例程仅实现了 WIFI 联网的功能,并支持重连,可以作为您开发其他网络相关应用的基础工程。
1216

1317
## 运行
1418
### 编译&下载
@@ -17,6 +21,9 @@
1721

1822
### 运行效果
1923

24+
![wifi_autoconnect](./figures/wifi_autoconnect.png)
25+
2026
## 注意事项
2127

28+
1. AP6212 正常运行依赖 WIFI 固件,如果固件丢失,参考[WIFI固件下载手册](https://github.com/RT-Thread-Studio/sdk-bsp-stm32h750-realthread-artpi/blob/master/documents/UM5003-RT-Thread%20ART-Pi%20BT_WIFI%20%E6%A8%A1%E5%9D%97%E5%9B%BA%E4%BB%B6%E4%B8%8B%E8%BD%BD%E6%89%8B%E5%86%8C.md)
2229

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ART-PI-WIFI 设计思想
2+
3+
在开发板上使用 WIFI 的时候,每次板子重新上电都要输入 `wifi join` 命令来实现连接到无线路由器,作为一名程序员来说,能让机器自动做的事情,绝对不会让自己来,所以该例程主要在实现 WIFI 的基本功能之上,增加了断电之后自动重连的功能。
4+
5+
## 设计与实现
6+
7+
### 思路
8+
9+
![flow](../figures/flow.png)
10+
11+
### 实现
12+
实现依赖:
13+
- drv_wlan 框架
14+
- easyflash
15+
16+
实现流程:
17+
18+
WLAN 框架底层已经实现保存 WIFI 信息自动重连机制,用户只需完成以下接口即可:
19+
20+
1. `easyflash_init();` 初始化easyflash
21+
2. `rt_wlan_cfg_set_ops(&ops);` 对接保存数据接口
22+
3. `rt_wlan_cfg_cache_refresh();` 更新保存数据
23+
4. `rt_wlan_config_autoreconnect(RT_TRUE);`启动自动连接
24+
25+
23.1 KB
Loading
50.2 KB
Loading
10.9 KB
Loading

0 commit comments

Comments
 (0)