CN102421004B - Debugging method and device for television software system - Google Patents
Debugging method and device for television software system Download PDFInfo
- Publication number
- CN102421004B CN102421004B CN201110340183.8A CN201110340183A CN102421004B CN 102421004 B CN102421004 B CN 102421004B CN 201110340183 A CN201110340183 A CN 201110340183A CN 102421004 B CN102421004 B CN 102421004B
- Authority
- CN
- China
- Prior art keywords
- type information
- usb device
- file
- debugging
- space
- 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.)
- Active
Links
Abstract
The invention discloses a debugging method for a television software system, comprising the following steps of: detecting whether a memory space of USB (Universal Serial Bus) equipment which is connected with a television satisfies a printing information storage requirement; and when the memory space of the USB equipment satisfies the printing information storage requirement, starting a debugging process and outputting printing information stored in serial interface equipment to the USB equipment. The invention further discloses a debugging device for the television software system. According to the method and the device disclosed by the invention, the printing information can be stored without an external computer, and the convenience is provided for designers to find out and improve problems in the debugging process.
Description
Technical field
The invention belongs to technical field of television sets, particularly a kind of method that can debug television software system and device.
Background technology
Present TV is generally all with intelligent operating system.The function of TV is more or more powerful, and corresponding system also becomes increasingly complex.When the operating system of TV is debugged or safeguarded, the type information of analytical system output is best means.Present analysis type information needs external computer, obtains type information by serial ports.But in some places, such as in user family or the place such as high-temperature aging room, computer carries inconvenience and bad use, obtains comparatively difficulty of type information.
Summary of the invention
Main purpose of the present invention is to provide a kind of adjustment method of television software system, is intended to solve the above-mentioned comparatively technical problem of difficulty of type information of obtaining in environment.
In order to realize goal of the invention, the invention provides a kind of adjustment method of television software system, comprise the following steps:
Detect its memory space of USB device being connected with television set and whether meet type information memory requirement;
In the time that the memory space of described USB device meets type information memory requirement, open debug procedures, export the type information that leaves serial equipment in to USB device.
Preferably, before opening debug procedures, comprise:
Whether the debugging mark that judges television set enables, and if so, enters the step of opening debug procedures; If not, enter normal boot-strap flow process.
Preferably, describedly export the type information that leaves serial equipment in to USB device and comprise:
Start the timer being preset in television set;
In USB device, create file;
In the time interval default according to timer, from the buffering area of serial equipment, read type information, and be kept in described file.
Preferably, describedly from the buffering area of serial equipment, read type information, and be kept at described file and comprise:
If USB device space is full, cover and stored data with new data, space full scale is set simultaneously and knows.
Preferably, before whether the debugging mark that judges television set enables, also comprise:
Export type information to serial ports;
Defined file descriptor, opens serial ports file, and return value is assigned to filec descriptor;
Data in serial ports file are read to the buffering area of serial equipment.
The present invention separately provides a kind of debugging apparatus of television software system, and it at least comprises:
Whether USB device detection module, meet type information memory requirement for detection of its memory space of the USB device being connected with television set;
Debugging module, while meeting type information memory requirement, opens debug procedures for the memory space of described USB device, exports the type information that leaves serial equipment in to USB device.
Preferably, described debugging module also for:
Whether the debugging mark that judges television set enables, and in the time that the memory space of described USB device meets type information memory requirement, opens debug procedures; If not, enter normal boot-strap flow process.
Preferably, above-mentioned debugging debugging module comprises:
Timer start unit, for starting the timer that is preset at television set;
Document creation unit, for creating file in USB device;
Type information reading unit for the time interval default according to timer, reads type information, and is kept in described file from the buffering area of serial equipment.
Preferably, described type information reading unit is further used for:
If space is full, cover and stored data with new data, space full scale is set simultaneously and knows.
Preferably, above-mentioned debugging module also comprises linux system processing unit, described linux system processing unit specifically for:
Export type information to serial ports;
Defined file descriptor, opens serial ports file, and return value is assigned to filec descriptor;
Data in serial ports file are read to the buffering area of serial equipment.
The present invention makes TV in normal operation, the type information of system output is saved in the file of USB device, there is the function of automatic detection USB space size and automatic transaction file data simultaneously, make the equipment such as TV not need external computer just can preserve type information, while facilitating designer to debug, pinpoint the problems and improve, being especially applicable to hot and humid grade and being not suitable for the long-term environment crawl stochastic problem data that stop of people.
Brief description of the drawings
Fig. 1 is the flow chart of adjustment method one embodiment of television software system of the present invention;
Fig. 2 is the flow chart of steps that in adjustment method one embodiment of television software system of the present invention, Start-up and Adjustment process is debugged;
Fig. 3 is the schematic flow sheet of another embodiment of adjustment method of television software system of the present invention;
Fig. 4 is the structural representation of debugging apparatus one embodiment of television software system of the present invention;
Fig. 5 is the structural representation of debugging module in debugging apparatus one embodiment of television software system of the present invention.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, the flow chart of adjustment method one embodiment that Fig. 1 is television software system of the present invention.As shown in Figure 1, this flow process comprises the following steps:
Step S10, detects its memory space of USB device being connected with television set and whether meets type information memory requirement;
In the embodiment of the present invention, in the time of television boot-strap, carry out debugging handling process, specific as follows:
First, start the operating system on TV.Operating system completes after necessary equipment self-inspection, and initialization string jaws equipment comprises the device talk agreement of setting up serial ports, communication speed, and the information such as port, can work serial ports.Then initialization USB device, comprises initialization USB communications protocol, and install USB and drives, then obtains the required system resource of each port in Plan-cache district, comprises internal memory, semaphore and message queue etc.After USB device can be worked, detect and in USB interface, whether be inserted with USB device, i.e. USB flash memory or hard disk etc.If there is no interventional instrument, normal boot-strap, carries out follow-up start operation; If be inserted with equipment, checkout equipment space size, and residue can utilize space to have how many; If insufficient space, does not carry out debug procedures, carry out equally normal boot-strap operation; If space meets the demands, proceed to step S20.
Step S20, in the time that the memory space of described USB device meets type information memory requirement, opens debug procedures, exports the type information that leaves serial equipment in to USB device.If the space of USB device meets type information memory requirement, by operating system, the type information of system output is put into serial equipment for output, then export the type information of serial equipment to USB device.The embodiment of the present invention, directly from serial ports read data, does not need retouching operation system kernel, not only reduces program work amount but also ensured the stability of a system.
The information of the present invention by the serial equipment of reading system platform is also kept in the USB device of appointment, in order to the running status of the further debug system software of programmer, can well avoid the problem of system platform limited storage space, and well guarantee that repeatedly file system fragment that read-write operation causes is unlikely to destroy the normal operation of embedded system.The method not only can be applied in television set, as long as possess embedded system and support the system platform of serial equipment and USB device to be all suitable for.
With reference to Fig. 1, further, in above-described embodiment, before step S20, comprise:
Whether the debugging mark that judges television set enables, and if so, performs step S20; If not, enter normal boot-strap flow process.For example, can in program, define Debug Function Identification, being used for distinguishing TV is at debugging mode or Product Status, if Debug Function Identification does not enable, carry out normal boot-strap operation, if Function Identification enables, open a debug procedures, be transferred to step S20.
With reference to Fig. 2, in another embodiment of the present invention, above-mentioned steps S20 specifically comprises:
Step S21, starts the timer being preset in television set;
Step S22 creates file in USB device;
Step S23 in the time interval default according to timer, reads type information, and preserves hereof from the buffering area of serial equipment.
Read after the information success of serial equipment, start a timer, specifically can be set to 1ms interval time and interrupt once, then in USB device, create file, so that the type information reading from serial equipment is put into file.In order constantly to read the data of serial ports, each timing, to the buffer information that just reads serial equipment, is increased in the file data of USB device.
Further, above-mentioned steps S23 can comprise:
Constantly detect the remaining space size of USB device;
If USB device space is full, cover and stored data with new data, space full scale is set simultaneously and knows.
When reading type information from the buffering area of serial equipment and preserve hereof, detect the remaining space size of USB device, if insufficient space, no longer increase fileinfo, but cover original file data, space full scale will is set simultaneously, can ensures like this to read up-to-date data.It should be noted that, the time of set timer must be less than serial ports buffering area refresh time, otherwise can miss a part of data.
With reference to Fig. 3, in one embodiment, before whether the debugging mark that judges television set enables, comprise:
Steps A, exports type information to serial ports;
Step B, defined file descriptor, opens serial ports file, and return value is assigned to filec descriptor;
Step C, reads the data in serial ports file the buffering area of serial equipment.
The present embodiment is for (SuSE) Linux OS, if (SuSE) Linux OS, can read and preservation information with a function, in function, first define a filec descriptor, open serial ports file with open function, and return value is assigned to filec descriptor, then call read function data are read to buffering area, last close file descriptor.
The adjustment method of television software system of the present invention is equally applicable to the debugging processing of television set under normal boot-strap state, for example, if TV is normal boot-strap, as long as Debug Function Identification enables, after detecting that so USB device is inserted, detection space is enough, can create again an above-mentioned debug procedures outward in normal process equally, the data of serial ports are saved in the file of USB device, so normally operational system, can preserve again type information.
The another debugging apparatus that proposes a kind of television software system of the present invention, can realize said method flow process.With reference to Fig. 4, the structural representation of debugging apparatus one embodiment that Fig. 4 is television software system of the present invention.As shown in Figure 4, the debugging apparatus of television software system of the present invention comprises:
Whether USB device detection module 10, meet type information memory requirement for detection of its memory space of the USB device being connected with television set; After television set operating system initialization serial equipment and USB device, USB device detection module 10 detects in USB interface, whether to be inserted with USB device, i.e. USB flash memory or hard disk etc.If there is no interventional instrument, normal boot-strap, carries out follow-up start operation; If be inserted with equipment, checkout equipment space size, and residue can utilize space to have how many; If insufficient space, does not carry out debug procedures, carry out equally normal boot-strap operation; If space meets the demands, Start-up and Adjustment module 20.
Debugging module 20, while meeting type information memory requirement, opens debug procedures for the memory space of USB device, exports the type information that leaves serial equipment in to USB device.If the space of USB device meets type information memory requirement, by operating system, the type information of system output is put into serial equipment for output, then debugging module 20 exports the type information of serial equipment to USB device.The embodiment of the present invention, directly from serial ports read data, does not need retouching operation system kernel, not only reduces program work amount but also ensured the stability of a system.
The information of the present invention by the serial equipment of reading system platform is also kept in the USB device of appointment, in order to the running status of the further debug system software of programmer, can well avoid the problem of system platform limited storage space, and well guarantee that repeatedly file system fragment that read-write operation causes is unlikely to destroy the normal operation of embedded system.The method not only can be applied in television set, as long as possess embedded system and support the system platform of serial equipment and USB device to be all suitable for.
Further, debugging module 20 also for:
Whether the debugging mark that judges television set enables, and in the time that the memory space of described USB device meets type information memory requirement, opens debug procedures; If not, enter normal boot-strap flow process.For example, debugging module 20 can define Debug Function Identification in program, and being used for distinguishing TV is at debugging mode or Product Status, in debug process, if Debug Function Identification does not enable, carry out normal boot-strap operation, if Function Identification enables, open a debug procedures.
Preferably, with reference to Fig. 5, above-mentioned debugging module 20 comprises:
Timer start unit 21, for starting the timer that is preset at television set;
Document creation unit 22, for creating file in USB device;
Type information reading unit 23 for the time interval default according to timer, reads type information, and is kept in described file from the buffering area of serial equipment.
Operating system reads after the information success of serial equipment, timer start unit 21 starts a preset timer, specifically can be set to 1ms the interval time of timer interrupts once, then document creation unit 22 creates file in USB device, for type information reading unit 23, the type information reading from serial equipment is put into file.In order constantly to read the data of serial ports, each timing, to the buffer information that just reads serial equipment, is increased in the file data of USB device.
Above-mentioned type information reading unit 23 can be further used for:
Constantly detect the remaining space size of USB device;
If USB device space is full, cover and stored data with new data, space full scale is set simultaneously and knows.Type information reading unit 23 reads type information and preserves hereof from the buffering area of serial equipment, detect the remaining space size of USB device simultaneously, if insufficient space, no longer increase fileinfo, but cover original file data, space full scale will is set simultaneously, can ensures like this to read up-to-date data.It should be noted that, the time of set timer must be less than serial ports buffering area refresh time, otherwise can miss a part of data.
Preferably, in one embodiment, above-mentioned debugging module also can comprise linux system processing unit 24, this linux system processing unit 24 specifically for:
Export type information to serial ports;
Defined file descriptor, opens serial ports file, and return value is assigned to filec descriptor;
Data in serial ports file are read to the buffering area of serial equipment.
The present embodiment is for (SuSE) Linux OS, if (SuSE) Linux OS, can read and preservation information with a function, in function, first define a filec descriptor, open serial ports file with open function, and return value is assigned to filec descriptor, then call read function data are read to buffering area, last close file descriptor.
These are only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (4)
1. an adjustment method for television software system, is characterized in that, comprises the following steps:
Whether the debugging mark that judges television set enables, and if so, enters the step of opening debug procedures; If not, enter normal boot-strap flow process;
Detect its memory space of USB device being connected with television set and whether meet type information memory requirement;
In the time that the memory space of described USB device meets type information memory requirement, open debug procedures, export the type information that leaves serial equipment in to USB device;
Describedly export the type information that leaves serial equipment in to USB device and comprise:
Start the timer being preset in television set;
In USB device, create file;
In the time interval default according to timer, from the buffering area of serial equipment, read type information, and be kept in described file; Describedly from the buffering area of serial equipment, read type information, and be kept at described file and comprise:
If USB device space is full, cover and stored data with new data, space full scale is set simultaneously and knows.
2. the method for claim 1, is characterized in that, before whether the debugging mark that judges television set enables, also comprises:
Export type information to serial ports;
Defined file descriptor, opens serial ports file, and return value is assigned to filec descriptor;
Data in serial ports file are read to the buffering area of serial equipment.
3. a debugging apparatus for television software system, is characterized in that, at least comprises:
Whether USB device detection module, meet type information memory requirement for detection of its memory space of the USB device being connected with television set;
Debugging module, in the time that the memory space of described USB device meets type information memory requirement, opens debug procedures, exports the type information that leaves serial equipment in to USB device;
Described debugging module also for:
Whether the debugging mark that judges television set enables, and in the time that the memory space of described USB device meets type information memory requirement, opens debug procedures; If not, enter normal boot-strap flow process;
Described debugging module comprises:
Timer start unit, for starting the timer that is preset at television set;
Document creation unit, for creating file in USB device;
Type information reading unit for the time interval default according to timer, reads type information from the buffering area of serial equipment, and is kept in described file; Described type information reading unit is further used for:
If USB device space is full, cover and stored data with new data, space full scale is set simultaneously and knows.
4. debugging apparatus as claimed in claim 3, is characterized in that, described debugging module also comprises linux system processing unit, described linux system processing unit specifically for:
Export type information to serial ports;
Defined file descriptor, opens serial ports file, and return value is assigned to filec descriptor;
Data in serial ports file are read to the buffering area of serial equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110340183.8A CN102421004B (en) | 2011-11-01 | 2011-11-01 | Debugging method and device for television software system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110340183.8A CN102421004B (en) | 2011-11-01 | 2011-11-01 | Debugging method and device for television software system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102421004A CN102421004A (en) | 2012-04-18 |
CN102421004B true CN102421004B (en) | 2014-09-03 |
Family
ID=45945205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110340183.8A Active CN102421004B (en) | 2011-11-01 | 2011-11-01 | Debugging method and device for television software system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102421004B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106033378A (en) * | 2015-03-20 | 2016-10-19 | 昆达电脑科技(昆山)有限公司 | Debug information storage method |
CN109581188B (en) * | 2018-11-27 | 2021-07-27 | 深圳创维-Rgb电子有限公司 | Function detection method for terminal on mainboard, intelligent device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753507A (en) * | 2005-08-25 | 2006-03-29 | 深圳创维-Rgb电子有限公司 | Adjusting and testing method of embedded type set top box |
CN101316314A (en) * | 2007-05-29 | 2008-12-03 | 青岛海信电器股份有限公司 | Method and interface for upgrading flash through USB interface for digital LCD TV |
CN101382915A (en) * | 2008-10-23 | 2009-03-11 | 北京中星微电子有限公司 | Software debugging system and debugging method |
CN101645033A (en) * | 2009-05-15 | 2010-02-10 | 上海闻泰电子科技有限公司 | Debugging method in abnormality of mobile phone software |
CN201497985U (en) * | 2009-07-31 | 2010-06-02 | 广东浩兆信息科技发展有限公司 | Embedded equipment auxiliary failure analytical tool |
CN101800843A (en) * | 2010-04-22 | 2010-08-11 | 四川长虹电器股份有限公司 | Set top box capturing printing information method |
CN101826049A (en) * | 2009-03-06 | 2010-09-08 | 上海摩波彼克半导体有限公司 | Implementation method for debugging information output in embedded system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0690378A1 (en) * | 1994-06-30 | 1996-01-03 | Tandem Computers Incorporated | Tool and method for diagnosing and correcting errors in a computer programm |
KR101126171B1 (en) * | 2007-07-24 | 2012-03-23 | 삼성전자주식회사 | Scan device, image forming apparatus and control method thereof |
US7818619B2 (en) * | 2007-08-30 | 2010-10-19 | International Business Machines Corporation | Method and apparatus for debugging application software in information handling systems over a memory mapping I/O bus |
CN101505331A (en) * | 2008-02-04 | 2009-08-12 | 希姆通信息技术(上海)有限公司 | Method and apparatus for updating system software of smart phone |
CN102123313B (en) * | 2010-11-26 | 2013-03-27 | 青岛海信信芯科技有限公司 | Software upgrading method and device, television and television set top box |
-
2011
- 2011-11-01 CN CN201110340183.8A patent/CN102421004B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753507A (en) * | 2005-08-25 | 2006-03-29 | 深圳创维-Rgb电子有限公司 | Adjusting and testing method of embedded type set top box |
CN101316314A (en) * | 2007-05-29 | 2008-12-03 | 青岛海信电器股份有限公司 | Method and interface for upgrading flash through USB interface for digital LCD TV |
CN101382915A (en) * | 2008-10-23 | 2009-03-11 | 北京中星微电子有限公司 | Software debugging system and debugging method |
CN101826049A (en) * | 2009-03-06 | 2010-09-08 | 上海摩波彼克半导体有限公司 | Implementation method for debugging information output in embedded system |
CN101645033A (en) * | 2009-05-15 | 2010-02-10 | 上海闻泰电子科技有限公司 | Debugging method in abnormality of mobile phone software |
CN201497985U (en) * | 2009-07-31 | 2010-06-02 | 广东浩兆信息科技发展有限公司 | Embedded equipment auxiliary failure analytical tool |
CN101800843A (en) * | 2010-04-22 | 2010-08-11 | 四川长虹电器股份有限公司 | Set top box capturing printing information method |
Non-Patent Citations (1)
Title |
---|
JP特开平8-83197A 1996.03.26 |
Also Published As
Publication number | Publication date |
---|---|
CN102421004A (en) | 2012-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9778844B2 (en) | Installation of operating system on host computer using virtual storage of BMC | |
TWI599877B (en) | Method for reading complete kernel log when kernel panic takes place in operating system | |
CN101593164A (en) | Based on built-in Linux from USB HID device and firmware implementation method | |
CN101937344B (en) | Computer and method for quickly starting same | |
EP2189906A1 (en) | Method and apparatus for abnormality recovering of data card, and data card | |
US7093118B2 (en) | System and method for external bus device support | |
US9473273B2 (en) | Memory system capable of increasing data transfer efficiency | |
US7970433B2 (en) | SD switch box in a cellular handset | |
US20040049617A1 (en) | Method of firmware update by USB interface | |
CN108062234B (en) | System and method for realizing server host to access BMC FLASH through mailbox protocol | |
CN103257922A (en) | Method for quickly testing reliability of BIOS (basic input output system) and OS (operating system) interface codes | |
EP2990956B1 (en) | Usb device and method thereof for automatically recognizing microsoft windowing operating system version | |
CN102421004B (en) | Debugging method and device for television software system | |
CN111124985A (en) | Read-only control method and device for mobile terminal | |
JP2007199845A (en) | Method and device for detecting memory c0rruption | |
US7707336B2 (en) | Universal serial bus (USB) system with single port and host controller thereof | |
WO2012081085A1 (en) | Interrupt source management device and interrupt processing system | |
CN102541702A (en) | Test method for automatically restarting mainboard and recording debugging datum as well as restarting device of mainboard | |
US6349388B1 (en) | Timer processing engine for supporting multiple virtual minimum time timers | |
CN215006450U (en) | Feiteng X100 bridge piece embedding mainboard | |
US7571266B2 (en) | Peripheral device in a computerized system and method | |
JP5163180B2 (en) | Device controller | |
US6920513B2 (en) | Bus management techniques | |
CN105068835A (en) | Mobile terminal and debugging information display method thereof | |
CN101562007A (en) | Display control device capable of automatically updating firmware and update method 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |