A red PC card with a black netX SoC is clipped into an IPC. The picture has a colorful fade and an icon of a desktop PC display.
增强通讯技术水平
主页
技术
netX 技术: 概述

关于赫优讯的设备驱动程序

基于 netX 通信控制器的产品,如赫优讯的 cifX PC 板卡和嵌入式模块,需要设备驱动程序以便在不同的操作系统上充分运行。作为工业通信的一站式服务,赫优讯为所有常见的工业操作系统提供此类驱动程序,例如:

  • Windows
  • Linux
  • VxWorks
  • INtime
  • IntervalZero
  • QNX
  • WinAC

所有赫优讯驱动程序均提供标准化的用户界面(CIFX-API),并基于一个可用于独立设备驱动开发的 C 语言工具包。这些驱动程序负责管理通信组件,包括加载固件和配置文件。用户界面包含所有必要功能,用于初始化、参数化、交换 I/O 数据和获取状态信息。

根据不同的操作系统,用户界面被集成在 DLL 或库中。驱动程序尽可能支持现有的总线连接,如 PCI、PCIe 和双端口内存(DPM)连接。

  • 标准应用接口
  • 标准代码库(C 工具包)
  • 与现场总线或工业以太网系统无关
  • 支持的设备数量仅受操作系统的限制

这减少了开发工作量和上市时间,从而降低了使用 netX 通信控制器及其基础产品(如 cifX PC 板卡和嵌入式模块)的用户的风险。

The logos of the OS Windows, Linux, VxWorks, INtime, IntervalZero, QNX, WinAC on a angular shape in light grey. Below that is aslightly darker angular shape with icons for PC cards, embedded modules and network controller in it. The background is colorful in red and blue.

Linux

Linux 设备驱动程序分为免费的内核模块和收费的用户空间库。内核模块基于通用 uio 模块,负责检测 cifX 硬件并准备映射设备内存(DPM)到用户空间。

用户空间驱动程序 libcifX 是一个提供全部设备特定功能的用户模式驱动。用户空间库提供与 Windows 版 cifX 驱动程序相同的 API。

A diagram schematically showing the function of the Linux device driver for cifX PC cards, embedded modules and netX network controller.

QNX

QNX 的设备驱动程序以静态库或共享对象形式提供,基于赫优讯的 C-toolkit 开发。

任何需要访问 cifX 设备的应用程序都可以使用此驱动程序库提供的特定设备功能。

A diagram schematically showing the function of the QNX device driver for cifX PC cards, embedded modules and netX network controller.

VxWorks

VxWorks 的 cifX 设备驱动程序提供对基于赫优讯 netX 的硬件(如 CIFX 50、comX)的访问,具有与 Windows 版 cifX 设备驱动程序相同的功能 API,并提供对各种设备的透明访问。

它是基于 cifX 工具包构建的库,任何需要访问 cifX 设备的应用程序都可以使用此驱动程序库提供的特定设备功能。

A diagram schematically showing the function of the VxWorks device driver for cifX PC cards, embedded modules and netX network controller.

Windows

Windows 的 cifX 设备驱动程序是一个在操作系统的 Ring 0 级运行的内核模式驱动,支持 Windows 的即插即用机制。支持 PCI 和 PCIe 组件,可使用任意数量的组件进行任意组合。

Windows Embedded Compact 的 cifX 设备驱动程序是一个流驱动,运行在操作系统的内核中。驱动程序功能通过驱动 API DLL(cifXCEDLL)提供访问,

该 DLL 涵盖用于与驱动程序通信的设备 IO 控制调用,并提供与 Windows 桌面操作系统相同的 CIFX API。

驱动程序的功能接口与现场总线系统无关,包括识别已安装硬件、读取系统信息、初始化和参数化现场总线系统、交换循环与非循环的数据、读取状态信息,以及时间监控和看门狗功能。

The logo of Windwos in dark blue on top. Under it is the logo of Windwos Embedded Compact in light blue.

INtime

The cifX Device Driver for INtime offers access to the Hilscher netX based hardware (e.g. CIFX 50) with the same functional API as the cifX device driver for Windows. It is also possible to use the cifX INtime driver from normal Windows environment or from inside the INtime real-time kernel.

The cifX INtime driver runs inside the Real-Time extension in a separate address space. A special version of the cifX Application Interface DLL (cifX32DLL.dll) is provided with the INtime driver to allow Windows applications the accesses to the INtime driver from the Windows User Space.

A diagram schematically showing the function of the INtime device driver for cifX PC cards, embedded modules and netX network controller.

从 Windows 访问 cifX INtime 驱动程序(非实时)

A diagram schematically showing the function of the INtime device driver for cifX PC cards, embedded modules and netX network controller.

从 INtime 访问 cifX INtime 驱动程序(实时)

IntervalZero

IntervalZero RTX® 的 cifX 设备驱动程序是一个围绕 cifX 工具包构建的动态库。任何需要访问 cifX 设备的应用程序都可以使用此驱动程序库提供的特定设备功能。

该驱动程序提供对基于赫优讯 netX 的硬件的访问,功能 API 与 Windows® 的 cifX 设备驱动程序相同,提供对不同设备的透明访问。
在 RTX 版本 2012 之前的用户进程通过使用 LoadLibrary() 和 GetProcAddress() 调用(显式库加载)来访问 cifX 驱动程序功能。由于 RTX64 提供了自己的图像加载器,此驱动程序库也可以在此隐式加载。

A diagram schematically showing the function of the IntervalZero device driver for cifX PC cards, embedded modules and netX network controller.

WinAC

WinAC 的 cifX 设备驱动程序是西门子 SIMATIC WinAC RTX 2010 SP1 系统的一个扩展 DLL(CCX),使西门子 SIMATIC WinAC 系统能够在 SPS 周期内访问基于赫优讯 cifX 的通信硬件。

通过 STEP7 / TIA 的 FBs / Cs 访问驱动功能。在程序周期内,至少需要两个功能来交换 I/O 数据,这些 I/O 数据被映射到 STEP7 程序的数据块中(一个用于输入数据,一个用于输出数据)。

自行开发驱动程序的 C 工具包

cifX 工具包包括 C 源代码和头文件,允许对赫优讯定义的双端口内存(DPM)进行抽象访问,适用于 cifX、comX 和 netX 设备。包括所有用户界面功能以及使用赫优讯 DPM 所需的通用访问功能。

  • ANSI-C 源代码
  • 操作系统依赖的功能在独立的 C 模块中
  • 支持小端/大端
  • 源代码中集成了跟踪输出

因此,C 工具包及其基础上的驱动程序代码被设计为可以同时使用无限数量的通信组件。然而,必须考虑到每个操作系统的具体特点。

A technical graphic divided in two major sections. The left section is titled "Implementation" and shows user functions, OS specific functions and interrupt handling. The right section is titled cifX/netX C-toolkit and contains buttons for toolkit API, cifX API, device handling, API implementation and cifX/netX hardware access functions. There are several red arrows pointing to different parts of the graphic.

相关链接

cifX PC 板卡是将基于 PC 的设备集成到自动化环境中的最简单、最快捷的方法。基于我们的 netX 通讯控件,您可以使用所有协议--适用于任何应用的任何外形尺寸。

赫优讯的嵌入式模块是将现场总线或实时以太网接口集成到紧凑型自动化设备中的理想解决方案。它们允许将驱动器或控件等现场设备快速、轻松地集成到自动化系统中。

NETX多协议处理器为您的机器和设备带来工业通讯。无论是主应用还是从应用,传统现场总线,快速工业以太网或 IIoT 数据流量 - 借助高度集成的NETX SoC,您可以信赖来自市场领导者的解决方案。

A photo of the male and female customer support phone operator with different internationality

Customer Center / Sales: Hilscher Systemautomation (Shanghai) Co. Ltd.

您有问题?我们有答案!

Newsletter Form

Fieldset

Stay Up to Date

In our newsletter we inform you regularly about our latest products, solutions as well as participation in events such as exhibitions and conferences. In this way, we offer exciting insights into the world of Hilscher and automation technology. Sign up now!

Fieldset