当前位置:网站首页>What is the at instruction set often used in the development of IOT devices?
What is the at instruction set often used in the development of IOT devices?
2022-07-01 05:32:00 【ordersyhack】
What is? AT Instructions
AT namely Attention,AT Instructions are used to define Terminal equipment TE(TerminalEquipment) and Mobile MT(Mobile Terminal) The rules of interaction , When Terminal equipment Enter a AT After the instruction , Communicating with Mobile Will reply with a result , So one-on-one . As shown in the figure below .

Wide area communication GSM In the network , The user can go through AT Order to proceed call 、 SMS 、 telephone book 、 Data business 、 Fax And so on .
AT Command related nouns

AT Command format
AT The order is based on AT To begin with , The string at the end of the character ,AT The response packet of the instruction is in . Whether each instruction is executed successfully or not has a corresponding return . Other unexpected information modules will have corresponding information prompts , The receiving end can do corresponding processing .
Every AT Only one... Can be included in the instruction AT Instructions ; except AT Two characters apart , Up to 1056 The length of characters ( Including the last empty character ).
AT The instruction set can be divided into three types :

common AT Instructions
Query module serial number AT+CGSN
AT+CGSN=<snt>, If no write <snt>, Only return to "OK”.
<snt>=0, return <sn>.
<snt>=1, return IMEI( International mobile device identification number ), Each module is unique .
<snt>=2, return IMEISV( International mobile radio device identity and software version ).
<snt>=3, Return the software version number SVN.
dispatch orders :AT+CGSN=1Module return :+CGSN:868744036640526OK
Check firmware version AT+CGMR
Execute this command to return the firmware version .
dispatch orders :AT+CGMMModule return :<Revision>OK
Query terminal error AT+CMEE
Used to set up terminal error reporting , When enabled send AT When an error is executed, the terminal will return the error code , This makes it easy to locate the problem .
Turn on error code reportingdispatch orders :AT+CMEE=1Module return :OK
Restart the module AT+NRB
For terminal device restart .
dispatch ordersAT+NRBModule return :REBOOTING****Boot: UnsignedSecurity B.. VerifiedProtocol A.. VerifiedApps A...... VerifiedREBOOT_CAUSE_APPLICATION_ATNeulOK
Query signal strength AT+CSQ
The return value is +CSQ:<rssi>,<ber>.rssi The bigger it is , The stronger the signal . Signal strength and rssi The conversion formula is : Signal strength =113dBm+(rssi*2).ber Field not used , Equal to 99.
dispatch orders :AT+CSQModule return+CSQ:31,99OK
Check if the network is active AT+CGATT
return :+CGATT:1, Indicates that the network is activated ; If returns :+CGATT:0, It means the network is not activated , Please try to restart the module to activate the network .
dispatch orders :AT+CGATT?Module return :+CGATT:1OK
Query network registration status AT+CEREG
This command is used to query the terminal EPS Network registration status . When enabled to prompt , The network registration status information of the terminal has changed , Will actively report to the user terminal . Different settings allow you to report EPS Registration status 、 Location area code 、 community ID、 Access technology and other information of the service community , In general, it only needs to be set to auto report EPS Registration status .
dispatch orders :AT+CEREG=1Module return :OKAfter setting successfully , When the network registration status information changes , Will actively report to the user terminal , Such as :+CEREG:1,1OK
Query the current connection status of the network AT+CSCON
The return format is :+CSCON:<n>,<mode>?
<n> It's notification settings . Value and description :0 To cancel asynchronous notification , When the network is connected , Serial port will not actively report +CSCON command ;1 To enable asynchronous notification , Serial port actively reports +CSCON.
<mode> Is the current module connection status , Value and description :0 be in IDLE state ,1 In connected state . When in IDLE In the state of , Just send the data or restart the device , It will become connected .
dispatch orders :AT+CSCON?Module return :+CSCON:0,1OK
Set the RF function of the module AT+CFUN
This command is used to set and query whether the RF function of the module is on .
AT+CFUN=0 // Turn off RF functionOKAT+CFUN=1 // Turn on the RF function of the moduleOKAT+CFUN? // Check the RF on status of the module+CFUN:1 // RF function has been turned on successfully , If reply 0 Usually because SIM The circuit of the card is not connected to the module successfully
边栏推荐
- Unity project experience summary
- Precautions for use of conductive slip ring
- 导电滑环短路的原因以及应对措施
- Cockroachdb: the resistant geo distributed SQL database paper reading notes
- Intelligent operation and maintenance: visual management system based on BIM Technology
- Series of improving enterprise product delivery efficiency (1) -- one click installation and upgrade of enterprise applications
- Actual combat: gateway api-2022.2.13
- 3D建模與處理軟件簡介 劉利剛 中國科技大學
- Global and Chinese market of high-end home theater 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets of gps/gnss receiver modules 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Daily code 300 lines learning notes day 11

How to meet the requirements of source code confidentiality and source code security management
![[excel] column operation, which performs specific column for data in a cell, such as text division by comma, colon, space, etc](/img/c8/e3e31ad9ef214d97228cb501dd752f.jpg)
[excel] column operation, which performs specific column for data in a cell, such as text division by comma, colon, space, etc

Usage and principle of synchronized

Application and principle of ThreadPoolExecutor thread pool

Spanner 论文小结

el-form表单新增表单项动态校验;el-form校验动态表单v-if不生效;

Typeorm framework

Design and application of immutable classes

Copier le matériel de conseils de bébé ne peut pas être vide, comment résoudre?
随机推荐
In depth understanding of condition source code interpretation and analysis of concurrent programming
busybox生成的东西
Things generated by busybox
Youqitong [vip] v3.7.2022.0106 official January 22 Edition
基于TI DRV8424驱动步进电机实现调速和行程控制
Thread process foundation of JUC
导电滑环使用的注意事项
idea启动查看项目端口
Flowable source code comment (XXXIX) task listener
Unity项目心得总结
Rust hello-word
Vérification simple de la lecture et de l'écriture de qdatastream
Printk debugging summary
複制寶貝提示材質不能為空,如何解决?
Mongodb learning chapter: introduction after installation lesson 1
如何开始学剪辑?零基础详细解析
Mathematical knowledge: finding the number of divisors
[SRS] use of Vhost isolated stream: push / pull Stream Address
实战:redux的基本使用
Typeorm framework