当前位置:网站首页>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
边栏推荐
- 电子邮件营销的优势在哪里?为什么shopline独立站卖家如此重视?
- 如何在您的Shopify商店中添加实时聊天功能?
- Application of Beidou No.3 short message terminal in dam safety monitoring scheme
- Error: the following arguments are required:
- 【JVM】——JVM中內存劃分
- How does the power outlet transmit electricity? Simple problems that have plagued my little friend for so many years
- Keil C51的Data Overlaying机制导致的函数重入问题
- Why does the company choose cloud database? What is its charm!
- Leecode question brushing-ii
- 【LeetCode】12、整数转罗马数字
猜你喜欢

What is the difference between AC and DC?

CpG solid support research: lumiprobe general CpG type II

Lhasa accordion

Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)

Wedding studio portal applet based on wechat applet

Oracle 条件、循环语句

How to design an awesome high concurrency architecture from scratch (recommended Collection)

Gee learning notes 3- export table data

Animation de ligne

解决ValueError: Iterable over raw text documents expected, string object received.
随机推荐
8VC Venture Cup 2017 - Elimination Round D. PolandBall and Polygon
线条动画
Zzuli:1071 decomposing prime factor
How does guotaijun charge for safe varieties? Let's talk about the futures account opening process
北斗三号短报文终端在大坝安全监测方案的应用
UICollectionViewDiffableDataSource及NSDiffableDataSourceSnapshot使用介绍
Linked list in JS (including leetcode examples) < continuous update ~>
Steve Jobs' speech at Stanford University -- follow your heart
Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
Solution of dam safety automatic monitoring system for medium and small reservoirs
V4L2 驱动层分析
Disable right-click, keyboard open console events
Bidirectional level conversion circuit
Codeworks 5 questions per day (1700 for each)
博客登录框
【MYSQL】所有查询表中有2千万数据--sql如何优化
Mysql-16-subquery
解决ValueError: Iterable over raw text documents expected, string object received.
Quartus replication IP core
mysql导出数据库字典成excel文件