CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


software:system-commander:tcp-socket-multiplexing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:system-commander:tcp-socket-multiplexing [2012/10/31 12:16]
jarrod
software:system-commander:tcp-socket-multiplexing [2014/12/15 21:32] (current)
jarrod [Configure the Communication Slots]
Line 2: Line 2:
 One very useful functionality offered by the CommandFusion [[hardware:​lan-bridge|LAN Bridge]] is the ability to multiplex a TCP server socket to allow multiple client connections. One very useful functionality offered by the CommandFusion [[hardware:​lan-bridge|LAN Bridge]] is the ability to multiplex a TCP server socket to allow multiple client connections.
  
-Basically this means any devices that traditionally only accept a single connection at a time over TCP can be extended to allow multiple clients (iPads, control systems, etc) to connect simultaneously.+Basically this means devices that traditionally only accept a single connection at a time over TCP can be extended to allow multiple clients (iPads, control systems, etc) to connect simultaneously.
  
 ===== Examples of Uses ===== ===== Examples of Uses =====
Line 8: Line 8:
   * Clipsal CNI (ethernet interface to the Clipsal C-Bus network)   * Clipsal CNI (ethernet interface to the Clipsal C-Bus network)
   * Global Cache GC-100 units (iTach units allow multiple connections natively).   * Global Cache GC-100 units (iTach units allow multiple connections natively).
 +  * Crestron TCP Server symbol
 {{:​software:​system-commander:​multiplexing_diagram.svg|}} {{:​software:​system-commander:​multiplexing_diagram.svg|}}
  
Line 21: Line 22:
   - Slot #13 configured as a TCP Client - the connection to the target device   - Slot #13 configured as a TCP Client - the connection to the target device
   - Enter the IP address of the target device   - Enter the IP address of the target device
-  - Enter the port number of the TCP server ​socket the target device is listening on+  - Enter the port number of the TCP socket ​that the target device is listening on. This port depends entirely on how the third party device communicates. 10001 is just an example.
   - The LAN Bridge shares a maximum of 25 simultaneous connections across any defined slots. Each TCP Client counts as 1 connection, whilst each incoming connection to TCP Server slots counts as another connection.   - The LAN Bridge shares a maximum of 25 simultaneous connections across any defined slots. Each TCP Client counts as 1 connection, whilst each incoming connection to TCP Server slots counts as another connection.
   - Slot #14 configured as a TCP Server - the connection to each iPad, etc   - Slot #14 configured as a TCP Server - the connection to each iPad, etc
   - Enter IP address of 0.0.0.0 to allow any client IP address to connect   - Enter IP address of 0.0.0.0 to allow any client IP address to connect
-  - Enter a port number that all clients (iPads, etc) will use to connect+  - Enter a port number that all clients (iPads, etc) will use to connect. This can be any port number you desire, just so long as you use the same port in both the LAN Bridge config and your guiDesigner system.
  
 ==== Bridge the Communication Slots ==== ==== Bridge the Communication Slots ====
Line 36: Line 37:
   - Data received on slot #13 will be bridged (forwarded) to slot #14 (any TCP Clients connected to the server, iPads, etc)   - Data received on slot #13 will be bridged (forwarded) to slot #14 (any TCP Clients connected to the server, iPads, etc)
   - Bridging data coming from slot #14 (TCP Clients, iPads, etc)   - Bridging data coming from slot #14 (TCP Clients, iPads, etc)
-  - Data received on slot #14 will be bridged (forwarded) to slot #13 (Clipsal CNI in this case) +  - Data received on slot #14 will be bridged (forwarded) to slot #13 (Clipsal CNI in this case) 
 + 
 +==== Save and Reset ==== 
 +Before changes to communication slots become active, you need to save them to the LAN Bridge by pressing the '​Save'​ button next to the relevant sections of System Commander.\\ 
 +You will also need to reset the LAN Bridge for communication slot changes to become active. 
 + 
 +After the changes are saved and the LAN Bridge has been reset, the last step is to change the configuration on your TCP Clients (iPads, etc) to communicate to the LAN Bridge instead of directly to the target device.\\ 
 +In this example, the iPads would be changed to communicate to the IP of the LAN Bridge on TCP port 10004. 
 + 
 +Now you can have multiple devices connecting and communicating with a single TCP Server at once, bypassing and single connection limitations of the target device.
software/system-commander/tcp-socket-multiplexing.1351685760.txt.gz · Last modified: 2012/10/31 12:16 by jarrod