TI中文支持网
TI专业的中文技术问题搜集分享网站

PA_emacExample_exampleProject

现在再看ti\pdk_C6678_1_1_2_6\packages\ti\drv\exampleProjects\PA_emacExample_exampleProject例程,在想问一下,把下面pktMatch包的IP和MAC改一下改成PC端的,然后发送出去,问PC可以收到吗?如果不能有修改的办法吗?

#pragma DATA_ALIGN(pktMatch, 16)
UInt8 pktMatch[] = {
							0x6C, 0x0B, 0x84, 0x07, 0xAC, 0x6D,/* 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, 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  };

/* Tx/Rx packet counters */
xt guo:

自己看了下应该可以被PC端收到,但是应该要修改校验和部分

Shine:

回复 xt guo:

请参考下面帖子的修改方法。http://www.deyisupport.com/question_answer/dsp_arm/c6000_multicore/f/53/t/62664.aspx

赞(0)
未经允许不得转载:TI中文支持网 » PA_emacExample_exampleProject
分享到: 更多 (0)