CN103747315A - Television, and writing and reading methods and devices of property data thereof - Google Patents

Television, and writing and reading methods and devices of property data thereof Download PDF

Info

Publication number
CN103747315A
CN103747315A CN201310615476.1A CN201310615476A CN103747315A CN 103747315 A CN103747315 A CN 103747315A CN 201310615476 A CN201310615476 A CN 201310615476A CN 103747315 A CN103747315 A CN 103747315A
Authority
CN
China
Prior art keywords
attribute data
television set
memory block
block subregion
memory
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
CN201310615476.1A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201310615476.1A priority Critical patent/CN103747315A/en
Publication of CN103747315A publication Critical patent/CN103747315A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses a television, and writing and reading methods and devices of property data thereof. A FLASH memory of the television is preset with a storage block partition. The storage block partition is not provided with a file system and only provides an exposed partition. The writing method of the property data of the television comprises the following steps: obtaining the to-be-written property data of the television, scheduling the interface function of the storage block partition, and storing the property data in the storage block partition through the interface function. According to the invention, a user cannot modify the property data of the storage block partition so that the property data can be permanently stored and is not lost due to wrong operation of the user, and intelligent television network application errors or operation errors caused by the easily lost property data are prevented.

Description

Writing and read method, device of television set and attribute data thereof
Technical field
The present invention relates to technical field of television sets, particularly, particularly television set and attribute data thereof writes and read method, device.
Background technology
Along with the intelligent development of the message reference terminals such as mobile phone, panel computer, television set is the process that enters intelligent development progressively also, thereby realizes cross-platform search between television set, network and program, and user can access the information that oneself needs at any time.
At intelligent TV set, use network to authenticate, obtain in the operations such as personalized upgrade service, the attribute data that usually needs to use self fixing internal applications or operating system is as No. ID of identification information such as television set, MAC value, product type, hardware version numbers and account that some are fixing and password etc., these identification informations are uploaded onto the server, and server responds according to identification information.Yet in these operations, intelligent television usually cannot be uploaded correct attribute data, thereby in the application such as network authentication, personalized upgrading or operation, occurs unnecessary mistake.
For addressing this problem, inventor finds: at present, the attribute data of intelligent TV set is to be all kept in the property file of read-only memory, yet, these files for user be open, can modify, thereby, when user's operating mistake, carry out factory reset, while there is disconnection fault or system upgrade, all these property values may be deleted or lose, and then correct attribute data cannot be uploaded onto the server.
For losing because attribute data is easy and cause intelligent television network application or operation to occur wrong problem in prior art, effective solution is not yet proposed at present.
Summary of the invention
Main purpose of the present invention is to provide writing and read method, device of a kind of television set and attribute data thereof, to solve in prior art because attribute data is easily lost intelligent television network application or the wrong problem of operation appearance of causing.
According to one aspect of the present invention, provide a kind of wiring method of television set attribute data.
In the wiring method of television set attribute data provided by the invention, the FLASH memory of television set has default memory block subregion, and memory block subregion does not have file system, and raw partition is only provided, and the method comprises: obtain television set attribute data to be written; Call the interface function of memory block subregion; And by interface function, attribute data is stored to memory block subregion.
Further, attribute data is stored to memory block subregion and comprises: attribute data is carried out to verification, obtain the first check value that attribute data is corresponding; Store the first check value to the primary importance of memory block subregion; And memory attribute data are to the second place of memory block subregion, wherein, primary importance and the second place are different positions.
Further, primary importance is the N byte location of the head of memory block subregion, and the second place is other position except primary importance in memory block subregion, and N is natural number.
Further, memory attribute data to the second place of memory block subregion comprises: attribute data is encrypted, obtains the secret value that attribute data is corresponding; Storage encryption value is to the second place.
Further, storage encryption value to the second place comprises: the mode that is a line according to key-value pair by secret value, is stored to the second place.
Further, attribute data being carried out to checking treatment comprises: attribute data is carried out to MD5 verification or CRC check; Attribute number is encrypted and is comprised: attribute data is carried out to 3DES encryption or AES encryption.
Further, FLASH memory is the internal or external memory in television set microprocessor.
According to one aspect of the present invention, provide a kind of read method of television set attribute data.
In the read method of television set attribute data provided by the invention; the FLASH memory of television set has default memory block subregion; memory block subregion does not have file system; raw partition is only provided; memory block subregion is for storing the attribute data of television set, and the method comprises: the interface function that calls memory block subregion; And by interface function, attribute data is read in the internal memory of television set.
Further, the primary importance of memory block subregion stores the first check value that attribute data is corresponding, the second place of memory block subregion stores attribute data, the internal memory that attribute data is read to television set comprises: attribute data is carried out to verification, obtain the second check value that attribute data is corresponding, wherein, the second check value adopts identical method of calibration with the first check value; Judge that whether the first check value is identical with the second check value; And if the first check value is identical with the second check value, attribute data is read in the internal memory of television set.
Further, primary importance is the N byte location of the head of memory block subregion, and the second place is other position except primary importance in memory block subregion, and N is natural number.
Further, the internal memory that attribute data is read to television set comprises: attribute data is decrypted, obtains the decrypted value that attribute data is corresponding; Read decrypted value to the internal memory of television set.
Further, read decrypted value to the internal memory of television set: the mode that is a line according to key-value pair by decrypted value, reads in the internal memory of television set.
Further, attribute data being carried out to verification comprises: attribute data is carried out to MD5 verification or CRC check; Attribute number is decrypted and is comprised: attribute data is carried out to 3DES deciphering or AES deciphering.
Further, FLASH memory is the internal or external memory in television set microprocessor.
According to one aspect of the present invention, provide a kind of writing station of television set attribute data.
In the writing station of television set attribute data provided by the invention, the FLASH memory of television set has default memory block subregion, and memory block subregion does not have file system, and raw partition is only provided, this device comprises: acquisition module, for obtaining television set attribute data to be written; Calling module, for calling the interface function of memory block subregion; And memory module, for attribute data being stored to memory block subregion by interface function.
Further, memory module comprises: syndrome module, for attribute data is carried out to checking treatment, obtains the first check value that attribute data is corresponding; The first sub module stored, for storing the first check value to the primary importance of memory block subregion; And second sub module stored, the second place for memory attribute data to memory block subregion, wherein, primary importance and the second place are different positions.
Further, primary importance is the N byte location of the head of memory block subregion, and the second place is other position except primary importance in memory block subregion, and N is natural number.
Further, the step that this second sub module stored is carried out comprises: attribute data is encrypted, obtains the secret value that attribute data is corresponding; Storage encryption value is to the second place.
Further, this second sub module stored is in storage encryption value during to the second place, and the mode that is a line according to key-value pair by secret value, is stored to the second place.
Further, syndrome module is carried out MD5 verification or CRC check to attribute data, and attribute data is carried out to 3DES encryption to the second sub module stored or AES encrypts.
Further, FLASH memory is the internal or external memory in television set microprocessor.
According to one aspect of the present invention, provide a kind of reading device of television set attribute data.
In the reading device of television set attribute data provided by the invention; the FLASH memory of television set has default memory block subregion; memory block subregion does not have file system; raw partition is only provided; memory block subregion is for storing the attribute data of television set; this device comprises: calling module, for calling the interface function of memory block subregion; And read module, for attribute data being read to by interface function to the internal memory of television set.
Further, the primary importance of memory block subregion stores the first check value that attribute data is corresponding, the second place of memory block subregion stores attribute data, read module comprises: syndrome module, for attribute data is carried out to verification, obtain the second check value that attribute data is corresponding, wherein, the second check value adopts identical method of calibration with the first check value; Judgement submodule, for judging that whether the first check value is identical with the second check value; And reading submodule, for when identical, attribute data being read in the internal memory of television set with the second check value at the first check value.
Further, primary importance is the N byte location of the head of memory block subregion, and the second place is other position except primary importance in memory block subregion, and N is natural number.
Further, the step that this reading submodule is carried out comprises: attribute data is decrypted, obtains the decrypted value that attribute data is corresponding; Read decrypted value to the internal memory of television set.
Further, this reading submodule is reading decrypted value in the internal memory of television set time, and the mode that is a line according to key-value pair by decrypted value, reads in the internal memory of television set.
Further, syndrome module is carried out MD5 verification or CRC check to attribute data, and reading submodule is carried out 3DES deciphering or AES deciphering to attribute data.
Further, FLASH memory is the internal or external memory in television set microprocessor.
According to one aspect of the present invention, a kind of television set is provided, this television set comprises the writing station of any one television set attribute data provided by the invention or the reading device of television set attribute data.
By the present invention, at the default memory block subregion of the FLASH of television set memory, this memory block subregion does not have file system, raw partition is only provided, thereby, while storing data in this memory block subregion, user cannot modify, this memory block subregion is carried out to writing of television set attribute data fashionable, first obtain television set attribute data to be written, then call the interface function of this memory block subregion, finally by interface function, attribute data is stored to memory block subregion, while reading in this memory block subregion television set attribute data, first call the interface function of this memory block subregion, then by this interface function, attribute data is read in the internal memory of television set, adopt this to write the read-write that realizes television set attribute data with read method, can be by attribute data permanent storage, can be because user's misoperation is lost, solved in prior art because attribute data is easily lost intelligent television network application or the wrong problem of operation appearance of causing.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 is according to the flow chart of the wiring method of the television set attribute data of first embodiment of the invention;
Fig. 2 is according to the flow chart of the wiring method of the television set attribute data of second embodiment of the invention;
Fig. 3 is according to the block diagram of the writing station of the television set attribute data of third embodiment of the invention;
Fig. 4 is according to the flow chart of the read method of the television set attribute data of fourth embodiment of the invention;
Fig. 5 is according to the block diagram of the reading device of the television set attribute data of fifth embodiment of the invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described.It is pointed out that in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
Embodiment mono-
In the wiring method of the television set attribute data providing at this embodiment, television set is executive agent, the FLASH memory of this television set is preset with the memory block baseparam subregion of a special access right, this memory block subregion will not have file system, raw partition is only provided, for the wiring method of this television set attribute data, referring to Fig. 1, the method can comprise the following steps:
Step S102: obtain television set attribute data to be written.
In the time of in the FLASH memory that attribute data is write to television set, first obtain this attribute data, this attribute data can be that user inputs, and also can from other storage devices, transmit.Television set before the wiring method of this television set attribute data can be used for dispatching from the factory arranges above-mentioned memory block subregion to FLASH memory built-in in television set microprocessor before dispatching from the factory, and attribute data to be written is write to this memory block subregion; Equally, also can be used for the television set after dispatching from the factory, existing television set is carried out to the improvement of attribute data memory location, by this step, obtain the attribute data in the property file of former read-only memory, then write FLASH memory external in television set microprocessor.
Step S104: the interface function that calls memory block subregion.
Step S106: attribute data is stored to memory block subregion by interface function.
System for TV set provides the interface function of memory block subregion, is writing fashionablely, calls this interface function, by interface function, attribute data is write to precalculated position.
Adopt the wiring method of the television set attribute data that this embodiment provides, by attribute data to be written, interface function by memory block subregion is stored to memory block subregion, wherein, this memory block subregion only provides raw partition in FLASH memory, can be by attribute data permanent storage, can be because user's misoperation is lost, thus can avoid losing and causing intelligent television network application or operation to occur wrong problem due to attribute data.
Embodiment bis-
This embodiment is the wiring method of further preferred television set attribute data on the basis of embodiment mono-, and referring to Fig. 2, the method can comprise the following steps:
Step S202: obtain television set attribute data to be written.
Step S204: the interface function that calls memory block subregion.
Step S206: attribute data is carried out to verification, obtain the check value that attribute data is corresponding.
When verification, can adopt CRC check method (Cyclic Redundancy Check, cyclic redundancy check (CRC)), also can adopt MD5 method of calibration (Message Digest Algorithm 5, or adopt other method of calibration Message Digest Algorithm 5).Wherein, because the data volume of attribute data is less, simple in structure, thereby adopt MD5 method of calibration simpler, and processing speed is fast.
When writing attribute data, the check value of attribute data is write simultaneously, thereby when reading out data, can and whether be tampered the integrality of attribute data and test, further guaranteed the accuracy of television set attribute data.
Step S208: attribute data is encrypted, obtains the secret value that attribute data is corresponding.
When encrypting, can adopt 3DES encryption method (Triple DES, triple data encryptions), also can adopt AES encryption method (Advanced Encryption Standard, Advanced Encryption Standard), or adopt other encryption method, wherein, preferably adopt 3DES encryption method, the method enciphering rate is fast.
When writing attribute data, after being encrypted, attribute data writes, and corresponding deciphering when reading out data, has improved the fail safe that data are stored.
Step S210: storage check value is to the primary importance of memory block subregion.
Step S212: the mode that is a line according to key-value pair by secret value, is stored to the second place of memory block subregion.
By calling the interface function of memory block subregion, check value and secret value are stored in respectively to the diverse location of memory block subregion, be convenient to read.And secret value is stored as to a line according to the mode of key=value, be also key=value nkey=value n ..., storage mode is simple, and is convenient to read.
Preferably, the check value of attribute data is stored in to the N byte location of the head of memory block subregion, especially, when using MD5 method of calibration or CRC check method, check value is stored in to 32 byte locations of head, by the secret value of attribute data position after head 32 bytes in memory block subregion.Adopt this preferred implementation, check value is stored in to head, when reading verification, can directly from the head of memory block subregion, start to obtain data, processing method is simple, and speed is fast.
Adopt the wiring method of the television set attribute data that this embodiment provides, when attribute data being write to the default memory block subregion of FLASH memory, the check value of one side memory attribute data, guarantee the accuracy of attribute data, the secret value of memory attribute data on the other hand, increase the fail safe of attribute data, and check value and property value are stored in to different positions, be convenient to read.Thereby the method for this embodiment not only can be by attribute data permanent storage, and the data of storage accurately, safety, read conveniently.
It should be noted that, the sequencing of above steps also can for example, perform step S206 for other orders after step S208, and therefore, in this embodiment, the sequencing of each step does not form inappropriate limitation of the present invention.
It is more than the description that the wiring method of television set attribute data provided by the present invention is carried out.By the writing station of television set attribute data provided by the invention is described, it should be noted that below, this device can be used for carrying out the wiring method of above-mentioned any one television set attribute data.
Embodiment tri-
The wiring method of the television set attribute data providing with the embodiment of the present invention one is corresponding, the embodiment of the present invention also provides a kind of writing station of television set attribute data, this device is arranged at television set, the FLASH memory of this television set is preset with the memory block baseparam subregion of a special access right, this memory block subregion will not have file system, and raw partition is only provided.Referring to Fig. 3, this device can comprise acquisition module 320, calling module 340 and memory module 360.
Acquisition module 320 is for obtaining television set attribute data to be written.
In the time of in the FLASH memory that attribute data is write to television set, first by acquisition module 320, obtain this attribute data, this acquisition module 320 can be the input interface that receives user's input, thereby user can input attribute data, also can be the coffret being connected with other storage devices, thereby to other storage device getattr data.
Television set before the writing station of this television set attribute data can be used for dispatching from the factory arranges above-mentioned memory block subregion to FLASH memory built-in in television set microprocessor before dispatching from the factory, and attribute data to be written is write to this memory block subregion; Equally, also can be used for the television set after dispatching from the factory, existing television set is carried out to the improvement of attribute data memory location, by this step, obtain the attribute data in the property file of former read-only memory, then write FLASH memory external in television set microprocessor.
Calling module 340 is for calling the interface function of memory block subregion, and memory module 360 is for being stored to memory block subregion by interface function by attribute data.System for TV set provides the interface function of memory block subregion, is writing fashionablely, calls this interface function, then by interface function, attribute data is write to precalculated position by calling module 340.
Adopt the writing station of the television set attribute data that this embodiment provides, by attribute data to be written, interface function by memory block subregion is stored to memory block subregion, wherein, this memory block subregion only provides raw partition in FLASH memory, can be by attribute data permanent storage, can be because user's misoperation is lost, thus can avoid losing and causing intelligent television network application or operation to occur wrong problem due to attribute data.
In order to guarantee the accuracy of television set attribute data, preferably, memory module 360 comprises syndrome module, the first sub module stored and the second sub module stored.Wherein, syndrome module is for carrying out checking treatment to attribute data, obtain the first check value that attribute data is corresponding, the first sub module stored is for storing the first check value to the primary importance of memory block subregion, the second sub module stored is the second place to memory block subregion for memory attribute data, wherein, primary importance and the second place are different positions.
Adopt this preferred implementation, check value in memory block subregion while memory attribute data, thereby when reading out data, can be by check value to the integrality of attribute data and whether be tampered and test, and then can guarantee the accuracy of television set attribute data.Meanwhile, check value and attribute data are stored in to the diverse location of memory block subregion, are convenient to read.
Wherein, when verification, syndrome module can adopt CRC check method, also can adopt MD5 method of calibration, or adopts other method of calibration.Wherein, because the data volume of attribute data is less, simple in structure, preferably adopt MD5 method of calibration, checking procedure is simple, and processing speed is fast.
In order to facilitate the data of attribute to read, further preferably, check value is stored in to the N byte location of the head of memory block subregion, attribute data is stored in to the position after head N byte in memory block subregion, wherein, N is natural number, the size of N is relevant to the method for calibration that syndrome module adopts, for example, when using MD5 method of calibration or CRC check method, N is 32, check value is stored in to 32 byte locations of head, by the secret value of attribute data position after head 32 bytes in memory block subregion.
Adopt this preferred implementation, check value is stored in to head, when reading verification, can directly from the head of memory block subregion, start to obtain data, processing method is simple, and speed is fast.
In order to improve the fail safe of data storage, preferably, the second sub module stored, when memory attribute data, is first encrypted attribute data, obtains the secret value that attribute data is corresponding, and then storage encryption value is to the second place.
Adopt this preferred implementation, when writing attribute data, after attribute data is encrypted, write, corresponding deciphering when reading out data, has improved the fail safe that data are stored.
Wherein, when encrypting, the second sub module stored can adopt 3DES encryption method, also can adopt AES encryption method, or adopts other encryption method, wherein, preferably adopts 3DES encryption method, and the method enciphering rate is fast.
Further preferably, the mode that this second sub module stored is a line by secret value according to key-value pair, is stored to the second place, be also key=value nkey=value n ..., storage mode is simple, and is convenient to read.
Be more than the description that the wiring method of television set attribute data provided by the present invention and writing station are carried out, corresponding with ablation process, will the read method of television set attribute data provided by the invention and reading device be described below.
Embodiment tetra-
In the read method of the television set attribute data providing at this embodiment, television set is executive agent, the FLASH memory of this television set is preset with the memory block baseparam subregion of a special access right, this memory block subregion will not have file system, raw partition is only provided, for the read method of this television set attribute data, referring to Fig. 4, the method can comprise the following steps:
Step S402: the interface function that calls memory block subregion.
Step S404: attribute data is read in the internal memory of television set by interface function.
FLASH memory can be the internal memory in television set microprocessor, also can be external memory, the memory block subregion of this memory has interface function, when reading, call this interface function, by interface function, attribute data is read in the internal memory of television set.
Adopt the read method of the television set attribute data that this embodiment provides, by the attribute data of storing in the memory block subregion of FLASH memory, by the interface function of memory block subregion, read to the internal memory of television set, wherein, this memory block subregion only provides raw partition in FLASH memory, can be by attribute data permanent storage, can be because user's misoperation is lost, thereby can when reading, read correct attribute data, avoid occurring wrong problem because attribute data loss causes intelligent television network application or operation.
Preferably, in the primary importance of memory block subregion, store the first check value that attribute data is corresponding, the second place of memory block subregion stores attribute data, and step S404 comprises:
Step S4041: attribute data is carried out to verification, obtain the second check value that attribute data is corresponding.
Wherein, the second check value adopts identical method of calibration with the first check value, can adopt CRC check method simultaneously, also can adopt MD5 method of calibration simultaneously, or adopts other method of calibration, and the present invention does not limit.
Step S4042: judge that whether the first check value is identical with the second check value.If the first check value is identical with the second check value, perform step S4043, otherwise execution step S4044.
Step S4043: attribute data is read in the internal memory of television set.
Step S4044: output error information.
Adopt this preferred implementation, in memory block subregion, store check value and attribute data that attribute data is corresponding simultaneously, thereby when reading out data, read the check value of storage, and reading attributes data are carried out verification, whether the check value that the check value reading and verification are obtained is compared, can and be tampered the integrality of attribute data and test, and has further guaranteed the accuracy of television set attribute data.
Wherein, if primary importance is the N byte location of the head of memory block subregion, the second place is other position except primary importance in memory block subregion, N is natural number,, when reading out data, the first head from memory block subregion starts to read N byte and obtains check value, and then reading attributes data, the processing method that data read is simple, and speed is fast.
In addition, preferably, the attribute data of storing in memory block subregion is encrypt data, and step S404 or step S4043 comprise: attribute data is decrypted, obtains the decrypted value that attribute data is corresponding, then read decrypted value to the internal memory of television set.Further, encrypt data in memory block subregion according to key=value nkey=value n ... storage mode storage, thereby, reading decrypted value in the internal memory of television set time, the mode that is a line according to key-value pair by decrypted value, reads in the internal memory of television set.
Wherein, when deciphering, can adopt 3DES decryption method, also can adopt AES decryption method, or adopt other decryption method, wherein, preferably adopt 3DES decryption method, the method deciphering speed is fast.Wherein, the concrete decryption method adopting is consistent with the encryption method that encrypt data adopts.
Adopt this preferred implementation, the attribute data of storing in memory block subregion is encrypt data, and corresponding deciphering when reading out data has improved the fail safe that data are stored.
Embodiment five
The read method of the television set attribute data providing with the embodiment of the present invention four is corresponding, the embodiment of the present invention also provides a kind of reading device of television set attribute data, this device is arranged at television set, the FLASH memory of this television set is preset with the memory block baseparam subregion of a special access right, this memory block subregion will not have file system, and raw partition is only provided.Referring to Fig. 5, this device can comprise calling module 520 and read module 540.
Calling module 520 is for calling the interface function of memory block subregion, and read module 540 is for reading to attribute data by interface function the internal memory of television set.
Wherein, FLASH memory can be the internal memory in television set microprocessor, also can be external memory, the memory block subregion of this memory has interface function, when reading, calling module 520 calls this interface function, and read module 540 reads to attribute data in the internal memory of television set by interface function.
Adopt the reading device of the television set attribute data that this embodiment provides, by the attribute data of storing in the memory block subregion of FLASH memory, by the interface function of memory block subregion, read to the internal memory of television set, wherein, this memory block subregion only provides raw partition in FLASH memory, can be by attribute data permanent storage, can be because user's misoperation is lost, thereby can when reading, read correct attribute data, avoid occurring wrong problem because attribute data loss causes intelligent television network application or operation.
Preferably, primary importance at memory block subregion stores the first check value that attribute data is corresponding, the second place of memory block subregion stores attribute data, and read module 540 comprises syndrome module, judgement submodule, reading submodule and output sub-module.
Wherein, syndrome module, for attribute data is carried out to verification, obtains the second check value that attribute data is corresponding.Wherein, the second check value adopts identical method of calibration with the first check value, can adopt CRC check method simultaneously, also can adopt MD5 method of calibration simultaneously, or adopts other method of calibration, and the present invention does not limit.
Judge that submodule is used for judging that whether the first check value is identical with the second check value.Reading submodule is for when identical, reading to attribute data in the internal memory of television set with the second check value at the first check value.Output sub-module at the first check value from the second check value when different, output error information.
Adopt this preferred implementation, in memory block subregion, store check value and attribute data that attribute data is corresponding simultaneously, thereby when reading out data, read the check value of storage, and reading attributes data are carried out verification by syndrome module, whether the check value that judgement submodule obtains the check value reading and verification is compared, can and be tampered the integrality of attribute data and test, and has further guaranteed the accuracy of television set attribute data.
Wherein, if primary importance is the N byte location of the head of memory block subregion, the second place is other position except primary importance in memory block subregion, N is natural number, when reading out data, syndrome module first starts to read N byte from the head of memory block subregion and obtains check value, then syndrome module again reading attributes data carry out verification, the processing method that data read is simple, and speed is fast.
In addition, preferably, the attribute data of storing in memory block subregion is encrypt data, and reading submodule, when reading attributes data, is first decrypted attribute data, obtains the decrypted value that attribute data is corresponding, then reads decrypted value to the internal memory of television set.Further, encrypt data in memory block subregion according to key=value nkey=value n ... storage mode storage, thereby, reading decrypted value in the internal memory of television set time, the mode that reading submodule is a line by decrypted value according to key-value pair, reads in the internal memory of television set.
Wherein, when deciphering, can adopt 3DES decryption method, also can adopt AES decryption method, or adopt other decryption method, wherein, preferably adopt 3DES decryption method, the method deciphering speed is fast.Wherein, the concrete decryption method adopting is consistent with the encryption method that encrypt data adopts.
Adopt this preferred implementation, the attribute data of storing in memory block subregion is encrypt data, and corresponding deciphering when reading out data has improved the fail safe that data are stored.
From the description of above each embodiment, can find out, the embodiment of the present invention has realized following technique effect: at the default memory block subregion of the FLASH of television set memory, this memory block subregion does not have file system, raw partition is only provided, thereby, while storing data in this memory block subregion, user cannot modify, adopt method provided by the invention to carry out writing and reading of television set attribute data to this memory block subregion, can be by attribute data permanent storage, can be because user's misoperation is lost, avoid because attribute data is easily lost and caused intelligent television network application or operation to occur mistake.
The above; be only preferably embodiment of the present invention, but protection scope of the present invention is not limited to this, any people who is familiar with this technology is in the disclosed technical scope of the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (12)

1. a wiring method for television set attribute data, is characterized in that, the FLASH memory of described television set has default memory block subregion, and described memory block subregion does not have file system, and raw partition is only provided, and described method comprises:
Obtain television set attribute data to be written;
Call the interface function of described memory block subregion; And
By described interface function, described attribute data is stored to described memory block subregion.
2. the wiring method of television set attribute data according to claim 1, is characterized in that, described attribute data is stored to described memory block subregion and comprises:
Described attribute data is carried out to verification, obtain the first check value that described attribute data is corresponding;
Store described the first check value to the primary importance of described memory block subregion; And
Store described attribute data to the second place of described memory block subregion, wherein, described primary importance and the described second place are different positions.
3. the wiring method of television set attribute data according to claim 2, it is characterized in that, described primary importance is the N byte location of the head of described memory block subregion, and the described second place is other position except described primary importance in described memory block subregion, and N is natural number.
4. the wiring method of television set attribute data according to claim 2, is characterized in that, stores described attribute data to the second place of described memory block subregion and comprises:
Described attribute data is encrypted, obtains the secret value that described attribute data is corresponding;
Store described secret value to the described second place.
5. the wiring method of television set attribute data according to claim 4, is characterized in that, stores described secret value to the described second place and comprises:
The mode that is a line according to key-value pair by described secret value, is stored to the described second place.
6. the wiring method of television set attribute data according to claim 4, is characterized in that,
Described attribute data is carried out to verification to be comprised: described attribute data is carried out to MD5 verification or CRC check;
Described attribute number is encrypted and is comprised: described attribute data is carried out to 3DES encryption or AES encryption.
7. the wiring method of television set attribute data according to claim 1, is characterized in that, described FLASH memory is the internal or external memory in described television set microprocessor.
8. the read method of a television set attribute data, it is characterized in that, the FLASH memory of described television set has default memory block subregion, described memory block subregion does not have file system, raw partition is only provided, described memory block subregion is for storing the attribute data of described television set, and described method comprises:
Call the interface function of described memory block subregion; And
By described interface function, described attribute data is read in the internal memory of described television set.
9. the read method of television set attribute data according to claim 8, it is characterized in that, the primary importance of described memory block subregion stores the first check value that described attribute data is corresponding, the second place of described memory block subregion stores described attribute data, and the internal memory that described attribute data is read to described television set comprises:
Described attribute data is carried out to verification, obtain the second check value that described attribute data is corresponding, wherein, described the second check value adopts identical method of calibration with described the first check value;
Judge that whether described the first check value is identical with described the second check value; And
If described the first check value is identical with described the second check value, described attribute data is read in the internal memory of described television set.
10. a writing station for television set attribute data, is characterized in that, the FLASH memory of described television set has default memory block subregion, and described memory block subregion does not have file system, and raw partition is only provided, and described device comprises:
Acquisition module, for obtaining television set attribute data to be written;
Calling module, for calling the interface function of described memory block subregion; And
Memory module, for being stored to described memory block subregion by described interface function by described attribute data.
The reading device of 11. 1 kinds of television set attribute datas, it is characterized in that, the FLASH memory of described television set has default memory block subregion, described memory block subregion does not have file system, raw partition is only provided, described memory block subregion is for storing the attribute data of described television set, and described device comprises:
Calling module, for calling the interface function of described memory block subregion; And
Read module, for reading to described attribute data by described interface function the internal memory of described television set.
12. 1 kinds of television sets, is characterized in that, described television set comprises the reading device of the writing station of television set attribute data claimed in claim 10 or the television set attribute data described in claim 11.
CN201310615476.1A 2013-11-28 2013-11-28 Television, and writing and reading methods and devices of property data thereof Pending CN103747315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310615476.1A CN103747315A (en) 2013-11-28 2013-11-28 Television, and writing and reading methods and devices of property data thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310615476.1A CN103747315A (en) 2013-11-28 2013-11-28 Television, and writing and reading methods and devices of property data thereof

Publications (1)

Publication Number Publication Date
CN103747315A true CN103747315A (en) 2014-04-23

Family

ID=50504297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310615476.1A Pending CN103747315A (en) 2013-11-28 2013-11-28 Television, and writing and reading methods and devices of property data thereof

Country Status (1)

Country Link
CN (1) CN103747315A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134645A (en) * 2019-04-15 2019-08-16 深圳市战音科技有限公司 File system memory management method, read method, managing device and reading device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134645A (en) * 2019-04-15 2019-08-16 深圳市战音科技有限公司 File system memory management method, read method, managing device and reading device
CN110134645B (en) * 2019-04-15 2023-07-11 深圳市战音科技有限公司 File system storage management method, file system storage reading method, file system storage management device and file system storage reading device

Similar Documents

Publication Publication Date Title
CN108712412B (en) Database encryption and decryption methods and devices, storage medium and terminal
CN102163268B (en) The term of execution verifying software code the method and apparatus of integrality
US9054865B2 (en) Cryptographic system and methodology for securing software cryptography
CN103294961A (en) Method and device for file encrypting/decrypting
US11283606B2 (en) Trusted execution environment-based key burning system and method
CN107196907A (en) A kind of guard method of Android SO files and device
CN110598429B (en) Data encryption storage and reading method, terminal equipment and storage medium
CN103684786A (en) Method and system for storing digital certificate and binding digital certificate to hardware carrier
WO2021164462A1 (en) Data encryption method, data decryption method, computer device, and medium
CN103379483A (en) Method, device and mobile terminal for mobile terminal information security management
CN102799815A (en) Method and device for safely loading program library
CN107688756B (en) Hard disk control method, equipment and readable storage medium storing program for executing
US20180234245A1 (en) Method and system for nfc-based mobile terminal password storage and recovery
CN113411203B (en) Terminal configuration method and device, computer equipment and storage medium
WO2015154469A1 (en) Database operation method and device
CN113127844A (en) Variable access method, device, system, equipment and medium
CN109977692B (en) Data processing method and device, storage medium and electronic equipment
CN110990846B (en) Information storage method, device and computer readable storage medium
CN110533128B (en) Encryption-based anti-counterfeiting traceability data processing method, device, system and medium
CN107135074B (en) Advanced security method and device
CN111143879A (en) Android platform SD card file protection method, terminal device and storage medium
CN110990848A (en) Sensitive word encryption method and device based on hive data warehouse and storage medium
WO2016188079A1 (en) Data storage method for terminal device and terminal device
CN102855419A (en) Copyright protection method for data files of intelligent terminals
CN103747315A (en) Television, and writing and reading methods and devices of property data thereof

Legal Events

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

Application publication date: 20140423