CaptureIR: how to use data from digitrace
Posted: Sat Jul 02, 2005 3:14 pm
i'm having trouble finding how to use the data from digitrace to program my jp1 remote
Forum for JP1 remotes
https://www.hifi-remote.com/forums/
that is the program im talking about.mtakahar wrote:I didn't recognize "digitrac" until yesterday when I actually used "digitrace" myself. You are talking about the program discussed in this thread: https://www.hifi-remote.com/forums/viewtopic.php?t=3569, right?
Hal
The Robman wrote:Ryan,
I take it that this means you have created a working device then, and if so, did you make the RF, IR or IR&RF version. Also, which OS are you using?
Btw, I edited the thread to say "digitrace".
Actually, I ended up writing one myself and now adding some GUI stuff to it. I can post a portotype if you are interested.mtakahar wrote:You would have to wait for someone writing a program that either bridges the output from digitrace or reads the data directly from the device through the parallel port and pass down the data to the decoding dll.
Looks like IR.exe doesn't store the I/O port address in the registry if you never had to touch the setting, and CaptureIR will crash if there's' no entry.mtakahar wrote:It'll use whatever you set up for IR.exe.
I've just changed the reference to http://java.com/ to http://java.sun.com/j2se/1.5.0/download.jsp in the file description. I hope this makes downloading slightly easier for others...johnsfine wrote:1) I tried http://java.com (as directed by Hal's directions) and it locked up my internet access, hung part way through loading that page and both before and after I tried closing that browser instance I had no internet access even through other programs. Rebooted and tried a different browser, same results. It was starting some sort of Java applet that did something seriously wrong with my older version of Java.
2) Tried Hal's program with my existing older Sun Java. It failed.
3) I went instead to java.sun.com (where I got the Java SDK long ago). After a few wrong clicks from their confusing top level page, I found the link to get the newest Windows Java SDK. I installed that.
I'll add some notes on these points by the time of official release.johnsfine wrote:Then I had lots of confusion over how to get PortTalk installed in a way that Hal's program could use it.
...
I misunderstood the UI and thought I needed to start and stop capture for each signal, but soon discovered otherwise.
In the first prototype I posted, I tried not to add any extra code within the parallel port monitoring loop. Capturing, demodulation and decoding are done each step at a time. In this model, the capturing part has to wait until it sees many enough sample (raw on/off cycles) or timeout occurs (I set it to 3 sec for now). So, it takes longer if the signal has relatively long gaps. It's probablly better setting the timeout for off time that is long enough to catch button release but not too long.It's pretty inconvenient as it stands now because it's too slow and it doesn't seem to deal with macros. After you press and release the remote key, there is a long pause before the result appears. I need to dig through Hal's code and figure out how to tighten that.
I haven't looked into DecodeIR much enough to understand what the "context" array is exactly for, but my guess is that I can call it repeatedly with the same contents of the array and it'll decode each detected subsequence continuously?I was really hoping PC decoding would show me whole macros, even when they're too long for an OFA remote to learn, maybe even if the frequency shifts within the macro. I'd also like to see how many frames there were of each signal. A big part of my purpose for direct PC capture and decode is to find out exactly what a remote is sending when a tricky macro doesn't perform as expected and/or I'm debugging some tricky protocol executor.
No, it doesn't detect repeating patterns, at least yet. Perhaps it makes sense to have a checkbox for specifying whether you want to keep the duplicates or not.IIUC, Hal's program detects and reduces the first clear repeat pattern and then loses the rest.
There are some additional stuff you may need to get to rebuild the program yourself. Please let me know if you find something still missing.Hopefully I can customize my copy, now that Hal has gotten me started.