Dusun DSGW-290 Quick Start Manual

Iot edge computer gateway, sdk

Advertisement

Quick Links

杭州软库科技有限公司
Hangzhou Roombanker Technology Co., Ltd.
SDK Quick Start Guide
Revision History
Specification
Rev
Date
1.0
2022-08-06
1.1
2023-02-06
Approvals
Organization
杭州市大关路 189 号万通中心A 幢 8 楼,310004
Tel:86-571-86769027/8 8810480
Website:
www.dusuniot.com
Product Name: IoT Edge Computer Gateway
Model Name: DSGW-290
Sect.
Update Description
New version release
Add serial connection
Name
Title
www.dusunremotes.com
A DUSUN company
Date
Floor 8, building A, Wantong center,
Hangzhou 310004, china
www.dusunlock.com
By

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DSGW-290 and is the answer not in the manual?

Questions and answers

Summary of Contents for Dusun DSGW-290

  • Page 1 杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company SDK Quick Start Guide Product Name: IoT Edge Computer Gateway Model Name: DSGW-290 Revision History Specification Sect. Update Description Date New version release 2022-08-06 Add serial connection 2023-02-06 Approvals Organization Name...
  • Page 2: Table Of Contents

    4.2 Ubuntu PC Compile the Environment to Build ........................7 5. SDK Acquisition and Preparation ................................7 5.1 Download the source code from the Dusun FTP ........................7 5.2 Code Compression Package Check ............................. 7 5.3 The Source Compression Package is Unzipped ........................7 6.
  • Page 3 杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 8.7 SUB-G ........................................18 8.8 LTE .........................................18 9. Hardware interface development ................................19 9.1 HDMI ........................................19 9.2 Headphone ......................................20 9.3 Sata ........................................20 9.4 Beeper ........................................20 10. Image Upgrade ......................................20 10.1 Upgrade Tool ....................................20 10.2 Go into Upgrade Mode ................................
  • Page 4: Introduction

    SDK; and how to 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-290 gateway. Base on the 4.19.232 Linux kernel, and leveraging existing open source software, the SDK simplifies the process of adding custom applications.
  • Page 5 杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company Floor 8, building A, Wantong center, 杭州市大关路 189 号万通中心A 幢 8 楼,310004 Hangzhou 310004, china Tel:86-571-86769027/8 8810480 Website: www.dusuniot.com www.dusunremotes.com www.dusunlock.com...
  • Page 6: Target Setup

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 3. Target Setup This section describes how to connect the gateway into your host computer and network. Connecting a gateway - Power 1. Make sure that the power adapter is 12V/3A.
  • Page 7: Virtual Machine

    5. SDK Acquisition and Preparation 5.1 Download the source code from the Dusun FTP The source package name will be rk356x_linux-*.tar.gz, get it from Dusun FTP. 5.2 Code Compression Package Check The next step can be taken only after generating the MD5 value of the source compression package and comparing the MD5 value of the MD5 .txt text to confirm that the MD5 value is...
  • Page 8: Code Compilation

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 6. Code Compilation 6.1 Getting started, global Compilation 6.1.1 Prepare the Root File System base This section is for building ubuntu or debian file system. If you want to build the buildroot file system, skip this section.
  • Page 9: Start Compiling

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 6.1.3 Start Compiling Build a complete directory of firmware files: rockdev/pack/AIO- 3568J_Rk356x*.img and other separate images, AIO-3568J_Rk356x*.img includes all firmware for full upgrade. $ ./build.sh The build will take a long time, please wait patiently.
  • Page 10: Compiled Each Image Part Separately

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 6.2 Compiled Each Image Part Separately 6.2.1 The build system and the image structure The AIO-3568J_Rk356x*.img is composed of several parts. Main parts are uboot.img, boot.img, recovery.img, rootfs.img. uboot.img contains bootloader uboot boot.img contains the device tree .dtb image, Linux kernel image...
  • Page 11: Wireless Development (Zigbee, Z-Wave, Ble, Lorawan, Wifi,Thread,Sub-G,Lte)

    Please build a debian system to do the following steps. The code will be compiled on the board, not on host. root@dusun:~# apt-get update rroot@dusun:~# apt-get install libncurses5-dev rroot@dusun:~# apt-get install libncurses5 root@dusun:~# apt-get install libreadline-dev root@dusun:~# apt-get install libssl-dev root@dusun:~# apt-get install libjson-c-dev root@dusun:~# apt-get install lua5.1...
  • Page 12 & root@dusun:~# AmberGwZ3 -n1 -p /dev/ttyS3 -b115200 -d 2023-02-16T07:39:40.580 [DBG] AMBER: WorkDir: /etc/config/dusun/amber 2023-02-16T07:39:40.582 [DBG] AMBER: use old db : /etc/config/dusun/amber/devices.db 2023-02-16T07:39:40.583 [DBG] AMBER: read head from /etc/config/dusun/amber/devices.db 2023-02-16T07:39:40.583 [DBG] AMBER: ecnt : 5 2023-02-16T07:39:40.583 [DBG] AMBER: tag: W, maxnum: 64, num: 0, size : 12, map: 2023-02-16T07:39:40.583 [DBG] AMBER:...
  • Page 13: Z-Wave

    2023-02-16 07:46:59.498 Info, contrlr, Bridge Controller library, version Z-Wave 7.18 Exec command: zwdevd -b115200 -d/dev/ttyS4 Z-Wave region If for default Dusun built, Z-Wave frequency can be configured in vi /etc/config/dusun/zwdev/region Default is 0x00: EU Floor 8, building A, Wantong center, 杭州市大关路...
  • Page 14: Ble

    0x21 - Korea 8.3 BLE BLE interface is /dev/ttyS7. Exec command: bul -d /dev/ttyS7 -b115200 root@dusun:~# export_zigbee_zwave_ble_gpio.sh root@dusun:~# ubusd & root@dusun:~# bul -d /dev/ttyS7 -b115200 2023-02-16T07:57:56.246 [INF] bul:: run_loop() run_loop. 2023-02-16T07:57:56.248 [INF] bul:: monitor_thread() monitor_thread uci: Entry not found uci: Entry not found...
  • Page 15: Thread

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 8.5 Thread Note: 1、Please build a debian system to do the following steps. The code will be compiled on the board, not on host. 2、The thread here is based on the OpenThread 8.5.1 What you need to prepare...
  • Page 16: Configure Otbr

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company Clone source code : #cd you_thread_path/ot-br-posix #git init #git clone https://github.com/openthread/ot-br-posix If need support web: #cd you_thread_pathot-br-posix #WEB_GUI=1 ./script/bootstrap Build ( INFRA_IF_NAME is based on your Ethernet network on your system, it may be eth1 or other;...
  • Page 17: Start/Stop/Status Otbr

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 8.5.5 Start/Stop/Status otbr #sudo systemctl start otbr-agent.service #sudo systemctl status otbr-agent.service #sudo systemctl stop otbr-agent.service 8.5.6 Log # tail -f /var/log/syslog | grep otbr 8.5.7 Debug thread-network with ot-ctl #sudo ot-ctl >...
  • Page 18: Sub-G

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 8.7 SUB-G SUB-G interface is /dev/ttyS9. Exec command: microcom -s 115200 -p /dev/ttyS9 #microcom -s 115200 -p /dev/ttyS9 Type the escape character to get to the prompt. > help _________________________________ ____Application_Configuration____ setEventConfig Control RAIL events.
  • Page 19: Hardware Interface Development

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company Here ModemManager have detected a Sierra Wireless cellular device and it has here been given the the identifier number 0 by ModemManager. To acquire more device information and status use the --modem command and identifier value.
  • Page 20: Headphone

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 9.2 Headphone Codec can be show by command: arecord -l #arecord -l **** List of CAPTURE Hardware Devices **** card 1: rockchiprk809co [rockchip,rk809-codec], device 0: fe410000.i2s-rk817-hifi rk817-hifi-0 [fe410000.i2s- rk817-hifi rk817-hifi-0] Subdevices: 1/1...
  • Page 21: Go Into Upgrade Mode

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 10.2 Go into Upgrade Mode 1. Connect the OTG port to the burning computer USB port, it's also act as 12V power supply 2. Press "reboot loader" when ssh login: root@dusun:~# reboot loader 3.
  • Page 22: Upgrade The Firmware Separately

    杭州软库科技有限公司 Hangzhou Roombanker Technology Co., Ltd. A DUSUN company 10.4 Upgrade the Firmware Separately Floor 8, building A, Wantong center, 杭州市大关路 189 号万通中心A 幢 8 楼,310004 Hangzhou 310004, china Tel:86-571-86769027/8 8810480 Website: www.dusuniot.com www.dusunremotes.com www.dusunlock.com...

Table of Contents