Cov txheej txheem:
- Kauj ruam 1: Arduino Teeb
- Kauj ruam 2:
- Kauj Ruam 3: Arduino Serial Monitor
- Kauj ruam 4: Nkag mus rau Sigfox
- Kauj ruam 5: Sigfox Device Page
- Kauj Ruam 6: Sigfox Callback
- Kauj Ruam 7: Sigfox New Callback
- Kauj Ruam 8: Sigfox Tsim Hom Callback
- Kauj ruam 9: Sigfox rau AWS CloudFormation
- Kauj ruam 10: AWS Stack Creation 1
- Kauj Ruam 11: AWS Pawg Tsim 2
- Kauj Ruam 12: AWS Tus lej Zauv Qhov Chaw
- Kauj Ruam 13: AWS Tus lej Zauv Qhov Chaw
- Kauj Ruam 14: AWS Stack Creation
- Kauj Ruam 15: AWS Stack Creation Final
- Kauj Ruam 16: AWS Tshooj Lus
- Kauj Ruam 17: AWS Tshooj Paub meej 2
- Kauj Ruam 18: Sigfox Callback Creation Final
- Kauj Ruam 19: Sigfox Callback Creation Check
- Kauj ruam 20: AWS-Tsim DynamoDB Table
- Kauj ruam 21: AWS- Tsim DynamoDB Table 2
- Kauj ruam 22: Nkag mus rau AWSIot Console
- Kauj Ruam 23: AWS DynamoDB Tsim Txoj Cai
- Kauj Ruam 24: AWS DynamoDB Ntxiv Kev Ua
- Kauj Ruam 25: AWS DynamoDB Ntxiv Kev Ua 2
- Kauj ruam 26:
- Kauj ruam 27: AWS DynamoDB Role Creation
- Kauj Ruam 28: AWS DynamoDB Role Creation End
- Kauj ruam 29:
Video: SigFox to AWS: 29 Steps
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
I. QHOV TSEEB
1. Tus Sau
Kuv Lub Npe yog Hooi Yong Hua thiab kuv yog los ntawm Singapore Polytechnic, Diploma ntawm Computer Engineering.
Kuv yog ib feem ntawm pab pawg uas muaj 3 tus tswv cuab; Tsawg Jun Qian, Takuma kabeta thiab kuv tus kheej.
Cov lus qhia no yog ib feem ntawm txoj haujlwm xa cov ntaub ntawv los ntawm cov ntsuas hluav taws xob hauv is taws nem mus rau qhov cuab yeej kawg thiab ua
kev lag luam tsom xam. Peb Tus Thawj Saib Xyuas Haujlwm yog Mr Teo Shin Jen.
2. Lub Hom Phiaj
Xa cov ntaub ntawv sib piv los ntawm lub ntsuas (DS18B20) siv Arduino nrog Sigfox Shield hla internet rau sigfox servers tom qab ntawd thawb cov ntaub ntawv mus rau AWS (Amazon Web Services Cloud) thiab khaws nws hauv AWS Dynamo DataBase (DynamoDB)
3. Lub Hom Phiaj
Txhawm rau ua kom yooj yim cov lus qhia rau ntsuas Sensor rau Arduino rau Sigfox rau AWS cov ntaub ntawv hloov pauv thiab sib sau tag nrho cov ntaub ntawv hauv ib qho. Yog xav paub ntau ntxiv, tshwj xeeb txog sigfox rau AWSIot Kev Sib Txuas, nws tau pom zoo kom tshuaj xyuas thawj kab lus los ntawm AWS
3. Yuav Tsum Muaj Peev Xwm:
1. Paub Nrog Arduino IDE, suav nrog ntxiv Library thiab upload code rau arduino board. 2. Kev paub pib ntawm Amazon Web Service, Tshwj xeeb yog Tsim Stack, DynamoDB thiab Tsim Cov Cai.
3. Muaj twb tau qhib Sigfox Subscription thiab tuaj yeem xa lus (Cov Ntaub Ntawv) los ntawm Sigfox Device rau SigFox Cloud
II. Teeb - Up
A. Hardware
1. Arduino Uno x1
2. Sigfox Arduino Shield: UnaShield_RC1692HP-SIG (Version 1A) x1
3. Xov tooj cua Antannae x1
4. USB B rau A Cable (txuas Arduino rau PC) x1
5. Sensor teeb tsa (BreadBoard, Temp Sensor DS18B20, 3x Txiv neej rau Txiv Neej Txuas; 1 qhov hluav taws xob [liab] 1 Hauv av [Dub] 1 Cov Ntaub Ntawv [Dawb])
B. Software
1. Arduino IDE (Version 1.8.1 tau siv hauv qhov kev qhia no)
2. Arduino Library hu uaUnabiz Arduino Master Library nrog Xa - Teeb - Piv Piv Txwv Txhim Kho
C. Account (Online) & Kev Sau Npe
1. Sigfox Server Subscription (Los nrog Sigfox Devices)
2. Amazon AWS Account nrog kev nkag mus rau cloudformation (Kev Tsim Pawg) & DynamoDB
Cov ntaub ntawv IV:
aws.amazon.com/blogs/iot/connect-your-dev….
Kauj ruam 1: Arduino Teeb
A. Thawj kauj ruam yog xa cov piv txwv kos duab xa qib teeb mus rau arduino.
Txhawm rau ua li ntawd qhib arduino IDE, nyem rau ntawm cov lus hauv qab no hauv kev txiav txim: Cov Ntaub Ntawv> Piv txwv> unabiz-arduino-master (hauv qab ntu ntu Cov Tsev Qiv Ntawv)> xa-teeb-qib. Xa mus rau daim duab 5 Yog tias ib lo lus hais uas yuav tsum tau nyem yog ploj lawm, rov nruab unabiz arduino tus tswv tsev qiv ntawv (Cov kauj ruam hauv ntu 1). Rov ua cov kauj ruam 1.
B. Hloov lub deviceid rau koj lub cuab yeej sigfox.
Txoj kab ntawm txoj cai yuav raug hloov yog (qhia hauv Duab)
zoo li qub const String device = "xxxxx"; // Teeb qhov no rau koj lub npe ntaus ntawv yog tias koj siv UnaBiz Emulator.
C. Txheeb xyuas thiab xa cov cai rau Arduino Sigfox Device.
(Nco ntsoov xaiv lub rooj tsav xwm raug (hauv qhov no arduino uno) thiab Serial Port)
Kauj ruam 2:
Kauj Ruam 3: Arduino Serial Monitor
Ntawm Arduino IDE, xaiv cov cuab yeej ua raws Serial Monitor. Nws yuav tsum tso saib Message.addfield thiab Radiocrafts.sendmessage:. Radiocrafts.sendmessage: ua raws los ntawm sigfox deviceid
Kauj ruam 4: Nkag mus rau Sigfox
1 Nkag mus ntawm
Kauj ruam 5: Sigfox Device Page
2. Nyem rau ntawm Device Tab. Qhov thib ob, Txheeb xyuas qhov pom pom zaum kawg (C) kom paub tseeb tias sigfox tseem nquag ua haujlwm xa cov ntaub ntawv.
Yog tias tom qab kwv yees li 15-20 feeb Qhov Sib txawv ntawm lub sijhawm tam sim no thiab lub sijhawm pom tias tsis tau poob qis, tej zaum yuav muaj teeb meem nrog sigfox.
Tom qab ntawv nyem rau ntawm Sigfox Device siv nyob rau hauv Ntaus Ntaus Ntaus (B).
Koj yuav raug coj mus rau ntu Ntaus Ntaus
Kauj Ruam 6: Sigfox Callback
Xaiv Callback los ntawm lub paj liab sab laug pane (Lub voj voos liab)
Kauj Ruam 7: Sigfox New Callback
Nyem lo lus Tshiab nyob rau sab saum toj sab tes xis hauv qab lub logout khawm (Lub ntsej muag liab).
Kauj Ruam 8: Sigfox Tsim Hom Callback
5. Xaiv AWS IOT los ntawm cov npe hu rov qab Hom muaj. (Nws yog txoj haujlwm thib ob). Koj yuav raug coj mus rau nplooj ntawv tom ntej
Kauj ruam 9: Sigfox rau AWS CloudFormation
Xaiv Launch Stack Button (A).
Koj yuav raug xa mus rau AWS CloudFormation Tsim Pawg Nplooj Ntawv, (Tsim Tus Qauv) ntu.
(Yog tias koj tsis tau nkag mus rau hauv aws ua ntej qhov no koj yuav tsum tau ua tam sim no)
Nco Ntsoov Tus ID Sab Nraud (B) raws li nws yuav siv tom qab
Cheeb Tsam (C) rau singapore yog ap-southeast-1 Xa mus rau https://docs.aws.amazon.com/general/latest/gr/ran… rau lwm thaj tsam.
Kauj ruam 10: AWS Stack Creation 1
Nco ntsoov khawm ntawm ib sab Txheeb xyuas Amazon S3 tus qauv url (A).
Xaiv lo lus NEXT hauv qab txoj cai kaum (B).
koj yuav raug coj mus rau nplooj ntawv tom ntej (Qhia meej ntu ntu)
Kauj Ruam 11: AWS Pawg Tsim 2
Hauv nplooj ntawv no (Qhia meej Cov Lus Qhia) koj yuav tsum ua kom tiav 5 lub thawv, uas yog Lub Npe Stack, AWSAcountID, ExternalID, Cheeb Tsam thiab TopicName.
Cov lus qhia ntxaws yog pom hauv qab no. Nyem Tom ntej tom qab koj ua tiav (hauv qab txoj cai kaum).
Ua ntej tshaj rau Stackname siv SigFoxIotConnector.
Qhov thib ob rau Sab Nraud ID, Siv Cov Ntaub Ntawv tau sau tseg hauv Kauj Ruam 6 Sab Nraud ID, Siv Cov Ntaub Ntawv tau sau tseg hauv Kauj Ruam 6
Qhov thib peb rau Cheeb Tsam, Siv Ap-Southeast-1 (Rau Singapore) lossis xa mus rau qhov txuas no:
Plaub rau TopicName siv sigfox.
Thaum kawg rau AWS Tus lej ID nws yuav tham hauv kauj ruam tom ntej
Kauj Ruam 12: AWS Tus lej Zauv Qhov Chaw
qhib AWS Console hauv nplooj ntawv cais los ntawm txhaj qhov txuas no: https://ap-southeast-1.console.aws.amazon.com/con… (lossis los ntawm lwm txoj kev)
Nyem rau khawm kev txhawb nqa nyob ntawm kaum sab xis saum toj kawg nkaus ua rau cov ntawv qhia zaub mov yuav poob qis
Tom qab ntawd nyem rau lub chaw pabcuam nyob hauv cov ntawv qhia zaub mov nco.
Kauj Ruam 13: AWS Tus lej Zauv Qhov Chaw
Qhov no yuav coj koj mus rau nplooj ntawv txhawb nqa nplooj ntawv, uas qhia txog tus accountID ntawm lub kaum sab xis saum toj kawg nkaus, hauv qab lub pob txhawb nqa.
Hloov tus lej (AWS Tus lej Tus lej) mus rau AWS AccountID hauv Kauj Ruam 9 thiab nyem Tom ntej nyob hauv qab txoj cai hauv qab ntawm nplooj ntawv ntawd.
Kauj Ruam 14: AWS Stack Creation
9. Nplooj ntawv no (Xaiv) tsis tsim nyog rau qhov kev qhia no. nyem tom ntej ntawm lub kaum sab xis hauv qab coj koj mus rau Nplooj Ntawv Tshuaj Xyuas
Kauj Ruam 15: AWS Stack Creation Final
Ntawm Nplooj Ntawv Txheeb Xyuas, khij tias txhua cov ntaub ntawv nkag tau raug, thiab hauv qab ntu muaj peev xwm kos lub thawv nyob ib sab
kab lus "Kuv lees paub tias AWS CloudFormation yuav tsim IAM cov peev txheej."
Thaum kawg nias lub khawm tsim (Hauv qab txoj cai kaum ntawm Screen) los tsim pawg.
Koj yuav rov qab mus rau Cloud Formation Management Console.
Kauj Ruam 16: AWS Tshooj Lus
t Cloudform tswj kev tswj hwm, pawg tsim tshiab yuav tsum qhia CREATE_COMPLETE hauv kab xwm txheej tom qab 2-10 feeb
Nyem lub npe pawg kom pom cov ntsiab lus hais txog nws.
Kauj Ruam 17: AWS Tshooj Paub meej 2
Nrhiav Cov Lus Tshooj thiab nyem rau xub xub ua ntej nws.
Luam ARN Txoj Cai Tus Nqi Sab thiab kos kom paub tseeb tias lwm qhov txiaj ntsig raug.
Kauj Ruam 18: Sigfox Callback Creation Final
Hloov Rov Qab mus rau SigFox Lub Vev Xaib Qhov Teeb Meem Rov Qab (Kauj Ruam 7; Los Ntawm Qhov Chaw Laus Laus khawm nyob) thiab sau tag nrho cov thawv ntxiv tshwj tsis yog kev cai them nqi teeb tsa.
Luam the Aforementioned ARN Role rau qhov no.
Txog Json Lub Cev, Luam thiab muab cov cai hauv qab no.
Tom qab txhua qhov ua tiav Xaiv OK. Nplooj ntawv tom ntej no qhia txog kev hu xov tooj sib txuas rau xaiv lub cuab yeej sigfox
Kauj Ruam 19: Sigfox Callback Creation Check
Nco ntsoov tias tsis muaj qhov yuam kev thiab [POST] txuas hauv qab cov ntaub ntawv seem zoo ib yam li daim duab.
Kauj ruam 20: AWS-Tsim DynamoDB Table
Xaiv DynamDB hauv amazon cov ntawv qhia zaub mov ces nyem tsim cov lus
Kauj ruam 21: AWS- Tsim DynamoDB Table 2
Sau tag nrho cov thawv uas tsis muaj dab tsi.
Rau Cov Npe Lub Npe, muab sigfox; Rau qhov muab faib qhov tseem ceeb, muab ntaus ntawv, ua raws los ntawm kev txheeb xyuas lub npov tseem ceeb thiab muab sijhawm.
nyem tsim kom tiav (tsis txhob kov ib qho uas tsis tau hais txog qhov teeb tsa). Tos ib pliag rau lub rooj kom ua tiav.
Kauj ruam 22: Nkag mus rau AWSIot Console
Qhib AWS Console, xaiv AWS Iot, xaiv Rule thiab tom qab ntawd xaiv tsim Rule
Kauj Ruam 23: AWS DynamoDB Tsim Txoj Cai
4. Muab lub Npe Sigfox, * rau tus cwj pwm thiab kawg tso sigofox ntawm lub ncauj lus lim.
Kauj Ruam 24: AWS DynamoDB Ntxiv Kev Ua
Tom ntej no koj yuav tsum tsim qhov kev nqis tes ua. Xaiv Ntxiv Kev Ua thiab hauv kev xaiv "ntxig lus rau hauv DynamoDB".
Kauj Ruam 25: AWS DynamoDB Ntxiv Kev Ua 2
Siv tib lub npe (sigfox) los sau rau hauv Table Table Name.
Hash thiab nag qhov tseem ceeb yuav tsum tsim nws tus kheej.
Sau Hash Tus Nqi Tseem Ceeb nrog $ {device} thiab RangeKeyData Tus Nqi nrog $ {timestamp ()} hauv qab sau cov lus.
Thaum kawg, Sau rau hauv lub npov uas sau tias "Sau cov ntaub ntawv xov rau kab ntawv no" nrog them nyiaj (Tsis yog ncig)
Daim duab qhia hauv qab no
Kauj ruam 26:
Kauj ruam 27: AWS DynamoDB Role Creation
Tom ntej no yog tsim lub luag haujlwm tshiab. nyob rau hauv IAM lub luag haujlwm lub npe, nkag mus rau dynamodbsigfox, nyem tsim lub luag haujlwm ces nyem ntxiv ua
Kauj Ruam 28: AWS DynamoDB Role Creation End
Thaum kawg nyem Tsim Txoj Cai los qhwv cov khoom. (ntxiv hauv qab txoj cai kaum)
Kauj ruam 29:
Tam sim no rov qab mus rau DynamoDB Table thiab pom lub rooj tau puv lawm
Nco tseg: Yog tias tsis muaj dab tsi nthuav tawm ntawm lub rooj, 1 qhov teeb meem muaj peev xwm yuav yog tias AWS console nyob hauv thaj av tsis raug cai kom ntseeg tau tias thaj av aws console nyob hauv yog tib yam li thaj av tau qhia hauv Stack Creation
Pom zoo:
Pom cov ntaub ntawv los ntawm Magicbit hauv AWS: 5 Kauj Ruam
Visualizing Cov Ntaub Ntawv Los Ntawm Magicbit hauv AWS: Cov ntaub ntawv sau los ntawm cov ntsuas txuas nrog Magicbit yuav tshaj tawm rau AWS IOT core los ntawm MQTT kom pom tau qhov pom tseeb hauv lub sijhawm. Peb tab tom siv khawv koob raws li pawg thawj coj loj hauv txoj haujlwm no uas yog raws ESP32. Yog li txhua yam ESP32 d
Kev Siv Hluav Taws Xob & Kev Saib Xyuas Ib puag ncig ntawm Sigfox: 8 Cov Kauj Ruam
Kev Siv Hluav Taws Xob & Kev Saib Xyuas Ib puag ncig ntawm Sigfox: Nqe lus piav qhia Qhov haujlwm no yuav qhia koj yuav ua li cas thiaj tau txais kev siv hluav taws xob ntawm ib chav ntawm peb-theem kev faib hluav taws xob thiab tom qab ntawd xa nws mus rau server siv Sigfox network txhua 10 feeb. Yuav ua li cas ntsuas lub zog? Peb tau txais peb lub clamps tam sim no los ntawm
Temp and Humidity Alert Siv AWS thiab ESP32: 11 Cov Kauj Ruam
Temp thiab Humidity Alert Siv AWS thiab ESP32: Hauv qhov kev qhia no, peb yuav ntsuas cov ntsuas kub thiab av sib txawv siv Temp thiab humidity sensor. Koj tseem yuav kawm paub xa cov ntaub ntawv no mus rau AWS
Alexa Lub Suab Tswj Raspberry Pi Drone Nrog IoT thiab AWS: 6 Cov Kauj Ruam (nrog Duab)
Alexa Lub Suab Tswj Raspberry Pi Drone Nrog IoT thiab AWS: Nyob Zoo! Kuv lub npe yog Armaan. Kuv yog menyuam yaus 13 xyoos los ntawm Massachusetts. Cov ntawv qhia no qhia, raws li koj tuaj yeem pom los ntawm lub npe, yuav tsim Raspberry Pi Drone li cas. Cov qauv no qhia txog yuav ua li cas cov drones tab tom hloov pauv thiab tseem loj npaum li cas lawv tuaj yeem ua si hauv
Tsheb kauj vab taug qab System nrog Tuag Tus Txiv Neej Alert Nrog Sigfox: 7 Cov Kauj Ruam (nrog Duab)
Tsheb kauj vab taug qab System Nrog Tuag Tus Txiv Neej Alert Nrog Sigfox: Kev ruaj ntseg rau cov neeg caij tsheb kauj vab nrog taug qab thiab xa cov yam ntxwv ceeb toom. Thaum muaj xwm txheej ceeb toom raug xa nrog GPS txoj haujlwm.Kev ruaj ntseg rau cov neeg caij tsheb kauj vab yog qhov yuav tsum tau, nrog kev tsheb kauj vab lossis tsheb kauj vab roob sib tsoo tshwm sim thiab sai li sai tau thaum muaj xwm txheej ceev