I’ve plugged the listener onto my Rpi 3 headers. With screen /dev/ttyS0 115200 I’m able to receive the coordinates from the tags.(I don’t use the USB anymore)
At least I know my connection between the listener and Rpi is correct and my setup of the serial port on the Rpi is correct.
I’ve tried the following code to get the dwm> cursor:
Console.WriteLine(mySerialPort.PortName + " is Open");
Console.WriteLine(“Trying to open dwm> cursor…”);
mySerialPort.Write("/r"); Thread.Sleep(50); mySerialPort.Write("/r"); Thread.Sleep(3000); Console.WriteLine("Sending 'lep' command..."); mySerialPort.Write("lep\r"); mySerialPort.DataReceived += MySerialPort_DataReceived; }
In the console it shows that the /dev/ttyS0 port opens, but didn’t show the dwm> cursor or any data
It work 100% when I plug the listener into my PC with usb cable.
What C# code must I use to receive the coordinates from the listener? How do I use screen in my C# application?