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

added posibility to send raw data #406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

MPK44
Copy link

@MPK44 MPK44 commented Feb 9, 2021

As not all protocolls are already identified, a possibility to send data without decrypting a new protocoll is helpful.
This commit adds the function "sendraw" so that a file, storing pulselengths, can be used to send commands.

As not all protocolls are already identified a possibility to send data without decrypting a new protocoll is helpful.
This commit adds the function sendraw so that a file storing pulselengths can be used to send commands.
@aronlanza
Copy link

Hello could you please make an example,
how to use your method? If I have understood the function correctly, I pass your method the rawdata which is received with the RC Recive Demo Advance.
My raw data looks like this:
Decimal: 3640829401 (32Bit) Binary: 11011001000000101010010111011001 Tri-State: not applicable PulseLength: 652 microseconds Protocol: 2
Raw data: 6524,1280,676,1280,676,628,1328,1276,676,1280,676,628,1328,628,1328,1276,680,624,1328,632,1324,628,1328,628,1328,628,1324,632,1324,1280,676,628,1328,1276,676,628,1328,1284,672,628,1328,628,1328,1276,676,628,1328,1280,676,1280,676,1276,680,624,1328,1280,676,1276,680,628,1328,628,1324,1280,676,

@MPK44
Copy link
Author

MPK44 commented Dec 13, 2021

Hi aronlanza,

you are nearly right. Currently it is that you pass a filename where you store the RAW data.
This means if you put your raw data in example.txt and replace , with newline (\n) you can send your code with sendRaw example.txt

In your case it will start with 6524 Microseconds high, 1280 low, 676 high.

example.txt

6524
1280
676
1280
676
628
1328
1276
676
1280
676
628
1328
628
1328
1276
680
624
1328
632
1324
628
1328
628
1328
628
1324
632
1324
1280
676
628
1328
1276
676
628
1328
1284
672
628
1328
628
1328
1276
676
628
1328
1280
676
1280
676
1276
680
624
1328
1280
676
1276
680
628
1328
628
1324
1280
676

@M-C-Dev
Copy link

M-C-Dev commented Jul 10, 2023

i got:
\rc-switch/RCSwitch.cpp:553: undefined reference to fopen'`

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

Successfully merging this pull request may close these issues.

3 participants