tcgetattr() failed这个错误问题

来源:互联网 发布:随身带着淘宝到异界 编辑:程序博客网 时间:2024/06/09 22:59

这个错误问题导致打不开相应ttysX口。

E/serial_port(  861): JNI_OnLoad serialPort
E/serial_port(  861): open comm
D/serial_port(  861): Opening serial port /dev/ttyS5 with flags 0x2
D/serial_port(  861): open() fd = 41
D/serial_port(  861): Configuring serial port
E/serial_port(  861): tcgetattr() failed
E/BlueTooth(  861): native open returns null



已经open了。但是。tcgetattr() failed。

我重新找到A10 的配置文件,打开uart_used =1,x相应的io脚找对.把0 的排除 多少个1 。你的设备就对应ttyS几。

然后再init.sun4i.rc 增加 chmod 777 /dev/ttyS3

再在SerialPort.java里把device为 /dev/ttyS3

重新编译。 就ok。 。

原创粉丝点击