Skip to content

Commit

Permalink
Merge pull request #85 from whj4674672/master
Browse files Browse the repository at this point in the history
【升级】sdk 版本到 V1.0.0
  • Loading branch information
armink authored Oct 22, 2020
2 parents aac8261 + 277115c commit 138033a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
6 changes: 3 additions & 3 deletions RealThread_STMH750-ART-Pi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
yaml_version: 3
pkg_version: 0.3.2
pkg_version: 1.0.0
pkg_vendor: RealThread
pkg_type: Board_Support_Packages
board:
Expand All @@ -15,8 +15,8 @@ board:
sale_contact_global: http://www.st.com/stonline/contactus/contacts/index.php
buy_url_cn: https://www.rt-thread.org/
buy_url_global: https://www.rt-thread.org/
price_cn: 9900.00 CNY
price_global: 1000.00 USD
price_cn: 169 CNY
price_global: 24.99 USD
debugger: ST-LINK
debug_interface: SWD
emulator_machine: ''
Expand Down
11 changes: 9 additions & 2 deletions projects/art_pi_wifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

## 简介


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

## 硬件说明

## 软件说明
![wifi_hardware](./figures/wifi_hardware.png)

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

## 软件说明

本例程仅实现了 WIFI 联网的功能,并支持重连,可以作为您开发其他网络相关应用的基础工程。

## 运行
### 编译&下载
Expand All @@ -17,6 +21,9 @@

### 运行效果

![wifi_autoconnect](./figures/wifi_autoconnect.png)

## 注意事项

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)

25 changes: 25 additions & 0 deletions projects/art_pi_wifi/docs/设计思想.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ART-PI-WIFI 设计思想

在开发板上使用 WIFI 的时候,每次板子重新上电都要输入 `wifi join` 命令来实现连接到无线路由器,作为一名程序员来说,能让机器自动做的事情,绝对不会让自己来,所以该例程主要在实现 WIFI 的基本功能之上,增加了断电之后自动重连的功能。

## 设计与实现

### 思路

![flow](../figures/flow.png)

### 实现
实现依赖:
- drv_wlan 框架
- easyflash

实现流程:

WLAN 框架底层已经实现保存 WIFI 信息自动重连机制,用户只需完成以下接口即可:

1. `easyflash_init();` 初始化easyflash
2. `rt_wlan_cfg_set_ops(&ops);` 对接保存数据接口
3. `rt_wlan_cfg_cache_refresh();` 更新保存数据
4. `rt_wlan_config_autoreconnect(RT_TRUE);`启动自动连接


Binary file added projects/art_pi_wifi/figures/flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/art_pi_wifi/figures/wifi_autoconnect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/art_pi_wifi/figures/wifi_hardware.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 138033a

Please sign in to comment.