Difference between revisions of "Control Studio/zh-hans"

From SoftMC-Wiki
Jump to: navigation, search
Line 25: Line 25:
  
 
==== 入门 ====  
 
==== 入门 ====  
−
'''Step 1''' - Connect your softMC to the power supply, the network - with the Ethernet cable,
+
'''步骤1''' - 将softMC连接到电源,网络 - 使用以太网电缆,并通过串行电缆从COM1(如图所示)到计算机。<br>  
−
 
 
−
and to the computer - from COM1 (as shown), with the serial cable. <br>  
 
 
::[[image: IP_9.png|300px]]
 
::[[image: IP_9.png|300px]]
−
run '''ControlStudio''' and turn on your softMC.
+
运行'''ControlStudio'''并打开softMC。
−
 
 
−
 
 
−
'''Step 2''' - In the ControlStudio, go to '''controller Monitor''' menu at the right side of
 
−
 
 
−
the screen. There you will see the devices which connect to your network, without any
 
  
−
information about your new unknown softMC or with device that doesn't have IP address:  <br>
+
'''步骤2''' - 在ControlStudio中,转到右侧的'''controller Monitor'''菜单屏幕。 在那里,您将看到连接到您的网络的设备,没有任何有关您新的未知软件的信息或者没有IP地址的设备的信息:  <br>
 
::[[image: IP_1.png|900px]] <br>  
 
::[[image: IP_1.png|900px]] <br>  
  
  
−
'''Step 3''' - According to your network properties - choose an IP address or get one from your
+
'''步骤3''' - 根据您的网络属性 - 选择一个IP地址或从您的网络管理器获取一个地址。<br>  
−
 
+
您可以使用''Windows命令''工具(CMD)和'''ping'''来检查地址可用性,命令在此处显示为黄色:  
−
network manager.<br>  
 
−
You can check the address availability by using ''windows command'' tool (CMD), with '''ping'''  
 
−
 
 
−
command as shown here in yellow:  
 
 
::[[image: IP_3.png|600px]] <br>
 
::[[image: IP_3.png|600px]] <br>
  
−
Additional information about your address will be found in the same window, using the
+
使用'''ipconfig'''命令将在同一个窗口中有关您的地址的其他信息:
−
 
 
−
'''ipconfig''' command:
 
 
::[[image: IP_4.png|600px]] <br>
 
::[[image: IP_4.png|600px]] <br>
−
The information that required to us is the '''Subnet Mask''' and the '''default Geteway''':
+
我们需要的信息是'''子网掩码'''和'''默认网关''':
 
::[[image: IP_5.png|600px]] <br>
 
::[[image: IP_5.png|600px]] <br>
  
  
  
−
'''Step 4''' - In the ControlStudio, at the menu bar - choose '''Tools'''  
+
'''步骤4''' - 在ControlStudio中,在菜单栏 - 选择'''Tools''' <big><big>→</big></big> '''IP  
−
 
+
Configurator''' <br>  
−
<big><big>→</big></big> '''IP Configurator'''. <br>  
 
 
::[[image: IP_2.png|900px]] <br>
 
::[[image: IP_2.png|900px]] <br>
  
−
 
+
'''步骤5''' - 将打开新窗口。<br>  
−
'''Step 5''' - New window will open.<br>  
 
 
::[[image: IP_6.png|250px]] <br>
 
::[[image: IP_6.png|250px]] <br>
  
−
* In case you already '''know''' the device IP address - choose ''Yes'' button. A '''Connect  
+
* 如果您已经'''知道'''设备IP地址 - 选择 ''Yes''按钮。 '''Connect Via Network'''窗口弹出 - 使用正
−
 
+
确的信息填充空白处,然后按''Connect''按钮。 <br>  
−
Via Network''' window will pop-up - fill the blank spaces with the correct information and
 
−
 
 
−
press the ''Connect'' button. <br>  
 
 
:::[[image: IP_7.png|250px]] <br>
 
:::[[image: IP_7.png|250px]] <br>
−
You will find your sofMC, with the known IP address, at the '''controller Monitor''' menu ready
+
您可以在'''controller Monitor'''菜单中找到具有已知IP地址的sofMC,以便连接。
−
 
 
−
to connect. 
 
−
 
 
−
* In case you '''don't know''' softMC IP address - choose ''No'' button. A '''Connect Via
 
−
 
 
−
COM''' window will pop-up. In this window you will be asked about the connection between the
 
  
−
softMC and your PC - the COM1 port. If you don't sure how to locate it - press ''Where is my
+
* 如果您'''不知道'''softMC IP地址,请选择''否''按钮。 将弹出'''Connect Via COM'''窗口。 在此窗口
  
−
COM port?'' link or go back to '''Step 1''' for the picture. If the softMC connected properly -
+
中,将会询问有关softMC与PC之间的连接 - COM1端口。 如果您不确定如何找到它 - 点击''Where is my
  
−
choose the ''Connect'' button. <br>  
+
COM port?'' 链接或返回到图片的'''步骤1'''。 如果softMC连接正确 - 选择 ''Connect''按钮。
 +
  <br>  
 
:::[[image: IP_8.png|250px]] <br>
 
:::[[image: IP_8.png|250px]] <br>
  
  
−
'''Step 6''' - New window will open - '''Select COM Device'''. In this window you'll have to
+
'''Step 6''' - 将打开新窗口 - '''Select COM Device'''。 在此窗口中,您必须选择连接到softMC的PC
  
−
choose the serial port in your PC that attached to the softMC<br>  
+
中的串行端口。<br>  
 
::[[image: IP_10.png|250px]] <br>
 
::[[image: IP_10.png|250px]] <br>
−
After the right port as been selected - press the ''Connect'' button. <br>
+
选择正确的端口后 - 按''Connect''按钮。 <br>
  
  
−
'''step 7''' - The '''Set IP''' window will open. <br>
+
'''步骤7''' - '''Set IP'''窗口将打开。 <br>
 
::[[image: IP_11.png|250px]] <br>
 
::[[image: IP_11.png|250px]] <br>
  
  
−
* In case you '''know''' that your softMC has modified and already have an IP address - you can
+
* 如果你 '''知道 '''你的softMC已经修改并且已经有一个IP地址,你可以选择'''Obtain an IP address  
−
 
 
−
choose '''Obtain an IP address automatically''' option to use the former address, and press the
 
  
−
'''Apply''' button. The details of the IP address will show up when you press the '''Show  
+
automatically'''来使用以前的地址,然后按'''Apply'''按钮。 当您按'''Show Config'''时,会显示IP地
  
−
Config''' button. <br>  
+
址的详细信息。<br>  
 
::[[image: IP_12.png|250px]] <br>
 
::[[image: IP_12.png|250px]] <br>
−
Now you can find and connect to the softMC with the same IP address in the '''controller  
+
现在,您可以在右侧的'''controller Monitor''' 菜单中找到并连接到具有相同IP地址的softMC,并关
  
−
Monitor''' menu at the right, and close the '''IP Configurator'''. <br>
+
闭'''IP Configurator'''。 <br>
 
::[[image: IP_13.png|900px]] <br>
 
::[[image: IP_13.png|900px]] <br>
  
−
* In case you '''don't know''' any former information about the IP address, you should choose
+
* 如果您'''不知道'''有关IP地址的任何以前的信息,您应该选择'''Static IP address'''选项,并使用您在
  
−
'''Static IP address''' option, and fill the blank spaces with the information you gain  at
+
'''步骤3'''获得的信息填写空白处 - 您选择的''IP 地址'','''子网掩码'''和'''默认网关''' - 现在 选
  
−
'''Step 3''' - the ''IP address'' you choose, '''subnet mask''' and '''default geteway''' - now
+
择'''Apply'''按钮。
−
 
 
−
choose '''Apply''' button.
 
 
::[[image: IP_14.png|250px]] <br>
 
::[[image: IP_14.png|250px]] <br>
  
  
−
You can find and connect to the softMC with the new IP address in the '''controller Monitor'''  
+
您可以在右侧的'''controller Monitor''' 中找到并连接到具有新IP地址的softMC,并关闭'''IP
  
−
on the right, and close the '''IP Configurator'''. <br>
+
Configurator'''。 <br>
 
::[[image: IP_16.png|900px]] <br>
 
::[[image: IP_16.png|900px]] <br>
  
  
  
−
{{Note| After setting the new data about the IP address, the IP Configurator will ask you to
+
{{Note| 在设置有关IP地址的新数据后,IP配置器将要求您重新启动softMC - 应用新配置 }} <br>
−
 
 
−
reboot the softMC - approve that to ratify the new setting 
 
−
}} <br>
 
 
::[[image: IP_15.png|350px]]
 
::[[image: IP_15.png|350px]]
  
−
===SSH Terminal===
+
===SSH 终端===
−
====Description====
+
====描述====
  
−
====Getting Started====
+
====入门====
−
{{Note| This manual is under the assumption that the ControlStudio already connected to a robot
+
{{Note| 本手册假定ControlStudio已经连接到机器人或模拟器。}} <br>
  
−
or a simulator.}} <br>
+
'''步骤1''' - 在菜单栏的'''Tools'''选项卡下 - 选择'''SSH Terminal'''按钮。 <br>  
−
 
 
−
'''step 1''' - At the menu bar, under the '''Tools''' tab - choose the '''SSH Terminal'''  
 
−
 
 
−
button. <br>  
 
 
::[[image: SSH_1.png| 800px]] <br>
 
::[[image: SSH_1.png| 800px]] <br>
  
  
  
−
'''step 2''' - A new window will be opened. In this window you need to confirm the folowing:  
+
'''步骤2'''- 将打开一个新窗口。 在这个窗口中,您需要确认下面的内容:  
  
 
<br>
 
<br>
−
:* IP address that belong to your robot/simulator.
+
:* 您的机器人/模拟器的IP地址。
−
:* Your username and password to access your robot/simulator.
+
:* 您的用户名和密码,以访问您的机器人/模拟器。
 
::[[image: SSH_2.png |500px]] <br>  
 
::[[image: SSH_2.png |500px]] <br>  
  
  
  
−
'''step 3''' - Back to the menu bar, under the '''view''' tab - choose the '''SSH Terminal'''  
+
'''步骤3''' - 返回菜单栏,在 '''view'''选项卡下 - 选择'''SSH Terminal'''按钮。<br>  
−
 
 
−
button. <br>  
 
 
::[[image: SSH_3.png |800px]] <br>
 
::[[image: SSH_3.png |800px]] <br>
  
Line 167: Line 131:
  
  
−
'''step 4''' - The SSH Terminal interface will be opend, ready for yout commands. <br>  
+
'''步骤4''' - SSH终端界面将被打开,为您的命令准备就绪。 <br>  
 
::[[image: SSH_4.png |800px]] <br>
 
::[[image: SSH_4.png |800px]] <br>
  
−
====Example====
+
====例子====
−
In this example we use the '''ls''' command - that provide list of files in the current working
+
在这个例子中,我们使用'''ls'''命令来提供当前工作目录中的文件列表。
−
 
 
−
directory.
 
 
{{Note|The SSH Terminal operated by '''Linux''' commands.}}
 
{{Note|The SSH Terminal operated by '''Linux''' commands.}}
  
  
  
−
'''Step 1''' - In the SSH terminal window add the command you want to activated, and press the
+
'''步骤1''' - 在SSH终端窗口中,添加要激活的命令,然后按''enter''按钮。<br>  
−
 
 
−
''enter'' button. <br>  
 
 
::[[image: SSH_5.png | 800px]] <br>  
 
::[[image: SSH_5.png | 800px]] <br>  
  
  
−
'''Step 2''' - In the same window, you will get the information you asked for. <br>  
+
'''步骤2''' - 在同一窗口中,您将获得您要求的信息。 <br>  
 
::[[image: SSH_6.png | 800px]] <br>
 
::[[image: SSH_6.png | 800px]] <br>

Revision as of 08:12, 20 July 2017

语言: [[::Control Studio|English]]  • [[::Control Studio/zh-hans|中文(简体)‎]]

ControlStudio

ControlStudio软件是运动应用开发的工具。 它包含编程编辑器,数据记录器,调试器和监视工具。

  • ControlStudio是softMC的集成开发环境(IDE)。
  • 用于编写程序(任务),调试任务,记录数据。
  • 图形用户界面。
  • 向softMC提供命令行界面(终端)

ControlStudio gui components.png

工具

IP配置器

描述

IP配置器 工具将帮助您定义新的或未知的softMC IP地址, 然后再进行连接。

要使用IP配置器,您需要以下内容:

  • 电脑运行ControlStudio。
  • sofMC-3或softMC-7。
  • 以太网电缆连接在您的网络和softMC之间。
  • 串行电缆连接在softMC和计算机之间。
  • 直流电源 - 适用于softMC。

入门

步骤1 - 将softMC连接到电源,网络 - 使用以太网电缆,并通过串行电缆从COM1(如图所示)到计算机。

IP 9.png

运行ControlStudio并打开softMC。

步骤2 - 在ControlStudio中,转到右侧的controller Monitor菜单屏幕。 在那里,您将看到连接到您的网络的设备,没有任何有关您新的未知软件的信息或者没有IP地址的设备的信息:

IP 1.png


步骤3 - 根据您的网络属性 - 选择一个IP地址或从您的网络管理器获取一个地址。
您可以使用Windows命令工具(CMD)和ping来检查地址可用性,命令在此处显示为黄色:

IP 3.png

使用ipconfig命令将在同一个窗口中有关您的地址的其他信息:

IP 4.png

我们需要的信息是子网掩码和默认网关:

IP 5.png


步骤4 - 在ControlStudio中,在菜单栏 - 选择Tools → IP Configurator

IP 2.png

步骤5 - 将打开新窗口。

IP 6.png
  • 如果您已经知道设备IP地址 - 选择 Yes按钮。 Connect Via Network窗口弹出 - 使用正

确的信息填充空白处,然后按Connect按钮。

IP 7.png

您可以在controller Monitor菜单中找到具有已知IP地址的sofMC,以便连接。

  • 如果您不知道softMC IP地址,请选择否按钮。 将弹出Connect Via COM窗口。 在此窗口

中,将会询问有关softMC与PC之间的连接 - COM1端口。 如果您不确定如何找到它 - 点击Where is my

COM port? 链接或返回到图片的步骤1。 如果softMC连接正确 - 选择 Connect按钮。


IP 8.png


Step 6 - 将打开新窗口 - Select COM Device。 在此窗口中,您必须选择连接到softMC的PC

中的串行端口。

IP 10.png

选择正确的端口后 - 按Connect按钮。


步骤7 - Set IP窗口将打开。

IP 11.png


  • 如果你 知道 你的softMC已经修改并且已经有一个IP地址,你可以选择Obtain an IP address

automatically来使用以前的地址,然后按Apply按钮。 当您按Show Config时,会显示IP地

址的详细信息。

IP 12.png

现在,您可以在右侧的controller Monitor 菜单中找到并连接到具有相同IP地址的softMC,并关

闭IP Configurator。

IP 13.png
  • 如果您不知道有关IP地址的任何以前的信息,您应该选择Static IP address选项,并使用您在

步骤3获得的信息填写空白处 - 您选择的IP 地址,子网掩码和默认网关 - 现在 选

择Apply按钮。

IP 14.png


您可以在右侧的controller Monitor 中找到并连接到具有新IP地址的softMC,并关闭IP

Configurator。

IP 16.png


NOTE-Info.svgNOTE
在设置有关IP地址的新数据后,IP配置器将要求您重新启动softMC - 应用新配置

IP 15.png

SSH 终端

描述

入门

NOTE-Info.svgNOTE
本手册假定ControlStudio已经连接到机器人或模拟器。

步骤1 - 在菜单栏的Tools选项卡下 - 选择SSH Terminal按钮。

SSH 1.png


步骤2- 将打开一个新窗口。 在这个窗口中,您需要确认下面的内容:


  • 您的机器人/模拟器的IP地址。
  • 您的用户名和密码,以访问您的机器人/模拟器。
SSH 2.png


步骤3 - 返回菜单栏,在 view选项卡下 - 选择SSH Terminal按钮。

SSH 3.png



步骤4 - SSH终端界面将被打开,为您的命令准备就绪。

SSH 4.png

例子

在这个例子中,我们使用ls命令来提供当前工作目录中的文件列表。

NOTE-Info.svgNOTE
The SSH Terminal operated by Linux commands.


步骤1 - 在SSH终端窗口中,添加要激活的命令,然后按enter按钮。

SSH 5.png


步骤2 - 在同一窗口中,您将获得您要求的信息。

SSH 6.png