Cov txheej txheem:

Siv Telit GE863 (GSM-GPRS Module): 4 Cov Kauj Ruam
Siv Telit GE863 (GSM-GPRS Module): 4 Cov Kauj Ruam

Video: Siv Telit GE863 (GSM-GPRS Module): 4 Cov Kauj Ruam

Video: Siv Telit GE863 (GSM-GPRS Module): 4 Cov Kauj Ruam
Video: SIV курс на парапане 2024, Kaum ib hlis
Anonim
Siv Telit GE863 (GSM-GPRS Module)
Siv Telit GE863 (GSM-GPRS Module)

Telit GE863 yog GSM-GPRS module, piv txwv li lub xov tooj uas tsis muaj lub vijtsam lossis keyboard, xaiv tau nrog GPS. Cov lus qhia no yog yuav pib siv nws li cas yog tias koj yuav nrog lub rooj sib tham. Koj tuaj yeem yuav Telit module nrog lub rooj sib tham ntawm no: https://www.semiconductorstore.com/cart/pc/viewPrd.asp?idproduct=8445, thiab ntawm 176 daus las, nws kim me ntsis tab sis yuav yog yam koj xav tau. Cov ntaub ntawv rau Telit nws tus kheej tau ntxaws ntxaws thiab ntom, tab sis cov ntaub ntawv hauv qab no muab cov ntaub ntawv ntau dua li cov lus qhia no: Telit GE863 tsev neeg kho vajtse qhia [https://www.telit.co.it/data/uploads_EN/products/80000ST10025a_AT_Commands_Reference_Guide_r2 (1).pdf AT cov lus txib siv qhia] [https://www.telit.co.it/data/uploads_EN/products//Easy\%20Script\%20in\%20Python\%20_r1.pdf Python scripting rau Telit]

Kauj ruam 1: Lub zog

Fais fab
Fais fab
Fais fab
Fais fab
Fais fab
Fais fab
Fais fab
Fais fab

Telit tau zoo siab tshaj plaws nrog 3.8v, tab sis koj tuaj yeem siv nws nrog txhua qhov chaw ntawm 3.4-4.2 volts. Koj puas yuav tsum muaj 3.7v lithium polymer roj teeb piv txwv, tom qab ntawd koj tuaj yeem txuas qhov no ncaj qha mus rau VBATT kom muaj zog rau pawg thawj coj saib. Khoos phis tawj ntawm Telit Yuav kom tuaj yeem tshawb xyuas tias Telit tau qhib thiab siv tau, nws muaj txiaj ntsig zoo rau cov kab laug sab ntawm cov xwm txheej coj (STAT LED) thiab lub zog tiv thaiv uas yuav sib haum rau qhov coj ntawm koj xaiv. Cov ntaub qhwv muaj nyob rau ntawm lub rooj sib tham tau tsim rau 0603 SMD pob. Ob qho liab thiab daj LEDs yuav tsum ua tau zoo, LEDs ntsuab yuav xav tau qhov siab dua me ntsis. Txhawm rau tuaj yeem qhib thiab rov pib dua Telit, koj yuav tsum tau muab tshuaj txhuam ntawm ob lub pob DIP ntawm ob sab ntawm cov xwm txheej LED. Koj tuaj yeem piv txwv siv B3F100 khawm. https://www.instructables.com/files/deriv/F3D/KIOP/FOD7QJC6/F3DKIOPFOD7QJC6. MEDIUM-j.webp

Kauj ruam 2: Kev sib txuas lus

Kev sib txuas lus
Kev sib txuas lus
Kev sib txuas lus
Kev sib txuas lus

Tej zaum koj yuav xav tias koj tuaj yeem txuas tus USB cable mus rau USB chaw nres nkoj ntawm lub rooj sib tham, tab sis qhov ntawd yog GPS kab thiab tsis tuaj yeem siv los sib tham nrog/ program koj pawg thawj coj. Hloov chaw, koj tuaj yeem siv RX/TX kab uas nyob ntawm cov pins sau npe C103/TXD thiab C104/RXD (saib gure, pins ntawm sab laug). Rau pawg tswj hwm qhov tawg, koj tuaj yeem txuas cov xov hlau los ntawm koj MTA nkaus rau GND, VBATT, TXD thiab RXD feem, raws lub moos los ntawm sab xis. VBATT thiab GND pins yog txhua tus txuas nrog sab hauv, yog li koj tsuas yog yuav tsum muaj cov kab hluav taws xob txuas hauv ib qho ntawm tus pin. Xaiv tab sis koj xav ntxig koj lub taub hau. RX/TX hla USB cableTxhua lub cable koj xav kom muaj TTL-232R cov hloov pauv USB cable uas koj tsuas yog siv 3 ntawm cov xov hlau los ntawm. Cov txuas txuas ntawm lub rooj tsav xwm tawg yog txuas nrog hauv qab no: (khoob, dub, txiv kab ntxwv, daj) https://www.instructables.com/files/deriv/FZD/YLWN/FOD7QJC4/FZDYLWNFOD7QJC4. MEDIUM.jpgZ-term thiab kev teeb tsa Koj xav tau qee yam kev sib txuas lus hauv xov tooj cua los tham nrog telit. Peb siv Z-lub sijhawm, nws muaj dawb, koj tuaj yeem siv minicom. Lub xov tooj siv tus lej cov ntaub ntawv ntawm 115200, 8 khoom, tsis muaj qhov sib npaug. Kev tuav tes kho vajtse yuav tsum yog o rau tham nrog telit los ntawm pawg tswj hwm kev tawg, yog tias koj tab tom siv cov cuab yeej ntsuas ntsuas tom qab ntawd khoos phis tawj tuav tes yuav tsum nyob. Koj tuaj yeem teeb tsa cov no hauv Z-lub sijhawm hauv Kev Txuas> Nqis. https://www.instructables.com/files/deriv/FLV/4ZDK/FOD7QJC1/FLV4ZDKFOD7QJC1. MEDIUM-j.webp

Kauj ruam 3: AT Commands

AT Cov Lus Hais
AT Cov Lus Hais

Koj tuaj yeem tham nrog Telit los ntawm Hayes cov lus txib teeb tsa. Lawv tuaj yeem ua tus lej xov tooj hu xov tooj, dai, xa xov, txheeb xyuas koj daim npav SIM, thiab lwm yam. Cov lus txib AT yog tus qauv rau ntau lub xov tooj ntawm tes thiab koj yuav tsum muaj peev xwm nrhiav tau ntau cov ntaub ntawv ntawm lawv. Qee qhov lus txib peb siv ntau tau teev tseg ntawm no. Puas yog AT cov lus txib ua raws? yuav nug seb qhov teeb tsa tam sim no ntawm pawg thawj coj saib yog dab tsi. Ib qho AT hais kom ua tom qab =? yuav muab rau koj txhua qhov kev sib cav tau rau qhov teeb tsa ntawd. Txheeb SIM, NetworksKoj daim npav SIM yuav xav tau tus lej PIN lossis qee yam zoo sib xws. Koj tuaj yeem tshawb xyuas yog tus pin zoo nrog CPIN hais kom ua. AT+CPIN yuav tsum qhia koj yog tias tus lej PIN zoo, lwm yam koj tuaj yeem tsim nws los ntawm kev xa ib txoj hlua nrog tus lej PIN. Koj tuaj yeem tshawb xyuas yog tias tam sim no koj nyob ntawm ib lub xov tooj ntawm tes nrog cov lus txib AT +COPS?, Uas yuav teb nrog qee yam xws li +COPS: 0, 0, "Cingular". Nov yog rst 0 txhais tau tias koj tau txais kev koom tes nrog lub network, thiab qhov thib ob 0 yog daim ntawv uas koj txuas nrog, hauv qhov no, cov lej lej ntev. Koj tseem tuaj yeem xaiv lub network tuag nrog cov lus txib COPS, AT+COPS =? yuav muab rau koj lub network muaj. Yog tias koj tsis muaj lub kav hlau txais xov txuas rau koj Telit, koj yuav tsis muaj peev xwm nrhiav tau ib lub xov tooj ntawm tes. Peb siv sparkfun tus lej CEL-08347. Nyob ntawm qhov chaw ntawm lub ntiaj teb koj nyob, koj yuav xav hloov pauv pawg teeb tsa. Cov kab hluav taws xob uas koj tuaj yeem teeb tsa tau ua raws li cov hauv qab no: 0 - GSM 900MHz + DCS 1800MHz 1 - GSM 900MHz + PCS 1900MHz (Europe) 2 - GMS 850MHz + DCS 1800MHz (USA) 3 - GMS 850MHz + PCS 1900MHz cov qhab mus rau Asmeskas, siv cov lus txib AT#BND = 2. SMST Txhawm rau xa xov, koj tuaj yeem siv AT+CMGS = "+15555555555" hais kom ua, qhov uas koj qhia tus lej xov tooj. Los ntawm lub neej ntawd, Telit yuav nyob hauv PDU hom, koj tuaj yeem hloov qhov no los ntawm teeb tsa cov ntawv xov xwm rau cov ntawv ib txwm nrog AT+CMGF = 1. Hauv qhov xwm txheej ntawd, qee qhov lus txib yuav tsum tau xa siv cov ntawv ib yam. Thaum koj tau qhia tshwj xeeb rau tus neeg tau txais tus lej xov tooj, yuav muaj qhov hais kom sai uas koj tuaj yeem sau koj cov ntawv xov xwm. Txhawm rau xa nws, nyem ctrl-z. Telit yuav tsum teb nrog OK. Telit kuj tseem yuav teb nrog +CMS yuam kev, qhov xwm txheej hauv qab no txhais tau cov hauv qab no: 0-127 GSM 04.11 Annex E-2 qhov tseem ceeb 128-255 GSM 03.40 ntu 9.2.3.22 qhov tseem ceeb 300 Xov tooj tsis ua hauj lwm 301 SMS kev pab cuam ntawm xov tooj tshwj tseg 302 Kev ua haujlwm tsis tau tso cai 303 Kev ua haujlwm tsis txaus ntseeg 304 Tsis raug PDU hom kev ntsuas 305 Tsis siv cov ntawv tsis raug ntsuas 310 SIM tsis tso 311 SIM PIN tsim nyog 312 PH-SIM PIN tsim nyog 313 SIM tsis ua haujlwm 314 SIM tsis khoom 315 SIM tsis ncaj ncees lawm 321 Tsis nco cim cim tsis zoo 322 Nco tag nrho 330 SMSC (chaw pabcuam xovtooj) chaw nyob tsis paub 331 Tsis muaj kev pabcuam network 332 Network sijhawm tas 500 Tsis paub yuam kev Yog tias SIM tsis khoom, ces feem ntau koj tuaj yeem rov sim dua ib pliag tom qab. Qhov yuam kev 302 feem ntau txhais tau tias koj xa cov lus txib hauv PDU hom thaum koj nyob hauv hom ntawv lossis lwm yam.

Kauj ruam 4: Python Scripting

Telit tau tsim tsa hauv Python 1.5.2 tus neeg txhais lus uas tau hloov kho me ntsis. Qee qhov ob jects tau rov qab los ntawm yav tom ntej ntawm Python, xws li cov hlua. Koj tsis tas yuav ntsaws cov tsev qiv ntawv hlua, nws twb muaj lawm, koj tuaj yeem siv cov lus txib zoo li line.split (","). Muaj qee txoj hauv kev uas koj tuaj yeem siv cov qauv hauv chav kawm thiab ua haujlwm, tab sis Telit yog qhov tsis txaus ntseeg heev txog qhov no. Muaj lub qhov rai simulation ib puag ncig koj tuaj yeem tau txais los ntawm cov neeg Telit, tab sis nws tsuas yog zoo li ua haujlwm ib nrab. Tsis muaj ib lub davhlau ya nyob twg los ntawm koj li kev pab cuam nab nab yuav raug luam tawm mus rau lub davhlau ya nyob twg tshwj tsis yog koj tshwj xeeb raws txoj kev nws. Koj tuaj yeem ua qhov no nrog cov ntawv sout.py txuas nrog. Yog tias koj ntshuam nws thawj zaug hauv tag nrho koj cov les, tag nrho cov davhlau ya nyob twg yuav xa rov mus ua ntej nrog stderr:. Tsis yog txhua yam yog qhov yuam kev. Cov tsev qiv ntawv built-inThe Telit muaj qee qhov ua hauv Python cov tsev qiv ntawv koj tuaj yeem ntshuam. SER yog piv txwv li kev sib txuas ntawm Python thiab sab hauv chaw nres nkoj, GPIO yog kev sib txuas ntawm Python thiab GPIO pins, GPS rau khaws cov ntaub ntawv GPS thiab MDM rau xa AT cov lus txib rau Telit. Yog xav paub ntau ntxiv c koj yuav tsum txheeb xyuas Telit Python Easy Script reference. Ib qho piv txwv ntawm kev siv MDM lub tsev qiv ntawv nyob hauv sms.py tsab ntawv uas teev tag nrho cov ntawv sau ntawm koj daim npav SIM. Txhua qhov ntawv sau uas koj upload yuav tsum tau khaws tseg hauv DOS hom ntawv, uas yog nrog kab CRLF xaus, lossis Telit yuav tsis tuaj yeem cais nws. Hauv VI, koj tuaj yeem ua qhov no nrog cov lus txib: teeb tsa ff = dos lossis hauv cov ntawv qhia zaub mov ntawm ntau lwm tus neeg kho kab ntawv. Txhawm rau upload tsab ntawv, koj yuav tsum paub nws qhov loj me me hauv bytes. Tom qab ntawv tsab ntawv tuaj yeem rub tawm nrog cov lus txib AT#WSCRIPT = "name.py", 901 qhov twg 901 yog qhov loj me me hauv bytes. Koj yuav tau txais >> sai uas yuav pab kom xa cov ntawv (hauv z-lub sijhawm: le> xa ntawv). Telit yuav tsum teb nrog OK yog tias qhov no ua haujlwm. Txhua daim ntawv sau uas tam sim no nyob hauv pawg thawj coj tuaj yeem sau nrog AT#LSCRIPT, uas tseem yuav sau cov npe.pyo les, tso cai rau koj los tshuaj xyuas yog tias koj cov tsev qiv ntawv uas tau sau nyob ntawd. Koj qhia meej cov ntawv tseem ceeb nrog cov lus txib AT#ESCRIPT = "name.py". Koj tseem tuaj yeem nug dab tsi cov ntawv tseem ceeb nrog AT#ESCRIPT ?. Cov ntawv yuav tom qab ntawd khau raj, lossis koj tuaj yeem ua nws tam sim ntawd nrog cov lus txib AT#EXECSCR. Qee zaum, vim li cas tseem tsis tau meej rau peb, cov tsev qiv ntawv nkag mus yuav tsis suav ua tshwj tsis yog tias koj teeb tsa lawv ua cov ntawv sau ua ntej ua raws li lub ntsiab lus yuav suav lawv, tom qab ntawv ob ject le tau siv yav tom ntej. Lus ceeb toom ntawm kev nrawm thiab suav sau Tus nab npawb txhais lus Python ntawm Telit yog heev, qeeb, qeeb heev. Yog tias koj ua txhaum koj cov cai rau hauv cov ntawv me me, sau ua ke Python les (.pyo) yuav raug cawm thiab ua rau koj cov cai khiav nrawm dua. Qhov tseeb tiag, koj xav kom koj cov ntawv tseem ceeb kom luv li sai tau, nkag mus rau lub luag haujlwm los ntawm cov tsev qiv ntawv ua ntej. Yog tias koj sau hloov lub tsev qiv ntawv dummy rau lub tsev qiv ntawv built-in ntawm Telit (MDM, SER, thiab lwm yam) ntawm koj lub khoos phis tawj, koj tuaj yeem suav sau Python ntawm koj lub computer thiab xa cov.pyc les (hloov npe rau.pyo) mus rau Telit kom txuag sijhawm.

Pom zoo: