Tokomane ea Nts'etsopele
Lebitso la Tokomane: DSOM-080M
SmartModule SDK QuickStart
DSOM-080M SmartModule SDK
Nalane ea Phetoho
Tlhaloso | Sehlopha. | Update Description | By | |
Moruti | Letsatsi | |||
1.0 | 2023-04-20 | Tokollo ea mofuta o mocha | au | |
Litumello
Mokhatlo | Lebitso | Sehlooho | Letsatsi |
Selelekela
Tataiso ena ea ho Qala ka Potlako e hlalosa lintlha tsa motheo: - mokhoa oa ho hokahanya le ho theha sepheo sa hau ho marang-rang - mokhoa oa ho kenya SDK - mokhoa oa ho fetola le ho haha litšoantšo tsa firmware
Linux Software Developer's Kit (SDK) ke hardware e kenelletseng le software suite e nolofalletsang baetsi ba Linux ho etsa lits'ebetso ho Dusun's DSOM-080M Module.
Boitsebiso ba Baseboard
Karolo ena e hlalosa lintlha tsa motheo tsa lisebelisoa tsa baseboard le lihokelo.
2.1 Tlhahisoleseling ea mantlha
- 1 CORE CPU(MT7628AN)
- 1 tataisoa
- 1 konopo
- 1 wan(10/100M)
- 4 lan(10/100M)
- 2 urt
2.2 Sehokelo
Tlhophiso ea Debug
Karolo ena e hlalosa mokhoa oa ho hokela boto khomphuteng ea hau e amohelang le marang-rang ho rarolla bothata bakeng sa nts'etsopele.
3.1 Matla
- Etsa bonnete ba hore adaptara ea matla ke 5V/2A.
- Khetha adaptara e nepahetseng ea polaka ea motlakase bakeng sa sebaka seo u leng ho sona. E kenye ka sekotjana ho
Phepelo ea Matla a Bokahohle; ebe o hokela phepelo ea motlakase sebakeng sa ho tsoa. - Hokela plug e hlahisoang ea phepelo ea motlakase ho heke
3.2 Khokahano ea Mohala
Hokela heke ho router bakeng sa ho kena
3.3 Debug Uart Connect
- Pele o seta bethe ea hau ea tlhahlobo ea nts'etsopele, ka kopo hokela kou ea seriale ea PCB ho komporo ea hau e tsoetseng pele ka borokho ba USB-to-serial.
USB-to-serial borokho. Litlhophiso tsa serial port:
Sekhahla sa Baud: 57600
Likotoana: 8
Emisa likotoana: 1
Taolo ea phallo ea lisebelisoa: Ha ho letho
Khoasolla le ho Kopanya SDK
Karolo ena e hlalosa mokhoa oa ho khoasolla sdk le ho e bokella.
4.1 SDK Tikoloho Lokisetsa
Tikoloho ea pokello: Sesebelisoa sa pokello ea Ubuntu20.4 Yocto se hlahisoa ka bo eona ke SDK e hahiloeng, ha ho hlokahale kopo e eketsehileng.
4.2 SDK Khoasolla
Fumana khoutu ea mohloli ho tsoa ho seva sa Dusun FTP u e tlose tlas'a buka ea hau ea mosebetsi. Bakeng sa mohlalaample: mkdir -p ~/workdir/dsom080m
tar zxvf DSOM-080M_sdk_AV1.0.0.0.tar.gz -C /workdir/dsom080m cd ~/workdir/dsom080m
4.3 SDK Kopanya
- matha haha.sh
cd ~/workdir/dsom060r ./build.sh
4.4 Sephetho sa SDK
- uboot.bin ke uboot
- openwrt-ramips-mt7628-mt7628-squashfs-sysupgrade.bin firmware
drwxr-xr-x 3 kapa 4.0K Apr 18 15:19 .
drwxr-xr-x 3 kapa 4.0K Apr 18 15:13 ..
-rw-r–r– 1 kapa 360 Apr 18 15:32 md5sums
-rw-r–r– 1 kapa 4.1M Apr 18 15:32 openwrt-ramips-mt7628-mt7628-squashfs-sysupgrade.bin
-rw-r–r– 1 kapa 2.8M Apr 18 15:32 openwrt-ramips-mt7628-root.squashfs
-rw-r–r– 1 kapa 1.3M Apr 18 15:31 openwrt-ramips-mt7628-uImage.bin
-rwxr-xr-x 1 kapa 3.6M Apr 18 15:31 openwrt-ramips-mt7628-vmlinux.bin
-rwxr-xr-x 1 kapa 3.7M Apr 18 15:31 openwrt-ramips-mt7628-vmlinux.elf
drwxr-xr-x 3 kapa 4.0K Apr 18 15:13 liphutheloana
-rwxrwxr-x 1 kapa 91K Apr 18 15:32 uboot.bin
-rw-rw-r– 1 kapa 212 Mar 31 2017 uboot_version.h
Lenaneo la Firmware le Lenaneo
Ntlafatsa ea Firmware ea 5.1
5.1.2 Uboot Web Ntlafatsa
- Tobetsa n ha motlakase o buletse kapa o seta bocha sebelisa ho kena ka serial
- Hokela heke le komporo ka kotloloho ka thapo ea marang-rang, 'me u behe aterese ea IP ea komporo ho 192.168.0.222,
- Kenya 192.168.0.250 ho sebatli ho bula leqephe la ntlafatso ea uboot
5.1.3 Ntlafatso ea Taelo ea Tsamaiso
- sebelisa sesebelisoa sa scp kapa winscp ho beha fw.bin ho tmp scp ea boto openwrt-ramips-mt7628-mt7628-squashfs-sysupgrade.bin@192.168.xxx.xxx:/tmp/
- tsamaisa taelo ea sysupgrade ho ntlafatsa firmware sysupgrade -n -F openwrt-ramips-mt7628-mt7628-squashfs-sysupgrade.bin
Gateway Keno
6.1 Kena ka Debug Uart
- hokela uart serial tool ho boto ea debug uart port
- config the serial tools's uart config
- matla kgorong
6.2 Kena ka Marang-rang(SSH)
- lokisa liparamente tsa khokahano ea ssh
- seta phasewete ho sebelisa serial login kapa web seriale sa leqephe : motso @ OpenWrt:/# passwd motso
Ho fetola password bakeng sa motso oa password e ncha:
Lekunutu le lebe: le lekgutshwane haholo
Tlanya senotlolo hape:
Lekunutu la motso le fetotsoe ke motso web leqephe
Ntlafatso ea Lera la Kopo
7.1 Led
Boto ena e na le led e le 'ngoe e ka laoloang ke software, e hokela ho WIFI_LED(GPIO#44)
- switjha pin ho gpio mode reg w 64 1
- ka led
gpio l 44 4000 0 1 0 4000 - off led
gpio l 44 0 4000 0 1 4000 - panya e tsamaisitse
gpio l 44 1 1 4000 0 4000
7.2 Konopo
Boto ena e na le likonopo tse tharo tse ka sebelisoang ke software, re ka sebelisa taelo ea gpio ho e bala
- switjha ho gpio mode reg w 60 0x55144051
- bala wdt rst value pele o tobetsa motso @ OpenWrt:/# gpio r
gpio 95~64 = 0x0
gpio 63~32 = 0x77cd
gpio 31~00 = 0x80002400 - bala wdt rst value ha o tobetsa motso @ OpenWrt:/# gpio r
gpio 95~64 = 0x0
gpio 63~32 = 0x778d
gpio 31~00 = 0x80002400
7.3 Ethernet
boto ena ea kou e le 'ngoe le boema-kepe ba bane ba borokho bo lan - wan port eth0.2 - lan port br-lan
- bona motso oa config@OpenWrt:/# cat /etc/config/network
config interface 'loopback'
khetho ifname 'lo'
khetho ea proto 'static'
khetho ipaddr '127.0.0.1'
khetho ea netmask '255.0.0.0'
config globals 'lifatše'
option ula_prefix ‘fd0f:f0d9:a768::/48’
config interface 'lan'
khetho ifname 'eth0.1'
khetho force_link '1'
mofuta oa khetho 'borokho'
khetho ea proto 'static'
khetho ipaddr '192.168.66.1'
khetho ea netmask '255.255.255.0'
khetho ip6assign '60'
khetho macaddr '30:AE:7B:2B:FF:33′
config interface 'wan'
khetho ifname 'eth0.2'
khetho ea proto 'dhcp'
khetho macaddr '30:AE:7B:2B:FF:34′
config interface 'wan6'
khetho ifname '@wan'
khetho ea proto 'dhcpv6'
7.4 wifi
Boto ena e na le wifi ea ka hare ea mt7603
- bona motso oa config@OpenWrt:/# cat /etc/config/wireless config wifi-device mt7628
mofuta oa khetho mt7628
khetho morekisi ralink
khetho sehlopha 2.4G
mocha oa khetho 0
khetho ea auotch 2
config wifi-iface
sesebelisoa sa khetho mt7628
khetho ifname ra0
kgetho marangrang lan
khetho mokhoa ap
khetho ssid mt7628-FF33
kgetho encryption psk2
senotlolo sa khetho 12345678 - scan ssid root@OpenWrt:/# iwpriv ra0 set SiteSurvey=1;robala 3;iwpriv ra0 get_site_survey ra0 get_site_survey:
Ch SSID BSSID Security Siganl(%)W-Mode ExtCH NT WPS DPID
1 90:5d:7c:97:ba:04 NONE 7 11b/g/n HA HO NONE Ka NO - config sta /etc/config/wireless: config wifi-iface
sesebelisoa sa khetho mt7628
khetho ifname ra0
kgetho marangrang lan
khetho mokhoa ap
khetho ssid mt7628-FF33
kgetho encryption psk2
senotlolo sa khetho 12345678
khetho ea AppCliEnable '1'
khetho ea ApCliSsid 'WIFI-mark'
khetho ea ApCliAuthMode 'WPA2PSK'
khetho ea mofuta oa ApCliEncryp 'AES'
khetho ea APCliWPAPSK '13590297795'
/ etc/config/network: config interface 'wan'
khetho ea proto 'dhcp'
khetho ifname 'apcli0'
7.5 urt
boto ena e na le uart ttyS0, ttyS1
- ttyS0 ha e sebelisoe
- ttyS1 e se e sebelisitsoe joalo ka debug uart
web tlhaloso
8.1 ho kena web
8.3 Sistimi
8.4 marang-rang
8.5 ho tsoa
Tšehetso
Ka kopo ikopanye le barekisi ba rona ho fumana tšehetso e eketsehileng.
Hangzhou Roombanker Technology Co., Ltd.
Khamphani ea DUSUN
Mokato oa 8 | Mohaho A
Setsi sa Wantong
Hangzhou 310004
China Tel:+86-571-86769027/88810480
Websebaka: www.dusuniot.com
www.dusunremotes.com
www.hzdusun.com
Litokomane / Lisebelisoa
![]() |
DUSUN DSOM-080M SmartModule SDK [pdf] Bukana ea Mosebelisi DSOM-080M, DSOM-080M SmartModule SDK, SmartModule SDK, SDK |