Leadman Play@TV NMP4000

This forum is a repository for code search requests that have been resolved.

Moderator: Moderators

jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post by jon_armstrong »

I was going to suggest that we break the process down and first try a protocol with three variable bytes in transmission order (LSB first) and see if we can make that work, and then add the logic to calculate the second two bytes from the first.
-Jon
The Robman
Site Owner
Posts: 22062
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

That idea has occurred to me also, I just haven't had any free time to do anything about it.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
will1305
Posts: 15
Joined: Thu Apr 15, 2004 6:23 pm

Post by will1305 »

Hi guys. Happy newyear.

I've tried another couple of hours of various variations on the theme outlined in the messages exchanged todate in this thread but clearly lack the depth of understanding to get this to work.

Did one of you make any progress on the approach you suggested in breaking the problem down into smaller steps? If there is anything I can do / try let me know.

thanks,
Will
jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post by jon_armstrong »

I'm getting closer to the simple solution of just trying to send three bytes:

Code: Select all

Addr	Code	Label	Op	Op Args	Comments
			REMOTE	S3C8+	
FF00	37 98		DB	37H,98H	;37.9 kHz 27%
FF02	03		DB	03H	;0 dev, 3 cmd
FF03	8B 12		JR	Start	
FF05	84		DB	84H	;pf0: 10000100=1-cmd,dev-cmd
FF06	40		DB	40H	;pf1: 01000000=1on-LO
FF07	00		DB	00H	;pd00: DevBits1=0
FF08	08		DB	08H	;pd01: CmdBits1=8
FF09	01 90		DW	0190H	;pd02/03: 1-burst on=800 uS
FF0B	03 0C		DW	030CH	;pd04/05: 1-burst off=1600 uS
FF0D	02 58		DW	0258H	;pd06/07: 0-burst on=1200 uS
FF0F	04 9C		DW	049CH	;pd08/09: 0-burst off=2400 uS
FF11	00 00		DW	0000H	;pd0A/0B: Leadout off=0 uS
FF13	04 E2		DW	04E2H	;pd0C/0D: Leadin on=2500 uS
FF15	04 CE		DW	04CEH	;pd0E/0F: Leadin off=2500 uS
					
FF17	F6 01 46	Start:	call	0146H	send first part
FF1A	08 04		ld	rc0,r04	Load second and third variable bytesr04,r05
FF1C	18 05		ld	rc1,r05	
FF1E	E6 28 C8		ld	r28,#C8H	Compute GAP as a part of the total; Command 2 words
FF21	E6 29 45		ld	r29,#45H	Lead always same, RPT when held
FF24	E6 24 08		ld	r24,#08H	set R24 to 8 bits
FF27	C6 1C 94 70		ldw	r1C,#9470H	;pd0A/0B: Leadout off=76000 uS
FF2A	8D 01 46		jp	0146H	send and exit
It has two problems:

1. Huge gap between the fixed and repeat frames
2. The second byte is sent by the one time frame and the second and third by the repeat.

Any ideas?
-Jon
jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post by jon_armstrong »

Ok, I figured out 1. apparently it doesn't like computing a total frame length in the second segmet so it's just approximationg the Off time in the repeat frames. Even wih a zero off time in the first segment, there is a considerable gap between the first frame and the repeat frames, bu I'll just set the off time to compensate.

I also need to go back to Rob's idea about adding the 2500 uS On time before the repeating frames.
-Jon
jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post by jon_armstrong »

OK, give this a try.

I haven't assigned many keys but in testing it seems to work.
-Jon
will1305
Posts: 15
Joined: Thu Apr 15, 2004 6:23 pm

Post by will1305 »

Jon,

I'm probably overooking something simple but I can't get the file you created to load into KM (I have version 8.31). The message displayed is: "Unsupported or Unrecognized protocol". I have tried to copy and paste the text from the page displayed in explorer into a text file and loading that file. Also tried to copy and import into KM. Same message in both instances.

What am I overlooking?

Will
jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post by jon_armstrong »

I just downloaded 8.31 and downloaded the file and it opens fine. Did you open KM first and then use the load button?
-Jon
will1305
Posts: 15
Joined: Thu Apr 15, 2004 6:23 pm

Post by will1305 »

Jon,

2nd attempt worked better (used right click and save as on the download button, rather than copy/paste).

The good news: IT WORKS!

I quickly tried the number keys. They work fine. I have another commitment tonight but will look at completing the keymaster definitions for the full remote tomorrow.

I'll post the file in the yahoo file section assuming I can get all keys to work. I'll keep you posted.

Thanks for all the help in making this one work.

Will
will1305
Posts: 15
Joined: Thu Apr 15, 2004 6:23 pm

Post by will1305 »

I've created the full upgrade for the Leadman Play@TV NMP4000 Network Media Player. The KM .txt file has been uploaded to the Yahoo appropriate file folder.

It can be located at: http://groups.yahoo.com/group/jp1/files ... MP4000.txt

Jon and Rob - thanks for all the help in getting this one resolved.

Will
jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post by jon_armstrong »

Will,

I was gone all day, but yesterday after I got the three byte version to work, I tried to put in Rob's logic for the one byte version. I know I have all the correct settings for the built in routine (since the three byte version now works), but I still can't get the One byte version to work. You probably have better skills than I do with that part. If you are interested, I'll post the disassembly of what I think should work and see if you can troubleshoot the rest.

Anyway, I'm glad it works. I got some good help from the experts.
-Jon
will1305
Posts: 15
Joined: Thu Apr 15, 2004 6:23 pm

Post by will1305 »

Jon,
I would be happy to have a look at the one byte version. If you could post the disassembly I'll have a look at it.
thanks,
Will
The Robman
Site Owner
Posts: 22062
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I had another crack at the 1byte version, try this...

Upgrade Code 0 = 0F D5 (Cable/2005) Leadman_KM (KM v8.31)
DF 00 F9 28 1E 1F 20 21 22 23 24 25 26 27 29 17
02 03 04 01
End

Upgrade Protocol 0 = 01 DF (S3C8) Custom Protocol for Cable/2005 Leadman_KM (KM v8.31)
37 98 01 8B 12 8C 40 00 08 01 90 03 0C 02 58 04
9C 04 00 09 C4 04 9C 08 03 18 03 38 03 56 C0 F0
1E 48 C1 1E 58 C1 56 C4 0F 56 C5 0F 42 40 42 50
2C 03 87 62 C2 8C 08 C0 C6 10 C7 8A FA 60 C7 97
72 02 2A EE F6 01 33 20 10 20 11 46 29 04 E6 1C
2F F6 01 33 46 29 01 C6 1E 04 CE 8D 01 33
End
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Post Reply