Can I duplicate weather station serial input on Raspberry?

87 views
Skip to first unread message

anc...@gmail.com

unread,
Feb 22, 2023, 11:03:26 AM2/22/23
to weewx-user
Hi,
I have a Vaisala WXT536 connected to a Raspberry via serial port 485. Its input is taken by a proper software, so that the port results busy. My question is: can I duplicate this input in order to use both the proper software and weewx? I've seen that weewx supports this station model, so I would like to try make the station also work with weewx, but now I can't because the port is busy, being taken by the other program. 
Thank you

matthew wall

unread,
Feb 22, 2023, 3:40:38 PM2/22/23
to weewx-user
>On Wednesday, February 22, 2023 at 11:03:26 AM UTC-5 anc...@gmail.com wrote:
> I have a Vaisala WXT536 connected to a Raspberry via serial port 485. Its input is taken by a 
> proper software, so that the port results busy. My question is: can I duplicate this input in order 
> to use both the proper software and weewx?

hi!

you want a serial port tap.  as long as it is just RS232 serial traffic, tapping is pretty easy.  if you do it on the usb side of things it gets more complicated, and if there are usb-serial converters in the mix the timing could become an issue.

there are a few approaches.  you can make or purchase a hardware serial port tap.  or you can use software to sniff the serial port traffic then make it available to another process.

here are some commercial serial taps:



you can make your own by connect to the tx/rx lines.  here is a simple example:


the most basic software approach is to use 'socat'.  here's a stack exchange posting with some socat examples, as well as links to some other linux software to tap your serial connection:


i've used socat to reverse engineer serial comms, but i typically build a hardware tap if i need to sniff a serial connection for 'production' purposes.

m
Reply all
Reply to author
Forward
0 new messages