Skip to content
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

receive normal mode code and 0xA6 code at same time? #125

Closed
StudioXbiz opened this issue Jun 20, 2019 · 10 comments
Closed

receive normal mode code and 0xA6 code at same time? #125

StudioXbiz opened this issue Jun 20, 2019 · 10 comments

Comments

@StudioXbiz
Copy link

Portisch kindly added the Libra protocol definitions to the RF_Protocols.h so I can use 0xA6 sniffing to pickup the signal however I need to also sniff a different protocol signal that is only picked up in normal mode.

Is there a way to receive protocols from both modes at the same time without moving between modes?

@Portisch
Copy link
Owner

The other one from normal sniffing should be supported also in advanced sniffing.

@StudioXbiz
Copy link
Author

The normal mode (non-Libra) received code is the following and does not appear in the advanced (166) mode
{"RfReceived":{"Sync":6680,"Low":230,"High":660,"Data":"978A61","RfKey":"None"}}

I notice in the Libra commit the RF_Config.h turns off most protocols by setting the from 1 to 0 to... is this why the above is not detected in advanced mode? Why is it received in normal mode? Does normal mode not refer to this file for active protocols?

@StudioXbiz
Copy link
Author

When you say "The other one from normal sniffing should be supported also in advanced sniffing."

Do you mean that I have to somehow add the normal mode protocol to advanced sniffing to work or that it should already work in advanced sniffing? I thought that when you activate advanced sniffing it de-activates all the protocols that work in normal mode?

@Portisch
Copy link
Owner

No, standard sniffing is only PT62... devices. Advanced sniffing is this device and all other enabled ones in the config.

@StudioXbiz
Copy link
Author

I've just run another random test from a different remote control for a different product that works in standard mode and found that also doesn't work in Advanced mode:

{"RfReceived":{"Sync":10030,"Low":270,"High":920,"Data":"155558","RfKey":"None"}}

The one that works in standard mode that I am trying to receive in advanced mode (alongside the libra protocol in advanced mode ) is:

{"RfReceived":{"Sync":6680,"Low":230,"High":660,"Data":"978A61","RfKey":"None"}}

How does one debug a protocol that appears in standard sniffing (rfraw 0) that doesn't in advanced sniffing (rfraw 166)?

@Portisch
Copy link
Owner

ahh,
this is not supported! The standard sniffing is using a variable sync time range.
Advanced sniffing is using a defined sync time: 10850 +- tolerance
So you need to change

SI_SEGMENT_VARIABLE(PROTOCOL_BUCKETS(PT226X)[], static uint16_t, SI_SEG_CODE) = { 350, 1050, 10850 };

350, 1050, 10850 to 270, 920, 10030
Then add a copy of PT226X protocol and rename it like PT226X_2 and use these settings:
230, 660, 6680

Then both should be decoded in advanced sniffing mode.

@StudioXbiz
Copy link
Author

That's great, thanks Portisch!

OK, on to try and figure out how to setup the build environment to give that a spin!

@StudioXbiz
Copy link
Author

I've tried downloading and running Simplicity Studio 4 in an attempt figure out how to build this project and to try the above code changes however I'm finding that it's not an inuitive build environment for the uninitiated and is going to require quite some time to get acquainted. I have the IDE running on linux now but I'm scratching my head with regards to importing the project files.

Would you be able to provide to quick outline of setting Simplicity Studio 4 up for the purpose of the build. The 'Compile-this-project' wiki page may benefit from a little more detail to aid people that have never used the build environment get started.

@StudioXbiz
Copy link
Author

I finally got Simplicity Studio 4 working in a Virtual Machine and have built the firmware with the above changes.

Working great! Thanks Portisch

@turin400
Copy link

turin400 commented Aug 9, 2019

You could upload the compiled code, I am not able to run the Simplicity Studio.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants