CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

manchester decode
Goto page Previous  1, 2, 3 ... 11, 12, 13
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9370
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 11:35 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 11:47 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 11:59 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 12:12 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 1:07 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 2:02 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 3:06 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 3:28 pm     Reply with quote

What changes should be made to this code based on the width of 1 ?
gaugeguy



Joined: 05 Apr 2011
Posts: 317

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 3:33 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 3:40 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 04, 2025 4:01 pm     Reply with quote

What's the receiver look like? post a picture and one of the 'computer' for ID info.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3 ... 11, 12, 13
Page 13 of 13

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group