sittner / linuxcnc-ethercat

LinuxCNC EtherCAT HAL driver
GNU General Public License v2.0
200 stars 137 forks source link

igh ethercat driver with beaglebone #74

Open lichaowuwei opened 5 years ago

lichaowuwei commented 5 years ago

i am trying to write a w5500driver with machinekit on beaglebone for ethercat, but in kernel 4.9, the slave can't be found. in kerle 3.8 igh could find the slaves using generic driver. I saw you have build one encx24j600 with machinekit, which kernel do you use? can you help me to deal with the device tree and driver? it took me too much time, Thanks Very very Much!

sirop commented 5 years ago

Do you try to build an EtherCAT slave or an EtherCAT master on your beaglebone?

lichaowuwei commented 5 years ago

ethercat master on beaglebone i found that, 4.9 and 4.14 can't find the slaves, both soem and igh. 3.8 kernel is ok

------------------ 原始邮件 ------------------ 发件人: "Boris Skegin"notifications@github.com; 发送时间: 2019年7月10日(星期三) 下午4:55 收件人: "sittner/linuxcnc-ethercat"linuxcnc-ethercat@noreply.github.com; 抄送: "李超"lichaowuwei@qq.com;"Author"author@noreply.github.com; 主题: Re: [sittner/linuxcnc-ethercat] igh ethercat driver with beaglebone(#74)

Do you try to build an EtherCAT slave or an EtherCAT master on your beaglebone?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sirop commented 5 years ago

Try to build your master with https://github.com/ribalda/ethercat/commits/master which has patches for kernels 4.x and higher.

lichaowuwei commented 4 years ago

Try to build your master with https://github.com/ribalda/ethercat/commits/master which has patches for kernels 4.x and higher.

can't work either... the master code work on kernel 4.x x86 debian, but not beaglebone.

sirop commented 4 years ago

Guess you read http://www.machinekit.io/docs/getting-started/machinekit-images-for-bbb/ ?

MouseSun846 commented 4 years ago

Hello everyone! I use linuxcnc to drive ighethercat, my problem, from the slaves hung 6 servo motors, every time the power up to op mode is very slowly, what is the reason?

sirop commented 4 years ago

Rather try etherlab mailing list and provide more details.

MouseSun846 commented 4 years ago

I don't know if my XML file is set incorrectly, which makes synchronization too slow.

MouseSun846 commented 4 years ago

This is my xml file!

deltaPos.zip

sirop commented 4 years ago

Hi.

I did not see any obvious errors at once. I would advise you to configer the slave by ethercat download/upload commands instead of raw SDO.

Slowliness only is a very vague description of malfunction. Could you add some relevant (kernel) logs?

MouseSun846 commented 4 years ago

Thank you very much for your answer.Command-based information is different from XML configuration。I'm confused. IMG_20191006_194627 IMG_20191006_194946 IMG_20191006_195040

MouseSun846 commented 4 years ago

I don't know where the problem is.Do I need to slove problem from slaves?

sirop commented 4 years ago

I do not know either.

  1. So begin with ethercat download/upload instead of raw SDO...
MouseSun846 commented 4 years ago

Only one axis can read and write normally, and the rest are read and write failures.

MouseSun846 commented 4 years ago

Another problem is that you can't get into op mode.Error reporting in PreOp mode.

MouseSun846 commented 4 years ago

As shown in the first picture.

curran209 commented 3 years ago

我正在尝试在 beaglebone 上为 ethercat 编写带有 machinekit 的 w5500driver,但是在内核 4.9 中,找不到从属设备。在 kerle 3.8 高可以找到使用通用驱动程序的奴隶。 我看到你用machinekit构建了一个encx24j600,你用的是哪个内核? 你能帮我处理设备树和驱动程序吗? 花了我太多时间,非常感谢!

Hello, can I ask you some questions? I can't install the driver now. It was this error after downloading the driver. configure.mk:8: halcompile/comp executable not found or set. Stop. make: [config.mk] Error 2 Have you ever encountered it?

curran209 commented 3 years ago

如第一张图所示。 我可以请教您一些问题嘛?

lichaowuwei commented 3 years ago

我正在尝试在 beaglebone 上为 ethercat 编写带有 machinekit 的 w5500driver,但是在内核 4.9 中,找不到从属设备。在 kerle 3.8 高可以找到使用通用驱动程序的奴隶。 我看到你用machinekit构建了一个encx24j600,你用的是哪个内核? 你能帮我处理设备树和驱动程序吗? 花了我太多时间,非常感谢!

Hello, can I ask you some questions? I can't install the driver now. It was this error after downloading the driver. configure.mk:8: halcompile/comp executable not found or set. Stop. make: [config.mk] Error 2 Have you ever encountered it?

in the end, i didnot use the driver of w5500, I use the beaglebone's own nic driver. i modify ti and work pretty good!

good luck to you