中英文外文翻译--基于GSM模块与AT89C51的接口设计及应用.doc
BasedonGSMmoduleandAT89C51connectiondesignandapplicationAbstract:ThisarticlethroughanalyzedtheGSMmoduleandthemonolithicintegratedcircuitconnectiondesignsimplyintroducedtheTC35imodulecommonlyusedinstructionandthecodingrule,introducedemphaticallytheTC35imoduleandtheAT89C51principleofwork,theperipheryconnectionelectriccircuit,thesoftwarecontroltechnology,atthesametimehasproducedsomeTC35imoduleandtheAT89C51connectionapplicationprocedure,proposedAT89C51whenreceivedatashouldpayattentionquestion,thusdesignedhastheGSMmodulethedatatransmissionterminal.Keyword:SIMCardGSMATInstructionTC35iAT89C511Summarize:Alongwithcorrespondencetechniqueofdevelopment,accordingtotheservicefunctionoftheNTTDoCoMonet,justtoindustrycontrolandcontrolfromadistancetherealmhavecontinuouslyextensionoftrend.Isorientationthiskindofdemand,SiemenscompanyreleasedanewgenerationwirelesscorrespondenceGSMmoldpiece-TC35i,accordingtoshouldtheshortnewsfunctionofthemoldpiece,canfastsafetycredibilityrealizationcustomerinformationprocessingetc.function,specialbeapplicabletocontrolcentreandterminalequipmentsdistanceveryfar,orinconvenienceadoptionwiredcorrespondenceliequalityetc.situation,forexampletheoilwellinformationcollectbehindofdeliver,thelongrangecopyformsystem,citytransportationdirectionetc.allaccordingtotheTC35imoldpiecetorealization.2TheTC35imoldpieceintroductionCurrently,domesticalreadybeginningusageoftheGSMmoldpiecehavealot,andtheseoffunction,methodofusingdifferencenotbig.WhatthisdesignadoptionisaSiemensTC35theTC35ioftheseries.OnthiskindofwirelessmoldpiecefunctionandTC35andpermit,designtightlypacked,consumedlycontractedthephysicalvolumeofcustomersproduct.TheTC35iandGSM2/2andpermit,dual-band(GSM900/GSM1800),RS232thedataconnect,shouldmoldpieceandradiofrequencyelectriccircuitandJitakeandintegralwhole,providetowardthecustomerstandardofATorderconnect,isdata,speech,shortnewsandfaxprovidefast,credibility,safetyofdeliver,conveniencecustomerofapplicationdevelopmentanddesign.2.1TheGSMATinstructionintroductionthatthemoldhassomethingtodowithSMSinthepieceTheorderforprovideoftheGSM-poweredmoldpiecematchGSM07.05andGSM07.07norm.IntheGSM07.07definitionoftheATCommandconnectandprovidedakindofwhichmoveterraceanddataterminalequipmentsofingeneraluseconnect;TheGSM07.05madetotheshortnewsdetailedofprovision.Atshortnewsmoldpiecereceivenetworkhairofshortnews,cansendoutadesignationinformationthroughastringof,thedataterminalequipmentscansendouttowardtheGSMmoldpiecevariousorder.TheinstructionofGSMAThavingsomethingtodowithSMSsuchasList1toshow.TheinstructionofGSMATgather,issignedletter,MotorolaandHPetc.factoryhousebyNokia,lovetotogetherdevelopfortheGSMsystemof,amongthemincludecontrolSMS(ShortMessageService).List1WithSMSsomerelatedinstructionofGSMATATinstructionfunctionAT+CMGCSendanSMScommend(issueamessageorder)AT+CMGDDeleteSMSmessage(deleteSIMcardtheinformationofthememory)AT+CMGFSelectSMSmessageformat(choiceshortnewsinformationformat:0-PDU;1-文本)AT+CMGLListSMSmessagefrompreferredstore(listshortPDU/TEXTofthenewsformatintheSIMcard:Inordertoread0"RECUNREAD",one"RECREAD"inordertohavealreadyread,2"STOUNSENT"sisadue-out,3"STOSENT"isalreadyhair,4"ALL"isallAT+CMGRReadSMSmessage(readshortnews)AT+CMGSSendSMSmessage(thehairshortnews)AT+CMGWWriteSMSmessagetomemory(towriteintheshortnewsofdue-outintheSIMmemory)AT+CNMINewSMSmessagestorage(themanifestationlately-receiveshortnews)AT+CPMSPreferredSMSmessagestorage(thechoiceshortnewsmemory)AT+CSCASMSservicecenteraddress(thechoiceshortnewsmemory)AT+CSCBSelectcellbroadcastmessagemessages(choicebeehivebroadcastinginformation)AT+CSMPSetSMStextmodeparameters(constitutionshortnewstextoriginmodeparameter)2.2ThePDUcoderuleSendoutshortnewsincommonuseTextandPDU(ProtocolDataUnit,agreementdataunit)modecurrently.TheusageTextmodereceiveanddispatchamessagecodesimple,realizationgetupveryeasy,butthebiggestweaknessbetocantreceiveanddispatchChinesemessage;ButPDUmodenotonlysupportChinesemessage,alsotheabilitysendoutEnglishmessage.ThePDUmodereceiveanddispatchamessagecantheusagebe3kindsoftocode:7-bit,8-bitandUCS2code.7-thebitcodetousedforsendoutcommonofASCIIcharacterlist,8-bitcodeBeusuallyusedforsendingoutdatanews,UCS2codeusedforsendingoutUnicodecharacterlist.GeneralPDUscodeisconstitutebyABCDEFGHIJKLM13.A:Theaddresslengthofthemessagecenter,216entertomakenumber(onewordstanza)B:Thenumbertypeofthemessagecenter,216entertomakenumber.C:Messagecenternumber,B+ClengthwillfromthedatadecisionintheA.D:Documentheadwordstanza,216entertomakenumber.E:Informationtype,216entertomakenumber.F:Drivecallnumberlength,216entertomakenumber.G:Drivecallnumbertype,216entertomakenumber,takevaluetogetherB.H:Drivecallnumber,lengthfromdatawithinFdecision.I:Agreementmarking,216entertomakenumber.J:Thedatacodeaproject,216entertomakenumber.K:Termofvalidity,216entertomakenumber.L:Customerdatalength,216entertomakenumber.M:Customersdata,itslengthfromthedatadecisionintheL.EnactmentinJadoptionUCS2code,hereistheUnicodecharacterlistofChinese-English.3thehardwareoftheTC35iandlistslicemachineconnectapeopleselectriccircuitTheTC35imoldpieceismaintosaveaccordingtotheprocessor,GSMradiofrequencymoldpiece,powersupplymoldpiece,ShanfromtheGSM,theZIFconjunctionmachine,antennaconnectsixpartconstitute.ConnectmachinewithalistslicemachinerealizationelectriccircuittoconnectthroughaZIF,shouldconnectreadorsendouttheTC35imoldpieceinofdata.4listslicethesoftwareofthemachineandTC35iconnectandcontrolprincipleListslicethesoftwareofthemachineandTC35iconnectinfactbelistslicethemachinepassATinstructioncontrolcellularphoneofcontroltechnique,firstconstitutiontheTC35imoldpieceofworkmode:AT+CMGF=n,n=0isaPDUmode;N=1writeanarticlethismode;UsuallytheconstitutionisaPDUmode,underthiskindofmode,abilitytransmissionoracceptatransparentdata.(customerfromdefinitiondata)AT+CMGR=ninordertoreadtheshortnewsdataoftheTC35imoldpiece,thenisashortnewsnumber.AT+CMGL=ninordertolisttheshortnewsintheTC35imoldpiece,n=0istheshortnewswhichread,n=atheshortnewswhichhavebeenalreadyread,n=2shortnewswhichsentout,n=3forhavealreadysendoutofshortnewsn=4isallshortnews.AT+CMGD=thenistheshortnewswhichdeletetheTC35imoldpieceandthenisashortnewsserialnumber.4MasterroutineThesoftwareplaitdistancepasstowriteintowardtheTC35idissimilarityofATinstructionabilitycompletionvarietyfunction,suchasnetworkdebarkation,readSIMcardtoptelephonenumber,sendoutSMSnewsandreceiveSMSnewsetc.Theinstructionsign,constant,PDUdata.etc.ofATinstructionallcodeformtransmissionbyASCII;ThetransmissiontransparentdatahavetopairoftheTC35imoldpieceofworkmodeconstitutionisPDUmode;ListslicemachinetowardtheTC35imoldpieceaftersendouteachinstructionhavetowithreturntocarsignconductandactionsshouldinstructionofbeover,forexamplelistslicethemachinesendoutinstructionin"AT+CMGF=0"towardthecellularphone,itsASCIIcodesequenceis"41H,54H,2BH,42H,4DH,47H,46H,3DH,30H,0DH",thelastwordstanza0DHistoreturntocarsign,meanthatinstructionbeover,ifhavenothistoreturntocarsign,thecellularphonewontidentifythisinstruction.WhentheATinstructionwhichreceivetoanintegrityoftheTC35imoldpieceafter,theTC35imoldpiecenotsummaryexecutionshouldinstruction,butfirstjustreceiveoftheASCIIoftheATinstructioncodesequenceallanti-sendout;(contain0DH)SecondlysendoutatheASCIIwhichreturntocarsignwithacarriagereturnsigntocode,namely0DHwith0AH;Thenperformanceshouldinstruction.ThelistslicemachinereadthePDUdataoftheTC35imoldpiece,originalitydatashouldis16entermakenumber,butreadbackofdatastillisanASCIImeanof16entermakenumber.Soawordstanzaof16enteredtomakenumberandthenbecame2wordstanzaofASMIIcode.ButthePDUdatadatawordstanzalengthwithinpackpartstillisactualcharacterlistlength.ButisntthewordstanzawhichbecomeASCIIcodelength,thisatplaitdistanceshouldspecialattention,otherwisereceiveofdatanotintegrity.ThelistslicemachineisafterreceivingaPDUdatapackdatahavetoitsinstaurationbecome16entermakeadata,itscalculatewayasfollows:EstablishafortheASCIIcodereceive,bfortheconversionisbehindof16entermakenumber.Soifa<39H,b=a-30H;Ifa>39H,b=h-07Ha-30.Endpairofinfrontandbacktwopiecesmergerisawordstanza.5ConcludingremarkTheusagecellularphonemoldpiecebenefitisatthesystemintegration,thecostbelower.Installcorrespondencecircuitinsecludedregionetc.difficultyoruneconomicalplace,engineeringservicefacilitiescanfreedomvividofconstitution,nolongerbesubjectedtogeographyconditionofrestriction.Infine,GSMmoldpiecethepricebecheap,applicationextensive,applicationtheforegroundbecaptivating,passwithcellularphonemoldthepiececonnectcanveryconvenienceofdesigncustomerdemandofthedatareceiveterminal.