Home > Net >  Easyarm CANwifi - 200 - t UDP communication debugging problems
Easyarm CANwifi - 200 - t UDP communication debugging problems

Time:09-19

Problem: dwResult=VCI_OpenDevice (m_devtype m_devind, srcport);
Single point debugging dwResult result has been to 1, cable haven't connect
The code below
UInt32 m_devtype=(UInt32) DEV_TYPE. VCI_CANETE;//set the device type 12 - VCI_CANETE
UInt32 m_devind=0;
UInt32 srcport=40101;//udp communication for port
UInt32 dwResult=0;
DwResult=VCI_OpenDevice (m_devtype m_devind, srcport);//breakpoint operation for 1
If (dwResult==0)
{
//MessageBox. Show (" open the equipment failure, please check whether the equipment type and index number right ", "error",
//MessageBoxButtons. OK, MessageBoxIcon. The Exclamation);
ReadLog (" open the CAN device ports "+ srcport +" failure ");//call ReadLog log within the richTextBox1
return;
}
  •  Tags:  
  • C#
  • Related