-
Notifications
You must be signed in to change notification settings - Fork 663
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
RFsniffer and new auto learn KAKU #112
Comments
Check this issue out. |
Tried everything... not working. The new switched don't have any wheels for A-P and from 1-16 |
Try to record the signal of the transmitter with ReceiveRF.py. |
Thanks Martin, Ill try it later. Im running OSMC so will create a new SD-card with Rasbian and follow the instruction. Hope ill figure it out :D Thanks for pushing me into right direction |
You are welcome! This does not work with my protocolless receiver (for receiving), but it might work with the original library (for receiving). Sending should be possible with both. There has been an attempt to create a protocol for NEXA. You would need different timings, but it might be the next thing to try because you code is very long! Now, let me tell you about your signal (I did some measurements manually): Then the code in your signal seems to be the following: wow! 64 bits Please post your pulse length back (the ??? value), and report whether you succeeded to receive and send codes. |
Wow.. what a wonderful explanation :D ill will switch SD card tomorrow and do some more test with same switch and see if the pulse will always the same. Then i will send a image with the X axis :) Thanks a lot for this already.. I already have fun with idea i can create those pulse images and learn step by step more how it works :)... Finally it will work and my Homebridge is complete haha |
I measured in your picture, but you should revise the measurements and the calculus. |
I'm having the same issue like poudenes so I tried to follow your instructions to measure my signal. Since I'm completely new to Linux and didn't get ReceiveRF.py to work I decided to measure my signal with a logic analyzer, because measuring is something I am familiar with :) I measured the following signal: On the x-axis you see the sample number. I sampled the signal with sample frequency of 300 kHz. So each 3.33 microseconds (not nanosecends like you posted ;-) ) a sample is taken. When analysing the signal I came to the conclusion that the signal can't be divided in units like you do. If I divide the signal in A to F like i did in the picture were CD is 0 and EF is 1 in your analysis, I see there is a difference between the lengths of these signals. When focusing on the C, D, E and F samples I get the following result The length C and E are the same but differ from the length of D. So they can't be described like units like you do. In the length of D and F is some variation the variations are correlated. If the length of D is small, the length of F is long and visa versa: So there is a lot of variations in the pulse length. So my question is, how critical is this timing? And can this pulse still be reproduced with your script and your proposed protocol? |
It is unlikely that the remote encoder creates the signal with those details of complexity. More probably the irregular pattern is due to big timing tolerances in the signal creation (delays in switching down to up) (or limits in recording the signal in your experiment). For that reason is it also unlikely that the receiver on your switch is very strict on what to expect. Probably it has a nice receiving range of tolerance. This should be tested! It would be nice to know for sure. |
Then I expect these are timing tolerances in the signal creation. The device I use to measure the signals is a professional device which I have confidence in that it is measuring accurate enough. The only remaining uncertainty is de RF receiver. I could try to measure multiple signals in the future to compare them and also detemine the sensitivity of the receivers but for now I will work with the signal I posted before just to get everything working :). The 95 you're mentioning are samples, and each sample has a length of 3.33 microseconds (samplerate of my device was set at 300 kHz) so one unit would be 317 microseconds. But I think 90 samples comes closer to the truth which makes is 300 microseconds for one unit. B exists out of 751 samples so my protocol should look like this: Converter my signals to a 64 bits code like you showed before and converted it to decials. The result is 7391926142449063574. So I tried to following code in the terminal: I measured the timings inter-trains-of-pulses before. It was 3160 samples, sow 3160/90 is 35 units, or 10.5 miliseconds. And you are correct about the Raspberry. I am using a Raspberry Pi Zero W. |
Open a terminal and write: |
This looks like a more complete NEXA patch: Read the links describing the protocols at #112 (comment) Remember that I do not have a NEXA and I can not test the code. |
Possibly you need to change some "unsigned long" declarations to "uint64_t" to make sure that your code is stored completely and not truncated. For example: |
Hi there,
Is there a possibility to grab codes send by wall switches of Kaku ?
Kaku uses a new type where receivers have auto learn coding.
Kind Regards,
The text was updated successfully, but these errors were encountered: