I have a solution for transmitting the signal to the weather station. I have conducted its analysis using a sound card and measured times.
Here's how it works transmitting (sensor sws TSH):
glitch Length = 500us (a)
sync = 3870us (b)
logic1 = 1900us (c)
logic0 = 1000us (d)
example: byte data_bytes[36] = {1,1,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,1,0,0,1,1,1,0,1,1,1,1,0,0,1,0,1,0,1,1}; // SWS TSH, Battery=2 Channel=3 Temperature=20.6C Humidity=43%
And here are data for sensor sws TS:
glitch Length = 500us (a)
sync = 9250us (b)
logic1 = 3950us (c)
logic0 = 2000us (d)
example: byte data_bytes[36] = {0,1,0,1,1,0,0,1,1,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,0,1,1,0,0,0,0,1,0,0,1,0}; // SWS TS, Channel=1 Temperature=23C
/*
_a_ b _a_ c _a_ d ___
| | | | | | | |
___| |_________________| |__________| |______| |
Synchronising Logic 1 Logic 0
*/
links:
https://www.laser.com/dhouston/learn.html
https://rayshobby.net/interface-with-remote-power-sockets-final-version/