CN111212155B - Log debugging method, television and storage medium - Google Patents

Log debugging method, television and storage medium Download PDF

Info

Publication number
CN111212155B
CN111212155B CN201911423343.8A CN201911423343A CN111212155B CN 111212155 B CN111212155 B CN 111212155B CN 201911423343 A CN201911423343 A CN 201911423343A CN 111212155 B CN111212155 B CN 111212155B
Authority
CN
China
Prior art keywords
log
test terminal
server
debugging
network
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
Application number
CN201911423343.8A
Other languages
Chinese (zh)
Other versions
CN111212155A (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201911423343.8A priority Critical patent/CN111212155B/en
Publication of CN111212155A publication Critical patent/CN111212155A/en
Application granted granted Critical
Publication of CN111212155B publication Critical patent/CN111212155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a log debugging method, a television and a storage medium, wherein the log debugging method is applied to the television, firstly, when the debugging is started, a network address of a traversing server arranged on an external network is obtained, and the network address is matched with the traversing server according to the network address; after the identification code is successfully paired with the crossing server, applying an identification code for the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server; and sending the log data to the test terminal so that the test terminal can debug the log according to the log data. The interaction between the test terminal and the tested terminal is carried out on the traversing server positioned in the external network, so that the log debugging method provided by the invention realizes the internal network penetration, and the whole log debugging process is not limited by the network environment.

Description

Log debugging method, television and storage medium
Technical Field
The invention relates to the technical field of log debugging, in particular to a log debugging method, a television and a storage medium.
Background
Before the smart television leaves a factory, in order to ensure that the television can be normally used, the system stability of the television needs to be debugged. Generally, for a television with an android system installed, a developer usually debugs and modifies application software installed on the television and the android system by calling log data of the television.
According to the existing log debugging method of the smart television, a terminal to be tested (the smart television) and a testing terminal (a computer) need to be placed in the same network environment, and the testing terminal calls an adb debugging tool carried by an android system to obtain log data of the terminal to be tested.
Disclosure of Invention
The invention mainly aims to provide a log debugging method, a television and a storage medium, and aims to solve the technical problem that the existing log debugging method is restricted by a network environment and cannot realize intranet penetration.
In order to achieve the above object, the present invention provides a log debugging method, which comprises the following steps:
when debugging starts, acquiring a network address of a traversing server arranged on an external network, and pairing the traversing server according to the network address;
after the identification code is successfully paired with the crossing server, applying an identification code for the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server;
and sending log data to the test terminal so that the test terminal can carry out log debugging according to the log data.
Optionally, the step of acquiring a network address of a traversal server disposed in the extranet includes:
acquiring a network address of a configuration server arranged in an intranet from a preset configuration file, and communicating with the configuration server according to the network address of the configuration server;
and receiving the network address of the traversing server sent by the configuration server.
Optionally, before the step of obtaining the network address of the configuration server set in the intranet from the preset configuration file, the method further includes:
receiving a network selection instruction sent by a user, and determining a network transmission type connected with the configuration server according to the network selection instruction;
the step of sending log data to the test terminal includes:
and receiving a log debugging instruction sent by the test terminal, and sending log data to the test terminal according to the network transmission type and the log debugging instruction.
Optionally, the step of sending log data to the test terminal according to the network transmission type and the log debugging instruction includes:
when the network transmission type is a User Datagram Protocol (UDP), filtering the log data according to the log debugging instruction, and sending the filtered log data to the test terminal;
and when the network transmission type is a Transmission Control Protocol (TCP), storing the log data in a log file according to the log debugging instruction, and sending the log file to the test terminal.
Optionally, the step of sending log data to the test terminal includes:
receiving a log debugging instruction sent by the test terminal, and starting a shell debugging process and a simulation terminal in the television;
and sending the log debugging instruction to the shell debugging process through a simulation terminal, and receiving log data output by the shell debugging process according to the log debugging instruction through the simulation terminal so as to send the log data to the test terminal.
Optionally, the step of applying for an identification code from the traversal server to connect with the test terminal through the identification code includes:
acquiring a delegation address corresponding to the television from a traversing server, and sending an identification request to the traversing server according to the delegation address so as to receive and display an identification code sent by the traversing server according to the identification request;
and when the traversing server receives the identification code sent by the test terminal and then allocates a mapping consignation address corresponding to the identification code to the test terminal, the traversing server is connected with the test terminal through the consignation address and the mapping consignation address, wherein the test terminal is connected with the traversing server through the identification code input by a user.
Optionally, before the step of obtaining the network address of the pass-through server disposed in the external network, the method further includes:
detecting whether a security key corresponding to the test terminal is loaded or not;
if yes, executing the following steps: and acquiring a network address of a traversing server arranged in an external network.
Optionally, after the step of sending the log data to the test terminal to enable the test terminal to perform log debugging according to the log data, the method further includes:
and acquiring feedback information sent by the test terminal, and displaying abnormal information and sending an abnormal instruction to the test terminal when packet loss exists in the sending process of the log data according to the feedback information.
In addition, to achieve the above object, the present invention also provides a television comprising: the memory data migration program is used for realizing the steps of the memory data migration method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a memory data migration program is stored, and when the memory data migration program is executed by a processor, the steps of the memory data migration method are implemented.
The invention provides a log debugging method, a television and a storage medium, wherein the log debugging method is applied to the television, firstly, when debugging is started, a network address of a traversing server arranged on an external network is obtained, and the network address is paired with the traversing server according to the network address; after the crossing server is successfully paired, applying an identification code to the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server; and sending the log data to the test terminal so that the test terminal can debug the log according to the log data. The television is paired with the pass-through server to obtain the identification code, the connection with the test terminal is established according to the identification code, and finally the log data is sent to the test terminal, so that the test terminal can carry out log debugging according to the log data. The interaction between the test terminal and the tested terminal is carried out on the traversing server positioned in the external network, so that the log debugging method provided by the invention realizes the internal network penetration, and the whole log debugging process is not limited by the network environment.
Drawings
Fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a log debugging method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating a detailed process of the step of sending log data to the test terminal according to the network transmission type and the log debugging command in the log debugging method of the present invention;
FIG. 4 is a schematic diagram of data interaction of each terminal in the log debugging method of the present invention;
fig. 5 is a flowchart illustrating a detailed process of the step of applying for the identification code from the pass-through server to connect the test terminal through the identification code according to the log debugging method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal is a television, and the terminal can also be other terminal equipment with a storage function.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Wi-Fi module, and the like, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 mainly includes an input unit such as a keyboard including a wireless keyboard and a wired keyboard, and is used to connect to the client and perform data communication with the client; and the processor 1001 may be configured to call the log debugger stored in the memory 1005 and perform the following operations:
when debugging starts, acquiring a network address of a traversing server arranged on an external network, and pairing the traversing server according to the network address;
after the crossing server is successfully paired, applying an identification code to the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server;
and sending log data to the test terminal so that the test terminal can carry out log debugging according to the log data.
Further, the processor 1001 may call the log debugger stored in the memory 1005, and also perform the following operations:
acquiring a network address of a configuration server arranged in an intranet from a preset configuration file, and communicating with the configuration server according to the network address of the configuration server;
and receiving the network address of the traversing server sent by the configuration server.
Further, the processor 1001 may call the log debugger stored in the memory 1005, and also perform the following operations:
receiving a network selection instruction sent by a user, and determining a network transmission type connected with the configuration server according to the network selection instruction;
and receiving a log debugging instruction sent by the test terminal, and sending log data to the test terminal according to the network transmission type and the log debugging instruction.
Further, processor 1001 may call a log debugger stored in memory 1005, and also perform the following operations:
when the network transmission type is a User Datagram Protocol (UDP), filtering the log data according to the log debugging instruction, and sending the filtered log data to the test terminal;
and when the network transmission type is a Transmission Control Protocol (TCP), storing the log data in a log file according to the log debugging instruction, and sending the log file to the test terminal.
Further, the processor 1001 may call the log debugger stored in the memory 1005, and also perform the following operations:
receiving a log debugging instruction sent by the test terminal, and starting a shell debugging process and a simulation terminal in the television;
and sending the log debugging instruction to the shell debugging process through a simulation terminal, and receiving log data output by the shell debugging process according to the log debugging instruction through the simulation terminal so as to send the log data to the test terminal.
Further, the processor 1001 may call the log debugger stored in the memory 1005, and also perform the following operations:
acquiring a delegation address corresponding to the television from a traversing server, and sending an identification request to the traversing server according to the delegation address so as to receive and display an identification code sent by the traversing server according to the identification request;
and when the traversing server receives the identification code sent by the test terminal and allocates a mapping consignation address corresponding to the identification code for the test terminal, the traversing server is connected with the test terminal through the consignation address and the mapping consignation address, wherein the test terminal is connected with the traversing server through the identification code input by a user.
Further, the processor 1001 may call the log debugger stored in the memory 1005, and also perform the following operations:
detecting whether a security key corresponding to the test terminal is loaded or not;
if yes, executing the following steps: and acquiring a network address of a traversing server arranged in an external network.
Further, processor 1001 may call a log debugger stored in memory 1005, and also perform the following operations:
and taking feedback information sent by the test terminal, and displaying abnormal information and sending an abnormal instruction to the test terminal when packet loss exists in the sending process of the log data according to the feedback information.
The specific embodiment of the terminal television is basically the same as the following embodiments of the log debugging method, and details are not described herein.
Referring to fig. 2, fig. 2 is a flowchart illustrating a log debugging method according to an embodiment of the present invention. The log debugging method provided by the embodiment comprises the following steps:
step S10, when debugging starts, obtaining a network address of a traversing server arranged on an external network, and pairing the traversing server according to the network address;
in this embodiment, a test terminal and a tested terminal are provided, as an alternative, the test terminal is a computer, and the test terminal is provided in an external network environment, i.e., an external network; the tested terminal is a television and is arranged on a local area network, namely an intranet. When debugging starts, a network address and a port number of a traversing server are obtained, it is easy to understand that the traversing server is a server which can realize an ICE interaction process and has a delegated address pairing function, the traversing server is arranged on an extranet, and after the network address of the traversing server is obtained, a television inquires a server corresponding to the network address, so that pairing with the traversing server is realized.
Step S20, after the crossing server is successfully paired, applying an identification code to the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server;
the television is connected and paired with the traversing server according to the network address of the traversing server, and after the television is successfully paired with the traversing server, the television can apply for an identification code from the traversing server by sending a request instruction.
The television uses the identification code as a medium to establish connection with the test terminal, and it should be understood that the test terminal is arranged in an external network environment and has established communication connection with a pass-through server in the external network environment.
And S30, sending the log data to the test terminal so that the test terminal can debug the log according to the log data.
And after the television is communicated with the test terminal, sending log data to the test terminal. As an alternative scheme, after the television is communicated with the test terminal, the test terminal sends a log debugging instruction to the television, and the television sends corresponding log data to the test terminal according to the log debugging instruction; alternatively, after the television is in communication connection with the test terminal, the television actively transmits all log data to the test terminal. And the test terminal debugs and modifies the application software and the android system installed on the television according to the received log data.
In the embodiment, when the debugging is started, the network address of the crossing server arranged in the external network is obtained, and the network address is paired with the crossing server according to the network address; after the identification code is successfully paired with the crossing server, applying an identification code for the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server; and sending the log data to the test terminal so that the test terminal can debug the log according to the log data. The television in the embodiment obtains the identification code by pairing with the pass-through server, establishes connection with the test terminal according to the identification code, and finally sends the log data to the test terminal so that the test terminal can perform log debugging according to the log data. The interaction between the test terminal and the tested terminal is carried out on the pass-through server positioned in the external network, so that the log debugging method provided by the embodiment realizes the pass-through of the internal network, and the whole log debugging process is not limited by the network environment.
Further, the step of acquiring the network address of the pass-through server arranged in the external network comprises:
step S11, acquiring a network address of a configuration server arranged in an intranet from a preset configuration file, and communicating with the configuration server according to the network address of the configuration server;
and step S12, receiving the network address of the traversing server sent by the configuration server.
In this embodiment, after the start of debugging, the network address of the configuration server is obtained from a preset configuration file, and it is easy to understand that the configuration file may be configured in a local storage of the television, and the television obtains the configuration file from the local storage, and obtains the network address and the port number of the configuration server by querying from the configuration file, and is in communication connection with the configuration server in the intranet according to the network address and the port number of the configuration server. Specifically, after the television obtains the network address, the server cluster where the configuration server is located is queried through the network address, and then the server end where the configuration server is located in the server cluster is queried according to the port number, so that communication with the configuration server is achieved.
After the television communicates with the configuration server, as an alternative, the configuration server actively sends a network address and a port number which pass through the server to the television; alternatively, the television sends a corresponding request to the configuration server, and the configuration server sends the network address and port number traversing the server to the television according to the request. Furthermore, the connection process of the tv to the pass-through server is consistent with the connection process of the tv to the configuration server, and will not be elaborated herein.
In the embodiment, the connection between the television and the configuration server on the intranet is realized through the mode, and then the network address of the crossing server is received from the configuration server, so that the problem that the intranet cannot be penetrated due to errors in the configuration process of the crossing server in the debugging process of the television is avoided.
Further, before the step S11 obtains the network address of the configuration server set in the intranet from the preset configuration file, the method further includes:
step S13, receiving a network selection instruction sent by a user, and determining a network transmission type connected with the configuration server according to the network selection instruction;
the step of sending the log data to the test terminal includes:
step S31, receiving the log debugging instruction sent by the test terminal, and sending log data to the test terminal according to the network transmission type and the log debugging instruction.
After the television starts to be debugged, the television displays a network selection interface and requests a user to input a corresponding network selection instruction on a television terminal so as to determine the network transmission type of the television on the intranet. UDP is a transport protocol supporting a connectionless, providing a method for applications to send encapsulated IP datagrams without establishing a connection, and it has the characteristics of connectionless, unreliable, and fast transmission; TCP is a connection-oriented, reliable transport layer communication protocol based on byte streams, and compared with UDP, TCP is more reliable, but the transmission speed is lower, it should be understood that, because the television and the test terminal are both installed on the intranet, when the television and the test terminal use TCP as the network transmission type, the communication between the television and the test terminal is a way of simulating the TCP transmission protocol to perform network transmission, and cannot meet all standards of the TCP transmission protocol.
After the network transmission type is determined according to the network selection instruction sent by the user, the log data are sent to the test terminal in different transmission modes according to different network transmission types in the sending process of the log data. By selecting the network transmission type, the log data transmission mode adaptive to different network transmission types is correspondingly adopted, and the transmission efficiency of the log data is improved.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a detailed process of the step of sending the log data to the test terminal according to the network transmission type and the log debugging command in the log debugging method of the present invention. The step of sending the log data to the test terminal according to the network transmission type and the log debugging instruction comprises the following steps:
step S311, when the network transmission type is user datagram protocol UDP, filtering the log data according to the log debugging instruction, and sending the filtered log data to the test terminal;
and step S312, when the network transmission type is a Transmission Control Protocol (TCP), storing the log data in a log file according to the log debugging instruction, and sending the log file to the test terminal.
In this embodiment, after determining that the network transmission type of the television on the intranet is the user datagram protocol UDP, the user may send a log debugging instruction to the television, and the television receives the log debugging instruction and the log information sent by the user. As an optional implementation scheme, the television directly sends log data corresponding to the log debugging instruction to the test terminal without filtering the log data under the condition that the television only receives the log debugging instruction.
After determining that the network transmission type of the television on the intranet is a Transmission Control Protocol (TCP), calling corresponding log data according to a log debugging instruction sent by a user, storing the log data in a preset log file until a test terminal stops sending the log debugging instruction or the test terminal closes log receiving, and sending the log file to the test terminal through a traversing server. It is easy to understand that the implementation and transmission of log data can be realized because the user datagram protocol UDP has the characteristic of high transmission speed; because the transmission speed of the transmission control protocol TCP is slow but the reliability is high, a delayed transmission mode is adopted in the transmission process of the log data.
According to the embodiment, different transmission modes are selected to transmit the log data to the test terminal according to different network transmission types of the television on the intranet, so that the reliability and the integrity of log transmission are ensured, and the occurrence of packet loss in the log transmission process is avoided.
Further, the step of sending the log data to the test terminal includes:
step S32, receiving a log debugging instruction sent by the test terminal, and starting a shell debugging process and a simulation terminal in the television;
and step S33, sending the log debugging instruction to the shell debugging process through a simulation terminal, and receiving log data output by the shell debugging process according to the log debugging instruction through the simulation terminal so as to send the log data to the test terminal.
In this embodiment, after receiving the log debugging instruction sent by the test terminal, the television further includes the following process. Specifically, please refer to fig. 4, where fig. 4 is a schematic data interaction diagram of each terminal in the log debugging method of the present invention, the analog terminal is divided into a master part and a slave part, where the master part is in communication with a television, the slave part is in communication with the log debugging process, a test terminal sends a log debugging instruction to the television, the television sends the log debugging instruction to the shell debugging process through a module terminal to call corresponding log data, and the television sends the log data to the test terminal through the analog terminal to implement transmission of the log data. In addition, it should be noted that the analog terminal and the shell debugging process are configured inside the television.
By setting the analog terminal and calling the shell debugging process, the functions of the television terminal can be realized by the analog terminal, so that the requirement that multiple users debug logs simultaneously is met, and the efficiency of log debugging is improved.
Further, please refer to fig. 5, where fig. 5 is a schematic diagram illustrating a detailed flow of the steps of applying for the identification code from the pass-through server to connect the test terminal through the identification code according to the log debugging method of the present invention. The step of applying for the identification code from the traversing server so as to connect with the test terminal through the identification code comprises the following steps:
step S21, obtaining a delegation address corresponding to the television from a traversing server, and sending an identification request to the traversing server according to the delegation address so as to receive and display an identification code sent by the traversing server according to the identification request;
and S22, when the traversing server receives the identification code sent by the test terminal and then allocates a mapping consignation address corresponding to the identification code to the test terminal, connecting the mapping consignation address with the test terminal through the consignation address, wherein the test terminal is connected with the traversing server through inputting the identification code by a user.
After the television is successfully paired with a pass-through server arranged in an external network, acquiring an entrusted address candidate corresponding to the television from the pass-through server; meanwhile, if the television fails to be paired with the crossing server arranged in the external network, the television displays pairing failure information and prompts a user to input a crossing server address. That is, after the user fails to pair, the user can manually input the network address of the crossing server on the television, and the television tries to pair with the crossing server again according to the network address of the crossing server input by the user.
The television generates a corresponding identification request according to the received consignation address and sends the identification request to the crossing server, the crossing server generates an identification code uniquely corresponding to the television after receiving the identification request, and the television displays the identification code after receiving the identification code so that the test terminal is connected with the crossing server according to the identification code. Specifically, for the test terminal, because the test terminal and the pass-through server are both arranged with the external network, the user can connect the test terminal and the pass-through server by directly inputting the network address and the port number of the pass-through server on the test terminal, the user then manually inputs the identification code displayed by the television to the test terminal, the test terminal sends the identification code to the pass-through server, and the pass-through server allocates the mapping consignation address corresponding to the identification code for the test terminal.
Further, before the step S10 acquires the network address of the pass-through server set in the extranet, the method further includes:
step S40, detecting whether a security key corresponding to the test terminal is loaded or not;
if yes, step S10 is executed to acquire the network address of the pass-through server disposed in the extranet.
In this embodiment, after the log debugging is started, it is detected whether a security key is loaded, it should be understood that the security key corresponds to the test terminal, and if the security key corresponding to the test terminal is loaded, it indicates that the running environment of the television is secure, and an interaction process with the configuration server may be performed; if the safety key corresponding to the test terminal is not loaded, the television is indicated to have safety risk, and the log debugging is quit.
According to the embodiment, the log debugging function is performed on the premise of ensuring the safety of the television system through the mode, and the system safety in the log debugging process is ensured.
Further, step S30 is to send log data to the test terminal, so that after the test terminal performs log debugging according to the log data, the method further includes:
and S50, taking feedback information sent by the test terminal, and displaying abnormal information and sending an abnormal instruction to the test terminal when packet loss exists in the sending process of the log data according to the feedback information.
It is easy to understand that there is a packet loss of log data easily during the transmission of the log data. Specifically, after receiving log data, the testing terminal sends feedback information to the television, wherein the feedback information reflects the data volume of the received log data and the receiving time of the received log data, after receiving the feedback information, the television determines whether the data volume of the log data received by the testing terminal is consistent with the data volume of the log data sent by the television, determines whether the receiving time of the log data received by the testing terminal is greater than the preset time, if the data volume of the log data received by the testing terminal is greater than the data volume of the log data sent by the television, and/or the receiving time of the log data received by the testing terminal is greater than the preset time, it is determined that packet loss occurs, and the television displays abnormal information and sends an abnormal instruction to the testing terminal, so that a user can know the packet loss log and remind the user of eliminating faults.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a log debugging program is stored on the computer-readable storage medium, and when executed by a processor, the log debugging program implements the operations of the log debugging method described above.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the log debugging method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A log debugging method is applied to a television and is characterized by comprising the following steps:
when debugging starts, acquiring a network address of a traversing server arranged on an external network, and pairing the traversing server according to the network address;
after the crossing server is successfully paired, applying an identification code to the crossing server to connect with a test terminal through the identification code, wherein the test terminal is arranged in an external network and is connected with the crossing server;
sending log data to the test terminal so that the test terminal can carry out log debugging according to the log data;
the step of applying for the identification code from the traversing server so as to connect with the test terminal through the identification code comprises the following steps:
acquiring a delegation address corresponding to the television from a traversing server, and sending an identification request to the traversing server according to the delegation address so as to receive and display an identification code sent by the traversing server according to the identification request;
and when the traversing server receives the identification code sent by the test terminal and allocates a mapping consignation address corresponding to the identification code for the test terminal, the traversing server is connected with the test terminal through the consignation address and the mapping consignation address, wherein the test terminal is connected with the traversing server through the identification code input by a user.
2. The log debugging method of claim 1, wherein the step of obtaining a network address of a pass through server disposed in an extranet comprises:
acquiring a network address of a configuration server arranged in an intranet from a preset configuration file, and communicating with the configuration server according to the network address of the configuration server;
and receiving the network address of the traversing server sent by the configuration server.
3. The log debugging method according to claim 2, wherein before the step of obtaining the network address of the configuration server installed in the intranet from the preset configuration file, the method further comprises:
receiving a network selection instruction sent by a user, and determining a network transmission type connected with the configuration server according to the network selection instruction;
the step of sending log data to the test terminal includes:
and receiving a log debugging instruction sent by the test terminal, and sending log data to the test terminal according to the network transmission type and the log debugging instruction.
4. The log debugging method of claim 3, wherein the step of sending log data to the test terminal according to the network transmission type and the log debugging instructions comprises:
when the network transmission type is a User Datagram Protocol (UDP), filtering the log data according to the log debugging instruction, and sending the filtered log data to the test terminal;
and when the network transmission type is a Transmission Control Protocol (TCP), storing the log data in a log file according to the log debugging instruction, and sending the log file to the test terminal.
5. The log debugging method of claim 1, wherein the step of sending log data to the test terminal comprises:
receiving a log debugging instruction sent by the test terminal, and starting a shell debugging process and a simulation terminal in the television;
and sending the log debugging instruction to the shell debugging process through a simulation terminal, and receiving log data output by the shell debugging process according to the log debugging instruction through the simulation terminal so as to send the log data to the test terminal.
6. The log debugging method of claim 1, wherein the step of obtaining a network address of a traversal server disposed in an extranet further comprises:
detecting whether a security key corresponding to the test terminal is loaded or not;
if yes, executing the following steps: and acquiring a network address of a traversing server arranged in an external network.
7. The log debugging method of claim 1, wherein after the step of sending the log data to the test terminal so that the test terminal performs log debugging according to the log data, the method further comprises:
and acquiring feedback information sent by the test terminal, and displaying abnormal information and sending an abnormal instruction to the test terminal when detecting that packet loss exists in the sending process of the log data according to the feedback information.
8. A television, the television comprising: a memory, a processor, and a log debugger stored on the memory and executable on the processor, the log debugger being configured to implement the steps of the log debugging method of any of claims 1-7.
9. A computer-readable storage medium, having a log debugging program stored thereon, which when executed by a processor implements the steps of the log debugging method according to any one of claims 1 to 7.
CN201911423343.8A 2019-12-30 2019-12-30 Log debugging method, television and storage medium Active CN111212155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423343.8A CN111212155B (en) 2019-12-30 2019-12-30 Log debugging method, television and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423343.8A CN111212155B (en) 2019-12-30 2019-12-30 Log debugging method, television and storage medium

Publications (2)

Publication Number Publication Date
CN111212155A CN111212155A (en) 2020-05-29
CN111212155B true CN111212155B (en) 2023-03-10

Family

ID=70787453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423343.8A Active CN111212155B (en) 2019-12-30 2019-12-30 Log debugging method, television and storage medium

Country Status (1)

Country Link
CN (1) CN111212155B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000560A (en) * 2020-08-07 2020-11-27 山东云缦智能科技有限公司 Terminal log obtaining method and terminal log obtaining system
CN112052164B (en) * 2020-08-19 2024-10-01 深圳创维-Rgb电子有限公司 Remote debugging method, storage medium and debugging terminal of Android device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103840953A (en) * 2012-11-21 2014-06-04 中兴通讯股份有限公司 Remote log real-time acquisition method and system
CN106412639A (en) * 2016-10-14 2017-02-15 深圳Tcl数字技术有限公司 Smart television remote debugging method and smart television remote debugging system
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server
CN110062293A (en) * 2019-04-25 2019-07-26 深圳市酷开网络科技有限公司 Remote assistance method, transfer server, television terminal and storage medium
CN110311970A (en) * 2019-06-27 2019-10-08 乐安县云智易联科技有限公司 A kind of remote debugging system and its method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103840953A (en) * 2012-11-21 2014-06-04 中兴通讯股份有限公司 Remote log real-time acquisition method and system
CN106412639A (en) * 2016-10-14 2017-02-15 深圳Tcl数字技术有限公司 Smart television remote debugging method and smart television remote debugging system
WO2018068411A1 (en) * 2016-10-14 2018-04-19 深圳Tcl数字技术有限公司 Remote debugging method for smart television and remote debugging system for smart television
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server
CN110062293A (en) * 2019-04-25 2019-07-26 深圳市酷开网络科技有限公司 Remote assistance method, transfer server, television terminal and storage medium
CN110311970A (en) * 2019-06-27 2019-10-08 乐安县云智易联科技有限公司 A kind of remote debugging system and its method

Also Published As

Publication number Publication date
CN111212155A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN102143523B (en) Service delivery platform and application testing method based on service delivery platform
CN107770762B (en) Method and device for establishing Bluetooth connection
CN111212155B (en) Log debugging method, television and storage medium
KR20120071849A (en) Automatical test system and method performance of smart phone using android debug bridge interface
WO2018014857A1 (en) Set top box wifi throughput testing system, method and device
CN104461897A (en) Application program test method and device
CN113608812B (en) Remote control method, device, system and storage medium
CN109873728A (en) A kind of terminal test method, device and storage medium
CN104079717A (en) Method for displaying device interface and server
CN111159019A (en) Application program testing method, testing control terminal and testing terminal
CN113672441A (en) Method and device for testing intelligent equipment
CN113794602B (en) Equipment testing method and device, terminal equipment and storage medium
CN110446197B (en) Communication control method, device, equipment and storage medium of intelligent equipment
CN109729346B (en) Remote debugging method and system for television, debugging terminal and television terminal
CN114363225B (en) MTQQ protocol-based equipment debugging mode, system and storage medium
CN109743744B (en) Wireless performance test method, device, equipment and readable storage medium
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN111416882A (en) BMC IP setting method and device, electronic equipment and system
CN108540344B (en) Router upgrading test method and system
CN108958785A (en) A kind of application program updating method and device
CN104570967B (en) Long-range control method and system based on android system
KR20220049334A (en) Method and system for application test
CN104079634A (en) Method, device and system for displaying device interface
CN111544894A (en) Server login method and device for mini-game client
CN116546062A (en) Cloud mobile phone control method and device, cloud server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant