Ikhaya le-Smart yindlu njengeqonga, ukusetyenziswa kwetekhnoloji yocingo oludibeneyo, itekhnoloji yonxibelelwano lwenethiwekhi, itekhnoloji yokhuseleko, itekhnoloji yokulawula ngokuzenzekelayo, itekhnoloji yeaudio kunye nevidiyo ukudibanisa izibonelelo ezinxulumene nobomi bekhaya, ishedyuli yokwakha iindawo zokuhlala ezifanelekileyo kunye nenkqubo yolawulo lwemicimbi yosapho. , ukuphucula ukhuseleko lwasekhaya, ukulungeleka, intuthuzelo, ubugcisa, nokuqonda ukhuseleko lokusingqongileyo kunye nendawo yokuhlala egcina amandla. Ngokusekelwe kwinkcazo yamva nje yekhaya elihlakaniphile, bhekisa kwiimpawu zeteknoloji yeZigBee, uyilo lwale nkqubo, iyimfuneko kwi-smart home system (i-smart home (central) yokulawula inkqubo, inkqubo yokulawula izibane zendlu, iinkqubo zokhuseleko ekhaya), ngesiseko sokujoyina inkqubo yocingo lwendlu, inkqubo yenethiwekhi yasekhaya, inkqubo yomculo yangasemva kunye nenkqubo yolawulo lwemeko yentsapho. On uqinisekiso ukuba uhlala ubukrelekrele, efakwe yonke inkqubo eyimfuneko ngokupheleleyo kuphela, kunye nenkqubo yendlu ukuba efakiweyo inkqubo ozikhethelayo uhlobo olunye nangaphezulu ubuncinane angabiza intelligence uhlala. Ngoko ke, le nkqubo kunokuthiwa ikhaya ezikrelekrele.
1. Inkqubo yoYilo lweNkqubo
Inkqubo yenziwe ngezixhobo ezilawulwayo kunye nezixhobo zokulawula kude ekhaya. Phakathi kwazo, izixhobo ezilawulwayo kwintsapho zibandakanya ikakhulu ikhompyutha enokufikelela kwi-Intanethi, indawo yokulawula, i-node yokubeka iliso kunye nomlawuli wezixhobo zendlu ezinokuthi zongezwe. Izixhobo zokulawula kude ziqulunqwe ikakhulu ziikhompyuter ezikude kunye neefowuni eziphathwayo.
Imisebenzi ephambili yenkqubo yile: 1) iphepha langaphambili lokukhangela iphepha lewebhu, ulawulo lolwazi lwangasemva; 2) Ukuqonda ulawulo lokutshintsha kwezixhobo zendlu yangaphakathi, ukhuseleko kunye nokukhanyisa nge-Intanethi kunye neselfowuni; 3) Ngemodyuli ye-RFID ukuqonda ukuchongwa komsebenzisi, ukuze ugqibezele iswitshi yemo yokhuseleko lwangaphakathi, kwimeko yobusela nge-alam yeSMS kumsebenzisi; 4) Ngokusebenzisa inkqubo yolawulo lwenkqubo yolawulo oluphakathi ukugqiba ulawulo lwendawo kunye nomboniso wobume bokukhanya kwangaphakathi kunye nezixhobo zendlu; I-5) Ukugcinwa kolwazi lomntu kunye nokugcinwa kwemeko yezixhobo zangaphakathi kugqitywe ngokusebenzisa i-database. Kukulungele ukuba abasebenzisi babuze ubume besixhobo sangaphakathi ngolawulo olusembindini kunye nenkqubo yolawulo.
2. Uyilo Lwezixhobo zeNdlela
Uyilo lwe-hardware yenkqubo lubandakanya ukuyila kweziko lolawulo, i-node yokubeka iliso kunye nokongezwa okukhethiweyo komlawuli wesixhobo sasekhaya (thatha umlawuli wombane wombane njengomzekelo).
2.1 Iziko loLawulo
Imisebenzi ephambili yeziko lolawulo ngolu hlobo lulandelayo: 1) Ukwakha inethiwekhi yeZigBee engenazintambo, yongeza zonke iindawo zokubeka iliso kwinethiwekhi, kwaye uqaphele ukwamkelwa kwezixhobo ezitsha; 2) ukuchongwa komsebenzisi, umsebenzisi ekhaya okanye ngasemva ngekhadi lomsebenzisi ukufikelela kwiswitshi yokhuseleko lwangaphakathi; 3) Xa isela lingena egumbini, thumela umyalezo omfutshane kumsebenzisi ukuba alumkise. Abasebenzisi banokulawula ukhuseleko lwangaphakathi, ukukhanya kunye nezixhobo zasekhaya ngemiyalezo emifutshane; 4) Xa inkqubo isebenza yodwa, i-LCD ibonisa ubume benkqubo yangoku, ekulungele ukuba abasebenzisi bajonge; I-5) Gcina imeko yezixhobo zombane kwaye uyithumele kwi-PC ukuze uqaphele inkqubo kwi-intanethi.
I-hardware ixhasa iCarrier sense multiple access/Conlision discovery (CSMA/CA). Umbane osebenzayo we-2.0 ~ 3.6V ulungele ukusetyenziswa kwamandla aphantsi kwenkqubo. Cwangcisa inethiwekhi yeenkwenkwezi yeZigBee engenazingcingo ngaphakathi ngokuqhagamshela kwimodyuli yomququzeleli weZigBee kwiziko lolawulo. Kwaye zonke iindawo zokubeka iliso, ezikhethiweyo ukongeza umlawuli wesixhobo sasekhaya njenge-terminal node kuthungelwano ukujoyina inethiwekhi, ukuze uqaphele ulawulo lwenethiwekhi yeZigBee yokhuseleko lwangaphakathi kunye nezixhobo zasekhaya.
2.2 IiNdawo zokuBeka iliso
Imisebenzi ye-node yokubeka iliso yile ndlela ilandelayo: 1) ukufumanisa umqondiso womzimba womntu, isandi kunye ne-alamu yokukhanya xa amasela ehlasela; 2) ulawulo lokukhanyisa, imo yokulawula yahlulwe kulawulo oluzenzekelayo kunye nolawulo oluzenzekelayo, ulawulo oluzenzekelayo lukhanyisa / lucima ukukhanya ngokuzenzekelayo ngokwamandla okukhanya kwangaphakathi, ulawulo lokukhanyisa ukukhanyisa luhamba ngenkqubo yokulawula ephakathi, (3) ulwazi lwe-alam kunye nolunye ulwazi oluthunyelwe kwiziko lolawulo, kwaye lifumana imiyalelo yolawulo kwiziko lolawulo ukugqiba ulawulo lwezixhobo.
Imo ye-infrared kunye ne-microwave yeyona ndlela ixhaphakileyo ekubhaqweni kophawu lomzimba womntu. I-pyroelectric infrared probe yi-RE200B, kunye nesixhobo sokukhulisa i-BISS0001. I-RE200B inikwe amandla ombane we-3-10 V kwaye ine-pyroelectric ene-infrared element eyakhelwe-ngaphakathi. Xa i-elementi ifumana ukukhanya kwe-infrared, umphumo we-photoelectric uya kwenzeka kwiipali zento nganye kwaye intlawulo iya kuqokelela. I-BISS0001 yi-digital-analog hybrid asIC eyenziwe yi-amplifier yokusebenza, i-voltage comparator, isilawuli sikarhulumente, isibali-xesha sokulibaziseka kunye nokuthintela ixesha. Kunye ne-RE200B kunye namacandelo ambalwa, i-passive pyroelectric infrared switch inokwakheka. Imodyuli ye-Ant-g100 yayisetyenziselwa inzwa ye-microwave, i-frequency center yayiyi-10 GHz, kwaye ixesha elide lokusekwa laliyi-6μs. Idityaniswe nemodyuli ye-infrared ye-pyroelectric, izinga lempazamo lokubona okujoliswe kuko lingancitshiswa ngokufanelekileyo.
Imodyuli yokulawula ukukhanya iqulunqwe kakhulu yi-photosensitive resistor kunye ne-relay yokulawula ukukhanya. Xhuma i-resistor ye-photosensitive kwi-series kunye ne-resistor eguquguqukayo ye-10 K ω, uze udibanise enye isiphelo se-photosensitive resistor emhlabeni, kwaye udibanise enye isiphelo sokumelana nokulungiswa kwinqanaba eliphezulu. Ixabiso le-voltage yeendawo ezimbini zokuxhathisa ukuxhathisa ifunyenwe nge-SCM ye-analog-to-digital converter ukugqiba ukuba ukukhanya kwangoku kuvuliwe. Ukuxhathisa okunokulungiswa kunokulungiswa ngumsebenzisi ukuhlangabezana nokukhanya kokukhanya xa ukukhanya kuvuliwe nje. Izitshixo zokukhanyisa zangaphakathi zilawulwa ngokuhambisa. Inye kuphela igalelo/izibuko lemveliso elinokufikelelwa.
2.3 Khetha isiLawuli seSixhobo seKhaya esongeziweyo
Khetha ukongeza ulawulo lwezixhobo zasekhaya ikakhulu ngokomsebenzi wesixhobo ukufikelela kulawulo lwesixhobo, apha kwifeni yombane njengomzekelo. Ulawulo lwabalandeli liziko lolawulo luya kuba yimiyalelo yolawulo lwabalandeli bePC ethunyelwe kumlawuli wefeni yombane ngokuphunyezwa kothungelwano lweZigBee, inombolo yokuchonga izixhobo zombane ezahlukeneyo yahlukile, umzekelo, amalungiselelo esi sivumelwano inombolo yokuzazisa abalandeli yi-122, inombolo yesazisi yombala weTV yasekhaya. yi-123, ngaloo ndlela iqonda ukuqondwa kweziko lolawulo lwezixhobo zombane ezahlukeneyo zasekhaya. Kwikhowudi yomyalelo efanayo, izixhobo zasekhaya ezahlukeneyo zenza imisebenzi eyahlukeneyo. Umzobo 4 ubonisa ukubunjwa kwezixhobo zekhaya ezikhethiweyo ukongezwa.
3. Uyilo lwesoftware yenkqubo
Uyilo lwesoftware yenkqubo ikakhulu lubandakanya iinxalenye ezintandathu, eziluyilo lwephepha lewebhu elikude, uyilo lwenkqubo yolawulo oluphakathi, iziko lolawulo oluphambili loyilo lwenkqubo ye-ATMegal28, uyilo lwenkqubo yomnxibelelanisi weCC2430, uyilo lwenkqubo yokubeka iliso yeCC2430, CC2430 khetha ukongeza uyilo lwenkqubo yesixhobo.
3.1 Uyilo lwenkqubo yoMququzeleli weZigBee
Umnxibelelanisi kuqala ugqibezela ukuqaliswa kwesicelo, usete imeko yomaleko wesicelo kwaye afumane imeko ukuba angenzi nto, emva koko avule iziphazamiso zehlabathi kwaye aqalise izibuko ze-I/O. Umnxibelelanisi ke ngoko uqalisa ukwakha inethiwekhi yeenkwenkwezi engenazingcingo. Kwiprothokholi, umnxibelelanisi ukhetha ngokuzenzekelayo ibhendi ye-2.4 GHz, inani eliphezulu leebhithi ngomzuzwana ngu-62 500, i-PANID engagqibekanga yi-0 × 1347, ubunzulu be-stack buyi-5, inani eliphezulu leebhayithi ngokuthumela yi-93, kwaye i-serial port baud rate yi-57 600 bit/s. I-SL0W TIMER yenza iziphazamiso ezili-10 ngesekhondi. Emva kokuba inethiwekhi yeZigBee isekwe ngempumelelo, umququzeleli uthumela idilesi yakhe kwi-MCU yeziko lolawulo. Apha, iziko lolawulo lwe-MCU lichonga uMququzeleli weZigBee njengelungu le-node yokubeka iliso, kwaye idilesi yayo echongiweyo ngu-0. Inkqubo ingena kwi-loop engundoqo. Okokuqala, qaphela ukuba kukho idatha entsha ethunyelwe yi-terminal node, ukuba kukho, idatha idluliselwa ngokuthe ngqo kwi-MCU yeziko lolawulo; Qinisekisa ukuba i-MCU yeziko lolawulo inemiyalelo ethunyelwe phantsi, ukuba kunjalo, thumela imiyalelo phantsi kwi-node ye-terminal ye-ZigBee ehambelanayo; Gweba ukuba ukhuseleko luvulekile, nokuba kukho umqhekezi, ukuba kunjalo, thumela ulwazi lwe-alamu kwi-MCU yeziko lolawulo; Gweba ukuba ukukhanya kukwimo yolawulo oluzenzekelayo, ukuba kunjalo, vula i-analog-to-digital converter ye-sampling, ixabiso lesampulu liyisitshixo sokuvula okanye ukucima ukukhanya, ukuba imeko yokukhanya iyatshintsha, ulwazi olutsha lwelizwe. isasazwe kwiziko lolawulo MC-U.
3.2 iZigBee Terminal Node Programming
I-terminal node yeZigBee ibhekisa kwinodi yeZigBee engenazingcingo elawulwa ngumnxibelelanisi weZigBee. Kwinkqubo, ubukhulu becala yindawo yokubeka iliso kunye nokongezwa okukhethiweyo komlawuli wesixhobo sasekhaya. Ukuqaliswa kwee-terminal nodes ze-ZigBee kukwabandakanya ukuqaliswa kwe-application layer, iziphazamiso zokuvula, kunye nokuqalisa izibuko ze-I/O. Emva koko zama ukujoyina inethiwekhi yeZigBee. Kubalulekile ukuba uqaphele ukuba kuphela ii-nodes zokuphela kunye nokusekwa komququzeleli weZigBee zivunyelwe ukujoyina inethiwekhi. Ukuba i-terminal node yeZigBee iyasilela ukujoyina inethiwekhi, iyakuphinda izame rhoqo kwimizuzwana emibini ide ijoyine ngempumelelo inethiwekhi. Emva kokujoyina inethiwekhi ngempumelelo, i-ZI-Gbee terminal node ithumela ulwazi lwayo lokubhalisa kuMququzeleli weZigBee, emva koko idlulisele kwi-MCU yeziko lolawulo ukugqiba ukubhaliswa kwe-terminal node yeZigBee. Ukuba i-terminal node yeZigBee yindawo yokubeka iliso, inokuqonda ulawulo lokukhanya kunye nokhuseleko. Inkqubo ifana nomququzeleli weZigBee, ngaphandle kokuba i-node yokubeka iliso idinga ukuthumela idatha kumququzeleli weZigBee, kwaye ke uMququzeleli weZigBee uthumela idatha kwi-MCU yeziko lolawulo. Ukuba i-node ye-terminal ye-ZigBee ngumlawuli we-fan yombane, idinga kuphela ukufumana idatha yekhompyutheni ephezulu ngaphandle kokulayisha urhulumente, ngoko ulawulo lwayo lunokugqitywa ngokuthe ngqo ekuphazamisekeni kokufumana idatha engenazintambo. Kwiidatha ezingenazintambo ezifumana ukuphazamiseka, zonke iinqununu ze-terminal ziguqulela imiyalelo yokulawula efunyenweyo kwiiparitha zokulawula i-node ngokwayo, kwaye musa ukucubungula imiyalelo efunyenweyo engenazintambo kwiprogram ephambili ye-node.
4 Ukulungiswa kweempazamo kwi-Intanethi
Umyalelo okhulayo wekhowudi yomyalelo wezixhobo ezisisigxina ezikhutshwe yinkqubo yolawulo lolawulo oluphakathi uthunyelwa kwi-MCU yeziko lolawulo ngokusebenzisa i-serial port yekhompyutheni, kunye nomququzeleli ngokusebenzisa i-interface yemigca emibini, kwaye emva koko kwi-terminal ye-ZigBee. indawo yomnxibelelanisi. Xa i-terminal node ifumana idatha, idatha ithunyelwa kwi-PC nge-port ye-serial kwakhona. Kule PC, idatha efunyenwe yi-node ye-terminal ye-ZigBee ithelekiswa nedatha ethunyelwe liziko lolawulo. Inkqubo yolawulo oluphakathi ithumela imiyalelo emi-2 rhoqo ngesibini. Emva kweeyure ze-5 zokuvavanya, isofthiwe yokuvavanya iyayeka xa ibonisa ukuba inani elipheleleyo leepakethi ezifunyenweyo ziyi-36,000 iipakethi. Iziphumo zovavanyo lwesoftware yovavanyo lweeprotocol ezininzi ziboniswa kuMfanekiso 6. Inani leepakethe ezichanekileyo yi-36 000, inani leepakethe ezingalunganga ngu-0, kwaye izinga lokuchaneka liyi-100%.
Itekhnoloji yeZigBee isetyenziselwa ukuqonda uthungelwano lwangaphakathi lwekhaya elihlakaniphile, elineenzuzo zokulawula kude, ukongezwa okuguquguqukayo kwezixhobo ezitsha kunye nokusebenza okuthembekileyo kokulawula. Itekhnoloji yeRFTD isetyenziselwa ukuqonda ukuchongwa komsebenzisi kunye nokuphucula ukhuseleko lwenkqubo. Ngokufikelela kwimodyuli ye-GSM, ulawulo olukude kunye nemisebenzi ye-alarm iyenzeka.
Ixesha lokuposa: Jan-06-2022