Skip to content

Files

Latest commit

 

History

History
235 lines (226 loc) · 9.59 KB

AdvancedUsage.md

File metadata and controls

235 lines (226 loc) · 9.59 KB
layout title permalink
default
Advanced Usage
/AdvancedUsage.htm

Advanced Usage

Communication with Galileo

Open up a file explorer window and type the following into the address bar:
\\YourGalileoName\c$
<div class="panel panel-default">
  <div class="panel-heading">
    <h4 class="panel-title">
      <a data-toggle="collapse" data-parent="#accordion0" href="#collapseRemoteDebugging">
        Configure remote debugging
      </a>
    </h4>
  </div>
  <div id="collapseRemoteDebugging" class="panel-collapse collapse">
    <div class="panel-body">
      <p>
	    With your project open in Visual Studio:
        <ul>
          <li>
		    Right click on your project (not solution) in the Solution Explorer and select <kbd>Properties</kbd><br/>
            <img src="images/ConfigureRemoteDebugger1.png"/>
		  </li>
          <li>Expand <kbd>Configuration Properties</kbd></li>
          <li>Select the <kbd>Debugging</kbd> tree item</li>
          <li>Change the <kbd>Debugger to launch</kbd> to <kbd>Remote Windows Debugger</kbd></li>
          <li>
			Configure the debug page like the following picture, paying close attention to the debug settings:<br>
            <img src="images/ConfigureRemoteDebugger.png"/>
          </li>
        </ul>
      </p>
      <div class="panel panel-info">
        <div class="panel-heading">Visual Studio Debug Settings</div>
        <div class="panel-body">
          Please change the following settings to configure remote debugging:<br/>
          Remote Command: <kbd>c:\test\$(TargetFileName)</kbd><br/>
          Working Directory: <kbd>c:\test</kbd><br/>
          Remote Server Nane: <kbd>mygalileo</kbd><br/>
          Deployment Directory: <kbd>c:\test</kbd><br/>
          <br/>
          <b>NOTE:</b> If you want to change the directory that your project is deployed to and run out of you will need to change all of the places it says c:\test\ to your desired path.<br/>
          <b>NOTE:</b> If you change your Galileo's name, you will need to change the Remote Server Name to match.
        </div>
      </div>
        
      <h4>Configure remote deploying</h4>
      Before you close the Property Pages, select the <kbd>Configuration Manager...</kbd> button from the upper right corner.<br/>
      Make sure "Deploy" is checked for your project<br/>
      <img src="images/EnableDeployment.png"/><br/>
    </div>
  </div>
</div>

Customized Experience

  1. From a file explorer window, navigate to \\mygalileo\c$\Windows\System32\Boot
  2. If prompted enter the username as \Administrator and the password as admin
  3. Right click on autorun.cmd and select Edit
  4. At the end of the file add: start YourAppLocation\YourAppName.exe
<div class="panel panel-default">
  <div class="panel-heading">
    <h4 class="panel-title">
      <a data-toggle="collapse" data-parent="#accordion1" href="#collapseGalileoName">
        Changing your Galileo's Name
      </a>
    </h4>
  </div>
  <div id="collapseGalileoName" class="panel-collapse collapse">
    <div class="panel-body">
	  <p>
        Through telnet, run SetComputerName using the following line<br/>
        <kbd>SetComputerName YourNewName</kbd><br/>
      </p>
      <div class="panel panel-danger">
        <div class="panel-heading">Note:</div>
        <div class="panel-body">
          If you change your Galileo's name, it will break remote deployment and you will need to change the remote debugging/deployment settings on all projects to match.
        </div>
      </div>
    </div>
  </div>
</div>

Through telnet, run 'tlist' to view currently running tasks
C:\>tlist
0 System Process
4 System
176 smss.exe
256 csrss.exe
284 wininit.exe
292 csrss.exe
308 winlogon.exe
328 services.exe
340 lsass.exe
420 svchost.exe
752 cmd.exe
764 msvsmon.exe
772 Galileo_eboot.exe
780 httpsrv.exe
788 ftpd.exe
796 telnetd.exe
804 mwstartnet.exe
860 msvsmon.exe
1284 TemperatureSensor.exe
1472 cmd.exe
112 tlist.exe

Through telnet, run 'kill PID' or 'kill Name' to kill a currently running task
C:\>kill 1284
process TemperatureSensor.exe (1284) - '' killed
C:\>kill TemperatureSensor.exe
process TemperatureSensor.exe (1284) - '' killed

Note:
Using 'kill Name' on will close all tasks with that name.

Network Connectivity

An often overlooked option for wirelessly connecting your Galileo to the internet is to use a Wi-Fi to Ethernet adapter.


Netgear WNCE2001 pictured
<div class="panel panel-default">
  <div class="panel-heading">
    <h4 class="panel-title">
      <a data-toggle="collapse" data-parent="#accordion2" href="#collapseBridgeNetworkConnection">
        Bridge your PC's network connection to the Galileo
      </a>
    </h4>
  </div>
  <div id="collapseBridgeNetworkConnection" class="panel-collapse collapse">
    <div class="panel-body">
      <p>You can provide internet connectivity (wireless or other) by sharing, or "bridging", your PC's network connection.</p>
	  <p>When you connect your Galileo to your PC directly (as outlined <a href="./SetupGalileo.htm" target="_blank">here</a>), then you can share the network connection the PC is using to connect to the internet with the Galileo by following these steps:</p>
	  <ul>
	    <li>Open the "<b>Network and Sharing Center</b>" from the Start Screen.</li>
		<img src="images/Start_NetworkandSharingCenter.png"><br/><br/>
		<li>Select "<b>Change adapter settings</b>" from the left hand column.</li>
		<img src="images/NetworkandSharingCenter.png"><br/><br/>
		<li>In the network connection settings select "<b>Layout->Menu bar</b>" from the "<b>Organize</b>" drop down menu.</li>
		<img src="images/NetworkConnections.png"><br/><br/>
		<li>Select your "Ethernet" connection (to the Galileo) and your other connection (to the internet) [<i>"Wi-Fi" pictured</i>].</li>
		<img src="images/NetworkBridgeConnections.png"><br/><br/>
		<li>Wait for connection to be created...</li>
		<img src="images/Status_BridgeWait.png"><br/><br/>
		<li>Once the bridge has been created and new connection will appear, labelled "Network Bridge".</li>
		<img src="images/NetworkBridge.png"><br/><br/>
	  </ul>
	  <p>Now that your network bridge has been setup, your Galileo should be able to access the internet via your PC's internet connection.</p>
	  <p>Use <kbd>ping bing.com</kbd> from a telnet session to your Galileo to confirm.</p>
    </div>
  </div>
</div>

Return to homepage