MMS-EASE Lite

MMS-EASE Lite

MMS-EASE Lite是从SISCO公司的MMS-EASE软件继承发展而来,专门针对嵌入式应用对代码进行了优化和裁减,并增加了对IEC61850特性的支持。当前世界主要电力自动化厂商都在使用MMS-EASE Lite实现IEC61850向MMS的映射工作。MMS-EASE Lite软件以ANSI C源代码的形式提供,不依赖于具体编译器和操作系统。它提供了基本的MMS协议处理框架和API接口以及IEC61850建模功能。该产品提供了Windows和Unix/Linux下的Server端和Client端的程序功能框架,基于此,可以根据需要在不同平台上进行移植和产品开发。

MMS-EASE Lite的目录结构

\\mmslite (root MMS-EASE Lite directory) 根目录

\\cmd (command files for creating binaries)生成二进制的命令文件

\\gnu (GNU makefiles for Linux, QNX, etc.)Linux,QNX等系统Makefile \\pharlap (Pharlap makefiles)pharlap系统Makefile \\win32 (Win32 project files) windows工程文件 \\VxWorks(VxWorks project files)VxWorks工程文件 \\src (source code – all .c files) 所有.c文件的源码 \\inc (include files – all .h files) 所有.h包含文件

\\mmsop_en (default mmsop_en.h file)mmsop_en.h

\%uca (stack profiles source root) 公共事业通信框架源码根目录

\\acse (ACSE source) ACSE源码 \\goose (GOOSE source)* GOOSE源码

\\leant (TP4, TP0, CLNP, ES-IS, subnet, UCA time sync source) \\sn_test (subnetwork test tools)子网测试工具 \\sn_targt (subnet server) 子网服务器端 \\sn_test (subnet client) 子网客户端 \\rs (reduced stack source)* 精简的堆栈源码 \\bin (utility executables) 公用可执行文件 \\mvl (MMS Virtual Lite)

\\src (MVL source) MVL源码

\\acse (MVL-ACSE source) MVL-ACSE源码 \\loop (loopback LLP files) 回环到LLP文件 \%usr (MVL sample user root) MVL样例根目录 \\client (MVL sample client) MVL客户端样例 \\server (MVL sample server) MVL服务器端样例 \%uca_srvr (UCA sample server) UAC服务器样例

\\iecgoose (IEC GOOSE framework sample)goose构架样例

\\scl_srvr (IEC_61850 sample server using SCL) 使用SCL的IEC61850服务样例 \%util (MVL utility root) MVL公用根目录 \\foundry (MVL foundry) MVL foundry

\\linux (contains structure alignment configuration file for Linux) \\qnx (contains structure alignment configuration file for QNX) \\win32 (Win32 makefiles)

\? (GOMSFE Rev 9 UCA model files)

\\mbufcalc (MVL buffer init support) MVL缓冲初始化支持 \\mmslog (MMS PDU decoder/analyzer)MMSPDU解码分析

\\Gsemtest (Global semaphore test code) 全局信号测试代码

\\doc (PDF documentation)相关文档说明

\\win32lib (Win 32 libraries)windows32位系统库 \\osillc (OSILLC driver source code) OSILLC驱动源码

在mmslite\\inc头文件目录下有两个相对特殊的头文件glbtypes.h和sysincs.h。

glbtypes.h:在这个头文件中SISCO使用一系列的宏定义将C语言中的数据类型重新定义了,例如:标准C中的“int”被定义为“ST_INT”。并且这个文件包含的定义适用于很多的操作系统和编译器,如MS-DOS、WINDOOWS、VxWorks等。

sysincs.h:这个头文件用于选择开发环境的编译器适合的操作系统头文件。 创建MMS-EASE Lite库

以WIN32开发环境为例在MmsLite\\cmd\\win32目录下MMS-EASE Lite提供了Microsoft Visual Studio VC6.0 环境下的工作区和工程文件,编译这些工程可以的到相应的库。

每一个工程编译时有四种设置:“Release No Logging”, “Release Logging”, “Debug No Logging”, 和 “Debug Logging” 。详细设置如下:

在Microsoft Visual Studio VC6.0环境下打开所要编译的工程。 Release No Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Release No Logging”,在c++选项卡中的调试信息的下拉菜单中选择“None”;

Release Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Release”,在c++选项卡中的调试信息的下拉菜单中选择“None”;

Debug No Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Debug No Logging”,在c++选项卡中的调试信息的下拉菜单中选择“C7 compatible”;

Debug Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Debug ”,在c++选项卡中的调试信息的下拉菜单中选择“C7 compatible”;

在MmsLite\\cmd\\win32目录下提供的工程可以分为<1>Libraries<2>Utility applications <3>Sample applications三种工程。其各自所包含的工程如下表。

Libraries asn1.dsp mem.dsp meml.dsp mlog.dsp mmsl.dsp mmsle.dsp mmslog.dsp mvl.dsp mvlu.dsp ositcpe.dsp ositcps.dsp ASN.1 encode/decode library ASN.1编码解码库 Memory allocation library - full featured version 内存分配库-完整特征 Memory allocation library - Lite version 内存分配库-Lite版本 MMS operation specific logging library MMS操作特定日志库 Main MMS encode/decode library 主MMS编码解码库 Extended MMS encode/decode library 扩展MMS编码解码库 MMS logging library MMS日志库 MVL library MVL库 MVL UCA library MVL UCA 库 TCP/IP (via RFC1006) stack library TCP/IP堆栈库 TCP/IP (via RFC1006) stack library using non-blocking sockets 使用不阻塞套接字的TCP/IP堆栈库

ositp4e.dsp ositpxe.dsp 7 Layer OSI over Ethernet library 以太网以上的7层OSI库 Library that includes TCP/IP (via RFC1006) and 7 Layer OSI over Ethernet 包含TCP/IP和以太网以上的7层OSI库 ositpxs.dsp Library that includes TCP/IP (via RFC1006) using non-blocking sockets and 7 Layer OSI over Ethernet 包含使用不阻塞套接字的TCP/IP和以太网以上的OSI库 ssec0.dsp Required library for compatibility with future enhancements. 为以后提高兼容性规定的库 slog.dsp SISCO logging library - full featured version SISCO日志库-完整版本特征 SISCO logging library - Lite version SISCO日志库-Lite版本 Memory allocation library using “pools”. 用“pools”内存分配的库 SISCO utility library SISCO公用库 slogl.dsp smem.dsp util.dsp Utility applications foundry.dsp foundry.exe utility application foundry.exe公共应用 mbufcalc.dsp mbufcalc.exe utility application (obsolete) mbufcalc.exe公共应用(过时的) iecgoose.dsp IEC GOOSE Framework sample application IEC GOOSE结构应用示例 Sample Applications cositcpe.dsp Client sample application for TCP/IP (via RFC1006) TCP/IP的客户应用实例 cositcps0.dsp Client sample application for TCP/IP using ositcps stack library 使用ositcps堆栈库的TCP/IP的客户应用示例 cositp4e.dsp Client sample application for 7 Layer OSI over Ethernet 以太网以上的7层OSI的客户应用示例 cositpxe.dsp Client sample application for TCP/IP and 7 Layer OSI over Ethernet TCP/IP和以太网以上的7层OSI的客户应用示例 cositpxs0.dsp Client sample application for TCP/IP and 7 Layer OSI over Ethernet using ositcps stack library 使用ositcps堆栈库的TCP/IP和以太网以上的7层OSI的客户应用示例 scl_srvr.dsp IEC-61850 Server sample application using SCL 使用SCL的IEC-61850的服务器应用示例 sositcpe.dsp Server sample application for TCP/IP (via RFC1006) TCP/IP的服务器应用实例 sositcps0.dsp Server sample application for TCP/IP using ositcps stack library

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4