duanjichuankoutongxun

所属分类:嵌入式/单片机/硬件编程
开发工具:Visual C++
文件大小:100KB
下载次数:11
上传日期:2010-04-19 12:14:17
上 传 者硕鼠
说明:  com为主机通讯程序 上电后按左上键向一号从机发送通讯命令, 按右上键向二号从机发送通讯命令,命令格式 如下: 0xfe 0xaa 0x31 0x01 0x31 0x32 0x33 0x34 0x35 0x0d 0xfe 0xaa为帧头 0x31为1号从机的地址号,ASC码 0x01为命令,如可让01代表开灯02代表关灯等 0x31 0x32 0x33 0x34 0x35为数据 0x0d为结束符 下位机收到此帧命令,则首先判断地址号是否 是自己的地址,若是收到结束符后,回发 一号机回发0xfe 0xaa 0x31 O K 0x0d 二号机回发0xfe 0xaa 0x32 O K 0x0d 主机收到从机回发的应答,在液晶上显示 1OK 或2OK。
(com for the host communication program after power on, press the left button on the communication sent to the 1st orders from the machine, press the right on the button to the 2nd machine to send communications from the command, the command format is as follows: 0xfe 0xaa 0x31 0x01 0x31 0x32 0x33 0x34 0x35 0x0d 0xfe 0xaa for the frame 1, the first 0x31 is the address number from the machine, ASC code 0x01 for the command, such as will allow representatives of 01 representatives of 02 lights turn off the lights and other 0x31 0x32 0x33 0x34 0x35 0x0d for the data symbol for the end of the frame lower position to receive this command, the first determine whether the address number is your address, if received after the end of break, back on the 1st plane back 0xfe 0xaa 0x31 ' O' ' K' 0x0d on the 2nd machine back 0xfe 0xaa 0x32 ' O' ' K' 0x0d host collection to the response from the machine back in the liquid crystal display 1OK or 2OK.)

文件列表:
多机通讯程序\com\1602c.h (1767, 2009-05-18)
多机通讯程序\com\com (20372, 2009-09-03)
多机通讯程序\com\com.hex (6105, 2009-09-03)
多机通讯程序\com\com.lnp (55, 2009-09-03)
多机通讯程序\com\com.M51 (29806, 2009-09-03)
多机通讯程序\com\com.Opt (1492, 2010-01-10)
多机通讯程序\com\com.plg (178, 2010-01-10)
多机通讯程序\com\com.Uv2 (2141, 2009-09-05)
多机通讯程序\com\com_Opt.Bak (1494, 2009-09-26)
多机通讯程序\com\com_Uv2.Bak (2022, 2009-09-03)
多机通讯程序\com\delay.h (71, 2009-05-23)
多机通讯程序\com\demo.c (2595, 2009-09-03)
多机通讯程序\com\demo.LST (8834, 2009-09-03)
多机通讯程序\com\demo.OBJ (21714, 2009-09-03)
多机通讯程序\com\ds1302.h (7367, 2009-09-03)
多机通讯程序\com\key.h (79, 2009-05-18)
多机通讯程序\com\replay.h (1873, 2009-05-18)
多机通讯程序\com\STARTUP.A51 (5115, 2002-04-16)
多机通讯程序\com\STARTUP.LST (11666, 2009-09-03)
多机通讯程序\com\STARTUP.OBJ (749, 2009-09-03)
多机通讯程序\com - 从1\1602c.h (1767, 2009-05-18)
多机通讯程序\com - 从1\com (16972, 2009-09-03)
多机通讯程序\com - 从1\com.hex (3023, 2009-09-03)
多机通讯程序\com - 从1\com.lnp (55, 2009-09-03)
多机通讯程序\com - 从1\com.M51 (25900, 2009-09-03)
多机通讯程序\com - 从1\com.Opt (1473, 2010-01-10)
多机通讯程序\com - 从1\com.plg (184, 2010-01-10)
多机通讯程序\com - 从1\com.Uv2 (2141, 2009-09-04)
多机通讯程序\com - 从1\com_Opt.Bak (1473, 2009-09-26)
多机通讯程序\com - 从1\com_Uv2.Bak (2022, 2009-09-03)
多机通讯程序\com - 从1\delay.h (71, 2009-05-23)
多机通讯程序\com - 从1\demo.c (1787, 2009-09-03)
多机通讯程序\com - 从1\demo.LST (5926, 2009-09-03)
多机通讯程序\com - 从1\demo.OBJ (19108, 2009-09-03)
多机通讯程序\com - 从1\ds1302.h (7367, 2009-09-03)
多机通讯程序\com - 从1\key.h (79, 2009-05-18)
多机通讯程序\com - 从1\replay.h (1873, 2009-05-18)
多机通讯程序\com - 从1\STARTUP.A51 (5115, 2002-04-16)
多机通讯程序\com - 从1\STARTUP.LST (11666, 2009-09-03)
多机通讯程序\com - 从1\STARTUP.OBJ (749, 2009-09-03)
... ...

近期下载者

相关文件


收藏者