Dear All,
We have achieved running MN on PC Linux userspace and CN on another one. With the same configuration, we wanted to run MN on PC Linux userspace and CN on embeded Linux userspace. After we ported the libpcap library onto the ARM Linux system. we failed to obtain the correct communication phenomenon.
we runned the MN and CN,the MN is shown as follow:
Hello, I'm a Userspace POWERLINK node running as Managing Node!
(build: Apr 15 2013 / 20:24:15)
Hello, I'm a POWERLINK node running as Controlled Node!
(build: Apr 15 2013 / 21:09:19)
Initializing openPOWERLINK stack...
Initializing openPOWERLINK application...
Initializing process image...
Size of input process image: 1
Size of output process image: 1
EplApiProcessImageAlloc: Alloc(1, 1, 2, 2)
EplApiProcessImageAlloc: Alloc(0x39020, 1, 0x39298, 1)
linking process image vars:
linking process vars... ok
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsInitializing (0x19), Origina)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetApplication (0x29), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetCommunication (0x39), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
start POWERLINK Stack... ok
Digital I/O interface with openPOWERLINK is ready!
Press Esc to leave the programm
Press r to reset the node
Press i to increase digital input
Press d to decrease digital input
Press p to print digital outputs
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetCommunication (0x39), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
EdrvPacketHandler: no matching TxB: DstMAC=01111E000004
current TxB 0x35584: DstMAC=01111E000002
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetApplication (0x29), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetCommunication (0x39), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
2012/04/11 10:53:56 - AppCbEvent(Err/Warn): Source = EventSourceDllk (01) EplErr)
2012/04/11 10:53:56 - val = 801
2012/04/11 10:53:56 - Event:kEplNmtGsOff originating event = 0x2E (NmtEventCriti)
Anyone knows how to figure it out?
Thanks in advance!
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
We have achieved running MN on PC Linux userspace and CN on another one. With the same configuration, we wanted to run MN on PC Linux userspace and CN on embeded Linux userspace. After we ported the libpcap library onto the ARM Linux system. we failed to obtain the correct communication phenomenon.
we runned the MN and CN,the MN is shown as follow:
Hello, I'm a Userspace POWERLINK node running as Managing Node!
(build: Apr 15 2013 / 20:24:15)
Initializing openPOWERLINK stack...
Initializing openPOWERLINK application...
Initializing process image...
Size of input process image: 4
Size of output process image: 4
EplApiProcessImageAlloc: Alloc(4, 4, 2, 2)
EplApiProcessImageAlloc: Alloc(0x9728020, 4, 0x9728398, 4)
2013/04/15 21:25:46 - AppCbEvent(0x39) originating event = 0x21 (NmtEventEnterResetCom)
2013/04/15 21:25:46 - AppCbEvent(Err/Warn): Source = EventSourceObdu (14) EplError = kEplObdInvalidDcf (0x03C)
2013/04/15 21:25:46 -
2013/04/15 21:25:46 - AppCbEvent(0x79) originating event = 0x23 (NmtEventEnterResetConfig)
Press Esc to leave the program
Press r to reset the node
2013/04/15 21:25:47 - AppCbEvent(0x21D) originating event = 0x27 (NmtEventTimerMsPreOp1)
2013/04/15 21:25:48 - AppCbEvent(Node=0x1, NmtState=NmtCsPreOperational2)
2013/04/15 21:25:48 - AppCbEvent(Node=0x1, Found)
2013/04/15 21:25:48 - AppCbEvent(Node=0x1, CheckConf)
2013/04/15 21:25:49 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1011/1, 2013/04/15 21:25:49 - 8/162 Bytes2013/04/15 21:25:49 - -> SDO Abort=0x6020000, Error=0x0)
2013/04/15 21:25:50 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1600/0, 2013/04/15 21:25:50 - 16/162 Bytes2013/04/15 21:25:50 - )
2013/04/15 21:25:50 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1A00/0, 2013/04/15 21:25:50 - 24/162 Bytes2013/04/15 21:25:50 - )
2013/04/15 21:25:50 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1006/0, 2013/04/15 21:25:50 - 35/162 Bytes2013/04/15 21:25:50 - )
2013/04/15 21:25:51 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1020/1, 2013/04/15 21:25:51 - 46/162 Bytes2013/04/15 21:25:51 - )
2013/04/15 21:25:51 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1020/2, 2013/04/15 21:25:51 - 57/162 Bytes2013/04/15 21:25:51 - )
2013/04/15 21:25:52 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1C0B/3, 2013/04/15 21:25:52 - 68/162 Bytes2013/04/15 21:25:52 - )
2013/04/15 21:25:52 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1C0D/3, 2013/04/15 21:25:52 - 79/162 Bytes2013/04/15 21:25:52 - )
2013/04/15 21:25:52 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1C14/0, 2013/04/15 21:25:52 - 90/162 Bytes2013/04/15 21:25:52 - )
2013/04/15 21:25:53 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1F98/5, 2013/04/15 21:25:53 - 99/162 Bytes2013/04/15 21:25:53 - )
2013/04/15 21:25:53 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1F98/8, 2013/04/15 21:25:53 - 108/162 Bytes2013/04/15 21:25:53 - )
2013/04/15 21:25:54 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1600/1, 2013/04/15 21:25:54 - 123/162 Bytes2013/04/15 21:25:54 - )
2013/04/15 21:25:54 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1A00/1, 2013/04/15 21:25:54 - 138/162 Bytes2013/04/15 21:25:54 - )
2013/04/15 21:25:54 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1600/0, 2013/04/15 21:25:54 - 146/162 Bytes2013/04/15 21:25:54 - )
2013/04/15 21:25:55 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1A00/0, 2013/04/15 21:25:55 - 154/162 Bytes2013/04/15 21:25:55 - )
2013/04/15 21:25:55 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1010/1, 2013/04/15 21:25:55 - 158/162 Bytes2013/04/15 21:25:55 - -> SDO Abort=0x6020000, Error=0x0)
2013/04/15 21:25:56 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1006/0, 2013/04/15 21:25:56 - 162/162 Bytes2013/04/15 21:25:56 - )
2013/04/15 21:25:56 - AppCbEvent(Node=0x1, ConfReset)
2013/04/15 21:25:56 - AppCbEvent(Node=0x1, NmtState=NmtCsReadyToOperate)
2013/04/15 21:25:57 - AppCbEvent (Node=0x1): Error = EPL_E_NMT_WRONG_STATE (0x8480)
2013/04/15 21:25:57 - AppCbEvent(Node=0x1, NmtState=NmtCsPreOperational2)
2013/04/15 21:25:57 - AppCbEvent(Node=0x1, Found)
2013/04/15 21:25:57 - AppCbEvent(Node=0x1, CheckConf)
2013/04/15 21:25:57 - AppCbEvent(HistoryEntry): Type=0x3002 Code=0x8243 (0x01 00 00 00 00 00 00 00)
2013/04/15 21:25:57 - AppCbEvent (Node=0x1): Error = EPL_E_DLL_LOSS_PRES_TH (0x8243)
2013/04/15 21:25:57 - AppCbEvent(Node=0x1, NmtState=NmtCsNotActive)
2013/04/15 21:26:02 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1011/1, 2013/04/15 21:26:02 - 4/162 Bytes2013/04/15 21:26:02 - )
2013/04/15 21:26:07 - AppCbEvent(Node=0x1, CFM-Progress: Object 0x1600/0, 2013/04/15 21:26:07 - 11/162 Bytes2013/04/15 21:26:07 - )
2013/04/15 21:26:07 - AppCbEvent(Node=0x1, ConfErr)
The CN is shown on minicom as follow:
Hello, I'm a POWERLINK node running as Controlled Node!
(build: Apr 15 2013 / 21:09:19)
Initializing openPOWERLINK stack...
Initializing openPOWERLINK application...
Initializing process image...
Size of input process image: 1
Size of output process image: 1
EplApiProcessImageAlloc: Alloc(1, 1, 2, 2)
EplApiProcessImageAlloc: Alloc(0x39020, 1, 0x39298, 1)
linking process image vars:
linking process vars... ok
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsInitializing (0x19), Origina)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetApplication (0x29), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetCommunication (0x39), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
start POWERLINK Stack... ok
Digital I/O interface with openPOWERLINK is ready!
Press Esc to leave the programm
Press r to reset the node
Press i to increase digital input
Press d to decrease digital input
Press p to print digital outputs
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetCommunication (0x39), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
EdrvPacketHandler: no matching TxB: DstMAC=01111E000004
current TxB 0x35584: DstMAC=01111E000002
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetApplication (0x29), Ori)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetCommunication (0x39), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtGsResetConfiguration (0x79), O)
AppCbEvent/kEplApiEventNmtStateChange: State = NmtCsPreOperational1 (0x11D), Ori)
2012/04/11 10:53:56 - AppCbEvent(Err/Warn): Source = EventSourceDllk (01) EplErr)
2012/04/11 10:53:56 - val = 801
2012/04/11 10:53:56 - Event:kEplNmtGsOff originating event = 0x2E (NmtEventCriti)
Anyone knows how to figure it out?
Thanks in advance!
Simon