Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - EtherCat Problem : (18 Items)
   
EtherCat Problem  
Hi ,
    I'm using bpf to send and receive the EtherCat frame,but there are something strange than when I send a broadcast 
ECAT frame and this frame is less then 60 bytes,I can't receive the frame form the slave, but I add a command 'nop' to 
fill the frame size over 60 bytes ,I can receive from slave. I am using QNX6.5 and the ethernet card rtl8139. And also 
when I use rtl8169,there is no problem like this. 
Re: EtherCat Problem  
Hi,

EtherCAT is based on STANDARD Ethernet media ... so you shouldn't use 
packets smaller than the minimum packet size.

--Armin

http://www.steinhoff-automation.com


Fei Su wrote:
> Hi ,
>      I'm using bpf to send and receive the EtherCat frame,but there are something strange than when I send a broadcast
 ECAT frame and this frame is less then 60 bytes,I can't receive the frame form the slave, but I add a command 'nop' to 
fill the frame size over 60 bytes ,I can receive from slave. I am using QNX6.5 and the ethernet card rtl8139. And also 
when I use rtl8169,there is no problem like this.
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post98914
> To cancel your subscription to this discussion, please e-mail general-networking-unsubscribe@community.qnx.com
>

Re: EtherCat Problem  
The driver or mac will padding for me or even I am padding it myself ,the problem is still occur. 
RE: EtherCat Problem  
This is the Ethernet minimum . It could be that one driver is padding out the packet, while the other is not. Some of 
the drivers maintain specific statistics for short packets being dropped. 

Dave 

-----Original Message-----
From: Fei Su [mailto:community-noreply@qnx.com] 
Sent: January-30-13 9:58 PM
To: general-networking
Subject: EtherCat Problem

Hi ,
    I'm using bpf to send and receive the EtherCat frame,but there are something strange than when I send a broadcast 
ECAT frame and this frame is less then 60 bytes,I can't receive the frame form the slave, but I add a command 'nop' to 
fill the frame size over 60 bytes ,I can receive from slave. I am using QNX6.5 and the ethernet card rtl8139. And also 
when I use rtl8169,there is no problem like this. 



_______________________________________________

General
http://community.qnx.com/sf/go/post98914
To cancel your subscription to this discussion, please e-mail general-networking-unsubscribe@community.qnx.com
Re: EtherCat Problem  
I have checked the rtl driver and it is padding the packets, as I can ping
with 10-byte packets. There might be a different version of the chip that
doesn't pad the packets.



On 2013-01-31 9:42 AM, "Dave Brown (QNX)" <community-noreply@qnx.com>
wrote:

>This is the Ethernet minimum . It could be that one driver is padding out
>the packet, while the other is not. Some of the drivers maintain specific
>statistics for short packets being dropped.
>
>Dave 
>
>-----Original Message-----
>From: Fei Su [mailto:community-noreply@qnx.com]
>Sent: January-30-13 9:58 PM
>To: general-networking
>Subject: EtherCat Problem
>
>Hi ,
>    I'm using bpf to send and receive the EtherCat frame,but there are
>something strange than when I send a broadcast ECAT frame and this frame
>is less then 60 bytes,I can't receive the frame form the slave, but I add
>a command 'nop' to fill the frame size over 60 bytes ,I can receive from
>slave. I am using QNX6.5 and the ethernet card rtl8139. And also when I
>use rtl8169,there is no problem like this.
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98914
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98935
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: EtherCat Problem  
I am pretty sure that  it will padding ,but I'm off duty,so I can try the ping command tomorrow. 
Re: EtherCat Problem  
Actually, please try a "ping -s10 ip.address" and see if that works.



On 2013-01-31 10:15 AM, "Fei Su" <community-noreply@qnx.com> wrote:

>I am pretty sure that  it will padding ,but I'm off duty,so I can try the
>ping command tomorrow.
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98944
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: EtherCat Problem  
Ok thx I will try it tomorrow. 
Re: EtherCat Problem  
hello I have tried the command in qnx and wince ,and the result is not the same.

this is capture by the wireshark on qnx:


Attachment: Image ping from qnx.JPG 81.86 KB
Re: EtherCat Problem  
What ping command were you using when you captured this? You also didn't
post the output from 'pci -v'.



On 2013-02-01 1:16 AM, "Fei Su" <community-noreply@qnx.com> wrote:

>hello I have tried the command in qnx and wince ,and the result is not
>the same.
>
>this is capture by the wireshark on qnx:
>
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98980
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: EtherCat Problem  
hello I have tried the command in qnx and wince ,and the result is not the same.

this is capture by the wireshark on wince:
Attachment: Image ping from ce.JPG 70.79 KB
Re: EtherCat Problem  
Because the frame  from qnx is fcs error ,and the wireshark put the fsc to me ,so we can see 4 bytes more than the frame
 from wince. But It seems like the 4byte are not fcs but padding.I guess that if we send frame less than 64byte(include 
fcs) the driver will send the 4 padding data instead of the fsc.
Re: EtherCat Problem  
Hi  the conclusion above is wrong. Just now, I use the fpga to analyse the frame ,found that qnx pad the frame to 68 
bytes (include the fcs). The fsc error is mentioned by wireshark just because the impc protocl. So please help me to 
check why qnx padding more 4 bytes?
Re: EtherCat Problem  
I think that I found the problem. Please try the attached driver.



On 2013-02-01 3:30 AM, "Fei Su" <community-noreply@qnx.com> wrote:

>Hi  the conclusion above is wrong. Just now, I use the fpga to analyse
>the frame ,found that qnx pad the frame to 68 bytes (include the fcs).
>The fsc error is mentioned by wireshark just because the impc protocl. So
>please help me to check why qnx padding more 4 bytes?
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98983
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Attachment: Text devn-rtl.so 61.5 KB
Re: EtherCat Problem  
Thx ,i will try it next monday .
Re: EtherCat Problem  
My problem is solved!  thank for ur help. Would u mind telling me what's  wrong  in the driver? 
Re: EtherCat Problem  
The driver was padding packets to 64 bytes instead of 60 bytes. Glad it is
working for you.




On 2013-02-02 4:59 AM, "Fei Su" <community-noreply@qnx.com> wrote:

>My problem is solved!  thank for ur help. Would u mind telling me what's
>wrong  in the driver?
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post99020
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: EtherCat Problem  
I am pretty sure that  it will padding ,but I'm off duty,so I can try the ping command tomorrow.