Using POSIX realtime

More
1 year 5 months ago #327586 by Roger S
Replied by Roger S on topic Using POSIX realtime
I think the installation is fine. The system reports POSIX realtime, and the pins for testing are accessible:

Owner Type Dir Value Name
4 u32 OUT 0x00000001 lcec.conf.master-count
4 u32 OUT 0x00000004 lcec.conf.slave-count

When I now call EtherCAT Master, the system reports:

Master0
Phase: Waiting for device(s)...
Active: no
Slaves: 0
Ethernet devices:
Main: 80:ee:73:fd:0f:8b (waiting...)
Link: DOWN

The network adapter is correctly entered in Ethercat.conf:

MASTER0_DEVICE="80:ee:73:fd:0f:8b"
DEVICE_MODULES="generic"

The permissions are also correct:
'KERNEL=="EtherCAT[0-9]", MODE="0777"'

However, I can no longer access the EK1100. The EK is connected to the network and shows no errors. As mentioned, everything worked fine with the same components before the reinstallation.
 

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #327588 by Hakan
Replied by Hakan on topic Using POSIX realtime
Looks like your network adapter is not upped correctly. The master can't access ethernet.
Check "ip a", it should say UP for the adapter but I guess it won't.
Follow one of the standard debian guides to bring it up, will involve the /etc/network/interfaces file.
Can be a permission problem, check "ls  -l /dev/EtherCAT0" should say crwxrwxrwx
Try with "sudo service ethercat restart"
Also check "sudo dmesg" the last say 50 lines for anything that can help.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #327600 by Roger S
Replied by Roger S on topic Using POSIX realtime
The following results:
- ip a returns the result that the adapter is running without errors:
enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP

- the permissions are also correct:
crwxrwxrwx 1 root root 238, 0  3. Mai 16:22 /dev/EtherCAT0

nevertheless the link is DOWN and I cannot start a test configuration
Debug file information:
Note: Using POSIX realtime
Failed to reserve master: No such device
LCEC: requesting master 0 (index 0) failed
LCEC: failure, clearing config
LCEC: exiting
LCEC: returning -EINVAL
lcec: rtapi_app_main: Invalid argument (-22)
./axis_mm.hal:3: waitpid failed /usr/bin/rtapi_app lcec
./axis_mm.hal:3: /usr/bin/rtapi_app exited without becoming ready
./axis_mm.hal:3: insmod for lcec failed, returned -1
2306
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
 

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #327606 by Hakan
Replied by Hakan on topic Using POSIX realtime
The ethercat master doesn't have the right contact with the network interface.
Do "sudo service ethercat restart" and show here the lines from "sudo dmesg" from this restart, some 30 lines or so, check time.
 

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #327607 by Roger S
Replied by Roger S on topic Using POSIX realtime
Thank you very much Hakan, I have attached the result as a file 

 

File Attachment:

File Name: dmesg.txt
File Size:54.16 KB

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #327616 by Hakan
Replied by Hakan on topic Using POSIX realtime
It's on the right track but I wonder how to pin-point exact reason and solution.
I have seen spelling mistakes cause this, but yours seems fine.
Can be the old network driver not unloading.
It's along those lines, the master can not get control over the network interface.
Can you set debug "ethercat debug 1", restart the ethercat server and show the dmesg again?
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds
Powered by Kunena Forum