文件名称:FREEMODBUS_FOR_stm32

  • 所属分类:
  • 其他嵌入式/单片机内容
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2014-02-22
  • 文件大小:
  • 570kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • zhan****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

为什么要移植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

.....\core_cm3.c

.....\core_cm3.h

.....\stm32f10x.h

.....\system_stm32f10x.c

.....\system_stm32f10x.h

Debug

.....\Exe

.....\...\Test FreeModbus.out

.....\List

.....\Obj

.....\...\core_cm3.o

.....\...\main.o

.....\...\mb.o

.....\...\mbcrc.o

.....\...\mbfunccoils.o

.....\...\mbfuncdiag.o

.....\...\mbfuncdisc.o

.....\...\mbfuncholding.o

.....\...\mbfuncinput.o

.....\...\mbfuncother.o

.....\...\mbrtu.o

.....\...\mbutils.o

.....\...\misc.o

.....\...\portevent.o

.....\...\portserial.o

.....\...\porttimer.o

.....\...\startup_stm32f10x_hd.o

.....\...\startup_stm32f10x_md.o

.....\...\stm32f10x_gpio.o

.....\...\stm32f10x_it.o

.....\...\stm32f10x_rcc.o

.....\...\stm32f10x_tim.o

.....\...\stm32f10x_usart.o

.....\...\system_stm32f10x.o

FreeModbus

..........\modbus

..........\......\ascii

..........\......\.....\mbascii.c

..........\......\.....\mbascii.h

..........\......\functions

..........\......\.........\mbfunccoils.c

..........\......\.........\mbfuncdiag.c

..........\......\.........\mbfuncdisc.c

..........\......\.........\mbfuncholding.c

..........\......\.........\mbfuncinput.c

..........\......\.........\mbfuncother.c

..........\......\.........\mbutils.c

..........\......\include

..........\......\.......\mb.h

..........\......\.......\mbconfig.h

..........\......\.......\mbframe.h

..........\......\.......\mbfunc.h

..........\......\.......\mbport.h

..........\......\.......\mbproto.h

..........\......\.......\mbutils.h

..........\......\mb.c

..........\......\rtu

..........\......\...\mbcrc.c

..........\......\...\mbcrc.h

..........\......\...\mbrtu.c

..........\......\...\mbrtu.h

..........\......\tcp

..........\......\...\mbtcp.c

..........\......\...\mbtcp.h

..........\port

..........\....\port.h

..........\....\portevent.c

..........\....\portserial.c

..........\....\portserial.c.bak

..........\....\porttimer.c

..........\....\porttimer.c.bak

Linker

......\stm32f10x_flash.icf

......\stm32f10x_flash_extsram.icf

......\stm32f10x_nor.icf

......\stm32f10x_ram.icf

settings

........\Test FreeModbus.cspy.bat

........\Test FreeModbus.dbgdt

........\Test FreeModbus.dni

........\Test FreeModbus.wsdt

........\Test FreeModbus_Debug.jlink

StartUp

.......\startup_stm32f10x_cl.s

.......\startup_stm32f10x_hd.s

.......\startup_stm32f10x_hd_vl.s

.......\startup_stm32f10x_ld.s

.......\startup_stm32f10x_ld_vl.s

.......\startup_stm32f10x_md.s

.......\startup_stm32f10x_md_vl.s

.......\startup_stm32f10x_xl.s

StdPeriph_Driver

................\inc

................\...\misc.h

................\...\stm32f10x_adc.h

................\...\stm32f10x_bkp.h

................\...\stm32f10x_can.h

................\...\stm32f10x_cec.h

................\...\stm32f10x_crc.h

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org