DUSUN-LOGO

DUSUN DSGW-210 IoT Edge Computer Gateway

DUSUN-DSGW-210-IoT-Edge-Computer-Gateway-FEA

Impormasyon sa Produkto

Ang Hangzhou Roombanker Technology Co., Ltd. nagpresentar sa IoT Edge Computer Gateway Model Name: DSGW-210. Kini nga produkto gidisenyo aron magsilbi nga IoT gateway tali sa mga aparato ug sa panganod. Ang ganghaan naghatag ug luwas ug kasaligan nga koneksyon sa panganod, nga nagpasayon ​​sa pagdumala ug pagkontrol sa mga device sa layo.

Pasiuna
Kining Quick Start Guide nagpatin-aw sa mga sukaranan: unsaon pagkonektar ug pag-set up sa imong target sa network; unsaon pag-instalar sa SDK; ug kung giunsa paghimo ang mga imahe sa firmware.
Ang Linux Software Developer's Kit (SDK) usa ka embedded hardware ug software suite nga makapahimo sa mga developer sa Linux sa paghimo og mga aplikasyon sa DSGW-210 gateway sa Dusun.
Base sa 4.4 Linux kernel, ug paggamit sa kasamtangan nga open source software, ang SDK nagpasimple sa proseso sa pagdugang sa custom nga mga aplikasyon. Mga drayber sa device, GNU toolchain, Pre-define nga configuration profiles, ug sampAng mga aplikasyon gilakip tanan.

Impormasyon sa Gateway

Ang DSGW-210 IoT Edge Computer Gateway nasangkapan sa ARM Cortex-A53 quad-core processor, 1GB DDR3 RAM, ug 8GB eMMC flash memory. Kini usab adunay usa ka built-in nga Wi-Fi module, duha ka Ethernet port, ug usa ka USB 2.0 port para sa external device.

Batakang Impormasyon
Gisuportahan sa gateway ang lainlaing mga protocol sama sa MQTT, CoAP, ug HTTP. Kini usab adunay a web-based management interface nga nagtugot sa mga tiggamit sa pag-configure ug pagdumala sa gateway sa layo.

  • SOC: RK3328
    • Quad-core ARM Cortex-A53
    • Mali-450MP2 nga GPU
  • Power Supply: DC-5V
  • LTE module: BG96 (LET CAT-1)
  • Module sa Wi-Fi: 6221A (Wi-Fi chip: RTL8821CS)
  • Zigbee: EFR32MG1B232F256GM32
  • Z-wave: ZGM130S037HGN
  • Bluetooth: EFR32BG21A020F768IM32
  • eMMC: 8GB
  • SDRAM: 2BG

Interface
Ang DSGW-210 IoT Edge Computer Gateway adunay mosunod nga mga interface:DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (1)

  • 2 Ethernet nga mga pantalan
  • 1 USB 2.0 port
  • Gitukod-sa Wi-Fi module

Target Setup

Ang DSGW-210 IoT Edge Computer Gateway mahimong i-set up isip target device para sa IoT development projects. Kini nga seksyon naghulagway kung giunsa ang pagkonektar sa ganghaan sa imong host computer ug network.

Pagkonektar sa usa ka ganghaan - Gahum

  1. Siguroha nga ang power adapter kay 5V/3A.
  2. Pilia ang angay nga power plug adapter para sa imong geographical nga lokasyon. Isulod kini sa slot sa Universal Power Supply; dayon i-plug ang power supply sa outlet.
  3. Ikonektar ang output plug sa power supply sa gateway

Pagkonektar sa usa ka ganghaan - USB port

  1. Ikonektar ang usa ka tumoy sa USB cable sa USB port sa laptop o desktop
  2. Ikonektar ang pikas tumoy sa USB cable sa USB port sa ganghaan.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (2)

Pagkonektar sa usa ka PCBA board - Serial Port
Kung gusto nimo i-debug ang gateway, mahimo nimong ablihan ang kabhang, Ikonektar ang PC sa PCBA board pinaagi sa Serial sa USB tool.
PIN sa board alang sa serial connection: TP1100: RX TP1101: TXDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (3)

Pagtipon sa Kalikopan sa Pagtukod

Aron masugdan ang pagtukod og mga aplikasyon sa IoT para sa DSGW-210 IoT Edge Computer Gateway, kinahanglan nimo nga i-set up ang development environment pinaagi sa pagsunod niini nga mga lakang:

Palihog gamita ang ubuntu 18.04 .iso nga imahe para i-setup ang imong build environment. Mahimo nimong gamiton ang usa ka virtual machine o usa ka pisikal nga PC aron ma-install ang ubuntu 18.04.

  • Virtual nga Makina
    Girekomenda nga ang mga bag-ong tiggamit mogamit mga virtual nga makina, i-install ang ubuntu 18.04 sa virtual machine, ug ibilin ang igo nga espasyo sa disk (labing menos 100G) alang sa virtual machine.
  • Ubuntu PC Compile the Environment to 
    Ang paggamit sa physical machine compilation users makagamit ug ubuntu PC.

Pagkuha ug Pag-andam sa SDK

  1. I-download ang source code gikan sa Dusun FTP
    Ang source package name mahimong 3328-linux-*.tar.gz, kuhaa kini gikan sa Dusun FTP.
  2. Pagsusi sa Pakete sa Pag-compress sa Code
    Ang sunod nga lakang mahimo lamang human sa pagmugna sa MD5 nga bili sa source compression package ug pagtandi sa MD5 value sa MD5 .txt nga teksto aron sa pagkumpirma nga ang MD5 nga bili managsama, ug kung ang MD5 nga bili dili pareho, ang enerhiya nadaot ang code pack, palihug i-download kini pag-usab.
    $ md5sum rk3328-linux-*.tar.gz
  3. Ang Source Compression Package Gi-unzipped
    Kopyaha ang source code sa katugbang nga direktoryo ug unzip ang source code compression package.
    • $ sudo -i
    • $ mkdir workdir
    • $ cd workdir
    • $ tar -zxvf /path/to/rk3328-linux-*.tar.gz
    • $ cd rk3328-linux

Kompilasyon sa Kodigo

Pagsugod, global Compilation

  1. Pagsugod sa Compilation Environment Variables (pilia file sistema)
    Mahimo nimong tukuron ang imahe sa buildroot, ubuntu o debian rootfs. Pilia kini sa "./build.sh init".DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (4)
    Kami kusganong nagrekomendar kanimo sa pagtukod ug pagpadagan sa sistema gamit ang buildroot rootfs aron mapamilyar sa hardware ug pagtukod sa palibot, kon ikaw magsugod. Human nimo gisulayan ang buildroot system, mahimo nimong sulayan ang ubuntu ug debian system.
  2. Andama ang Root File Base sa sistema
    Kini nga seksyon alang sa pagtukod sa ubuntu o debian file sistema. Kung gusto nimo tukuron ang buildroot file sistema, laktawan kini nga seksyon.
    Pag-compile sa Ubuntu
    I-download ang gamut file system compression package ubuntu.tar.gz Ang Root file gi-compress sa system ang direktoryo sa package: Unzip ang compression package
    $ tar -zxvf ubuntu.tar.gz // makuha nimo ang ubuntu.img
    Kopyaha ang gamut file sistema sa gitakda nga dalan
    $ cd workdir/rk3328-linux
    $ mkdir ubuntu
    $ cp /path/to/ubuntu.img ./ubuntu/
    Pag-compile sa Debian
    I-download ang gamut file system compression package debian.tar.gz Unzip ang compression package
    $ tar -zxvf debian.tar.gz // makuha nimo ang linaro-rootfs.img
    Kopyaha ang gamut file sistema sa gitakda nga dalan
    $ cd workdir/rk3328-linux
    $ mkdir debian
    $ cp ./linaro-rootfs.img ./debian/
  3. Pagsugod sa Pag-compile
    $ ./build.sh
    Paghimo usa ka kompleto nga direktoryo sa firmware files: rockdev/update.img ug uban pang bulag nga mga hulagway, ang update.img naglakip sa tanang firmware para sa hingpit nga pag-upgrade.
  4. Dagana ang Imahe diha sa pisara
    Ikonektar ang RK3328 board serial port sa PC pinaagi sa USB sa UART Bridge. Gamita ang Putty o uban pang Terminal software isip imong console tool,
    SERIAL CONSOLE SETTINGS:
    • 115200/8N1
    • Baud: 115200
    • Mga bahin sa datos: 8
    • Parity Bit: Dili
    • Hunong sa Bit: 1
      I-power UP ang board, makita nimo ang boot log sa console:DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (5)

Gi-compile ang Matag Imahe nga Bahin nga Gilain

  1. Ang sistema sa pagtukod ug ang istruktura sa imahe
    Ang update.img gilangkuban sa daghang mga bahin. Ang nag-unang mga bahin mao ang uboot.img, boot.img, recovery.img, rootfs.img. Ang uboot.img adunay bootloader Ang uboot boot.img naglangkob sa device tree .dtb image, Linux kernel image recovery.img: Ang sistema mahimong mag-boot sa recovery mode, ang recovery.img mao ang rootfs nga gigamit sa recovery mode. rootfs.img: Ang normal nga hulagway sa rootfs. Sa normal nga mode, system boot ug i-mount kini nga rootfs nga imahe. Mahimong kinahanglan nimo nga tukuron ang mga imahe nga gilain, labi na kung nagpunting ka sa usa ka module (eg uboot o kernel driver) nga pag-uswag. Dayon mahimo nimong tukuron ang bahin sa imahe ug i-update ang partisyon sa flash.
  2. Paghimo og Uboot lamang
    $ ./build.sh uboot
  3. Paghimo sa Linux Kernel Lamang
    $ ./build.sh kernel
  4. Pagtukod Pag-ayo File Sistema Lamang
    $ ./build.sh pagbawi
  5. Pagtukod File Sistema Lamang
    $ ./build.sh rootfs
  6. Katapusan nga Pagputos sa Imahe
    $ ./build.sh updateimg

Kini nga command making rockdev/*.img scatter firmware packaging nagtukod sa directory update.img

Dugang pa bahin sa buildroot system

Kung mogamit ka sa buildroot rootfs, pipila ka Dusun test scripts/tools na-install na sa katapusang buildroot rootfs. Mahimo nimong i-refer ang buildroot/dusun_rootfs/add_ds_rootfs.sh

Sulayi ang mga sangkap sa hardware
Ang mosunod nga pagsulay gihimo ubos sa buildroot system.

  1. Sulayi ang Wi-Fi isip AP
    Ang “ds_conf_ap.sh” script kay para sa pag-set up sa Wi-Fi AP, SSID kay “dsap”, password kay “12345678”.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (6) DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (7)
  2. Pagsulay sa BG96
    bg96_dial.sh gigamit para sa BG96 dial.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (8) DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (9)

Kinahanglan nimong i-configure ang APN, username/password para sa BG96, sa quectel-chat-connect ug quectel-ppp file. Sa dili ka pa modagan sa pagsulay.

# iring /etc/ppp/peers/quectel-chat-connectDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (10)

# iring /etc/ppp/peers/quectel-pppDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (11)

  • Pagsulay sa LEDDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (12)
  • Pagsulay sa I2CDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (13)
    Sa tinuud nga kontrolado sa LED mao ang interface sa I2C.

Giunsa paghimo ang menuconfig sa buildroot
Normal nga mode buildroot rootfs config file: buildroot/configs/rockchip_rk3328_defconfig Recovery mode buildroot rootfs config file: buildroot/configs/rockchip_rk3328_recovery_defconfigDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (14)

Kung gusto nimo usbon ang buildroot configure, ania ang mga lakang:DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (15)

Giunsa pagdugang usa ka aplikasyon sa punoan sa gigikanan sa buildroot

  1. Paghimo og direktoryo buildroot/dusun_package/
  2. Ibutang ang APP source code files ug Paghimofile sa buildroot/dusun_package/< your_app > your_app.h your_app.c Paghimofile
  3. Paghimo og directory buildroot/package/< your_app > Config.in your_app.mk
  4. Idugang ang Config.in sourcing sa buildroot/package/Config.inDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (16)
  5. Paghimo menuconfig aron mapili ang imong APP, ug i-save ang configure file kay 5.2.
  6. “./build.sh rootfs” para matukod pag-usab ang rootfs Palihog tan-awa ang buildroot/dusun_package/dsled/, kini usa ka mapuslanon nga example.

Pagbalhin sa ubuntu o debian system
Kung nakatukod ka usa ka imahe sa buildroot system, ug gusto nga mobalhin sa imahe sa ubuntu o debian. Dili nimo kinahanglan nga limpyohan ang paghimo ug maghimo usa ka limpyo nga pagtukod pag-usab. Buhata lang ang mosunod nga mga lakang:

  1. "./build.sh init" aron mapili ang ubuntu o debian
  2. "./build.sh rootfs" aron matukod pag-usab ang ubuntu o debian rootfs
  3. "./build.sh" sa paghimo sa usa ka katapusan nga update.img

Pag-amping, ang mga gamit sa dusun ug mga script kay default nga gikopya sa buildroot rootfs, dili sa ubuntu o debian rootfs. Kung gusto nimo kopyahon kini sa ubuntu o debian rootfs, mahimo nimong usbon ang buildroot/dusun_rootfs/add_ds_rootfs.sh. Alang sa mga APP, mahimo nimong kopyahon ang code sa board ug itukod kini sa target board nga ubuntu o debian system, tungod kay kini adunay gcc ug uban pang mga toolchain.

Wireless development (Zigbee, Z-Wave, BLE, LoRaWAN)

Palihug paghimo ug sistema sa debian aron mahimo ang mga musunod nga lakang. Ang code i-compile sa board, dili sa host.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (17)

  1. Pag-andam og pipila ka librarya diha sa pisara
  2. scp SDK "buildroot/dusun_rootfs/target_scripts/export_zigbee_zwave_ble_gpio.sh" gikan sa host ngadto sa board, ubos sa /rootDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (18)
  3. Gahum sa wireless modules sa board.

Zigbee
Ang interface sa Zigbee mao ang /dev/ttyUSB0. I-download ang "Z3GatewayHost_EFR32MG12P433F1024GM48.tar.gz" gikan sa Dusun FTP, ug kopyaha kini sa board, ubos sa /root.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (21)

Dayon paghimo og Z3Gateway ug pagdagan. Para sa dugang nga impormasyon bahin sa Z3Gateway, palihog bisitaha ang https://docs.silabs.com/ para sa dugang impormasyon.

Z-Wave
Ang interface sa Z-Wave mao ang /dev/ttyS1. I-download ang ” rk3328_zwave_test.tar.gz ” gikan sa Dusun FTP, ug kopyaha kini sa board, ubos sa /root.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (20)

Unzip kini ug mahimo nimong makuha ang ./zipgatewayDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (21)DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (22)

Karon paghimo ug zwave simple nga himan sa pagsulay ug pagdagan: Sa “my_serialapi_test”, pindota ang 'a' aron iapil ang zwave device, 'r' aron dili iapil ang device, 'd' aron i-reset sa default, 'i' aron makakuha og lista sa mga device ug 'q' sa pag-undang. Ang Zipgateway kay siliabs software, "my_serialapi_test" kay yano ra kaayo nga himan. Para sa dugang nga impormasyon bahin sa Zipgateway, palihog bisitaha ang https://docs.silabs.com/ para sa dugang impormasyon.

Z-Wave nga rehiyon
Kung alang sa default nga gitukod sa Dusun, ang frequency sa Z-Wave mahimong ma-configure sa /etc/config/dusun/zwave/rehiyon Ang default mao ang 0x00: EU

0x01 – US 0x02 – ANZ 0x03 – HK 0x04 – Malaysia
0x05 – India 0x06 – Israel 0x07 – Russia 0x08 – China
0x20 – Japan 0x21 – Korea    

BLE
Ang interface sa BLE mao ang /dev/ttyUSB1. I-download ang “rk3328_ble_test.tar.gz” gikan sa Dusun FTP, ug kopyaha kini sa board, ubos sa /root.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (23)

Unzip kini ug mahimo nimong makuha ang ./bletest build ble test tool ug padaganon: Dugang impormasyon bahin sa BLE test tool, palihog bisitaha ang https://docs.silabs.com/ para sa dugang impormasyon.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (24)

LoRaWAN
Pilia ang saktong interface para sa LoRaWAN, pananglitanample /dev/spidev32766.0. Ang configuration file kay naa sa ./sx1302_hal/packet_forwarder/global_conf.json. I-download ang “sx1302_hal_0210.tar.gz” gikan sa Dusun FTP, ug kopyaha kini sa board, ubos sa /root.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (25)

Untar kini ug mahimo nimong makuha ang ./sx1302_hal pagtukod LoRaWAN sample code sx1302_hal ug run: Dugang impormasyon bahin sa LoRaWAN code, palihog bisitaha https://www.semtech.com/products/wireless-rf/lora-core/sx1302 para sa dugang impormasyon.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (26)

Pag-upgrade sa Imahe

  1. Pag-upgrade sa Himan
    Pag-upgrade nga himan: AndroidTool_Release_v2.69
  2. Lakaw ngadto sa Upgrade Mode
    1. Ikonektar ang OTG port sa nagdilaab nga computer USB port, kini usab molihok isip 5V power supply
    2. Pindota ang "Ctrl + C" kung ang uboot nag-boot, aron makasulod sa uboot:DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (27)
    3. uboot "rbrom" sugo sa reboot sa board ngadto sa maskrom mode, alang sa usa ka bug-os nga "update.img" upgrade.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (28)
    4. "rockusb 0 mmc 0" sugo sa reboot board sa loader mode, alang sa usa ka partial firmware upgrade o sa usa ka bug-os nga "update.img" upgrade.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (29) DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (30)
  3. Ang Tibuok nga Pakete sa Firmware "update.img" Pag-upgrade
  4. Pag-upgrade sa Firmware nga GilainDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (31)

Konfigurasyon sa pagdumala sa kuryente

Ang battery management chip nga gigamit ni Dusun mao ang BQ25895 Methods aron ma-optimize ang CPU power consumption kay gilista,

  • I-adjust ang parameter sa cpufreq.DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (32)
  • Isira ang pipila ka cpu, limitahan ang labing taas nga frequency sa cpuDUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (33)
  • Ang SoC nga adunay ARM Big-Little nga arkitektura makagapos sa mga buluhaton nga adunay taas nga pagkarga sa gagmay nga mga cores pinaagi sa CPUSET tungod kay ang kahusayan sa enerhiya sa gamay nga core mas maayo.
    Mubo nga sulat: Ang SoC nga adunay arkitektura sa SMP mahimo usab nga magbugkos sa mga buluhaton sa pipila nga mga cpu aron ang uban nga mga cpus makasulod sa ubos nga mode sa pagkonsumo sa kuryente, apan tingali kini makapadali sa pagdagan sa cpu nga adunay taas nga frequency, nga makadugang sa konsumo sa kuryente. DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (34)
  • Limitahi ang bandwidth sa cpu sa mga buluhaton nga adunay taas nga pagkarga pinaagi sa CPUCTL (kinahanglan nga magamit ang macro CONFIG_CFS_BANDWIDTH).DUSUN-DSGW-210-IoT-Edge-Computer-Gateway- (35)

Floor 8, building A, Wantong center, Hangzhou 310004, china
Tel: 86-571-86769027/8 8810480
Website: www.duuniot.com
www.dusunremotes.com
www.dusunlock.com

Kasaysayan sa Pagbag-o

Espesipikasyon Sect. Pag-update sa Deskripsyon By
Si Rev Petsa
1.0 2021-08-06   Bag-ong bersyon nga gipagawas  
1.1 2022-04-05   Idugang ang Power management  
1.2 2022-06-06   Idugang ang serial connection  

Mga pagtugot

Organisasyon Ngalan Titulo Petsa
       

Mga Dokumento / Mga Kapanguhaan

DUSUN DSGW-210 IoT Edge Computer Gateway [pdf] Giya sa Gumagamit
DSGW-210 IoT Edge Computer Gateway, DSGW-210, IoT Edge Computer Gateway, Computer Gateway, Gateway

Mga pakisayran

Pagbilin ug komento

Ang imong email address dili mamantala. Ang gikinahanglan nga mga natad gimarkahan *