Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #25370

Re: How to realize a 'serial server' (with com port emulation on pc Windows) ?

From Björn Lundin <b.f.lundin@gmail.com>
Newsgroups comp.sys.raspberry-pi
Subject Re: How to realize a 'serial server' (with com port emulation on pc Windows) ?
Date 2021-01-01 15:30 +0100
Organization A noiseless patient Spider
Message-ID <rsnbla$af8$1@dont-email.me> (permalink)
References <rsi5qr$1ele$1@gioia.aioe.org> <rsiev2$rdq$1@dont-email.me> <rslct0$cqt$2@gioia.aioe.org>

Show all headers | View raw


Den 2020-12-31 kl. 21:38, skrev RobertoA:
> 
> I cannot fully understand how to use the example code described, but it 
> seems to me very useful to realize what I would like to achieve
> How to use this code on Raspberry board?


Hmm, if you don't see that, then it is not for you.
Basically you adapt the code for your purposes.
You assign values to variables
port
client_ip if you want a white list - otherwise remove that if-section
tty

then add a dbg proc like (or remove calls to dbg)
proc dbg {what } {
   puts $what
}

then you run it via tclsh (I think it is installed in raspbian else
sudo apt install tcl)

The filevent does the rest

But as others have pointed out - nc/netcat does the job as well
If you are not a programmer - then that is a better route.
If you needs are more special - then use something you can adapt 
yourself - like above

-- 
Björn

Back to comp.sys.raspberry-pi | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-30 16:19 +0100
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Andy Burns <usenet@andyburns.uk> - 2020-12-30 16:22 +0000
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Andy Burns <usenet@andyburns.uk> - 2020-12-30 16:41 +0000
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? A. Dumas <alexandre@dumas.fr.invalid> - 2020-12-31 02:02 +0000
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:36 +0100
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Martin Gregorie <martin@mydomain.invalid> - 2020-12-31 21:03 +0000
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Andy Burns <usenet@andyburns.uk> - 2020-12-31 21:22 +0000
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2021-01-02 11:10 +0100
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Björn Lundin <b.f.lundin@gmail.com> - 2020-12-30 18:55 +0100
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:38 +0100
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Björn Lundin <b.f.lundin@gmail.com> - 2021-01-01 15:30 +0100
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2021-01-02 11:14 +0100
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Björn Lundin <b.f.lundin@gmail.com> - 2021-01-02 13:24 +0100
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Deloptes <deloptes@gmail.com> - 2020-12-30 19:02 +0100
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:40 +0100
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Deloptes <deloptes@gmail.com> - 2021-01-01 21:54 +0100
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2021-01-02 11:01 +0100
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Martin Gregorie <martin@mydomain.invalid> - 2020-12-30 18:31 +0000
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Deloptes <deloptes@gmail.com> - 2020-12-30 22:21 +0100
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2020-12-30 18:52 -0500
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Martin Gregorie <martin@mydomain.invalid> - 2020-12-31 00:58 +0000
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2020-12-30 20:33 -0500
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Deloptes <deloptes@gmail.com> - 2020-12-31 09:37 +0100
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? A. Dumas <alexandre@dumas.fr.invalid> - 2020-12-31 02:14 +0000
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2020-12-31 17:37 -0500
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? A. Dumas <alexandre@dumas.fr.invalid> - 2020-12-31 02:14 +0000
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Andy Burns <usenet@andyburns.uk> - 2020-12-31 10:29 +0000
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:44 +0100
            Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Andy Burns <usenet@andyburns.uk> - 2020-12-31 21:18 +0000
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2020-12-31 17:50 -0500
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:44 +0100
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? A. Dumas <alexandre@dumas.fr.invalid> - 2020-12-31 02:04 +0000
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:41 +0100
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Martin Gregorie <martin@mydomain.invalid> - 2020-12-31 21:31 +0000
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2021-01-02 11:20 +0100
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Anssi Saari <as@sci.fi> - 2020-12-31 00:15 +0200
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Jim Jackson <jj@franjam.org.uk> - 2020-12-30 22:19 +0000
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2020-12-31 21:46 +0100
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Jim Jackson <jj@franjam.org.uk> - 2021-01-01 20:29 +0000
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Andy Burns <usenet@andyburns.uk> - 2021-01-01 21:28 +0000
            Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2021-01-02 11:23 +0100
              Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Ahem A Rivet's Shot <steveo@eircom.net> - 2021-01-02 10:41 +0000
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? A. Dumas <alexandre@dumas.fr.invalid> - 2020-12-31 02:09 +0000
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Theo <theom+news@chiark.greenend.org.uk> - 2020-12-30 22:17 +0000
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? A. Dumas <alexandre@dumas.fr.invalid> - 2020-12-31 02:14 +0000
  Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Grant Taylor <gtaylor@tnetconsulting.net> - 2020-12-31 17:39 -0700
    Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? RobertoA <amorosik@tiscalinet.it> - 2021-01-02 11:08 +0100
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Grant Taylor <gtaylor@tnetconsulting.net> - 2021-01-02 12:29 -0700
      Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2021-01-02 14:48 -0500
        Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Grant Taylor <gtaylor@tnetconsulting.net> - 2021-01-02 13:31 -0700
          Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2021-01-03 12:27 -0500
            Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Grant Taylor <gtaylor@tnetconsulting.net> - 2021-01-03 14:22 -0700
            Re: How to realize a 'serial server' (with com port emulation on pc Windows) ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2021-01-03 22:27 -0500

csiph-web