Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
app-notes:serial-tunneling [2024/03/12 17:32]
gray [socat Linux tool for mapping IP addresses]
app-notes:serial-tunneling [2024/03/12 20:11] (current)
dodenhoeft [On Windows]
Line 13: Line 13:
 {{:​app-notes:​serial_tunneling2.png?​nolink&​400|}} {{:​app-notes:​serial_tunneling2.png?​nolink&​400|}}
  
-==== PC ==== +==== On Windows ​==== 
-  * Downlad the Serial Port software ​from the download ara +  * Downlad ​and install ​the TCP to Serial Port software ​[[https://​freecomportredirector.com/​|https://​freecomportredirector.com/​]]
-  * Install the Serial to Ethernet Connector software+
   * Create connection   * Create connection
   * Connect serial port to remote host (Client)   * Connect serial port to remote host (Client)
-  * Serial Port e.g. COM10+  * Serial Port e.g. COM1
   * Remote IP from the router, e.g. 192.168.1.1   * Remote IP from the router, e.g. 192.168.1.1
   * Port number 2000   * Port number 2000
 +Another example:
  
-{{:​app-notes:​serial-tunneling3.png?nolink&400|}}+{{:​app-notes:​free-com-port-redirector.png?400|}}
  
 ===== Test ===== ===== Test =====
Line 30: Line 30:
   * Use Putty to connect to the COM port of the physical serial line of the PC with the same paramters   * Use Putty to connect to the COM port of the physical serial line of the PC with the same paramters
  
-===== socat Linux tool for mapping IP addresses =====+==== On Linux ====
  
 The socat tool can be used to access the serial interface tunnel via the console using TCP. The socat tool can be used to access the serial interface tunnel via the console using TCP.
Line 37: Line 37:
  
 <​konsole>​ <​konsole>​
-socat PTY,​link=/​dev/"​virtual interface",​echo=0,​wait-slave TCP:"​IP-adresse":"​port-nummer",​retry=5+~ $ socat PTY,​link=/​dev/"​virtual interface",​echo=0,​wait-slave TCP:"​IP-adresse":"​port-nummer",​retry=5
 </​konsole>​ </​konsole>​
  
Line 43: Line 43:
  
 <​konsole>​ <​konsole>​
-socat STDIO,​raw,​echo=0,​escape=0x03 /​dev/​“virtual interface“,​raw,​echo=0+~ $ socat STDIO,​raw,​echo=0,​escape=0x03 /​dev/​“virtual interface“,​raw,​echo=0
 NB2700 login: root NB2700 login: root
- 
 Password: Password:
- 
 ________________________________________________________________________________ ________________________________________________________________________________
- 
- 
 NB2700 (c) 2004-2023, NetModule AG NB2700 (c) 2004-2023, NetModule AG
- 
 ________________________________________________________________________________ ________________________________________________________________________________
- 
- 
 BusyBox v1.30.1 (2023-07-31 14:09:01 UTC) built-in shell (ash) BusyBox v1.30.1 (2023-07-31 14:09:01 UTC) built-in shell (ash)
- 
 ~ $ ~ $
 </​konsole>​ </​konsole>​
-