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 Introduction

English | 中文 | Español | Deutsch

GitHubStars GiteeStars GitHub GitHub release Gitter GitHub pull-requests PRs Welcome

RT-Thread

RT-Thread was born in 2006, it is an open source, neutral, and community-based real-time operating system (RTOS).

RT-Thread is mainly written in C language, easy to understand and easy to port(can be quickly port to a wide range of mainstream MCUs and module chips). It applies object-oriented programming methods to real-time system design, making the code elegant, structured, modular, and very tailorable.

RT-Thread has Standard version and Nano version. For resource-constrained microcontroller (MCU) systems, the Nano version that requires only 3KB Flash and 1.2KB RAM memory resources can be tailored with easy-to-use tools. For resource-rich IoT devices, RT-Thread can use the on-line software package management tool, together with system configuration tools, to achieve intuitive and rapid modular cutting, seamlessly import rich software packages; thus, achieving complex functions like Android's graphical interface and touch sliding effects, smart voice interaction effects, and so on.

RT-Thread Architecture

RT-Thread has not only a real-time kernel, but also rich components. Its architecture is as follows:

architecture

It includes:

  • Kernel layer: RT-Thread kernel, the core part of RT-Thread, includes the implementation of objects in the kernel system, such as multi-threading and its scheduling, semaphore, mailbox, message queue, memory management, timer, etc.; libcpu/BSP (Chip Migration Related Files/Board Support Package) is closely related to hardware and consists of peripheral drivers and CPU porting.

  • Components and Service Layer: Components are based on upper-level software on top of the RT-Thread kernel, such as virtual file systems, FinSH command-line interfaces, network frameworks, device frameworks, and more. Its modular design allows for high internal cohesion inside the components and low coupling between components.

  • RT-Thread software package: A general-purpose software component running on the RT-Thread IoT operating system platform for different application areas, consisting of description information, source code or library files. RT-Thread provides an open package platform with officially available or developer-supplied packages that provide developers with a choice of reusable packages that are an important part of the RT-Thread ecosystem. The package ecosystem is critical to the choice of an operating system because these packages are highly reusable and modular, making it easy for application developers to build the system they want in the shortest amount of time. RT-Thread supports 450+ software packages.

RT-Thread Features

  • Designed for resource-constrained devices, the minimum kernel requires only 1.2KB of RAM and 3 KB of Flash.
  • A variety of standard interfaces, such as POSIX, CMSIS, C++ application environment.
  • Has rich components and a prosperous and fast growing package ecosystem.
  • Elegant code style, easy to use, read and master.
  • High Scalability. RT-Thread has high-quality scalable software architecture, loose coupling, modularity, is easy to tailor and expand.
  • Supports high-performance applications.
  • Supports all mainstream compiling tools such as GCC, Keil and IAR.
  • Supports a wide range of architectures and chips.

Code Catalogue

RT-Thread source code catalog is shown as follow:

Name Description
bsp Board Support Package based on the porting of various development boards
components Components, such as finsh shell, file system, protocol stack etc.
documentation Related documents, like coding style, doxygen etc.
examples Related sample code
include Head files of RT-Thread kernel
libcpu CPU porting code such as ARM/MIPS/RISC-V etc.
src The source files for the RT-Thread kernel.
tools The script files for the RT-Thread command build tool.

RT-Thread has now been ported for nearly 200 development boards, most BSPs support MDK, IAR development environment and GCC compiler, and have provided default MDK and IAR project, which allows users to add their own application code directly based on the project. Each BSP has a similar directory structure, and most BSPs provide a README.md file, which is a markdown-format file that contains the basic introduction of BSP, and introduces how to simply start using BSP.

Resources

Supported Architectures

RT-Thread supports many architectures, and has covered the major architectures in current applications. Architecture and chip manufacturer involved:

  • ARM Cortex-M0/M0+:manufacturers like ST
  • ARM Cortex-M3:manufacturers like ST、Winner Micro、MindMotion, ect.
  • ARM Cortex-M4:manufacturers like ST、Infineon、Nuvoton、NXP、Nordic、GigaDevice、Realtek、Ambiq Micro, ect.
  • ARM Cortex-M7:manufacturers like ST、NXP
  • ARM Cortex-M23:manufacturers like GigaDevice
  • ARM Cortex-M33:manufacturers like ST
  • ARM Cortex-R4
  • ARM Cortex-A8/A9:manufacturers like NXP
  • ARM7:manufacturers like Samsung
  • ARM9:manufacturers like Allwinner、Xilinx 、GOKE
  • ARM11:manufacturers like Fullhan
  • MIPS32:manufacturers like loongson、Ingenic
  • RISC-V RV32E/RV32I[F]/RV64[D]:manufacturers like sifive、Canaan Kendrytebouffalo_labNucleiT-HeadHPMicro
  • ARC:manufacturers like SYNOPSYS
  • DSP:manufacturers like TI
  • C-Sky
  • x86

Supported IDE and Compiler

The main IDE/compilers supported by RT-Thread are:

  • RT-Thread Studio IDE
  • MDK KEIL
  • IAR
  • GCC

RT-Thread Studio IDE

User Manual | Tutorial Videos

RT-Thread Studio IDE (a.k.a. RT-Studio) is a one-stop intergrated development environment built by RT-Thread team. It has a easy-to-use graphical configuration system and a wealth of software packages and components resources. RT-Studio has the features of project creation, configuration and management,as well as code editing, SDK management, build configuration, debugging configuration, program download and debug. We're looking to make the use of RT-Studio as intuitive as possible, reducing the duplication of work and improving the development efficiency.

studio

Env Tool

User Manual | Tutorial Videos

In the early stage, RT-Thread team also created an auxiliary tool called Env. It is an auxiliary tool with a TUI (Text-based user interface). Developers can use Env tool to configure and generate the GCC, Keil MDK, and IAR projects.

env

Getting Started

RT-Thread Programming Guide | RT-Thread Studio IDE | Kernel Sample | RT-Thread Beginners Guide

Based on STM32F103 BluePill | Raspberry Pi Pico

Simulator

RT-Thread BSP can be compiled directly and downloaded to the corresponding development board for use. In addition, RT-Thread also provides qemu-vexpress-a9 BSP, which can be used without hardware platform. See the getting started guide below for details. Getting Started of QEMU with Env: Windows | Linux Ubuntu | Mac OS

License

RT-Thread follows the Apache License 2.0 free software license. It's completely open-source, can be used in commercial applications for free, does not require the disclosure of code, and has no potential commercial risk. License information and copyright information can generally be seen at the beginning of the code:

/* Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 * ...
 */

Community

RT-Thread is very grateful for the support from all community developers, and if you have any ideas, suggestions or questions in the process of using RT-Thread, RT-Thread can be reached by the following means, and we are also updating RT-Thread in real time on these channels. At the same time, any questions can be asked in the issue section of RT-Thread repository or RT-Thread forum, and community members will answer them.

Website | Github | Twitter | LinkedIn | Youtube | Facebook | Medium

Contribution

If you are interested in RT-Thread and want to join in the development of RT-Thread and become a code contributor,please refer to the Code Contribution Guide.

Thanks for the following contributors!

w601_iot_board's People

Contributors

android1257 avatar armink avatar bernardxiong avatar dependabot[bot] avatar dh-04 avatar enkiller avatar ghsecuritylab avatar gravity-s avatar lbw15507 avatar summergift avatar sunnysnowgh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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的 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 而且有时候能扫到 有时候又没有

w600运行此sdk无法使用WiFi

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

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.