Difference between revisions of "Remote Access"

m
m
Line 5: Line 5:
  
 
=Can I remotely access my AlarmDecoder?=
 
=Can I remotely access my AlarmDecoder?=
You sure can!  There are currently two ways to do so: using [http://github.com/nutechsoftware/ser2sock ser2sock] or the [[AlarmDecoderGUI]].  It's also likely possible with another Serial-to-IP interface, though this is untested.
+
You sure can!   
  
We generally recommend using [http://github.com/nutechsoftware/ser2sock ser2sock] to expose your AlarmDecoder.  Currently this only works under Linux and OSX, so you'll need to use the [[AlarmDecoderGUI]] if you need to do so under WindowsBy using [http://github.com/nutechsoftware/ser2sock ser2sock] it also gives you the ability to use the built-in SSL encryption and authentication.
+
There are currently two ways to do so: using [http://github.com/nutechsoftware/ser2sock ser2sock] or the [[AlarmDecoderGUI]].  It's also likely possible with another Serial-to-IP interface, though this is untested.
 +
 
 +
We generally recommend using [http://github.com/nutechsoftware/ser2sock ser2sock] to expose your AlarmDecoder since it also gives you the ability to use the built-in SSL encryption and authentication.  See [[SSL]] for more information on SSL support. Currently this only works under Linux and OSX, so you'll need to use the [[AlarmDecoderGUI]] if you need remote access via Windows.
  
 
=How do I set up remote access with ser2sock?=
 
=How do I set up remote access with ser2sock?=
Line 16: Line 18:
 
#* <tt>telnet localhost 10000</tt>
 
#* <tt>telnet localhost 10000</tt>
  
=How do I set remote access with the AlarmDecoderGUI?=
+
=How do I set up remote access with the AlarmDecoderGUI?=
 
# Install a copy of the [[AlarmDecoderGUI]].
 
# Install a copy of the [[AlarmDecoderGUI]].
 
# Open and click <tt>System -> Configure</tt>.
 
# Open and click <tt>System -> Configure</tt>.

Revision as of 13:38, 20 December 2013



Can I remotely access my AlarmDecoder?

You sure can!

There are currently two ways to do so: using ser2sock or the AlarmDecoderGUI. It's also likely possible with another Serial-to-IP interface, though this is untested.

We generally recommend using ser2sock to expose your AlarmDecoder since it also gives you the ability to use the built-in SSL encryption and authentication. See SSL for more information on SSL support. Currently this only works under Linux and OSX, so you'll need to use the AlarmDecoderGUI if you need remote access via Windows.

How do I set up remote access with ser2sock?

  1. Grab a copy of ser2sock.
  2. Read the INSTALL file for installation and configuration instructions.
  3. Confirm that ser2sock is working:
    • telnet localhost 10000

How do I set up remote access with the AlarmDecoderGUI?

  1. Install a copy of the AlarmDecoderGUI.
  2. Open and click System -> Configure.
  3. Check the Serial Port Enabled box and fill in your device name.
    • This can be either something like COM1 for Windows, or /dev/ttyUSB0 for Linux/OSX.
  4. Check the Socket Server Enabled box.
  5. Click OK.
  6. Confirm that the AlarmDecoderGUI is functioning:
    • telnet localhost 10000

Talking to your remote AlarmDecoder

At this point your device should be working so you can connect to it a couple of ways.

  • AlarmDecoderGUI
    1. Open System -> Configuration
    2. Check Socket Client Enabled.
    3. Fill in hostname and port.
    4. Optional: Enable secure socket (SSL) support. See SSL for more information.
    5. Click OK.
  • Python API
    1. See the examples/socket_example.py and examples/ssl_example.py.
  • AlarmDecoder Android app - Coming Soon!