CN104980802A - Safe and reliable set top box data burning method and system - Google Patents

Safe and reliable set top box data burning method and system Download PDF

Info

Publication number
CN104980802A
CN104980802A CN201510278371.0A CN201510278371A CN104980802A CN 104980802 A CN104980802 A CN 104980802A CN 201510278371 A CN201510278371 A CN 201510278371A CN 104980802 A CN104980802 A CN 104980802A
Authority
CN
China
Prior art keywords
deblocking
top box
set top
terminal
data
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
CN201510278371.0A
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.)
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
Fujian Newland Communication Science Technology 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 Fujian Newland Communication Science Technology Co Ltd filed Critical Fujian Newland Communication Science Technology Co Ltd
Priority to CN201510278371.0A priority Critical patent/CN104980802A/en
Publication of CN104980802A publication Critical patent/CN104980802A/en
Pending legal-status Critical Current

Links

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)
  • Communication Control (AREA)

Abstract

The invention provides a safe and reliable set top box data burning method. The method comprises the following steps: encapsulating data to be written into a plurality of data blocks by a terminal; transmitting the plurality of data blocks to a set top box in sequence; receiving the data blocks by the set top box and replying feedback information to the terminal; acquiring a data block receiving state by the terminal according to the feedback information, and retransmitting the data blocks if transmission of the data blocks fails; otherwise, continually transmitting the data blocks by the terminal till all the data blocks are transmitted; and after the set top box receives all the data blocks, controlling to finish set top box data burning by the terminal. The invention also provides a safe and reliable set top box data burning system. Through adoption of the method and system, the burning efficiency is increased greatly.

Description

A kind of safe and reliable data of set top box programming method and system
Technical field
The present invention relates to a kind of safe and reliable data of set top box programming method and system.
Background technology
In Set Top Box production process, all need write Set Top Box being carried out to data, traditional mode adopts network interface or USB port to carry out write data, and network interface write data are only applicable to the Set Top Box being with network interface configuration; USB port then needs by specific data copy to USB storage device, and then is write by USB port, such complicated operation, and efficiency is lower and easily make mistakes; Also part is had to use serial ports to carry out programming, directly whole data are carried out programming, but the data volume of this programming is large, and Serial Port Transmission data are slow, the speed of set-top box processes data, both speed is not mated the idle condition of pending datas such as causing that Set Top Box is often in and is not fully utilized, and affects, very easily cause writing unsuccessfully due to misoperation or by production environment; Restart again after writing unsuccessfully, waste a large amount of time, reduce production efficiency, make entreprise cost increase further.
Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of safe and reliable data of set top box programming method and system, improves programming efficiency.
One of the present invention is achieved in that a kind of safe and reliable data of set top box programming method, comprises the steps:
The data encapsulation that will write pluralizes deblocking by step 1, terminal;
Step 2, plurality of data piecemeal is sent to Set Top Box successively;
Step 3, Set Top Box receive deblocking and reply terminal one feedback information;
Step 4, according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent;
After step 5, Set Top Box receive all deblockings, terminal control completes data of set top box programming.
Further, described step 1 is specially further: the data encapsulation that write pluralizes a deblocking by the maximum data length that terminal once can be transmitted according to serial ports, and is numbered for each deblocking.
Further, in described each deblocking, be also provided with an identification data, after identifying this deblocking, whether also have deblocking.
Further, described step 3 is specially further: Set Top Box receives deblocking, carries out data check, and reply terminal one feedback information to this deblocking.
Further, described step 4 is specially further: according to feedback information, and terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent; Terminal calculates time-out time by baud rate, and when terminal confiscates the feedback information of Set Top Box in time-out time, then terminal retransmits this deblocking sent.
The present invention's two is achieved in that a kind of safe and reliable data of set top box programming system, comprises as lower module:
Package module, the data encapsulation that write pluralizes deblocking by terminal;
Sending module, sends to Set Top Box successively by plurality of data piecemeal;
Receive feedback module, Set Top Box receives deblocking and replys terminal one feedback information;
Feedback processing modules, according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent;
Programming module, after Set Top Box receives all deblockings, terminal control completes data of set top box programming.
Further, described package module is specially further: the data encapsulation that write pluralizes a deblocking by the maximum data length that terminal once can be transmitted according to serial ports, and is numbered for each deblocking.
Further, in described each deblocking, be also provided with an identification data, after identifying this deblocking, whether also have deblocking.
Further, described reception feedback module is specially further: Set Top Box receives deblocking, carries out data check, and reply terminal one feedback information to this deblocking.
Further, described feedback processing modules is specially further: according to feedback information, and terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent; Terminal calculates time-out time by baud rate, and when terminal confiscates the feedback information of Set Top Box in time-out time, then terminal retransmits this deblocking sent.
Tool of the present invention has the following advantages: a kind of safe and reliable data of set top box programming method of the present invention, link is write thus the whole efficiency improving the production of high safe machine top box by promoting high secure data, reduce the human intervention of high secure data write link, greatly provide the automaticity that high safe machine top box is produced, have and realize the advantages such as simple, applicability is extensive, reliable and stable.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the flowchart of a kind of safe and reliable data of set top box programming method of the present invention.
Embodiment
As shown in Figure 1, the data of set top box programming method that the present invention is safe and reliable, comprises the steps:
The data encapsulation that will write pluralizes a deblocking by the maximum data length that step 1, terminal once can be transmitted according to serial ports, and be numbered for each deblocking, also be provided with an identification data in described each deblocking, after identifying this deblocking, whether also have deblocking;
Step 2, plurality of data piecemeal is sent to Set Top Box successively;
Step 3, Set Top Box receive deblocking, carry out data check, and reply terminal one feedback information to this deblocking;
Step 4, according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent; Terminal calculates time-out time by baud rate, and when terminal confiscates the feedback information of Set Top Box in time-out time, then terminal retransmits this deblocking sent;
After step 5, Set Top Box receive all deblockings, terminal control completes data of set top box programming.
A safe and reliable data of set top box programming system, comprises as lower module:
Package module, the data encapsulation that will write pluralizes a deblocking by the maximum data length that terminal once can be transmitted according to serial ports, and be numbered for each deblocking, also be provided with an identification data in described each deblocking, after identifying this deblocking, whether also have deblocking;
Sending module, sends to Set Top Box successively by plurality of data piecemeal;
Receive feedback module, Set Top Box receives deblocking, carries out data check, and reply terminal one feedback information to this deblocking;
Feedback processing modules, according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent; Terminal calculates time-out time by baud rate, and when terminal confiscates the feedback information of Set Top Box in time-out time, then terminal retransmits this deblocking sent;
Programming module, after Set Top Box receives all deblockings, terminal control completes data of set top box programming.
A kind of embodiment of the present invention is as follows:
This invention adopts serial ports to carry out the write of segmentation height secure data, and supports retransmission mechanism, data check etc.Because Set Top Box is substantially all with serial ports, so this invention can support the high secure data write of all types Set Top Box, supports the transmission to large data, realize controlling ablation process in real time, ensure correctness and the integrality of high secure data.
Production line terminal encapsulates the data that will write:
If a. data volume is greater than minimum delivery unit (minimum delivery unit is the maximum data length that serial ports once can transmit), carry out block transmission to data, the length of piecemeal is not more than minimum delivery unit; If data volume is less than or equal to minimum delivery unit, then can encapsulate according to following steps.
B. encapsulate piecemeal, wrapper is containing following information:
* total length: the length of packaging information length and piecemeal sum.
* divide block identification: when piecemeal is designated 1, after representing current piecemeal, also have piecemeal; When piecemeal is designated 0, represent that current piecemeal is last in all piecemeals.
* piecemeal sequence number: along with the increase of piecemeal, increase progressively by 1.Piecemeal sequence number and data-bias help set top box side that correct for the data after piecemeal is reassembled as original data.
* data-bias: data-bias is pointed out, longer data after piecemeal, the relative position of current piecemeal in former data.
* block data: the piecemeal being namely not more than the data of minimum delivery unit.
* data check: for the verification that set top box side is correct to the data received, such as CRC check.
2, the piecemeal after encapsulation is sent to set top box side by serial ports.Set top box side keeps the reception buffer memory of serial data by receiving process, make the process of resolution data can obtain the data of needs fast, carry out parsing by parsing process to the block data received to extract, according to check code, data are verified, preserve correct piecemeal, abandon the piecemeal of mistake, and the information of feedback acknowledgment reception or misdata is to production line terminal, then according to piecemeal sequence number and data-bias, block data is assembled into original data.Set-top box software has two process A, B, A process are responsible for ceaselessly receiving serial data and being cached using for B process, B process combines data process analysis.Because B process processing speed is very fast, and Serial Port Transmission speed is relatively slow, does the time that can reduce B process idle waiting data like this, increases concurrent degree, shortens whole programming process.
3, Retransmission timeout and erroneous retransmissions.Production line terminal estimates time-out time by baud rate, when production line terminal does not receive the confirmation that set top box side feeds back corresponding piecemeal in time-out time, will retransmit the piecemeal that this has sent; Or the reception data receiving set top box side feedback when production line terminal are wrong, also can initiate the re-transmission of this piecemeal.
4, based on the feedback information of STB terminal, production line terminal accurately can know the progress that current data writes, and can suspend or the control such as cancellation to the write of data.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.

Claims (10)

1. a safe and reliable data of set top box programming method, is characterized in that: comprise the steps:
The data encapsulation that will write pluralizes deblocking by step 1, terminal;
Step 2, plurality of data piecemeal is sent to Set Top Box successively;
Step 3, Set Top Box receive deblocking and reply terminal one feedback information;
Step 4, according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent;
After step 5, Set Top Box receive all deblockings, terminal control completes data of set top box programming.
2. a kind of safe and reliable data of set top box programming method according to claim 1, it is characterized in that: described step 1 is specially further: the data encapsulation that write pluralizes a deblocking by the maximum data length that terminal once can be transmitted according to serial ports, and is numbered for each deblocking.
3. a kind of safe and reliable data of set top box programming method according to claim 2, is characterized in that: be also provided with an identification data in described each deblocking, after identifying this deblocking, whether also have deblocking.
4. a kind of safe and reliable data of set top box programming method according to claim 1, is characterized in that: described step 3 is specially further: Set Top Box receives deblocking, carries out data check, and reply terminal one feedback information to this deblocking.
5. a kind of safe and reliable data of set top box programming method according to claim 1, it is characterized in that: described step 4 is specially further: according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent; Terminal calculates time-out time by baud rate, and when terminal confiscates the feedback information of Set Top Box in time-out time, then terminal retransmits this deblocking sent.
6. a safe and reliable data of set top box programming system, is characterized in that: comprise as lower module:
Package module, the data encapsulation that write pluralizes deblocking by terminal;
Sending module, sends to Set Top Box successively by plurality of data piecemeal;
Receive feedback module, Set Top Box receives deblocking and replys terminal one feedback information;
Feedback processing modules, according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resends this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent;
Programming module, after Set Top Box receives all deblockings, terminal control completes data of set top box programming.
7. a kind of safe and reliable data of set top box programming system according to claim 6, it is characterized in that: described package module is specially further: the data encapsulation that write pluralizes a deblocking by the maximum data length that terminal once can be transmitted according to serial ports, and is numbered for each deblocking.
8. a kind of safe and reliable data of set top box programming system according to claim 7, is characterized in that: be also provided with an identification data in described each deblocking, after identifying this deblocking, whether also have deblocking.
9. a kind of safe and reliable data of set top box programming system according to claim 6, it is characterized in that: described reception feedback module is specially further: Set Top Box receives deblocking, data check is carried out to this deblocking, and replys terminal one feedback information.
10. a kind of safe and reliable data of set top box programming system according to claim 6, it is characterized in that: described feedback processing modules is specially further: according to feedback information, terminal obtains this deblocking accepting state, if this deblocking sends unsuccessfully, then resend this deblocking; Otherwise terminal continues to send deblocking until all deblockings are sent; Terminal calculates time-out time by baud rate, and when terminal confiscates the feedback information of Set Top Box in time-out time, then terminal retransmits this deblocking sent.
CN201510278371.0A 2015-05-28 2015-05-28 Safe and reliable set top box data burning method and system Pending CN104980802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510278371.0A CN104980802A (en) 2015-05-28 2015-05-28 Safe and reliable set top box data burning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510278371.0A CN104980802A (en) 2015-05-28 2015-05-28 Safe and reliable set top box data burning method and system

Publications (1)

Publication Number Publication Date
CN104980802A true CN104980802A (en) 2015-10-14

Family

ID=54276808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510278371.0A Pending CN104980802A (en) 2015-05-28 2015-05-28 Safe and reliable set top box data burning method and system

Country Status (1)

Country Link
CN (1) CN104980802A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360435A (en) * 2021-06-03 2021-09-07 三川智慧科技股份有限公司 Serial port communication optimization method, device, equipment and medium for intelligent water meter
CN114079808A (en) * 2020-08-12 2022-02-22 深圳市兆驰数码科技股份有限公司 Serial port number burning equipment and method for multi-channel set top box

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000033503A1 (en) * 1998-11-30 2000-06-08 Telefonaktiebolaget Lm Ericsson (Publ) Automatic repeat request protocol
CN1897513A (en) * 2005-07-15 2007-01-17 华为技术有限公司 Series telecommunication of monolithic processor and monolithic unit control system
CN101790029A (en) * 2010-03-03 2010-07-28 福建新大陆通信科技有限公司 Method for performing read-write operation on set top box
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000033503A1 (en) * 1998-11-30 2000-06-08 Telefonaktiebolaget Lm Ericsson (Publ) Automatic repeat request protocol
CN1897513A (en) * 2005-07-15 2007-01-17 华为技术有限公司 Series telecommunication of monolithic processor and monolithic unit control system
CN101790029A (en) * 2010-03-03 2010-07-28 福建新大陆通信科技有限公司 Method for performing read-write operation on set top box
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079808A (en) * 2020-08-12 2022-02-22 深圳市兆驰数码科技股份有限公司 Serial port number burning equipment and method for multi-channel set top box
CN114079808B (en) * 2020-08-12 2023-07-04 深圳市兆驰数码科技股份有限公司 Multi-channel set top box serial port number burning device and method
CN113360435A (en) * 2021-06-03 2021-09-07 三川智慧科技股份有限公司 Serial port communication optimization method, device, equipment and medium for intelligent water meter

Similar Documents

Publication Publication Date Title
CN109981480A (en) A kind of data transmission method and the first equipment
CN1973500B (en) Method of, and system for and a station for transmitting data
CN105162868B (en) A kind of reliable data transmission method between teacher side and student side
CN103716133A (en) Method for preventing data loss
CN104038316B (en) The highly reliable timeliness asynchronous serial communication method high of space camera
CN104780029B (en) A kind of mixed automatic retransmission request method and relevant apparatus
CN111641638A (en) Data transmission method and related device
CN111752579A (en) Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN101605128B (en) Method for carrying out communication by LINUX primary and secondary devices through Ethernet interface
CN108347311A (en) Send and receive method, access network equipment and the terminal device of feedback information
CN104980802A (en) Safe and reliable set top box data burning method and system
CN101453479A (en) Fast document transmission system
CN104144044B (en) Method for processing multi-device transparent HARQ
CN1988537A (en) Data transmission protocol
CN104038327A (en) Error retransmission method for FC (fiber channel) network
CN103368865A (en) Self-adaptive communication method and system based on multiple-network access interfaces
US10135578B2 (en) Method of re-transmitting data and electronic device therefor
CN111294161B (en) HARQ feedback method and device, storage medium and terminal
WO2015139235A1 (en) Data transmission and feedback processing method and apparatus
CN101145968B (en) Data transmission and receiving method between network management system and transmission device
CN105721491B (en) A kind of communication means for being emulated towards high speed Maglev
US20210014006A1 (en) System and method for implementing a hybrid automatic repeat request process
CN105007140B (en) HARQ processing method and processing devices based on CRC check
CN104396172B (en) Automatic retransmission processing method, sending ending equipment and receiving device
CN103873192A (en) Data processing method and device

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: 20151014

RJ01 Rejection of invention patent application after publication