<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title> – Connecting</title>
    <link>/docs/motorcortex-io-tools/motorcortex-desk/connecting/</link>
    <description>Recent content in Connecting on </description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/docs/motorcortex-io-tools/motorcortex-desk/connecting/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: The Connection panel</title>
      <link>/docs/motorcortex-io-tools/motorcortex-desk/connecting/panel/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/motorcortex-io-tools/motorcortex-desk/connecting/panel/</guid>
      <description>
        
        
        &lt;figure&gt;&lt;img src=&#34;/docs/motorcortex-io-tools/motorcortex-desk/connecting/_media/connecting-panel.png&#34;
         alt=&#34;Connection panel, connected&#34; width=&#34;800&#34;/&gt;&lt;/a&gt;
&lt;/figure&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;URL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Controller hostname or IP address (e.g. &lt;span class=&#34;mcx-ip&#34; tabindex=&#34;0&#34;&gt;&lt;code&gt;controller_ip_address&lt;/code&gt;&lt;span class=&#34;mcx-ip-tip&#34; role=&#34;tooltip&#34;&gt;The IP address of your controller. In most cases 192.168.2.100.&lt;/span&gt;&lt;/span&gt; or &lt;code&gt;controller.local&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Lock icon&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Toggle between secured (&lt;code&gt;wss://&lt;/code&gt;) and insecure (&lt;code&gt;ws://&lt;/code&gt;) WebSocket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Username&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Defaults to &lt;code&gt;administrator&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Leave empty when no password is set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Connect / Disconnect / Switch&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Opens or closes the session, or retargets it. See the &lt;strong&gt;Switching&lt;/strong&gt; tab&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The URL, the secured flag and the username are remembered in the browser; the password is not.&lt;/p&gt;
&lt;p&gt;Pasting a full URL works too: &lt;span class=&#34;mcx-ip&#34; tabindex=&#34;0&#34;&gt;&lt;code&gt;wss://controller_ip_address&lt;/code&gt;&lt;span class=&#34;mcx-ip-tip&#34; role=&#34;tooltip&#34;&gt;The IP address of your controller. In most cases 192.168.2.100.&lt;/span&gt;&lt;/span&gt; sets the host and flips the lock to secured, &lt;code&gt;ws://…&lt;/code&gt; to
insecure.&lt;/p&gt;
&lt;h4 id=&#34;recent-controllers&#34;&gt;Recent controllers&lt;/h4&gt;
&lt;figure&gt;&lt;img src=&#34;/docs/motorcortex-io-tools/motorcortex-desk/connecting/_media/connecting-recent.png&#34;
         alt=&#34;Recent-controllers list open under the address field&#34; width=&#34;800&#34;/&gt;&lt;/a&gt;
&lt;/figure&gt;

&lt;p&gt;Clicking into the address field drops down the last five controllers you connected to &lt;strong&gt;successfully&lt;/strong&gt;, so a typo
never joins the list. Typing narrows it, and the controller already in the field is left out.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click an entry, or walk to it with &lt;strong&gt;↑&lt;/strong&gt; / &lt;strong&gt;↓&lt;/strong&gt; and press &lt;strong&gt;Enter&lt;/strong&gt;, to fill in both the host and its scheme;
the lock icon follows.&lt;/li&gt;
&lt;li&gt;Press &lt;strong&gt;Escape&lt;/strong&gt; to close the list.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The same controller reached over both &lt;code&gt;ws://&lt;/code&gt; and &lt;code&gt;wss://&lt;/code&gt; is one entry; the scheme you last used wins.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Secured and insecure connections</title>
      <link>/docs/motorcortex-io-tools/motorcortex-desk/connecting/security/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/motorcortex-io-tools/motorcortex-desk/connecting/security/</guid>
      <description>
        
        
        &lt;p&gt;Desk connects with &lt;strong&gt;wss://&lt;/strong&gt; (encrypted) by default. Click the lock icon to fall back to &lt;strong&gt;ws://&lt;/strong&gt; for a controller
without TLS.&lt;/p&gt;
&lt;h4 id=&#34;the-certificate-and-why-a-connection-can-fail-silently&#34;&gt;The certificate, and why a connection can fail silently&lt;/h4&gt;
&lt;p&gt;Motorcortex controllers use a self-signed certificate. A browser will not open a &lt;code&gt;wss://&lt;/code&gt; WebSocket to a certificate
it has never been shown, and it does so without a visible error. Desk simply never reaches &lt;strong&gt;Connected&lt;/strong&gt;.&lt;/p&gt;



 
 




 



&lt;div class=&#34;alert alert-warning&#34; role=&#34;alert&#34;&gt;&lt;h4 class=&#34;alert-heading&#34;&gt;Warning&lt;/h4&gt;
 &lt;p&gt;Before the first wss:// connection, open the controller in a browser tab (e.g. https://controller_ip_address) and accept the warning. Without that the browser blocks the WebSocket silently.&lt;/p&gt;
&lt;/div&gt;


&lt;p&gt;You do this once per controller per browser.&lt;/p&gt;
&lt;h4 id=&#34;ports&#34;&gt;Ports&lt;/h4&gt;
&lt;p&gt;You never type a port.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Classic controllers&lt;/strong&gt; expose two WebSocket ports: &lt;strong&gt;5568&lt;/strong&gt; for request/reply and &lt;strong&gt;5567&lt;/strong&gt; for the live data
stream.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Newer images&lt;/strong&gt; put both behind a single TLS port through a reverse proxy.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Desk probes for the single-port arrangement on connect and falls back to the two-port scheme when the probe fails.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Connection states</title>
      <link>/docs/motorcortex-io-tools/motorcortex-desk/connecting/states/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/motorcortex-io-tools/motorcortex-desk/connecting/states/</guid>
      <description>
        
        
        &lt;p&gt;The state is a chip in the Connection tab header, so it stays visible even when another tab is in front.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&#34;/docs/motorcortex-io-tools/motorcortex-desk/connecting/_media/connecting-panel-disconnected.png&#34;
         alt=&#34;Connection panel, disconnected&#34; width=&#34;800&#34;/&gt;&lt;/a&gt;
&lt;/figure&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Disconnected&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No session; click Connect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Connecting…&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Opening the session and loading the parameter tree&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Connected&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Live: parameters poll and subscribed traces stream&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Reconnecting…&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The data stream dropped; Desk is re-establishing it automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h4 id=&#34;reconnecting-is-not-the-same-as-connecting-again&#34;&gt;Reconnecting is not the same as connecting again&lt;/h4&gt;
&lt;p&gt;Desk holds two sockets. When only the pub/sub socket dies it reconnects on its own and resumes streaming into the
&lt;em&gt;existing&lt;/em&gt; traces. Your trace list, colours and axes are all kept, and there is nothing for you to do but wait.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reconnecting…&lt;/strong&gt; is therefore normal on a busy network and not a reason to press Disconnect.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Switching controllers</title>
      <link>/docs/motorcortex-io-tools/motorcortex-desk/connecting/switching/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/motorcortex-io-tools/motorcortex-desk/connecting/switching/</guid>
      <description>
        
        
        &lt;figure&gt;&lt;img src=&#34;/docs/motorcortex-io-tools/motorcortex-desk/connecting/_media/connecting-switch.png&#34;
         alt=&#34;Connection panel with a different address typed and the button reading Switch&#34; width=&#34;800&#34;/&gt;&lt;/a&gt;
&lt;/figure&gt;

&lt;p&gt;While a session is up, typing a &lt;em&gt;different&lt;/em&gt; address (another host, or the same host with the lock flipped) changes
the button from &lt;strong&gt;Disconnect&lt;/strong&gt; to &lt;strong&gt;Switch&lt;/strong&gt;, with a tooltip naming the target. Pressing it hangs up and dials the new
controller as soon as the old session is down. Typing the live host back restores &lt;strong&gt;Disconnect&lt;/strong&gt;.&lt;/p&gt;



 
 




 



&lt;div class=&#34;alert alert-warning&#34; role=&#34;alert&#34;&gt;&lt;h4 class=&#34;alert-heading&#34;&gt;Warning&lt;/h4&gt;
 &lt;p&gt;Switch ends the running session and its traces, exactly as Disconnect does. Both carry the same styling for that reason.&lt;/p&gt;
&lt;/div&gt;


&lt;h4 id=&#34;what-happens-to-your-traces&#34;&gt;What happens to your traces&lt;/h4&gt;
&lt;p&gt;Traces survive a &lt;em&gt;reconnect&lt;/em&gt; on purpose: that is what you want for the same machine.&lt;/p&gt;
&lt;p&gt;Connecting to a &lt;em&gt;different&lt;/em&gt; controller is another matter. Desk validates every subscribed path against the new
parameter tree and removes the ones that are not there, or whose channel index is out of range, reporting what went
with a toast such as &lt;code&gt;Removed 3 signals not on this controller&lt;/code&gt;. The rest resubscribe normally.&lt;/p&gt;
&lt;h4 id=&#34;live-data-and-replay-are-exclusive&#34;&gt;Live data and Replay are exclusive&lt;/h4&gt;
&lt;p&gt;Loading a file in the &lt;a href=&#34;/docs/motorcortex-io-tools/motorcortex-desk/replay/&#34;&gt;Replay&lt;/a&gt; panel disconnects a
live session, and starting a connection clears loaded replay traces. Desk switches for you. There is nothing to
disable first.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
