Upgrading method and device
By automatically detecting the match between the key file and the main program file before the TV is upgraded, it solves the problem of black screen or restart that may occur after the TV is upgraded, improves the accuracy and efficiency of the upgrade, and ensures the correct matching of the key file and the main program file. .
Patent Information
- Application Number
- CN201910567917.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-06-27
AI Technical Summary
During the TV upgrade process, due to the mismatch between the main program and the key file, problems such as black screen or restart may occur after the upgrade. Existing technology cannot effectively avoid these problems.
An upgrade method and device are proposed to automatically detect whether the main program file contains the target screen parameter file by reading the key file. If it does not match, a prompt message to update the main program will be issued to ensure that the operator can replace the correct main program file in a timely manner. Ensure that the key file matches the main program file before upgrading.
It effectively avoids problems such as black screen and restart after the upgrade, improves the accuracy and efficiency of the upgrade, ensures the matching of the key file and the main program file, and reduces user complaints and complaints.
Smart Images

Figure CN112148335B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of televisions, and in particular, relates to an upgrading method and device. Background Art
[0002] Currently, when upgrading a TV, two parts need to be upgraded at the same time: the main program and the key file; the key file is the index of the screen parameter file, different keys map different model configurations, and each model has corresponding screen parameters, picture quality, sound quality files, energy efficiency, etc.; when upgrading, it is necessary to find the corresponding screen parameter file in the main program based on the key guidance for upgrading.
[0003] Usually, the screen parameter files corresponding to each model are added to the main program before compiling the main program. When upgrading, the main program needs to contain a screen parameter file with a key pair to ensure normal display of the TV. That is, the main program and the key must match each other to ensure normal display of the TV.
[0004] However, the current problem is: since the screen parameter files of all models need to be added to the main program before compiling the main program, the compiled main program must contain the old screen parameter files, and will not contain the new screen parameter files added after compilation; if the screen parameter file corresponding to the key is newly added, and the main program does not contain the corresponding screen parameter file, that is, the main program and the key do not match, it will cause black screen, restart and other problems after the upgrade. Summary of the invention
[0005] The purpose of the present invention is to provide an upgrade method and device, which automatically detects the consistency of the key and the main program before upgrading, ensures that the main program matches the key during upgrading, and avoids problems such as black screen and restart after upgrading.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions to achieve the above problems:
[0007] An upgrade method is proposed, comprising: reading a key file; detecting whether a target screen parameter file is included in a main program file based on the key file; and issuing a prompt message for updating the main program when the target screen parameter file is not included in the main program file.
[0008] Furthermore, the main program file includes multiple files; then based on the key file, detecting whether the main program file contains the target screen parameter file specifically includes: obtaining the identifiers of the multiple main program files; based on the identifiers, detecting in turn in a set order whether the multiple main program files contain the target screen parameter file.
[0009] Furthermore, when detecting in sequence in a set order whether a plurality of the main program files contain the target screen parameter file, the method further includes: determining that the main program file containing the target screen parameter file is the target main program file; reading the target main program file and performing an upgrade.
[0010] Furthermore, when the target screen parameter file is included in the main program file, the method further includes: issuing an upgrade confirmation message.
[0011] Furthermore, the prompt information for updating the main program includes: an identifier of the key file.
[0012] An upgrading device is proposed, comprising: an external storage device for storing a main program file and a key file; further comprising: a reading module for reading the key file; a detection module for detecting whether the main program file contains a target screen parameter file based on the key file; and a prompt module for issuing a prompt message for updating the main program when the main program file does not contain the target screen parameter file.
[0013] Furthermore, the main program file includes multiple files; then the detection module specifically includes: an identification acquisition unit, used to obtain the identifications of the multiple main program files; a detection unit, used to detect whether the target screen parameter file is included in the multiple main program files in a set order based on the identifications.
[0014] Furthermore, the upgrading device also includes: a target main program determination module, which is used to determine that the main program file containing the target screen parameter file is the target main program file when detecting in sequence whether the target screen parameter file is included in multiple main program files in a set order; and an upgrading module, which is used to read the target main program file and perform the upgrade.
[0015] Furthermore, the prompt module is also used to: issue an upgrade confirmation message when the target screen parameter file is included in the main program file.
[0016] Furthermore, the prompt module includes: a key file identification acquisition unit, which is used to acquire the identification of the key file, so that the prompt module can include the identification of the key file in the prompt information issued for updating the main program.
[0017] Compared with the prior art, the advantages and positive effects of the present invention are: in the upgrade method and device proposed in the present invention, before upgrading the main program, the key file is first read, and the key file contains the index information of the target screen parameter file. Therefore, based on the key file, it can be detected whether the main program file contains the target screen parameter file. When the target screen parameter file is not contained, a prompt message for updating the main program is issued, so that the operator can be informed that the key file does not match the main program file, and that problems such as black screen and restart will occur after the upgrade. After knowing the prompt message, the operator can replace the updated main program file in time to ensure that the key file matches the main program file, thereby ensuring the accuracy of the upgrade and avoiding problems such as black screen and restart after the upgrade.
[0018] Furthermore, the prompt information includes the identifier of the key file, so that the operator can clearly know the target screen parameter file that needs to be included in the updated main program file, ensuring that the correct target screen parameter file is compiled into the updated main program file, avoiding compiling the wrong target screen parameter file, and further ensuring the accuracy of the upgrade.
[0019] Furthermore, when it is unclear or uncertain whether the main program file contains the target screen parameter file corresponding to the key file, or when maintenance or upgrade of multiple models is required, multiple versions of the main program file can be stored at the same time, and each main program file is provided with an identifier. Before upgrading, the identifiers of multiple main program files can be obtained, and the multiple main program files can be detected in sequence according to the set order to see whether the target screen parameter file is included. When it is detected that one of the main program files contains the target screen parameter file, the main program file containing the target screen parameter file is determined to be the target main program file, and the target main program file is read to perform the upgrade.
[0020] Furthermore, when the main program file matches the key file, an upgrade confirmation message is also issued, so that the operator can understand the upgrade status in time.
[0021] Other features and advantages of the present invention will become more apparent after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of an upgrade method embodiment of the present invention;
[0023] Figure 2 This is a structural diagram of an upgrade device embodiment proposed by the present invention. DETAILED DESCRIPTION
[0024] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0025] The present invention aims to propose an upgrade method, which automatically detects the compatibility of a key file and a main program file before upgrading, so as to avoid a black screen, restart, etc. after upgrading caused by inconsistency between the key file and the main program file.
[0026] Specifically, the upgrade method proposed by the present invention is as follows: Figure 1 As shown, the following steps are included:
[0027] Step S11: Read the key file.
[0028] Before upgrading, the compiled main program file and the key file to be upgraded are stored in an external storage device such as a USB flash drive. Since the key file is an index of the target screen parameter file, under correct circumstances, the target screen parameter file consistent with the key file should be compiled in the main program file.
[0029] After the external storage device is connected to the upgrade device, take the TV as an example, control the TV to enter the factory mode, select key upgrade, and the TV detects the key file stored in the USB flash drive.
[0030] Step S12: Detect whether the target screen parameter file is included in the main program file based on the key file.
[0031] After the key file is detected, the index of the key file is read, and the target screen parameter file consistent with the key file is found in the main program file according to the index; if the target screen parameter file is included, the upgrade can continue, and the upgrade confirmation information is issued so that the operator can know the upgrade status in time; if the main program file does not contain the target screen parameter file, it means that the compiled main program file is older and the screen parameter file consistent with the key file is not compiled into it.
[0032] Step S13: When the target screen parameter file is not included in the main program file, a prompt message for updating the main program is issued.
[0033] If the target screen parameter file is not included in the main program file and the upgrade continues to be executed, problems such as a black screen and restart will occur after the upgrade is completed. Therefore, when it is determined that the target screen parameter file is not included in the main program file, a prompt message for updating the main program is issued in time to inform the operator that the upgrade is not possible and recompile the main program containing the target screen parameter file. The prompt message for updating the main program preferably includes the identifier of the key file, so that the operator is clearly informed of the target screen parameter file that needs to be compiled, thereby avoiding compiling the wrong screen parameter file when updating the main program.
[0034] Below, the present invention proposes a preferred embodiment. When it is unclear or uncertain whether the main program file contains the target screen parameter file corresponding to the key file, or for after-sales maintenance and factory production line personnel, when multiple models need to be maintained or upgraded, multiple versions of the main program file, or even multiple key files, can be stored in an external storage device at the same time. In step S11, after entering the factory mode, the key upgrade option of the target key file is selected, and then in step S12, the identification of multiple main program files is first obtained, such as the number (1, 2, 3, ...), ID (A, B, C, ...), etc. of each main program file, according to the identification and the setting order (1-2-3-... or ABC-...), it is detected in turn whether there is a main program file containing the target screen parameter file in the multiple main program files. If so, the main program file containing the target screen parameter file is determined to be the target main program file, and then the target main program file is read and the upgrade is performed; if the target screen parameter file is not contained in all the main program files, a prompt is issued according to step S13.
[0035] As mentioned above, after detecting that the target screen parameter file is not included in the main program file, it is necessary to recompile the main program containing the target screen parameter file and store it in an external storage device, and then execute steps S11-S13 to achieve a correct upgrade; but if an accident occurs and the main program that does not contain the target screen parameter file is upgraded, and a black screen or restart occurs after the TV is turned on, it is handled as follows: compile the main program containing the target screen parameter file and store it in an external storage device, connect the external storage device to the TV, turn on the power and the controller enters the boot part, and automatically enters the main program upgrade mode in the boot part to execute the upgrade.
[0036] Based on the above-mentioned upgrade method, the present invention also proposes an upgrade device, such as Figure 2 As shown, it includes an external storage device 21, a reading module 22, a detection module 23, a prompt module 24 and an upgrade module 25; the external storage device 21 is used to store the main program file and the key file, and connect to the upgrade host such as the TV; the reading module 22 is used to read the key file; the detection module 23 is used to detect whether the main program file contains the target screen parameter file based on the key file; the prompt module 24 is used to issue a prompt message for updating the main program when the main program file does not contain the target screen parameter file; the upgrade module 25 is used to read the main program file and perform the upgrade when the target screen parameter file is included in the main program file.
[0037] In a preferred embodiment of the present invention, the main program file includes multiple files; the detection module specifically includes an identification acquisition unit 231 and a detection unit 232, and the upgrade device also includes a target main program determination module 26; the identification acquisition case source 231 is used to obtain the identification of multiple main program files; the detection unit 232 is used to detect whether the target screen parameter file is included in the multiple main program files in a set order based on the identification. The target main program determination module 26 is used to determine that the main program file containing the target screen parameter file is the target main program file when detecting whether the target screen parameter file is included in multiple main program files in a set order; and then the upgrade module 25 reads the target main program file and performs the upgrade.
[0038] Specifically, the prompt module 24 is also used to issue an upgrade confirmation message when the target screen parameter file is included in the main program file, and the display module 27 is used to display the prompt message of updating the main program and the upgrade confirmation message. The prompt module includes a key file identification acquisition unit 241, which is used to obtain the identification of the key file so that the prompt module 24 can include the identification of the key file in the prompt message of updating the main program.
[0039] The specific upgrade method of the upgrade device has been described in detail in the above upgrade method and will not be repeated here.
[0040] The upgrade method and device proposed in the present invention automatically detect the matching of the key file and the main program file before upgrading, so that the operator does not need to pay attention to whether the key and the main program match. A prompt is issued when they do not match, so that the operator can compile a new main program in time for upgrading, avoiding the black screen, restart and other phenomena after upgrading caused by inconsistency between the key file and the main program file, thereby improving the accuracy of the upgrade, improving the upgrade efficiency of after-sales users, and especially reducing user complaints.
[0041] It should be pointed out that the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. An upgrading method, characterized in that: include: Read the key file; the key file and the main program file are stored in an external storage device. When the external storage device is connected to the upgrade device, the upgrade device is controlled to enter the factory mode, and the key upgrade is selected. The upgrade device detects the key file stored in the external device; the key file is the index information of the target screen parameter file; Detecting whether the target screen parameter file is included in the main program file based on the key file; Specifically, after the key file is detected, the index of the key file is read, and the target screen parameter file consistent with the key file is found according to the index in the main program file; When the target screen parameter file is not included in the main program file, a prompt message for updating the main program is issued; The prompt information for updating the main program includes: an identifier of the key file.
2. The upgrading method according to claim 1, characterized in that: The main program file includes multiple; Detecting whether the target screen parameter file is included in the main program file based on the key file specifically includes: Obtaining identifications of a plurality of the main program files; Based on the identifier, multiple main program files are detected in turn in a set order to see whether they contain the target screen parameter file.
3. The upgrading method according to claim 2, characterized in that: When detecting in sequence in a set order whether a plurality of the main program files include the target screen parameter file, the method further includes: Determine that the main program file including the target screen parameter file is the target main program file; The target main program file is read and the upgrade is performed.
4. The upgrading method according to claim 1, characterized in that: When the target screen parameter file is included in the main program file, the method further includes: Send an upgrade confirmation message.
5. Upgrade device, including: External storage device, used to store main program files and key files; It is characterized by further comprising: A reading module is used to read the key file; wherein, when the external storage device is connected to the upgrade device, the upgrade device is controlled to enter the factory mode, the key upgrade is selected, and the upgrade device detects the key file stored in the external device; the key file is the index information of the target screen parameter file; A detection module is used to detect whether the main program file contains a target screen parameter file based on the key file; specifically, after the key file is detected, the index of the key file is read, and according to the index, whether a target screen parameter file consistent with the key file is compiled in the main program file; A prompt module, used for issuing a prompt message for updating the main program when the target screen parameter file is not included in the main program file; The prompt module comprises: The key file identification acquisition unit is used to acquire the identification of the key file so that the prompt module can include the identification of the key file in the prompt information issued when updating the main program.
6. The upgrading device according to claim 5, characterized in that: The main program file includes multiple files; the detection module specifically includes: An identification acquisition unit, used to acquire identifications of a plurality of the main program files; A detection unit is used to detect whether the target screen parameter file is included in multiple main program files in a set order based on the identifier.
7. The upgrading device according to claim 6, characterized in that: The upgrading device further comprises: A target main program determination module, used for determining the main program file containing the target screen parameter file as the target main program file when detecting in sequence whether the target screen parameter file is contained in a plurality of the main program files in a set order; The upgrade module is used to read the target main program file and perform the upgrade.
8. The upgrading device according to claim 5, characterized in that: The prompt module is also used to send out an upgrade confirmation message when the target screen parameter file is included in the main program file.
Citation Information
Patent Citations
Method and device for upgrading software of embedded system
CN102436388A
Display screen upgrading method and system
CN105242950A
Control method and device for system upgrade
CN106658192A
Intelligent TV upgrade checking method, intelligent TV and storage medium
CN108337565A
Security upgrading method and device and electronic device
CN108920159A
