当前位置:网站首页>Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
2022-06-28 05:34:00 【hhl_ forty-eight million three hundred and eighty-four thousand】
Shanghai Yuge ASR CAT1 4g modular 2 Low power consumption of road protection 4G application
The main controller has an operating system , Such as outdoor camera, etc , There is a need for remote wake-up , Use usb The virtual network card accesses the Internet . Operating systems generally use linux perhaps liteos, Support rndis perhaps ECM network card .
2 Lubaohuo is mainly used to connect dual platforms , Support 2 Applications access
example : liteos + ecm network card + Specify content wake up + 1 Lubaohuo tcp Connect to Baidu server
1. Drive support
Modify the master driver support TTYUSB, Use TTYUSB1 As AT mouth
2. Sleep
Initialization instruction : AT+YGFEATURECFG=128,0 // Just set it once
AT+CFUN=1,1 // Restart and take effect
AT+YGFEATURECFG? // confirm sleep8 Is it “1”

① Start to send AT^GPIOWAKE=1( Restart and take effect , Just set it once )
② Set sleep parameters , Such as AT+ENTERSLEEPHEX=1 Set to HEX, The default is 1, Actually sent to the server will be converted into raw data (0 For raw data , When there are special characters, it is recommended that HEX Pattern )
③ Setup server 、 Heartbeat bag 、 Wake up packet information , Such as server address 192.168.0.100, Server port number 12346, Heartbeat interval 180, Heartbeat packet “sleep12345” , Wake up packet “wake123”,
Login package is “login” 、 The response packet is “ok” 、 Heartbeat packet reply “data” ( Any data wakes up , Wake up the
Packages can be set to empty “” ; No login package and answer package can set the login package and answer package to empty “” )
AT+ENTERSLEEPHEX=1 The following can be set when :
AT+ENTERSLEEP=“192.168.0.100”,12346,180,“736c6565703132333435”,“77616B65313233”,“6c6f67696e”,“6f6b”,“64617461”
AT+ENTERSLEEPHEX=0 The following can be set when :
AT+ENTERSLEEP=“192.168.0.100”,12346,180,“sleep12345”,“wake123”,“login”,“ok”,“data”)
AT+ENTERSLEEP Parameter description :
AT+ENTERSLEEP=<server_ip>,<server_port>,<in_t erval>,<heartbeat_data>,<wakeup_data>,<auth_data>,<auth_resp>, <heartbeat_resp>
<server_ip>: Server address ;
<server_port>: Server port number ;
<in_terval>: Heartbeat interval (1-21600) second ;
<heartbeat_data>: Heartbeat bag , ( Range :1-512 byte )
<wakeup_data>: Wake up package , ( Range :1-512 byte )
<auth_data>: Login package , ( Range :1-1024 byte )
<auth_resp>: Answer pack , ( Range :1-32 byte )
<heartbeat_resp>: Heartbeat packet reply header , ( Range :1-32 byte )
④ Set login package 、 Answer pack 、USB Disconnection mode 、 Connection retry times and send retry times ( if
AT+ENTERSLEEP Set login package 、 Answer pack , Will be AT+ENTERSLEEPCFG The settings are overwritten . If you don't need to set USB Disconnection mode and retry times , This step can be skipped .USB The disconnection mode is fixed as 1, Indicates that the module is actively disconnected USB; The default number of connection retries is 3; The default number of send retries is 3).
Such as AT+ENTERSLEEPCFG=“6c6f67696e”,“6f6b”,1,3,2// Login package is
“6c6f67696e” 、 The response packet is “6f6b” 、USB The disconnection mode is fixed as 1 Indicates that the module is actively disconnected USB、 Connection retries 3、 The number of send retries is 2.
AT+ENTERSLEEPcfg=“6c6f67696e”,“6f6b”,1,3,2
⑤ The master control sends before entering sleep AT+ENTERSLEEP Command and pull up WAKEUP_IN
The module establishes the connection with the server tcp Connect , At this time, the server will receive the login package set by the instruction , The server needs 10s Internal reply reply packet , For example, the module sends the login package login, The server 10s An answer packet needs to be returned in ok, If the login package and response package are set to be empty , When the module connects to the server, the server will receive a heartbeat packet , The server 10s You also need to return an answer in ok Respond to , Then the module is pulled down RI Feet go into sleep .
3. heartbeat
Module according to the set parameters , Cycle sends heartbeat to the server , maintain tcp Long connection of
4. Wake up the
4.1 Network wake-up packet triggers wake-up
4.1.1 Mobile phone etc. app Send wake-up signal to the server , The server sends a wake-up packet to the specified device
4.1.2 When the module receives data, it disconnects from the server , recovery usb,RI Pin output high level wakes up the master controller
4.1.3 After the master is awakened , Pull down the module WAKEUP_IN foot , Fast network recovery
4.2 Master wakes up
4.2.1 Pull down the module WAKEUP_IN foot
4.2.2 When the module receives data, it disconnects from the server , recovery usb,RI Pin output high level
4.2.3 Fast network recovery
5. 2 Lubaohuo
stay 1 Add... On the basis of road maintenance 1 road tcp Connect to the Alibaba server :
- Establish the second way to keep alive tcp, For example, add 2 strip AT Instructions
AT+ENTERSLEEP2=“192.168.0.100”,12346,180,“736c6565703132333435”,“77616B65313233”,“6c6f67696e”,“6f6b”,“64617461”
AT+ENTERSLEEPCFG2=“6c6f67696e”,“6f6b”,1,3,2
- Maintain article 2 tcp Connect heartbeat , The strategy is the same as the first connection , If any connection fails to keep alive, the master controller will be awakened
边栏推荐
- 8VC Venture Cup 2017 - Elimination Round D. PolandBall and Polygon
- [Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer
- Application of Beidou No.3 short message terminal in dam safety monitoring scheme
- Linked list in JS (including leetcode examples) < continuous update ~>
- 关系数据库与文档数据库对比
- SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系
- 【C语言练习——打印空心正方形及其变形】
- Performance degradation during dpdk source code testing
- jq图片放大器
- Function reentry caused by Keil C51's data overlaying mechanism
猜你喜欢

codeforces每日5题(均1700)

Biovendor sRAGE protein solution

【Linux】——使用xshell在Linux上安装MySQL及实现Webapp的部署

Bidirectional level conversion circuit

Mysql-16-subquery

一看就会 MotionLayout使用的几种方式

解决ValueError: Iterable over raw text documents expected, string object received.

Solution of dam safety automatic monitoring system for medium and small reservoirs

JSP
![[JVM] - Division de la mémoire en JVM](/img/d8/29a5dc0ff61e35d73f48effb858770.png)
[JVM] - Division de la mémoire en JVM
随机推荐
北斗三号短报文终端在大坝安全监测方案的应用
数据仓库:DWS层设计原则
The heading angle of sliceplane is the same as that of math Corresponding transformation relation of atan2 (y, x)
Solution of dam safety automatic monitoring system for medium and small reservoirs
Gee learning notes 3- export table data
Share a powerful tool for factor Mining: genetic programming
Application of Beidou No.3 short message terminal in dam safety monitoring scheme
Camera Basics
Informatics Orsay all in one 1360: strange lift
UICollectionViewDiffableDataSource及NSDiffableDataSourceSnapshot使用介绍
数据中台:AI中台的实施与总结
关系数据库与文档数据库对比
Is it enough for the project manager to finish the PMP? no, it isn't!
Function reentry caused by Keil C51's data overlaying mechanism
How to do a good job of dam safety monitoring
2022 Western pastry (Advanced) test question simulation test platform operation
MySQL 45 talk | 05 explain the index in simple terms (Part 2)
博客登录框
Comparison between relational database and document database
Zzuli:1072 frog climbing well