Use SerialPort on Android will course such an Exception.
E/mono ( 9019): Unhandled Exception: System.DllNotFoundException: MonoPosixHelper
Am I first people to meet this problem?No! google will tell you it happened years ago,Why nobody is plan to fix it?
Api Compatibility Level is aleady set to .net 2.0. Still exception.
How can i make serialport work on Android?
SerialPort.GetPortNames(); is also many many many many bug. My com port is “/dev/ttyTCC1”,and it tell me no serialport found.
Fortunately Directory.GetFiles(“/dev/”, “tty*”) works right.But when
SerialPort spstart = new SerialPort(“/dev/ttyTCC1”, 57600, Parity.None, 8, StopBits.One);
try
{
spstart.Open();
des.DebugText(“open /dev/ttyTCC1 succ.”);
}
catch (Exception e)
{
des.DebugText(e.Message+“open /dev/ttyTCC1 failed.”);
}
the excetion happend.System.DllNotFoundException: MonoPosixHelper?? why?