┊ 网站导航 ┊ 管理登陆 ┊ 免责声明 ┊ 问题反馈 ┊ 友链说明┊本站部分内容来自网络共享资源,如有冒犯您的权利请来信告之删除或纠正! 不得对本站进行复制、盗链或镜像,转载内容须获得同意或授权;欢迎友情链接、站务合作! ![]() ![]() ![]() ![]() ![]() ![]() 本站学习交流群:138..158(高级群1-满)、77930286(高级群2)、61804809(群3) Copyright© MCUSY All Rights Reserved 本站网警备案号: WZ36040002485 ICP备案证书号:粤ICP备09034963号 |
众所周知stc单片机是用串口下载的,他的下载协议我们一直不得而知,于是我用一个软件截取了串行口的数据并进行了简单的分析,(左边为16进制的数据,右边为文本显示)哪位51hei的大侠,按照这个给写个下载程序出来,共享给大家啊,
下面的内容是串口截取的数据
读:
Port opened
Baud rate set to 9600
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
68 00 1C 00 29 FA 29 FE 29 FA 29 FA 29 FA 29 FA h...)ú)t)ú)ú)ú)ú
29 FE 29 FA 32 43 FD F1 08 82 91 16 )t)ú2Cy?.??.
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 68 00 0C 8F FF FA 00 0C 28 80 B0 16 F1h..??ú..(?°.
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 68 00 0B 8E FF FA 00 0C 17 1D 16 46 B9 68 F1h..??ú.....F1h
00 06 80 EE 16 46 B9 68 00 06 80 EE 16 46 B9 68 ..??.F1h..??.F1h
00 06 80 EE 16 46 B9 68 00 06 80 EE 16 46 B9 68 ..??.F1h..??.F1h
00 06 80 EE 16 ..??.
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 68 00 06 80 EE 16 46 B9 68 00 07 80 00 EF F1h..??.F1h..?.?
16 46 B9 68 00 07 80 A1 90 16 46 B9 68 00 07 80 .F1h..???.F1h..?
00 EF 16 46 B9 68 00 07 80 00 EF 16 46 B9 68 00 .?.F1h..?.?.F1h.
07 80 00 EF 16 46 B9 68 00 06 80 EE 16 .?.?.F1h..??.
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
写:
Port opened
Baud rate set to 9600
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F
7F 7F 7F 7F 7F 7F
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 0C 8F FF FA 00 0C 28 80 B2 16 F1j..??ú..(?2.
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
Port closed
Port opened
Baud rate set to 1200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 0B 8E FF FA 00 0C 17 1F 16 F1j..??ú.....
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 06 80 F0 16 46 B9 6A 00 06 80 F0 16 F1j..?e.F1j..?e.
46 B9 6A 00 06 80 F0 16 46 B9 6A 00 06 80 F0 16 F1j..?e.F1j..?e.
46 B9 6A 00 06 80 F0 16 F1j..?e.
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 0D 84 01 33 33 33 33 33 33 2E 16 46 F1j..?.333333..F
B9 6A 00 8C 00 00 00 02 00 00 80 00 00 00 00 00 1j.?......?.....
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 ................
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 ................
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 ................
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 78 16 46 B9 6A ...........x.F1j
00 8C 00 00 00 00 00 00 80 02 00 03 78 7F E4 F6 .?......?...x??
D8 FD 75 81 07 02 00 0F 75 A0 55 80 FE 00 00 00 ?yu?....u U?t...
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 ................
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 ................
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 ................
00 00 00 00 00 00 00 00 00 17 16 46 B9 6A 00 8C ...........F1j.?
00 00 00 00 80 00 80 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 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 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 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 F6 16 46 B9 6A 00 8C 00 00 .......?.F1j.?..
00 01 00 00 80 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 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 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 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 77 16 46 B9 6A 00 8C 00 00 00 01 .....w.F1j.?....
80 00 80 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 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 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 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 F7 16 46 B9 6A 00 06 82 F2 16 46 B9 6A ...÷.F1j..?ò.F1j
00 08 52 02 00 C6 16 ..R..?.
Port closed
Port opened
Baud rate set to 115200
StopBits: 1 stop bit, Parity: No parity, WordLength: 8
46 B9 6A 00 06 82 F2 16 46 B9 6A 00 08 52 02 00 F1j..?ò.F1j..R..
C6 16 ?.
Port closed
1.上:发送 7F 下载命令
2.下:
回应:
68 00 1C 00 29 FA 29 FA 29 FA 29 FA 29 FA 29 FA 29 FA 29 FE 32 43 FD F1 08 82 8D 16
3.上:
46 B9 6A 00 0C 8F FF FA 00 0C 28 80 B2 16
┊ 网站导航 ┊ 管理登陆 ┊ 免责声明 ┊ 问题反馈 ┊ 友链说明┊本站部分内容来自网络共享资源,如有冒犯您的权利请来信告之删除或纠正! 不得对本站进行复制、盗链或镜像,转载内容须获得同意或授权;欢迎友情链接、站务合作! ![]() ![]() ![]() ![]() ![]() ![]() 本站学习交流群:138..158(高级群1-满)、77930286(高级群2)、61804809(群3) Copyright© MCUSY All Rights Reserved 本站网警备案号: WZ36040002485 ICP备案证书号:粤ICP备09034963号 |