CN102231852B - Method and device for programming serial number of set-top box - Google Patents

Method and device for programming serial number of set-top box Download PDF

Info

Publication number
CN102231852B
CN102231852B CN201110116609.1A CN201110116609A CN102231852B CN 102231852 B CN102231852 B CN 102231852B CN 201110116609 A CN201110116609 A CN 201110116609A CN 102231852 B CN102231852 B CN 102231852B
Authority
CN
China
Prior art keywords
programming
top box
sequence number
data
file
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.)
Expired - Fee Related
Application number
CN201110116609.1A
Other languages
Chinese (zh)
Other versions
CN102231852A (en
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 Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201110116609.1A priority Critical patent/CN102231852B/en
Publication of CN102231852A publication Critical patent/CN102231852A/en
Application granted granted Critical
Publication of CN102231852B publication Critical patent/CN102231852B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Read Only Memory (AREA)

Abstract

The invention is applicable to the technical field of set-top boxes, provides a method for programming a serial number of a set-top box. The method comprises the following steps of pre-writing a programming document in an external memory device, wherein the programming document comprises at least one valid programming data; electrically connecting the external memory device with the set-top box; reading the programming document by the set-top box, obtaining valid first programming data; extracting the serial number from the first programming data by the set-top box, and writing the serial number in the set-top box; and setting the first programming data in the programming document to be invalid. In the invention, the programming process of the serial number is finished based on a memory device interface of the set-top box, the serial number that is not programmed is obtained according to the programming state of the programming data in the programming document of the external memory device, and after programming, the programming data corresponding to the programming document is set to be invalid, thus the serial number programming step is simplified, the manufacturing cost of the set-top box is reduced, and the production efficiency is increased.

Description

A kind of programming serial number of set-top box method and device
Technical field
The invention belongs to set-top box technique field, relate in particular to a kind of programming serial number of set-top box method and device.
Background technology
The sequence number of Set Top Box has generally included the information such as production firm, production batch, model classification and the fuselage number of Set Top Box, and with the data format programming fixed in flash (flash) memory of Set Top Box.Because the sequence number of Set Top Box can identify a Set Top Box uniquely, therefore aspect its production in Set Top Box, maintenance, operation and monitoring, all play an important role.
The serial communication of existing programming serial number of set-top box method based on Set Top Box and computer realized, as shown in Figure 1, the serial number data that prestored in computer storehouse, the transfer of data that the programming of sequence number must depend on computer operation and serial port data line completes, computer and Set Top Box all must possess the RS232 interface for connecting serial port data line, and before each operation, all must connect debugging through serial ports, processing speed is slow, directly causes the production efficiency of Set Top Box low.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of programming serial number of set-top box method, is intended to solve existing programming serial number of set-top box program complexity, inefficiency, and the problem that need to add burn writing equipment.
The embodiment of the present invention is achieved in that a kind of programming serial number of set-top box method, and described method comprises the steps:
In advance programming file is write in external storage equipment, described programming file has comprised at least one effective programming data, and described in each, programming data comprise a sequence number and a programming mode bit, and described programming file is named with particular file name;
Described external storage equipment is electrically connected with Set Top Box;
Set Top Box reads described programming file according to described particular file name, obtains effective first programming data;
Set Top Box goes out sequence number from described the first programming extracting data, and described sequence number is write to Set Top Box;
It is invalid that described programming mode bit described in described programming file in the first programming data is set to.
Another object of the embodiment of the present invention is to provide a kind of programming serial number of set-top box device, and described device comprises:
Programming data capture unit, for reading programming file according to described particular file name, obtains effective first programming data, and described the first programming data comprise a sequence number and a programming mode bit;
Sequence number extraction unit, for going out sequence number from described the first programming extracting data;
Sequence number programming unit, for the sequence number of extraction is write to Set Top Box, and the described programming mode bit in the first programming data described in described programming file be set to invalid.
The storage device interface that the embodiment of the present invention carries based on Set Top Box itself completes the programming process of sequence number, by reading the programming file in external storage equipment, obtain wherein without crossing effective programming data of programming and extracting sequence number wherein, to complete the programming process of sequence number, simultaneously, it is invalid in programming file, these programming data to be set to, and has simplified thus sequence number programming step, has improved production efficiency.
Accompanying drawing explanation
Fig. 1 is the programming serial number of set-top box Method And Principle figure that prior art provides;
Fig. 2 is the flow chart of the programming serial number of set-top box method that provides of first embodiment of the invention;
Fig. 3 is the external structure of the programming serial number of set-top box device that provides of second embodiment of the invention;
Fig. 4 is the cut-away view of the programming serial number of set-top box device that provides of second embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The storage device interface that the embodiment of the present invention carries based on Set Top Box itself completes the programming process of sequence number, by reading the programming file in external storage equipment, obtain wherein without crossing effective programming data of programming and extracting sequence number wherein, to complete the programming process of sequence number, simultaneously, it is invalid in programming file, these programming data to be set to, and has simplified thus sequence number programming step, has improved production efficiency.
Fig. 2 shows the realization flow of the programming serial number of set-top box method that first embodiment of the invention provides, and details are as follows.
In step S201, in advance programming file is write in external storage equipment, this programming file has comprised at least one effective programming data.
Programming file for writing sequence number can directly be stored in form or the extended formatting of text the external storage equipment that is applicable to set top box interface, the equipment such as such as smart card, USB flash disk, portable hard drive and storage card, to make full use of the Mobile portable of above-mentioned external storage equipment, and the existing interface by Set Top Box carries out programming work, do not need additionally to utilize serial port data line, needn't be limited to the peripheral hardwares such as computer yet and assist programming work.
In embodiments of the present invention, above-mentioned programming file is the set of multiple programming data, and each programming data has comprised a sequence number and a programming mode bit, this programming mode bit can be positioned at beginning, end or other ad-hoc locations of programming data, by by corresponding programming state position 0 or put 1 identify sequence number in these programming data whether programming enter other Set Top Box, if it is invalid that programming mode bit is labeled as, show that the programming of sequence number in these programming data enters other Set Top Box.If programming mode bit is labeled as effectively, show that the sequence number in these programming data can be entered current Set Top Box by programming.
For example, the programming data of having added programming mode bit are antina050000010, wherein, " antina " is production firm, and " 05 " is production batch, " 000001 " is for producing numbering, last position is programming mode bit, and programming state position 1 represents that these programming data are effective, sets to 0 and represents that these programming data are invalid, the current state of programming data antina05000001 is effectively, can be entered current Set Top Box by programming.
In embodiments of the present invention, the programming data programming mode bit in the initial programming file generating is all set to effectively, represents that the programming data in current programming file are not all passed through programming.
In step S202, this external storage equipment is electrically connected with Set Top Box.
In step S203, Set Top Box reads the programming file in external storage, obtains effective first programming data.
In embodiments of the present invention, whether effective by the programming mode bit in identification programming data, thus learn whether its corresponding programming data have passed through programming.Effectively the obtain manner of programming data can obtain the effective programming data of current first programming mode bit in order from programming file, in order to carry out programming serial number of set-top box work.
In embodiments of the present invention, programming file can be stored with a fixing filename, after Set Top Box is electrically connected with external storage equipment, by detecting the file that whether contains particular file name and form in external storage equipment, to determine whether this external storage equipment comprises programming file.When Set Top Box detects while comprising programming file in external storage equipment, learn and need to carry out sequence number programming work.
As one embodiment of the present of invention, after detecting that external storage equipment has comprised programming file, also need to detect this Set Top Box and whether possessed an effective sequence number, if, be not need to carry out following steps, do not need to carry out the programming work of sequence number.It is sequence number legal, that obtain manufacturer or operator's approval that this effective sequence number refers to sequence number in current Set Top Box.
Meanwhile, after detecting that this Set Top Box does not possess an effective sequence number, whether the sequence number that Set Top Box also needs to detect in these programming data is effective sequence number, to avoid programming to enter invalid sequence number.
In step S204, Set Top Box goes out sequence number from the first programming extracting data getting, and this sequence number is write to Set Top Box.
According to the effective programming data of the programming mode bit obtaining in step S203, extract the sequence number in these programming data, and its programming is entered to the ad-hoc location in the flash memory of Set Top Box, thereby complete the programming work of sequence number of set top box.
In step S205, it is invalid that these the first programming data are set to.
In embodiments of the present invention, by by the programming data of carrying out programming, the programming state position in programming file is invalid, to reach the object of synchronous renewal programming file, thus, in the time that next Set Top Box is carried out sequence number programming by this programming file, can not get the programming data of having passed through programming.
Fig. 3 and Fig. 4 are respectively external structure and the cut-away view of the programming serial number of set-top box device that second embodiment of the invention provides, and for convenience of explanation, only show the part relevant to the present embodiment.
With reference to Fig. 3, this programming serial number of set-top box device is positioned at Set Top Box, can be for running on the unit of hardware cell, software unit or software and hardware combining in Set Top Box, its external storage equipment interface by Set Top Box reads the programming file in external storage equipment, and by by the ordered sequence programming extracting to the flash memory in Set Top Box, to complete the programming work of sequence number.
With reference to Fig. 4, this programming serial number of set-top box device has comprised:
Programming data capture unit 41, by reading the programming file in external storage equipment, obtains effective first programming data.
In embodiments of the present invention, can be in order from be stored in the programming file of external storage equipment, obtain the effective programming data of current first programming mode bit, in order to carry out programming serial number of set-top box work.This external storage equipment has comprised the equipment such as smart card, USB flash disk, portable hard drive and storage card, take full advantage of the Mobile portable of above-mentioned external storage equipment, and carry out the read work of programming by the existing interface of Set Top Box, do not need additionally to utilize serial port data line, needn't be limited to the peripheral hardwares such as computer yet and assist programming work.
Sequence number extraction unit 42, goes out sequence number from the first programming extracting data of obtaining.
Sequence number programming unit 43, enters the sequence number programming of extraction the flash memory of Set Top Box.
In embodiments of the present invention, got after effective programming data by programming data capture unit 41, its programming mode bit is removed in the programming data of obtaining by sequence number extraction unit 42, to extract corresponding sequence number, and by sequence number programming unit 43, this sequence number programming is entered to the ad-hoc location in the flash memory of Set Top Box, thereby complete the programming work of sequence number of set top box.
This Set Top Box also comprises:
Memory device detecting unit 44, it detects in external storage equipment whether comprise programming file.
Sequence number detection unit 45, after it has comprised programming file in memory device detecting unit 44 detects memory device, detects in Set Top Box whether comprise an effective sequence number, and whether the sequence number that simultaneously detects programming data in programming file is effective.In embodiments of the present invention, effectively sequence number to refer to sequence number in current Set Top Box be sequence number legal, that obtain manufacturer or operator's approval.
The storage device interface that the embodiment of the present invention carries based on Set Top Box itself completes the programming process of sequence number, it is according to the programming mode bit of programming data in external storage equipment programming file, judge the validity of programming data, get thus without the sequence number of crossing programming, Set Top Box is carried out to sequence number programming, and corresponding programming data in programming file are set to invalidly after programming, simplified thus sequence number programming step, reduce Set Top Box production cost, improved production efficiency.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (6)

1. a programming serial number of set-top box method, is characterized in that, described method comprises the steps:
In advance programming file is write in external storage equipment, described programming file has comprised at least one effective programming data, and described in each, programming data comprise a sequence number and a programming mode bit, and described programming file is named with particular file name;
Described external storage equipment is electrically connected with Set Top Box;
Set Top Box reads described programming file according to described particular file name, obtains effective first programming data;
Set Top Box goes out sequence number from described the first programming extracting data, and described sequence number is write to Set Top Box;
It is invalid that described programming mode bit described in described programming file in the first programming data is set to.
2. the method for claim 1, is characterized in that, whether described programming mode bit is effective for its corresponding programming data of mark.
3. the method for claim 1, is characterized in that, described external storage equipment comprises smart card, USB flash disk, portable hard drive and storage card.
4. a programming serial number of set-top box device, is characterized in that, described device comprises:
Programming data capture unit, for read programming file according to particular file name, obtains effective first programming data, and described the first programming data comprise a sequence number and a programming mode bit;
Sequence number extraction unit, for going out sequence number from described the first programming extracting data;
Sequence number programming unit, for the sequence number of extraction is write to Set Top Box, and the described programming mode bit in the first programming data described in described programming file be set to invalid.
5. device as claimed in claim 4, is characterized in that, described device also comprises:
Memory device detecting unit, for detection of whether comprising programming file in the external storage equipment being electrically connected with Set Top Box.
6. device as claimed in claim 4, is characterized in that, described device also comprises:
Sequence number detection unit, for detection of whether comprising an effective sequence number in Set Top Box, also whether effective for detection of the sequence number of programming data in described programming file.
CN201110116609.1A 2011-05-06 2011-05-06 Method and device for programming serial number of set-top box Expired - Fee Related CN102231852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110116609.1A CN102231852B (en) 2011-05-06 2011-05-06 Method and device for programming serial number of set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110116609.1A CN102231852B (en) 2011-05-06 2011-05-06 Method and device for programming serial number of set-top box

Publications (2)

Publication Number Publication Date
CN102231852A CN102231852A (en) 2011-11-02
CN102231852B true CN102231852B (en) 2014-05-28

Family

ID=44844377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110116609.1A Expired - Fee Related CN102231852B (en) 2011-05-06 2011-05-06 Method and device for programming serial number of set-top box

Country Status (1)

Country Link
CN (1) CN102231852B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495740B (en) * 2011-11-16 2016-09-28 康佳集团股份有限公司 Utilize movable storage device upgrading MAC Address, HDCPKEY, the method for television set ID
CN102522119A (en) * 2011-12-14 2012-06-27 广东长虹电子有限公司 Method and digital device for intelligently burning HDCP (High-bandwidth Digital-content Copy Protection) KEY
CN102622190B (en) * 2012-02-15 2018-09-04 青岛海信电器股份有限公司 The online wiring method of product identification information and electronic product
CN102831933A (en) * 2012-08-23 2012-12-19 广东长虹电子有限公司 Method for automatically burning MAC address through USB
CN103677885B (en) * 2012-09-21 2019-03-05 厦门雅迅网络股份有限公司 A kind of method of ARM FLASH simple program programming
CN103176820B (en) * 2013-02-27 2016-08-03 深圳创维数字技术有限公司 A kind of method for burn-recording of software
CN103220578B (en) * 2013-03-26 2016-03-09 深圳市九洲电器有限公司 A kind of high safe machine top box and production method, system
CN104469501B (en) * 2014-10-27 2018-11-20 福建新大陆通信科技股份有限公司 A kind of set-top box automatic setting method based on serial communication protocol
CN105224831B (en) * 2015-09-29 2018-06-15 深圳市九洲电器有限公司 Terminal Equipment Identifier method for writing data and system
CN105426940B (en) * 2015-12-17 2018-10-23 福建新大陆通信科技股份有限公司 A kind of set-top box automatic factory production method and system
CN106131687A (en) * 2016-06-21 2016-11-16 深圳创维-Rgb电子有限公司 Data burning method and device
CN106792015A (en) * 2016-11-30 2017-05-31 广东九联科技股份有限公司 A kind of programming serial number of set-top box method and device
CN107609415A (en) * 2017-09-26 2018-01-19 重庆市珞宾信息技术有限公司 A kind of equipment Serial Number write protection method
CN107613406A (en) * 2017-09-27 2018-01-19 深圳市九洲电器有限公司 A kind of set top box number of writing method and system
CN107943492A (en) * 2017-11-28 2018-04-20 四川长虹电器股份有限公司 It is a kind of based on method of the USB flash disk to embedded product write sequence number
CN111651173B (en) * 2020-06-11 2024-03-26 深圳创维-Rgb电子有限公司 Key code data burning method and device, terminal equipment and readable storage medium
CN114173196A (en) * 2021-11-05 2022-03-11 深圳市华曦达科技股份有限公司 Data burning method and device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764918A (en) * 2009-12-16 2010-06-30 康佳集团股份有限公司 Method for programming MAC address into set top box
CN101790027A (en) * 2010-02-05 2010-07-28 广东九联科技股份有限公司 Writing method of sequence number of set top box
CN102104800A (en) * 2009-12-22 2011-06-22 康佳集团股份有限公司 Method and system for burning serial number of set-top box

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764918A (en) * 2009-12-16 2010-06-30 康佳集团股份有限公司 Method for programming MAC address into set top box
CN102104800A (en) * 2009-12-22 2011-06-22 康佳集团股份有限公司 Method and system for burning serial number of set-top box
CN101790027A (en) * 2010-02-05 2010-07-28 广东九联科技股份有限公司 Writing method of sequence number of set top box

Also Published As

Publication number Publication date
CN102231852A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
CN102231852B (en) Method and device for programming serial number of set-top box
CN104346296A (en) Data storage device and voltage protection method thereof
CN101794261B (en) Mapping table data recovery method and device
US9552287B2 (en) Data management method, memory controller and embedded memory storage apparatus using the same
CN204347876U (en) Based on RFID Work tool intelligent management apapratus
CN105183388A (en) Obtaining method, device and system for hardware physics serial number
CN105469225A (en) Power equipment maintenance coding management system in transformer substation
CN102968325A (en) USB (Universal Serial Bus) equipment and method and device for automatically initializing same
CN101727199A (en) Input method and input equipment
CN110109043A (en) Electric energy meter detection method, detection terminal and computer readable storage medium
CN104598419A (en) Memory-chip data acquiring device for AX-flash mobile phones
CN102629212A (en) Method for indirectly programming to NANDFLASH based on J-LINK
CN103856365A (en) Automatic testing method and system of client terminal access equipment
CN102855145B (en) Starting method and starting system of embedding type electronic device
CN202143175U (en) TV utilizing external storage medium to collect self-detecting failure information
CN101710237B (en) Equipment production flow using flash memory as storage medium
CN202650029U (en) Lottery identification system
CN102520878B (en) Method and system for visiting intelligent secure digital (SD) card
CN102117293B (en) Dynamic file positioning and query method
CN101533372B (en) Data accessing system
CN102508728A (en) Error detection and read method of goal document solidified on FLASH carrier
CN203276304U (en) Fingerprint reader-writer
CN203894765U (en) RFID tag reader-writer with USB flash disk
CN101533373B (en) Data accessing system
CN202662293U (en) On-line and off-line detecting system for secure digital (SD)/multimedia card (MMC)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140528

Termination date: 20180506