文件名称:duanjichuankoutongxun
介绍说明--下载内容均来自于网络,请自行研究使用
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 fr a me 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 fr a me 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.
上电后按左上键向一号从机发送通讯命令,
按右上键向二号从机发送通讯命令,命令格式
如下:
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 fr a me 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 fr a me 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
............\...\com
............\...\com.hex
............\...\com.lnp
............\...\com.M51
............\...\com.Opt
............\...\com.plg
............\...\com.Uv2
............\...\com_Opt.Bak
............\...\com_Uv2.Bak
............\...\delay.h
............\...\demo.c
............\...\demo.LST
............\...\demo.OBJ
............\...\ds1302.h
............\...\key.h
............\...\replay.h
............\...\STARTUP.A51
............\...\STARTUP.LST
............\...\STARTUP.OBJ
............\... - 从1\1602c.h
............\.........\com
............\.........\com.hex
............\.........\com.lnp
............\.........\com.M51
............\.........\com.Opt
............\.........\com.plg
............\.........\com.Uv2
............\.........\com_Opt.Bak
............\.........\com_Uv2.Bak
............\.........\delay.h
............\.........\demo.c
............\.........\demo.LST
............\.........\demo.OBJ
............\.........\ds1302.h
............\.........\key.h
............\.........\replay.h
............\.........\STARTUP.A51
............\.........\STARTUP.LST
............\.........\STARTUP.OBJ
............\........2\1602c.h
............\.........\com
............\.........\com.hex
............\.........\com.lnp
............\.........\com.M51
............\.........\com.Opt
............\.........\com.plg
............\.........\com.Uv2
............\.........\com_Opt.Bak
............\.........\com_Uv2.Bak
............\.........\delay.h
............\.........\demo.c
............\.........\demo.LST
............\.........\demo.OBJ
............\.........\ds1302.h
............\.........\key.h
............\.........\replay.h
............\.........\STARTUP.A51
............\.........\STARTUP.LST
............\.........\STARTUP.OBJ
............\多机通讯程序说明.txt
............\com
............\com - 从1
............\com - 从2
多机通讯程序
............\...\com
............\...\com.hex
............\...\com.lnp
............\...\com.M51
............\...\com.Opt
............\...\com.plg
............\...\com.Uv2
............\...\com_Opt.Bak
............\...\com_Uv2.Bak
............\...\delay.h
............\...\demo.c
............\...\demo.LST
............\...\demo.OBJ
............\...\ds1302.h
............\...\key.h
............\...\replay.h
............\...\STARTUP.A51
............\...\STARTUP.LST
............\...\STARTUP.OBJ
............\... - 从1\1602c.h
............\.........\com
............\.........\com.hex
............\.........\com.lnp
............\.........\com.M51
............\.........\com.Opt
............\.........\com.plg
............\.........\com.Uv2
............\.........\com_Opt.Bak
............\.........\com_Uv2.Bak
............\.........\delay.h
............\.........\demo.c
............\.........\demo.LST
............\.........\demo.OBJ
............\.........\ds1302.h
............\.........\key.h
............\.........\replay.h
............\.........\STARTUP.A51
............\.........\STARTUP.LST
............\.........\STARTUP.OBJ
............\........2\1602c.h
............\.........\com
............\.........\com.hex
............\.........\com.lnp
............\.........\com.M51
............\.........\com.Opt
............\.........\com.plg
............\.........\com.Uv2
............\.........\com_Opt.Bak
............\.........\com_Uv2.Bak
............\.........\delay.h
............\.........\demo.c
............\.........\demo.LST
............\.........\demo.OBJ
............\.........\ds1302.h
............\.........\key.h
............\.........\replay.h
............\.........\STARTUP.A51
............\.........\STARTUP.LST
............\.........\STARTUP.OBJ
............\多机通讯程序说明.txt
............\com
............\com - 从1
............\com - 从2
多机通讯程序