虚拟机 VM tcsetattr fd1: input/output error解决方法
2017-09-05 21:44
861 查看
报错:串口通信时 tcsetattr fd1: input/output error
系统:ubuntu
环境:VMware
错误原因:VM设置中未开启串行端口
解决办法:
1.点击菜单条》虚拟机》编辑
2.点击添加》串行端口
3.使用主机上的物理串口
4.选择你要使用的串口即可,不推荐选自动检测。
5.完成之后即可看到相应的项目
配置完后,再登录虚拟机上的ubuntu系统看看,串口是不是又可以使用了呢~
其他的小错误
比如串口拒绝访问Can’t Open Serial Port: Permission denied:给相应的串口赋777权限即可 如命令sudo chmod 777 /dev/ttyUSB0
其他需要注意的是ttyS*表示直接的串口,通常如果在主机上测得端口为com5,则对应为ttyS5
而ttyUSB*表示 USB-UART即USB转串口,通常按照顺序命名,比如只插一个USB转串口,则对应为ttyUSB0
在应用打开串口时千万别搞错了~
未来计划推一期ubuntu串口博文,整理下这几天所学的分享给大家,也欢迎大家及时指正错误~
系统:ubuntu
环境:VMware
错误原因:VM设置中未开启串行端口
解决办法:
1.点击菜单条》虚拟机》编辑
2.点击添加》串行端口
3.使用主机上的物理串口
4.选择你要使用的串口即可,不推荐选自动检测。
5.完成之后即可看到相应的项目
配置完后,再登录虚拟机上的ubuntu系统看看,串口是不是又可以使用了呢~
其他的小错误
比如串口拒绝访问Can’t Open Serial Port: Permission denied:给相应的串口赋777权限即可 如命令sudo chmod 777 /dev/ttyUSB0
其他需要注意的是ttyS*表示直接的串口,通常如果在主机上测得端口为com5,则对应为ttyS5
而ttyUSB*表示 USB-UART即USB转串口,通常按照顺序命名,比如只插一个USB转串口,则对应为ttyUSB0
在应用打开串口时千万别搞错了~
未来计划推一期ubuntu串口博文,整理下这几天所学的分享给大家,也欢迎大家及时指正错误~
相关文章推荐
- 一种解决方法tcsetattr fd1: input/output error
- 使用tornado运行web程序错误解决方法:IOError: [Errno 5] Input/output error
- mount.nfs: Input/output error解决方法
- PHP failed to ptrace(PEEKDATA) pid 13659: Input/output error错误解决方法
- 用VMware安装win7虚拟机时出现Output error file to the following location的解决方法
- 出现set_locale() failed (5): Input/output error的解决方法
- 解决NGINX+PHP-FPM failed to ptrace(PEEKDATA) Input/output error出错问题
- Error occurred during initialization of VM 错误的解决方法
- Putty连接虚拟机Centos出现:Network error:Connection refused的解决方法
- emulator: ERROR: Unable to load VM from snapshot.解决方法
- read()、write()返回 Input/output error, Device or resource busy解决
- Error occurred during initialization of VM解决方法(Android Studio2.2)
- Unparsed aapt error(s)! Check the console for output解决方法
- Sublime text 3 [Decode error - output not utf-8]或者[Decode error - output not gbk] 解决方法
- VM(虚拟机安装win7 提示 :units specified don't exist, SHSUCDX can't install)解决方法
- linux下出现architecture of input file `*.o' is incompatible with i386:x86-64 output的解决方法
- VM(虚拟机安装win7 提示 :units specified don't exist, SHSUCDX can't install)解决方法
- VM(虚拟机安装win7 提示 :units specified don't exist, SHSUCDX can't install)解决方法
- 使用虚拟机安装Linux出现错误[Errno 5] Input/Output error
- 关于Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object错误的解决方法