为什么我';我在上传伽利略时收到了这个消息;在Arduino IDE中的草图是什么?

为什么我';我在上传伽利略时收到了这个消息;在Arduino IDE中的草图是什么?,arduino,port,ethernet,yocto,intel-galileo,Arduino,Port,Ethernet,Yocto,Intel Galileo,我在windows 10上使用Arduino IDE在Galileo Intel的Arduino中上传草图。由于Arduino运行Linux,代码以某种方式更改为“适合”Linux。我成功地用SD卡运行了一个更大的Linux映像,在拔下/插入主板时注意到草图持久性。我也成功地在Galileo上上传了blinky演示。下面,当我将以太网电缆连接到主板和PC时,我运行此代码为其提供一些IP地址(是否正确?此代码的实际作用是什么?): 有了这些,我得到了以下信息: #!/bin/sh startin

我在windows 10上使用Arduino IDE在Galileo Intel的Arduino中上传草图。由于Arduino运行Linux,代码以某种方式更改为“适合”Linux。我成功地用SD卡运行了一个更大的Linux映像,在拔下/插入主板时注意到草图持久性。我也成功地在Galileo上上传了blinky演示。下面,当我将以太网电缆连接到主板和PC时,我运行此代码为其提供一些IP地址(是否正确?此代码的实际作用是什么?):

有了这些,我得到了以下信息:

#!/bin/sh

starting download script
# clupload script to invoke lsz 
# Copyright (C) 2014 Intel Corporation
# 
Args to shell: C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\Gabriel\AppData\Local\Temp\build4196129373431759811.tmp/descobrir_ip.cpp.elf COM2
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
COM PORT 2
# License as published by the Free Software Foundation; either
Converted COM Port COM2 to tty port /dev/ttyS1
# version 2.1 of the License, or (at your option) any later version.
Sending Command String to move to download if not already in download mode
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#

echo "starting download script"
echo "Args to shell:" $*

# ARG 1: Path to lsz executable.
# ARG 2: Elf File to download
# ARG 3: COM port to use.

#path contains \ need to change all to /
path_to_exe=$1
fixed_path=${path_to_exe//\\/\/}

#COM ports are not always setup to be addressed via COM for redirect.
#/dev/ttySx are present. Howwever, COMy -> /dev/ttySx where x = y - 1

com_port_arg=$3
com_port_id=${com_port_arg/COM/}
echo "COM PORT" $com_port_id
tty_port_id=/dev/ttyS$((com_port_id-1))
echo "Converted COM Port" $com_port_arg "to tty port" $tty_port_id

Deleting existing sketch on target
echo "Sending Command String to move to download if not already in download mode"
echo "~sketch downloadGalileo" > $tty_port_id
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 42: /dev/ttyS1: Permission denied

#Move the existing sketch on target.
echo "Deleting existing sketch on target"
"$fixed_path/lsz.exe" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" <> $tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 46: /dev/ttyS1: Permission denied
# Execute the target download command

#Download the file.
host_file_name=$2
"$fixed_path/lsz.exe" --escape --binary --overwrite $host_file_name <> $tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 51: /dev/ttyS1: Permission denied

#mv the downloaded file to /sketch/sketch.elf 
Moving downloaded file to /sketch/sketch.elf on target
target_download_name="${host_file_name##*/}" 
echo "Moving downloaded file to /sketch/sketch.elf on target"
"$fixed_path/lsz.exe" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 56: /dev/ttyS1: Permission denied
processing.app.SerialException: Erro ao abrir porta serial "COM2".
    at processing.app.Serial.<init>(Serial.java:127)
    at processing.app.Serial.<init>(Serial.java:71)
    at processing.app.SerialMonitor$3.<init>(SerialMonitor.java:93)
    at processing.app.SerialMonitor.open(SerialMonitor.java:93)
    at processing.app.AbstractMonitor.resume(AbstractMonitor.java:220)
    at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2431)
    at processing.app.Editor.access$3200(Editor.java:71)
    at processing.app.Editor$DefaultExportHandler.run(Editor.java:2407)
    at java.lang.Thread.run(Thread.java:745)
Caused by: jssc.SerialPortException: Port name - COM2; Method name - openPort(); Exception type - Port busy.
    at jssc.SerialPort.openPort(SerialPort.java:164)
    at processing.app.Serial.<init>(Serial.java:123)
    ... 8 more
Erro ao abrir porta serial "COM2".
#/垃圾箱/垃圾箱
开始下载脚本
#clupload脚本以调用lsz
#版权所有(C)2014英特尔公司
# 
shell的参数:C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\Gabriel\AppData\Local\Temp\build4196129373431759811.tmp/descobrir\u ip.cpp.elf COM2
#这个图书馆是免费软件;您可以重新分发它和/或
#根据GNU小公众的条款对其进行修改
COM端口2
自由软件基金会发布的许可证;任何一个
已将COM端口COM2转换为tty端口/dev/ttyS1
#许可证的2.1版,或(由您选择)任何更高版本。
如果尚未处于下载模式,则发送移动到下载的命令字符串
# 
#这个图书馆的发行是希望它会有用,
#但无任何保证;甚至没有任何关于
#适销性或适合某一特定目的。见GNU
#有关更多详细信息,请参阅较低的通用公共许可证。
#
#您应该已经收到GNU Lesser General Public的副本
#与此库一起使用的许可证;如果没有,请写信给自由软件
基金会,51,富兰克林街,第五楼,波士顿,美国02110-1301
#
echo“启动下载脚本”
echo“Args到shell:”$*
#ARG 1:指向lsz可执行文件的路径。
#ARG 2:要下载的Elf文件
#ARG 3:要使用的COM端口。
#路径包含\需要将所有更改为/
路径到exe=$1
固定路径=${path\\\\/}
#COM端口并不总是设置为通过COM寻址以进行重定向。
#/dev/ttySx也在场。但是,COMy->/dev/ttySx,其中x=y-1
com_port_arg=$3
com_port_id=${com_port_arg/com/}
回显“COM端口”$COM\U端口\U id
tty_port_id=/dev/ttyS$((com_port_id-1))
将“已转换的COM端口”$COM\U Port\U arg”回显到tty Port“$tty\U Port\U id
删除目标上的现有草图
echo“如果尚未处于下载模式,则发送移动到下载的命令字符串”
echo“~sketch downloadGalileo”>tty\u端口id
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo\u win.sh:第42行:/dev/ttyS1:权限被拒绝
#在目标上移动现有草图。
回显“删除目标上的现有草图”
“$fixed_path/lsz.exe”--escape-c“mv-f/sketch/sketch.elf/sketch/sketch.elf.old”$tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo\u win.sh:第46行:/dev/ttyS1:权限被拒绝
#执行目标下载命令
#下载文件。
主机文件名=$2
“$fixed_path/lsz.exe”--转义--二进制--覆盖$host_file_name$tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo\u win.sh:第51行:/dev/ttyS1:权限被拒绝
#将下载的文件移动到/sketch/sketch.elf
将下载的文件移动到目标上的/sketch/sketch.elf
target_download_name=“${host_file_name 35;#*/}”
echo“将下载的文件移动到目标上的/sketch/sketch.elf”
“$fixed_path/lsz.exe”--escape-c“mv$target_download_name/sketch/sketch.elf;chmod+x/sketch/sketch.elf”$tty_端口id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo\u win.sh:第56行:/dev/ttyS1:权限被拒绝
processing.app.SerialException:错误ao abrir端口串行“COM2”。
在processing.app.Serial.(Serial.java:127)
at processing.app.Serial.(Serial.java:71)
在processing.app.SerialMonitor$3。(SerialMonitor.java:93)
打开(SerialMonitor.java:93)
在processing.app.AbstractMonitor.resume(AbstractMonitor.java:220)上
在processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2431)中
access$3200(Editor.java:71)
在processing.app.Editor$DefaultExportHandler.run处(Editor.java:2407)
运行(Thread.java:745)
原因:jssc.SerialPortException:端口名-COM2;方法名-openPort();异常类型-端口忙。
位于jssc.SerialPort.openPort(SerialPort.java:164)
在processing.app.Serial.(Serial.java:123)
... 8个以上
Erro ao abrir端口串行“COM2”。

有人知道发生了什么吗

错误与网络本身无关。您用于草图上载的端口似乎已在使用中。我想试着用一个不同的

关于网络部分。该命令用于设置静态IP地址。如果你只想找到你的IP地址,你可以把它打印到串行监视器上

系统(“ifconfig eth0>/dev/ttyGS0”)

#!/bin/sh

starting download script
# clupload script to invoke lsz 
# Copyright (C) 2014 Intel Corporation
# 
Args to shell: C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\Gabriel\AppData\Local\Temp\build4196129373431759811.tmp/descobrir_ip.cpp.elf COM2
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
COM PORT 2
# License as published by the Free Software Foundation; either
Converted COM Port COM2 to tty port /dev/ttyS1
# version 2.1 of the License, or (at your option) any later version.
Sending Command String to move to download if not already in download mode
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#

echo "starting download script"
echo "Args to shell:" $*

# ARG 1: Path to lsz executable.
# ARG 2: Elf File to download
# ARG 3: COM port to use.

#path contains \ need to change all to /
path_to_exe=$1
fixed_path=${path_to_exe//\\/\/}

#COM ports are not always setup to be addressed via COM for redirect.
#/dev/ttySx are present. Howwever, COMy -> /dev/ttySx where x = y - 1

com_port_arg=$3
com_port_id=${com_port_arg/COM/}
echo "COM PORT" $com_port_id
tty_port_id=/dev/ttyS$((com_port_id-1))
echo "Converted COM Port" $com_port_arg "to tty port" $tty_port_id

Deleting existing sketch on target
echo "Sending Command String to move to download if not already in download mode"
echo "~sketch downloadGalileo" > $tty_port_id
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 42: /dev/ttyS1: Permission denied

#Move the existing sketch on target.
echo "Deleting existing sketch on target"
"$fixed_path/lsz.exe" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" <> $tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 46: /dev/ttyS1: Permission denied
# Execute the target download command

#Download the file.
host_file_name=$2
"$fixed_path/lsz.exe" --escape --binary --overwrite $host_file_name <> $tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 51: /dev/ttyS1: Permission denied

#mv the downloaded file to /sketch/sketch.elf 
Moving downloaded file to /sketch/sketch.elf on target
target_download_name="${host_file_name##*/}" 
echo "Moving downloaded file to /sketch/sketch.elf on target"
"$fixed_path/lsz.exe" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
C:\Users\Gabriel\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh: line 56: /dev/ttyS1: Permission denied
processing.app.SerialException: Erro ao abrir porta serial "COM2".
    at processing.app.Serial.<init>(Serial.java:127)
    at processing.app.Serial.<init>(Serial.java:71)
    at processing.app.SerialMonitor$3.<init>(SerialMonitor.java:93)
    at processing.app.SerialMonitor.open(SerialMonitor.java:93)
    at processing.app.AbstractMonitor.resume(AbstractMonitor.java:220)
    at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2431)
    at processing.app.Editor.access$3200(Editor.java:71)
    at processing.app.Editor$DefaultExportHandler.run(Editor.java:2407)
    at java.lang.Thread.run(Thread.java:745)
Caused by: jssc.SerialPortException: Port name - COM2; Method name - openPort(); Exception type - Port busy.
    at jssc.SerialPort.openPort(SerialPort.java:164)
    at processing.app.Serial.<init>(Serial.java:123)
    ... 8 more
Erro ao abrir porta serial "COM2".