Cov txheej txheem:

Ntse IoT Lub Zeem Muag: 8 Kauj Ruam
Ntse IoT Lub Zeem Muag: 8 Kauj Ruam

Video: Ntse IoT Lub Zeem Muag: 8 Kauj Ruam

Video: Ntse IoT Lub Zeem Muag: 8 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Ntse IoT Lub Zeem Muag
Ntse IoT Lub Zeem Muag

Nov yog txoj haujlwm tsom mus rau lub nroog ntse lub ntsiab lus. Hauv qhov teeb meem no, muaj peb qhov teeb meem loj uas peb tab tom daws:

1 - txuag hluav taws xob rau pej xeem teeb pom kev zoo; 2 - txhim kho kev nyab xeeb hauv nroog; 3 - txhim kho kev khiav tsheb.

1 - Los ntawm kev siv LEDs teeb ntawm txoj kev, kev txuag nyiaj tau nce mus txog 50%, thiab nrog kev ntxiv Telemanagement, peb tuaj yeem muaj 30% kev txuag nyiaj ntau dua.

2 - Nrog kev siv lub koob yees duab ntse, peb tuaj yeem tswj lub teeb kom dim qhov uas cov neeg tsis tuaj thiab ua rau txoj hauv kev ci dua qhov uas tib neeg taug kev. Nws yuav tsis tsuas yog txuag hluav taws xob tab sis ua rau muaj kev nkag siab zoo ntawm kev saib, yog li, ua rau tib neeg txhob txwm ua phem. Tsis tas li ntawd, lub tswb pom kev (ntsais ntsais lub teeb piv txwv), tuaj yeem siv thaum muaj kev xav tsis zoo.

3 - Lub koob yees duab ntse yuav saib xyuas kev mus los, txheej txheem hauv zos nws cov xwm txheej, thiab tswj lub teeb pom kev kom thiaj li tswj tau kev mus los zoo tshaj. Txoj hauv kev no, kev tsheb sib tsoo tuaj yeem zam tau, tsheb tsis tas yuav tos ntev lub teeb liab thaum tsis muaj kev hla hla, thiab lwm yam. Hais txog teeb meem thev naus laus zis, peb tseem tab tom daws qhov teeb meem dab tsi hauv IoT xws li kev sib txuas ruaj khov hauv lub nroog nplai thiab lub koob yees duab sib koom ua ke rau IoT Network, los ntawm kev siv ntug kev ua haujlwm kom xa tsuas yog cov ntaub ntawv cuam tshuam.

Saib peb cov ntawv tshaj tawm ntawm Embarcados thiab GitHub

Thiab hauv YouTube

Peb pab neeg:

Milton Felipe Souza Santos

Gustavo Retuci Pinheiro

Eduardo Caldas Cardoso: 5 Lab tus kiv cua tos koj rau Webtalk!

Jonathas Baker

(Tiv tauj cov ntaub ntawv hauv qab)

Kauj Ruam 1: Qhov System Block Diagram

System Block Diagram
System Block Diagram

Nov yog cov ntsiab lus ntawm kev daws teeb meem architecture.

Lub kaw lus yog tsim los ntawm Lub Koob Yees Duab-Rooj vag uas siv RFmesh ntawm FAN interface, WiFi ntawm LAN, thiab tseem CAT-M rau WAN txuas. Nws kuj tseem muaj cov ntse photocells, Ntse Lub Koob Yees Duab, thiab lub teeb pom kev zoo.

Txhua lub cuab yeej hauv tes hauj lwm, feem ntau yog lub koob yees duab ntse, xa cov ntaub ntawv los ntawm 6lowpan mus rau lub qhov rooj ntse, yog li nws tuaj yeem txiav txim siab txog pej xeem teeb pom kev zoo thiab teeb pom kev zoo tswj.

Lub qhov rooj tseem txuas nrog peb cov neeg rau zaub mov ntawm VPN. Hauv qhov no, peb tau nkag mus rau FAN thiab LAN, bot rau tshuaj xyuas qhov xwm txheej lossis tswj cov cuab yeej.

Kauj Ruam 2: Cov Txheej Txheem rau Txoj Haujlwm no

Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no

Ntse Cam

- DragonBoard410C/DragonBoard820C

- USB Lub Koob Yees Duab

- OneRF NCO

Rooj vag Lub Koob Yees Duab

- DragonBoard410C/DragonBoard820C

- USB Lub Koob Yees Duab

- OneRF NCO

- Cat-M/3G modem

Ntse Teeb Teeb

Kauj Ruam 3: Kauj Ruam 2: Daim Duab Duab thiab Kev Sib Txuas

Kauj Ruam 2: Daim Duab Duab Circuit thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Duab Circuit thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Circuit Court thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Circuit Court thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Duab Circuit thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Duab Circuit thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Duab Circuit thiab Kev Sib Txuas
Kauj Ruam 2: Daim Duab Duab Circuit thiab Kev Sib Txuas

Ntse Cam

- Lub koob yees duab ntawm USB chaw nres nkoj

- OneRF NIC ntawm UART chaw nres nkoj

Rooj vag Lub Koob Yees Duab

- Lub koob yees duab ntawm USB chaw nres nkoj

- OneRF NIC ntawm UART chaw nres nkoj

- 3G/Cat-M modem ntawm USB chaw nres nkoj

(Txhua qhov txuas los ntawm IoT Mezzanine)

Ntse Stree Teeb

- Txoj kev teeb pom kev zoo

Relay board (3 raws)

- OneRF NCO

Ntse Photocell

- OneRF NCO

- Lub hwj chim ntsuas

Kauj Ruam 4: Nruab Os ntawm DragonBoards

Txhim kho Debian ntawm Dragonboard820C (Fastboot Method)

Siv Linux OS, teeb tsa cov pob khoom teev tseg hauv:

Hauv daim duab

ua s4 OFF, OFF, OFF, OFF

Tig rau nias vol (-)

Yog tias koj siv lub ntsuas saib (pom zoo heev), koj yuav tau txais cov lus "fastboot: ua cov lus txib" (saib xyuas ntawm 115200) Txuas lub micro-usb (J4) ntawm lub PC

Ntawm tus tswv PC: Rub tawm (thiab unzip) los ntawm

$ sudo fastboot khoom siv

452bb893 fastboot (piv txwv)

$ sudo fastboot flash boot boot-linaro-buster-dragonboard-820c-BUILD.img

$ sudo fastboot flash rootfs linaro-buster-alip-dragonboard-820c-BUILD.img

Txhim kho Debian ntawm Dragonboard410C

Cov kauj ruam ntawm lub khoos phis tawj (Linux)

1 - Rub daim duab

$ cd ~ ib

$ mkdir Debian_SD_Card_Install_image

$ cd Debian_SD_Card_Install_image

$ wget

2 - Unzip cov ntawv

$ cd ~/Debian_SD_Card_Install_image

$ unzip dragonboard410c_sdcard_install_debian-233.zip

3 - Ntxig lub microSD rau hauv koj lub computer thiab tshawb xyuas yog tias nws tau teeb tsa

$ df -h

/dev/sdb1 7.4G 32K 7.4G 1%/media/3533-3737

4 - Unmount microSD thiab hlawv cov duab

$ umount /dev /sdb1

$ sudo dd yog = db410c_sd_install_debian.img ntawm =/dev/sdb bs = 4M oflag = sync xwm txheej = noxfer

5 - Tshem microSD ntawm koj lub PC

Cov kauj ruam ntawm lub khoos phis tawj (Windows) Rub tawm - SD daim duab duab - (Xaiv 1) SD Card Duab - Nruab thiab khau raj los ntawm eMMC

www.96boards.org/documentation/consumer/dr…

Unzip SD Card Install Duab

Rub tawm thiab teeb tsa Win32DiskImager cuab yeej

sourceforge.net/projects/win32diskimager/f…

Qhib Win32DiskImager cuab yeej

Ntxig daim npav SD hauv lub computer

Nrhiav cov ntaub ntawv rho tawm.img

Nyem rau Sau

Cov kauj ruam ntawm Dragonboard Ua kom ntseeg tau tias DragonBoard ™ 410c tsis tau txuas los ntawm lub zog

Teeb S6 hloov ntawm DragonBoard ™ 410c rau 0-1-0-0, "SD Boot hloov" yuav tsum tau teeb tsa "ON".

Txuas ib qho HDMI

Txuas lub USB keyboard

Ntxig rau microSD

Plug lub hwj chim adapter

Xaiv cov duab rau nruab thiab nyem "Nruab"

tos kom lub installation tiav

Tshem lub hwj chim adapter

Tshem tawm microSD

Teeb S6 hloov mus rau 0-0-0-0

Ua tiav

Kauj Ruam 5: Kev Sib Txuas Sib Txuas

Txhim Kho Cat-m thiab 3G

Ua raws cov lus txib AT hauv qab no siv lub tshuab host:

AT#SIMDET? // txheeb xyuas qhov muaj SIM#SIMDET: 2, 0 // sim tsis tso

#SIMDET: 2, 1 // sim tso

AT+CREG? // xyuas yog tias nws tau sau npe

+CREG: 0, 1 // (cuam tshuam rau npe network tsis tau txais txiaj ntsig txiaj ntsig txiaj ntsig (lub Hoobkas tsis raug), sau npe hauv tsev network)

AT+COPS?

+COPS: 0, 0, "VIVO", 2 // (hom = tsis siv neeg xaiv, hom = lej thiab lej, ua haujlwm,?)

AT+CPAS // Xov Tooj Ua Haujlwm Li Cas

+CPAS: 0 // npaj tau

AT+CSQ // txheeb xyuas qhov ua tau zoo

+CSQ: 16, 3 // (rssi, qhov yuam kev me ntsis)

AT+CGATT? // lub xeev ntawm GPRS txuas

+CGATT: 1 // txuas nrog

AT+CGDCONT = 1, "IP", "zap.vivo.com.br",, 0, 0 // teeb tsa cov ntsiab lus

OK

AT+CGDCONT? // xyuas cov ntsiab lus

+CGDCONT: 1, "IP", "zap.vivo.com.br", "", 0, 0

AT#SGACT = 1, 1 // Lub ntsiab lus qhib

#SGACT: 100.108.48.30

OK

Teeb lub Interface

Siv cov duab ib puag ncig

Txuas lub modem (oneRF_Modem_v04 - HE910)

Qhib Kev Sib Txuas Network

Nyem rau + ntxiv qhov txuas tshiab

Xaiv Mobile Broadband

Xaiv lub cuab yeej raug

Xaiv Lub Tebchaws

Xaiv tus kws kho mob

Xaiv txoj kev npaj thiab Txuag

Tshem tawm Modem

Txuas tus Modem dua

Siv Terminalapt-tau nruab pppconfig

pppconfig

tus muab kev pabcuam = vivo

dinamico

QAUV

vivo ua

vivo ua

115200

Tone

*99#

tsis muaj (phau ntawv)

/dev/ttyUSB0

cawm

miv/etc/ppp/peers/vivo

miv/etc/chatscripts/vivo

poj vivo

Yog tias koj siv Cat-M module, tsuas yog siv cov lus txib hauv qab no ua ntej:

ncha 1bc7 1101>/sys/bus/usb-serial/drivers/option1/new_id

apt-mus nruab comgt

comgt -d /dev /ttyUSB0 comgt info -d /dev /ttyUSB0

Kauj Ruam 6: Txhim Kho Cov Qauv Tseem Ceeb Software

Hauv kev txhim kho computer

Nco ntsoov tias qee cov kauj ruam yog khoos phis tawj thiab yuav tsum tau hloov kho kom tau raws li koj lub computer tshwj xeeb. Cov tsev qiv ntawv tuaj yeem teeb tsa nrog ib qho lus txib.

sudo apt install build-essential git libatlas libgoogle-glog-dev libiomp-dev libleveldb-dev liblmdb-dev libopencv-dev libopenmpi-dev libsnappy-dev libprotobuf-dev libatlas libboost libgflags2 hdf5 openmpi-bin opnempi-doc nab hab sej-pip nab nab-nabpy nab-scipy nab hab sej-matplotlib nab hab sej-yav tom ntej nab hab sej-protobuf nab hab sej-ntaus nab hab sej-hypotesis nab hab sej-yaml

QhibCV

Lub moj khaum no yog siv los tsim cov duab raws cov lej lej ntawm cov tshuab txhim kho. Txij li feem ntau ntawm peb cov cai tau sau hauv Python, txoj kev teeb tsa yooj yim tshaj plaws tsuas yog ua

pip nruab opencv-python

Nco tseg, txawm li cas los xij, cov log no yuav tsis siv dab tsi sib nrug ntawm koj li CPU thiab tej zaum yuav tsis siv tag nrho nws cov cores, yog li koj yuav xav suav sau los ntawm qhov chaw kom ua tiav qhov ua tau zoo tshaj plaws. Txhawm rau tsim pob hauv Linux, piv txwv li, koj tsis rub cov ntaub ntawv zip rau OpenCV Tso Tawm nplooj ntawv thiab unzip nws. Los ntawm daim nplaub tshev unzipped:

mkdir tsim && cd buildcmake.. ua txhua -j4

sudo ua kom nruab

Cov -j4 hais kom ua qhia kom siv plaub xov. Siv ntau npaum li koj lub CPU muaj!

Kas fes

Txhawm rau teeb tsa Caffe moj khaum los ntawm cov peev txheej:

git clone https://github.com/BVLC/caffe.git && cd caffemkdir tsim

cmk ua..

ua txhua yam

ua xeem ua runtest

Yog tias txhua qhov kev xeem ua tiav ces koj tau teeb tsa tag nrho.

TensorFlow

Google tsis pub koj sau TensorFlow nrog cov cuab yeej zoo ib yam. Nws xav tau Bazel rau nws thiab muaj feem yuav nws yuav tsis ua haujlwm, yog li zam kev suav nws thiab tsuas yog khaws cov ntawv ua ntej ua ke nrog:

pip nruab tensorflow

Yog tias koj lub khoos phis tawj qub qub thiab tsis muaj AVX cov lus qhia, tau txais qhov kawg tsis-AVX tensorflow nrog

pip nruab tensorflow == 1.5

Thiab koj ua tiav.

SNPE - Snapdragon ™ Neural Ua Lub Cav

Teeb Snappy li, raws li peb cov phooj ywg Qualcomm hu rau SNPE, tsis nyuaj tab sis cov kauj ruam yuav tsum tau ua raws kom ze. Tus txheej txheem installation yog:

clone cov txheej txheem neural network 'git repositories

Caffe Kaws 2

TensorFlow

ONNX

khiav cov ntawv sau los tshuaj xyuas rau dependenciessnpe/bin/dependencies.sh

snpe/bin/check_python_depends.sh

rau txhua lub phiaj xwm teeb tsa khiav snpe/bin/envsetup.sh

qhov chaw $ SNPE/bin/envsetup.sh -c $ CAFFE_GIT

qhov chaw $ SNPE/bin/envsetup.sh -f $ CAFFE2_GIT

qhov chaw $ SNPE/bin/envsetup.sh -t $ TENSORFLOW_GIT

qhov chaw $ SNPE/bin/envsetup.sh -o $ ONNX_GIT

Txhawm rau txhawm rau SNPE hauv txhua lub davhlau ya nyob twg koj qhib, ntxiv cov kauj ruam peb plaub kab rau qhov kawg ntawm koj ~/.bashrc cov ntaub ntawv.

Ntawm pawg phiaj xwm

Tsiv mus rau arm64 los ntawm amd64 tsis yog txoj haujlwm tsis yooj yim, vim ntau lub tsev qiv ntawv yuav ua kom zoo dua x86 cov lus qhia los txhawb lawv txoj kev ua tau zoo. Hmoov zoo, nws muaj peev xwm suav sau feem ntau ntawm cov peev txheej tsim nyog ntawm pawg tswj hwm nws tus kheej. Cov tsev qiv ntawv xav tau tuaj yeem teeb tsa nrog ib qho lus txib.

sudo apt install build-essential git libatlas libgoogle-glog-dev libiomp-dev libleveldb-dev liblmdb-dev libopencv-dev libopenmpi-dev libsnappy-dev libprotobuf-dev libatlas libboost libgflags2 hdf5 openmpi-bin opnempi-doc nab hab sej-pip nab nab-nabpy nab-scipy nab hab sej-matplotlib nab hab sej-yav tom ntej nab hab sej-protobuf nab hab sej-ntaus nab hab sej-hypotesis nab hab sej-yaml

Nruab lawv nrog apt thiab txav mus ntxiv. Nco ntsoov tias cov kauj ruam no yuav siv qee lub sijhawm, raws li kev hu xov tooj tsim los tsim cov cai uas tsis tau suav ua ntej.

QhibCV

Rub tawm qhov kev tso tawm los ntawm OpenCV chaw cia khoom, unzip nws qhov twg thiab los ntawm cov ntawv tais ceev tseg:

mkdir tsim && cd buildcmake..

ua txhua yam -j3

sudo ua kom nruab

Nco ntsoov tias peb siv -j3 kev xaiv. Yog tias koj nkag mus rau lub rooj tsavxwm ntawm ssh, muaj tag nrho cov cores nkag siab yuav txaus los tso qhov kev sib txuas. Qhov ntawd tsis xav tau. Los ntawm kev txwv xov siv rau peb, peb ib txwm yuav muaj tsawg kawg ib txoj xov dawb los tiv nrog ssh kev sib txuas thiab kev ua haujlwm tu vaj tu tsev.

Qhov no yog rau Dragonboard 820 thiab Siv 6640 nrog APQ8096 nti. Ntawm Dragonboard 410 koj yuav xav kom muaj qee lub cim xeeb virtual dawb lossis txwv cov ntawv sib sau ua ke rau ib qho, vim nws muaj lub cev RAM tsawg dua.

Nws tseem yog qhov ceeb toom tias txias lub nti yuav pab txhawb kev ua haujlwm los ntawm kev txwv cov cua sov. Lub rhaub dej kub ua qhov ua kom yuam kev ntawm cov khoom me me tab sis koj yuav xav tau cov kiv cua kom tsim nyog rau kev suav sau thiab lwm yam CPU hnyav.

Vim li cas tsis nruab OpenCV nrog apt lossis pip? Vim tias muab nws tso rau hauv lub hom phiaj tshuab ua rau txhua qhov kev qhia ua haujlwm pom rau tus neeg sau, txhim kho kev ua tiav.

SNPE - Snapdragon ™ Neural Ua Lub Cav

Peb teeb tsa Snappy ib yam li nws nyob ntawm lub khoos phis tawj desktop, txawm hais tias tsis muaj cov phiaj xwm kev sib txuas neural tiag tiag (SNPE tsuas xav tau git repos, tsis yog qhov tseeb binaries).

Txawm li cas los xij, txij li txhua yam peb xav tau yog lub binaries thiab headers rau snpe-net-run hais kom ua, muaj qhov ua tau uas tsuas yog muaj cov ntaub ntawv hauv qab no ntawm daim nplaub tshev thiab ntxiv cov ntawv no rau PATH ua haujlwm:

Neural network binarysnpe/bin/aarch64-linux-gcc4.9/snpe-net-run

CPU cov tsev qiv ntawv

snpe/lib/aarch64-linux-gcc4.9/libSNPE.so

snpe/lib/aarch64-linux-gcc4.9/libsymphony-cpu.so

/usr/lib/aarch64-linux-gnu/libatomic.so.1

DSP cov tsev qiv ntawv

snpe/lib/dsp/libsnpe_dsp_skel.so

snpe/lib/aarch64-linux-gcc4.9/libsnpe_adsp.so

Cov txiaj ntsig saib

snpe/qauv/alexnet/scripts/show_alexnet_classifications.py

Cov khoom siv siab tawv, /usr/lib/aarch64-linux-gnu/libatomic.so.1, tau muab nrog Linaro ntawm txoj kev no thiab yuav tsum tau theej rau hauv phau ntawv teev npe me me no.

Lwm cov pob tsis txaus ntseeg:

sudo apt-tau nruab net-toolssudo apt-tau nruab gedit

sudo apt nruab nodejs

sudo apt nruab openvpn

Kauj Ruam 7: Qhia tawm

Saib cov lus qhia luv luv ntawm Smart IoT Vision rau Smart-City ua haujlwm !!

www.youtube.com/watch?v=qlk0APDGqcE&feature=youtu.be

Kauj Ruam 8: Ua Tsaug

Peb ua tsaug rau Qualcomm pab pawg thiab Embarcados rau kev tsim thiab txhawb kev sib tw.

Xav tias dawb hu rau peb ntawm:

[email protected] yog

[email protected] yog

Cov neeg ua tim khawv

Dragonboard 410c Installation Guide rau Linux thiab Android

github.com/96boards/documentation/wiki/Dr….

DragonBoard 410c

caffe.berkeleyvision.org/install_apt.htmlhttps://caffe.berkeleyvision.org/installation.html#… https://developer.qualcomm.com/docs/snpe/setup.ht…https://caffe.berkeleyvision.org/installation.html#… https://github.com/BVLC/caffe https://caffe.berkeleyvision.org/installation.html#… https://github.com/tensorflow/tensorflow http:/ /caffe.berkeleyvision.org/installation.html#… https://www.tensorflow.org/install/ https://caffe.berkeleyvision.org/installation.html#… https://caffe.berkeleyvision.org/

Pom zoo: