tcgetattr() failed这个错误问题
2013-10-10 19:11
453 查看
这个错误问题导致打不开相应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。 。
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。 。
相关文章推荐
- android 5.1 设备上使用 usb2com 时 【 tcgetattr() failed 】 错误问题解决
- centos出现这个错误:Job for sshd.service failed because the control process exited with error code.
- 安装apk时出现错误Failure [INSTALL_FAILED_DEXOPT]问题解决的方法
- phpexcel导出的问题,在本地没有问题,但是在服务器上就会报这个访问不到的错误
- iis7 发布mvc3 遇到的HTTP错误 403.14-Forbidden Web 服务器被配置为不列出此目录的内容及Login on failed for "IIS APPPOOL\ASP.NET v4.0"问题
- 安装了VS2010 sp1 后再安装ASP.NET MVC 3.0的问题(Final Result: Installation failed with error code: (0x80070643), "安装时发生严重错误 " (Ela)
- 关于这个错误mt.exe : general error c101008d: Failed to write the updated manifest
- 解决这个Conversion to Dalvik format failed: Unable to execute dex: null 问题
- (问题解决篇)ubuntu更新时,出现错误E: Some index files failed to download。。。
- C# 错误!!容量超出了最大容量。参数名: capacity 这个是什么问题呢?
- EF(Entity Framework)发生错误”正在创建模型,此时不可使用上下文“的解决办法。 正在创建模型,此时不可使用上下文。如果在 OnModelCreating 方法内使用上下文或如果多个线程同时访问同一上下文实例,可能引发此异常。请注意不保证 DbContext 的实例成员和相关类是线程安全的。 临时解决了这个问题,在Context的构造函数中,禁用了自动初始化:
- VC2005程序的一个运行错误 由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。
- 解决chrome无访问浏览器的问题,错误代码:ERR_FAILED
- 关于Springboot打包错误的问题 | Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- 安装apk时出现错误Failure [INSTALL_FAILED_DEXOPT]问题解决的方法
- recovery 升级'@/cache/recovery/block.map' failed错误问题
- gl.h文件错误(折腾了两天竟然是这个问题)
- FB启动时报JVM出错(这个问题同样适用于eclipse打开时报jvm配置错误)
- Java解析DBF文件,错误Failed to parse Number: For input string: "-.---" 或读取不出数据或乱码问题都在这里解决
- INSTALL_FAILED_INSUFFICIENT_STORAGE 这个错误怎么解决?