-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checksum #1
Comments
Yes, I think so too, this is the way it is currently been prepared in the code, but I haven't been able to confirm that myself. |
I did find it in datasheet of other sensor, but actual commands for this one i have not found. I see it send 0x0b and 0x02 (if I remember correctly) being send to the sensor and 16 bytes of data coming back. (looks a bit like raw values, but not completely clear to me). |
I get this back:
(first is index, 2nd dec. value). I see 2,3 - 6,7 - 10,11 rise up sharply when I agitate it. But no clear conversion to what is what and how to convert. maybe I will log it for a while and correlate it. |
Cool, thanks for sharing the results of your experiments. Are you actually using the code from this repository to test? I updated my code to make it a bit easier to send other commands, with variable length command data (assuming that the second byte is the payload length). I'm still unable to test this myself. |
I currently only snoop the tx line (via 10k resistor to a ftdi cable attached to laptop). I was thinking of popping off the small mcu on the pcb and attach a wemos to it. |
1594108275370_4598.pdf |
https://github.com/Hypfer/esp8266-vindriktning-particle-sensor just found this. |
Maybe the other command is to read out the temperature. |
My pm1006k.cpp should be pretty universal Arduino code. It doesn't contain any processor-specific code and should be easily portable to other microcontrollers with arduino. I didn't bother to strictly split the protocol code from the code that assembles the command and sends it to the device. |
I wonder how ikea parses the values, what I get from snooping is not a |
its seems a lot more sensitive and 'quick'. I also have not seen it drop below 8. (even next to an air purifier.) |
I am trying to read the data by snooping the read line (not sending command)
I think the checksum is:
256-(head+len+data)
This seems to match.
looking at other products the 3rd byte returned is the command?
The text was updated successfully, but these errors were encountered: