CN112004153A - Feature data reading method, storage medium and smart television - Google Patents

Feature data reading method, storage medium and smart television Download PDF

Info

Publication number
CN112004153A
CN112004153A CN202010841209.6A CN202010841209A CN112004153A CN 112004153 A CN112004153 A CN 112004153A CN 202010841209 A CN202010841209 A CN 202010841209A CN 112004153 A CN112004153 A CN 112004153A
Authority
CN
China
Prior art keywords
feature data
preset
reading
configuration file
parameter information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010841209.6A
Other languages
Chinese (zh)
Inventor
戴宇明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202010841209.6A priority Critical patent/CN112004153A/en
Publication of CN112004153A publication Critical patent/CN112004153A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for reading feature data, a storage medium and a smart television, wherein the method comprises the following steps: when a preset application program is started, acquiring a preset configuration file; analyzing the configuration file to obtain parameter information corresponding to the characteristic data; and reading the feature data stored in a preset feature data area according to the preset application program and the parameter information. The invention realizes the universal configuration of the characteristic data of different customized televisions, thereby not needing to carry out special butt joint adaptation on the characteristic data of the customized televisions, greatly reducing the development time and lowering the error probability.

Description

Feature data reading method, storage medium and smart television
Technical Field
The invention relates to the technical field of smart televisions, in particular to a feature data reading method, a storage medium and a smart television.
Background
With the popularization of smart televisions and the continuous improvement of internet technologies, a plurality of operators such as hotels, shopping malls and stations open the personalized era of batch customization of televisions, the televisions need to burn characteristic data of some operators, the characteristic data are used for helping the operators to identify the televisions and operate backstage, and the characteristic data are very important and unavoidable for the operators.
For operators, the customized television is a function-derived product in a series of televisions, the main software of the customized television is the same as that of the series of televisions, only specific programs are implanted and certain modifications are made to the system programs according to the increase of the customization requirements, and certain development workload is caused for manufacturers.
However, for the manufacturers, one manufacturer needs to meet the requirements of a plurality of customized televisions, the requirements of each customized television for the feature data are basically different, and if a set of corresponding system programs is developed for each customized television, a large amount of development time is wasted and the error probability is increased.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for reading feature data, a storage medium and a smart television, aiming at overcoming the defects of the prior art, so as to solve the problems of too long development time and high error probability when customizing the feature data of a television read-write operator in the prior art.
The technical scheme adopted by the invention is as follows:
in a first aspect, an embodiment of the present invention provides a method for reading feature data, including:
when a preset application program is started, acquiring a preset configuration file;
analyzing the configuration file to obtain parameter information corresponding to the characteristic data;
and reading the feature data stored in a preset feature data area according to the preset application program and the parameter information.
As a further improved technical solution, the method for reading feature data, wherein when a preset application program is started, before acquiring a preset configuration file, the method further includes:
a piece of characteristic data area is opened up in the system in advance, wherein the characteristic data area is used for storing characteristic data.
As a further improved technical solution, the characteristic data reading method is provided, wherein the characteristic data area is not lost due to power failure.
As a further improved technical solution, in the method for reading the feature data, the feature data area and the preset configuration file are only visible to the preset application program.
As a further improved technical solution, the method for reading the feature data, wherein the analyzing the configuration file to obtain the parameter information corresponding to the feature data specifically includes:
judging whether a path corresponding to the preset configuration file meets a preset rule or not;
and when the path corresponding to the preset configuration file meets a preset rule, analyzing the configuration file to obtain parameter information corresponding to the characteristic data.
As a further improved technical solution, the method for reading feature data further includes, before reading the feature data stored in a preset feature data area according to the preset application program and the parameter information:
determining target parameter information corresponding to the preset configuration file based on an interface corresponding to a preset application program;
and when the parameter information is consistent with the target parameter information, reading the feature data stored in a preset feature data area based on an interface corresponding to a preset application program and the parameter information.
As a further improved technical solution, in the method for reading the feature data, the interface corresponding to the preset application program includes a feature data reading interface and a feature data writing area interface.
As a further improved technical solution, the method for reading the feature data further includes:
and writing the obtained characteristic data into a preset characteristic data area according to the preset application program and the parameter information.
In a second aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps in the method for reading feature data as described in any one of the above.
In a third aspect, an embodiment of the present invention provides a smart television, which includes: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method for reading feature data as described in any one of the above.
Has the advantages that: compared with the prior art, the invention provides a feature data reading method, a storage medium and a smart television, wherein the method comprises the following steps: when a preset application program is started, acquiring a preset configuration file; analyzing the configuration file to obtain parameter information corresponding to the characteristic data; and reading the feature data stored in a preset feature data area according to the preset application program and the parameter information. The invention realizes the universal configuration of the characteristic data of different customized televisions, thereby not needing to carry out special butt joint adaptation on the characteristic data of the customized televisions, greatly reducing the development time and lowering the error probability.
Drawings
Fig. 1 is a flowchart of a method for reading feature data according to the present invention.
Fig. 2 is a content diagram of a configuration file provided by the present invention.
Fig. 3 is a schematic diagram of the feature data area storing data provided by the present invention.
Fig. 4 is a schematic structural diagram of the smart television provided by the present invention.
Detailed Description
The invention provides a method for reading feature data, a storage medium and a smart television, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further explained by the description of the embodiments with reference to the drawings.
The present embodiment provides a method for reading feature data, as shown in fig. 1, the method includes:
s100, when a preset application program is started, a preset configuration file is obtained.
In this embodiment, a feature data area dedicated to storing feature data is created in the system, a configuration file for describing the feature data area is placed in the system, and related logic related software is added to the system software to read and write the feature data according to the rules of the system software. Therefore, the universal configuration of the characteristic data of the customized televisions of different operators is realized, so that the special butt joint adaptation of the characteristic data of the customized televisions is avoided, the characteristic data of the television is invisible to other unused operators, the safety of the characteristic data of the operators is improved, and the adaptation work of manufacturers to the characteristic data of the customized televisions of the operators is avoided.
Further, the characteristic data area exists in a system software memory and cannot be lost in power failure, wherein the memory comprises but is not limited to Flash, EEPROM, EMMC and the like. In practical applications, the feature data area is not updated when the system is upgraded. Moreover, only specific software has the authority to operate, and other software can read related information only through the interface of the specific software, so that the safety of data can be ensured to the maximum extent. It should be noted that the specific software is the preset application program of the present invention. That is, the feature data area and the preset configuration file are visible only to the preset application program and are invisible to application programs other than the preset application program.
S200, analyzing the configuration file to obtain parameter information corresponding to the characteristic data.
Specifically, the parameter information is information stored in a characteristic data area; the profile is present along with the operator's need to customize the television, and if a machine that is not third party customized or named does not have this file, it is updated at the time of system upgrade, so that one machine can be swiped into a customization machine in some way. Further, the names of the configuration files on the same type of machine according to certain rule logic are the same, including but not limited to: using a fixed name; or from a combination of system-related attributes. In this embodiment, the configuration file is named by the identifier of the television and is stored in the preset path, that is, the configuration file named incorrectly or the configuration files of other paths cannot be correctly identified. Correspondingly, analyzing the configuration file to obtain the parameter information corresponding to the feature data specifically includes:
s201, judging whether a path corresponding to the preset configuration file meets a preset rule or not;
s202, when the path corresponding to the preset configuration file meets a preset rule, analyzing the configuration file to obtain parameter information corresponding to the characteristic data.
In this embodiment, after a preset configuration file is obtained, it is first determined whether a path corresponding to the preset configuration file meets a preset rule, and when the path corresponding to the preset configuration file meets the preset rule, the configuration file is analyzed to obtain parameter information corresponding to the feature data. For example, the configuration file generates a corresponding file path and a file name according to relevant parameters of an operator, for example, the operator configures a specific identifier (cmcc) for a mobile machine, and then can determine that the path of the configuration file is "/fac/cmcc/a" according to the identifier; another operator is a connected machine, whose specific identifier is (liantong), and then the path of the configuration file can be determined as "/fac/liantong/al according to the identifier, so that if the configuration file does not satisfy the path and the file naming rule, the configuration file cannot be parsed.
And S300, reading the feature data stored in the preset feature data area according to the preset application program and the parameter information.
Specifically, the interface corresponding to the preset application program includes a read feature data interface and a write feature data area interface. Correspondingly, reading the feature data stored in the preset feature data area according to the preset application program and the parameter information includes: reading the feature data stored in a preset feature data area according to the read feature data interface and the parameter information; it can be understood that, according to the preset application program and the parameter information, the reading of the feature data stored in the preset feature data area further includes a writing operation of the feature data, so that the method for reading the feature data further includes: writing the obtained feature data into a preset feature data area according to the preset application program and the attribute information, wherein the specific process may include: and writing the obtained characteristic data into the characteristic data area according to the written characteristic data interface and the parameter information.
In this embodiment, the feature data area and the preset configuration file are invisible to the application programs other than the preset application program. Illustratively, taking a certain third-party customizing machine as an example, the customizing machine needs to burn three feature data, and the third-party manufacturer names the three feature data to be SN (Length 15 bits), DID (Length 32 bits), and ProductInfo (Length 60 bits), and then generates a configuration file related to the third-party customizing machine according to the above information, such as thridkey. ini, the content of the file is shown in fig. 2, wherein data in "{ }" represents related information of one feature data, such as Key, indicating whether the current data is used (true is used and false is not used); the rules and contents stored according to the feature data of the specific area after the picture analysis are as follows: 1 to 15 bits of the specific area are used for storing 15 bits of characteristic data with the name of SN, and the analytic format of the specific area is hexadecimal analytic; 16 to 48 bits are used for storing 32 bits of feature data with the name of DID, and the analytic format of the feature data is 10-system; bits 49 through 109 are used to store feature data named ProductInfo, which is parsed into a string format.
Further, as shown in fig. 3, the data structure for customizing tv synthesis for the operator may be a software in the system for reading the feature data, parsing the file according to a predetermined rule to obtain the above information, and providing the following interfaces:
object getSpecialData (String dataName)// read feature data
Boolean setSpecialData (String dataName)// write feature data
Wherein, Object can represent the former types such as hexadecimal, decimal and character string, and it should be noted that this type is consistent with DataFormat in the configuration file.
Further, in an implementation manner of this embodiment, before reading the feature data stored in the preset feature data area according to the preset application program and the attribute information, the method further includes:
h1, determining target parameter information corresponding to the preset configuration file based on an interface corresponding to a preset application program;
h2, when the parameter information is consistent with the target parameter information, reading the feature data stored in a preset feature data area based on the interface corresponding to the preset application program and the parameter information.
In this embodiment, the names and data formats of the feature data are unknown to other applications that do not use the special data, so that the corresponding feature data cannot be acquired through the interface corresponding to the preset application, which increases the security of the feature data. Software using the feature data is needed, and only if the dataName and data parameters meet the rule defined by the configuration file (for example, the Length of the feature data before the Length is met), the application program reading and writing the feature data in the system returns normal data.
In summary, compared with the prior art, the embodiment of the invention has the following advantages:
the invention discloses a method for reading feature data, which comprises the following steps: when a preset application program is started, acquiring a preset configuration file; analyzing the configuration file to obtain parameter information corresponding to the characteristic data; and reading the feature data stored in a preset feature data area according to the preset application program and the parameter information. The invention realizes the universal configuration of the characteristic data of different customized televisions, thereby not needing to carry out special butt joint adaptation on the characteristic data of the customized televisions, greatly reducing the development time and lowering the error probability.
Based on the above-described method for reading feature data, the present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the method for reading feature data described in the above-described embodiment.
Based on the above feature data reading method, the present invention further provides a smart tv, as shown in fig. 4, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the smart television are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for reading feature data, comprising:
when a preset application program is started, acquiring a preset configuration file;
analyzing the configuration file to obtain parameter information corresponding to the characteristic data;
and reading the feature data stored in a preset feature data area according to the preset application program and the parameter information.
2. The method for reading the feature data according to claim 1, wherein before acquiring the preset configuration file when the preset application program is started, the method further comprises:
a piece of characteristic data area is opened up in the system in advance, wherein the characteristic data area is used for storing characteristic data.
3. The method for reading the feature data according to claim 2, wherein the feature data area is not lost by power failure.
4. The method for reading the feature data according to claim 2, wherein the feature data area and the predetermined configuration file are visible only to the predetermined application.
5. The method for reading feature data according to claim 1, wherein the analyzing the configuration file to obtain parameter information corresponding to the feature data specifically includes:
judging whether a path corresponding to the preset configuration file meets a preset rule or not;
and when the path corresponding to the preset configuration file meets a preset rule, analyzing the configuration file to obtain parameter information corresponding to the characteristic data.
6. The method for reading the feature data according to claim 1, wherein before reading the feature data stored in the preset feature data area according to the preset application program and the parameter information, the method further comprises:
determining target parameter information corresponding to the preset configuration file based on an interface corresponding to a preset application program;
and when the parameter information is consistent with the target parameter information, reading the feature data stored in a preset feature data area based on an interface corresponding to a preset application program and the parameter information.
7. The method according to claim 6, wherein the interfaces corresponding to the predetermined application programs include a read feature data interface and a write feature data area interface.
8. The method for reading the feature data according to claim 1, further comprising:
and writing the obtained characteristic data into a preset characteristic data area according to the preset application program and the parameter information.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps in the method for reading the feature data according to any one of claims 1 to 8.
10. An intelligent television, comprising: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method for reading feature data according to any one of claims 1 to 8.
CN202010841209.6A 2020-08-20 2020-08-20 Feature data reading method, storage medium and smart television Pending CN112004153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010841209.6A CN112004153A (en) 2020-08-20 2020-08-20 Feature data reading method, storage medium and smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010841209.6A CN112004153A (en) 2020-08-20 2020-08-20 Feature data reading method, storage medium and smart television

Publications (1)

Publication Number Publication Date
CN112004153A true CN112004153A (en) 2020-11-27

Family

ID=73474125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010841209.6A Pending CN112004153A (en) 2020-08-20 2020-08-20 Feature data reading method, storage medium and smart television

Country Status (1)

Country Link
CN (1) CN112004153A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6488585B1 (en) * 1998-10-14 2002-12-03 International Game Technology Gaming device identification method and apparatus
CN101179673A (en) * 2006-11-06 2008-05-14 深圳Tcl新技术有限公司 Method of customizing common function interface of television
CN102164360A (en) * 2011-04-20 2011-08-24 瑞斯康达科技发展股份有限公司 Method and system for configurating and loading network equipment
CN102541475A (en) * 2012-03-12 2012-07-04 成都市华为赛门铁克科技有限公司 Data storage method and data storage device
CN103631975A (en) * 2013-12-26 2014-03-12 成都科来软件有限公司 Data extraction method and device
CN103777990A (en) * 2012-10-26 2014-05-07 四川九洲电器集团有限责任公司 Multi-sensor-based display control system integration framework method
CN105045643A (en) * 2015-09-01 2015-11-11 北京奇虎科技有限公司 Starting method and device of Launchers in Android system
CN105095518A (en) * 2015-09-18 2015-11-25 中国农业银行股份有限公司 Data conversion method and device
CN105528553A (en) * 2014-09-30 2016-04-27 中国移动通信集团公司 A method and a device for secure sharing of data and a terminal
CN111353794A (en) * 2018-12-20 2020-06-30 阿里巴巴集团控股有限公司 Data processing method, supply chain scheduling method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6488585B1 (en) * 1998-10-14 2002-12-03 International Game Technology Gaming device identification method and apparatus
CN101179673A (en) * 2006-11-06 2008-05-14 深圳Tcl新技术有限公司 Method of customizing common function interface of television
CN102164360A (en) * 2011-04-20 2011-08-24 瑞斯康达科技发展股份有限公司 Method and system for configurating and loading network equipment
CN102541475A (en) * 2012-03-12 2012-07-04 成都市华为赛门铁克科技有限公司 Data storage method and data storage device
CN103777990A (en) * 2012-10-26 2014-05-07 四川九洲电器集团有限责任公司 Multi-sensor-based display control system integration framework method
CN103631975A (en) * 2013-12-26 2014-03-12 成都科来软件有限公司 Data extraction method and device
CN105528553A (en) * 2014-09-30 2016-04-27 中国移动通信集团公司 A method and a device for secure sharing of data and a terminal
CN105045643A (en) * 2015-09-01 2015-11-11 北京奇虎科技有限公司 Starting method and device of Launchers in Android system
CN105095518A (en) * 2015-09-18 2015-11-25 中国农业银行股份有限公司 Data conversion method and device
CN111353794A (en) * 2018-12-20 2020-06-30 阿里巴巴集团控股有限公司 Data processing method, supply chain scheduling method and device

Similar Documents

Publication Publication Date Title
US11403364B2 (en) Method and terminal device for extracting web page content
CN105511873B (en) User interface control display method and device
EP3252592A1 (en) Method and device for storing and reading data
US20150133104A1 (en) Apparatus and method for setting up an interface in a mobile terminal
CN110321177B (en) Mobile application localized loading method and device and electronic equipment
CN108762956B (en) Method for acquiring Native local data, server, mobile terminal and storage medium
CN103853535A (en) Method and device for modifying middleware
CN110555073A (en) data processing method and device, electronic equipment and storage medium
WO2020024989A1 (en) Widget screen loading method, apparatus, terminal, and computer readable storage medium
CN114138333B (en) Program loading method and related device
CN109165034A (en) POS machine upgrade method, device, equipment and storage medium based on OTA
CN107678744A (en) Application controls pattern customizing method, device and computer-readable recording medium
CN110427213B (en) Method, device, equipment and storage medium for realizing intelligent configuration software
CN108415998A (en) Using dependence update method, terminal, equipment and storage medium
US8844827B2 (en) Chip card, and method for the software-based modification of a chip card
US10929121B2 (en) Method, device and related system for dynamically repairing application
CN112004153A (en) Feature data reading method, storage medium and smart television
CN117130697A (en) Method and device for fixing application on taskbar
US20090271599A1 (en) Method for setting to enable or disable software function
WO2020113421A1 (en) Method for mounting file system, terminal device, and storage medium
CN107506474B (en) Database operation method and device based on object mapping
CN108153564B (en) Interface management method, device and system and computer readable storage medium
CN108021567B (en) Method and device for self-adaptively customizing fonts of browser
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
WO2021212492A1 (en) Information pushing method and apparatus, electronic device, and computer-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201127