实现FreeModbus协议所需要的软/硬件需求
来源:互联网 发布:数据库decode 编辑:程序博客网 时间:2024/06/06 09:48
实现FreeModbus协议所需要的软/硬件需求
The hardware requirements are minimal - Any reasonable microcontroller with a serial interface, at least some RAM to hold the modbus frames should suffice.
- A UART which support and interrupts and has at least an receiver buffer full and transmit buffer empty interrupt.
- A timer capable of creating the t3.5 character timeout timer for Modbus RTU.
实现Modbus协议对硬件的需求是极其少的-任何一个具有串行接口和一定量的能够处理modbus数据帧的RAM就足够了。
For the software part a simple event queue is necessary. The STR71X/FreeRTOS port uses FreeRTOS queues for this purpose to reduce the time spent in the Modbus task. Smaller microcontrollers will most likely come without an operating system. In that case a simple implementation with a global variable is possible (The Atmel AVR port uses such an implementation).
对于软件部分而言,实现Modbus仅仅需要一个简单的事件队列。在STR71X/FreeRTOS 的移植中,使用了FreeRTOS的队列来实现了该事件队列以降低处理Modbus任务时的时间消耗。较小的微控制器往往不使用实时内核,在这种情况下,可以通过全局变量的使用来实现这个事件队列(Atmel的AVR控制器的移植中使用了该方法)。
The actual memory requirements depend on the used modules. The first table shows the required memory with all supported functions compiled in. Values for the ARM where obtained using the GNUARM compiler collection 3.4.4 with -O1 in ARM mode. The AVR values where obtained using the WinAVR compiler collection 3.4.5 with -Os.
实际的内存需求量决定于使用的模块的多少。第一个表列出了所有功能模块所需要的内存量。对应ARM来讲,内存量的获取是通过使用GNUARM编译器在使用-O1命令下统计得来的。AVR所需要得内存量是通过WINAVR编译器在使用-Os命令下统计得来得。
ModuleARM CodeARM RAM (static)AVR CodeAVR RAM (static)Modbus RTU (Required)1132Byte272Byte1456Byte266ByteModbus ASCII (Optional)1612Byte28Byte1222Byte16ByteModbus Functions [1]1180Byte34Byte1602Byte34ByteModbus Core (Required)924Byte180Byte608Byte75BytePorting Layer (Required [2])1756Byte16Byte704Byte7ByteTotals7304Byte530Byte5592Byte398Byte[1]: Actual size depends on the available Modbus functions. They are configurable in the header file mbconfig.h.
[2]: Depends on the hardware.
- 实现FreeModbus协议所需要的软/硬件需求
- Android:::PC套件实现所需要的原理和协议
- 无线覆盖 的实现方案及硬件需求
- 实现一个需求所要完成的工作
- 服装制造行业需求分析 -- 找准分析所需要的人
- 应用程序架构本质,第 1 部分: 关于需求建模您所需要了解的所有内容
- 应用程序架构本质,第 1 部分: 关于需求建模您所需要了解的所有内容
- 实现密码需要同时包含数字和字母的需求
- 三所(第三研究所认证中心)使用Defensics测试硬件设备IPv6协议的可靠性
- 开源协议FreeMODBUS应用(一)----Modbus Poll软件对Modbus协议的模拟仿真
- STM32+W5500+Freemodbus Modbus-TCP协议功能实现,工程文件下载
- CAN协议中CRC编码的硬件实现
- 项目的实现中所需要注意的几点
- freemodbus
- 谁能帮我实现我所需要的算法?
- 应用程序架构本质,第 1 部分: 关于需求建模您所需要了解的所有内容(转)
- [FreeModbus源码分析] 1.协议简介
- Modbus协议简介与FreeMODBUS移植
- 立体感的柱状图
- GLSL教程 OpenGL Setup for GLSL 创建着色器
- 简单的分页代码!!
- jxl 从excel导入数据到数据库中;java中jdbc连接数据库
- Android SDK2.3 更新指南
- 实现FreeModbus协议所需要的软/硬件需求
- 无法解析的外部符号的 3 种可能
- Python中的tuple
- 界面设计原则
- android中ImageView制作台标
- Windows Phone 7 开发 31 日谈——第25日:外部API
- 高手教教
- 并行计算
- 模块-modbus模块