This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Pa_emacexample发送小包收不到

你好,

最近运行Pa_emacexample评估6678 EVM 与PC间收发报文,发现Pa_emacexample例子6678 EVM发送大报文到PC可以收到,wireshark可以抓到包;而发送小包时,PC端wireshare抓不到任何报文。

如下,默认的pktMatch是122字节,用这个测试没有问题。

#pragma DATA_ALIGN(pktMatch, 16)
UInt8 pktMatch[] = {
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, /* Src MAC */
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, /* Dest MAC */
0x08, 0x00, /* Ethertype = IPv4 */
0x45, 0x00, 0x00, 0x6c, /* IP version, services, total length */
0x00, 0x00, 0x00, 0x00, /* IP ID, flags, fragment offset */
0x05, 0x11, 0x2a, 0x25, /* IP ttl, protocol (UDP), header checksum */
0xc0, 0xa8, 0x05, 0x02, /* Source IP address */
0xc0, 0xa8, 0x05, 0x0a, /* Destination IP address */
0x12, 0x34, 0x56, 0x78, /* UDP source port, dest port */
0x00, 0x58, 0x1d, 0x18, /* UDP len, UDP checksum */
0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, /* 80 bytes of payload data */
0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41,
0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51,
0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,
0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61,
0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71,
0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 0x80, 0x81};

如果修改成下列小报文如下,PC端通过wireshark抓不到报文。
#pragma DATA_ALIGN(pktMatch, 16)
UInt8 pktMatch[] = {
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, /* Dest MAC */
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, /* Src MAC */
0x08, 0x00, /* Ethertype = IPv4 */
0x45, 0x00, 0x00, 0x6c, /* IP version, services, total length */
0x00, 0x00, 0x00, 0x00, /* IP ID, flags, fragment offset */
0x05, 0x11, 0x32, 0x26, /* IP ttl, protocol (UDP), header checksum */
0xc0, 0xa8, 0x01, 0x01, /* Source IP address */
0xc0, 0xa8, 0x01, 0x0a, /* Destination IP address */
0x12, 0x34, 0x56, 0x78, /* UDP source port, dest port */
0x00, 0x58, 0x1d, 0x18, /* UDP len, UDP checksum */
0x32, 0x33, 0x34, 0x35};

说明下,即时是报文奇偶校验失败,PC端网卡处于混杂模式,Wireshark也应该能够抓到报文。

请问,这与PA的那个配置有关呢?翻了手册好久,没有找到答案。麻烦指点一下,谢谢!