Cov txheej txheem:

LibMiletus IoT Framework ntawm DragonBoard: 4 Cov Kauj Ruam
LibMiletus IoT Framework ntawm DragonBoard: 4 Cov Kauj Ruam

Video: LibMiletus IoT Framework ntawm DragonBoard: 4 Cov Kauj Ruam

Video: LibMiletus IoT Framework ntawm DragonBoard: 4 Cov Kauj Ruam
Video: Nick Hodges, Developer and Delphi Author Interview - Delphi Interview #13 2024, Kaum ib hlis
Anonim
LibMiletus IoT Framework ntawm DragonBoard
LibMiletus IoT Framework ntawm DragonBoard

LibMiletus yog lub hauv paus qhib kev sib koom tes ua haujlwm uas tso cai rau IoT cov cuab yeej los txheeb xyuas lawv tus kheej ntawm lub network thiab yog li tswj hwm los ntawm lwm cov khoom siv hauv lub network no.

Kauj Ruam 1: Txhim Kho Kev Ntseeg Siab

Txhim Kho Kev Ntseeg Siab
Txhim Kho Kev Ntseeg Siab

Peb tab tom kwv yees tias koj twb tau ua haujlwm Debian distro ntawm koj lub rooj tsavxwm. Yog li, koj tuaj yeem nruab nws raws li phau ntawv qhia no.

Cov ntaub ntawv /etc/apt/sources.list muaj cov ntaub ntawv xav tau los teeb tsa pob software ntxiv.

Qhib lub davhlau ya nyob twg (Ntawv qhia zaub mov -> Cov Txheej Txheem Txheej Txheem -> LXTerminal) thiab ua raws cov lus txib hauv qab no kom ntxiv cov peev txheej Raspibian.

$ sudo miv >> /etc/apt/sources.list <<-"EOF" deb https://archive.raspbian.org/raspbian wheezy lub ntsiab tsis pub dawb deb-src https://archive.raspbian.org/ raspbian wheezy lub hauv paus tseem ceeb tsis pub dawb EOF

Yog xav tau, Raspbian pej xeem tus yuam sij tuaj yeem khaws cia rau hauv koj qhov apt-get keyring siv cov lus txib:

$ wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt -key ntxiv -

Hloov kho tus thawj tswj hwm pob thiab teeb tsa kev vam khom siv cov lus txib:

$ sudo apt-tau hloov tshiab

$ sudo apt-tau nruab -y avahi-daemon cmake libmraa-dev libupm-dev

Kauj ruam 2: Clone Lub Chaw Tso Khoom thiab Tsim

Clone lub Repository thiab Tsim
Clone lub Repository thiab Tsim

Clone lub chaw cia khoom, qhov uas koj xav tau, siv cov lus txib:

$ git clone

Nkag mus rau Linux sub-directory thiab teeb tsa mDNS siv cov lus txib:

$ cd LibMiletus/linux $ chmod +x configure.sh $ sudo./configure.sh --ignore_install = yog

Txhawm rau tsim, tsuas yog khiav cov ntawv tsim

$./build.sh

Tam sim no, rov pib dua lub rooj tsavxwm thiab koj tuaj yeem ua tus qauv Linux Piv txwv

$ sudo./bin/linux_example_wifi

Kauj Ruam 3: Hloov Tus Qauv

Hloov Tus Qauv
Hloov Tus Qauv

Luam tawm los ntawm qhov piv txwv zoo sib xws rau Intel Edison version

$ cp piv txwv_libMiletus_edison_wifi.cpp piv txwv_libMiletus_dragonboard_wifi.cpp

Txuas lub LED ntawm qee tus lej digital, qhib cov ntawv piv txwv_libMiletus_dragonboard_wifi.cpp thiab hloov BUILT_IN_LED macro kom muaj kev cuam tshuam tus pin uas koj nyuam qhuav txuas. 23, yog li, rau kuv koj yog:

#define BUILT_IN_LED 23

Tam sim no, suav nws thiab ua haujlwm siv kab hais kom ua:

$ cd ib

$ g ++ -g../example_libMiletus_dragonboard_wifi.cpp libMiletus.o linux_wifi.o linux_wrapper.o linux_provider.o -o example_dragonboard_wifi -std = c ++ 11 -lmraa $ sudo./example_dragonboard_wifi

Tam sim no koj tuaj yeem tswj hwm koj lub cuab yeej IoT los ntawm MiletusApp

Koj tuaj yeem ua tibzoo saib nplooj ntawv saib ua ntej thiab txhim kho qhov piv txwv no ntxiv ntau lub ntsuas pa thiab tus ua haujlwm.

Kauj Ruam 4: Tswj Koj Lub Ntaus los ntawm MiletusApp

Tswj koj lub cuab yeej los ntawm MiletusApp
Tswj koj lub cuab yeej los ntawm MiletusApp
Tswj koj lub cuab yeej los ntawm MiletusApp
Tswj koj lub cuab yeej los ntawm MiletusApp
Tswj koj lub cuab yeej los ntawm MiletusApp
Tswj koj lub cuab yeej los ntawm MiletusApp

Koj tuaj yeem siv MiletusApp hauv koj lub xov tooj Android los tswj koj cov cuab yeej ntse.

Rub tawm App tsawg kawg ntawm nplooj ntawv rub tawm.

Raws li koj tus yam ntxwv tswj kev sib tham yuav raug tsim tawm hauv App

Pom zoo: