简体   繁体   English

如何为EtherCAT主站实现字符设备的用户空间实现?

[英]How do I implement a userspace implementation of the character device for EtherCAT master?

I am working on a personal project and want to try to come up with an implementation of the character device in the userspace instead of the kernelspace. 我正在一个个人项目上,想尝试在用户空间而不是内核空间中实现字符设备的实现。 I am using this github project https://github.com/ningfei/ethercat . 我正在使用这个github项目https://github.com/ningfei/ethercat I know it is something which is really exhaustive as I would need to replace all the linux kernel system calls by a mock representation. 我知道这确实是详尽无遗的,因为我需要用模拟表示替换所有的Linux内核系统调用。 Can someone give me an idea on how to do so? 有人可以给我一个想法吗?

The image below shows the ethercat architecture. 下图显示了ethercat架构。 Ethercat architecture Ethercat架构

So with other words you want all parts of EtherLAB master run in userspace, then try http://fh-soft.de/src/ethercat-userspace.html . 因此,换句话说,您希望EtherLAB master的所有部分都在用户空间中运行,然后尝试http://fh-soft.de/src/ethercat-userspace.html

Bear in mind that a pure userspace version of EtherLAB master means higher latency and lower cycle frequency. 请记住,纯用户空间版本的EtherLAB主站意味着更高的延迟和更低的周期频率。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM