14.04 – Arduino串口COM1问题
作者:互联网
我买了一个Arduino Uno并安装了Arduino IDE 1.6.5但是当我想将一个skecht上传到Arduino板时我发现了这个错误:
avrdude: ser_open(): can't open device "COM1": No such file or directory
ioctl(“TIOCMGET”):设备的ioctl不合适
我正在使用Ubuntu 14.04LTS
hakan@hakan-pc:~$ls -l /dev/ttyUSB0
ls: /dev/ttyUSB0'e erişilemedi: Böyle bir dosya ya da dizin yok(In English: No such a file like this)
hakan@hakan-pc:~$ls -l /dev/ttyS0
crw-rw-rw- 1 root dialout 4, 64 Tem 8 22:40 /dev/ttyS0
当Arduino插入计算机dmesg |尾巴 :
hakan@hakan-pc:~$dmesg | tail
[ 21.784795] sound hdaudioC1D3: hda-codec: out of range cmd 3:5:707:ffffffff
[ 21.784969] sound hdaudioC1D3: hda-codec: out of range cmd 3:5:707:ffffffbf
[ 21.786110] sound hdaudioC1D0: hda-codec: out of range cmd 0:5:707:ffffffff
[ 21.792705] sound hdaudioC1D0: hda-codec: out of range cmd 0:5:707:ffffffff
[ 26.849759] sound hdaudioC1D0: hda-codec: out of range cmd 0:5:707:ffffffbf
[ 27.515096] init: Failed to spawn nvidia-persistenced main process: unable to execute: No such file or directory
[ 43.647261] audit: type=1400 audit(1436384452.263:72): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2246 comm="apparmor_parser"
[ 43.647270] audit: type=1400 audit(1436384452.263:73): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2246 comm="apparmor_parser"
[ 43.647654] audit: type=1400 audit(1436384452.267:74): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2246 comm="apparmor_parser"
[ 87.513268] systemd-hostnamed[2572]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
我怎么解决这个问题?
解决方法:
>连接您的Arduino硬件.打开Arduino IDE.
>转到“工具”.
>转到“端口”.
>选择Arduino连接的端口.(如果没有连接其他外部驱动器,除了Arduino,将只有一个端口)
这将告诉Arduino IDE硬件连接的端口.
之后,您将能够成功上传草图
标签:java,arduino,serial-port,14-04 来源: https://codeday.me/bug/20190807/1613957.html