📄 c-tools2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Target Server </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-tools.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-tools1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-tools3.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="84049">5.2 Configuring and Starting a Target Server</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86767"> </a>A target server must be configured and started before any tool (such as the debugger) can communicate with a target system. There are two ways to configure and start a server:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="86493"> </a>With the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers </font></b>dialog box (see <a href="c-tools2.html#86530"><i class="title">5.2.1 Using the Configure Target Servers Dialog Box</i></a>). </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="86473"> </a>From the command line or from a batch file (see <a href="c-tools2.html#86159"><i class="title">5.2.3 Using the Command Line</i></a>).</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="86626"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box provides the simplest means of configuration. The command line provides the complete set of options available for a server. Command line usage also allows you to start target servers before Tornado.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="89841"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>When you start a VxWorks target simulator from the Tornado GUI, you are automatically prompted to start or configure a target server for the simulator.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="86530">5.2.1 Using the Configure Target Servers Dialog Box</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86484"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box is a GUI tool for configuring and starting a target server. To display the box, select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b>><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Target Server</font></b>><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure</font></b>.</p><dd><p class="Body"><a name="90218"> </a>When you press the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New</font></b> button, Tornado displays the dialog box with default options.(<a href="c-tools2.html#89184">Figure 5-2</a>). <div class="frame"><h4 class="EntityTitle"><a name="89184"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 5-2: Configure Target Servers</font></a></h4><dl class="margin"><div class="Anchor"><a name="89215"> </a><img class="figure" border="0" src="images/c-toolsa3.gif"></div></dl></div> </p><dd><p class="Body"><a name="89172"> </a>If you are using the default <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">wdbrpc</font></b> back end (for IP and serial connections) you only need to enter the following information: </p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84086"> </a>A name for your configuration (the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b> field). </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84087"> </a>The target name or IP address. </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84088"> </a>The communication port, if your target and host are communicating over a serial link.</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="88275"> </a>Tornado supplies a default for the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b> field, but descriptive configuration names are more useful, particularly if you plan to use more than one target-server configuration. You can configure a target server so that the configuration name appears as a menu option <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Target Server</font></b> in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Add description to menu</font></b> checkbox.</p><dd><p class="Body"><a name="84126"> </a>The fields and lists displayed in the property panel section of the box change based on the selection you make from the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Change Property </font></b>drop-down list. These options are discussed later in this section.</p><dd><p class="Body"><a name="87759"> </a>Each time you specify a configuration option, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Command Line</font></b> box displays the corresponding <b class="command">tgtsvr</b> command and its parameters. The text in the box cannot be edited, but you can use the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Other Options</font></b> field to add options that are not exposed through the GUI (see <a href="c-tools2.html#84335"><i class="title">Miscellaneous</i></a>).</p><dd><p class="Body"><a name="90825"> </a>You can also use the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Command Line</font></b> box display to copy the text to a batch file in order to launch a target server automatically with this configuration. You may also find it helpful to copy the text to the command line and explore various options in conjunction with the <b class="command">tgtsvr</b> reference documentation (see <a href="x-toolman.html#83918"><i class="title">C. Tornado Tools Reference</i></a>).</p></dl></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="88179">Control Buttons</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="88196"> </a>To start a target server and save your server configuration, click the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Launch</font></b> button, which also saves the configuration. To save the configuration without starting a server, click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">OK</font></b> instead. The name used for the configuration is in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b> field.</p><dd><p class="Body"><a name="88192"> </a>To discard all changes since you opened the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box, click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Cancel</font></b>.</p><dd><p class="Body"><a name="88161"> </a>The following controls are used to manage saved configurations and to create new ones: </p></dl><dl class="margin"><dd><div class="Item"><a name="88162"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Target Server Descriptions</font></b> list</div><dl class="margin"><dd><div class="Indent"><a name="88163"> </a>To select a configuration for modification or for starting a target server, select a name from this list. The remaining fields of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box are filled in for that configuration name. </div><br></dl><dd><div class="Item"><a name="88164"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New </font></b>button</div><dl class="margin"><dd><div class="Indent"><a name="88165"> </a>To create a new target-server configuration from scratch, click this button. A default target-server configuration name appears, and the remaining fields of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box are cleared.</div><br></dl><dd><div class="Item"><a name="88166"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Copy </font></b>button</div><dl class="margin"><dd><div class="Indent"><a name="88167"> </a>To create a new target-server configuration based on the one currently selected, click this button. A new default target-server configuration name appears, and the remaining fields of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box are copied to the new configuration.</div><br></dl><dd><div class="Item"><a name="88168"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Remove</font></b> button</div><dl class="margin"><dd><div class="Indent"><a name="88169"> </a>To discard a configuration you no longer need, first select that configuration in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Target Server Descriptions</font></b> list, then click this button.</div><br></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="84197">5.2.2 Target-Server Configuration Options</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84198"> </a>This section describes all the configuration options you can specify in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box. All options are listed in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Target Server Properties </font></b>drop-down list.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="89858"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING: </font></b></a>The target server <i class="emphasis">must</i> be configured with the same communication back end as the one used by the VxWorks target agent. See <a href="c-tools2.html#84227"><i class="title">Back End</i></a> and <a href="c-builder6.html#99096"><i class="title">4.6 Configuring the Target-Host Communication Interface</i></a>.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84199">Authorizations</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85163"> </a>By default, anyone on a networked Tornado site who connects to the Tornado registry you are using can connect to any target server registered there. Use the properties in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Authorizations</font></b> list to limit who can use your target server, or to prevent others from using it altogether.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="89881"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION: </font></b></a>The target-server authorization mechanism assumes a collaborating group of users; it is not secure against malicious use. If you are concerned about interference from malicious users, isolate your PC from any network that such users may be able to reach.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -