基于事件驱动的串口通讯控件
消息帧数据格式:
1 0 A B X X
其中 10 为消息标识,
AB表示文本长度,L=A*100+B
XX为配位字符,任意
控制帧数据格式
0 1 A B M N
其中 01为控制标识,
AB为请求标识
MN为附加标识
11表示请求对方接收文件,M表示描述字串中文件名子串的长度
N表示描述字串中文件大小子串的长度
10通知对方放弃传输
00通知文件传输完毕
01请求对方发送数据, MN为10请求发送下一个
MN为00请求重发
数据帧数据格式
0 0 A B M N
其中 00 为数据标识,
AB表示数据长度,L=A*100+B
MN为校验,M*100+N=A+B
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001310s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.074893s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001006s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001226s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001059s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003372s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000851s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003744s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014892s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001185s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 403390 [ RunTime:0.016224s ]