i have some trouble with the TransportLayerCommand (Subcommand GET_SLAVE_ID). When i Send the command in async mode it returns "XCP_ERR_INSUFFICIENT_BUFFER". When i send it in synchron mode it returns XCP_ERR_OK but sends on Master ID. But i want send on the Broadcast ID which is configured in the TXCPTransportLayerCAN struct.
Code: Select all
TXCPResult result;
msg = new byte[8];
txmsg = new byte[6];
txmsg[0] = (byte)'X';
txmsg[1] = (byte)'C';
txmsg[2] = (byte)'P';
txmsg[3] = (byte)0x0; //identify by echo
XCPApi.ResetQueue(m_XcpSession, TXCPQueue.XCP_CTO_QUEUE);
result = XCPApi.TransportLayerCommand(m_XcpSession, (byte)TXCPSubCommands.XCP_GET_SLAVE_ID, txmsg); //async mode
//result = XCPApi.TransportLayerCommand(m_XcpSession, (byte)TXCPSubCommands.XCP_GET_SLAVE_ID, txmsg, (byte)txmsg.Length, msg, (byte)msg.Length); //synchron mode
libx_Log.Items.Add(result);
System.Threading.Thread.Sleep(500);
Thanks
Flo