Giter VIP home page Giter VIP logo

rt-thread / w601_iot_board Goto Github PK

View Code? Open in Web Editor NEW
57.0 57.0 35.0 194.64 MB

IoT Board SDK with WinnerMicro W601

License: Apache License 2.0

Python 2.40% C 90.50% C++ 0.41% Java 0.01% Assembly 3.45% DIGITAL Command Language 0.05% Makefile 0.65% Module Management System 0.01% Roff 0.02% RPC 0.06% CMake 0.51% Ruby 0.01% Shell 1.59% Batchfile 0.01% HTML 0.17% Perl 0.04% CSS 0.04% TeX 0.01% Pawn 0.01% M4 0.07%

w601_iot_board's Issues

功能需求: 实现rt_hw_us_delay

rtt的ds18b20/dht11等基于单总线协议的package, 均使用rt_hw_us_delay进行us级延时

当前没有w60x官方实现的rt_hw_us_delay, 所以会回落到RT_WEAK默认实现, 也就是基于stm32的实现, 编译时必然报错.

希望能提供rt_hw_us_delay的官方实现

w600运行此sdk无法使用WiFi

使用的是星通智联的TW-03模组,运行16_iot_wifi_manager例程时不停重启,已经更改过rtconfig.h里面的宏为#define SOC_W600_A8xx

使用基于w600的 TW-03模组 扫描不到ap

先使用自带的AT固件,可以扫描到ap信息并连接,AT 固件log如下所示:

AT+CWLAP

+CWLAP:(4,"浜旀ゼ鏃犵嚎缃戠粶",-89,"24:69:68:ed:43:38",1)
+CWLAP:(4,"www.ghtech.cn",-51,"c8:3a:35:74:51:20",2)
+CWLAP:(4,"CMCC-QeZM",-59,"f8:48:fd:b1:c8:a8",2)
+CWLAP:(3,"PDCN",-52,"74:7d:24:ea:45:be",6)
+CWLAP:(0,"TP-LINK_F55C",-85,"50:bd:5f:73:f5:5c",6)
+CWLAP:(4,"yitai123",-93,"c8:3a:35:6d:6b:28",10)

OK

AT+CWJAP="www.ghtech.cn","123wu123"

WIFI CONNECTED
WIFI GOT IP

OK

然后下载此sdk的16_iot_wifi_manager例程,rtconfig.h中的宏已更改为w600 使用wifi scan命令 只扫描到一个ap, log如下:

CCCCCCC[SFUD]Warning: Read SFDP parameter header information failed. The norflash is not support JEDEC SFDP.
[SFUD]Warning: This flash device is not found or not support.
[SFUD]Warning: Read SFDP parameter header information failed. The norflash is not support JEDEC SFDP.
[SFUD]Warning: This flash device is not found or not support.
[SFUD]Error: norflash flash device is initialize fail.
[I/FAL] RT-Thread Flash Abstraction Layer (V0.4.0) initialize success.
[E/OTA] (ota_main:41) download partition is not exist, please check your configuration!
[D/OTA] (ota_main:105) jump to APP!
redirect_addr:8010100, stk_addr:20002468, len:851968

\ | /

  • RT - Thread Operating System
    / | \ 4.0.2 build Oct 9 2019
    2006 - 2019 Copyright by rt-thread team
    lwIP-2.0.2 initialized!
    [SFUD] Warning: Read SFDP parameter header information failed. The w25q128 is not support JEDEC SFDP.
    [SFUD] Warning: This flash device is not found or not support.
    [SFUD] Error: w25q128 flash device is initialize fail.
    ERROR: SPI flash probe failed by SPI device fl_spi.
    [I/sal.skt] Socket Abstraction Layer initialize success.
    [D/FAL] (fal_flash_init:61) Flash device | w60x_onchip | addr: 0x08000000 | len: 0x00100000 | blk_size: 0x00001000 |initialized finish.
    ERROR: Flash device w25q128 not found!
    [D/FAL] (fal_flash_init:61) Flash device | norflash | addr: 0x00000000 | len: 0x00000000 | blk_size: 0x00000000 |initialized finish.
    [D/FAL] (fal_partition_init:176) Find the partition table on 'w60x_onchip' offset @0x0000ff88.
    [I/FAL] ==================== FAL partition table ====================
    [I/FAL] | name | flash_dev | offset | length |
    [I/FAL] -------------------------------------------------------------
    [I/FAL] | app | w60x_onchip | 0x00010100 | 0x000d0000 |
    [I/FAL] | easyflash | w60x_onchip | 0x000e0100 | 0x00004000 |
    [I/FAL] | filesystem | w60x_onchip | 0x000e4100 | 0x00019000 |
    [I/FAL] =============================================================
    [I/FAL] RT-Thread Flash Abstraction Layer (V0.3.0) initialize success.
    [Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:152) ENV start address is 0x00000000, size is 8192 bytes.
    [Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:821) Calculate ENV CRC32 number is 0xD6114A34.
    [Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:833) Verify ENV CRC32 result is OK.
    [Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:821) Calculate ENV CRC32 number is 0x78CA81B2.
    [Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:833) Verify ENV CRC32 result is OK.
    [Flash] EasyFlash V3.3.0 is initialize success.
    [Flash] You can get the latest version on https://github.com/armink/EasyFlash .
    [I/WLAN.dev] wlan init success
    [I/WLAN.lwip] eth device init ok name:w0
    [D/main] start to scan ap ...
    msh />[D/main] the scan is complete, results is as follows:
    SSID MAC security rssi chn Mbps

sysfwl d8:32:14:b4:ee:a0 WPA2_MIXED_PSK -91 1 300

[D/main] start to connect ap ...
[E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout!
[E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout!
[W/WLAN.mgnt] F:rt_wlan_connect L:1091 not find ap! ssid:www.ghtech.cn
[E/main] The AP(www.ghtech.cn) is connect failed!
[D/main] ready to disconect from ap ...
[E/WLAN.mgnt] F:rt_wlan_disconnect L:1250 disconnect failed!
[D/main] start to autoconnect ...

msh />
msh />
msh />wifi scan
SSID MAC security rssi chn Mbps


sysfwl d8:32:14:b4:ee:a0 WPA2_MIXED_PSK -91 1 300
五楼无线网络 24:69:68:ed:43:38 WPA2_MIXED_PSK -93 1 450
msh />
msh />
msh />wifi scan
[E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout!
SSID MAC security rssi chn Mbps


msh />wifi scan
[E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout!
SSID MAC security rssi chn Mbps


msh />wifi scan
SSID MAC security rssi chn Mbps


sysfwl d8:32:14:b4:ee:a0 WPA2_MIXED_PSK -93 1 300
msh />
msh />
msh />

扫描到的这两个ap 信道都是1 而且有时候能扫到 有时候又没有

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.