Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Teeb Koj Lub Router (xaiv tau, Tab sis Qhia Tawm)
- Kauj ruam 2: Code
- Kauj ruam 3: Kho vajtse (beta)
- Kauj ruam 4: Outlook/References
Video: [15min] Weasley Moos / Leej Twg Yog Tus Qhia Hauv Tsev - Raws li TR -064 (beta): 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hloov tshiab: Saib cov kauj ruam 3.
Zaj dab neeg ntev (TL; DR hauv qab): Qee lub sij hawm dhau los kuv tau sau me me-bash-script ntawm kuv lub computer uas yuav luam theej tawm lub network rau cov cuab yeej sau npe thiab sib piv lawv cov hostnames tawm tsam cov npe nrog cov npe cuam tshuam. Txhua lub sijhawm ntaus ntawv yuav nkag-hauv lossis tawm hauv lub network Kuv yuav tau txais kev ceeb toom. Zoo li qhov no kuv muaj lub tswv yim leej twg nyob hauv tsev (tsis tsuas yog qee lub sijhawm zoo los paub leej twg nyob hauv tsev nug lawv yog tias lawv xav koom nrog noj mov lossis zoo li, tab sis nws tseem tuaj yeem pab koj zam qhov xwm txheej txawv txawv). Teeb meem yog, tias txoj kev no tsis txaus ntseeg. Hmoov tsis zoo qee cov cuab yeej tsis teb pings (piv txwv li smartphones) thiab zoo li nkag mus rau qee lub zog-txuag hom yog li tsis ntseeg tau pom tau nrog cov lus txib zoo li nmap. Kuv tau sim kov yeej qhov no los ntawm kev xav kom tsawg kawg 10 qhov tsis zoo ua ntej thaum kawg tshaj tawm tias lub cuab yeej tawm hauv lub network. Txhua yam nws ua haujlwm, tab sis maj mam, tsis ntseeg siab thiab tsis zoo heev. Tsis tas li kuv xav tuaj yeem tshuaj xyuas leej twg yog tsev, tsis qhib kuv lub khoos phis tawj, yog li kuv muaj cov ESP8266s dag ib puag ncig - thiab xav ua si nrog lawv. Tab sis kuv tsis xav tsim lub 10.120.124.812th ESP-based huab cua chaw nres tsheb lossis zoo li no (vim li cas koj thiaj xav saib xyuas huab cua nrog koj lub siab ± 2 ° C tus pas ntsuas kub thaum koj tuaj yeem mus ntsib qee lub vev xaib?). Yog li txoj kev npaj tau ua. Hmoov tsis zoo nws hloov tawm tias ESP zoo li tsis tau nruab rau ping kom raug (uas tsis zoo pib nrog, nco ntsoov?) Cia nyob ib leeg ua kom tag nrho tshuab cua tshuab hauv lub network. Kuv txiav txim siab sau qee lub tsev qiv ntawv rau qhov ntawd - tab sis txij li kuv C ++ muaj qhov txwv, qhov no yog kuv thawj ESP -project thiab kuv tsis yog tus ntse nrog cov khoom siv network txawm tias kuv tau tshem lub tswv yim ntawd. Tom qab ua qee qhov kev tshawb fawb, kuv pom tias, router (hom Fritz! Box) yeej muaj API! YAJ !!!! Cov txheej txheem hu ua TR-064. Xws li lub npe txhawb siab, txoj cai? Ua qee qhov kev tshawb fawb txog qhov teeb meem, Kuv pom cov ntaub ntawv (tsis zoo li qub) online. Nws coj kuv qee lub sijhawm los ua haujlwm. Kuv yuav tshaj tawm cov lus qhia ntxiv hauv ob peb hnub tom ntej (thiab yuav sib txuas lus li cas nrog/sim qhov API no siv qhov browser txuas ntxiv). Thaum kuv nkag siab API, kuv pib siv nws los ntawm kuv ESP. Zaj dab neeg luv luv: Kuv tau txais ib daim kab xev-thiab-wd40 daws thiab ua qhov kuv xav tau (nug API rau cov khoom siv sib txuas, sib piv lawv rau cov npe MAC-chaw nyob thiab hloov LEDs raws li). Tab sis kuv xav tau qhov muaj zog dua thiab cov kev daws teeb meem yooj yim thiab API no muaj ntau ntxiv los muab (koj tuaj yeem hloov chaw (qhib/tua wifi, hloov tus password, qhib/kaw cov qhua wifi, hloov lub teeb liab lub zog), rov pib dua lub router, nug qhov txuas txuas, …) - yog li kuv txiav txim siab los tsim lub tsev qiv ntawv thoob ntiaj teb TR -064! TL; DR; Ntaus ntawv uas qhia ntawm LEDs uas tam sim no nyob hauv tsev. Ua haujlwm tau zoo, tseem tsis muaj vaj tsev zoo nyob (hey - pom beta hauv lub npe?). Siv SOAP-raws tu qauv los tham nrog router. Sau Arduino tsev qiv ntawv kom ua li ntawd. Required knowledge • Basic Arduino/ESP knowledge • Yog tias koj tau teeb tsa Blink piv txwv nrog koj ESP, koj yuav zoo! • Yog tsis yog, koj tuaj yeem ua raws thawj ob kauj ruam ntawm cov lus qhia no • los ua ke, yog tias koj xav tawm ntawm lub khob cij theem • Qee qhov 3D tsim qauv/lossis ua haujlwm ntoo tuaj yeem ua haujlwm tau yooj yim rau vaj tsev Github qhov txuas [https://github.com/Aypac/Arduino-TR-064-SOAP-Library] rau kev siv ceev
Khoom siv
- ESP8266 lossis ESP32 ntawm Development-Board lossis nrog lwm tus programmer (2 ~ 6 €)
- USB cable haum tus programmer
- Lub hwj chim adapter (piv txwv li USB lossis roj teeb ~ 2 €)
- Ob peb LEDs thiab resistors (~ 1 €)
- (Casing)
=> Ib puag ncig 4-6 € rau qhov tsim qauv me me. Qhov ntawd txhais tau rau kuv, tias kuv tuaj yeem dai ob peb ncig lub tsev. Yog tias koj tub nkeeg, koj kuj tseem tuaj yeem siv daim ntawv txhim kho nrog nrog LED's (saib cov kauj ruam 4 kom paub meej ntxiv).
Kauj Ruam 1: Teeb Koj Lub Router (xaiv tau, Tab sis Qhia Tawm)
Cov txheej txheem tau tsim los ua cov txheej txheem dav dav rau routers, tab sis kuv tsuas paub tias (feem ntau) Fritz! Box routers (feem ntau tsawg kawg hauv Tebchaws Europe) siv nws. Tsis paub txog lwm hom khoom. Yog li kuv yuav xav tias, koj siv Fritz! Box. Yog tias koj tuaj yeem ua txoj haujlwm no (lossis ua tsis tiav) ntawm lwm lub router, Kuv zoo siab ntxiv nws rau cov lus qhia no (tej zaum txawm tias pib ua daim ntawv teev npe luv?).
Cov kauj ruam no tsis tsim nyog, koj kuj tseem tuaj yeem siv koj tus as -qhauj tus account, tab sis qhov ntawd tsis pom zoo rau qhov laj thawj pom tseeb (tej zaum yuav cuam tshuam lossis rho tawm los ntawm koj li ESP, koj yuav yuam kev hloov cov khoom koj tsis xav tau, …) - yog li kuv qhia koj ua nws.
Xijpeem, ntawm no peb mus:
- Nkag mus rau hauv koj lub Fritz! Lub thawv los ntawm kev ntaus fritz.box hauv qhov url-bar ntawm koj tus browser nyiam.
- Nrhiav nplooj ntawv txhawm rau tsim FRITZ tshiab! Cov neeg siv lub thawv (koj yuav tsum muaj qib siab nws yuav tsum yog nyob rau hauv System, yog tias koj tsis pom nws, sim hloov kho koj lub cuab yeej).
- Tsim tus as khauj tshiab raws li koj pom hauv daim duab (siv lwm tus neeg siv lub npe/tus password!).
- Tawm.
Kauj ruam 2: Code
-
Koj tuaj yeem tau txais lub tsev qiv ntawv los ntawm Github.
- Hauv cov piv txwv koj yuav pom cov ntawv hu ua home-indicator.ino, uas yog tus lej rau txoj haujlwm no. Muab cov piv txwv nplaub tshev tso rau hauv koj lub arduino IDE qhov phiaj xwm phiaj xwm tsev thiab lwm daim nplaub tshev rau hauv cov tsev qiv ntawv tais ceev tseg hauv tib lub phiaj xwm tsev.
- (Re) Pib koj IDE.
- Qhib tsev-indicator.ino hauv IDE thiab nkag mus rau koj qhov chaw. Nws yuav tsum pom tseeb heev dab tsi mus qhov twg. Yog koj muaj lus nug, qhia rau kuv paub!
- Tam sim no koj tuaj yeem suav nws thiab hloov nws mus rau koj li ESP!
Kauj ruam 3: Kho vajtse (beta)
Yog … Nov yog cov kauj ruam, qhov twg kuv tseem xav tau ua haujlwm ntxiv. Tab sis kuv kwv yees muaj cov ntaub ntawv txaus hauv lub vev xaib los xam qee yam:) Lub teeb raws li hauv cov duab tsuas yog lub diode nrog ~ 100Ohm resistor txuas rau GPIO {5, 4, 0, 2}, uas yog D1, D2, D3, D4 (nyob rau hauv qhov kev txiav txim) pins ntawm kuv MCU ESP8266 pawg thawj coj saib thiab cov kab txaij me me siv cov cathodes rau GND (cim G ntawm kuv lub rooj tsavxwm). Yog koj tub nkeeg, koj tuaj yeem ua qhov koj pom hauv daim duab thib ob. Tsuas yog siv daim phiaj txhim kho nrog cov LED (zoo li "ESP-202", saib cov duab-ncig 3.50-5.00 € suav nrog thauj khoom). Tom qab ntawd koj tuaj yeem cia li nqes nws mus rau USB lub zog lossis siv cov roj teeb uas suav nrog, kos qhov sib cuam tshuam ntawm ib daim ntawv thiab lo rau ntawm phab ntsa. Ua tiav.
int userPins [numUser] = {5, 4, 2, 14, 16};
los ntawm sab saum toj mus rau hauv qab.
Kauj ruam 4: Outlook/References
Nov yog qhov kuv tseem npaj: 1. Ua kom muaj vaj tsev zoo (pom tseeb) 2. Ntxiv GUI zoo rau kev tswj hwm cov neeg siv/LEDs/MACs/paub cov cuab yeej 3. Txhim kho lub tsev qiv ntawv (saib Github rau qhov ntawd) 4. Kho: qee zaum LEDs ua rau qeeb qeeb (nws siv sijhawm me ntsis kom txog thaum lawv tua, tom qab lub cuab yeej tawm mus) tsis muaj qhov laj thawj pom tseeb 5. Nqa khoom mus rau hauv txoj kev hauv tsev thiab tej zaum ob peb ntxiv nyob ib puag ncig lub tsev Yuav nyiam kom tau txais qee cov lus qhia los ntawm koj! Thiab zoo li ib txwm, nws ua rau kuv zoo siab heev pom lwm tus tsim qhov quav koj xav, yog li thov siv sijhawm feeb los tawm tswv yim thiab tshaj tawm cov duab!:):) Qee qhov kev qhia ntxiv Kuv yuav txuas qee cov khoom ntawm no, uas yuav pab koj: • TR-064 siv • Qee tus txiv neej ua phem ib puag ncig nrog lub plhaub thiab TR-064 (zoo kom nkag siab API) • Harry Potter Wikipedia: Weasley Moos Nkag Nkag • Qee tus hais mav tsim lub tsev zoo nkauj, tab sis Nyuaj Weasly Clock*_*Nws yog raws li app rau koj lub xov tooj uas tab tom nqa koj qhov chaw nyob. Yog tias koj nyob hauv qee qhov chaw tau teev tseg ua ntej, raws li lub teeb ntawm lub moos yuav qhib. Rau kuv uas nyuaj dhau thiab yuav tsum tau mus rau ntau qhov chaw uas nws tuaj yeem tawg/ua tsis tau: • Cov ntawv thov yuav tsum tau khaws cia txog hnub tim • Txhua tus neeg yuav tsum siv cov apps no • Thiab ua tau zoo nrog qhov cuam tshuam ntawm kev ceev ntiag tug • Lub app tsuas ua haujlwm nrog internet kev sib txuas • Koj yuav tsum siv lub server nruab nrab rau cuam tshuam kev sib txuas lus (tshwj tsis yog koj xav teeb tsa koj esp ua tus server thiab qhib koj lub tsev network rau sab nraud tsheb - ya, tseem muaj lwm yam IOT tsis nyab xeeb txuas ncaj qha rau hauv internet!) • kev pabcuam nruab nrab yuav mus offline ib hnub/hloov nws API, •… Koj xav tau software ntxiv. Ntau lub software txhais tau tias ntau qhov chaw ua qhov yuam kev;) Tab sis, lawv tau ua haujlwm zoo kawg thiab yog tias koj xav ua qee yam zoo li ntawd, taub hau mus rau lawv lub xaib, nws zoo heev!
Pom zoo:
Qhov PNG Yog Qhov Chaw Tsis Pub Leej Twg Paub: 4 Kauj Ruam
Qhov PNG Yog Qhov Chaw Tsis Pub Leej Twg Paub: Koj qhov kev sib tw, tus nyeem ntawv zoo, yog txhawm rau txheeb xyuas cov lus twg tau muab zais hauv cov duab tso tawm.png uas kuv tau muab tso rau hauv github rau koj. Koj tuaj yeem siv MessageHider code nyob ntawd txhawm rau rho tawm cov lus. Yog tias koj tsis meej pem, thov tawm tswv yim hauv qab no thiab kuv yuav pab koj
Daim iav Pom Lub ntsej muag Nrog Qhov Chaw Tsis Pub Leej Twg Paub: 15 Kauj Ruam (nrog Duab)
Lub ntsej muag lees paub daim iav Nrog Qhov Chaw Tsis Pub Leej Twg Paub: Kuv ib txwm muaj kev xav los ntawm qhov muaj tswv yim zais zais uas siv hauv cov dab neeg, tsos, thiab lwm yam. Yog li, thaum kuv pom qhov Kev Sib Tw Tsis Pub Leej Twg Paub Kuv tau txiav txim siab sim nrog lub tswv yim kuv tus kheej thiab ua ib daim iav zoo ib yam uas qhib qhov rooj
Raspberry Pi HomeLab thiab Leej Twg Yog Tsev: 11 Kauj Ruam
Raspberry Pi HomeLab thiab Leej Twg Yog Lub Tsev: Nov yog kuv thawj qhov tsis tsim nyog, Tab sis qhov kev qhia no muaj ob lub fazes.faze ib qho: tab tom teeb tsa pi kom ua haujlwm raws li tsev-lab rau IOT ua haujlwm rau pab pawg ntawm cov tub ntxhais kawm tsim tawm .faze ob: yog siv cov txheej txheem rau kev txhim kho, los ntawm kev ua ib qho kev qhia siv
ARUPI - Tus Nqi Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: 8 Kauj Ruam (nrog Duab)
ARUPI - Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: Cov lus qhia no tau sau los ntawm Anthony Turner. Txoj haujlwm tau tsim los nrog ntau qhov kev pab los ntawm Shed hauv Tsev Kawm Ntawv ntawm Kev Suav, University of Kent (Mr Daniel Knox tau pab zoo!)
Techno-geek Roulette (lossis Leej Twg Ua Tus Kas Fes?): 6 Kauj Ruam (nrog Duab)
Techno -geek Roulette (lossis Leej Twg Ua Tus Kas Fes?): Qhov no yog lub cuab yeej ua los ntawm cov khoom siv khoos phis tawj uas siv dua tshiab los muab qhov tsis meej, tsis meej thiab tsis tuaj yeem teb rau lo lus nug ntawd chaw ua haujlwm nyob mus ib txhis - " Leej twg tig yog nws ua kas fes? &Quot; Txhua lub sijhawm qhib lub zog, qhov khoom siv zoo no