没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
Floor 8 | Building A | Wantong center | Hangzhou 310004 | China Tel:+86-571-86769027/88810480
Website: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com
Development Document
Document Name: DSGW-030
SmartGateway SDK QuickStart
Revision History
Specification
Sect.
Update Description
By
Rev
Date
1.0
2023-04-20
New version release
au
Approvals
Organization
Name
Title
Date
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
Floor 8 | Building A | Wantong center | Hangzhou 310004 | China Tel:+86-571-86769027/88810480
Website: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com
Content
1. Introduction ................................................................................................................................................................ 4
2. Gateway Information .................................................................................................................................................. 4
2.1 Basic information ............................................................................................................................................. 4
2.2 Interface ............................................................................................................................................................ 4
3. Debug Setup ............................................................................................................................................................... 4
3.1 Power ................................................................................................................................................................ 4
3.2 Wire Connect .................................................................................................................................................... 5
3.3 Debug Uart Connect ......................................................................................................................................... 5
4. SDK Download And Compile .................................................................................................................................... 6
4.1 SDK Envirment Prepare ................................................................................................................................... 7
4.1 SDK Download ................................................................................................................................................ 7
4.2 SDK Compile ................................................................................................................................................... 7
4.2 SDK Output ...................................................................................................................................................... 7
5. Firmware Program And Program ............................................................................................................................... 7
5.1 Firmware Program ............................................................................................................................................ 7
5.1.1 SPI Programer ..................................................................................................................................... 7
5.2 Firmware Upgrade .......................................................................................................................................... 11
5.2.2 Uboot Web Upgrade .......................................................................................................................... 11
5.2.3 System Web Upgrade ........................................................................................................................ 13
5.2.4 System Command Upgrade ............................................................................................................... 16
6. Gateway Login ......................................................................................................................................................... 16
6.1 Login Through Debug Uart ............................................................................................................................ 16
6.2 Login Through Network(SSH) ....................................................................................................................... 18
7. Easy Function Test Script ......................................................................................................................................... 20
8. Luci Web Function Description ............................................................................................................................... 20
9. Application Layer Development .............................................................................................................................. 30
9.1 Led 31
9.1 on led .................................................................................................................................................... 31
9.2 off led ................................................................................................................................................... 31
9.3 blink led ................................................................................................................................................ 31
9.2 Button ............................................................................................................................................................. 31
9.3 Ethernet .......................................................................................................................................................... 32
9.4 wifi 33
9.5 Zigbee ............................................................................................................................................................. 33
Host Development Demo Example ............................................................................................................ 33
NCP Development ...................................................................................................................................... 33
9.6 Bluetooth ........................................................................................................................................................ 35
Host Development Demo Example ............................................................................................................ 35
NcP Development ....................................................................................................................................... 35
9.7 Zwave ............................................................................................................................................................. 36
Host Development Demo Example ............................................................................................................ 36
NCP Development ...................................................................................................................................... 36
10. Kernel Development DTS Description ................................................................................................................... 37
10.1 Led 37
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
Floor 8 | Building A | Wantong center | Hangzhou 310004 | China Tel:+86-571-86769027/88810480
Website: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com
10.2 Button ........................................................................................................................................................... 38
10.3 Ethernet......................................................................................................................................................... 38
10.4 wifi 38
10.5 Zigbee ........................................................................................................................................................... 39
10.6 Bluetooth ...................................................................................................................................................... 39
10.7 Zwave ........................................................................................................................................................... 39
13. Support ................................................................................................................................................................... 40
14. Reference ................................................................................................................................................................ 40
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
Floor 8 | Building A | Wantong center | Hangzhou 310004 | China Tel:+86-571-86769027/88810480
Website: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com
1. Introduction
This Quick Start Guide explains the basics: - how to connect and set up your target on the network - how to install
the SDK - how to modify and build the firmware images
The Linux Software Developer’s Kit (SDK) is an embedded hardware and software suite that enables Linux developers
to create applications on Dusun’s DSGW-030 gateway.
2. Gateway Information
This section describes the gateway’s basic resource infomation and interfaces.
2.1 Basic information
• Processor: MTK7628 (MIPS24KEc(580MHZ))
• Supply: DC-5V/2A
• RAM: DDR2 128MB
• NOR Flash: 16MB/32MB
• Ethernet: LAN/WAN RJ45/10M/100M
• Bluetooth: ERF32BG21 (optional)
• Zigbee: EFR32MG1B232
• Zwave: ZG130S (optional)
2.2 Interface
3. Debug Setup
This section describes how to connect the gateway into your host computer and network to debug for development.
3.1 Power
• Make sure that the power adapter is 5V/2A.
• Select the appropriate power plug adaptor for your geographical location. Insert it into the slot on the
Hangzhou Roombanker Technology Co., Ltd.
A DUSUN company
Floor 8 | Building A | Wantong center | Hangzhou 310004 | China Tel:+86-571-86769027/88810480
Website: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com
Universal Power Supply; then plug the power supply into an outlet.
• Connect the output plug of the power supply to the gateway
3.2 Wire Connect
Connect gateway to a router for login
3.3 Debug Uart Connect
• Before you set up your development test bed, please connect the PCB serial port to your develop PC via
USB-to-serial bridge.
剩余39页未读,继续阅读
资源评论
东胜物联
- 粉丝: 577
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功