Problems with serialport on Android! Unhandled Exception: System.DllNotFoundException: MonoPosixHelper

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?

2 Answers

2

It is occured also on Standalone platform.
I think it is a bug.

Well ,this is my slove step.and the code is aslo contain in it.
if anyone complain it’s written in chinese…i should say, chinese is the most graceful language in the earth.
http://blog.csdn.net/glunoy/article/details/52635323

can i also complain about the unity technique team ignore this shit bug?