Problem: After modifying the demo xdd file under the Standardised Device Profile Area so the Digital inputs and outputs are 16 bit instead of 8 bit, demo_console_mn.exe is generating 2 SoC, 2 PRes and 2 SoA instead of just 1.
Here is my setup: 1 MN and 1 CN, both running under windows. I was successful in running the default demo programs. I got a wireshark capture and things looked normal enough: SoC, PReq, PRes, SoA etc. Next, I modified the default 00000000_POWERLINK_CiA401_CN.xdd files. Specifically I changed the 4 digital inputs and the 4 outputs to 16 bit. I ran openCONFIGURATOR 2.1.2 with the new xdd file as input, and then copied the new mnobd.cdc and xap.h to the appropriate folders. Below is the new xap.h file.
/** This file was autogenerated by openCONFIGURATOR-2.1.2_release on 10-May-2017 13:25:59* Project: TestProject* Application process for openPOWERLINK_MN(240)*/#ifndef XAP_h#define XAP_h#define COMPUTED_PI_OUT_SIZE 8typedefstruct{unsignedCN1_DigitalInput_00h_AU8_DigitalInput_1:16;unsignedCN1_DigitalInput_00h_AU8_DigitalInput_2:16;unsignedCN1_DigitalInput_00h_AU8_DigitalInput_3:16;unsignedCN1_DigitalInput_00h_AU8_DigitalInput_4:16;}PI_OUT;#define COMPUTED_PI_IN_SIZE 8typedefstruct{unsignedCN1_DigitalOutput_00h_AU8_DigitalOutput_1:16;unsignedCN1_DigitalOutput_00h_AU8_DigitalOutput_2:16;unsignedCN1_DigitalOutput_00h_AU8_DigitalOutput_3:16;unsignedCN1_DigitalOutput_00h_AU8_DigitalOutput_4:16;}PI_IN;#endif
I also modified and re-built the applications in the demo_console_mn and then demo_console_cn folders. The problem is that when I ran demo_console_mn.exe, I now got 2 SoC and 2 SoA!. After I started demo_console_cn, I got 2 SOC, 2 SoA, 2 Preq and 1 PRes.
Does anybody have any idea why I am getting 2 SoC' s, 2 PReq's etc.?
Any help is appreciated.
Thanks,
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all, you need to modify objdict.h of MN and CN, adapt the application accordingly and recompile it additionally to adapting the xdd file.
However, as I cannot open the capture file, I can't provide any help here. It just sounds very weird that you see a frame-doubling on the bus. That could also be a problem of the network capturing.
Did you try to run Wireshark on a second PC or use some analyzer hardware for precise timestamping (e.g. B&R X20ET8819)?
Best regards,
Wolfgang
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your attachment is not a Wireshark trace (Wireshark is refusing to open it even after renaming it to .pcap). But it's not a PowerPoint (as indicated by the file extension) either.
Please post it again!
Best regards,
Wolfgang
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your suggestion about running Wireshark on a second PC. I was running MN and Wireshark on the same PC. At first, I thought my changes caused the frame-doubling on the bus. But since I had frame-doubling on the bus even with V2.6.0 and NO changes, I knew something else was causing the issue. I now have wireshark on a separate PC and the frame-doubling goes away.
Many thanks for your help,
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Problem: After modifying the demo xdd file under the Standardised Device Profile Area so the Digital inputs and outputs are 16 bit instead of 8 bit, demo_console_mn.exe is generating 2 SoC, 2 PRes and 2 SoA instead of just 1.
Here is my setup: 1 MN and 1 CN, both running under windows. I was successful in running the default demo programs. I got a wireshark capture and things looked normal enough: SoC, PReq, PRes, SoA etc. Next, I modified the default 00000000_POWERLINK_CiA401_CN.xdd files. Specifically I changed the 4 digital inputs and the 4 outputs to 16 bit. I ran openCONFIGURATOR 2.1.2 with the new xdd file as input, and then copied the new mnobd.cdc and xap.h to the appropriate folders. Below is the new xap.h file.
I also modified and re-built the applications in the demo_console_mn and then demo_console_cn folders. The problem is that when I ran demo_console_mn.exe, I now got 2 SoC and 2 SoA!. After I started demo_console_cn, I got 2 SOC, 2 SoA, 2 Preq and 1 PRes.
Does anybody have any idea why I am getting 2 SoC' s, 2 PReq's etc.?
Any help is appreciated.
Thanks,
Simon
Hi Simon,
First of all, you need to modify objdict.h of MN and CN, adapt the application accordingly and recompile it additionally to adapting the xdd file.
However, as I cannot open the capture file, I can't provide any help here. It just sounds very weird that you see a frame-doubling on the bus. That could also be a problem of the network capturing.
Did you try to run Wireshark on a second PC or use some analyzer hardware for precise timestamping (e.g. B&R X20ET8819)?
Best regards,
Wolfgang
In addition, here are two attachments:
(1) Modified 00000000_POWERLINK_CiA401_CN.xdd
(2) Wireshark captures showing 2 SoC, 2 PReq, 1 PRes, 2 SOA
Thanks,
Simon
Hi Simon,
Your attachment is not a Wireshark trace (Wireshark is refusing to open it even after renaming it to .pcap). But it's not a PowerPoint (as indicated by the file extension) either.
Please post it again!
Best regards,
Wolfgang
Sorry, here is the Modified 00000000_POWERLINK_CiA401_CN.xdd file.
Simon
Hi Wolfgang,
Thanks for your suggestion about running Wireshark on a second PC. I was running MN and Wireshark on the same PC. At first, I thought my changes caused the frame-doubling on the bus. But since I had frame-doubling on the bus even with V2.6.0 and NO changes, I knew something else was causing the issue. I now have wireshark on a separate PC and the frame-doubling goes away.
Many thanks for your help,
Simon