-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Roja Flex support #1705
Roja Flex support #1705
Conversation
Rojaflex support
We usually want the fields "id" and "channel". Are "homeid", "radiochannel" these? Can we rename them?
usually we add the length of the preamble to
I thought Try |
Yes. So long story short, I think the rename is fine.
I will try. but I have no clue how to update this magic push request. |
No worries then, I'll just merge manually and do the style updates and id/channel myself. |
Renamed HomeID in ID and RadioChannel to channel. The reason is a more generic naming in conjunction with other decoders in rtl_433.
used clang-format with default configuration
So next round. Renamed and reformatted. |
- Do not read the complete raw message for the decoder anymore. Direct jump to the real dataframe. So all offsets defines are changed to begin at the dataframe. That allows are better detection and "smaller" memory foodprint ...
Passt alles so? :-) |
Ping :-) |
There are a few things to change still, I need to get around to merge and change this.
Can you run maintainer_update.py and commit those changes? |
Thanks for the feedback. I did run maintainer_update.py |
run maintainer_update.py
Thanks. Oops, put the device last (above |
I did the move. Sorry I cloned one decoder, and used same position to know what I have to change. So I did not see the "right" pos. But the maintainer_update.py seems to not do any further change now. |
My bad. The order comes from the compiled rtl_433, recompile then rerun the update. Sorry for the mess. |
No problem. Looks good now. |
Hello, because of the reason that you have knowledge in the 433 area. Maybe you have a hint for us in the following topic. RFD-FHEM/RFFHEM#955. With the help of your tool and the new plugin I try to do the same for the FHEM server in receive and transmit direction. But until now I was not able to receive a message from the remote. Do you know the 1011 chip? Is it easy to transfer information from a rtl422 analyse into settings for the ti1011 chip? |
Not automatically but you can use the analyzer output values as a starting point for the CC1101 chip configuration. |
I do not know the modulation (2FSK, GFSK, MSK) |
@Hofyyy well if you are trying to replicate the signal then just record a sample with the signal grabber (-S) then run it through the analyzer (-A). Then compare the output with your replicated signal. When they look the same you are done. The GFSK vs 2FSK parameter can be found by looking at the signal spectra of a recorded signal. If the frequency instantly goes from the low to the high frequency it is a 2FSK signal, if it smoothly transitions it is GFSK. My bet is on GFSK. |
With MSK the data rate is tied to the deviation for narrow bandwidth, so these parameters look good. https://en.wikipedia.org/wiki/Minimum-shift_keying |
Thanks for the support. I will try to learn more about it. At the moment this is like a foreign language for me. Could that be easy answered from your side with an UHR capture in complex16s? :-P |
Well, the last one is just a sum, starting one byte after the sync words (0x31 in your examples). |
Sorry I did not get it. Could you give me one more detailed example? The EA command is something special. Maybe they calculate it also in a different way. |
Just add the bytes, like this BitBench. |
Generate internal checksum in an dynamic. Way!
@@ -274,7 +275,7 @@ See [CONTRIBUTING.md](./docs/CONTRIBUTING.md). | |||
[-d <RTL-SDR USB device index>] (default: 0) | |||
[-d :<RTL-SDR USB device serial (can be set with rtl_eeprom -s)>] | |||
To set gain for RTL-SDR use -g <gain> to set an overall gain in dB. | |||
SoapySDR device driver is available. | |||
SoapySDR device driver is not available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stray change from the maintainer update script.
@@ -151,7 +151,7 @@ RTL\-SDR device driver is available. | |||
To set gain for RTL\-SDR use \-g <gain> to set an overall gain in dB. | |||
.RE | |||
.RS | |||
SoapySDR device driver is available. | |||
SoapySDR device driver is not available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be that the *.1 is a local generated file?
And its coming from #ifdef SOAPYSDR
"\tSoapySDR device driver is available.\n"
#else
"\tSoapySDR device driver is not available.\n"
#endif
I can correct the Readme.md or what should I do?
- Added pramble desciption - Added syn word desciption - Added token part II desciption
- Added fprintf guards
Changed CRC output to Data_COND
@merbanan Could you bring this through the door? I will not be able to provide much during this week. |
I'll be merging this, there are some final touches needed. Maybe on the weekend. |
Sorry for pushing, but the RTL software is great and I would like to have official Rojaflex support :-) |
My bad. I'll get on it. |
Merged, but note that there are some changes in the output to better represent the fields. |
@merbanan I've updated the code style and merged this, but I feel the model should be fixed to the protocol as "RojaFlex-Remote" with an additonal key of the decoded "device" as "Remote"/"Bridge"/"Shutter"/"Unknown". What do you think? |
Only for information, at the moment it can decode messages from the remote and from the shutter. and you can detect that from the message type. I do not know if that fits to your question. |
Yes, we do want a key to show "Remote"/"Bridge"/"Shutter"/"Unknown". But best case that should not be the "model" key, we use that more like a protocol-type information. |
Ok, I do not know the original Protocol specification, so I only can assume it. e.g. |
With "keys" I'm referring to our common set of output fields, s.a. https://triq.org/rtl_433/DATA_FORMAT.html
that's my thought anyway ;) |
Its fine for me :) |
Great! The convention for "model" values is "Xyz-Abc". We usually call advanced "remote control"-type protocols "Xy-Security". Some like the Nexa/Proove are generic "command to group-unit", so this would fit. Model values are not meant to convey a specific use-case anyway. But we could perhaps call this "RojaFlex-Automation", maybe. Not sure. |
I am not sure how to implement this in a quick way. I will check it next weekend. If you would like to change it, because you know how to do it. Feel free. |
No worries, I'll change that as needed. Just waiting for @merbanan to help out with:
|
The main aim in the output was always to make it descriptive and as unique as possible. Adding subtype makes sense. There might be other cases where this can be useful. |
Supported Device:
Extra feature:
Could be activated in source.
Take a real message, extract HOMEID and generate all possible command for all 15 channels:
This is helpful if you what use an own bridge and you need the commands.
Review Feedback:
done
done. Two big functions are still there. Which is think helps.
Not done, because this will change all offsets, and in my tests this works great.
I understand the idea behind this point. Maybe I can rewrite it in a second round with
changed offsets.
Question: I only read 19 bytes (which is the message) what should I truncate?