View previous topic :: View next topic |
Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9370 Location: Greensville,Ontario
|
|
Posted: Tue Feb 04, 2025 11:35 am |
|
|
I didn't see where you enabled timer0 interrupt after getting the 'sync'? in version 4.
You have to enable it. |
|
|
bulut_01
Joined: 24 Feb 2024 Posts: 156
|
|
Posted: Tue Feb 04, 2025 11:47 am |
|
|
In the an744 document, the timer0 interrupt is never closed. The initreceiver() timer interrupt is reset. The timer0 interrupt is always open. Isn't this interrupt a 72 ms cycle? Let me ask the same question again. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9370 Location: Greensville,Ontario
|
|
Posted: Tue Feb 04, 2025 11:59 am |
|
|
AN744 was written 20 years ago as a proper ,legit program to decode a device sending 'Manchester ' formatted data. There are 100s of versions of this on the web of course.
Your 'transmitter' is NOT a proper ,legit MANCHESTER device !!! It does NOT follow the MANCHESTER protocol, that's why YOU have to modify it.
Now if you knew the company that made the device,you could ask them how their receiver works as it is NOT a 'Manchester' receiver or use Google to find someone who has 'reverse engineered' the receiver.
BTW ,take out the delay_ms(50) line I have. I needed it to compile. |
|
|
bulut_01
Joined: 24 Feb 2024 Posts: 156
|
|
Posted: Tue Feb 04, 2025 12:12 pm |
|
|
If you are saying this for pre-data, we have taken care of the preamp sync part, the rest is standard manchester. If you have another working manchester decode code, please share it. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9370 Location: Greensville,Ontario
|
|
Posted: Tue Feb 04, 2025 1:07 pm |
|
|
The code in AN744 was specific to KEELOQ technology not 'Manchester'.
Have a look at the 'bit times' ( Te ?) see what changes you have to do to have the ISR properly capture your bits. Maybe search for 'key fob manchester decoder' or whatever the 'remote' device is. You could modify the An744 code as it was also able to 'learn' a KEELOQ device
again, I don't have your transmitter so I can't test any code create.
odds are real good you're not the 1st to do it ! |
|
|
bulut_01
Joined: 24 Feb 2024 Posts: 156
|
|
Posted: Tue Feb 04, 2025 2:02 pm |
|
|
If this AN744 Manchester decoder does not work, why have we been rowing in vain until now? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9370 Location: Greensville,Ontario
|
|
Posted: Tue Feb 04, 2025 3:06 pm |
|
|
It's a VERSION of Manchester, the 'core' is good.
Actually, there's 2 according to Wikipedia....
As long as you know the width of a '1' or a '0' and which 'version', and the actual data format, it's pretty easy.
AN744 is a working example of KEELOQ, of which they use 'Manchester'.
Your 'transmitter' doesn't just use Manchester hence the problem. |
|
|
bulut_01
Joined: 24 Feb 2024 Posts: 156
|
|
Posted: Tue Feb 04, 2025 3:28 pm |
|
|
What changes should be made to this code based on the width of 1 ? |
|
|
gaugeguy
Joined: 05 Apr 2011 Posts: 317
|
|
Posted: Tue Feb 04, 2025 3:33 pm |
|
|
You have made a lot of statements about what you have for hardware. Many of those don't seem accurate. Only you know what you have, or maybe you are not even sure. |
|
|
bulut_01
Joined: 24 Feb 2024 Posts: 156
|
|
Posted: Tue Feb 04, 2025 3:40 pm |
|
|
gaugeguy wrote: | You have made a lot of statements about what you have for hardware. Many of those don't seem accurate. Only you know what you have, or maybe you are not even sure. |
What doesn't seem right? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9370 Location: Greensville,Ontario
|
|
Posted: Tue Feb 04, 2025 4:01 pm |
|
|
What's the receiver look like? post a picture and one of the 'computer' for ID info. |
|
|
|