EC-Master for QNX assistance


#1

I am evaluating EC Master and have a question about running the demo. I didn’t see any other thread for the demo, sorry if this is in the wrong thread. The target is running QNX 6.5. I can build and run the demo master, I’m using a eni file I downloaded to the target. When I start the master cannot find the driver. I have (2) questions based on the demo console output I put at the end the post:

  1. Are my command line arguments (“-f /hd/ECAT/test.xml -i8254x 2 1 -t 60000”) I used from the QNX debugger correct for our target that has: A NIC card is an Intel e1000 (QNX build script line for this interface is: “io-pkt-v4-hc -i 1 -d e1000 pci=0,vid=0x8086,did=0x1539 -p tcpip prefix=/sock2”). This interface is configured as the 2nd interface (-I 1 in bullet a). I saved an eni file on the target at hd/ECAT/test.xml on the target
  2. Does the demo error message “OsGetLinkLayerRegFunc: cannot load emllI8255x.so” indicate the library for this driver needs to be added to the image and if so, where do I find the library to add it (I could not find it in the demo code)?
    Demo console output from Acontis code:
    Full command line: -f “/hd/ECAT/test.xml”-i8254x 2 1 -t 60000

1363485934 : Run demo now with cycle time 1000 usec
1363486012 : ==========================
1363486012 : Initialize EtherCAT Master
1363486013 : ==========================
378205 : EC-Master V2.9.2.01 (Protected) for QNX_x86 Copyright acontis technologies GmbH @ 2017
378205 : OsGetLinkLayerRegFunc: cannot load emllI8254x.so
378205 : CEcDeviceBase::OpenDeviceBase: cannot find registration function for link layer ‘I8254x’
378205 : ecatInitMaster(): Error opening EtherCAT device!
378205 : Cannot initialize EtherCAT-Master! (Result = ERROR: Open failed 0x98110011)
378205 : ========================
378205 : Shutdown EtherCAT Master
378205 : ========================
378205 : Cannot stop EtherCAT-Master! ERROR: Invalid state (0x9811000e)
378205 : Cannot de-initialize EtherCAT-Master! ERROR: Invalid state (0x9811000e)
379014 : EcMasterDemo stop.


About the EC-Master category
#2

Hello,

I apologize for the delay, this post seemed to go to a strange place but is fixed now.

I received some feedback from an Acontis support colleague,

"In the current support request “cannot load emllI8254x.so” is probably needs to unpack the linklayer "

Have you done this?

Nick


#3

Hi Nick,
The link layer instructions did not mention unpacking, what does that mean?
I am certain I have the correct NIC driver (Intel Pro 1000) and the instructions were to unload the current link layer, which I did via “SOCK/=sock2 ifconfig wm0 destroy” and I can see from “SOCK/=sock2 ifconfig”, to see 2nd interface, the before and after NIC configuration looks right.
The steps I took are:
1.Installed demo.
2.Created a QNX6.5 (x86) project and copied the demo source from EcMasterDemo, INC/QNX6, INC, and Common to the single QNX project and it builds ok.
3.Added two libraries EcMasterDemo.so and EcMasterDemoSyncSm.so to the boot image. I could not find the emllI8254x.so library (is driver Acontis specifies for Intel Pro 1000) anywhere in the demo to add it to the target image.
4.Copied an eni file from the demo to the hard drive (path /hd/ECAT).
5.The target starts up ok, I delete the current NIC interface as directed from a serial console “ SOCK/=sock2 ifconfig wm0 destroy”
6.I try to run the demo from QNX IDE debugger using the command line arguments that appear correct from the documentation: “-f /hd/ECAT/test.xml -i8254x 2 1 -t 60000”

The result is the failure I mentioned where it cannot find the driver:
Medro Display Current enet configuration :SOCK=/sock2 ifconfig:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
---- Finished displaying old configuration -------------------------
Full command line: -f “/hd/ECAT/test.xml”-i8254x 2 1 -t 60000

720584166 : Run demo now with cycle time 1000 usec
722643839 : ==========================
722643839 : Initialize EtherCAT Master
722643839 : ==========================
15687783 : EC-Master V2.9.2.01 (Protected) for QNX_x86 Copyright acontis technologies GmbH @ 2017
15687783 : OsGetLinkLayerRegFunc: cannot load emllI8254x.so
15687783 : CEcDeviceBase::OpenDeviceBase: cannot find registration function for link layer ‘I8254x’
15687783 : ecatInitMaster(): Error opening EtherCAT device!
15687783 : Cannot initialize EtherCAT-Master! (Result = ERROR: Open failed 0x98110011)
15687783 : ========================
15687783 : Shutdown EtherCAT Master
15687783 : ========================
15687783 : Cannot stop EtherCAT-Master! ERROR: Invalid state (0x9811000e)
15687783 : Cannot de-initialize EtherCAT-Master! ERROR: Invalid state (0x9811000e)
15754760 : EcMasterDemo stop.


#4

Hello,

II will have to look into this further, thanks!

Nick


#5

Hi Nick,

I cannot post any further information on a public forum. We have an NDA with HMS so I logged an issue via HMS traditional support ticket system. Hopefully we can resolve this soon. The ticket is titled “Acontis EC Master Evaluation for QNX 6.5 demo problems” but does not yet have a number.
thanks,
T


#6

No problem, thanks.

Nick