Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
- Kauj ruam 2: Software Yuav Tsum Tau:
- Kauj ruam 3: Ua haujlwm:
- Kauj ruam 4: Yees duab:
Video: Kev Sib Txuas TCP/IP hla GPRS: Yuav Xa Cov Ntaub Ntawv Li Cas Rau Cov Neeg Siv Khoom Siv SIM900A Tus Qauv: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv qhov kev qhia no kuv yuav qhia koj txog yuav xa cov ntaub ntawv mus rau TCP server siv sim900 module li cas. Tsis tas li peb yuav pom yuav ua li cas peb tuaj yeem tau txais cov ntaub ntawv los ntawm server rau cov neeg siv khoom (GSM module).
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
Yog li kom ua tiav qhov no koj xav tau ob lub Cheeb Tsam yam tsawg kawg. Ib qho yog qhov tseeb Sim900A/800A Module thiab lwm qhov yog USB rau TTL hloov pauv. Sib nrug ntawm qhov ntawd khaws ib daim npav SIM nrog koj thiab qhov ntawd yuav tsum muaj 2G cov ntaub ntawv pob tau qhib hauv nws, yog li koj tuaj yeem sim cov neeg siv khoom sib txuas lus.
Kauj ruam 2: Software Yuav Tsum Tau:
Yog li ntawm no koj yuav tsum ua kom cov neeg siv server sib txuas lus Yog li cov cuab yeej software koj xav tau xav tau:
1. Qhov Ntsuas Ntsuas: Siv qhov no koj tuaj yeem khiav server ntawm koj lub PC.
2. Docklight: Muaj ntau yam cuab yeej los ua haujlwm cov ntaub ntawv hauv koj lub PC, Dcklight yog ib qho ntawm cov cuab yeej no, yog li koj tuaj yeem siv teraterm, realterm, hyperterminal thiab lwm yam. Yog li nws nyob ntawm koj, ntawm no peb siv Docklight rau qhov no.
3. Ngrok: Nov yog qhov software xaiv tau rau cov uas tsis tuaj yeem ua chaw nres nkoj xa mus rau lawv lub router. Thiab kuv kuj tsis tau ua chaw nres nkoj xa mus vim yog qee qhov vim li cas nws tsis ua haujlwm yuav yog vim kuv tau teeb tsa ob lub router, ib qho ntxiv yog tias koj kuj yog ib tus ntawm cov uas tsis tuaj yeem ua qhov chaw xa khoom xa mus yog li qhov no yog qhov cuab yeej zoo rau koj, Yuav ua li cas ngrok ua tau tiag tiag, ngrok nthuav tawm cov kev pabcuam hauv zej zog nyob tom qab NATs thiab cov firewalls rau pej xeem siv internet hla lub qhov qhov ruaj ntseg.
Kauj ruam 3: Ua haujlwm:
AT Cov Lus Hais
AT cov lus txib yog qhov pib pib rau ib qho qauv gsm. Thiab tom qab txuas koj li GSM module rau PC siv USB rau TTL hloov pauv koj yuav tsum tau muab cov lus txib AT no.
Yog li thawj lo lus txib yog los ntsuas huab cua koj li GSM module txuas nrog koj lub PC lossis tsis:
(Ib yam uas koj yuav tsum nco ntsoov tias txhua qhov AT cov lus txib yuav raug xaus nrog Carriage Return character)
AT
Tom qab ntawd ntawm no yog cov npe ntawm cov lus txib koj yuav tsum tau ua rau kev ua TCP/IP txuas.
AT+CIPSHUT
AT+CIPMUX = 0
AT+CGATT = 1
AT+CSTT = "airtelgprs.com", "", ""
AT+CIICR
AT+CIFSR
AT+CIPSTART = "TCP", "", ""
AT+CIPSEND
Thov ua raws daim ntawv kom nkag siab siv cov lus txib no. Txawm li cas los xij hauv kuv qhov project video rau qhov kev qhia no, Kuv tau piav qhia txog kev ua haujlwm ntawm cov lus txib no
Tam sim no koj yuav tsum xub pib server ntawm koj lub PC siv qhov ntsuas qhov ntsuas. Thiab thaum nyob hauv docklight koj yuav ua AT+CIPSTART hais kom ua ces koj lub server yuav pib.
AT+CIPSTART hais kom ua zoo li no:
AT+CIPSTART = "TCP". "", ""
Yog li ua ntej thov IP pej xeem koj yuav tsum ua qhov chaw xa mus rau ntawm koj lub router, muaj ntau txoj hauv kev los ua qhov ntawd. Tsuas yog tshawb hauv google 'yuav ua li cas xa cov chaw nres nkoj ntawm kuv lub router'. Thiab koj yuav tau txais ntau qhov txuas los ua qhov ntawd.
Tam sim no yog tias koj ua tiav xa chaw nres nkoj. tom qab ntawd AT+CIPSTART cov lus txib yuav muab rau koj txuas txuas OK Cov Lus Teb.
Ok txhua yam mus tau zoo txog tam sim no, tab sis yuav ua li cas yog tias koj tsis tuaj yeem tuaj yeem xa chaw nres nkoj xa tawm vim qee qhov laj thawj lossis yog koj tsis muaj teeb tsa router nws txhais tau tias koj txuas nrog koj lub hotspot mobile.
Yog li tsis muaj teeb meem ntawm no los ua lub luag haujlwm ntawm NGROK. Cov cuab yeej no koj tuaj yeem siv los ua kom koj li TCP IP nkag mus tau rau pej xeem. (tib yam uas peb tab tom ua hauv kev xa chaw nres nkoj)
Thov ua raws qhov txuas no txhawm rau rub tawm NGROK
ngrok yog kab hais kom ua interface, yog li koj yuav tsum tau ua ib lo lus txib thiab uas yog
nug tcp
yog yam koj tau muab rau hauv koj lub qhov ncauj ntsuas server.
Yog li tom qab ua cov lus txib no koj tus localhost yuav raug xa mus rau ib tus IP tsis raug tsim los ntawm ngrok, yog li koj yuav tsum hloov tus IP ntawd hauv koj li AT+CIPSTART hais kom ua, koj tseem yuav tau txais tus lej sib txawv, yog li ntawd koj kuj yuav tsum tau hloov.
Yog li kom paub ntau ntxiv txog yam khoom ua haujlwm li cas thov saib cov vis dis aus qhia hauv qab no.
Kauj ruam 4: Yees duab:
Yog li txhua yam kuv tau piav qhia hauv video.
Yog tias koj muaj kev tsis ntseeg txog qhov kev qhia no thov tawm tswv yim rau peb hauv qab no.
Thiab yog tias koj xav kawm paub ntau ntxiv txog kev teeb tsa kab ke koj tuaj yeem mus ntsib peb tus youtube channel Thov mus saib thiab nyiam peb Facebook Page kom nquag nquag hloov tshiab.
Ua tsaug & Ua tsaug, Embedotronics yees
Pom zoo:
Yuav Ua Li Cas: Ib Tus Neeg Sib Txuas Tsis Sib Txuas: 3 Cov Kauj Ruam
Yuav Ua Li Cas: Kev Sib Txuas Tsis Sib Txuas Rotary: Daim ntawv thov no piav qhia yuav ua li cas tsim kom muaj kev ntseeg siab hloov pauv lossis hloov pauv tus lej siv Dialog GreenPAK ™. Qhov kev hloov pauv no tsis muaj kev sib cuag, thiab yog li tsis quav ntsej txog kev tiv thaiv oxidation thiab hnav. Nws yog qhov zoo rau siv sab nraum zoov qhov twg ntev
Yuav Hloov Li Cas Cov Ntaub Ntawv Xov Xwm Rau Hauv Nws Cov Qauv Sib Txawv: 6 Cov Kauj Ruam
Yuav Hloov Li Cas Cov Ntaub Ntawv Xov Xwm Rau Hauv Nws Cov Qauv Sib Txawv: Muaj ntau qhov sib txawv ntawm cov ntaub ntawv hloov pauv uas peb tuaj yeem siv tau. Hauv lub vev xaib, kuv nyiam tshaj tawm online tshaj tawm xov xwm yog: http: //www.mediaconverter.org Hauv qhov kev qhia yooj yim no, peb yuav siv "Format Factory" uas yog qhov zoo tshaj plaws thoob ntiaj teb cov ntaub ntawv hloov pauv
Kev Tau Txais Cov Ntaub Ntawv thiab Cov Ntaub Ntawv Pom Kev Pom Zoo rau MotoStudent Fais Fab Sib Tw Tsheb kauj vab: 23 Kauj Ruam
Kev Tshawb Nrhiav Cov Ntaub Ntawv thiab Cov Ntaub Ntawv Pom Zoo rau MotoStudent Hluav Taws Xob Sib Tw Tsheb: Cov ntaub ntawv khaws cov ntaub ntawv yog cov khoom siv khoos phis tawj thiab software ua haujlwm ua ke txhawm rau sau cov ntaub ntawv los ntawm cov ntsuas sab nraud, khaws thiab ua nws tom qab kom nws tuaj yeem pom cov duab thiab txheeb xyuas, tso cai rau cov kws tsim txuj ci los ua
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Nkag Platform: 9 Cov Kauj Ruam
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Siab Platform: Christmas tsuas yog ib lub lim tiam xwb! Txhua leej txhua tus tibneeg hu tauj coob nrog kev ua koob tsheej thiab tau txais khoom plig, uas, los ntawm txoj kev, tau txais txhua qhov nyuaj dua kom tau nrog qhov tsis muaj peev xwm nyob ib puag ncig peb. Yuav ua li cas mus los ntawm khoom plig qub thiab ntxiv qhov kov ntawm DIY rau
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej