• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Supported] Alecto WS4500 / WS3500 | Ventus W177
#11
Can you do the next step and describe how you decoded the green line as temp/humi/checksum?

Another idea is that you create a binary string to actual values code in PHP. Python or C. Then i can convert it into a protocol for you?
 
Reply
#12
i will try and create a python script which should have the entire burst as input.
 
Reply
#13
Can you make python code from the binary code on like in current Alecto. So from the 101010101 instead of the raw pulse.
Code:
void alectoParseCode(void) {
    int i = 0, x = 0;
    int temperature = 0, id = 0;
    int temp_offset = 0;

    for(i=1;i<alecto->rawlen-1;i+=2) {
        alecto->binary[x++] = alecto->code[i];
    }

    id = binToDecRev(alecto->binary, 0, 11);
    temperature = binToDecRev(alecto->binary, 16, 27);

    struct alecto_settings_t *tmp = alecto_settings;
    while(tmp) {
        if(fabs(tmp->id-id) < EPSILON) {
            temp_offset = (int)tmp->temp;
            break;
        }
        tmp = tmp->next;
    }

    temperature += temp_offset;    
    
    alecto->message = json_mkobject();
    json_append_member(alecto->message, "id", json_mknumber(id));
    json_append_member(alecto->message, "temperature", json_mknumber(temperature));
}
 
Reply
#14
i will try it. and i still need to test the rainmeter and capture its raw output.
 
Reply
#15
which character in bitstring will indicate the sync bit? or do you already determine protocol and packet type before this new function is called?
 
Reply
#16
Don't understand?
 
Reply
#17
I reckon pilight does some processing from RAW to bitstring. I think pilight assumes that all packets within a burts are identical. But a wind speed / wind direction burst consists of 2 different packets which are transmitted 3 times within a burst. (6 packets total in a burst). So the RAW burst has to be split into packets which dont have to be identical.
1. Does pilight assume identical packets in a burts.
2. Does pilight split to burst into packets before the new function is called?
 
Reply
#18
Can you post an example burst of wind speed / wind direction?
 
Reply
#19
See tab3 of earlier posted RAW3 excel file. the blue lines are wind speed/direction bursts
 
Reply
#20
All codes you have in that tab are 36 pulses long.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fully Supported] Conrad RSL Switch Hexcode 137 44,406 12-02-2017, 08:48 AM
Last Post: Micha_123
  Supported shutter belt winders. muecke 0 704 12-18-2016, 12:02 PM
Last Post: muecke
  Pearl NC-7159-675 - Alecto protocol? - Does it work? Pik 20 6,989 09-11-2016, 04:27 PM
Last Post: JoeC.
  Supported device: KAKU AYCT-102 koos147 3 2,056 12-02-2015, 01:18 PM
Last Post: pilino1234
  Alecto ws-1150 mike 5 2,592 07-09-2015, 05:28 AM
Last Post: gregnau
  [Fully Supported] SSL support in webserver? Karel 18 11,374 05-29-2015, 10:26 PM
Last Post: curlymo
  Extra supported Hardware DI-O(chacon) yelti 3 2,490 01-20-2014, 11:31 PM
Last Post: curlymo

Forum Jump:


Browsing: 2 Guest(s)