杭州软库科技有限公司
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
杭州大关 189 A
8
,310004
Floor 8, building A, Wantong center,
Hangzhou 310004, china
www.dusunlock.com
Tel:86-571-86769027/8
8810480
Website: www.dusuniot.com
www.dusunremotes.com
SDK Quick Start Guide
Product Name: IoT Edge Computer Gateway
Model Name: DSGW-230
Revision History
Sect.
Update Description
By
Rev
Date
1.0
2021-08-06
New version release
1.1
2022-04-05
Add Power management
Approvals
Organization
Name
Title
Date
杭州软库科技有限公司
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
杭州大关 189 A
8
,310004
Floor 8, building A, Wantong center,
Hangzhou 310004, china
www.dusunlock.com
Tel:86-571-86769027/8
8810480
Website: www.dusuniot.com
www.dusunremotes.com
Content
1.
Introduction ................................................................................................................................................................................................... 4
2.
Gateway Information ................................................................................................................................................................................ 4
2.1 Basic information .............................................................................................................................................................................. 4
2.2 Interface ............................................................................................................................................................................................... 4
3.
Target Setup .................................................................................................................................................................................................. 5
4.
Compile the Environment to Build ...................................................................................................................................................... 6
4.1 Virtual Machine ................................................................................................................................................................................. 6
4.2 Ubuntu PC Compile the Environment to Build ...................................................................................................................... 6
5.
SDK Acquisition and Preparation ........................................................................................................................................................ 6
5.1 Download the source code from the Dusun FTP .................................................................................................................. 6
5.2 Code Compression Package Check ............................................................................................................................................ 6
5.3 The Source Compression Package is Unzipped ..................................................................................................................... 6
6. Code Compilation ....................................................................................................................................................................................... 7
6.1 Getting started, global Compilation .......................................................................................................................................... 7
6.1.1 Initialize Compilation Environment Variables (select file system) ............................................................................... 7
6.1.2 Prepare the Root File System base ......................................................................................................................................... 7
6.1.3 Start Compiling .............................................................................................................................................................................. 8
6.1.4 Run The Image on the board .................................................................................................................................................... 8
6.2 Compiled Each Image Part Separately ...................................................................................................................................... 9
6.2.1 The build system and the image structure .......................................................................................................................... 9
6.2.2 Build Uboot only ............................................................................................................................................................................ 9
6.2.3 Build Linux Kernel Only ............................................................................................................................................................... 9
6.2.4 Build Recovery File System Only .............................................................................................................................................. 9
6.2.5 Build File System Only ................................................................................................................................................................. 9
6.2.6 Final Image Packaging ................................................................................................................................................................. 9
7. More about buildroot system .............................................................................................................................................................10
7.1 Test hardware components ........................................................................................................................................................10
7.1.1 Test Wi-Fi as AP ...........................................................................................................................................................................10
7.1.2 Test EG91 ........................................................................................................................................................................................11
7.1.3 Test LED ..........................................................................................................................................................................................13
7.1.4 Test I2C ...........................................................................................................................................................................................13
7.2 How to make menuconfig in buildroot ..................................................................................................................................13
7.3 How to add an application in buildroot source tree ..........................................................................................................14
7.4 Switch to ubuntu or debian system .........................................................................................................................................14
8. Wireless development (Zigbee, Z-Wave, BLE, LoRaWAN) .....................................................................................................15
8.1 Zigbee .................................................................................................................................................................................................15
8.2 Z-Wave ...............................................................................................................................................................................................16
8.3 BLE ........................................................................................................................................................................................................18
8.4 LoRaWAN ..........................................................................................................................................................................................18
9. Image Upgrade ..........................................................................................................................................................................................19