Qthing fota 相关 at 指令

AT+QIOTOTAREQ

AT+QIOTUPDATE

AT+QIOTOTARD

AT+QIOTMCUVER

文档上只有指令功能说明,没有整个交互流程介绍。

SOTA 升级 AT 交互流程

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 上传组件当前版本号,可以在连上云平台之前配置

AT+QIOTMCUVER="GNSS-P0","LC76GPANR12A03S"
OK
AT+QIOTMCUVER="GNSS-P1","LC76GPANR12A03S"
OK
AT+QIOTMCUVER="GNSS-P2","LC76GPANR12A03S"
OK
AT+QIOTMCUVER="GNSS-P3","LC76GPANR12A03S"
OK
AT+QIOTMCUVER="GNSS-P4","LC76GPANR12A03S"
OK
1
2
3
4
## 请求升级计划,在连上云平台之后发送

AT+QIOTOTAREQ=0
OK
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 平台下发升级计划

+QIOTEVT: 7,10700,"GNSS-P0","","LC76GABNR12A02S",30,-113,1110736
+QIOTEVT: 7,10700,"GNSS-P1","","LC76GABNR12A02S",30,-113,1110736
+QIOTEVT: 7,10700,"GNSS-P2","","LC76GABNR12A02S",30,-113,1110736
+QIOTEVT: 7,10700,"GNSS-P3","","LC76GABNR12A02S",30,-113,1110736
+QIOTEVT: 7,10700,"GNSS-P4","","LC76GABNR12A02S",30,-113,1110736

# 一个升级计划可能包含多个组件升级,他这里分别上报各个组件的升级信息,这样 MCU 并不知道当前升级计划有多少个组件要升级。
# 这里的升级计划数据需要持久化,一旦平台开始下载升级了,中间掉电重新上线,不会再次下发升级计划,而是重新开始下载文件。
1
2
3
4
## 设备确认升级

AT+QIOTUPDATE=1
OK
1
2
## 广播操作第一个设备。ps:好像没啥用,当前没处理这个URC
+QIOTEVT: 7,10707,1
1
2
3
4
5
6
7
8
9
## 开始下载组件

+QIOTEVT: 7,10701,"GNSS-P0",43956,"af575a5488587fcbb49a5abc750d9df5",1520610221
# 校验信息在这个阶段得保存下来,用于核对下载完成之后升级文件的完整性校验。

## 下载中

+QIOTEVT: 7,10702
+QIOTEVT: 7,10702
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## 文件片段下载完成

+QIOTEVT: 7,10703,"GNSS-P0",43956,0,43956
# ps:需要处理读取的偏移量,需要判断文件下载完成了还是只是文件部分片段下载完成了

## 读取固件数据

AT+QIOTOTARD=0,974
+QIOTOTARD: 0,974
0000-0020: DF F8 58 D0 72 B6 16 48  80 47 16 48 16 49 17 4B  17 4C 18 4A 42 F8 04 0B  42 F8 04 1B 42 F8 04 3B    ..X.r..H.G.H.I.K.L.JB...B...B..;
0020-0040: 14 60 00 20 14 49 0D 4A  41 F8 04 0B 91 42 FF F4  FB AF 12 4A 12 4B 0A F0  5E FB 12 4A 12 4B 0A F0    .`. .I.JA....B.....J.K..^..J.K..
0040-0060: 5A FB 12 49 12 4A 13 4B  0A F0 4C FB 12 49 13 4A  13 4B 0A F0 47 FB 13 48  00 47 70 47 00 40 01 04    Z..I.J.K..L..I.J.K..G..H.GpG.@..
0060-0080: AD A6 20 04 17 00 20 14  00 00 20 04 23 00 00 10  00 00 00 00 00 10 18 E0  00 30 01 04 B4 AB 20 04    .. ... ... .#............0.... .
0080-00A0: 9C F2 20 04 FC 0E 00 04  C8 BF 00 04 78 01 20 04  00 00 00 04 E4 0E 00 04  5C 10 20 04 E4 0E 00 04    .. .........x. .........\. .....
00A0-00C0: FC 0E 00 04 B1 5F 20 04  00 40 01 04 01 00 20 04  B9 73 20 04 B9 73 20 04  B9 73 20 04 B9 73 20 04    ....._ ..@.... ..s ..s ..s ..s .
00C0-00E0: B9 73 20 04 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 B9 73 20 04  B9 73 20 04 00 00 00 00    .s ..................s ..s .....
00E0-0100: B9 73 20 04 B9 73 20 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04    .s ..s .........................
0100-0120: 11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04    ................................
0120-0140: 11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04    ................................
0140-0160: 11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04    ................................
0160-0180: 11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  11 00 00 04 11 00 00 04  02 4B 58 68 C0 F3 08 00    .........................KXh....
0180-01A0: 10 38 70 47 00 ED 00 E0  08 B5 00 F0 89 FE FF F7  F3 FF C0 B2 1A 28 07 D8  40 B2 0B 4B 53 F8 20 30    .8pG.................([email protected]. 0
01A0-01C0: 23 B1 98 47 00 20 02 E0  FD 20 00 E0 FC 20 EF F3  12 83 33 B1 05 48 06 4A  06 4B 4F F4 91 71 06 F2    #..G. ... ... ....3..H.J.KO..q..
01C0-01E0: 6F F8 40 B2 08 BD 00 BF  54 AC 20 04 4F 12 20 04  A0 12 20 04 8D 25 20 04  10 B5 74 46 EF F3 12 83    [email protected]. .O. ... ..% ...tF....
01E0-0200: 03 60 10 23 83 F3 11 88  BF F3 5F 8F BF F3 6F 8F  00 68 48 B9 00 F0 AE FD  02 28 05 D1 01 20 03 49    .`.#......_...o..hH......(... .I
0200-0220: 00 F0 64 F8 02 4B 1C 60  00 20 10 BD E8 0E 00 04  50 AC 20 04 F8 B5 07 46  68 BB EF F3 12 83 10 2B    ..d..K.`. ......P. ....Fh......+
0220-0240: 29 D1 00 F0 97 FD 02 28  22 D1 17 4C 17 4D 18 4E  21 46 01 20 00 F0 4A F8  30 68 21 68 2A 46 00 F0    )......("..L.M.N!F. ..J.0h!h*F..
0240-0260: 71 F8 2B 68 B3 F5 7A 7F  0E D9 1E 20 64 21 04 F2  1D FD 49 F6 40 43 98 42  06 D9 0E 48 0E 4A 0F 4B    q.+h..z.... [email protected]
0260-0280: 4F F4 AD 71 06 F2 1C F8  00 23 33 60 23 60 2B 60  0B 4B 00 22 1A 60 87 F3  11 88 BF F3 5F 8F BF F3    O..q.....#3`#`+`.K.".`......_...
0280-02A0: 6F 8F 00 20 F8 BD 00 BF  EC 0E 00 04 E4 0E 00 04  E8 0E 00 04 4F 12 20 04  80 12 20 04 8D 25 20 04    o.. ................O. ... ..% .
02A0-02C0: 50 AC 20 04 EF F3 12 83  03 60 10 23 83 F3 11 88  BF F3 5F 8F BF F3 6F 8F  00 20 70 47 80 F3 11 88    P. ......`.#......_...o.. pG....
02C0-02E0: BF F3 5F 8F BF F3 6F 8F  00 20 70 47 70 B5 0D 46  04 46 60 B9 10 4E 33 78  01 2B 06 D0 0F 48 10 21    .._...o.. pGp..F.F`..N3x.+...H.!
02E0-0300: 22 46 00 F0 7A F8 01 23  33 70 0C 48 0C E0 01 28  0F D1 09 4E 73 78 01 2B  05 D0 09 48 00 21 0C 22    "F..z..#3p.H...(...Nsx.+...H.!."
0300-0320: 00 F0 6B F8 74 70 06 48  00 F0 46 F8 28 60 00 20  00 E0 FF 20 40 B2 70 BD  FC 0E 00 04 00 02 12 A2    ..k.tp.H..F.(`. ... @.p.........
0320-0340: 00 03 12 A2 1A B1 08 1A  10 60 00 20 00 E0 FF 20  40 B2 70 47 38 B5 0A 4C  23 78 01 2B 05 46 06 D0    .........`. ... @.pG8..L#x.+.F..
0340-0360: 08 48 10 21 00 22 00 F0  48 F8 01 23 23 70 28 46  00 F0 24 F8 01 46 03 48  00 F0 4B F8 00 20 38 BD    .H.!."..H..##p(F..$..F.H..K.. 8.
0360-0380: FC 0E 00 04 00 02 12 A2  38 B5 09 4C 63 78 01 2B  05 46 06 D0 07 48 00 21  0C 22 00 F0 2E F8 01 23    ........8..Lcx.+.F...H.!.".....#
0380-03A0: 63 70 04 48 29 46 00 F0  34 F8 00 20 38 BD 00 BF  FC 0E 00 04 00 03 12 A2  80 69 70 47 C3 00 19 1A    cp.H)F..4.. 8............ipG....
03A0-03C0: 0A 22 B1 FB F2 F1 06 22  10 B5 42 43 64 24 B2 FB  F4 F2 0A 44 02 EB 40 10  4F F4 7A 72 B3 FB F2 F3    ."....."[email protected]....
03C0-03E0: 18 44 10 BD 08 B5 34 20  00 F0 0C FB 20 B9 

OK


AT+QIOTOTARD=974,974
+QIOTOTARD: 974,974

0000-0020: 34 20 BD E8 08 40 04 F2  44 BD 08 BD 70 B5 04 46  0D 46 16 46 35 43 FF F7  EE FF 40 F2 01 33 A5 60    4 [email protected][email protected].`
0020-0040: 23 60 70 BD 82 69 83 69  9B 1A 8B 42 FB D9 70 47  00 00 0B 28 00 F2 30 81  DF E8 10 F0 0C 00 2F 00    #`p..i.i...B..pG...(..0......./.
0040-0060: 53 00 76 00 98 00 BB 00  DE 00 03 01 0B 01 1B 01  21 01 27 01 91 4B D3 F8  70 22 42 F4 80 72 C3 F8    S.v.............!.'..K..p"B..r..
0060-0080: 70 22 D3 F8 30 22 61 F3  0A 22 C3 F8 30 22 D3 F8  50 22 42 F4 80 72 C3 F8  50 22 D3 F8 50 22 D2 05    p"..0"a.."..0"..P"B..r..P"..P"..
0080-00A0: FB D4 D3 F8 60 12 84 4A  C1 F3 00 21 00 29 F8 D1  D2 F8 70 32 61 F3 08 23  20 E0 7F 4B D3 F8 70 22    ....`..J...!.)....p2a..# ..K..p"
00A0-00C0: 42 F0 01 02 C3 F8 70 22  D3 F8 30 22 61 F3 02 02  C3 F8 30 22 D3 F8 50 22  42 F0 01 02 C3 F8 50 22    B.....p"..0"a.....0"..P"B.....P"
00C0-00E0: D3 F8 50 22 D0 07 FB D4  D3 F8 60 12 73 4A 11 F0  01 01 F9 D1 D2 F8 70 32  61 F3 00 03 C2 F8 70 32    ..P"......`.sJ........p2a.....p2
00E0-0100: 70 47 6D 4B D3 F8 70 22  42 F4 80 32 C3 F8 70 22  D3 F8 30 22 61 F3 12 42  C3 F8 30 22 D3 F8 50 22    pGmK..p"B..2..p"..0"a..B..0"..P"
0100-0120: 42 F4 80 32 C3 F8 50 22  D3 F8 50 22 D1 03 FB D4  D3 F8 60 12 61 4A C1 F3  00 41 00 29 F8 D1 D2 F8    B..2..P"..P"......`.aJ...A.)....
0120-0140: 70 32 61 F3 10 43 D9 E7  5C 4B D3 F8 74 22 42 F0  01 02 C3 F8 74 22 D3 F8  34 22 61 F3 02 02 C3 F8    p2a..C..\K..t"B.....t"..4"a.....
0140-0160: 34 22 D3 F8 54 22 42 F0  01 02 C3 F8 54 22 D3 F8  54 22 D2 07 FB D4 D3 F8  64 12 4F 4A 11 F0 01 01    4"..T"B.....T"..T"......d.OJ....
0160-0180: F9 D1 D2 F8 74 32 61 F3  00 03 67 E0 4B 4B D3 F8  74 22 42 F4 80 72 C3 F8  74 22 D3 F8 34 22 61 F3    ....t2a...g.KK..t"B..r..t"..4"a.
0180-01A0: 0A 22 C3 F8 34 22 D3 F8  54 22 42 F4 80 72 C3 F8  54 22 D3 F8 54 22 D0 05  FB D4 D3 F8 64 12 3E 4A    ."..4"..T"B..r..T"..T"......d.>J
01A0-01C0: C1 F3 00 21 00 29 F8 D1  D2 F8 74 32 61 F3 08 23  44 E0 39 4B D3 F8 74 22  42 F0 80 72 C3 F8 74 22    ...!.)....t2a..#D.9K..t"B..r..t"
01C0-01E0: D3 F8 34 22 61 F3 1A 62  C3 F8 34 22 D3 F8 54 22  42 F0 80 72 C3 F8 54 22  D3 F8 54 22 D1 01 FB D4    ..4"a..b..4"..T"B..r..T"..T"....
01E0-0200: D3 F8 64 12 2D 4A C1 F3  00 61 00 29 F8 D1 D2 F8  74 32 61 F3 18 63 21 E0  28 4B D3 F8 74 22 42 F4    ..d.-J...a.)....t2a..c!.(K..t"B.
0200-0220: 80 32 C3 F8 74 22 D3 F8  34 22 61 F3 11 42 C3 F8  34 22 D3 F8 54 22 42 F4  80 32 C3 F8 54 22 D3 F8    .2..t"..4"a..B..4"..T"B..2..T"..
0220-0240: 54 22 D2 03 FB D4 D3 F8  64 12 1B 4A C1 F3 00 41  00 29 F8 D1 D2 F8 74 32  61 F3 10 43 C2 F8 74 32    T"......d..J...A.)....t2a..C..t2
0240-0260: 70 47 15 4B D3 F8 38 22  61 F3 02 02 C3 F8 38 22  70 47 12 4B D3 F8 04 22  01 F0 01 01 61 F3 00 02    pG.K..8"a.....8"pG.K..."....a...
0260-0280: C3 F8 04 22 D3 F8 04 22  61 F3 08 22 C3 F8 04 22  70 47 0A 4B D3 F8 00 22  61 F3 00 02 0A E0 07 4B    ..."..."a.."..."pG.K..."a......K
0280-02A0: D3 F8 00 22 61 F3 08 22  04 E0 04 4B D3 F8 00 22  61 F3 10 42 C3 F8 00 22  70 47 00 00 02 A2 00 00    ..."a.."...K..."a..B..."pG......
02A0-02C0: 15 A2 10 28 30 B5 00 F0  1F 05 13 D9 A0 F1 30 03  04 2B 13 D9 A0 F1 44 03  15 2B 13 D9 A0 F1 60 03    ...(0.........0..+....D..+....`.
02C0-02E0: 11 2B 13 D9 90 28 15 D0  B0 28 2C D1 19 4B 19 4C  1A 4A 12 E0 1A 4B 1A 4C  1B 4A 0E E0 1B 4B 1B 4C    .+...(...(,..K.L.J...K.L.J...K.L
02E0-0300: 1C 4A 0A E0 1C 4B 1C 4C  1D 4A 06 E0 1D 4B 1D 4C  1E 4A 02 E0 1E 4B 1E 4C  1F 4A 21 B9 20 68 E8 40    .J...K.L.J...K.L.J...K.L.J!. h.@
0300-0320: 00 F0 01 00 30 BD 01 29  04 D1 13 68 A9 40 19 43  11 60 0B E0 02 29 09 D1  1A 68 01 21 01 FA 05 F5    ....0..)[email protected].`...)...h.!....
0320-0340: 15 43 1D 60 02 E0 4F F0  FF 30 30 BD 00 20 30 BD  00 BF 70 03 15 A2 60 03  15 A2 80 03 15 A2 10 0B    .C.`..O..00.. 0...p...`.........
0340-0360: 03 A2 00 0B 03 A2 20 0B  03 A2 40 0B 03 A2 30 0B  03 A2 50 0B 03 A2 70 0B  03 A2 60 0B 03 A2 80 0B    ...... [email protected]...`.....
0360-0380: 03 A2 10 03 15 A2 00 03  15 A2 20 03 15 A2 40 03  15 A2 30 03 15 A2 50 03  15 A2 01 28 24 D1 22 4B    .......... [email protected]....($."K
0380-03A0: D3 F8 80 22 02 29 42 F4  80 72 C3 F8 80 22 04 D1  D3 F8 88 22 42 F0 01 02  05 E0 03 29 06 D1 D3 F8    ...".)B..r..."....."B......)....
03A0-03C0: 88 22 42 F4 80 72 C3 F8  88 22 2C E0 05 29 04 D1  D3 F8 88 22 42 F4 80 32  F5 E7 14 29 23 D1 D3 F8    ."B..r...",..)....."B..2...)#...
03C0-03E0: 88 22 42 F0 80 72 EE E7  02 28 1C D1 0F 4B                                                            ."B..r...(...K

OK

# 读这个文件片段完最后一包数据,整个文件下载完成
AT+QIOTOTARD=43830,974                              
+QIOTOTARD: 43830,126
0000-0020: 63 61 74 69 6F 6E 5F 56  32 2E 30 2E 30 2E 41 47  33 33 35 32 5F 45 52 31  00 00 00 00 00 00 00 00    cation_V2.0.0.AG3352_ER1........
0020-0040: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 20 2C 20 04 00 00    .......................... , ...
0040-0060: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................................
0060-0080: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 50 AB 20 04          ..........................P. .

OK
1
2
3
## 发送升级中指令
AT+QIOTUPDATE=3
OK
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 上传新版本号

AT+QIOTMCUVER="GNSS-P0","LC76GABNR12A02S"

## 平台回复升级中事件

+QIOTEVT: 7,10704

## 平台回复升级成功事件

+QIOTEVT: 7,10705..

## 平台推送开始下载下一个升级组件文件

+QIOTEVT: 7,10701,"GNSS-P1",432,"2db44eb7576c8bd99a673f4a5cf650f9",1329991157

# 之后便是和之前一样的流程,下载中、下载完成、读固件数据,更新升级状态和上报新版本
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
## 下载大文件的情况处理

+QIOTEVT: 7,10701,"GNSS-P3",1110736,"1e1c252ffd1103e4efbaf6ee66ab8830",1133715339
+QIOTEVT: 7,10702
+QIOTEVT: 7,10702                                                                                             ..

## 下载完成
+QIOTEVT: 7,10703,"GNSS-P3",1110736,0,204800
AT+QIOTOTARD=0,974
+QIOTOTARD: 0,974
0000-0020: DF F8 D8 D0 72 B6 36 48  80 47 36 48 36 49 41 60  36 49 C0 F8 84 10 36 49  C1 60 36 48 36 49 01 60    ....r.6H.G6H6IA`6I....6I.`6H6I.`
0020-0040: 36 48 37 49 01 60 37 48  37 49 38 4B 38 4C 39 4A  42 F8 04 0B 42 F8 04 1B  42 F8 04 3B 14 60 00 20    6H7I.`7H7I8K8L9JB...B...B..;.`. 
0040-0060: 35 49 26 4A 41 F8 04 0B  91 42 FF F4 FB AF 33 49  33 4A 34 4B 00 F0 EE F8  33 49 34 4A 34 4B 00 F0    5I&JA....B....3I3J4K....3I4J4K..
0060-0080: E9 F8 34 4A 34 4B 00 F0  EE F8 34 49 34 4A 35 4B  00 F0 E0 F8 34 49 35 4A  35 4B 00 F0 DB F8 35 49    ..4J4K....4I4J5K....4I5J5K....5I
0080-00A0: 35 4A 36 4B 00 F0 D6 F8  35 4A 36 4B 00 F0 DB F8  35 4A 36 4B 00 F0 D7 F8  35 49 88 47 01 28 00 F0    5J6K....5J6K....5J6K....5I.G.(..
00A0-00C0: 17 80 34 49 34 4A 35 4B  00 F0 C4 F8 34 49 35 4A  35 4B 00 F0 BF F8 35 4A  35 4B 00 F0 C4 F8 35 49    ..4I4J5K....4I5J5K....5J5K....5I
00C0-00E0: 35 4A 36 4B 00 F0 B6 F8  35 4A 36 4B 00 F0 BB F8  35 48 80 47 35 48 00 47  70 47 00 00 00 00 01 04    5J6K....5J6K....5H.G5H.GpG......
00E0-0100: D5 91 00 08 00 00 08 A2  12 00 80 07 00 00 26 00  9A 78 56 14 30 00 08 A2  40 00 00 00 08 00 16 A2    ..............&..xV.0...@.......
0100-0120: 00 00 00 00 17 00 20 14  00 00 20 04 0F 00 30 14  00 00 30 04 00 10 18 E0  00 F0 00 04 60 55 11 08    ...... ... ...0...0.........`U..
0120-0140: 00 00 00 04 98 2C 00 04  F8 81 11 08 98 2C 00 04  70 2D 00 04 70 2D 00 04  28 EE 00 04 F0 31 11 08    .....,.......,..p-..p-..(....1..
0140-0160: 00 00 20 14 80 18 20 14  70 4A 11 08 80 18 20 14  7C 21 20 14 6C 53 11 08  C0 CB 24 04 90 CC 24 04    .. ... .pJ.... .|! .lS....$...$.
0160-0180: 80 21 20 14 C0 CB 24 14  90 CC 24 04 40 FA 24 04  45 4A 01 08 3C 54 11 08  00 04 30 04 24 05 30 04    .! ...$...$.@.$.EJ..<T....0.$.0.
0180-01A0: 60 55 11 08 24 05 30 04  24 05 30 04 24 05 30 04  24 05 30 04 60 55 11 08  40 05 30 14 40 05 30 14    `U..$.0.$.0.$.0.$.0.`[email protected][email protected].
01A0-01C0: 40 05 30 14 F0 BD 30 14  B1 91 00 08 29 A6 02 08  06 4B D3 F8 88 20 42 F4  70 02 C3 F8 88 20 04 4A    @.0...0.....)....K... B.p.... .J
01C0-01E0: 9A 60 5A 6A 42 F4 E0 22  5A 62 70 47 00 ED 00 E0  00 00 00 04 12 4B 13 49  00 22 1A 60 13 22 5A 60    .`ZjB.."ZbpG.........K.I.".`."Z`
01E0-0200: 03 22 5A 60 10 4A 41 F4  80 70 10 60 0F 48 01 44  11 64 01 22 DA 62 0E 4A  B2 F5 A0 3F 08 D0 B2 F5    ."Z`.JA..p.`.H.D.d.".b.J...?....
0200-0220: B0 3F 08 D0 B2 F5 80 3F  08 D1 40 F2 0D 32 04 E0  40 F2 0D 22 01 E0 40 F2  0D 12 1A 60 70 47 00 BF    [email protected]..@.."..@....`pG..
0220-0240: 00 00 18 E0 00 00 00 08  00 00 19 E0 00 00 20 00  00 00 01 00 9A 42 3E BF  51 F8 04 0B 42 F8 04 0B    .............. ......B>.Q...B...
0240-0260: FF F7 F8 BF 70 47 9A 42  3E BF 00 20 42 F8 04 0B  FF F7 F9 BF 70 47 00 00  D0 40 0B 1C D1 40 9C 46    ....pG.B>.. B.......pG...@[email protected]
0260-0280: 20 3A D3 40 18 43 52 42  63 46 93 40 18 43 70 47  91 40 03 1C 90 40 9C 46  20 3A 93 40 19 43 52 42     :[email protected][email protected].@[email protected] :[email protected]
0280-02A0: 63 46 D3 40 19 43 70 47  81 F0 00 41 02 E0 00 BF  83 F0 00 43 30 B5 4F EA  41 04 4F EA 43 05 94 EA    [email protected]...
02A0-02C0: 05 0F 08 BF 90 EA 02 0F  1F BF 54 EA 00 0C 55 EA  02 0C 7F EA 64 5C 7F EA  65 5C 00 F0 E2 80 4F EA    ..........T...U.....d\..e\....O.
02C0-02E0: 54 54 D4 EB 55 55 B8 BF  6D 42 0C DD 2C 44 80 EA  02 02 81 EA 03 03 82 EA  00 00 83 EA 01 01 80 EA    TT..UU..mB..,D..................
02E0-0300: 02 02 81 EA 03 03 36 2D  88 BF 30 BD 11 F0 00 4F  4F EA 01 31 4F F4 80 1C  4C EA 11 31 02 D0 40 42    ......6-..0....OO..1O...L..1..@B
0300-0320: 61 EB 41 01 13 F0 00 4F  4F EA 03 33 4C EA 13 33  02 D0 52 42 63 EB 43 03  94 EA 05 0F 00 F0 A7 80    a.A....OO..3L..3..RBc.C.........
0320-0340: A4 F1 01 04 D5 F1 20 0E  0D DB 02 FA 0E FC 22 FA  05 F2 80 18 41 F1 00 01  03 FA 0E F2 80 18 43 FA    ...... .......".....A.........C.
0340-0360: 05 F3 59 41 0E E0 A5 F1  20 05 0E F1 20 0E 01 2A  03 FA 0E FC 28 BF 4C F0  02 0C 43 FA 05 F3 C0 18    ..YA.... ... ..*....(.L...C.....
0360-0380: 51 EB E3 71 01 F0 00 45  07 D5 4F F0 00 0E DC F1  00 0C 7E EB 00 00 6E EB  01 01 B1 F5 80 1F 1B D3    Q..q...E..O.......~...n.........
0380-03A0: B1 F5 00 1F 0C D3 49 08  5F EA 30 00 4F EA 3C 0C  04 F1 01 04 4F EA 44 52  12 F5 80 0F 80 F0 9A 80    ......I._.0.O.<.....O.DR........
03A0-03C0: BC F1 00 4F 08 BF 5F EA  50 0C 50 F1 00 00 41 EB  04 51 41 EA 05 01 30 BD  5F EA 4C 0C 40 41 41 EB    ...O.._.P.P...A..QA...0._.L.@AA.
03C0-03E0: 01 01 11 F4 80 1F A4 F1  01 04 E9 D1 91 F0   

OK

...

AT+QIOTOTARD=204540,974
+QIOTOTARD: 204540,260

0000-0020: 61 8A B0 F0 67 FE 28 46  E1 8A BD E8 38 40 B1 F0  69 B8 70 B5 04 46 0D 46  20 21 B1 F0 CB F9 21 68    a...g.([email protected] !....!h
0020-0040: 78 22 00 26 8D 42 0E D0  2B 78 20 2B 01 D0 1E 44  02 E0 20 2A 01 D0 20 36  1A 46 E3 68 01 35 9D 42    x".&.B..+x +...D.. *.. 6.F.h.5.B
0040-0060: 28 BF A5 68 EE E7 20 46  26 21 B1 F0 B3 F9 20 46  F1 B2 B1 F0 77 F9 20 46  BD E8 70 40 B1 F0 E2 BA    (..h.. F&!.... F....w. F..p@....
0060-0080: 01 28 2D E9 F0 47 07 46  0C 46 15 46 1E 46 34 D1  08 46 B1 F0 D7 FA 20 46  23 21 B1 F0 9B F9 20 46    .(-..G.F.F.F.F4..F.... F#!.... F
0080-00A0: 93 49 D4 F8 00 80 B0 F0  6D FB 20 46 31 7E B1 F0  29 F8 20 46 B1 68 B1 F0  A5 F8 20 46 39 46 B1 F0    .I......m. F1~..). F.h.... F9F..
00A0-00C0: 21 F8 20 46 F1 68 B0 F0  DD FD 20 46 31 69 B0 F0  D9 FD 20 46 71 78 B0 F0  ED FA 20 46 71 69 B0 F0    !. F.h.... F1i.... Fqx.... Fqi..
00C0-00E0: D1 FD 20 46 29 7D B1 F0  0D F8 20 46 00 21 B1 F0  B9 F8 20 46 41 46 FF F7  9C FF 01 3F FF 00 07 F1    .. F)}.... F.!.... FAF.....?....
00E0-0100: 08 08 30 25 24 23 05 FB  07 65 B8 F1 33 0F 28 BF  4F F0 33 08 03 FB 07 66  47 45 80 F0 E7 80 95 F8    ..0%$#...e..3.(.O.3....fGE......
0100-0120: 49 37 05 F5                                                                                           I7..

0000-0020: 4F 4B 0D 0A                                                                                           OK


## 请求下载下一个文件片段
AT+QIOTUPDATE=2
OK

+QIOTEVT: 7,10702
+QIOTEVT: 7,10703,"GNSS-P3",1110736,204800,204800

AT+QIOTOTARD=204800,974
+QIOTOTARD: 204800,974

0000-0020: E9 6A 00 2B 00 F0 DC 80  20 46 23 21 B1 F0 50 F9  20 46 6F 49 D4 F8 00 90  B0 F0 22 FB 20 46 39 46    .j.+.... F#!..P. FoI......". F9F
0020-0040: B0 F0 DE FF 20 46 51 46  FF F7 33 FF 20 46 B1 6A  B0 F0 96 FD 20 46 F1 6A  B0 F0 8A FA 31 6B 20 46    .... FQF..3. F.j.... F.j....1k F
0040-0060: B0 F0 7E FC 20 46 B1 F0  9B FA 20 46 F1 8B B1 F0  F7 FA 20 46 B1 F0 94 FA  73 6B 5E 4A 93 42 02 DB    ..~. F.... F...... F....sk^J.B..
0060-0080: 20 46 B1 F0 8D FA 20 46  71 6B B0 F0 69 FC 71 8C  20 46 B0 F0 AD FD 20 46  B1 F0 82 FA F1 6B 20 46     F.... Fqk..i.q. F.... F.....k F
0080-00A0: B0 F0 FE FD 20 46 B1 F0  7B FA B5 F8 54 17 20 46  B1 F0 D6 FA 20 46 B1 F0  73 FA D5 F8 68 17 20 46    .... F..{...T. F.... F..s...h. F
00A0-00C0: B0 F0 56 FA 20 46 B1 F0  6B FA B1 6B 20 46 B0 F0  47 FC 20 46 B1 F0 64 FA  95 F8 50 17 20 46 B0 F0    ..V. F..k..k F..G. F..d...P. F..
00C0-00E0: 67 FA 20 46 B1 F0 5C FA  31 8C 20 46 B1 F0 B8 FA  20 46 B1 F0 55 FA B5 F8  5C 17 20 46 B0 F0 78 FD    g. F..\.1. F.... F..U...\. F..x.
00E0-0100: 20 46 B1 F0 4D FA B5 F9  60 17 20 46 B1 F0 28 F8  20 46 B1 F0 45 FA B6 F9  24 10 20 46 B1 F0 20 F8     F..M...`. F..(. F..E...$. F.. .
0100-0120: 20 46 B1 F0 3D FA B5 F9  62 17 20 46 B1 F0 18 F8  20 46 B1 F0 35 FA 95 F8  48 17 20 46 B1 F0 B0 FA     F..=...b. F.... F..5...H. F....
0120-0140: 20 46 B1 F0 2D FA B5 F9  6C 17 20 46 B0 F0 90 FC  20 46 B1 F0 25 FA B5 F8  64 17 20 46 B0 F0 88 FC     F..-...l. F.... F..%...d. F....
0140-0160: 20 46 B1 F0 1D FA B5 F8  66 17 20 46 B0 F0 80 FC  20 46 B1 F0 15 FA 95 F8  4A 17 20 46 B0 F0 78 FC     F......f. F.... F......J. F..x.
0160-0180: 20 46 B1 F0 0D FA 95 F8  6F 37 95 F8 6E 17 20 46  43 EA 01 21 B0 F0 6C FC  20 46 B1 F0 01 FA B5 F8     F......o7..n. FC..!..l. F......
0180-01A0: 70 17 20 46 B0 F0 64 FC  20 46 B1 F0 F9 F9 B5 F8  72 17 20 46 B0 F0 5C FC  20 46 B1 F0 F1 F9 B5 F8    p. F..d. F......r. F..\. F......
01A0-01C0: 74 17 20 46 B0 F0 54 FC  20 46 B1 F0 E9 F9 20 46  B5 F8 76 17 B0 F0 4C FC  20 46 49 46 FF F7 A7 FE    t. F..T. F.... F..v...L. FIF....
01C0-01E0: 01 37 30 35 24 36 15 E7  BD E8 F0 87 BA 74 0F 08  BF 74 0F 08 01 36 65 C4  2D E9 F0 4F 9F 4B 1A 68    .705$6.......t...t...6e.-..O.K.h
01E0-0200: 52 04 8D B0 04 46 40 F1  35 81 01 29 40 F0 32 81  1A 68 9B 49 22 F4 80 42  1A 60 41 F6 83 03 41 F6    [email protected]..)@.2..h.I"..B.`A...A.
0200-0220: AA 07 11 F8 03 C0 41 F6  82 03 CB 5C 03 EB 0C 2C  41 F6 85 03 1F FA 8C FC  CA 5C 41 F6 84 03 CB 5C    ......A....\...,A........\A....\
0220-0240: 03 EB 02 22 41 F6 87 03  92 B2 CD 5C 41 F6 86 03  CB 5C 03 EB 05 23 9B B2  03 93 41 F6 89 03 CD 5C    ..."A......\A....\...#....A....\
0240-0260: 41 F6 88 03 CB 5C 03 EB  05 23 9B B2 04 93 41 F6  93 03 CD 5C 41 F6 92 03  CB 5C 03 EB 05 23 9B B2    A....\...#....A....\A....\...#..
0260-0280: 05 93 41 F6 95 03 CD 5C  41 F6 94 03 CB 5C 03 EB  05 23 9B B2 06 93 41 F6  97 03 CD 5C 41 F6 96 03    ..A....\A....\...#....A....\A...
0280-02A0: CB 5C 03 EB 05 23 9B B2  07 93 41 F6 99 03 CD 5C  41 F6 98 03 CB 5C 03 EB  05 23 9B B2 08 93 41 F6    .\...#....A....\A....\...#....A.
02A0-02C0: 81 03 CD 5C 01 F5 C4 53  1B 78 03 EB 05 25 41 F6  9B 03 AD B2 CE 5C 41 F6  9A 03 CB 5C 03 EB 06 23    ...\...S.x...%A......\A....\...#
02C0-02E0: 9B B2 09 93 41 F6 9D 03  CE 5C 41 F6 9C 03 CB 5C  03 EB 06 23 9B B2 0A 93  41 F6 9F 03 CE 5C 41 F6    ....A....\A....\...#....A....\A.
02E0-0300: 9E 03 CB 5C 03 EB 06 23  9B B2 0B 93 41 F6 A1 03  CF 5D CE 5C 01 F5 C5 53  1B 78 03 EB 06 23 41 F6    ...\...#....A....].\...S.x...#A.
0300-0320: A3 06 9B B2 11 F8 06 B0  41 F6 A2 06 8E 5D 06 EB  0B 2B 41 F6 A5 06 1F FA  8B FB 11 F8 06 A0 41 F6    ........A....]...+A...........A.
0320-0340: A4 06 8E 5D 06 EB 0A 2A  41 F6 A7 06 1F FA 8A FA  11 F8 06 90 41 F6 A6 06  8E 5D 06 EB 09 29 41 F6    ...]...*A...........A....]...)A.
0340-0360: A9 06 1F FA 89 F9 11 F8  06 80 41 F6 A8 06 8E 5D  06 EB 08 28 41 F6 AB 06  1F FA 88 F8 8E 5D 41 49    ..........A....]...(A........]AI
0360-0380: 07 EB 06 27 C5 F3 03 26  0E 70 00 93 01 92 CD F8  08 C0 B1 F0 D5 F8 20 46  23 21 B0 F0 99 FF 20 46    ...'...&.p............ F#!.... F
0380-03A0: 39 49 26 68 B0 F0 6C F9  DD F8 08 C0 20 46 61 46  B0 F0 E6 FC 01 9A 20 46  11 46 B0 F0 E1 FC 20 46    9I&h..l..... FaF...... F.F.... F
03A0-03C0: 03 99 B0 F0 DD FC 20 46  04 99 B0 F0 D9 FC 20 46  0B 99 B0 F0 D5 FC 00 9B  20 46 19 46 B0 F0 D0 FC    ...... F...... F........ F.F....
03C0-03E0: 20 46 59 46 B0 F0 CC FC  20 46 51 46 B0 F0                                                             FYF.... FQF..

OK

...

AT+QIOTOTARD=1110686,974                         
+QIOTOTARD: 1110686,50

0000-0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................................
0020-0040: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00                                               ..................

OK

## 整个文件下载完成

AT+QIOTUPDATE=3
OK

AT+QIOTMCUVER="GNSS-P3","LC76GABNR12A02S"

## 升级中
+QIOTEVT: 7,10704
## 升级成功
+QIOTEVT: 7,10705