Functionally modifiable cable television converter system

Abstract: A cable television converter with remotely modifiable functionality receives firmware downloaded over a cable television network. The integrity of the firmware is verified, and if valid, the firmware is executed to provide one or more converter functions. If the firmware is invalid, default operation software contained in ROM is executed instead of the firmware to return the converter to baseline operation. In one embodiment, the converter includes a frequency agile data receiver to receive control instructions on a first data channel and firmware on a second data channel. The receiver is forced back to the first channel if a successful firmware download does not occur on the second channel within a predetermined time period. The firmware is continuously transmitted in short segments, and the converter can continue to receive segments until all the segments of a designated firmware package have been successfully downloaded, unless the predetermined time limit expires sooner.

Description: The present invention relates to cable television apparatus, and more particularly to a converter with remotely modifiable functionality provided by downloadable software. Cable television converters are currently available that allow a cable system operator to remotely control subscriber service authorizations from a central "headend" site. These units, which are commonly referred to as "addressable converters", allow the cable system operator to control access to various premium services by sending a control signal from the headend to individual converters located at subscribers' homes. The authorization signals are carried on the cable television system, and enable individual subscribers to view programs that they pay an additional fee for. In operation, the control signals typically enable the converter to descramble the premium channels for viewing by the subscriber. Other addressable systems currently available allow a limited set of operational parameters to be downloaded to a converter from the headend. Such operational parameters include, for example, information that maps displayed channels to tuned channels, time-out periods, barker channel(s), the converter output channel, the terminal configuration, and enable/disable functions for subscriber features such as remote hand-held control, parental control, favorite channel recall, volume control, and the like. The current state of the art is to download configuration information for a set of features that have been predetermined at the time of manufacture or installation of the cable television converter. An example of such a converter is the Model DPV7200 addressable converter manufactured by the Jerrold Division of General Instrument Corporation, Hatboro, Pennsylvania, U.S.A. Other systems with downloadable data capabilities are also known. U.S. Patent 4,054,911 to Fletcher, et al. relates to an information retrieval system capable of capturing packets or rows of video displayable data and/or control program instructions from data continuously transmitted in a common predetermined format. In the system disclosed in the patent, a user decides what information is to be retrieved, and takes action to cause a terminal to retrieve that information. Although a user can vary the function of the terminal by capturing different transmitted data, it is the user that determines what video displayable information is to be received, and how the terminal which receives this information is to process it. There is no disclosure or provision of means to enable a system operator to establish the functional operation of individual terminals on a multi-terminal network. In commonly owned U.S. Patent 4,712,239 to Frezza, et al. entitled "Security Arrangement for Downloadable Cable Television Converters", a converter capable of downloading is disclosed that prevents a false booter image from being downloaded. A false image could subject the system to various integrity problems, such as enabling an unauthorized user to view premium programs. In the patented system, a booter image is received on one channel and a checksum is computed therefrom. A valid checksum, extracted from tag data transmitted on a separate channel and associated with a scrambled program signal, is compared with the computed checksum. If the checksums do not match, a descrambler in the converter is precluded from descrambling the program signal. The system disclosed in this patent downloads all of the operating software to a cable television converter over a dedicated "booter channel", to which the converter is force tuned when first turned on. After the download is complete, the converter's data receiver is returned to the regular data channel, where it remains until the converter is turned off. EP 0 132 401 A2 discloses a system of transmitting information individually and secretly. The information to be transmitted is converted, on the transmission side, in accordance with a predetermined algorithm designated by two keys and then transmitted to a receiving side. The receiving side is supplied with at least two keys from the transmitting side for reproducing the transmitted information by using the two keys. One of the keys is frequently changed so that the algorithm is also changed frequently. US 4,710,955 discloses a pay-per-view cable television system that uses a separate telephone line as a secondary communication path. In the system, a subscriber terminal includes a tunable converter arranged to receive command data and to download operational parameters forwarded from a headend. The article "Der Schlüssel zum Scrambling-Problem?" of Charles Scheper in Funkschau 5/1989, pages 59 to 62 describes an access key for services on a cable system. A control word for accessing one or several services is provided. The control word is used for ordering services. GB 2 118 750 A discloses a system for downloading information, software modules and control data to selected terminals in order to provide additional functions such as unscrambling of pay-TV signals, and subscriber interaction signals. It would be advantageous to provide a method and system for downloading software to a remote terminal, such as a cable television converter, to allow modification of virtually any or all software functions of the terminal by the system operator. It would be further advantageous for such a method and system to enable the system operator to replace or modify options that were predetermined at the time of manufacture or installation of the terminal. By effecting terminal modifications automatically from a headend location, such a method and system would eliminate the need for a technician to travel to a subscriber's home to modify or physically replace a subscriber's terminal to effect such functional modifications. The present invention provides such a method and system for remotely modifying the functionality of a cable television converter or other terminal. In accordance with the present invention a cable television addressable converter with remotely modifiable functionality is provided. The converter comprises frequency agile data receiver means capable of tuning to different carrier frequencies for receipt of addressable converter control data from a cable television headend on a first channel and for receipt of operating software from said headend on a second channel of the distributing cable; means for tuning said receiver means to said second channel by switching from a carrier frequency of the first channel to a carrier frequency of the second channel for receipt of the operating software in response to instructions contained in said addressable converter control data received on said first channel; memory means for storing the operating software received on said second channel; and processor means coupled to said memory means for accessing and executing the operating software received from said headend to provide at least one converter function. The converter according to one preferable embodiment includes means for receiving software downloaded over a cable television network, and means coupled to the receiving means for storing the software. In another preferable embodiment means are provided for verifying the integrity of the software, and processor means coupled to the storing means accesses and executes the software to provide one or more converter functions dictated by the software. In a further preferable embodiment nonvolatile memory means are coupled to the processor means for storing default operation software for the converter. In an advantageous embodiment means responsive to the verifying means cause the processor means to execute the default operation software, instead of the downloaded operating software, in the event the integrity of the software is not verified. Data receiving means are preferably provided for obtaining instructions downloaded over a cable television network. Downloaded software is received and stored by the converter only in response to specific instructions received by the data receiving means. The software receiving means and data receiving means advantageously comprise a frequency agile data receiver, together with means for selectively tuning the receiver, to receive instructions on a first channel and downloaded software on a second channel. Timer means return the receiver to the first channel if the receiver has been tuned to the second channel for a predetermined time period. The predetermined time period may be specified in instructions received on said first channel, and the length of the time period may be dependent on an amount of firmware to be received. In this manner, a converter will not become stuck on the second channel by error, and be rendered unable to receive further instructions on the first channel. The downloaded software received and stored by the converter can implement a functional layout on a keyboard associated with the converter. Software can also implement a feedback function, such as an LED (light-emitting-diode) display or on-screen display to assist a user in operating the converter. A control function for a video recorder coupled to the converter can also be implemented by the software. Similarly, the software can implement a communication protocol for the converter, a descrambling technique for the converter, an on-screen display to be provided by the converter to a television coupled thereto, and/or a user interface to services provided over the cable television network. In a preferred embodiment of the present invention, software is transmitted in an encrypted form, and the instructions contain a key for decrypting the software. The software may also be received by the converter in a plurality of segments, with the instructions identifying the number of segments to be received for a complete software download. Means can be provided of determining if all of the segments have been validly received, and for receiving replacement segments if one or more segments of the software have not been validly received. Receipt of software can be prevented if the number of segments identified by the instructions is greater than a predetermined limit. A cable television headend apparatus is provided for downloading operating software to an addressable, remotely modifiable cable television converter. Means are provided for transmitting addressable converter data on a first data channel of a cable television network. Means are provided for transmitting operating software on a second data channel of the cable television network. An address specific to a particular converter is provided in the addressable converter data, which enables specific data to be received by the converter. Instructions are provided in the specific data, to cause the converter to receive software transmitted on the second channel. The cable television headend apparatus can further include means for verifying that software downloaded to the converter has been successfully received by the converter. Billing means maintain records of the cable television services each converter on the system is authorized to receive, and the various functions the converter is to have, and can assign a particular software package to be downloaded to a particular converter on the basis of the functions specified for that converter. A method for providing a cable television addressable converter with functions dictated by downloaded operating software is also provided. Converter addressable control data is received from a remote location via a cable television network. A designated software package is captured from a set of firmware packages carried on the cable television network, in response to instructions contained in the converter control data. The designated software package is stored in a memory provided in the converter, and is executed to provide at least one converter function dictated thereby. The software packages may be carried on the cable television network in encrypted form, and decrypted using a key contained in the converter control data. In one embodiment, the converter control data is received on a first data channel and the software packages are captured from a second data channel on the cable television network. The first channel is monitored to receive converter control data, and the second channel is tuned to captured software upon receipt of appropriate instructions on the first channel. Reception is returned to the first channel after the software is captured. If the software has not been captured within a predetermined time period, reception switches back to the first channel from the second channel. Also in accordance with the present invention, a remotely modifiable user terminal in the form of a cable television converter is provided which comprises means for receiving a plurality of cyclically transmitted software segments, the segments together comprising a software package. Means coupled to the receiving means verify each segment upon receipt thereof, and means are provided for storing each verified segment. A determination is made as to whether a complete software package has been stored in the storing means at the completion of a software transmission cycle. If not, then reception, verification, and storage of transmitted software segments continues during a subsequent software transmission cycle. Reception of the software segments is terminated upon a finding that a complete software package has been stored. Means can further be provided for precluding the execution of the software segments until a complete software package has been stored. The verifying means can operate by testing a checksum for each software segment as it is received. The terminal may further comprise means for maintaining a record of the proper checksum for each segment, and means for periodically retesting the checksums after a complete software package has been stored. Default operation software may be stored for the terminal, and executed if the checksums are not verified upon retesting. The complete software package may also be verified after it has been stored, and the default operation software executed if the complete software package is not valid. The default operation software may also be executed if reception of software segments is not completed during a predetermined time period. A complete software package may include a plurality of modules. Execution of fewer than all of the modules may be precluded as an additional security feature. The present invention provides a method and system for downloading software to a remote terminal, such as a cable television converter, to allow modification of virtually any or all software functions of the terminal by the system operator. It is further advantageous for such a method and system to enable the system operator to replace or modify options that were predetermined at the time of manufacture or installation of the terminal. By effecting terminal modifications automatically from a headend location, such a method and system eliminates the need for a technician to travel to a subscriber's home to modify or physically replace a subscriber's terminal to effect such functional modifications. The present invention provides a method and system for remotely modifying the functionality of a cable television converter or other terminal, which is operable in a nominal or baseline operation mode by downloading specific software to the converter. Further features and advantages of the present invention are disclosed in the following description and drawings. In the drawings: Figure 1 is a block diagram of a functionally modifiable cable television converter system in accordance with the present invention; Figure 3 is a block diagram of the pertinent elements of a converter used in connection with the system of the present invention; Figure 3 is a flowchart illustrating steps taken by the headend when it receives a new software package or an assignment to download software to a converter; Figure 4 is a flowchart illustrating the continuous transmission of software over a secondary data channel; Figure 5 is a flowchart illustrating the steps taken by a converter in receiving downloaded software; and Figure 6 is a flowchart illustrating the periodic reverification of downloaded software by a converter. Turning to Figure 1, a cable television system is depicted having headend components, generally designated 10 and subscriber components, generally designated 12. The headend communicates with the subscriber via a distribution cable 36. A firmware development system 16 is used to create new functional software packages for subscriber terminals, such as converter 40. Software development system 16 may be physically located at the headend, but is more typically located at the facilities of a vendor which develops new software programs for sale to a cable system operator. New software packages may be transferred to an addressable controller 14 located at the headend by magnetic tape 20 which is read by addressable controller 14, or by communication between the software development system 16 and addressable controller 14 via direct connection or modems 18 operating over conventional telephone lines. Those skilled in the art will recognize that other means may also be available for transferring software from software development system 16 to addressable controller 14. Once software is resident in addressable controller 14, it is transmitted repeatedly over a data channel. The data channel may be either the primary addressable data channel provided in a conventional cable television network having addressable converters, or a separate secondary data channel. In either event, the data channel(s) can transmit the data on an FSK modulated FM carrier or by any other suitable transmission scheme well known in the art. The use of a secondary channel for downloading software to converters is illustrated in Figure 1. Control signals, including data such as converter addresses, program authorization codes, and the like is communicated from addressable controller 14 to a converter 40 via control data modulator 26. The output of control data modulator 26 is coupled to distribution cable 36 via a tap 34, and data is received therefrom by converter 40 via tap 38. The control data modulator transmits the data signals on a primary channel, and in accordance with the present invention, the data includes instructions to converter 40 which cause the converter to receive specified software downloaded from addressable controller 14. In the two channel embodiment illustrated in Figure 1, the software is transmitted on a secondary channel by software modulator 24, coupled to the cable network at tap 30. Upon receipt of instructions on the primary channel, converter 40 switches to the secondary channel for receipt of designated software. An additional data path 28 may optionally be provided via tap 32 for receipt of data from converter 40 by addressable controller 14. Such data might include, for example, a verification that converter 40 has successfully received a software package it has been instructed to receive. The provision of a return path 28, which provides a "two-way" cable communication system, is well known in the art. Billing system 22 is provided at the headend for maintaining accounting information relating to charges incurred by subscribers on the cable system. In accordance with the present invention, different software packages downloaded by headend 10 to converter 40 may provide different converter functions, with higher levels of service providing increased converter functionality. Billing system 22 keeps track of the level of service for each subscriber, and assigns particular software packages to subscriber converters on the basis of converter functionality to be provided to each subscriber. At the subscriber location 12, a subscriber may have one or more video appliances 42, 44 coupled to the output of converter 40. For example, video appliance 42 might be a television set, and video appliance 44 might be a video recorder ("VCR"). In accordance with the present invention, software downloaded to converter 40 can provide functions relating to a VCR. An example of such a function is time controlled programming. This function enables the converter to be programmed to make channel changes at various times so that the VCR can record different television programs on different channels automatically and while unattended. Such a function can also enable "impulse pay-per-view" orders to be programmed into the converter by a subscriber, so that special premium programs can be ordered, when the subscriber is not home, and recorded on the subscriber's VCR for later viewing. Figure 2 is a block diagram illustrating the pertinent components in one embodiment of a converter 40 in accordance with the present invention. In the embodiment illustrated, the converter receives addressable data on one data channel and downloaded software on another data channel. It is noted that both the addressable data and the software can also be received over a single data channel. Or, the software may be carried on some other media, such as the public telephone network. In the two channel embodiment illustrated in Figure 2, a microprocessor 50 receives data from cable 36 via a frequency agile receiver 52. A transmitter 61 and return path 62 can be provided from microprocessor 50 back to addressable controller 14 in the event the converter is used with a two-way cable television system. Like receiver 52, transmitter 61 can be frequency agile to enable a choice of return transmission frequencies. A tuner 54, under the control of microprocessor 50, tunes frequency agile receiver 52 to either a primary channel for receipt of addressable data (e.g., instructions to capture a particular software package) or to a secondary channel for the receipt of software. Although a single secondary channel is described herein for purposes of illustration, it will be appreciated that any number of such secondary channels can be provided, depending on system requirements. Typically, frequency agile receiver will be tuned to the primary channel, and will only switch to the secondary channel upon specific instructions contained in data received on the first channel. In the alternate example where both addressable data and software are received on a single data channel, frequency agile receiver 52 and tuner 54 can be replaced with a fixed frequency data receiver. The provision of a dedicated secondary data channel as illustrated in Figure 2 is advantageous. By keeping software data off of the primary channel, the data throughput load on this channel is reduced. In the two channel embodiment, software data is broadcast cyclically on the second channel, by addressable controller 14 at the headend. In a preferred embodiment, a plurality of different software packages are broadcast on the secondary channel, each package providing different converter functions or combinations of functions. Upon receipt of instructions on the primary channel, microprocessor 50 will cause tuner 54 to switch receiver 52 to the secondary channel for receipt of a designated software package. Various memory devices are coupled to microprocessor 50, including read only memory ("ROM") 65, operating random access memory ("RAM") 58, and nonvolatile RAM 60. ROM 56 contains a program that allows converter 40 to retrieve and execute a downloaded software package. Upon receiving the proper command from the addressable controller, the converter aborts any downloaded package currently being executed, accesses the appropriate data channel for receipt of a designated software package to be downloaded, and receives and loads the software into nonvolatile firmware RAM 60. ROM 56 also contains default operation software, which is used to restore the converter to a nominal or "baseline" operation if a bad software download occurs. Such a nominal or "baseline" operation provides the basic functions to a converter, so that watching of at least one television program is possible. These basic functions in particular are predetermined options. As explained below, if an error is detected in the receipt of downloaded software, or if the software is found to be invalid, the converter is forced to execute only the default operation software stored in ROM 56. A timer 64 is associated with microprocessor 50 to provide a time-out feature that prevents the converter from getting stuck on the secondary channel, in the event there is a problem receiving specified software. When billing system 22 assigns a new software package to a particular converter 40, addressable controller 14 is commanded to transmit instructions to the converter. The instructions are received by microprocessor 50, and include an identifier specifying which software package to receive, where to find the software package (i.e., on the primary or a specified secondary channel), a predetermined time limit defining how long the converter should attempt to receive the software before aborting, a key to use in decrypting the data in the event it is encrypted, and the maximum segment number to be loaded (indicating how many segments are included in the software package to be received). While the software is being received, timer 64 counts down the time-out period specified in the download command. If the timer expires, microprocessor 50 aborts the download, and returns to the original data channel. The time-out period specified in the download command can be varied depending on the amount of software to be downloaded. Timer 64 is also used in connection with a self-check that is periodically performed by the converter to ensure that the software has not changed since the last authorized download. This self-check is a security feature to guard against infiltration of the converter by a "software pirate" who attempts to download unauthorized software to the converter, in an effort to steal services from the cable system. In accordance with the self-check procedure, timer 64 retests the checksum for each of the software segments at regular intervals after the software has been downloaded. In the event a checksum is found to be invalid, microprocessor 50 restores the converter to baseline operation by executing the default operation software contained in ROM 56. Converter 40 contains various other components with functions that can be modified by downloaded software. For example, a light-emitting-diode ("LED") display or other display 66 may be provided on the converter to give a user feedback concerning converter operations. Pressing a button on the converter, or its remote control unit, can cause an LED to light, verifying that the button has been pressed or that a function to be activated by the button has occurred. Such a feedback function is useful to assist a user in operating the converter. The converter also includes a keyboard 68, the functional layout of which can be defined and/or modified by software downloaded to the converter. Keyboard 68 may be physically on the converter box, on a remote hand-held unit for the converter, or a separate keyboard can be provided in both places. Converter 40 also includes a descrambler 70 for descrambling premium programs received via the cable television network. Various descrambling techniques are well known in the art, and different techniques can be implemented by downloading different software to the converter. Another feature that can be provided by converter 40 is the display of information on a user's television set. On-screen display driver 72 is provided for this purpose. An example of such a display is the channel number tuned to, or the current time. In addition, on-screen displays can be used to distribute messages from the cable system operator, e.g., "your account is past due; please send us a check". An electronic mail, or "E-mail" feature can also be provided, enabling a subscriber to send and receive text messages on his television (or other display) via the cable system. The implementation and/or modification of on-screen displays can be provided by software downloaded to the converter. In order to provide a measure of protection against illegal use of the software download feature, the software is downloaded to the converter in an encrypted form. The data is decrypted at the converter by a decryption module 74. A decryption key is transmitted to the converter from the headend as part of the addressable data instructions that command the converter to receive a particular software package. Encryption and decryption schemes are well known in the art. Examples of such schemes are provided in commonly owned U.S. Patent Nos. 4,638,356 of William A. Frezza, entitled "Apparatus and Method for Restricting Access to a Communication Network", and 4,710,955 of Marc W. Kauffman, entitled "Cable Television System with Two-Way Telephone Communication Path". A viewership monitor 76 can be provided in accordance with the present invention to enable a cable system operator to determine what programs and services a subscriber has received using each converter, and/or to retrieve a list of the functions which have been used on each converter. Viewership monitor 76 will monitor the operation of the converter, and store pertinent data relating thereto. By addressing an appropriate command to the converter, the cable system operator will be able to upload the data to the headend for analysis. Other functions that can be implemented by software downloaded to the converter include communication protocols for the converter, and user interfaces to services provided over the cable television network. For example, a user may be provided with the capability to order pay-per-view programs on an impulse basis. The procedure for ordering such programs can be modified through downloadable software. Utility meter reading can also be provided, by adding an asynchronous data port to the converter and controlling the retrieval of utility data via downloaded software. A flowchart illustrating a routine which can be used by the addressable controller in connection with the receipt and downloading of software is provided in Figure 3. The routine begins at box 80, and at box 82 a determination is made as to whether a software update has been received from the software development system. If so, control passes to box 84 and the new software data is encrypted. At box 86, the encrypted data is loaded into the secondary data channel transmitter (software modulator 24) and continuously transmitted on the secondary channel together with other software packages that can be provided to converters on the system. At box 88, a determination is made as to whether a new software package assignment has been made by billing system 22. If so, addressable controller 14 sends an appropriate command on the primary channel (control data modulator 26) as indicated at box 90. The command is addressed to the particular converter that is to receive the software, and identifies the channel the software is to be received from, identifies the software package to be received, provides the decryption key necessary to decrypt the software data, identifies the number of segments which make up the complete software package, and sets forth the time-out parameter defining the maximum time the converter should stay tuned to the secondary channel for receipt of the downloaded software. The converter receives the software in fixed length "segments", and specific converter models will have specific maximum segment numbers determining the actual maximum size of allowable software downloads. In a preferred embodiment, the maximum segment number is a hard-coded parameter. Should an attempt be made to download software that exceeds the maximum size, the download will be rejected by the converter. In operation, the converter will ignore the download command and will not switch to the secondary channel if the transmitted maximum segment number parameter exceeds the internal converter maximum. At box 92 of Figure 3, a determination is made as to whether an abort of a download is required. This would be the case, for example, if the addressable controller detects a problem with an attempted download. In the event an abort is required, an abort command is transmitted over the secondary channel as indicated at box 94. The converter will then switch back to the primary channel, execute the default operation software to return to a baseline operation, and await a subsequent command from the addressable controller via the primary data channel. At box 96, the routine of Figure 3 ends. It will be appreciated by those skilled in the art that the routine of Figure 3 is called on a periodic basis (or can be a continuous loop) to enable new software to be received from the software development system and to download software packages to converters at the command of billing system 22. Figure 4 illustrates a routine that the addressable controller can use to continuously transmit firmware data over the secondary channel. The routine commences at box 100, and at box 102 data is transmitted over the secondary channel. At box 104, a determination is made as to whether the last segment of a software package has been transmitted. If not, transmission of the remaining segments continues as indicated at box 102. Once the last segment has been transmitted, control passes to box 106 and the addressable controller transmits a check/execute command to the converter(s) that was to receive the software package. The check/execute command includes the software package number that was to be received, and a check pattern. The check pattern is used to verify the entire download prior to execution. When a check/execute command is received, the converter checks to see if all required segments have been received, and that the check pattern downloaded matches the pattern calculated from the actual downloaded data. If all checks are valid, the converter permits execution of the downloaded code, and returns to the primary data channel. After the check/execute command is sent at box 106 of Figure 4, control returns to box 102, and continuous transmission of the data proceeds over the secondary channel. Figure 5 is a flowchart illustrating the capture of downloaded software by a converter. The routine begins at box 110, and control passes to box 112 where a determination is made as to whether a software capture command has been sent to the converter. If not, the converter continuously waits for such a command to be received at box 112. Once a software capture command is received, control passes from box 112 to box 120 for the actual capture of the software. At the same time, an ancillary time-out process commences as indicated at boxes 114, 116, and 118. A timer counts down the time-out period specified in the software capture command. If the time-out period expires before the specified software package has been successfully captured, as determined at box 114, control passes to box 116 where the download is aborted and the converter returns to the primary data channel. As indicated at box 118, the default operation software is executed so that the converter can operate in a baseline mode until the appropriate software package can be properly downloaded. As indicated at box 120, before a software download commences, a determination is made as to whether the number of segments contained in the software package to be downloaded is within bounds. In other words, as noted above, the maximum segment number of the software package to be downloaded must not exceed the maximum size allowable for the converter. If the number of segments exceeds the number allowed by the converter, the software capture command is ignored and control returns to box 112. Otherwise, the software capture proceeds and at box 122, the converter switches to the secondary channel (i.e., the channel on which the firmware is downloaded). At box 124, the segments comprising the software package are received. software is continuously broadcast on the secondary data channel in small (e.g., 32 byte) encrypted packets. A converter that has been commanded to accept a new package tunes to the appropriate channel and loads each packet that has the proper version identifier. While loading, the converter keeps track of each segment successfully loaded in an internal segment bit map. As indicated at box 126, a determination is made as to whether a segment has been successfully loaded. This is accomplished by computing a checksum for each segment, and comparing the checksum with one downloaded with the firmware segment. If the checksums match, the converter decrypts the data contained in the segment, stores the data, and sets an appropriate bit in a software segment bit map as indicated at box 130. In storing the data, if prior software has been stored in the converter, the appropriate segment of the prior software is overwritten with the newly received data. If it is determined at box 126 that a segment has not been properly loaded (i.e., the computed and downloaded checksums do not match), the converter ignores the segment and proceeds directly to box 132. At box 132, a determination is made as to whether the last segment in a software package has been received. If not, control returns to box 124 and the procedure continues until all segments are received. After the last segment has been received, control passes to box 134 which determines if the bit map created at box 130 is complete. If the bit map is not complete, it means that one or more segments were not properly loaded and an attempt to receive these segments will be made during the next transmission cycle of the software. In this event, control returns from box 132 to box 124 where an attempt to receive the entire firmware package will again be made. As is evident from the flowchart of Figure 5, an incorrectly received segment will not overwrite a previously correctly received segment. All correctly received segments, however, will overwrite previously received segments. In this manner, even if there are errors in the transmission of certain segments during a download cycle, all of the segments should be correctly received after the completion of several complete transmission cycles of a software package. Once all of the segments have been properly received, the bit map will be complete, and box 134 will pass control to box 136. Box 136 responds to the check/execute command transmitted by the addressable controller at box 106 in Figure 4. When the check/execute command is received, the converter checks to see if all required segments have been received and that the check pattern downloaded matches a pattern calculated from the actual downloaded data (i.e., the complete software package). If the patterns do not match, control returns to box 124 and additional attempts are made to receive the software as long as a time-out (box 114) has not occurred. If the entire software package is determined to be valid at box 136, control passes to box 138 and an execution bit is set permitting the software to be executed. As an additional level of protection against a software pirate, software contained in the converter's ROM (ROM 56 - Figure 2) can periodically determine if all of the functional modules contained in the software package are being executed, and if not, subsequent execution of the software can be precluded by turning off a separate, special execution bit maintained by the converter At box 140, the downloading of a software package is complete, and the converter returns to the primary data channel. The routine ends at box 142. The software download process is a destructive one. Once a converter receives the command to accept a new package, the old downloaded software (if any) is effectively deleted and cannot be executed. In the preferred embodiment, partial downloads are not supported, and an entire package must be sent. This further frustrates a software pirate's efforts, and allows a software download to be nullified by sending the command to accept a package immediately followed by sending the command to return to the primary data channel. The various commands sent by the addressable controller to support the firmware download process are: Accept Software Download Return to Primary Channel Disallow Downloaded Execution Load Software Segment Check/Execute Software Send Software Check Pattern The "Accept Software Download" command is used to initiate the software download process. It may be sent to one individual converter or globally to a set of converters that understand a group address. The addressed converter(s) prepares to accept the package number, on the appropriate channel, using the given firmware decryption key and maximum segment number. The software download time-out value is also given. Upon reception of this command, the converter goes into its software download mode, in which it must not execute any downloaded code. The "Return to Primary Channel" command is used to force a converter to return to the primary data channel. This command may also be sent in a specific format to an individual converter, or in group format to a set of converters. All converters receiving this command abort the current software download, clear their software segment bit maps, and exit the software download mode. The "Disallow Downloaded Execution" command explicitly disallows the execution of any downloaded software. It may be sent in the specific or group format. All converters receiving this command abort execution of any downloaded software, clear their software segment bit maps, exit software download mode, and execute the default operation software contained in ROM for baseline operation. Another method of prohibiting downloaded software from being executed is to send an "Accept software Download" command immediately followed by a "Return to Primary Channel" command. The "Load Software Segment" command is used to download the individual segments of a software package. All converters receiving this command, if in software reception mode, overwrite the appropriate segment of software by the received data. Before actually overwriting the code, the converter checks to see if the package number matches the commanded package number, and calculates the segment check pattern from the received data. If the check pattern is correct, the segment data is decrypted, the appropriate prior segment is overwritten with the new segment, and the appropriate bit in the software segment bit map is set. The "Check/Execute Software" command is used to terminate the software download process. All converters receiving this command respond only if the package number matches the one sent originally in the "Accept Software Download" command, and if in software reception mode. If so, the converter checks to see if all of the necessary segments of software have been correctly received. If they have been, the package check pattern is calculated and tested. If the check pattern is bad, the converter ignores the command. If the check pattern is good, the converter permits execution of the newly downloaded package, switches back to the primary data stream, exits the software download mode, and clears its software download segment bit map. The "Send Software Check Pattern" command is used to verify the software download process. A converter receiving this command responds only if it is not in software reception mode. In this event, the converter reports the check pattern of the appropriate segment or of the entire package. This verification scheme is only available on a two-way cable system. Figure 6 illustrates a periodic self-check routine used by the converter to test the validity of downloaded software to ensure that it has not changed since the last download. This self-check is performed by the converter itself, and no addressable controller command is required to initiate it. The routine begins at box 150. At box 152, a clock runs to keep track of time. At box 154, a determination is made as to whether a predetermined time interval has passed. If not, the routine loops back to box 152 and the process continues until the time interval has run. Then, box 154 passes control to box 156 to commence the periodic self-check. At box 156, the first segment of the software package is tested by computing its checksum. At box 158, a determination is made as to whether the checksum is the proper checksum for that segment. If not, control passes to box 160 and the default operation software is executed to return the converter to baseline operation. If the checksum for the segment is proper, control passes to box 162, which determines if the segment just tested is the last segment in the software package. If not, the routine loops back to box 156 so that all of the segments in the software package can be tested. Once the last segment has been tested, control is passed from box 162 to box 164 where the clock is reset. Control then loops back to box 152 and the process continues, so that the self-check will be periodically performed at the time interval dictated by the time-out determination function at box 154. It will now be appreciated that the present invention provides a method and apparatus for remotely modifying the functionality of a terminal, such as a cable television converter. Terminal functions are dictated by downloaded software. The software is transmitted in small segments to reduce the likelihood and severity of transmission errors, and to reduce the temporary buffering requirements within the terminal. Each section of a software package is transmitted with an identifier indicating which segment it is, and which software package it is part of. A multiplicity of software packages may be carried on a single system, with different terminals in the system accepting and executing different packages as specified by the system headend. The software is stored at the terminal in nonvolatile memory, such as RAM with a battery backup. Various safeguards are provided to ensure that the software is accurately downloaded, and to frustrate the efforts of a software pirate attempting to infiltrate the system. Although the present invention has been described in connection with a preferred embodiment, it will be appreciated that many modifications and adaptations may be made thereto without departing from the scope of the invention as set forth in the following claims.

Claims: A cable television addresable converter with remotely modifiable functionality comprising: frequency agile data receiver means (52) capable of tuning to different carrier frequencies for receipt of addressable converter control data from a cable television headend (10) on a first channel of a distribution cable (36) and for receipt of operating software from said headend on a second channel of the distribution cable (36); means (54) for tuning said receiver means (52) to said second channel by switching from a carrier frequency of the first channel to a carrier frequency of the second channel for receipt of the operating software in response to instructions contained in said addressable converter control data received on said first channel; memory means (60) for storing the operating software received on said second channel; and processor means (50) coupled to said memory means (60) for accessing and executing the operating software received from said headend (10) to provide at least one converter function. The converter of claim 1 further comprising: means for verifying the integrity of said operating software received on said second channel; and means for causing said processor means to execute default operation software instead of said operating software in the event the integrity of said operating software is not verified. The converter as defined in one of claims 1 or 2 further comprising: timer means for returning said receiver to said first channel if it has been tuned to said second channel for a predetermined time period. The converter of claim 3 wherein said predetermined time period is specified in instructions contained in said addressable converter control data received on said first channel. The converter as defined in one of claims 3 or 4 wherein the length of said predetermined time period is dependent on the amount of said operating software to be received. The converter as defined in one of claims 1 to 5 wherein said operating software implements a functional layout of a keyboard associated with said converter. The converter as defined in one of claims 1 to 6 wherein said operating software implements a feedback function to assist a user in operating the converter. The converter as defined in one of claims 1 to 7 wherein said operating software implements a control function for a video recorder coupled to the converter. The converter as defined in one of claims 1 to 8 wherein said operating software implements a communication protocol for the converter. The converter as defined in one of claims 1 to 9 wherein said operating software implements a descrambling technique for the converter. The converter as defined in one of claims 1 to 10 wherein said operating software implements an on-screen display to be provided by the converter to a television coupled thereto. The converter as defined in one of claims 1 to 11 wherein said operating software implements a user interface to services provided over a cable television network. The converter as defined in one of claims 1 to 12 wherein said operating software implements an electronic mail capability to be provided over a cable television network. The converter as defined in one of claims 1 to 13 wherein said operating software implements a viewership monitoring function. The converter as defined in one of claims 1 to 14 further comprising: means for enabling the downloaded operating software to be received and stored by the converter only in response to specific instructions received by said data receiving means. The converter as defined in one of claims 1 to 15 wherein said operating software is transmitted in an encrypted form, and said instructions contain a key for decrypting the operating software. The converter as defined in one of claims 1 to 16 wherein said operating software is received in a plurality of segments, and said instructions identify the number of segments to be received for a complete operating software download. The converter of claim 17 further comprising: means for determining if all of said segments have been validly received; and means for receiving replacement segments if one or more segments of said operating software has not been validly received. The converter as defined in one of claims 17 or 18 further comprising: means for preventing the receipt of said operating software if the number of segments identified by said instructions is greater than a predetermined limit. Cable television headend apparatus for downloading operating software to an addressable remotely modifiable cable television converter (40), comprising: means (26) for transmitting addressable converter control data on a carrier frequency of a first data channel of a distribution cable (36) of a cable television network; means (24) for transmitting operating software on a carrier frequency of a second data channel of the distribution cable (36) of said cable television network: means (14) for providing an address in said addressable converter control data specific to a particular converter (40) coupled to the network, said address enabling specific data to be received by said converter (40) on said first data channel; and means (50) for providing instructions in said specific data, said instructions causing said converter to switch from said carrier frequency of said first channel to said carrier frequency of said second channel to receive the operating software transmitted on said second channel. The apparatus of claim 20 further comprising: means for verifying that operating software downloaded to said converter has been successfully received by the converter. The apparatus as defined in one of claims 20 or 21 further comprising: billing means for maintaining a record of functions said converter is authorized to have, and for assigning a particular operating software package to be downloaded to said converter on the basis of the authorized functions. A method for providing a cable television addressable converter with functions dictated by downloaded operating software, comprising the steps of: receiving addressable converter control data from a remote headend location on a first channel of a distribution cable; switching data receiver means (52) from a carrier frequency of said first channel to a carrier frequency of a second channel in response to instructions contained in said addressable converter control data; capturing a designated operating software package, from a set of operating software packages transmitted from said remote headend location on said second channel of the distribution cable, in response to instructions contained in said addressable converter control data; storing the designated operating software package received on said second channel in a memory provided in said converter; and executing said operating software to provide at least one converter function dictated thereby. The method of claim 23 wherein the operating software packages are transmitted in encrypted form, said method comprising the further step of: decrypting the captured operating software using a key contained in said converter control data. The method of claim 23 or 24 comprising the further steps of: monitoring said first channel to receive said addressable converter control data; switching to said second channel to capture said operating software upon receipt of appropriate instructions on said first channel; and switching back to said first channel after said operating software is captured. The method of claim 25 comprising the further step of: switching back to said first channel from said second channel upon the expiration of a predetermined time period, if the operating software has not been captured within said time period. The method of claim 26 comprising the further step of: deriving said time period from said addressable converter control data received on said first channel. The method as defined in one of claims 26 or 27 wherein the length of the time period is dependent on the amount of said operating software to be captured. A remotely modifiable user terminal in the form of a cable television converter according to one of the claims 1 to 19, said user terminal comprising: means for receiving a plurality of cyclically transmitted operating software segments together forming an operating software package; means coupled to said receiving means for verifying each segment upon receipt thereof; means responsive to said verifying means for storing each verified segment; means for determining if a complete operating software package has been stored in said storing means at the completion of an operating software transmission cycle; means responsive to said determining means for continuing to receive, verify, and store transmitted operating software segments during a subsequent operating software transmission cycle if said determining means finds that a complete operating software package has not been stored; and means for terminating the reception of said operating software segments upon a finding by said determining means that a complete operating software package has been stored. The terminal of claim 29 further comprising: means for precluding the execution of said operating software segments until a complete operating software package has been stored. The terminal as defined in one of claims 29 or 30 wherein said verifying means tests a checksum for each operating software segment, said terminal further comprising: means for maintaining a record of the proper checksum for each segment; and means for periodically retesting said checksums after a complete operating software package has been stored. The terminal of claim 31 further comprising: means for storing default operation software for said terminal; and means for executing said default operation software if said checksums are not verified upon retesting. The terminal as defined in one of claims 29 to 32 further comprising: means for validating the complete operating software package after it has been stored. The terminal of claim 33 further comprising: means for storing default operation software for said terminal; and means for executing said default operation software if said validating means determines that the complete operating software package is not valid. The terminal as defined in one of claims 29 to 34 further comprising: timer means for terminating the reception of operating software segments after a predetermined time period. The terminal of claim 35 further comprising: means for storing default operation software for said terminal; and means for executing said default operation software if said timer means terminates the reception of said operating software segments. The terminal as defined in one of claims 29 to 36 wherein the execution of said operating software provides at least one converter function of the cable television converter. The terminal as defined in one of claims 29 to 37 wherein a complete operating software package includes a plurality of modules, said terminal further comprising: means for precluding the execution of downloaded operating software if fewer then all of the modules are available for execution. Method for providing downloaded operating software to an addressable remotely modifiable cable television converter by a cable television headend apparatus, comprising the steps of: transmitting addressable converter control data on a carrier frequency of a first data channel of a distribution cable of a cable television network; transmitting said operating software on a carrier frequency of a second data channel of the distribution cable of said cable television network; providing an address in said addressable converter control data specific to a particular converter coupled to the network, said address enabling specific data to be received by said converter on said first data channel; and providing instructions in said specific data, said instructions causing said converter to switch from said carrier frequency of said first channel to said carrier frequency of said second channel to receive said operating software transmitted on said second channel.

Inventors: KAUFFMAN MARC W, MILLER MICHAEL R, KAUFFMAN, MARC W., MILLER, MICHAEL R.
Applicants: GEN INSTRUMENT CORP, GENERAL INSTRUMENT CORPORATION
Application year: 1990
Main classification: H04N7
IPC codes: H04N7, H04B1, H04Q9, H04K1, H04N5