[weewx-user] Re: Anyway to transfer LOOP data to a serial port?

2019-08-14 Thread mwall


On Wednesday, August 14, 2019 at 5:11:19 AM UTC-4, boke wu wrote:
>
> something like:
>>
>
> VP2 in ttyUSB1  (send data )  => Weewx ( save archive ,make web page)
>
> Weewx (After weewx done everything , open serial port in ttyUSB2 and write 
> loop data)  => My other RS232  device (receive string loop data and logging)
>

as andrew noted, you could write a weewx service to do this.

or you could create a serial port sniffer in hardware.  create a wiring 
harness with 3 serial ports - one port plugs into the vp2, the other two do 
a 'Y' from that.  one of those two plugs into the computer running weewx, 
the other plugs into the other listener.  you only have to connect 3 wires: 
TX, RX, and GND.  you can even eliminate the TX pin for the non-weewx 
device.

as long as weewx is the only software sending commands, the other device 
will be a passive listener.

this is a common approach for reverse engineering serial protocols, and it 
is an easy (and super inexpensive) way to get serial data to multiple 
devices.

but only ONE device can do the sending/commands.  others must be passive 
listeners.

then write your software to read and decode the traffic that passes over 
the serial line.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f53a23d0-e369-4ed6-91f8-ac4274e76df0%40googlegroups.com.


[weewx-user] Re: Anyway to transfer LOOP data to a serial port?

2019-08-14 Thread Andrew Milner
all you can do really is write a service, which you bind to a LOOP packet, 
and do your serial output froom that service.  The danger is that the 
service may block weewx if there is an issue with the output serial 
connection.  weewx itself cannot do what you are trying to do.  the LOOP 
data for a record is not kept by weewx, so you cannot output LOOP data 
'after creating record and web pages'.  Another approach might be for the 
service you write to create an output file of the LOOP data and have a non 
weewx program looking for this file, processing it and deleting it once 
processed.  There are several ways you could try - but all require 
development and definition and are not part of weewx.  Why are you wanting 
to output the LOOP data to another machine??



On Wednesday, 14 August 2019 12:11:19 UTC+3, boke wu wrote:
>
> something like:
>>
>
> VP2 in ttyUSB1  (send data )  => Weewx ( save archive ,make web page)
>
> Weewx (After weewx done everything , open serial port in ttyUSB2 and write 
> loop data)  => My other RS232  device (receive string loop data and logging)
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/230a6ac2-3ecd-42fd-a667-52062d1994c6%40googlegroups.com.


[weewx-user] Re: Anyway to transfer LOOP data to a serial port?

2019-08-14 Thread boke wu

>
> something like:
>

VP2 in ttyUSB1  (send data )  => Weewx ( save archive ,make web page)

Weewx (After weewx done everything , open serial port in ttyUSB2 and write 
loop data)  => My other RS232  device (receive string loop data and logging)

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/24803213-0c8d-4c8f-bacc-a91a34398e7c%40googlegroups.com.


[weewx-user] Re: Anyway to transfer LOOP data to a serial port?

2019-08-14 Thread Andrew Milner
can you be more specific please.  The VP2 can be connected to only one 
computer at a time.



On Wednesday, 14 August 2019 12:02:30 UTC+3, boke wu wrote:
>
> yes I know LOOP data is already being received by weewx
>
> I'm try to send serial data to my another device via a USB to RS232 Cable  
> (a RS-232 data logger)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fc193fff-d1c6-4673-98b9-db62a48e02e4%40googlegroups.com.


[weewx-user] Re: Anyway to transfer LOOP data to a serial port?

2019-08-14 Thread boke wu
yes I know LOOP data is already being received by weewx

I'm try to send serial data to my another device via a USB to RS232 Cable  
(a RS-232 data logger)


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4f1f9496-217b-4e28-a94b-c4a09c8ec1fc%40googlegroups.com.


[weewx-user] Re: Anyway to transfer LOOP data to a serial port?

2019-08-14 Thread Andrew Milner
If you are running weewx with a VP2 then the LOOP data is already being 
received by weewx.  What exactly are you trying to do?




On Wednesday, 14 August 2019 11:26:39 UTC+3, boke wu wrote:
>
> Hello There :
>
> I have a Davis VP2 running in Rpi3@Weewx3.9.2 through a USB Datalogger
>
> and I was wondering is there anyway to sent the LOOP data
>
> to a USB TO RS232 Cable in my /dev/ttyUSB2
>
> so I can receive serial data on my rs232 device
>
> Thanks for helping
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c906721b-05aa-43bb-8913-d98f2f3cfc29%40googlegroups.com.