当前位置:网站首页>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
边栏推荐
- 2022.6.30-----leetcode.1175
- Speed regulation and stroke control based on Ti drv8424 driving stepper motor
- How to traverse massive data in redis
- Leetcode top 100 questions 1 Sum of two numbers
- What things you didn't understand when you were a child and didn't understand until you grew up?
- 0xc000007b the application cannot start the solution normally (the pro test is valid)
- 轩逸保养手册
- [Yugong series] February 2022 Net architecture class 005 ABP vNext Net core web application getting started configuration
- 工业导电滑环的应用
- Rainbow combines neuvector to practice container safety management
猜你喜欢

数字金额加逗号;js给数字加三位一逗号间隔的两种方法;js数据格式化

Unity drags and modifies scene camera parameters under the editor

How to select conductive slip ring material

Chapitre d'apprentissage mongodb: Introduction à la première leçon après l'installation
![[RootersCTF2019]babyWeb](/img/b4/aa8f8e107a9dacbace72d4717b1834.png)
[RootersCTF2019]babyWeb

Set集合詳細講解

Intelligent operation and maintenance: visual management system based on BIM Technology

LevelDB源码分析之memtable

使用 Nocalhost 开发 Rainbond 上的微服务应用
![[RootersCTF2019]babyWeb](/img/b4/aa8f8e107a9dacbace72d4717b1834.png)
[RootersCTF2019]babyWeb
随机推荐
Worried about infringement? Must share copyrightless materials on the website. Don't worry about the lack of materials for video clips
Global and Chinese market of solder wire 2022-2028: Research Report on technology, participants, trends, market size and share
CentOS 7使用yum安装PHP7.0
HDU - 1024 Max Sum Plus Plus(DP)
Qt编译时,出现 first defined here,原因及解决方法
Global and Chinese markets of gps/gnss receiver modules 2022-2028: Research Report on technology, participants, trends, market size and share
Explanation of characteristics of hydraulic slip ring
Youqitong [vip] v3.7.2022.0106 official January 22 Edition
LRU cache for leveldb source code analysis
printk 调试总结
担心侵权?必备无版权素材网站分享,不用担心视频剪辑缺素材
Is there any good website or software for learning programming? [introduction to programming]?
Unity uses SQLite
vsCode函数注解/文件头部注解快捷键
[RootersCTF2019]babyWeb
Unit testing with mongodb
Lock free concurrency of JUC (leguan lock)
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
How to create a progress bar that changes color according to progress
QT等待框制作