Lap Timing Decoder
#421
Tech Rookie
Joined: Aug 2014
Posts: 8
I see your use resistor for hysteresis but i not see resistor before U1B...
Last edited by realm2; 08-11-2014 at 04:35 PM.
#423
Tech Rookie
Joined: Jul 2014
Posts: 3
I don't know if this will help - probably not, because of the way RC4 seems to be encoded - but this is how I got around this problem in an AM carrier wave:
Except the sync-byte, every bit is manchester encoded.
Every bit gets sampled 8 times. The result is you can re-sync your timing on every single bit when you get a little bit of drift. By spreading sampling 8 times within a bit, you can find the point in, say, a high bit at which a low goes high, or on a low bit, when a high goes low. If it drifts by more than 1/8th of a sample for two bits in a row (allowing for a bit of noise), I resync.
If you're using a 5MHz crystal, then you're not going to have much luck here. To achieve this in the same way you'd want to be using a at least a 40MHz TCXO.
In an active system you can use your active field for synchronization. For example, say you have a 125kHz active field, you can use that either embed a sync (eg, every 12th wave has three times the power, something like that).
Food for thought maybe?
If I knew a bit more about the RC4 protocol/carrier specifically I could probably be of more help, sorry, otherwise I can only give general/abstract ideas
Except the sync-byte, every bit is manchester encoded.
Every bit gets sampled 8 times. The result is you can re-sync your timing on every single bit when you get a little bit of drift. By spreading sampling 8 times within a bit, you can find the point in, say, a high bit at which a low goes high, or on a low bit, when a high goes low. If it drifts by more than 1/8th of a sample for two bits in a row (allowing for a bit of noise), I resync.
If you're using a 5MHz crystal, then you're not going to have much luck here. To achieve this in the same way you'd want to be using a at least a 40MHz TCXO.
In an active system you can use your active field for synchronization. For example, say you have a 125kHz active field, you can use that either embed a sync (eg, every 12th wave has three times the power, something like that).
Food for thought maybe?
If I knew a bit more about the RC4 protocol/carrier specifically I could probably be of more help, sorry, otherwise I can only give general/abstract ideas
#424
Tech Initiate
Joined: Feb 2013
Posts: 29
Hi,
based on algorithm which is used for encoding number to bytestream you can use sw error correction. You can find the algorithm with source code in transponder design thread. It is based on convolution with long constrain length so viterbi can not be used but you can use some other algs. If you need further explanation i can help you with this as i worked a lot with finding this alg.
regards
Brano
based on algorithm which is used for encoding number to bytestream you can use sw error correction. You can find the algorithm with source code in transponder design thread. It is based on convolution with long constrain length so viterbi can not be used but you can use some other algs. If you need further explanation i can help you with this as i worked a lot with finding this alg.
regards
Brano
#425
Tech Rookie
Joined: Aug 2014
Posts: 8
#426
http://en.wikipedia.org/wiki/Th%C3%A9venin%27s_theorem
#427
Tech Rookie
Joined: Aug 2014
Posts: 8
Hi,
based on algorithm which is used for encoding number to bytestream you can use sw error correction. You can find the algorithm with source code in transponder design thread. It is based on convolution with long constrain length so viterbi can not be used but you can use some other algs. If you need further explanation i can help you with this as i worked a lot with finding this alg.
regards
Brano
based on algorithm which is used for encoding number to bytestream you can use sw error correction. You can find the algorithm with source code in transponder design thread. It is based on convolution with long constrain length so viterbi can not be used but you can use some other algs. If you need further explanation i can help you with this as i worked a lot with finding this alg.
regards
Brano
So... Why your decoder and encoder use only 3 bytes?
#428
Tech Initiate
Joined: Feb 2013
Posts: 29
the are some bits which meaning is unknown and number is still the same, we tested that. What we tested is that decoder does not care about these bits. They just needs to be encoded correctly. Maybe in newer version of decoder these bits has some meanings. First 2bits in each received byte after preamble does not have meaning at least we do not know. Or maybe this alg is wrong ;0)
Anyhow you can calculate which bit you should receive and till some extent you can correct wrongly received bits.
Anyhow you can calculate which bit you should receive and till some extent you can correct wrongly received bits.
#430
That might be jumping to an incorrect conclusion. The terms "ID" and "status" for describing the packets are totally arbitrary, created by me. I needed to call them something, and I named the packet that was transmitted most often by the transponder "ID" because that's what I ended up using it for in my decoder software. At the time I created these arbitrary names, I had no idea what was contained in the data.
#431
Tech Rookie
Joined: Aug 2014
Posts: 8
Without Status packets AMBrc decoder stop accept chip after 1-2 laps.
Also Status packets is unique for every single chip. So i think it based on ID number.
100% somewhere must be identificator of packet type.
All chips what i read (not too much, just 4 chips) have data like xxxxxxxxxxxxxxxxxxxxx0 - last nibble all time = 0. I think it's not a data. It is part of packet footer (like zeros before preamble data) . And it have reason - 5 bytes = 40 bits length.
#432
Tech Initiate
Joined: Feb 2013
Posts: 29
i do not think so, at least not in this case, this works with dp (older) transponders and i think those do not have status message. From my observation those sends all the time the same message.
#433
I believe you are correct. Three of the twenty "bonus numbers" contained in the MRT PTX-20 do not have status messages, and all of these were "cloned" by MRT from AMB devices.
#434
Tech Initiate
Joined: Feb 2013
Posts: 29
Hi Howard,
i do not have access to decoder now, can you or anybody test to generate the same number with different 'ghost bits' and check which of them works ?
i do not have access to decoder now, can you or anybody test to generate the same number with different 'ghost bits' and check which of them works ?
#435
Tech Rookie
Joined: Aug 2014
Posts: 8
DP chip have ID and 7 status messages.
Last edited by realm2; 08-13-2014 at 12:55 PM.



8Likes