Benutzer-Werkzeuge

Webseiten-Werkzeuge


de:sysadmin:tools:kermit

kermit (serial ttyS0)

kermit zur Verbindung mit seriellen Geräten, (serial ttyS0)

Beispiel:

Einem W&T Webthermometer eine IP-Adresse verpassen

$ kermit

Linux Kermit>set modem type none
Linux Kermit>set line /dev/ttyS0
Linux Kermit>set speed 9600
/dev/ttyS0, 9600 bps
Linux Kermit>connect
Connecting to /dev/ttyS0, speed 9600
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
?Carrier required but not detected.
***********************************
 Hint: To CONNECT to a serial device that
 is not presenting the Carrier Detect signal,
 first tell C-Kermit to:

   SET CARRIER-WATCH OFF

***********************************

Linux Kermit>set carrier-watch off
Linux Kermit>connect
Connecting to /dev/ttyS0, speed 9600
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
<beim anschalten des webthermomethers noch ein x drücken>

IP no.+<ENTER>: 192.168.136.6
IP no.+<ENTER>: FAIL 192.168.136.001,255.000.000.000,000.000.000.000-1+w0
IP no.+<ENTER>: IP no.+<ENTER>: 193.192.136.006
IP no.+<ENTER>: 192.168.136.006

Beispiel2:

Lara Eco Config

> kermit

Linux Kermit>set line /dev/ttyS0             <------------
Linux Kermit>set speed 115200              <------------
/dev/ttyS0, 115200 bps
Linux Kermit>show communication

Communications Parameters:
 Line: /dev/ttyS0, speed: 115200, mode: local, modem: hayes-2400
 Parity: none, stop-bits: (default) (8N1)
 Duplex: full, flow: xon/xoff, handshake: none
 Carrier-watch: auto, close-on-disconnect: off
 Lockfile: /var/lock/LCK..ttyS0
 Terminal bytesize: 8, escape character: 28 (^\)

 Carrier Detect      (CD):  On
 Dataset Ready       (DSR): Off
 Clear To Send       (CTS): On
 Ring Indicator      (RI):  Off
 Data Terminal Ready (DTR): On
 Request To Send     (RTS): On

Type SHOW DIAL to see DIAL-related items.
Type SHOW MODEM to see modem-related items.

Linux Kermit>connect                           <--------------
Connecting to /dev/ttyS0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled

Connecting to /dev/ttyS0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------

Welcome!
Choose a login for the following features:
-Initial IP configuration: "config".
-Unblock currently blocked users: "unblock".
192.168.42.63 login: config
IP autoconfiguration (none/dhcp/bootp) [none]: none
IP [192.168.42.63]: 192.168.9.5
NetMask [255.255.254.0]: 255.255.255.0
Gateway (0.0.0.0 for none) [192.168.42.1]: 193.168.9.5

disconnect

Linux Kermit>
Linux Kermit>q
Closing /dev/ttyS0...OK

Alternative: Screen

Seit dem mir ein Kollege den Tip gab, dass man mit dem Program Screen sich auch auf Serielle Ports hängen kann, habe ich nichts anderes mehr verwendet.


de/sysadmin/tools/kermit.txt · Zuletzt geändert: 2019-09-28 23:15 von hella

Seiten-Werkzeuge

Mastodon Twitter