CN100576935C - Embedded set top box debugging, method of testing - Google Patents

Embedded set top box debugging, method of testing Download PDF

Info

Publication number
CN100576935C
CN100576935C CN200510021567A CN200510021567A CN100576935C CN 100576935 C CN100576935 C CN 100576935C CN 200510021567 A CN200510021567 A CN 200510021567A CN 200510021567 A CN200510021567 A CN 200510021567A CN 100576935 C CN100576935 C CN 100576935C
Authority
CN
China
Prior art keywords
top box
work station
datagram
order
secure
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
CN200510021567A
Other languages
Chinese (zh)
Other versions
CN1753507A (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 Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN200510021567A priority Critical patent/CN100576935C/en
Publication of CN1753507A publication Critical patent/CN1753507A/en
Priority to HK06110749.7A priority patent/HK1088758A1/en
Application granted granted Critical
Publication of CN100576935C publication Critical patent/CN100576935C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a kind of method by Ethernet debugging, test embedded set top box software: mainly comprise by work station sending UDP datagram to set-top box, after set-top box receives UDP datagram, selectively running state information is sent to work station by UDP datagram, work station is shown to screen after receiving UDP datagram.Can reach the running state information of flexible control, monitoring machine top box, and not influence the normal operation of set-top box; Thereby can find software error fast, and fix a breakdown, improve software production efficiency.

Description

Embedded set top box debugging, method of testing
[technical field]
The present invention relates to a kind of embedded set top box debugging, method of testing, particularly a kind of debugging, method of testing that has the embedded set top box of network communication ability.
[background technology]
At the embedded set top box software development process, comprise in software debugging process and the running, software operation state information need be printed selectively usually, reach whether normally purpose of monitoring of software operation.
But existing embedded set top box Debugging message output intent mainly contains: 1, utilize special-purpose debugging control equipment (DCU), information is outputed to surveillance equipment by special circuit, surveillance equipment adopts the PC work station usually; 2, output to work station with the windows hyper terminal by serial port.The former can only be effective when being connected with debugging control equipment (DCU), is not suitable for on-the-spot test; Though the latter does not need special equipment, the both exists communication speed low, only is applicable to that the speed of service is not high, the occasion that type information is less, and surveillance equipment can only be passive the fixing Debugging message of receiving set up box output, can not the controller top box, make it selectable output.
[summary of the invention]
Purpose of the present invention is exactly in order to overcome above-mentioned the deficiencies in the prior art part, a kind of flexible active, embedded set top box debugging fast, method of testing are provided, make set-top box in debug process and running, all can controllably running state information be outputed to work station at a high speed.
For this reason, the present invention proposes a kind of embedded set top box debugging, method of testing, and its step comprises:
A) work station sends the datagram order of adopting the ethernet network agreement to set-top box;
B) set-top box receives, the described Ethernet data of parsing is reported on one's mission order, judges whether secure ID is correct, when secure ID is incorrect, abandons this Ethernet data message;
C) when secure ID is correct, carry out the data order of reporting on one's mission; The source of while record data newspaper, i.e. the IP address and the communication port of work station.
D) by the IP address and the communication port numbers of above-mentioned IP address and communication port numbers or appointment, passback datagram command processing result is to work station.
E): in the set-top box running, detecting the value of printing control variables is true time, with print What output to note or the PC workstation ip address and the port of appointment; If print the value of control variables is false, then not output print content.
In the above-mentioned method, described Ethernet data is reported on one's mission to make and is adopted the UDP datagram order.Described UDP datagram imperative structures comprise: the secure ID field prevents that the unauthorized work station from sending order; The variable identification field, indication needs the target variable of control; Whether the controlling value field controls the output print statement.Preferably, described UDP datagram imperative structures are: the secure ID field: two bytes prevent that the unauthorized work station from sending order; The variable identification field: two bytes, indication needs the target variable of control; The controlling value field: a byte, whether control the output print statement.
Above-mentioned method, in described steps A) before, comprise that also the set-top box initialization prints the step of control variables: at first the printout function of set-top box is revised as to the network function that sends datagram, and select to send or do not send according to the value of conditional-variable, send to the designated port at assigned work station according to suction parameter.
Above-mentioned method, set-top box utilization fixedly udp port receive UDP datagram order from work station.At described step C) in, set-top box is searched with the variable identification field and is printed control variables accordingly after checking that the secure ID field is correct, and controlling value is composed to this variable.
Owing to adopted above embedded set top box debugging, method of testing, no matter set-top box still can monitor, control its running equally easily at debugging mode in running status, more flexibly initiatively; Need not special equipment, cost is low.And because data transmit by Ethernet, and transfer rate increases substantially, and is 921.6Kbps as the flank speed by serial port, and the speed of Ethernet connection now is generally 100Mbps, is the former 109 times; Thereby find software error fast, fix a breakdown, improve software production efficiency.And need not be equipped with special circuit specially, save cost.
[description of drawings]
Fig. 1 is the UDP message message structure chart of the embodiment of the invention,
Fig. 2 is the UDP datagram imperative structures figure of the embodiment of the invention,
Fig. 3 is the embedded set top box operational flow diagram of the embodiment of the invention.
[embodiment]
Also the present invention is described in further detail in conjunction with the accompanying drawings below by concrete example.
Embodiment: the present invention is applicable to embedded set top box debugging and the test process that has the network communication ability.
This routine embedded set top box network debugging, method of testing, at first the printout function with set-top box is revised as to network transmission UDP datagram function.And can select to send or do not send according to the value of conditional-variable, send to the designated port of given host according to suction parameter.In the PC work station, the command group of control being printed variable is made into UDP datagram, mails to set-top box one fixed port.Utilize the UDP datagram of set-top box one fixed port reception from the PC work station, check the safety and effectiveness of UDP datagram earlier, write down the IP address and the port of PC work station again, and the instruction different according to different datagram command execution, the value of printing control variables revised.After this printf will or not printed according to the value selective printing of printing control variables, if print then all print commands are sent to the designated port of this work station by UDP datagram.
The PC work station is shown to screen after receiving UDP datagram from set-top box, for user's observation analysis.
The PC work station comprises main communication module, sends command module and display module.Main communication module is responsible for sending and receiving UDP datagram.Sending command module is used for sending UDP datagram order and the printout information that receives from set-top box to set-top box.As shown in Figure 1: its UDP datagram message structure is divided into UDP head, IP head and orders three parts, command component totally five bytes wherein, as shown in Figure 2, UD P command component comprises: the secure ID field: two bytes, there are 16, can set 65536 different values, prevent that the unauthorized work station from sending order; The variable identification field: two bytes, indication needs the target of control, and is corresponding one by one with the set-top box software real variable; The controlling value field: a byte, whether control the output print statement, when being 1, be defined as output, be to be defined as in 0 o'clock not export.Display module is responsible for being shown on the PC work station screen receiving the message former state.
Embedded set top box comprises main communication module, receives command module and output module.Main communication module is responsible for sending and receiving UDP datagram.Receive command module and be responsible for resolving, carrying out the UDP datagram order that receives.Method is: judge whether the secure ID field is correct, correctly then is for further processing, incorrect then dropping packets; Search with the variable identification field and print control variables (corresponding one by one) accordingly, controlling value is composed to this variable with the variable identification field; Write down the source of UDP datagram simultaneously, promptly the IP address and the port of work station are issued this work station with command processing result.Output module is responsible for that print statement is converted to IP address that purpose IP and port are the work station noted and the UDP datagram of port outputs to Ethernet.
Detailed process is:
1) set-top box starts, and all printing control variables of initialization are false.Print statement is not exported.
When 2) needing monitoring machine top box running status, the variable identification field in that the selection of PC work station need monitor is changed to controlling value very, forms the UDP datagram order, sends to set-top box IP address and particular port by Ethernet.If want to cancel the printing of this part, only need that controlling value is changed to wig and send.
3) set-top box is received the UDP datagram order, judges whether the secure ID field is correct, incorrect then dropping packets.Correctly then be for further processing.
4) set-top box is resolved the UDP datagram order, search and order in the variable identification field handle code accordingly, controlling value is composed to this printing control variables, the source of writing down UDP datagram simultaneously, be the IP address and the port of PC work station, command processing result is issued this work station.
5) in the set-top box running, running into print statement, is true if print the value of control variables, then print What is outputed to PC workstation ip address and the port of being noted.If print the value of control variables is false, then not output print content.
System is in step 2) to 5) between repeat.Wherein 1) also can be with initialization all to print control variables be true, be subnet broadcast IP with the purpose work station IP that exports, port is a certain port that consults, like this, all can receive print What at the PC of same subnet work station.This method is applicable to the situation that just needs to obtain running state information when set-top box starts.

Claims (6)

1, a kind of embedded set top box debugging, method of testing, its step comprises:
A) work station sends the datagram order of adopting the ethernet network agreement to set-top box;
B) set-top box receives, resolves described datagram order, judges whether secure ID is correct, when secure ID is incorrect, abandons this datagram order;
C) when secure ID is correct, carry out the data order of reporting on one's mission; The source of while record data newspaper, i.e. the IP address and the communication port of work station;
D) by the IP address and the communication port of above-mentioned IP address and communication port or appointment, passback datagram command processing result is to work station;
E) in the set-top box running, detecting the value of printing control variables is true time, and print What is outputed to PC workstation ip address that write down or appointment and communication port; If print the value of control variables is false, then not output print content.
2, the method for claim 1 is characterized in that: described datagram order is the UDP datagram order.
3, method as claimed in claim 2 is characterized in that: described UDP datagram imperative structures comprise: the secure ID field prevents that the unauthorized work station from sending order; The variable identification field, indication needs the target variable of control; Whether the controlling value field controls the output print statement.
4, method as claimed in claim 2 is characterized in that: described UDP datagram imperative structures comprise: the secure ID field: two bytes prevent that the unauthorized work station from sending order; The variable identification field: two bytes, indication needs the target variable of control; The controlling value field: a byte, whether control the output print statement.
5, as claim 3 or 4 described methods, it is characterized in that: at described step C) in, set-top box is searched with the variable identification field and is printed control variables accordingly after checking that the secure ID field is correct, and controlling value is composed to this variable.
6, as claim 3 or 4 described methods, it is characterized in that: set-top box utilization fixedly udp port receives UDP datagram order from work station.
CN200510021567A 2005-08-25 2005-08-25 Embedded set top box debugging, method of testing Expired - Fee Related CN100576935C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200510021567A CN100576935C (en) 2005-08-25 2005-08-25 Embedded set top box debugging, method of testing
HK06110749.7A HK1088758A1 (en) 2005-08-25 2006-09-27 Method of debugging and testing for flush bonding set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510021567A CN100576935C (en) 2005-08-25 2005-08-25 Embedded set top box debugging, method of testing

Publications (2)

Publication Number Publication Date
CN1753507A CN1753507A (en) 2006-03-29
CN100576935C true CN100576935C (en) 2009-12-30

Family

ID=36680154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510021567A Expired - Fee Related CN100576935C (en) 2005-08-25 2005-08-25 Embedded set top box debugging, method of testing

Country Status (2)

Country Link
CN (1) CN100576935C (en)
HK (1) HK1088758A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626520B (en) * 2008-07-11 2010-12-08 鸿富锦精密工业(深圳)有限公司 Method for returning error of set-top box
CN101360110B (en) * 2008-10-06 2011-08-10 中国电信股份有限公司 Set-top box application security detecting method, apparatus and system
CN101753886A (en) * 2008-12-15 2010-06-23 康佳集团股份有限公司 Method and system of controlling set top box and set top box
GB2470417B (en) * 2009-05-22 2011-08-03 S3 Res & Dev Ltd A test system for a set-top box
CN101778307B (en) * 2010-02-05 2012-08-08 广东九联科技股份有限公司 Device for testing functions of set top box
CN102098534B (en) * 2010-12-22 2014-12-17 中兴通讯股份有限公司 Method and system for detecting network television set top box
CN102421004B (en) * 2011-11-01 2014-09-03 深圳创维-Rgb电子有限公司 Debugging method and device for television software system
CN102572581B (en) * 2011-12-31 2015-03-04 青岛海信宽带多媒体技术有限公司 Method and system for controlling output information of set-top box
CN102857798A (en) * 2012-01-18 2013-01-02 中山大学 Monitoring system of system software operation condition based on set-top box
CN102915272B (en) * 2012-11-15 2016-04-20 青岛海信宽带多媒体技术有限公司 Method for testing software, test macro and television terminal
CN103096123B (en) * 2013-02-01 2015-05-20 奥维通信股份有限公司 Testing system and testing method of Ethernet output interface of China mobile multimedia broadcasting (CMMB) multiplexer
CN103152610A (en) * 2013-02-04 2013-06-12 奥维通信股份有限公司 China mobile multimedia broadcasting (CMMB) multiplexer (MUX) provided with Ethernet output interface
CN106331859B (en) * 2016-09-18 2020-02-28 深圳市九洲电器有限公司 Set top box debugging method and system
CN112612672B (en) * 2020-12-18 2022-03-01 四川九洲电器集团有限责任公司 Embedded software real-time running state monitoring method

Also Published As

Publication number Publication date
HK1088758A1 (en) 2006-11-10
CN1753507A (en) 2006-03-29

Similar Documents

Publication Publication Date Title
CN100576935C (en) Embedded set top box debugging, method of testing
US8793366B2 (en) Method and arrangement for diagnosing networks including field bus systems
CN101170438A (en) A remote serial port debugging method and its system
US11063855B2 (en) Monitoring of the data transmission in a client/server-based device access system
CN112653738B (en) Internet of things network debugging system and method
CN102270168A (en) Method for automatically detecting serial port information
CN113507436B (en) Power grid embedded terminal fuzzy test method aiming at GOOSE protocol
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN102521087B (en) Method for remotely obtaining real-time graded debugging information of kernel module
CN103544096A (en) Method and system for feeding back information in case of operational failure of Android terminal
CN102064964A (en) Method for rapidly switching gigabit network cards in gigabit switching environment
CN105856563B (en) A kind of network data transmission equipment and method for 3d printers
CN104486146A (en) Communication method for testing console and testing equipment
KR20120126873A (en) System for Dynamic Analysis of Embedded Software of Vehicle using UDS
CN1874252A (en) Serial-port mapping system for debugging single board
CN109100116B (en) Optical module fault diagnosis system and method
CN101267350B (en) Debugging method and debugging system
US20080285461A1 (en) Method for remotely monitoring system
CN104135403B (en) A kind of distributed environment Monitoring Data transfer check method
CN107769960B (en) BMC management architecture based on CAN bus
CN116107893A (en) Heterogeneous platform embedded software test verification system and method
CN113687993A (en) Onboard equipment power-on and power-off test system
CN209373404U (en) A kind of data collection system based on LabView
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN110719268A (en) Special safety device of station equipment debugging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1088758

Country of ref document: HK

ASS Succession or assignment of patent right

Owner name: SKYWORTH DIGITAL TECHNOLOGY (SHENZHEN) CO.

Free format text: FORMER OWNER: SHENZHEN SKYWORTH-RGB ELECTRONIC CO., LTD.

Effective date: 20070727

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20070727

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH tower A 14 floor

Applicant after: Shenzhen Skyworth RGB Electronic Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A13-16

Applicant before: Shenzhen Skyworth-RGB Electronics Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1088758

Country of ref document: HK

C56 Change in the name or address of the patentee

Owner name: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SKY-WORTH DIGITAL TECHNOLOGY CO., LTD.;SHENZHEN CITY

CP01 Change in the name or title of a patent holder

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH tower A 14 floor

Patentee after: Shenzhen Skyworth Digital Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH tower A 14 floor

Patentee before: Shenzhen Skyworth Digital Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091230

Termination date: 20160825

CF01 Termination of patent right due to non-payment of annual fee