-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LAN9252 SlaveInfo not found #344
Comments
By connecting the LAN9252 output to your PC you have broken the EtherCAT ring. All packets send are no longer received back by the master. Disconnect the out port and capture wireshark on your beaglebone directly. |
Hello ArturKetels, For a better understanding my connections are similar to the ones shown in the following video: https://www.youtube.com/watch?v=jGTZ8ueQfGg. The only difference is that I'm using a beaglebone black not a raspberry pi 3. There isn't a closed ring, but it has to work. 15:31:21.536039 Out 01:01:01:01:01:01 (oui Unknown) ethertype Unknown (0x88a4), length 31: Thank you for your help. |
It is a bit hard to read the tcpdump output, but it looks like there are no packets returned to the beaglebone. Either there is a filtering rule active that kills all incoming EhterCAT packets or the slave hardware is not functioning properly. Things you can test: |
Hello ArthurKetels, SOEM (Simple Open EtherCAT Master) Slave:1 Concerning the beaglebone, even trying to connect it to OUT port the result doesn't change. Thank you very much. |
Look at the linux kernel version you use. There has been a bug in the network stack last year that prevented outputting the correct frames. It can also be there are some firewall rules active that prevent frames returning to SOEM. |
Hello ArthurKetels, Regarding the the kernel version is the following: Concerning the firewall, it looks like that there is no firewalld, nor ufw, installed. The iptables status is the following: debian@arm:/sbin$ sudo /sbin/iptables -L Chain FORWARD (policy ACCEPT) Chain OUTPUT (policy ACCEPT) In the meantime I'll try to ask to Robert Nelson's repository if he's got some suggestions. |
Hello ArthurKetels, |
Hello ArthurKetels, Best Regards and thank you. |
Hi @Davidinos can you guide me how to send and receive data from arduino using SOEM . |
Hi, I can suggest you this one. However I didn't implemented the ethercat master nor with arduino neither with Beaglebone black as explained in the thread. |
ok thanyou for your reply |
Goodmorning to all,
I write you since I'm trying to use the SOEM library on my Beaglebone black board. As slave device I use an Arduino Uno with an ethercat shield produced by https://www.bausano.net/it/hardware/arduino-ethercat/arduino-easycat.html which use the LAN9252 Microchip's IC.
As kernel I used the one with xenomai installed (available here: https://github.com/RobertCNelson/ti-linux-kernel-dev/tree/ti-linux-xenomai-4.14.y), I set a static IP on eth0 as 192.168.2.130 and installed the SOEM library as explained in README file.
The answer to command ifconfig is:
eth0: flags=-28349<UP,BROADCAST,RUNNING,PROMISC,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.2.130 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::eaeb:11ff:fe27:b92b prefixlen 64 scopeid 0x20
ether e8:eb:11:27:b9:2b txqueuelen 1000 (Ethernet)
RX packets 443 bytes 64423 (62.9 KiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 1043 bytes 367526 (358.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 45
When I run the salveInfo application, I get the following answer:
SOEM (Simple Open EtherCAT Master)
Slaveinfo
Starting slaveinfo
[ 1695.543215] device eth0 entered promiscuous mode
ec_init on eth0 succeeded.
No slaves found!
End slaveinfo, close socket
End program
For completeness this is the answer of Arduino sketch when I power it on:
EasyCAT - Generic EtherCAT slave
CUSTOM MODE
1 Byte Out
8 Byte In
Sync = ASYNC
Detected chip 9252 Rev 1
initialized
I did a wireshark capture connecting the LAN9252's ethernet port OUT to my PC and I get the
following:
Capture.zip
Have you got any suggestion of the test to do?
Thank you
The text was updated successfully, but these errors were encountered: