打印

使用新唐M0518开发的仪表。

[复制链接]
395|13
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
東南博士|  楼主 | 2017-3-29 13:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
東南博士|  楼主 | 2017-3-29 13:44 | 只看该作者
使用新唐M0518开发的仪表。

使用特权

评论回复
板凳
東南博士|  楼主 | 2017-3-29 13:44 | 只看该作者
感觉 free modbus 还是非常的好用的。一旦移植好以后。还是非常稳定的!

使用特权

评论回复
地板
god9987| | 2017-3-29 14:26 | 只看该作者
是使用的freemodbus吗?

这个好弄吗?

使用特权

评论回复
5
几时再见| | 2017-3-29 14:32 | 只看该作者
一般仪表有专门的协议的,尤其是抄表方面,ti有专门的抄表协议

使用特权

评论回复
6
god9987| | 2017-3-29 14:33 | 只看该作者
这个 不是专门的超标协议。

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

使用特权

评论回复
7
stm32lover| | 2017-3-29 14:34 | 只看该作者
希望 楼主可以开源一下!

或者说说移植的重点!

使用特权

评论回复
8
stm32lover| | 2017-3-29 14:35 | 只看该作者
另外 主站 可以这样做吗?

使用特权

评论回复
9
罗勋义| | 2017-3-29 15:02 | 只看该作者
free modbus 是485通讯的协议吧,抄表也用这个协议吗?

使用特权

评论回复
10
nobleliom| | 2017-3-30 21:07 | 只看该作者
東南博士 发表于 2017-3-29 13:44
感觉 free modbus 还是非常的好用的。一旦移植好以后。还是非常稳定的!

这个占用的RAM有多大呢?对处理器有什么要求呢?

使用特权

评论回复
11
墙上的咖啡| | 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.

使用特权

评论回复
12
大白农| | 2017-3-31 08:11 | 只看该作者
罗勋义 发表于 2017-3-29 15:02
free modbus 是485通讯的协议吧,抄表也用这个协议吗?

这个不是485的通讯协议,485是标准的modbus,
free modbus也可以用在其他方面了

使用特权

评论回复
13
hello牟| | 2017-3-31 09:55 | 只看该作者
god9987 发表于 2017-3-29 14:33
这个 不是专门的超标协议。

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

是了,现在国际上有标准的抄表协议的。

使用特权

评论回复
14
東南博士|  楼主 | 2017-3-31 15:27 | 只看该作者
标准的抄表协议

这个 好实现吗?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

367

主题

6048

帖子

34

粉丝