Cov txheej txheem:
- Kauj ruam 1: Kev thaiv kab
- Kauj Ruam 2: Txheeb Xyuas Pawg Thawj Coj-rau-GSM Kev Sib Txuas
- Kauj ruam 3: PPP Config
- Kauj Ruam 4: Khiav PPP
- Kauj ruam 5: Ua
Video: Raspberry Pi Nrog GSM Module: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Qee lub sij hawm dhau los kuv tau sau ob peb nqe lus hais txog kev siv RPI los tshuaj xyuas koj lub tsev:
www.instructables.com/id/Home-Security-Wit…
Kuv cog lus tias yuav sau txog kev siv GSM "sai sai", uas qhov no tau siv 5 lub hlis.
Qhov laj thawj kuv xav tias nws yuav muaj txiaj ntsig hauv cov ntsiab lus ntawd (kev nyab xeeb hauv tsev) pom tseeb - muaj
tseem muaj cov khoom tsis muaj internet siv cable, piv txwv li uas yog rooj plaub nrog ntau lub tsev so hnub so hauv Norway uas kuv tam sim no nyob. 30% ntawm lawv tsis muaj kev nkag mus rau kab sib chaws - Kuv tau xav txog nws ib yam uas yuav siv sijhawm ntau dua (Arduino siv lub zog ntau dhau ib yam los tawm tswv yim daws teeb meem).
Hnub no tsuas yog kev qhia luv luv txog kev siv GSM module txuas RPI rau internet ntawm PPP, tawm ntawm "kev nyab xeeb hauv tsev" ib feem uas yuav xav tau me ntsis ntxiv - RPI tsuas muaj ib ntu (?), Yog li tej zaum koj yuav tsum siv USB -rau -serial hloov pauv xa RFID nyeem ntawv, yog tias koj xav tau.
Kauj ruam 1: Kev thaiv kab
Kuv yuav sim A-GSM module los ntawm itbrainpower.net. Qhov ntawd yog vim kuv tsis tau muaj sijhawm los txuas tus pin rau SIM800L. Kuv cog lus tias kuv yuav. A-GSM tsuas yog qhov ua rau ntau dhau rau txoj haujlwm yooj yim no, Kuv tau txais qhov khoom plig no los ntawm kuv cov npoj yaig thaum kuv tawm hauv Orange Poland, Kuv xav tias yuav tsum tau ua nws.
Ok - tsuas yog ua raws daim duab. Kuv tau txhawj xeeb tias tus tsim khoom Romanian tsis hais qhia txog TTL qib hloov pauv tab sis kuv ntsuas qhov ntsuas hluav taws xob thiab nws xa 3V. Thaum koj npaj txhij nrog cov xov hluav taws xob - nias modem hloov lub zog rau ob lossis ob.
Kauj Ruam 2: Txheeb Xyuas Pawg Thawj Coj-rau-GSM Kev Sib Txuas
Kuv vam tias koj daim npav SIM tsis tiv thaiv tus lej PIN. Nyob rau hauv rooj plaub nws yog koj tuaj yeem tshawb xyuas qhov txuas thiab koj tus lej PIN ib zaug (nws yuav tsis yog 1234;-)):
sudo apt-tau nruab minicom
sudo minicom -D /dev /ttyAMA0 -b 115200
AT
PAB+CPIN = 1234
Kuv xav tias modem ua haujlwm ntawm 115200 baud. Yog tias nws tsis yog thiab koj xav hloov nws-koj tuaj yeem rub tus Python tsab ntawv los ntawm Itbrainpower.net lub vev xaib (RPi_examples-v0.9-2014.09.30.tar) los teeb tsa qhov nrawm, piv txwv li:
sudo python setSerial.py 9600 115200
Ua ntej koj khiav nws tawm tswv yim tawm tag nrho agsm.open () kab, Kuv twv tias qhov no ua haujlwm tau zoo yav dhau los lossis qee qhov lwm yam Linux versions.
Raws li koj tuaj yeem pom ntawm daim duab - Kuv yuav tsum tua lub zog/ntawm GSM tus qauv kom nws lees txais tus lej PIN.
Kauj ruam 3: PPP Config
Cov ntsiab lus ntawm cov kauj ruam los ntawm a-gsm-RPI-piv txwv-py-library-based-v1_2.tar rub tawm los ntawm cov chaw tsim khoom. Hloov kho thiab luam tawm-muab cov ntsiab lus hauv qab no (italic) rau qhov chaw hauv qhov loj.
/etc/chatscripts/gprs
ABORT BUSYABORT VOICE
ABORT "NO CARRIER"
ABORT "Tsis muaj DIALTONE"
ABORT "Tsis muaj TONE TONE"
ABORT "Tsis muaj lus teb"
ABORT "QHIA"
RAWS LI "ERROR"
ABORT "+CGATT: 0"
"" UA
ZOO SIAB 12
OK AW
OK ATE1
OK AT+CGDCONT = 1, "IP", "telia"
OK ATD*99#
ZOO SIAB 22
Txuas ""
Koj tuaj yeem xa koj tus lej PIN ntawm no ib yam (AT+CPIN…). 'telia' yog lub npe APN, koj yuav tsum hloov nws mus rau koj tus neeg siv teeb tsa!
/thiab/ppp/peers/a-gsm
txuas "/usr/sbin/tham -v -f/etc/chatscripts/gprs -T telia"/dev/ttyAMA0
115200
noipdefault
usepeerdns
defaultroute
nyob twj ywm
noj
nocrtscts
hauv zos
Ntawm no koj yuav tsum hloov APN ib yam. Nco ntsoov qhov nrawm yog qhov koj tau tshuaj xyuas ua ntej! Qhov ntawd yog lub hauv paus ntawm qhov nyuaj nrhiav PPP ua tsis tau. BTW - cov kws sau ntawv thov cov npe yog 'pears' (tsis raug).
Kauj Ruam 4: Khiav PPP
Txhawm rau txuas rau internet koj tsuas yog ua:
sudo pon ib-gsm
Qhov teeb meem yuav yog tias koj muaj koj li RPI txuas nrog Internet lawm, yog li kom ntseeg tau tias nws ua haujlwm tsuas yog ua qhov no ua ntej (ntse ntawm Romanians los qhia nws!):
sudo txoj kev del default
Tam sim no koj yuav tsum tau nkag mus rau Is Taws Nem ntawm GSM network. Sim ping qhov chaw nyob!
Txhawm rau kaw PPP:
sudo poff ib-gsm
Yog tias tsis ua tiav koj yuav xav pib PPP hauv kev debug hom:
sudo pon a-gsm debug dump logfd 2 nodetach
Hauv kuv qhov teeb meem yog:
a) tsis teeb tsa APN
b) tsis raug ceev ceev!
c) ib yam dab tsi dai rau /dev /AMA0 - saib "Tsev Ruaj Ntseg" qhia kom paub yuav ua li cas thiaj pub dawb chaw nres nkoj!
Kauj ruam 5: Ua
1) xa cov duab ntawm cov neeg nkag los ntawm MMS, tej zaum yuav ruaj khov dua PPP (kom raug sim)
2) txheeb xyuas txhua qhov no nrog SIM800L
3) PPP, MMS thiab SIM800L nrog Txiv kab ntxwv PI
Nyob twj ywm!
Pom zoo:
Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Laub Khawm: 7 Kauj Ruam
Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Laub Khawm: Yog li hauv cov lus qhia dhau los peb tau teeb tsa ESP-01 nrog Tasmota siv ESP Flasher thiab txuas ESP-01 rau peb lub network wifi.Ntawm no peb tuaj yeem pib tsim nws kom qhib/tua lub teeb hloov siv WiFi lossis lub laub khawm
Xa SMS Nrog Arduino -- TC35 GSM Module: 5 Kauj Ruam
Xa SMS Nrog Arduino || TC35 GSM Module: Hauv qhov haujlwm me me no kuv yuav qhia koj yuav siv TC35 GSM module kom raug thiab yuav siv nws li cas nrog Arduino Uno kom xa SMS nrog nws
Txawb Xov Tooj Siv Yooj Yim Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: 14 Cov Kauj Ruam (nrog Duab)
Kev Siv Xov Tooj Ntawm Lub Xov Tooj Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: Koj puas tau xav tsim qhov kev ua kom txias txias? Yog tias yog, ua li cas txog kev tsim ib qho ntawm cov neeg nyiam tshaj plaws thiab txhua tus nyiam cov khoom siv xws li Lub Xov Tooj Txawb !!!. Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav tsim lub xov tooj txawb yooj yim siv STM li cas
Arduino GSM Raws Kev Tswj Lub Cev (Tsis Muaj GSM Module): 3 Cov Kauj Ruam
Arduino GSM Raws Kev Tswj Lub Cev (Tsis Muaj GSM Module): Hauv qhov haujlwm no kuv yuav qhia koj qhov yooj yim tab sis tshwj xeeb txoj hauv kev los qhib thiab tua ib yam dab tsi uas siv relay. Lub tswv yim no tau los ntawm ob peb tus neeg ua cov haujlwm no tab sis lawv muaj teeb meem lawv txhua tus nyob ntawm tus xov tooj ntawm tes tus cwj pwm ntawm kev hu. Kuv simp
Arduino Christmas Frame & A6 GSM Module: 4 Kauj Ruam (nrog Duab)
Arduino Christmas Frame & A6 GSM Module: Lub thav duab tau tsim los ua kev lom zem nyob rau lub caij Christmas xwb :) Saib yeeb yaj kiab YouTube kom pom qhov demo.AI A6 GSM module tau txais SMS thiab xa nws mus rau Arduino Uno ua tus tswv (i2c npav) .Arduino Uno xa los ntawm i2c cov ntaub ntawv tsheb npav mus rau Arduino Nano kom pib txav cov kev pabcuam, thiab