Other Parts Discussed in Thread: SYSBIOS
Hi all,
I have configued the TI ndk stack to get the udp packets from ecu that is running tda2px.
The ecu is sending the data through ethernet that i can verify by seeing the logs on teraterm
I am not seeing the UDP packets in wireshark on linux pc that is connected to the ecu using ethernet cable.
Both in NDK and linux machine i am configuring static ip.Please see the packets i am seeing in wireshark.
Please find the NDK configuration below and also the wiresahrk image attached.
My doubts are:
a) If we have to do some configuration on the NDK side to get UDP packets.
b) If i am seeing MDNS packets instead of UDP packets what does that verify ,does it
indicate that ecu is sending data to pc.
Regards
Mayank
var NdkConfigGlobal = xdc.useModule('ti.ndk.config.Global');
var Ip = xdc.useModule('ti.ndk.config.Ip');
var Tcp = xdc.useModule('ti.ndk.config.Tcp');
var Udp = xdc.useModule('ti.ndk.config.Udp');
var Bios = xdc.useModule('ti.sysbios.BIOS');
var Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
var HalHwi = xdc.useModule('ti.sysbios.hal.Hwi');
var Cache = xdc.useModule('ti.sysbios.hal.unicache.Cache');
var IntXbar = xdc.useModule('ti.sysbios.family.shared.vayu.IntXbar');
var enableStaticIP = 1;
//NdkConfigGlobal.enableCodeGeneration = false;
/**********************************************************************\
| NSP Driver configuration |
\**********************************************************************/
var GMACSW = xdc.useModule('ti.nsp.drv.GMACSW');
GMACSW.device = GMACSW.DEVICE_VAYU;
GMACSW.instrumentedBuild = false;
/* select the stack library we want */
NdkConfigGlobal.IPv6 = false;
NdkConfigGlobal.stackLibType = NdkConfigGlobal.MIN;
NdkConfigGlobal.netSchedulerPri = NdkConfigGlobal.NC_PRIORITY_HIGH;
NdkConfigGlobal.debugAbortLevel = NdkConfigGlobal.DBG_NONE;
NdkConfigGlobal.debugPrintLevel = NdkConfigGlobal.DBG_NONE;
/* Assign memory sections and sizes */
NdkConfigGlobal.pbmDataSection = ".bss:NDK_PACKETMEM";
NdkConfigGlobal.memDataSection = ".bss:NDK_MMBUFFER";
NdkConfigGlobal.lowTaskStackSize = 8192;
NdkConfigGlobal.normTaskStackSize = 8192;
NdkConfigGlobal.highTaskStackSize = 8192;
NdkConfigGlobal.ndkThreadStackSize = 8192;
NdkConfigGlobal.pktSizeFrameBuf = 1536*2;
NdkConfigGlobal.pktNumFrameBufs = 192*5;
NdkConfigGlobal.memRawPageSize = 3072;
NdkConfigGlobal.memRawPageCount = 16*5;
/* Use hook functions available in the ti.ndk.config.Global module to add CGI commands */
NdkConfigGlobal.networkOpenHook = '&netOpenHook';
NdkConfigGlobal.networkCloseHook = '&netCloseHook';
/* change the size of our receive buffers */
/* Tcp.transmitBufSize = 8192; */
/* Tcp.receiveBufSize = 8192; */
/* Tcp.receiveBufLimit = 8192; */
Udp.receiveBufSize = 3*8192;
if (enableStaticIP)
{
/* Settings for static IP configuration */
Ip.address = "10.2.0.8";
Ip.mask = "255.255.255.0";
Ip.gatewayIpAddr = "10.2.0.100";
Ip.ifIdx = 1;
}
else
{
Ip.dhcpClientMode = Ip.CIS_FLG_IFIDXVALID;
}