jiejuefangan

IHuawei Harmony OS 2.0: Nakhu konke odinga ukukwazi

Yini iHuawei Harmony OS 2.0 ezama ukuyenza?Ngicabanga ukuthi iphuzu liwukuthi, iyini isistimu yokusebenza ye-IoT (I-inthanethi Yezinto)?Ngokuqondene nesihloko ngokwaso, kungashiwo ukuthi iningi lezimpendulo eziku-inthanethi aziqondwa kahle.Isibonelo, imibiko eminingi ibhekisela kusistimu eshumekiwe esebenza kudivayisi kanye ne-Harmony OS njengesistimu yokusebenza "ye-inthanethi Yezinto".Ngiyesaba lokho akulungile.

Okungenani kulezi zindaba, akulungile.Kunomehluko obalulekile.

Uma sithi uhlelo lokusebenza lwekhompiyutha lusiza abasebenzisi ukuthi basebenzise amakhompuyutha abo ngesofthiwe, uhlelo olushumekiwe luwukuxazulula izinkinga zenethiwekhi nekhompyutha zamadivayisi we-IoT ngokwawo.Umqondo wokuklama weHarmony OS uwukuxazulula lokho abasebenzisi abangakwenza nokuthi bakwenze kanjani ngesofthiwe.

Ngizokwethula kafushane umehluko phakathi kwalezi zinhlelo ezimbili nalokho okwenziwe yiHarmony OS 2.0 ngalo mbono.

1.Isistimu Eshumekiwe ye-IoT ayilingani ne-Harmony

Okokuqala, kukhona okuthile okufanele wonke umuntu akuqaphele.Esikhathini se-IoT, amadivaysi e-elekthronikhi avela ngamanani amakhulu, futhi amatheminali ethula i-isomerization.Lokhu kuletha izenzakalo eziningana:

Enye izinga lokukhula kokuxhumeka phakathi kwamadivayisi likhulu kakhulu kunedivayisi ngokwayo.(Isibonelo, iwashi elihlakaniphile lingaxhuma ku-wifi nakumadivayisi amaningi e-Bluetooth ngesikhathi esisodwa.)

Enye iwukuthi, i-hardware yedivayisi kanye nezivumelwano zokuxhuma ziya ngokuya zihlukahluka, futhi kungathiwa zihlukene.(Isibonelo, indawo yokugcina yamadivayisi e-IoT ingase isuke emashumini amaKilobytes kumatheminali anamandla aphansi ukuya kumakhulu ama-megabytes amatheminali ezimoto, kusukela ku-MCU esebenza kancane ukuya kuma-chips anamandla eziphakeli.)

Njengoba sonke sazi, ukubaluleka kwesistimu yokusebenza ukukhipha imisebenzi eyisisekelo yehadiwe yedivayisi futhi unikeze isixhumi esibonakalayo esihlanganisiwe sesoftware ehlukahlukene yohlelo lokusebenza, ngaleyo ndlela kuhlukanise nokuvikela imisebenzi eyinkimbinkimbi yokuhlela ihadiwe.Ivumela izinhlelo zokusebenza ezahlukahlukene ukuthi zisebenzise ihadiwe ngaphandle kokubhekana nehadiwe.

Ku-inthanethi Yezinto, izinkinga ezintsha zivele ku-hardware ngokwayo, okuyithuba elisha kanye nenselele entsha yezinhlelo zokusebenza.Ukuze kubhekwane nokuxhumana, ukuhlukana, nokuphepha kwalawa madivayisi ngokwawo, kuye kwakhiwe amasistimu wokusebenza ambalwa ashumekiwe, njenge-Lite OS ye-Huawei, i-Mbed OS ye-ARM, i-FreeRTOS, kanye ne-safeRTOS enwetshiwe, i-Amazon RTOS, njll.

Izici eziphawulekayo zesistimu eshumekiwe ye-IoT yilezi:

Izishayeli zehadiwe zingahlukaniswa ku-kernel yesistimu yokusebenza.

Ngenxa yezici ezihlukene nezihlukene zamadivayisi we-IoT, amadivaysi ahlukene ane-firmware namashayeli ahlukene.Badinga ukuhlukanisa umshayeli ku-kernel yesistimu yokusebenza ukuze i-kernel yesistimu yokusebenza ibe yinsiza ehlanjululwayo futhi esebenzisekayo.

Isistimu yokusebenza ingalungiswa futhi yenziwe ngendlela efanele.

Njengoba ngishilo ngaphambili, ukucushwa kwe-hardware yamatheminali e-IoT kunendawo yokugcina kusuka kumashumi ama-kilobytes kuya kumakhulu ama-megabytes.Ngakho-ke, isistimu yokusebenza efanayo idinga ukulungiswa noma ukumiswa ngendlela eguquguqukayo ukuze ivumelane nezimfuneko eziyinkimbinkimbi ezisezingeni eliphansi noma ezisezingeni eliphezulu kanyekanye.

Qinisekisa ukusebenzisana nokusebenzisana phakathi kwamadivayisi.

Kuzoba nemisebenzi eminingi futhi eyengeziwe ukuze idivayisi ngayinye isebenzisane endaweni ye-inthanethi Yezinto.Isistimu yokusebenza idinga ukuqinisekisa umsebenzi wokuxhumana phakathi kwezisetshenziswa ze-inthanethi Yezinto.

Qinisekisa ukuphepha nokwethembeka kwamadivayisi e-IoT.

Idivayisi ye-IoT ngokwayo igcina idatha ebucayi kakhulu, ngakho-ke izimfuneko zokuqinisekisa ukufinyelela kwedivayisi ziphezulu.

Ngaphansi kwalolu hlobo lokucabanga, nakuba lolu hlobo lwesistimu yokusebenza luxazulula ukusebenza kwezingxenyekazi zekhompuyutha, ukushaya ucingo, kanye nezinkinga zenethiwekhi zamadivayisi we-IoT, alucabangi ukuthi yini futhi kanjani abasebenzisi abangasebenzisa lezi zinhlelo ukuze benze lula amadivayisi e-IoT axhunywe ku-inthanethi.

Ngokombono wabasebenzisi, inqubo yokubiza yalolu hlelo lwedivayisi ye-IoT ngokuvamile ifana nalokhu:

Abasebenzisi badinga ukusebenzisa i-APP yabo noma i-IoT yokuphatha isizinda sedivayisi (efana nomphathi wamafu), banxenxe isixhumi esibonakalayo se-IoT kudivayisi, bese befinyelela idivayisi yezingxenyekazi zekhompuyutha ngesistimu kudivayisi ye-IoT.Lokhu kuvame ukubandakanya izingcingo ezifanayo phakathi kwesistimu yokusebenza yeselula kanye nesistimu yedivayisi ye-inthanethi Yezinto.I-APP lapha iwukuphathwa kwangemuva kwedivayisi ye-inthanethi Yezinto.Ukuxhumana phakathi kwanoma iyiphi idivayisi ye-inthanethi Yezinto kuzoba nzima kakhulu.

 2.Yini i-Harmony ethuthukisiwe emibonweni yayo yokuklama?

Ukuxhumana phakathi kwamadivayisi akusewona umsebenzi wesendlalelo sohlelo lokusebenza kodwa kuhlanganiswe futhi kwahlukaniswa nge-middleware.

Phezulu, i-Harmony OS 2.0 ihlukanisa ukuxhumana kwamadivayisi e-IoT “ngebhasi elithambile elisabalalisiwe, ngaleyo ndlela igwema ukuphathwa kokuxhumana kumasistimu eselula ukuze ukwazi ukubona esithangamini sabezindaba ukuxoxisana kwe-Harmony umakhalekhukhwini kanye namadivayisi we-Intanethi Yezinto kukhulu kakhulu. elula.

Kodwa ngokombono wesistimu yokusebenza, ukuhlukaniswa kwe-encapsulation yokuxhumana kuletha okungaphezu nje kokunethezeka kokuphathwa kokuxhumeka.Kusho ukuthi "ukuxhumana" kwehla kusukela kungqimba yohlelo lokusebenza kuya kusendlalelo sehadiwe, kube amandla ayisisekelo wesistimu yokusebenza ehlukanisiwe.

Ngakolunye uhlangothi, izingcingo zensiza yesistimu yokusebenza ye-cross-platform ayidingi ukweqa izendlalelo.Lokhu kusho ukuthi ukusebenzisana kwedatha yesistimu akudingekile ukuthi kuxhunywe futhi kuqinisekiswe umsebenzisi.Ngakho-ke, isistimu yokusebenza ingashayela kuwo wonke amadivayisi ngenkathi iqinisekisa ikhwalithi yokuxhumeka.Ngalesi sikhathi, idivayisi yehadiwe/uhlelo lwekhompuyutha/uhlelo lwesitoreji phakathi kwalawa madivayisi womabili alusebenzisani, ngakho-ke amadivaysi amabili noma ngaphezulu okwabelwana ngawo/isitoreji angakwazi ukusebenzisa—“itheminali ephezulu,” njengokuvumelanisa kwekhamera yedivayisi ehlukahlukene, ukuvumelanisa ifayela, kanye nezingcingo ezingaba khona ze-CPU/GPU ze-cross-platform.

Ngakolunye uhlangothi, futhi kumelela ukuthi abathuthukisi ngokwabo abadingi ukugxila kakhulu ekulungisweni okuyinkimbinkimbi kokuxhumeka kwe-IoT.Kudingeka bagxile ku-logic esebenzayo kanye ne-interface logic.Lokhu kuzonciphisa kakhulu izindleko zokuthuthukiswa kohlelo lokusebenza lwe-IoT ngoba isistimu ngayinye yohlelo lokusebenza ibidingeka ukuthi ithuthukiswe futhi ilungiswe kusuka emisebenzini eyisisekelo kakhulu iye ekuxhumekeni kwedivayisi, okuholela ekuguquleni okungekuhle kwesistimu yohlelo lokusebenza.Onjiniyela badinga kuphela ukuthembela ku-API enikezwe uhlelo lwe-Harmony ukuze bagweme uxhumo lokulungisa iphutha futhi baqedele ukuzivumelanisa nokuthuthukiswa kwamadivayisi amaningi.

Kuyacatshangwa ukuthi kuzoba nezinhlelo zokusebenza eziningi ezizosetshenziswa amadivayisi amaningi e-IoT ngokuzayo, futhi lezi zinhlelo zokusebenza zizosebenza kakhulu kunokumane zinqwabelene ndawonye.Le miphumela idinga ukuthi ibe yizindleko eziphezulu zokuthuthukisa ukuze kube nzima ukuyifeza.

Kulokhu, ikhono:

1. Gwema izingcingo zesistimu yonke ukuze isofthiwe ye-IoT kanye nemishini eminingi yehadiwe ye-IoT inqanyulwe ngokweqiniso ngohlelo lokusebenza.

2. Ukubhekana nezimo ezihluke ngokuphelele, hlinzeka ngezinsizakalo ezibalulekile (ikhadi lesevisi ye-athomu) kuwo wonke amadivaysi e-IoT ngohlelo lokusebenza.

3. Ukuthuthukiswa kohlelo lokusebenza kudinga kuphela ukugxila kumqondo osebenzayo, okuthuthukisa kakhulu ukusebenza kahle kokuthuthukiswa kwezinhlelo zokusebenza zedivayisi ye-IoT eminingi.

Uma sicabanga sijule ngakho lapho wonke amadivaysi exhunyiwe, ingabe izinsiza zohlelo lokusebenza kudivayisi zizoba nokuza kuqala?Kunjalo, uhlelo lwamanje lwe-Harmony kufanele lube umnyombo wokuhlinzeka ngezinsizakalo, futhi idivayisi yokunaka yomuntu iyithuluzi eliyinhloko.

Njengoba ngishilo ekuqaleni, uma kuqhathaniswa ne-inthanethi yesistimu ye-Thing ekhona, ixazulula kuphela izinkinga eziyisisekelo zokuxhumeka okukhulu kwe-Inthanethi Yezinto kanye nokuhlukaniswa kwedivayisi ukuze amadivayisi we-IoT akwazi ukuxhuma;njengesistimu yokusebenza, kufanele kucatshangelwe ukuthi kulula kangakanani kubasebenzisi nonjiniyela ukusebenzisa noma ukunxenxa lawa madivayisi ukuze aqedele umphumela we-1=1 omkhulu kuno-2.

 


Isikhathi sokuthumela: Jun-11-2021