AT Commands Examples

2y ago
57 Views
5 Downloads
671.93 KB
51 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Ryan Jay
Transcription

Examples foru-blox wireless modulesApplication NoteAbstractThis document provides detailed examples of how to use ATcommands with u-blox wireless modules.www.u-blox.comlocate, communicate, accelerateAT Commands Examples

AT Commands Examples - Application NoteDocument InformationTitleAT Commands ExamplesSubtitleExamples foru-blox wireless modulesDocument typeApplication NoteDocument numberWLS-CS-11003Document statusPreliminaryDocument status informationObjectiveThis document contains target values. Revised and supplementary data will be publishedSpecificationlater.AdvanceThis document contains data based on early testing. Revised and supplementary data willInformationbe published later.This document contains data from product verification. Revised and supplementary dataPreliminarymay be published later.ReleasedThis document contains the final product specification.This document and the use of any information contained therein, is subject to the acceptance of the u-blox terms and conditions. Theycan be downloaded from www.u-blox.com.u-blox makes no warranties based on the accuracy or completeness of the contents of this document and reserves the right to makechanges to specifications and product descriptions at any time without notice.u-blox reserves all rights to this document and the information contained herein. Reproduction, use or disclosure to third parties withoutexpress permission is strictly prohibited. Copyright 2011, u-blox AG.WLS-CS-11003Page 2 of 51

AT Commands Examples - Application NoteContentsContents. 31Introduction . 62Storing parameters . 63Network registration and configuration . 73.143.1.1Preliminary operations . 73.1.23.1.3Network registration: GSM module . 8Network registration: UMTS module . 8GPRS connection. 124.14.2567Steps performed to register the module to a GSM/UMTS network . 7Context Activation . 12Context Deactivation . 134.2.1Context Deactivation by the network . 134.2.1Context Deactivation by the module . 13TCP/IP AT commands. 135.1Socket Connect . 135.25.3Socket Listening. 14Socket Write . 145.3.1Binary mode . 145.3.25.3.3Base syntax. 15Queue FULL . 155.3.4GSM network coverage lost . 165.45.5Socket operations with “Keep Alive” option . 18Socket Read. 195.6Socket State . 215.75.8Socket Close . 21Direct Link . 225.8.1Enter and exit from Direct Link Mode . 225.8.25.8.3Closing a connection . 23Connection closed by remote host . 23UDP/IP AT commands. 236.1Socket Write ( USOST) . 236.2Socket Read ( USORF) . 246.36.4Socket Write ( USOWR) . 25Socket Read ( USORD) . 26FTP AT commands . 27WLS-CS-11003PreliminaryPage 3 of 51

AT Commands Examples - Application Note7.1Direct Link . 287.1.1Retrieve a file from FTP server . 287.1.2Aborting retrieve file request . 297.1.37.1.4Store a file on FTP server . 29About “ ” escape sequence usage . 308SMTP AT commands . 309HTTP AT commands. 3210 Network Congestion Detection AT commands . 3310.1GSM module. 3311 ADC AT commands (if supported) . 3312 GPIO AT commands . 3313 MUX AT commands . 3414 File System AT commands . 3415 SIM Toolkit. 3615.1Profile download . 3615.2Proactive SIM . 3615.3Example . 3815.3.1 Enable the SAT and terminal response . 3815.3.2Changing the terminal profile . 3815.3.315.3.4Entering SAT menu and selecting an item . 39Call setup . 4016 SMS AT Commands . 4216.116.2Read all messages or one single message . 42Delete one single message or multiple messages . 4216.3Write and/or send one single message . 4316.416.5Read all messages or one single message (concatenated SMS related commands) . 44Write and/or send a concatenated SMS message . 4517 SIM Lock AT commands . 4717.117.2SIM Lock activation and deactivation. 47SIM Lock Enabling and Activation . 47Appendix . 48A List of Acronyms . 48Related documents. 50WLS-CS-11003PreliminaryPage 4 of 51

AT Commands Examples - Application NoteRevision history . 50Contact . 51WLS-CS-11003PreliminaryPage 5 of 51

AT Commands Examples - Application Note1 IntroductionThis document provides examples of using AT commands. For more details on AT command description pleaserefer to u-blox AT Commands Manual [1]. The following symbols are used to highlight important informationwithin the document:An index finger points out key information pertaining to integration and performance.A warning symbol indicates actions that could negatively impact performance or damage thedevice.This document addresses the following products:LEON-G100 seriesLEON-G200 seriesLISA-U1/LISA-H1 seriesThese icons will be used to indicate applicability to the related products:LEON: LEON-G100 / LEON-G200 seriesLISA: LISA-U1/LISA-H1 seriesIf the subchapter applies to a specific product the related icon will be provided there.2 Storing parametersLEONLISASave parameters in the Non Volatile Memory (NVM). Retrieve parameters from NVM. For further details refer tothe command description of AT CPWROFF, AT&V, AT&W, ATY in the u-blox AT Commands Manual [1].CommandResponseDescriptionAT CMEE 2OKSet verbose error messages.AT&K3OKEnable RTS/CTS DTE flow control for the currentprofile.NOTE: this is the default value saved in profiles 0 and1. If no changes have been previously done toAT&K values in the stored profiles this step isnot mandatory.AT&Y1OKSelect the default profile that will be automaticallyloaded after the next hardware reset (in this exampleprofile #1).AT&W1OKStore the current settings into profile 1.WLS-CS-11003PreliminaryPage 6 of 51

AT Commands Examples - Application NoteCommandResponseDescriptionAT&VACTIVE PROFILE:&C1, &D1, &S1, &K3, E1, Q0,V1, X4,S00:000, S02:043,S03:013, S04:010,S05:008,S07:060, CBST:007, 000,001, CRLP:061, 061, 048, 006, CR:000, CRC:000, IPR:0, COPS:0,0,FFFFF, ICF:3,1, UPSV: 0, CMGF:0, CNMI:1,0,0,0,0, USTS: 0Display both the current profile and the user profilesstored in memory.NOTE: this example refers to LEON-G100 / LEONG200 modules, different values will be shownon LISA-U1 / LISA-H1 series modulesSTORED PROFILE 0:&C1, &D1, &S1, &K3, E1, Q0,V1, X4,S00:000, S02:043,S03:013, S04:010, S05:008,S07:060, CBST:007, 000, 001, CRLP:061, 061, 048, 006, CR:000, CRC:000, IPR:0, COPS:0,0,FFFFF, ICF:3,1, UPSV: 0, CMGF:0, CNMI:1,0,0,0,0, USTS: 0AT CPWROFFSTORED PROFILE 1:&C1, &D1, &S1, &K3, E1, Q0,V1, X4, S00:000, S02:043,S03:013, S04:010, S05:008,S07:060, CBST:007, 000, 001, CRLP:061, 061, 048, 006, CR:000, CRC:000, IPR:0, COPS:0,0,FFFFF, ICF:3,1, UPSV: 0, CMGF:0, CNMI:1,0,0,0,0, USTS: 0OKOKAT CFUN 15OKTo save the stored configuration it is needed to switchoff the module.To save the stored configuration and reboot themodule without needing to switch the module offand back on.3 Network registration and configurationLEONLISA3.1 Steps performed to register the module to a GSM/UMTS networkThe following steps are necessary to register the module on a GSM/UMTS network:1. Set verbose error messages2. Check the PIN3. Check network registration status3.1.1 Preliminary operationsCommandResponseDescriptionAT CMEE 2OKSet verbose error messages.Note: This step is not mandatory.WLS-CS-11003PreliminaryPage 7 of 51

AT Commands Examples - Application NoteCommandResponseDescriptionAT CPIN? CPIN: SIM PINOKOK CPIN: READYCheck the PIN.AT CPIN "1234"AT CPIN?Define PIN.Check PIN.Note: OK, the PIN is ready.OK3.1.2 Network registration: GSM moduleLEON3.1.2.1Check network registration (first scenario, autoregistration)CommandResponseDescriptionAT COPS? COPS: 0,0,"vodafone IT"Check network registration status.AT CGATT?OK CGATT: 1Note: OK, the module is registered to GSM service.Check GPRS attach status.Note: OK, the module is GPRS attached.OK3.1.2.2Check network registration (second scenario, without autoregistration)CommandResponseDescriptionAT COPS? COPS: 2AT COPS 0OKCheck network registration status.Note: OK, the module is not registered to GSMservice.Force network registration.AT COPS? COPS: 0,0,"vodafone IT"Check network registration status.OKNote: OK, the module is registered to GSM service.OK3.1.2.3GSM Band changeCommandResponseDescriptionAT UBANDSEL?AT COPS 2 UBANDSEL: 900, 1800OKAT UBANDSEL 850,1900OKAT COPS 0OKCheck the current selected GSM bandsForce network deregistration if the module waspreviously registered or registration is pending.Change the operating GSM bandsNote: the new configuration is saved in NVM forfuture registration attemptsForce network registration.3.1.3 Network registration: UMTS moduleLISA3.1.3.1Preliminary information about Radio Access Technology (RAT) configurationDefault RAT configuration is GSM / UMTS Dual Mode with UMTS preferred access technology.WLS-CS-11003PreliminaryPage 8 of 51

AT Commands Examples - Application NoteCommandResponseDescriptionAT URAT? URAT: 1,2The Default RAT configuration is GSM / UMTS Dualmode Radio Access technology with UMTS preferredaccess technology. With this configuration the modulecan access both GSM and UMTS networks, UMTSnetworks are preferred.OKAny change in the RAT selection has to be done when the module is deregistered from the network.Before changing the RAT deregister the module with AT COPS 2 command.After changing the RAT configuration to ensure that the new settings are saved in the NVM it’snecessary to power off the module (AT CPWROFF). Then switch on the module and repeat the stepslisted in chapter 3.1.1.When a new RAT setting is saved in the NVM it’s not possible to load the RAT factory definedconfiguration. You can restore this by performing the following steps:CommandResponseDescriptionAT COPS 2OKAT URAT 1,2OKAT CPWROFFOKDeregister the module from the network. Thisoperation must only be performed if the module isregistered on the network.Select GSM / UMTS Dual mode Radio Accesstechnology with UMTS networks preferred.This is the RAT factory defined configuration.Switch off the module.3.1.3.2Selection of Radio Access technologyGSM Single Mode Radio Access technologyCommandResponseDescriptionAT URAT 0,0AT URAT?OK URAT: 0,0Select GSM Single Mode Radio Access technology.With this configuration the module can access onlyGSM networks.AT COPS 0OKOKStart automatic network registration.AT COPS? COPS: 0,0,"vodafone IT",0Check network registration status.Last parameter (0 in this case) indicates the module isregistered to GSM service (as expected consideringthat module is not allowed to access to UMTSnetworks).OKGSM / UMTS Dual mode Radio Access technologyCommandResponseDescriptionAT URAT 1,0OKSelect GSM / UMTS Dual mode Radio Accesstechnology. GSM is the preferred access technology.AT URAT? URAT: 1,0AT URAT 1,2OKOKWith this configuration the module can access bothGSM and UMTS networks, GSM networks arepreferred.AT URAT? URAT: 1,2AT COPS 0OKOKWLS-CS-11003Select GSM / UMTS Dual mode Radio Accesstechnology. UMTS is the preferred access technology.With this configuration the module can access bothGSM and UMTS networks, UMTS networks arepreferred.Start automatic network registration.PreliminaryPage 9 of 51

AT Commands Examples - Application NoteCommandResponseDescriptionAT COPS? COPS: 0,0,"vodafone IT",2Check network registration status.OKLast parameter (2 in this case) indicates the module isregistered to UMTS service. COPS: 0,0,"vodafone IT",0Module is also allowed to access GSM networks.OKThis will be the module response if it has registered toGSM service.AT COPS?UMTS Single Mode Radio Access technologyCommandResponseDescriptionAT URAT 2,2OKSelect UMTS Single Mode Radio Access technology.AT URAT? URAT: 2,2With this configuration the module can access onlyUMTS networks.AT COPS 0AT COPS?OKOK COPS: 0,0,"vodafone IT",2Start automatic network registration.Check network registration status.Last parameter (2 in this case) indicates the module isregistered to UMTS service (as expected consideringthat module is not allowed to access to GSMnetworks).OKIf the module is registered in GSM / UMTS Dual Mode (AT URAT 1,0 or AT URAT 1,2) it is possibleto change preferred RAT technology but the new setting will take effect only after a period of lostnetwork coverage or if the module is deregistered and registered again on the network.CommandResponseDescriptionAT URAT 1,0OKAT URAT? URAT: 1,0AT COPS 0OKOKSelect GSM / UMTS Dual mode Radio Accesstechnology. GSM is the preferred access technology.With this configuration the module can access bothGSM and UMTS networks, GSM networks arepreferred.AT COPS? COPS: 0,0,"vodafone IT",0Check network registration status.OKLast parameter (0 in this case) indicates the module isregistered to GSM service.Start automatic network registration.AT URAT 1,2OKSelect GSM / UMTS Dual mode Radio Accesstechnology. UMTS is the preferred access technology.AT URAT? URAT: 1,2With this configuration the module can access

u-blox makes no warranties based on the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. u-blox reserves all rights to this document and the information contained herein.

Related Documents:

Provided by the Academic Center for Excellence 1 Spanish: Commands Updated February 20. Spanish: Commands . Formal Commands (Ud. and Uds.) Formal commands are used when talking in the Usted/Ustedes form of a verb. To create formal affirmative and negative commands, use the third person

MATLAB Commands – 1 MATLAB Commands and Functions Dr. Brian Vick Mechanical Engineering Department Virginia Tech General Purpose Commands Operators and Special Characters / 3 Commands for Managing a Session / 3 Special Variables and Constants / 4 System and File Commands / 4

AT Commands Examples - Application Note UBX-13001820 - R13 Page 2 of 153 Document Information Title AT Commands Examples Subtitle Examples for u-blox cellular modules Document type Application Note Document number UBX-13001820 Revision and date R13 27-May-2019 Disclosure Restriction This document applies to the following products:

There are several T-6-specific commands which must be mapped to keys or throttle/joystick commands as desired. See section 3.1 on mapping the commands to keyboard keys and see section 3.2 for mapping commands to your controls. Required Commands The ones of interest are: Toggle Gear Up or Down - use this instead of the

Engineering manager in Splunk'sIncubation team Implemented Search Command Protocol Version 2 Die-hard Longhorns fan 3. Agenda 4 Introduction to Custom Search Commands How do Custom Search Commands work? - High-level concepts - Low-level details Types of Search Commands How to create new Custom Search Commands

Data ONTAP 8.0 7-Mode Commands: Manual Page Reference, Volume 2 7 About the Data ONTAP Commands: Manual Page Reference, Volume 2 The Commands: Manual Page Reference document is a compilation of all the manual (man) pages for Data ONTAP commands, special files, file formats and conventions, and system management and services.

Commands for Analytics developers. Help for Salesforce CLI Commands The -h --help parameter shows details about Salesforce CLI topics and their commands. CLI Deprecation Policy Salesforce deprecates CLI commands and parameters when, for example, the underlying API changes. analytics Namespace Commands for Analytics developers. analytics:enable

5 DRILL INSTRUCTOR GUIDE Commands Two-Part Commands a. Most drill commands have two parts: the preparatory command and the command of execution (preparatory commands will be in red and commands of execution in green). (1) The preparatory command states the movement to be carried out and mentally prepares the cadet for its execution.