Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.raspberry-pi > #25325 > unrolled thread
| Started by | RobertoA <amorosik@tiscalinet.it> |
|---|---|
| First post | 2020-12-30 16:19 +0100 |
| Last post | 2021-01-03 22:27 -0500 |
| Articles | 20 on this page of 53 — 12 participants |
Back to article view | Back to comp.sys.raspberry-pi
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
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | Martin Gregorie <martin@mydomain.invalid> |
|---|---|
| Date | 2020-12-31 00:58 +0000 |
| Message-ID | <rsj7oh$reu$2@dont-email.me> |
| In reply to | #25341 |
On Wed, 30 Dec 2020 18:52:14 -0500, Dennis Lee Bieber wrote: > On Wed, 30 Dec 2020 18:31:07 -0000 (UTC), Martin Gregorie > <martin@mydomain.invalid> declaimed the following: > > >>Ignore the gpio lines: Just get a standard a USB-serial adapter. Each >>supports a single serial line, so get one for each device with a serial >>port that you need to connect to the Pi and either plug them directly >>into the Pi or, if you run out of USB ports, via a USN connector block. >> >> > That doesn't answer the OP's actual request -- they want the ports > physically on the R-Pi to be VISIBLE on the host (desktop/laptop) > computer that is connecting to the R-Pi. > It answers the first part of his problem: getting signals to and from a user process to a D-9 or D-25 serial port without having to build something on a GPIO expansion card. Once that's done the rest should be fairly simple programming. If the OP speaks C, then whipping up a program based round the poll() library function is pretty straight forward, not the least because it avoids having to write any multithreaded code. Don't like C? Write it in Perl or, probably, Python instead. Java isn't really a starter for this job since it can't handle serial ports without helper processes, which would have to be written in C, Perl or Python. -- -- Martin | martin at Gregorie | gregorie dot org
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2020-12-30 20:33 -0500 |
| Message-ID | <cbaqufpd9o3euhbcmj451v2mbfqkahd3fg@4ax.com> |
| In reply to | #25342 |
On Thu, 31 Dec 2020 00:58:57 -0000 (UTC), Martin Gregorie <martin@mydomain.invalid> declaimed the following: >It answers the first part of his problem: getting signals to and from a >user process to a D-9 or D-25 serial port without having to build >something on a GPIO expansion card. > A 5-pack of TTL<>RS232 level shifters is available for only $6 via Amazon (US). SparkFun has one that includes the DB-9 connector for $16 https://www.sparkfun.com/products/449 Other than running wires between the R-Pi and the unit there isn't much to "build" (and this one likely can be mounted in a suitable hole in a chassis). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
[toc] | [prev] | [next] | [standalone]
| From | Deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2020-12-31 09:37 +0100 |
| Message-ID | <rsk2je$kkc$1@dont-email.me> |
| In reply to | #25343 |
Dennis Lee Bieber wrote: > A 5-pack of TTL<>RS232 level shifters is available for only $6 via > Amazon (US). > As said there is tons of crap and who buys on Amazon?! > SparkFun has one that includes the DB-9 connector for $16 > https://www.sparkfun.com/products/449 Other than running wires between the > R-Pi and the unit there isn't much to "build" (and this one likely can be > mounted in a suitable hole in a chassis). You can soldier your own RS323<>RS232 level shifter if skilled enough - it would guarantee quality compared to the 5pack for 6US$ Amazon sh*t. The parts cost me about 3-4,- the plastic case however cost 6,- :/. I added some transistor, capacitor and diode for the feedback from the TTL signalling.
[toc] | [prev] | [next] | [standalone]
| From | A. Dumas <alexandre@dumas.fr.invalid> |
|---|---|
| Date | 2020-12-31 02:14 +0000 |
| Message-ID | <5fed3414$0$278$e4fe514c@news.xs4all.nl> |
| In reply to | #25342 |
Martin Gregorie <martin@mydomain.invalid> wrote: > It answers the first part of his problem: getting signals to and from a > user process to a D-9 or D-25 serial port without having to build > something on a GPIO expansion card. He. Never. Mentioned. D9, D25 or RS232. Stop living in 1975.
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2020-12-31 17:37 -0500 |
| Message-ID | <saksuf9u5ujngc7l3qaiuk98rfrpfknsuf@4ax.com> |
| In reply to | #25348 |
On 31 Dec 2020 02:14:44 GMT, A. Dumas <alexandre@dumas.fr.invalid> declaimed the following: >Martin Gregorie <martin@mydomain.invalid> wrote: >> It answers the first part of his problem: getting signals to and from a >> user process to a D-9 or D-25 serial port without having to build >> something on a GPIO expansion card. > >He. Never. Mentioned. D9, D25 or RS232. Stop living in 1975. Most of the hardware I've had to interface with has required RS-232 levels. In truth, the only serial port device I have that did not need RS-232 levels is a Kenwood R-5000 receiver -- and in its day a 5V TTL to RS-232 level shifter was a separate accessory or something one had to build in order to control it. Kenwood finally put real RS-232 ports on the TS-570/590/2000 rigs. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
[toc] | [prev] | [next] | [standalone]
| From | A. Dumas <alexandre@dumas.fr.invalid> |
|---|---|
| Date | 2020-12-31 02:14 +0000 |
| Message-ID | <5fed33f8$1$304$e4fe514c@news.xs4all.nl> |
| In reply to | #25341 |
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote: > That doesn't answer the OP's actual request -- they want the ports > physically on the R-Pi to be VISIBLE on the host (desktop/laptop) computer > that is connecting to the R-Pi. > > Unfortunately, that likely means a commercial $$$ ($260) package Nope. Look at replies by Theo and Jim.
[toc] | [prev] | [next] | [standalone]
| From | Andy Burns <usenet@andyburns.uk> |
|---|---|
| Date | 2020-12-31 10:29 +0000 |
| Message-ID | <i55nfgF1j5nU1@mid.individual.net> |
| In reply to | #25349 |
A. Dumas wrote: > Look at replies by Theo and Jim. Does conserver provide a Windows COMx: driver? I didn't see one ...
[toc] | [prev] | [next] | [standalone]
| From | RobertoA <amorosik@tiscalinet.it> |
|---|---|
| Date | 2020-12-31 21:44 +0100 |
| Message-ID | <rsld88$cqt$6@gioia.aioe.org> |
| In reply to | #25352 |
Il 31/12/2020 11:29, Andy Burns ha scritto: > A. Dumas wrote: > >> Look at replies by Theo and Jim. > > Does conserver provide a Windows COMx: driver? I didn't see one ... > What do you mean when you refer to 'conserver'?
[toc] | [prev] | [next] | [standalone]
| From | Andy Burns <usenet@andyburns.uk> |
|---|---|
| Date | 2020-12-31 21:18 +0000 |
| Message-ID | <i56th2F8s7gU1@mid.individual.net> |
| In reply to | #25361 |
RobertoA wrote: > Il 31/12/2020 11:29, Andy Burns ha scritto: > >> A. Dumas wrote: >> >>> Look at replies by Theo and Jim. >> >> Does conserver provide a Windows COMx: driver? I didn't see one ... > > What do you mean when you refer to 'conserver'? <https://www.conserver.com>
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2020-12-31 17:50 -0500 |
| Message-ID | <o7lsufdirvuindq1tb3pqmt2cd1ve3unt3@4ax.com> |
| In reply to | #25352 |
On Thu, 31 Dec 2020 10:29:02 +0000, Andy Burns <usenet@andyburns.uk> declaimed the following: >A. Dumas wrote: > >> Look at replies by Theo and Jim. > >Does conserver provide a Windows COMx: driver? I didn't see one ... Looking at the documentation I doubt it... It appears to be Linux specific (unless one can build "console" client on Windows). It does not appear to grant passthrough access to arbitrary UARTs. Instead it appears to mirror system (login) consoles to remote systems. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
[toc] | [prev] | [next] | [standalone]
| From | RobertoA <amorosik@tiscalinet.it> |
|---|---|
| Date | 2020-12-31 21:44 +0100 |
| Message-ID | <rsld6d$cqt$5@gioia.aioe.org> |
| In reply to | #25341 |
Il 31/12/2020 00:52, Dennis Lee Bieber ha scritto:
> On Wed, 30 Dec 2020 18:31:07 -0000 (UTC), Martin Gregorie
> <martin@mydomain.invalid> declaimed the following:
>
>>>
>> Ignore the gpio lines: Just get a standard a USB-serial adapter. Each
>> supports a single serial line, so get one for each device with a serial
>> port that you need to connect to the Pi and either plug them directly
>> into the Pi or, if you run out of USB ports, via a USN connector block.
>>
>
> That doesn't answer the OP's actual request -- they want the ports
> physically on the R-Pi to be VISIBLE on the host (desktop/laptop) computer
> that is connecting to the R-Pi.
>
> Unfortunately, that likely means a commercial $$$ ($260) package (which
> may not be available for ARM architecture).
> https://www.eltima.com/products/com-port-redirector/ {STRIKE my
> parenthetical: "Linux version for ARM-based devices is available. Now you
> can share serial ports on ARM devices or connect to remote devices. Note:
> you need D-Bus to be installed on your device to use this version."}
> Hmmm... https://wiki.eltima.com/software-licenses/trial-version-eula.html
>
>
>
Yes, I would like to use the uarts on the Raspberry connector and
'send/receive' via the internet to a Windows PC that must 'display' the
comX ports
[toc] | [prev] | [next] | [standalone]
| From | A. Dumas <alexandre@dumas.fr.invalid> |
|---|---|
| Date | 2020-12-31 02:04 +0000 |
| Message-ID | <5fed3196$0$302$e4fe514c@news.xs4all.nl> |
| In reply to | #25334 |
Martin Gregorie <martin@mydomain.invalid> wrote: > Ignore the gpio lines: Just get a standard a USB-serial adapter. Why? His problem has nothing to do with the actual serial ports (whether uart or rs232) but with getting the data from them on the network.
[toc] | [prev] | [next] | [standalone]
| From | RobertoA <amorosik@tiscalinet.it> |
|---|---|
| Date | 2020-12-31 21:41 +0100 |
| Message-ID | <rsld2c$cqt$4@gioia.aioe.org> |
| In reply to | #25334 |
Il 30/12/2020 19:31, Martin Gregorie ha scritto: > On Wed, 30 Dec 2020 16:19:56 +0100, RobertoA wrote: > >> The Raspberry4 board has 6 native uart I'm not talking about serial >> ports via usb but uart on the gpio connector of the Raspberry board >> Having to control devices via uart (for example gps receivers, >> electronic scales, etc.) it would be useful to create a device that, >> communicating with the control computer via ethernet, would allow the >> computer to 'see' the virtual com ports, corresponding to the uart of >> the card Raspberry So it will be necessary to program the Raspberry so >> that it has a tcp / >> > Ignore the gpio lines: Just get a standard a USB-serial adapter. Each > supports a single serial line, so get one for each device with a serial > port that you need to connect to the Pi and either plug them directly > into the Pi or, if you run out of USB ports, via a USN connector block. > > The ones I've used have all presented a common interface to Linux: > plugging one in on a Pi automatically creates a new serial device, /dev/ > ttyUSBnn IIRC, that behaves exactly like one of the predefined serial > ports (/dev/ttynn) that are created at boot time on a PC with builot-in > serial ports. This means that any program using the standard Linux serial > port library routines can read and write to anything connected to your Pi > via a USBserial adapter. It can also set the baud rate, character size, > parity and stop bits. > > The last Serial USB adapter I bought came from PicAxe, where they're used > to upload PIC binaries to a PICAXE chip and/or to let the program you > uploaded to the PICAXE chip talk to a program on your Linux box. They > work just fine if that's a Pi too. > > PICAXE http://www.picaxe.com/ sell adaptors for £12.49 (VAT incl) + > postage: > > https://picaxe.com/hardware/cables/picaxe-usb-download-cable/ > > > I'm certain they're available elsewhere too, but that's where I bought > the last one I needed. > Why ignore the uarts provided on the gpio connector?
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@mydomain.invalid> |
|---|---|
| Date | 2020-12-31 21:31 +0000 |
| Message-ID | <rslfuv$ehn$2@dont-email.me> |
| In reply to | #25359 |
On Thu, 31 Dec 2020 21:41:51 +0100, RobertoA wrote: > Il 30/12/2020 19:31, Martin Gregorie ha scritto: >> On Wed, 30 Dec 2020 16:19:56 +0100, RobertoA wrote: >> >>> The Raspberry4 board has 6 native uart I'm not talking about serial >>> ports via usb but uart on the gpio connector of the Raspberry board >>> Having to control devices via uart (for example gps receivers, >>> electronic scales, etc.) it would be useful to create a device that, >>> communicating with the control computer via ethernet, would allow the >>> computer to 'see' the virtual com ports, corresponding to the uart of >>> the card Raspberry So it will be necessary to program the Raspberry so >>> that it has a tcp / >>> >> Ignore the gpio lines: Just get a standard a USB-serial adapter. Each >> supports a single serial line, so get one for each device with a serial >> port that you need to connect to the Pi and either plug them directly >> into the Pi or, if you run out of USB ports, via a USN connector block. >> >> The ones I've used have all presented a common interface to Linux: >> plugging one in on a Pi automatically creates a new serial device, >> /dev/ ttyUSBnn IIRC, that behaves exactly like one of the predefined >> serial ports (/dev/ttynn) that are created at boot time on a PC with >> builot-in serial ports. This means that any program using the standard >> Linux serial port library routines can read and write to anything >> connected to your Pi via a USBserial adapter. It can also set the baud >> rate, character size, parity and stop bits. >> >> The last Serial USB adapter I bought came from PicAxe, where they're >> used to upload PIC binaries to a PICAXE chip and/or to let the program >> you uploaded to the PICAXE chip talk to a program on your Linux box. >> They work just fine if that's a Pi too. >> >> PICAXE http://www.picaxe.com/ sell adaptors for £12.49 (VAT incl) + >> postage: >> >> https://picaxe.com/hardware/cables/picaxe-usb-download-cable/ >> >> >> I'm certain they're available elsewhere too, but that's where I bought >> the last one I needed. >> >> > Why ignore the uarts provided on the gpio connector? Because a USB serial adapter is ready to run off the shelf and uses standard RS-232 levels, character encoding, parity and stop bits on its serial side, which is compatible with most items with serial connections, e.g. puck-type GPS receivers. The ones sold by PICAXE have the USP blug on the body with a serial cable terminated by a 3.5mm 3-wire jackplug. Most other converters seem to come with a D9 socket (male or female - you choose) on the converter body and the USB plug on a short flying lead. Amazon has loads of them in the £7 - £15 price range. -- -- Martin | martin at Gregorie | gregorie dot org
[toc] | [prev] | [next] | [standalone]
| From | RobertoA <amorosik@tiscalinet.it> |
|---|---|
| Date | 2021-01-02 11:20 +0100 |
| Message-ID | <rsphcg$1m7a$1@gioia.aioe.org> |
| In reply to | #25366 |
Il 31/12/2020 22:31, Martin Gregorie ha scritto: > On Thu, 31 Dec 2020 21:41:51 +0100, RobertoA wrote: > >> Il 30/12/2020 19:31, Martin Gregorie ha scritto: >>> On Wed, 30 Dec 2020 16:19:56 +0100, RobertoA wrote: >>> >>>> The Raspberry4 board has 6 native uart I'm not talking about serial >>>> ports via usb but uart on the gpio connector of the Raspberry board >>>> Having to control devices via uart (for example gps receivers, >>>> electronic scales, etc.) it would be useful to create a device that, >>>> communicating with the control computer via ethernet, would allow the >>>> computer to 'see' the virtual com ports, corresponding to the uart of >>>> the card Raspberry So it will be necessary to program the Raspberry so >>>> that it has a tcp / >>>> >>> Ignore the gpio lines: Just get a standard a USB-serial adapter. Each >>> supports a single serial line, so get one for each device with a serial >>> port that you need to connect to the Pi and either plug them directly >>> into the Pi or, if you run out of USB ports, via a USN connector block. >>> >>> The ones I've used have all presented a common interface to Linux: >>> plugging one in on a Pi automatically creates a new serial device, >>> /dev/ ttyUSBnn IIRC, that behaves exactly like one of the predefined >>> serial ports (/dev/ttynn) that are created at boot time on a PC with >>> builot-in serial ports. This means that any program using the standard >>> Linux serial port library routines can read and write to anything >>> connected to your Pi via a USBserial adapter. It can also set the baud >>> rate, character size, parity and stop bits. >>> >>> The last Serial USB adapter I bought came from PicAxe, where they're >>> used to upload PIC binaries to a PICAXE chip and/or to let the program >>> you uploaded to the PICAXE chip talk to a program on your Linux box. >>> They work just fine if that's a Pi too. >>> >>> PICAXE http://www.picaxe.com/ sell adaptors for £12.49 (VAT incl) + >>> postage: >>> >>> https://picaxe.com/hardware/cables/picaxe-usb-download-cable/ >>> >>> >>> I'm certain they're available elsewhere too, but that's where I bought >>> the last one I needed. >>> >>> >> Why ignore the uarts provided on the gpio connector? > > Because a USB serial adapter is ready to run off the shelf and uses > standard RS-232 levels, character encoding, parity and stop bits on its > serial side, which is compatible with most items with serial connections, > e.g. puck-type GPS receivers. > > The ones sold by PICAXE have the USP blug on the body with a serial cable > terminated by a 3.5mm 3-wire jackplug. Most other converters seem to come > with a D9 socket (male or female - you choose) on the converter body and > the USB plug on a short flying lead. Amazon has loads of them in the £7 - > £15 price range. > The rs232 level is not useful to me I would connect the uart of the Raspberry gpio connector directly to electronics at the 3v3 level Furthermore, the USB ports are not sufficient, of the four available, two remain free (after keyboard and mouse) while the uart devices to write/read are 6 For this reason I am trying to exploit the uart directly from the gpio connector
[toc] | [prev] | [next] | [standalone]
| From | Anssi Saari <as@sci.fi> |
|---|---|
| Date | 2020-12-31 00:15 +0200 |
| Message-ID | <sm0sg7n7xff.fsf@lakka.kapsi.fi> |
| In reply to | #25325 |
RobertoA <amorosik@tiscalinet.it> writes: > The Raspberry4 board has 6 native uart I didn't actually know that but so it is. One or two may be in use by default. > So it will be necessary to program the Raspberry so that it has a tcp > / ip server inside, which will pass the information to the uart ports > On the computer side it will be necessary to install programs to > 'virtualize' the com port and connect it to the tcp / ip server on the > Raspberry > How to proceed? I can't help with the Windows part and it's really off topic here. On the RPi side you can use netcat to listen to a tcp port and forward data to serial and vice versa.
[toc] | [prev] | [next] | [standalone]
| From | Jim Jackson <jj@franjam.org.uk> |
|---|---|
| Date | 2020-12-30 22:19 +0000 |
| Message-ID | <slrnrupv7d.6qt.jj@iridium.wf32df> |
| In reply to | #25337 |
On 2020-12-30, Anssi Saari <as@sci.fi> wrote: > RobertoA <amorosik@tiscalinet.it> writes: > >> The Raspberry4 board has 6 native uart > > I didn't actually know that but so it is. One or two may be in use by > default. > >> So it will be necessary to program the Raspberry so that it has a tcp >> / ip server inside, which will pass the information to the uart ports >> On the computer side it will be necessary to install programs to >> 'virtualize' the com port and connect it to the tcp / ip server on the >> Raspberry >> How to proceed? > > I can't help with the Windows part and it's really off topic here. On > the RPi side you can use netcat to listen to a tcp port and forward data > to serial and vice versa. Serial to tcp servers for linux already exist. Try looking at the package ser2net - I'm sure there others.
[toc] | [prev] | [next] | [standalone]
| From | RobertoA <amorosik@tiscalinet.it> |
|---|---|
| Date | 2020-12-31 21:46 +0100 |
| Message-ID | <rsldan$cqt$7@gioia.aioe.org> |
| In reply to | #25339 |
Il 30/12/2020 23:19, Jim Jackson ha scritto: > On 2020-12-30, Anssi Saari <as@sci.fi> wrote: >> RobertoA <amorosik@tiscalinet.it> writes: >> >>> The Raspberry4 board has 6 native uart >> >> I didn't actually know that but so it is. One or two may be in use by >> default. >> >>> So it will be necessary to program the Raspberry so that it has a tcp >>> / ip server inside, which will pass the information to the uart ports >>> On the computer side it will be necessary to install programs to >>> 'virtualize' the com port and connect it to the tcp / ip server on the >>> Raspberry >>> How to proceed? >> >> I can't help with the Windows part and it's really off topic here. On >> the RPi side you can use netcat to listen to a tcp port and forward data >> to serial and vice versa. > > Serial to tcp servers for linux already exist. Try looking at the > package ser2net - I'm sure there others. > Ok thanks, now I'm looking for ser2net
[toc] | [prev] | [next] | [standalone]
| From | Jim Jackson <jj@franjam.org.uk> |
|---|---|
| Date | 2021-01-01 20:29 +0000 |
| Message-ID | <slrnruv1h1.8sb.jj@iridium.wf32df> |
| In reply to | #25362 |
> > Ok thanks, now I'm looking for ser2net It's in the RaspberryPi OS package system (which is based on debian) ... On the rapsberry pi ... sudo apt-get install ser2net It will probably have a man page that describes the software. Again on the raspberry pi ... man ser2net
[toc] | [prev] | [next] | [standalone]
| From | Andy Burns <usenet@andyburns.uk> |
|---|---|
| Date | 2021-01-01 21:28 +0000 |
| Message-ID | <i59ifsFoj4dU2@mid.individual.net> |
| In reply to | #25371 |
Jim Jackson wrote: >> Ok thanks, now I'm looking for ser2net > > It's in the RaspberryPi OS package system But I think he really wants com2tcp for windows instead of ser2net ?
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | comp.sys.raspberry-pi
csiph-web