Ilogo ye-DUSUNUmbhalo Wokuthuthukisa
Igama Lombhalo: DSOM-080M
I-SmartModule SDK QuickStart

I-DSOM-080M SmartModule SDK

Umlando Wokubuyekeza

Ukucaciswa Isigaba. Buyekeza Incazelo By
Umfundisi Usuku
1.0 2023-04-20 Ukukhishwa kwenguqulo entsha au

Izimvume

Inhlangano Igama Isihloko Usuku

Isingeniso

Lo mhlahlandlela Wokuqalisa Okusheshayo uchaza izinto eziyisisekelo: - ukuthi ungaxhuma kanjani futhi usethe okuhlosiwe kwakho kunethiwekhi - indlela yokufaka i-SDK - ukuthi ungazilungisa kanjani futhi wakhe izithombe ze-firmware.
Ikhithi Yonjiniyela Wesoftware ye-Linux (i-SDK) iyingxenye yehadiwe eshumekiwe nesofthiwe eyenza abathuthukisi be-Linux bakwazi ukudala izinhlelo zokusebenza ku-Dusun's DSOM-080M Module.

Ulwazi lwe-baseboard

Lesi sigaba sichaza ulwazi oluyisisekelo lwensiza yebhodi nezixhumi ezibonakalayo.
2.1 Imininingwane eyisisekelo

  • 1 CORE CPU(MT7628AN)
  • 1 kuholele
  • 1 inkinobho
  • 1 wan(10/100M)
  • 4 lan(10/100M)
  • 2 awu

2.2 Isixhumi esibonakalayo

I-DUSUN DSOM 080M SmartModule SDK - Ulwazi

Ukusethwa kokususa iphutha

Lesi sigaba sichaza indlela yokuxhuma ibhodi kukhompuyutha yakho yokusingatha kanye nenethiwekhi ukuze ulungise iphutha ukuze uthuthukiswe.

3.1 Amandla

  • Qiniseka ukuthi i-adaptha yamandla ingu-5V/2A.
  • Khetha i-adaptha yepulaki yamandla efanele yendawo okuyo. Ifake ku-slot ku-slot
    I-Universal Power Supply; bese uxhuma ugesi endaweni yokuphuma.
  • Xhuma ipulaki yokukhipha amandla ku-gateway

3.2 I-wire Connect
Xhuma isango kumzila ukuze ungene ngemvume

I-DUSUN DSOM 080M SmartModule SDK - Ulwazi 1

3.3 Lungisa iphutha le-Uart Connect

  • Ngaphambi kokuthi umise umbhede wakho wokuhlola wokuthuthuka, sicela uxhume imbobo yomkhiqizo ye-PCB ku-PC yakho yokuthuthukisa nge-USB-to-serial bridge.

I-DUSUN DSOM 080M SmartModule SDK - Ulwazi 2

Ibhuloho le-USB-to-serial. Isilungiselelo sembobo yochungechunge:
Izinga leBaud: 57600
Iziqephu: 8
Misa izingcezu: 1
Ukulawula ukugeleza kwezingxenyekazi zekhompuyutha: Akukho

Landa Futhi Uhlanganise I-SDK

Lesi sigaba sichaza ukuthi uyilanda kanjani i-sdk futhi uyihlanganise.

4.1 Lungiselela i-SDK Envirment
Indawo yokuhlanganisa: Ithuluzi lokuhlanganiswa kwe-Ubuntu20.4 Yocto likhiqizwa ngokuzenzakalelayo i-SDK eyakhelwe, akukho ukufakwa okwengeziwe okudingekayo
4.2 Ukulanda kwe-SDK
Thola ikhodi yomthombo kuseva ye-Dusun FTP uyeke ukuyicindezela ngaphansi kohla lwemibhalo lwakho lomsebenzi. Okwesiboneloample: mkdir -p ~/workdir/dsom080m
i-tar zxvf DSOM-080M_sdk_AV1.0.0.0.tar.gz -C /workdir/dsom080m cd ~/workdir/dsom080m

4.3 Iqoqo le-SDK

  • gijima ukwakha.sh
    cd ~/workdir/dsom060r ./build.sh

4.4 Okukhiphayo kwe-SDK

  • uboot.bin yi uboot
  • openwrt-ramips-mt7628-mt7628-squashfs-sysupgrade.bin i-firmware
    drwxr-xr-x 3 noma 4.0K Apr 18 15:19 .
    drwxr-xr-x 3 noma 4.0K Apr 18 15:13 ..
    -rw-r–r– 1 noma 360 Apr 18 15:32 md5sums
    -rw-r–r– 1 noma 4.1M Apr 18 15:32 openwrt-ramips-mt7628-mt7628-squashfs-sysupgrade.bin
    -rw-r–r– 1 noma 2.8M Apr 18 15:32 openwrt-ramips-mt7628-root.squashfs
    -rw-r–r– 1 noma 1.3M Apr 18 15:31 openwrt-ramips-mt7628-uImage.bin
    -rwxr-xr-x 1 noma 3.6M Apr 18 15:31 openwrt-ramips-mt7628-vmlinux.bin
    -rwxr-xr-x 1 noma 3.7M Apr 18 15:31 openwrt-ramips-mt7628-vmlinux.elf
    drwxr-xr-x 3 noma 4.0K Apr 18 15:13 amaphakheji
    -rwxrwxr-x 1 noma 91K Apr 18 15:32 uboot.bin
    -rw-rw-r– 1 noma 212 Mar 31 2017 uboot_version.h

I-Firmware Uhlelo Nohlelo

Thuthukisa i-Firmware engu-5.1
5.1.2 Qalisa kabusha Web Thuthukisa

  • Cindezela okuthi n uma amandla avuliwe noma usetha kabusha sebenzisa ukungena ngemvume kwe-serialI-DUSUN DSOM 080M SmartModule SDK - Uhlelo
  • Xhuma isango nekhompyutha ngqo ngentambo yenethiwekhi, bese usetha ikheli le-IP lekhompyutha ku-192.168.0.222,
    I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 1
  • Faka u-192.168.0.250 esipheqululini ukuze uvule ikhasi lokuthuthukisa i-uboot
    I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 2

5.1.3 Ukuthuthukiswa Komyalelo Wesistimu

Ukungena kwesango

6.1 Ngena Ngena Nge-Debug Uart

  • xhuma ithuluzi le-uart serial port yebhodi yokulungisa iphuthaI-DUSUN DSOM 080M SmartModule SDK - Uhlelo 3
  • lungiselela i-uart yamathuluzi we-serial
    I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 4
  • amandla esangweni
    I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 5

6.2 Ngena Ngenethiwekhi(SSH)

  • lungisa imingcele yokuxhumeka kwe-ssh
    I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 6
  • setha iphasiwedi ukuze usebenzise ukungena ngemvume kwe-serial noma web uchungechunge lwekhasi : impande@OpenWrt:/# impande ye-passwd
    Ukushintsha iphasiwedi yempande Iphasiwedi entsha:
    Iphasiwedi embi: ifushane kakhulu
    Thayipha kabusha iphasiwedi:
    Iphasiwedi yempande ishintshwe yimpande web ikhasiI-DUSUN DSOM 080M SmartModule SDK - Uhlelo 7

Ukuthuthukiswa Kwezendlalelo Zohlelo Lokusebenza

7.1 I-LED
Leli bhodi linamaledi owodwa angalawulwa isofthiwe, lixhuma ku-WIFI_LED(GPIO#44)

  • shintsha iphinikhodi kumodi ye-gpio reg w 64 1
  • ku-led
    gpio l 44 4000 0 1 0 4000
  • I-LED ivaliwe
    gpio l 44 0 4000 0 1 4000
  • blink kwaholela
    gpio l 44 1 1 4000 0 4000

7.2 Inkinobho
Leli bhodi linezinkinobho ezintathu ezingasetshenziswa isofthiwe, singasebenzisa umyalo we-gpio ukuwufunda

  • shintshela kumodi ye-gpio reg w 60 0x55144051
  • funda inani lokuqala le-wdt ngaphambi kokucindezelwa impande@OpenWrt:/# gpio r
    gpio 95~64 = 0x0
    gpio 63~32 = 0x77cd
    gpio 31~00 = 0x80002400
  • funda inani lokuqala le-wdt lapho ucindezelwa impande@OpenWrt:/# gpio r
    gpio 95~64 = 0x0
    gpio 63~32 = 0x778d
    gpio 31~00 = 0x80002400

7.3 I-Ethernet
leli bhodi ichweba elilodwa le-wan kanye namachweba amane aboshwe e-lan - wan port eth0.2 - lan port br-lan

  • bona i-config root@OpenWrt:/# cat /etc/config/network

config interface 'loopback'
inketho ifname 'lo'
inketho ye-proto 'static'
inketho ipaddr '127.0.0.1'
inketho ye-netmask '255.0.0.0'
config globals 'globals'
option ula_prefix ‘fd0f:f0d9:a768::/48’
config interface 'lan'
inketho ifname 'eth0.1'
inketho force_link '1'
uhlobo lwenketho 'ibhuloho'
inketho ye-proto 'static'
inketho ipaddr '192.168.66.1'
inketho ye-netmask '255.255.255.0'
inketho ip6assign '60'
inketho macaddr '30:AE:7B:2B:FF:33′
config interface 'wan'
inketho ifname 'eth0.2'
inketho ye-proto 'dhcp'
inketho macaddr '30:AE:7B:2B:FF:34′
config interface 'wan6'
inketho ifname '@wan'
inketho ye-proto 'dhcpv6'

7.4 i-wifi

Leli bhodi line-wifi yangaphakathi mt7603

  • bona i-config root@OpenWrt:/# cat /etc/config/wireless config wifi-device mt7628
    uhlobo lwenketho mt7628
    inketho yomthengisi ralink
    inketho yebhendi 2.4G
    inketho yesiteshi 0
    inketho ye-auotch 2
    hlela i-wifi-iface
    inketho idivayisi mt7628
    inketho ifname ra0
    inketho yenethiwekhi lan
    imodi yokukhetha ap
    inketho ssid mt7628-FF33
    inketho yokubethela i-psk2
    ukhiye wenketho 12345678
  • skena impande ye-ssid@OpenWrt:/# iwpriv ra0 setha i-SiteSurvey=1;lala 3;iwpriv ra0 get_site_survey ra0 get_site_survey:
    I-Ch SSID BSSID Security Siganl(%)W-Mode ExtCH NT WPS DPID
    1 90:5d:7c:97:ba:04 AKEKHO 7 11b/g/n AKEKHO Phakathi CHA
  • config sta /etc/config/wireless: config wifi-iface
    inketho idivayisi mt7628
    inketho ifname ra0
    inketho yenethiwekhi lan
    imodi yokukhetha ap
    inketho ssid mt7628-FF33
    inketho yokubethela i-psk2
    ukhiye wenketho 12345678
    inketho ye-ApCliEnable '1'
    inketho ye-ApCliSsid 'WIFI-mark'
    inketho ye-ApCliAuthMode 'WPA2PSK'
    inketho ye-ApCliEncrypType 'AES'
    inketho ye-APCliWPAPSK '13590297795'
    /etc/config/network: config interface 'wan'
    inketho ye-proto 'dhcp'
    inketho ifname 'apcli0'

7.5 awu

leli bhodi line-uart ttyS0, ttyS1

  • ttyS0 ayisetshenziswa
  • I-ttyS1 isetshenziswe njenge-debug uart

web incazelo

8.1 ukungena web

I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 8

8.3 Uhlelo

I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 10

8.4 inethiwekhi

I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 11

8.5 ngena ngemvume

I-DUSUN DSOM 080M SmartModule SDK - Uhlelo 12

Ukusekela

Sicela uthinte i-sell yethu ukuze uthole ukwesekwa okwengeziwe.

Ilogo ye-DUSUNI-Hangzhou Roombanker Technology Co., Ltd.
Inkampani DUSUN

Isitezi 8 | Isakhiwo A
Isikhungo se-Wantong
I-Hangzhou 310004
I-China Ucingo:+86-571-86769027/88810480
Webindawo: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com

Amadokhumenti / Izinsiza

I-DUSUN DSOM-080M SmartModule SDK [pdf] Umhlahlandlela Womsebenzisi
I-DSOM-080M, DSOM-080M SmartModule SDK, SmartModule SDK, SDK

Izithenjwa

Shiya amazwana

Ikheli lakho le-imeyili ngeke lishicilelwe. Izinkambu ezidingekayo zimakiwe *