使用新唐M0518开发的仪表。

[复制链接]
1043|13
 楼主| 東南博士 发表于 2017-3-29 13:43 | 显示全部楼层 |阅读模式
使用新唐M0518开发的仪表。
 楼主| 東南博士 发表于 2017-3-29 13:44 | 显示全部楼层
使用新唐M0518开发的仪表。
 楼主| 東南博士 发表于 2017-3-29 13:44 | 显示全部楼层
感觉 free modbus 还是非常的好用的。一旦移植好以后。还是非常稳定的!
god9987 发表于 2017-3-29 14:26 | 显示全部楼层
是使用的freemodbus吗?

这个好弄吗?
几时再见 发表于 2017-3-29 14:32 | 显示全部楼层
一般仪表有专门的协议的,尤其是抄表方面,ti有专门的抄表协议
god9987 发表于 2017-3-29 14:33 | 显示全部楼层
这个 不是专门的超标协议。

应该就是自己开发的 随机定义的 并不是遵循 行业标准的。
stm32lover 发表于 2017-3-29 14:34 | 显示全部楼层
希望 楼主可以开源一下!

或者说说移植的重点!
stm32lover 发表于 2017-3-29 14:35 | 显示全部楼层
另外 主站 可以这样做吗?
罗勋义 发表于 2017-3-29 15:02 | 显示全部楼层
free modbus 是485通讯的协议吧,抄表也用这个协议吗?
nobleliom 发表于 2017-3-30 21:07 | 显示全部楼层
東南博士 发表于 2017-3-29 13:44
感觉 free modbus 还是非常的好用的。一旦移植好以后。还是非常稳定的!

这个占用的RAM有多大呢?对处理器有什么要求呢?
墙上的咖啡 发表于 2017-3-30 21:18 | 显示全部楼层
god9987 发表于 2017-3-29 14:26
是使用的freemodbus吗?

这个好弄吗?

FreeMODBUS is a free implementation of the popular Modbus protocol specially targeted for embedded systems. Modbus is a popular network protocol in the industrial manufacturing environment. A Modbus communication stack requires two layers. The Modbus Application Protocol which defines the data model and functions and a Network layer. In its current version FreeMODBUS provides an implementation of the Modbus Application Protocol v1.1a and supports RTU/ASCII transmission modes defined in the Modbus over serial line specification 1.0. Since version 0.7 FreeModbus also supports Modbus TCP defined in Modbus Messaging on TCP/IP Implementation Guide v1.0a. It is licensed under the BSD[1] which permits its usage in commercial environments. The following Modbus functions are currently supported:
Read Input Register (0x04)
Read Holding Registers (0x03)
Write Single Register (0x06)
Write Multiple Registers (0x10)
Read/Write Multiple Registers (0x17)
Read Coils (0x01)
Write Single Coil (0x05)
Write Multiple Coils (0x0F)
Read Discrete Inputs (0x02)
Report Slave ID (0x11)
The implementation is based upon the most recent standards and should be fully standard compliant. Receiving and transmitting of Modbus RTU/ASCII frames is implemented as a state machines which is driven by callbacks from the hardware abstraction layer. This makes porting to new platforms easy. If a frame is complete it is passed to the Modbus Application Layer where its content is inspected. Hooks are available in the Application Layer to add new Modbus functions.
If Modbus TCP is used the porting layer must send an event to the protocol stack if a new frame is ready for processing. The protocol stack then calls a function which returns the received Modbus TCP frame and processes it. If valid a response is created and the porting layer is supplied with the Modbus response. It should then send the response back to the client.
大白农 发表于 2017-3-31 08:11 | 显示全部楼层
罗勋义 发表于 2017-3-29 15:02
free modbus 是485通讯的协议吧,抄表也用这个协议吗?

这个不是485的通讯协议,485是标准的modbus,
free modbus也可以用在其他方面了
hello牟 发表于 2017-3-31 09:55 | 显示全部楼层
god9987 发表于 2017-3-29 14:33
这个 不是专门的超标协议。

应该就是自己开发的 随机定义的 并不是遵循 行业标准的。 ...

是了,现在国际上有标准的抄表协议的。
 楼主| 東南博士 发表于 2017-3-31 15:27 | 显示全部楼层
标准的抄表协议

这个 好实现吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

385

主题

6103

帖子

35

粉丝
快速回复 在线客服 返回列表 返回顶部