binky123 wrote:So you are saying you want to change this to an Edit box like the LocalRoundTo and just enter a number in here. The number will be used to search in the signal list for signals to split.
Exactly. You could use the drop-down approach also if you like, as long as it just gives me one copy of each burst time and then applies the change across the whole signal.
I did figure out how to use the current drop down after a while. Unfortunately, this method would be way more time consuming that what I do now, so it wouldn't be any use to me. Remember, the time when I would be using these two new features is when I'm trying to decode signals that somebody has learned and DecodeIR doesn't recognize the protocol. I will use the rounding edit to make the signals as uniform as possible so that I can apply global edits to them in order to convert them to binary. The rounding option means that I have to do alot fewer edits to get the burst times uniform before doing the edits that convert the signals to binary. Having the times in the Summary sheet saves me the time of having to cut and paste 20 or 30 signals, some of which may come in three parts. The bi-phase option would save me the edits where I convert the double times into single times. With the current setup, I can do that with just two edits (ie, +840 ==> +420 +420, and -840 ==> -420 -420) so to have to do it once for each burst time, across many different signals, would be alot of work.
The next step with bi-phase signals, to convert the times to binary, is the tricky one. With pulse width signals you don't need to worry about the boundary between pairs (eg, when you edit +400 -400 to "0" and +400 -800 to "1") but with bi-phase you can't just use global edits because it would be too easy for the edit to go across the wrong boundary. For example, where are the boundaries in +400 -400 +400 -400? Is this two pairs where the pair is "+400 -400", or are the middle 2 bursts the pair (ie, -400 +400) and the other two bursts are the end of one pair and the beginning of another. Therefore, what I have to do next with bi-phase signals is import the text file into a spreadsheet and force the columns to be the pair boundaries, then I can do the global edits.
In order for the bi-phase feature in IR to really save me some time, I would need the ability to insert a delimiter into the mix. For example, goig back to the signal I posted earlier, after splitting all the double times into single times, it would look like this...
+2520 -420 -420 +420 -420 +420 -420 +420 -420 -420 +420 -420 -420 +420 +420 -420 +420 -420 +420 -420 +420 -420 +420 -420 +420 -420 +420 -420 +420 +420 -420 -420 +420 -420 +420 -420 +420 -420 +420 -420 +420 -420 +420 -420 +420 +420 -420 -420 +420 -420 +420 -420 +420 -420 +420 +420 -420 +420 -420 -420 +420 +420 -109200
What I'd like to be able to do now is put a delimiter in there either after every 2 burst times, the only option should be whether to put it on the even breaks or the odd breaks.
If I chose EVEN breaks, the result should look like this...
+2520 -420; -420 +420; -420 +420; -420 +420; -420 -420; +420 -420; -420 +420; +420 -420; +420 -420; +420 -420; +420 -420; +420 -420; +420 -420; +420 -420; +420 +420; -420 -420; +420 -420; +420 -420; +420 -420; +420 -420; +420 -420; +420 -420; +420 +420; -420 -420; +420 -420; +420 -420; +420 -420; +420 +420; -420 +420; -420 -420; +420 +420; -109200
If I chose ODD breaks, it should look like this...
+2520; -420 -420; +420 -420; +420 -420; +420 -420; -420 +420; -420 -420; +420 +420; -420 +420; -420 +420; -420 +420; -420 +420; -420 +420; -420 +420; -420 +420; +420 -420; -420 +420; -420 +420; -420 +420; -420 +420; -420 +420; -420 +420; -420 +420; +420 -420; -420 +420; -420 +420; -420 +420; -420 +420; +420 -420; +420 -420; -420 +420; +420 -109200
My next step would be to try and convert the results into binary, which I would do by converting "-420 +420" to "0" and "+420 -420" to "1". The results using the above timing strings would be...
EVEN...
+2520 -420;0;0;0; -420 -420;1;0;1;1;1;1;1;1;1; +420 +420; -420 -420;1;1;1;1;1;1; +420 +420; -420 -420;1;1;1; +420 +420;0; -420 -420; +420 +420; -109200
ODD...
+2520; -420 -420;1;1;1;0; -420 -420; +420 +420;0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;1;0;0;0;0;1;1;0; +420 -109200
At this point, experience would tell me that the ODD one is correct, as I happen to know to expect what we call a "double wide pair" in the beginning of the Replay signal (ie, the "420 -420; +420 +420" string). The EVEN string has lots of mis-matched pairs, so this is obviously not the way to go. (If anyone is paying really close attention and is wondering why there appears to only be 7 bits in the OBC portion of this signal, it's because the leadout pair "+420 -109200+ is really "+420 -420 -108780" so there's a final "1" bit hidden in there).