FREEMODBUS_FOR_stm32

所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:570KB
下载次数:103
上传日期:2014-02-22 14:10:32
上 传 者Pupil2013
说明:   为什么要移植Freemodbus,这个问题需要从两个方面来回答。第一,modbus是一个非常好的应用层协议,它很简洁也相对完善。对于还没有接触过modbus的朋友来说,我非常不建议直接移植freemodbus,应该耐心的从modbus文档入手,并充分把握身边的所有资源,例如PLC的中modbus部分。第二,其实嵌入式系统的通信协议可以自己制定,但是通过实践发现自己定制的协议漏洞百出,尤其是扩展极为困难。我始终认为借鉴他人的经验是很好的途径。借鉴他人成熟的代码,可以减少调试的时间,实现的功能也多了不少。 个人观点,仅供参考。 freemodbus小提示 freemodbus只能使用从机功能。freemodbus更适合嵌入式系统,虽然例子中也有WIN32的例子,如果想要做PC机程序并实现主机功能,推荐使用另一个modbus库——NMODBUS,使用C#开发。同样WINFORM也可以通过自己编写串口代码实现modbus功能,但是这会花费很长的时间,可能是一周也可能是一个月,如果使用现成的代码库,那么开发时间可能只有10分钟。
(Why transplant Freemodbus, this issue needs to be answered in two ways . First , modbus is a very good application layer protocol , it is very simple and relatively perfect. For no contact with modbus friends, I do not recommend direct transplant freemodbus, the patient should start from modbus documents and take full advantage of all the resources around you , for example, part of the modbus PLC. Second, the fact communication protocol embedded systems can develop their own , but through practice found loopholes own custom protocols , especially the expansion is extremely difficult. I have always believed that draw on the experience of others is a good way . Learn from others mature code can reduce debugging time , functions are also a lot more . Personal point of view , for reference only . freemodbus Tips freemodbus only from the machine function . freemodbus more suitable for embedded systems, although there are examples of WIN32 example , if you want )

文件列表:
CMSIS (0, 2012-08-21)
CMSIS\core_cm3.c (17273, 2010-10-18)
CMSIS\core_cm3.h (85714, 2010-10-18)
CMSIS\stm32f10x.h (629762, 2010-10-18)
CMSIS\system_stm32f10x.c (32867, 2012-06-14)
CMSIS\system_stm32f10x.h (2068, 2010-10-18)
Debug (0, 2012-08-21)
Debug\Exe (0, 2012-08-21)
Debug\Exe\Test FreeModbus.out (223560, 2012-08-21)
Debug\List (0, 2012-08-21)
Debug\Obj (0, 2012-08-21)
Debug\Obj\core_cm3.o (19024, 2012-08-21)
Debug\Obj\main.o (35832, 2012-08-21)
Debug\Obj\mb.o (28604, 2012-08-21)
Debug\Obj\mbcrc.o (6600, 2012-08-21)
Debug\Obj\mbfunccoils.o (12056, 2012-08-21)
Debug\Obj\mbfuncdiag.o (2208, 2012-08-21)
Debug\Obj\mbfuncdisc.o (6932, 2012-08-21)
Debug\Obj\mbfuncholding.o (14404, 2012-08-21)
Debug\Obj\mbfuncinput.o (6716, 2012-08-21)
Debug\Obj\mbfuncother.o (11184, 2012-08-21)
Debug\Obj\mbrtu.o (24852, 2012-08-21)
Debug\Obj\mbutils.o (10648, 2012-08-21)
Debug\Obj\misc.o (12352, 2012-08-21)
Debug\Obj\portevent.o (8816, 2012-08-21)
Debug\Obj\portserial.o (17308, 2012-08-21)
Debug\Obj\porttimer.o (13000, 2012-08-21)
Debug\Obj\startup_stm32f10x_hd.o (45532, 2012-06-18)
Debug\Obj\startup_stm32f10x_md.o (34140, 2012-08-21)
Debug\Obj\stm32f10x_gpio.o (36008, 2012-08-21)
Debug\Obj\stm32f10x_it.o (15104, 2012-08-21)
Debug\Obj\stm32f10x_rcc.o (57544, 2012-08-21)
Debug\Obj\stm32f10x_tim.o (159536, 2012-08-21)
Debug\Obj\stm32f10x_usart.o (53688, 2012-08-21)
Debug\Obj\system_stm32f10x.o (12852, 2012-08-21)
FreeModbus (0, 2012-08-21)
FreeModbus\modbus (0, 2012-08-21)
FreeModbus\modbus\ascii (0, 2012-08-21)
FreeModbus\modbus\ascii\mbascii.c (15715, 2010-06-06)
FreeModbus\modbus\ascii\mbascii.h (2457, 2006-12-08)
... ...

近期下载者

相关文件


收藏者