Video: Puas yog MQTT daim ntawv thov txheej txheem?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
Xov Xwm Queuing Telemetry Thauj ( MQTT ) yog lub teeb yuag daim ntawv thov - txheej kev xa xov raws tu qauv raws li kev tshaj tawm / sau npe (pub / sub) qauv. Hauv cov qauv pub / sub, ntau tus neeg siv khoom (sensors) tuaj yeem txuas rau lub hauv paus server hu ua tus broker thiab sau npe rau cov ncauj lus uas lawv nyiam.
Sib tham, dab tsi yog daim ntawv thov txheej txheej txheem?
Ib daim ntawv thov txheej yog abstraction txheej uas qhia txog kev sib txuas lus sib koom cov txheej txheem thiab cov txheej txheem interface siv los ntawm cov tswv hauv kev sib txuas lus network. Cov daim ntawv thov txheej abstraction yog siv nyob rau hauv ob qho tib si ntawm tus qauv qauv ntawm computer networking: Internet raws tu qauv Suite (TCP/IP) thiab OSI qauv.
Ib tug kuj yuav nug, MQTT raws tu qauv yog dab tsi thiab nws ua haujlwm li cas? MQTT yog publish/subscribe raws tu qauv uas tso cai rau ntug-ntawm-network li tshaj tawm mus rau ib tug broker. Cov neeg siv khoom txuas mus rau tus broker no, uas tom qab ntawd kho kev sib txuas lus ntawm ob lub cuab yeej. Thaum lwm tus neeg tau tshaj tawm cov lus ntawm cov ncauj lus sau npe, tus broker xa cov lus rau txhua tus neeg siv khoom uas tau sau npe.
Ntawm no, dab tsi raws tu qauv siv MQTT?
MQTT (MQ Telemetry Thauj) yog qhib OASIS thiab ISO tus qauv (ISO/IEC PRF 20922) hnav, tshaj tawm-subscribe network raws tu qauv uas thauj cov lus ntawm cov khoom siv. Cov raws tu qauv feem ntau khiav dhau TCP/IP; Txawm li cas los xij, txhua lub network raws tu qauv uas muab kev txiav txim, lossless, ob txoj kev sib txuas ua tau kev txhawb nqa MQTT.
MQTT siv qhov twg?
MQTT yog ib qho yooj yim messaging raws tu qauv, tsim los rau constrained li nrog tsawg-bandwidth. Yog li, nws yog qhov kev daws teeb meem zoo tshaj plaws rau Internet of Things applications. MQTT tso cai rau koj xa cov lus txib los tswj cov zis, nyeem thiab tshaj tawm cov ntaub ntawv los ntawm cov sensor nodes thiab ntau ntxiv.
Pom zoo:
Dab tsi yog qhov tsis zoo ntawm cov txheej txheem txheej txheem?
Ib qho tsis zoo ntawm kev siv Procedural Programming raws li ib txoj hauv kev programming yog qhov tsis muaj peev xwm rov siv tau cov lej thoob plaws hauv qhov program. Yuav tsum rov sau tib hom code ntau zaus thoob plaws ib qho kev pab cuam tuaj yeem ntxiv rau tus nqi tsim kho thiab lub sijhawm ntawm qhov project. Lwm qhov tsis zoo yog qhov nyuaj ntawm kev kuaj xyuas yuam kev
Dab tsi yog cov kev pabcuam muab rau txheej txheej network los ntawm cov ntaub ntawv txuas txheej?
Cov kev pabcuam tseem ceeb yog hloov cov ntaub ntawv pob ntawv los ntawm txheej txheej network ntawm lub tshuab xa mus rau txheej txheej network ntawm lub tshuab txais. Hauv kev sib txuas lus tiag tiag, cov ntaub ntawv txuas txheej xa cov khoom ntawm lub cev thiab lub cev nruab nrab
Dab tsi ntawm cov hauv qab no yog hais txog cov txheej txheem ntawm tus kheej muaj cov kev pabcuam uas sib txuas lus los tsim ib daim ntawv thov software ua haujlwm?
Ib qho kev pabcuam-oriented architecture yog teeb tsa cov kev pabcuam tus kheej uas sib txuas lus nrog ib leeg los tsim ib daim ntawv thov software ua haujlwm. Nyob rau hauv ib tug ntau-tiered network: kev ua hauj lwm ntawm tag nrho cov network yog sib npaug ntawm ntau theem ntawm servers
Qhov txheej txheem txheej txheem yog dab tsi?
Lub kaw lus tuaj yeem ua modular nyob rau hauv ntau txoj kev. Ib txoj hauv kev yog txheej txheej txheej, uas cov txheej txheem ua haujlwm tau tawg mus rau hauv ntau txheej (qib). Cov txheej hauv qab (txheej 0) id lub kho vajtse; qhov siab tshaj (txheej N) yog tus neeg siv interface. Txoj kev no ua kom yooj yim debugging thiab kev txheeb xyuas qhov system
Dab tsi yog qhov haujlwm ntawm OSI txheej txheej txheej txheej txheej txheem router ua haujlwm li cas?
Hauv Cov Qauv Qhib Kev Sib Txuas Sib Txuas (OSI) kev sib txuas lus, txheej txheej txheej txheem nyob ntawm Txheej 5 thiab tswj kev teeb tsa thiab rhuav tshem ntawm kev sib txuas ntawm ob qhov kev sib txuas lus kawg. Kev sib txuas lus ntawm ob qhov kawg yog hu ua kev sib txuas