I’m using Mdek1001 kit and wrote a C# console app to read the data from USB serial Port with the 'lep" command. In c# I try the following code:
if (mySerialPort.IsOpen == true)
{
mySerialPort.DataReceived += MySerialPort_DataReceived;
mySerialPort.Write("\r\n");
mySerialPort.Write(“lep”);
}
(I’ve setup the port as required with he correct settings)
I don’t get any data from the serial port, but if I run TeraTerm first and receiving the tag positions, my program receive the coordinates.
What C# code must I use to “activate” or initialize the port to receive data?