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

merging messages, is it possible? #338

Closed
Nesos-ita opened this issue Oct 13, 2017 · 3 comments · Fixed by #340
Closed

merging messages, is it possible? #338

Nesos-ita opened this issue Oct 13, 2017 · 3 comments · Fixed by #340
Assignees
Labels

Comments

@Nesos-ita
Copy link

i have read about the plugin to break messages but i want to do exactly the opposite.
i have recorded a few different messages of a remote temperature sensor.
what i see in analysis is:
[1] 101010101 (some kind of sync, always equal)
[2] 111011000101010101010000 (data)
[3] 101010101
[4] 101011111000110101110001 (data from other recording)

1 and 2 is a signal recorded
3 and 4 is another recored signal (when temperature changed)
the problem is that the protocol starts with 10101010... than a pause than the actual data (repeated three times with pause, not shown here) but i can't assign a label preamble/sync/whatever because it is also assigned to data.
also the checkbox "mark differences" is not very useful because we are comparing sync with data
what i'd like to have is 1 and 2 on a single line (line1) . 3 and 4 on a different single line (line 2).
in this way i can assign bits from 1to 9 as sync and the rest as data.
is it possible, am i missing something?
(urh shows "labels values for message 1")

tested so far:
-creating a new message type and applying it on line 1 and 2
-creating a partecipant and apply it to 1 and 2

partially solved in a ugly way that i'd like to avoid:
-split the transmission in many small signals (where there are pauses) for each temperature transmission so that you have a signal that is only sync, other that is only data, ...

@jopohl
Copy link
Owner

jopohl commented Oct 13, 2017

Thanks for bringing this up! Just for clarification an actual temperature message is something like:
sync 0n data with n > 8
and URH misinterprets the long chain of zeros as a pause and, therefore, splits sync and data into two separate messages?

What you could try is to shorten the long pause between sync and data so it translates to 8 or less zeros. It may be painful, however, to do this manually for a large amount of signals.

If this manual solution works for you, we could make the pause length customizable in interpretation, so that you can have messages like 101010100000000000001110 and prevent the message break.

@Nesos-ita
Copy link
Author

Nesos-ita commented Oct 15, 2017

yes, exactly; there are about 15 consecutive zeroes.
pause length customizable is a nice idea.
Here is a photo of the whole message for completeness:
msgproblem

what about disabling auto split on pause or adding a checkbox to enable it? "newline on pause"
for example what i'm doing now is recording multiple temperature+humidity transmissions and saving the whole signal.
after a bit of analysis seems that sync part doesn't change so i can edit all the saved signals and cut it away completly.
i don't know what is the supposed way/best way to use this program:
-one signal recorded=one line in the analysis (maybe with a P or a space where there is a pause instead of 0/1?)
-one signal recorded=more lines where there is a pause
this is simple transmission where noone answer so one line seems the best but if there are more devices or bidirectional transmission more lines is much better.

given how the signal is made i think the best thing to do for my case is to edit all the signals and keep only one copy of the data.
but in an earlier analysis having all on one line could be useful

thanks so much for this program!
it is awesome!! <3

@jopohl
Copy link
Owner

jopohl commented Oct 15, 2017

Thanks for this detailed clarification! I will make the pause length editable then, so users can control when a message break appears. If you enter 0 for this pause length this will be equivalent to disabling it completly as with the checkbox you suggested.

The intended way to use URH is to have more lines when there is a pause, so you are not forced to split signals manually. If you do not perform a line break here, it will be harder in Analysis to identify differences between messages.

Cool, that the program is helpful to you. 👍

@jopohl jopohl self-assigned this Oct 15, 2017
@jopohl jopohl added the feature label Oct 15, 2017
@jopohl jopohl mentioned this issue Oct 15, 2017
2 tasks
jopohl added a commit that referenced this issue Oct 16, 2017
add pause threshold and store tree collapse status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants