Cov txheej txheem:

MQTT Teeb Tswj Nrog 6LoWPAN: 5 Cov Kauj Ruam (nrog Duab)
MQTT Teeb Tswj Nrog 6LoWPAN: 5 Cov Kauj Ruam (nrog Duab)

Video: MQTT Teeb Tswj Nrog 6LoWPAN: 5 Cov Kauj Ruam (nrog Duab)

Video: MQTT Teeb Tswj Nrog 6LoWPAN: 5 Cov Kauj Ruam (nrog Duab)
Video: Подключаем Zigbee stick v4 к Home Assistant. Аддоны SSH Web terminal, MQTT broker, zigbee2mqtt. 2024, Kaum ib hlis
Anonim
MQTT Teeb Tswj Nrog 6LoWPAN
MQTT Teeb Tswj Nrog 6LoWPAN

Ua raws li phau ntawv "IoT hauv tsib hnub" thiab piv txwv hauv github, qhov kev ua piv txwv no siv qhov kev hloov pauv ntawm cov lus txib los ntawm ubidots thiab nyeem lub teeb pom kev digital.

6LoWPAN/IPv4 router tau siv los txhais cov 6LoWPAN/IPv6 cov ntaub ntawv los ntawm cov wireless network mus rau thaj chaw deb MQTT broker ntawm "huab" hauv qhov no Ubidots, daim ntawv thov tsim tsob ntoo yam xwm txheej:

- cov xwm txheej cov ntaub ntawv (kev nyeem sensor luam tawm ib ntus)

- lub tswb xwm txheej (nyeem ntawv nyeem dhau/qis dua qhov pib muab)

- cov ntaub ntawv los ntawm Ubidots (lub cuab yeej nyeem tus nqi luam tawm los ntawm lub platform)

Cov kev qhia yog nrog linux, muaj cov duab rau kev txhim kho uas tuaj yeem siv hauv Windows nrog VMware

Kauj ruam 1: Teeb nyem RE-Mote

Teeb nyem RE-Mote
Teeb nyem RE-Mote
Teeb nyem RE-Mote
Teeb nyem RE-Mote
Teeb nyem RE-Mote
Teeb nyem RE-Mote
Teeb nyem RE-Mote
Teeb nyem RE-Mote

rau flash qhov no koj yuav tsum:

- qhib davhlau ya nyob twg

-mus rau/piv txwv/zolertia/qhia/99-apps/mqtt-node

- hloov kho Makerfile nrog ubidots thiab teeb pom kev zoo

- theej cov cim ntawm ubidots tus account thiab muab nws tso rau hauv ubidots.h hauv cov nplaub tshev huab

- txheeb xyuas RE_Mote txuas nrog rau program

- upload Makefile hauv RE-Mote

- Cov kauj ruam tom ntej yog rau program thiab teeb tsa Orion, nws tau piav qhia hauv github

Kauj ruam 2: Ua tiav

Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav

Yog tias ua tiav qhov kev tso tawm, koj yuav pom los ntawm lub davhlau ya nyob twg RE-Mote cov lus teb uas tas li thauj lub ntsuas qhov ntsuas thiab qee zaum tshaj tawm lawv nrog qhov chaw nyob ntawm lub cuab yeej.

Ntawm ubidots platform nyob rau hauv cov khoom siv thiab ntawm lub cuab yeej uas sib xws nrog qhov chaw nyob luam tawm koj tuaj yeem pom txhua qhov kev hloov pauv tau muab tso rau hauv lub cuab yeej.

led_toggle yog qhov sib txawv uas tsis tau tsim, lub cuab yeej tsis thauj khoom ntawm lub platform, tab sis lub platform thauj nws ntawm lub cuab yeej. Txhawm rau tswj cov coj peb xav tau qhov sib txawv led_toggle, rau qhov ntawd nyem Ntxiv Hloov pauv, Default thiab lub npe led_toggle.

Hauv dashboard peb yuav tsim ib tus widget, Tswj, Slider, Ntxiv Variable, nyem hauv qhov chaw nyob ntawm lub cuab yeej, led_toggle, Max: 100, Min: 0, Add Variable.

Yog tias koj xaub lub bar koj yuav pom yuav ua li cas lub teeb coj mus thiab qhov txiaj ntsig tau tshaj tawm hauv lub davhlau ya nyob twg, tus nqi ntawm tus bar yog nruab nrab ntawm 0 thiab 100, ntawm lub cuab yeej tus nqi no yuav tsum yog 16 ntsis uas mus txog 65535, los tswj nws sib npaug los ntawm qhov zoo li 100 * 655 = 65500.

Pom zoo: