home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.video
- Path: sparky!uunet!wupost!csus.edu!netcom.com!netcom!mjohnson
- From: mjohnson@netcom2.Netcom.COM (Mark Johnson)
- Subject: Re: VCR PLUS code conflicts in TV Guide
- In-Reply-To: pdh@netcom.com's message of Fri, 1 Jan 1993 05:00:30 GMT
- Message-ID: <MJOHNSON.93Jan1060504@netcom2.Netcom.COM>
- Sender: mjohnson@netcom.com (Mark Johnson)
- Organization: Netcom Online Communications Service
- References: <1993Jan1.050030.28763@netcom.com>
- Date: Fri, 1 Jan 1993 14:05:04 GMT
- Lines: 32
-
- One "constructive" suggestion is to grab the C program that
- performs VCRPLUS _encoding_ . It appeared yesterday in message
- <1992Dec31.180816.7396@cs.wisc.edu>
- Using it you can generate your own code numbers that differentiate
- between channel 20 and 30. (and you can test out the assertion
- that they do or don't collide to the same encoded number)
-
-
- It must have been a pleasant surprise to the VCRPLUS developers
- [well OK, at least it was to me :-)] that the math works out
- so handily:
-
- 48 different start times (every hour and halfhour)
- 10 different show lengths (30,60,90,120,150,180,210,240,270,300 min)
- 64 different channels {this is 2^6}
- 32 days per month {this is 2^5}
-
- Multiply these together and you get 983040 distinct possibilities
- each month. Which fits very nicely into six decimal digits. And
- which I myself think is pretty cool.
-
- To be proprietary they mix the month and year into the encoding
- algorithm, so that each time-slot gets a different code number
- each month. Otherwise crackers could just make a lookup table
- and the VCRPLUS people would lose royalties :-).
-
- The six digit codes are used for "standard" shows: ones that don't
- begin at a weird time {e.g. 4:15} or run for a weird length { 45 min }.
- Weirdness is handled by the 8 digit codes which have room to do
- all manner of rude special cases :-).
-
- MJ
-