CN111651308B - Method and device for acquiring debugging data of DP-HDMI chip and intelligent device - Google Patents

Method and device for acquiring debugging data of DP-HDMI chip and intelligent device Download PDF

Info

Publication number
CN111651308B
CN111651308B CN202010335192.7A CN202010335192A CN111651308B CN 111651308 B CN111651308 B CN 111651308B CN 202010335192 A CN202010335192 A CN 202010335192A CN 111651308 B CN111651308 B CN 111651308B
Authority
CN
China
Prior art keywords
chip
hdmi
main control
data
control chip
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
CN202010335192.7A
Other languages
Chinese (zh)
Other versions
CN111651308A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010335192.7A priority Critical patent/CN111651308B/en
Publication of CN111651308A publication Critical patent/CN111651308A/en
Application granted granted Critical
Publication of CN111651308B publication Critical patent/CN111651308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application relates to a method and a device for acquiring debugging data of a DP-HDMI chip and intelligent equipment. The method for acquiring the debugging data of the DP-to-HDMI chip is applied to intelligent equipment, the intelligent equipment comprises a main control chip and the DP-to-HDMI chip, the main control chip is connected with an IIC interface of the DP-to-HDMI chip, and the method comprises the following steps: receiving a debug data reading instruction, wherein the debug data reading instruction is used for reading the debug data of the DP-HDMI chip; responding to the debug data reading instruction, and sending a debug data acquisition request to the DP-HDMI chip through the main control chip; and receiving the debugging data sent by the DP-HDMI chip through the main control chip. According to the method for obtaining the debug data of the DP-HDMI chip, when the DP-HDMI chip is debugged, a debug small plate provided by a chip manufacturer is not required to be additionally used, a debug link is not required to be additionally added, and the method is more convenient for obtaining the debug data of the DP-HDMI chip.

Description

Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
Technical Field
The embodiment of the application relates to the technical field of intelligent wearable equipment, in particular to a method and a device for acquiring debugging data of a DP-HDMI chip and intelligent equipment.
Background
The USB Type-C interface is widely used for transmitting audio and video signals between electronic devices, for example, a computer sends audio and video data to an intelligent device for display through the USB Type-C interface.
The USB Type-C interface mainly transmits audio and video data through a DP (DisplayPort) communication protocol, but a main control chip SoC of the intelligent display device does not directly support the DP communication protocol, so that in the intelligent display device, after receiving a DP signal through the USB Type-C interface, the DP signal is converted into an HDMI signal through a DP-to-HDMI chip, then the converted HDMI signal is sent to the main control chip, and the main control chip finishes decoding the HDMI signal and sends the HDMI signal to a display screen for display.
In the research and development process, some probabilistic bugs are often encountered, taking the bug of the DP signal as an example, in the existing debugging method, a debugging small board provided by a chip former factory needs to be used, and a connecting wire of the debugging small board is welded on an IIC upgrading interface of the DP-to-HDMI chip, so that a log grabbing environment is built, but the IIC upgrading interface of the DP-to-HDMI chip is often connected with a main control chip. Therefore, the existing method for acquiring the debug data of the DP-HDMI chip needs to add a new link, connect the debug small board through the hardware welding wire, and have a special computer record log, so that the process for acquiring the debug data is troublesome, the acquisition cost is high, and the acquisition time is long.
Disclosure of Invention
The embodiment of the application provides a method, a device and intelligent equipment for acquiring debugging data of a DP-HDMI chip, which enable the process of acquiring the debugging data of the DP-HDMI chip to be more convenient.
In a first aspect, the embodiment of the application provides a debug data acquisition method of a DP-to-HDMI chip, which is applied to an intelligent device, an electronic device outputs DP signals to a USB Type-C interface of the intelligent device through the USB Type-C interface, the intelligent device includes a main control chip and a DP-to-HDMI chip, the main control chip is connected with an IIC interface of the DP-to-HDMI chip, the DP-to-HDMI chip converts the DP signals into HDMI signals and sends the HDMI signals to the main control chip, a signal input end of the DP-to-HDMI chip is connected with the USB Type-C interface of the intelligent device, a signal output end of the DP-to-HDMI chip is connected with the main control chip, and the main control chip is connected with different operating systems through a channel switcher and decodes audio and video signals transmitted by the different operating systems and then transmits the audio and video signals to a screen and a speaker for audio and video playing. When firmware upgrade is performed on the DP-HDMI chip through the IIC bus, the main control chip writes data into the DP-HDMI chip, and the method comprises the following steps:
receiving a debug data reading instruction, wherein the debug data reading instruction is used for reading the debug data of the DP-HDMI chip;
responding to the debug data reading instruction, and sending a debug data acquisition request to the DP-HDMI chip through the main control chip; the debug data reading instruction comprises an IIC communication address of the DP-HDMI chip, directs the main control chip to establish IIC bus communication connection with the DP-HDMI chip, and sends a debug data acquisition request to the DP-HDMI chip through the main control chip by using an IIC bus communication protocol;
and receiving the debugging data sent by the DP-HDMI chip through the main control chip.
Optionally, after the obtaining, by the main control chip, the debug data sent by the DP to HDMI chip further includes:
and sending the debugging data to an external storage device through a USB interface or a serial port of the intelligent device.
Optionally, before the debug data is sent to the external storage device through a USB interface or a serial port of the intelligent device, the method further includes:
identifying an object type of the debug data;
and according to the object type of the debugging data, storing the debugging data in a register of the main control chip in a classified manner.
Optionally, the object type of the debug data includes at least one of:
and the DP converts the operation log data of the HDMI chip, the display parameters of the input signals and the display parameters of the output signals of the DP converts the operation log data of the HDMI chip, and the display performance data of the intelligent device.
Optionally, the receiving a debug data read instruction includes:
and receiving a debugging data reading instruction sent by the external storage device through the serial port of the intelligent device through the main control chip.
In a second aspect, the embodiment of the application provides a debug data acquisition device of a DP-to-HDMI chip, which is applied to an intelligent device, an electronic device outputs DP signals to a USB Type-C interface of the intelligent device through a USB Type-C interface, the intelligent device includes a main control chip and a DP-to-HDMI chip, the main control chip is connected with an IIC interface of the DP-to-HDMI chip, the DP-to-HDMI chip converts the DP signals into HDMI signals and sends the HDMI signals to the main control chip, a signal input end of the DP-to-HDMI chip is connected with a USB Type-C interface of the intelligent device, a signal output end of the DP-to-HDMI chip is connected with the main control chip, and the main control chip is connected with different operating systems through a channel switcher and decodes audio and video signals transmitted by the different operating systems and then transmits the audio and video signals to a screen and a speaker for audio and video playing. When firmware upgrade is performed on the DP-HDMI chip through the IIC bus, the main control chip writes data into the DP-HDMI chip, and the device comprises:
the instruction receiving module is used for receiving a debugging data reading instruction, and the debugging data reading instruction is used for reading the debugging data of the DP-HDMI chip;
the data request module is used for responding to the debugging data reading instruction and sending a debugging data acquisition request to the DP-HDMI chip through the main control chip; the debug data reading instruction comprises an IIC communication address of the DP-HDMI chip, directs the main control chip to establish IIC bus communication connection with the DP-HDMI chip, and sends a debug data acquisition request to the DP-HDMI chip through the main control chip by using an IIC bus communication protocol;
and the data acquisition module is used for receiving the debugging data sent by the DP-HDMI chip through the main control chip.
Optionally, the method further comprises:
and the data sending module is used for sending the debugging data to the external storage device through a USB interface or a serial port of the intelligent device.
In a third aspect, an embodiment of the present application provides an intelligent device, including:
the device comprises a main control chip and a DP-HDMI chip, wherein the main control chip is connected with an IIC interface of the DP-HDMI chip;
the main control chip comprises at least one memory and at least one processor;
the memory is used for storing one or more programs;
the one or more programs, when executed by the at least one processor, cause the at least one processor to implement the steps of the method for obtaining debug data of the DP-to-HDMI chip according to the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, where the computer program implements the steps of the method for obtaining debug data of a DP-to-HDMI chip according to the first aspect of the embodiments of the present application when the computer program is executed by a processor.
In the embodiment of the application, the main control chip of the intelligent device is connected with the IIC bus of the DP-to-HDMI chip, after receiving the debug data reading instruction, the main control chip sends a debug data acquisition request to the DP-to-HDMI chip, and receives the debug data sent by the DP-to-HDMI chip through the main control chip, so that when the DP-to-HDMI chip is debugged, the debug data is acquired from the DP-to-HDMI chip without additionally using a debug platelet provided by a chip manufacturer, the IIC bus connection between the original main control chip and the HDMI chip is not required to be removed, and the debug platelet and the DP-to-HDMI chip are not required to be welded, so that the debug data acquisition process of the DP-to-HDMI chip is more convenient, the debug cost is saved, and the debug time is shortened.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Drawings
FIG. 1 is a schematic diagram of a scenario in which a smart device is commissioned in a conventional technology provided in one exemplary embodiment;
fig. 2 is a schematic diagram of a scenario in which a DP to HDMI chip is debugged in the conventional technology provided in one exemplary embodiment;
FIG. 3 is a flow chart of a method for obtaining debug data of a DP-to-HDMI chip provided in an exemplary embodiment;
FIG. 4 is a flow chart of classified storage of debug data in a method for obtaining debug data of a DP-to-HDMI chip provided in an exemplary embodiment;
fig. 5 is a schematic structural diagram of a debug data acquisition device of a DP to HDMI chip provided in an exemplary embodiment;
fig. 6 is a schematic diagram of a smart device provided in an exemplary embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the embodiments of the present application, are within the scope of the embodiments of the present application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims. In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Fig. 1 is a schematic diagram of a debug data acquisition scenario of a DP to HDMI chip in an example of the prior art. In fig. 1, the electronic device 200 outputs a DP signal to the USB Type-C interface 140 of the smart device 100 through the USB Type-C interface 210. The electronic device 200 may be a computer, a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), an electronic book reader, a multimedia player, or the like, which is provided with an USB Type-C interface. The smart device 100 is an integrated device that performs manipulation and man-machine interaction operation on a display panel through a touch technology, and in an embodiment, the smart device 100 may be an intelligent interaction tablet. In other application scenarios, other smart devices are also possible, such as computers, cell phones, tablet computers, PDAs (Personal Digital Assistant, personal digital assistants), e-book readers, multimedia players, etc.
Since the main control chip (SoC) 110 of the smart device 100 cannot directly read the DP signal, a DP-to-HDMI chip 120 is further disposed in the smart device 100, and the DP-to-HDMI chip 120 is configured to convert the DP signal into an HDMI signal and then send the HDMI signal to the main control chip 110, so that the main control chip 110 sends the HDMI signal to the display screen of the smart device 100 for display. The signal input end of the DP-HDMI chip 120 is connected to the USB Type-C interface 140, and the signal output end is connected to the main control chip 110.
The main control chip 110, as a main control chip in the smart device 100, typically integrates an analog and digital decoder, a demodulator, a central processing unit and an image processing unit, and may also have a rich peripheral interface. The main control chip 110 may be connected to different operating systems through a channel switch, and decode the audio/video signals transmitted by the different operating systems and transmit the decoded audio/video signals to a screen and a speaker for audio/video playing.
In some examples, for the firmware upgrade requirement of the DP-HDMI chip 120, the master control chip 110 is further connected to an IIC interface of the DP-HDMI chip 120, where IIC (Inter-Integrated Circuit) is IICBus, and the IIC interface is a serial communication bus interface, and the master control chip 110 is used as a master device, and upgrades the firmware of the DP-HDMI chip 120 as a slave device through the IIC interface.
In some examples, the smart device 100 further includes a power chip 130 for powering the external USB Type-C device interface through the USB Type-C interface 140.
When the intelligent device 100 is debugged, the serial port 150 of the intelligent device 100 needs to be connected to the debugging computer 300, and the serial port terminal program is run in the debugging computer 300, so that serial port information can be received or output. In the process of debugging the intelligent device 100, the debugging computer 300 records the running state of the main control chip 110 in a large amount.
As shown in fig. 2, after a fault problem is found in the debugging process, a new debug data acquisition link from DP to HDMI chip 120 is required, and the IIC interface of DP to HDMI chip 120 and the debug platelet 400 provided by the chip manufacturer are connected through a hardware welding wire, and a special computer 500 is further required to connect with the debug platelet 400. After the debug data acquisition link of the debug platelet 400 is built, the fault problems found in the debug process are reappeared, and when the fault problems are reappeared, the problems are analyzed by analyzing log information grabbed by the debug platelet 400, so that the problems are analyzed, and finally, the problems are solved. However, in this process of obtaining debug data, the connection line of the debug small board 400 and the IIC interface of the DP-to-HDMI chip 120 need to be soldered again, and the IIC interface is often already connected to the main control chip 110, so that this process of obtaining debug data is troublesome, and the obtaining cost is high, and the obtaining time is long.
In order to solve this technical problem, the embodiment of the present application provides a method for obtaining debug data of a DP-to-HDMI chip, which is applied to the above-mentioned smart device 100, where the smart device 100 includes a main control chip and a DP-to-HDMI chip, and the main control chip is connected to an IIC interface of the DP-to-HDMI chip, as shown in fig. 3, in an exemplary embodiment, the method includes the following steps:
s301: receiving a debug data reading instruction, wherein the debug data reading instruction is used for reading the debug data of the DP-HDMI chip;
the debug data reading instruction is used for driving the main control chip to read debug data from the HDMI chip, and the debug data reading instruction may be set to be automatically triggered when the intelligent device detects a debug fault, or may be triggered by an external device, for example, the main control chip receives a debug data reading instruction sent by an external storage device through a serial port of the intelligent device, in fig. 1, may receive a debug data obtaining instruction sent by the debug computer 300, and this implementation may input a command, for example, a saveddlog command, on a serial port terminal program of the debug computer 300, where the command is input to the main control chip through a serial port, so that the main control chip establishes communication with the DP to HDMI chip. In other examples, such a debug data read command may also be triggered by a user setting the smart device, such as adding an option to a menu button of the smart device 100, triggering the option to send a debug data read command to the smart device, and so on.
The debugging data are data generated by the DP-HDMI chip in operation, and when a fault is found in the debugging process of the intelligent device, the fault may be caused by abnormal operation of the DP-HDMI chip or abnormal audio/video signals processed by the DP-HDMI chip. Therefore, in this embodiment of the present application, the debug data may include multiple data object types, for example, may be running state data of the DP-to-HDMI chip, or may also be display parameters of an audio/video signal processed by the DP-to-HDMI chip, display performance data of the smart device, and so on.
S302: and responding to the debugging data reading instruction, and sending a debugging data acquisition request to the DP-HDMI chip through the main control chip.
S303: and receiving the debugging data sent by the DP-HDMI chip through the main control chip.
The main control chip is connected with an IIC bus communication interface of the DP-HDMI chip, the DP-HDMI chip is a main device of the IIC bus communication protocol, the DP-HDMI chip is used as a slave device of the IIC bus communication protocol, each device on the IIC bus corresponds to a unique address, and data transmission between the main device and the slave device is established on the basis of the address. The transmission of data on the IIC bus must be started with a start signal and stopped with an end signal. The start and end signals are generated by the master device.
In the existing connection, when firmware upgrade is performed on the DP-to-HDMI chip through the IIC bus, the main control chip may write data into the DP-to-HDMI chip. In the method of the embodiment of the present application, the main control chip reads data from the DP to HDMI chip.
In response to the debug data reading instruction, the main control chip first establishes communication connection with the DP-to-HDMI chip, and in one example, the debug data reading instruction further includes an IIC communication address of the DP-to-HDMI chip, so as to direct the main control chip to establish IIC bus communication connection with the DP-to-HDMI chip, and send a debug data acquisition request to the DP-to-HDMI chip through the main control chip in an IIC bus communication protocol.
In a specific implementation, the main control chip sends a START signal, and then the DP-HDMI chip STARTs to monitor the IIC bus in preparation for receiving data. And then, the main control chip sends a data frame of 7-bit equipment address plus one-bit read-write operation, after the DP-HDMI chip receives the data frame, the DP-HDMI chip compares whether the address is a target equipment or not, and if so, a response signal is sent to the main control chip, so that the IIC bus communication connection with the main control chip is established. After the IIC bus communication connection is established, the main control chip sends a debugging data acquisition request to an IIC interface of the DP-HDMI chip, and the DP-HDMI chip sends debugging data corresponding to the request to the main control core making according to the request until the main control chip generates a STOP signal, so that the IIC bus is released to finish communication.
In the embodiment of the application, the main control chip of the intelligent device is connected with the IIC bus of the DP-to-HDMI chip, after receiving the debug data reading instruction, the main control chip sends a debug data acquisition request to the DP-to-HDMI chip, and receives the debug data sent by the DP-to-HDMI chip through the main control chip, so that when the DP-to-HDMI chip is debugged, the debug data is acquired from the DP-to-HDMI chip without additionally using a debug platelet provided by a chip manufacturer, the IIC bus connection between the original main control chip and the HDMI chip is not required to be removed, and the debug platelet and the DP-to-HDMI chip are not required to be welded, so that the debug data acquisition process of the DP-to-HDMI chip is more convenient, the debug cost is saved, and the debug time is shortened.
In one embodiment, the main control chip may send the debug data to the external storage device through the serial port after receiving the debug data, for example, in the scenario of fig. 1, the main control chip directly sends the debug data to the debug computer 300 through the serial port connection after receiving the debug data, so that when a developer is in debugging, only needs to send a debug data reading instruction to the intelligent device, and the debug data of the DP-to-HDMI chip can be directly obtained from the debug computer.
In other examples, the intelligent device may send the debug data to an external storage device through a USB interface, that is, a developer may connect the intelligent device through the USB storage device, so as to obtain the debug data.
In one embodiment, after the intelligent device receives the debug data sent by the DP-to-HDMI chip through the master control chip, the intelligent device further stores the debug data in a register of the master control chip.
Since the debug data may include multiple data object types, in a preferred embodiment, as shown in fig. 4, before the debug data is sent to the external storage device through the USB interface or the serial port of the smart device, the method further includes:
s401: identifying an object type of the debug data;
s402: and according to the object type of the debugging data, storing the debugging data in a register of the main control chip in a classified manner.
The main control chip may identify the object type of the debug data by identifying the data type, the data format, etc. of the debug data, and in one example, the main control chip may also obtain the object type of the debug data obtained by the request according to the data type corresponding to the debug data obtaining request.
The main control chip can store the debug data in different files in a register of the main control chip according to the object type of the debug data, so that a developer can accurately acquire the wanted debug data.
In one embodiment, the object type of the debug data includes at least one of:
and the DP converts the operation log data of the HDMI chip, the display parameters of the input signals and the display parameters of the output signals of the DP converts the operation log data of the HDMI chip, and the display performance data of the intelligent device.
The running log data is log, the log refers to the record of events or operations occurring in the DP-HDMI chip, and the log can be queried and retrieved. The DP to HDMI chip may generate a log (including an error log and an operation log) record during operation, where the log records information about hardware, software and system problems, and in some examples, the log records descriptions of related operations such as date, time and actions. When debugging fails, engineers can check the reasons of the failure and effectively solve the problems by grabbing the log of the DP-HDMI chip and checking and analyzing the log.
When the reason of the fault is checked, the display parameters of the input signal and the output signal of the DP-to-HDMI chip can be checked, so in another embodiment, the debug data further includes the display parameters of the input signal and the display parameters of the output signal of the DP-to-HDMI chip.
The display parameters indicate how planar video data is to be displayed in the display device, e.g., the display parameters may include resolution, color space, gamma values, etc.
If the display parameters of the input PD signal are abnormal, it indicates that the reason for the occurrence of the fault is the signal source, and if the display parameters of the output HDMI signal are abnormal, it indicates that the switching process of the DP to HDMI chip is faulty.
In practical applications, the DP-to-HDMI chip typically stores display parameters in internal registers, for example, some registers may indicate the resolution of the input signal, the video color space of the input signal, some registers indicate the resolution of the output signal, and the video color space of the output signal, so in one example, when obtaining the display parameters of the input signal and the output signal of the DP-to-HDMI chip, the debug data obtaining instruction further includes a register address in the DP-to-HDMI chip, so that the display parameters can be obtained by directly obtaining the data in the register address.
In other examples, the main control chip may also obtain the display parameter from the DP to HDMI chip in other existing manners.
In the beginning of the electronic device 200 and the smart device 100 establishing a DP communication connection, the electronic device 200 first obtains display performance data of the smart device 100 through the DP-to-HDMI chip 120, where the display performance data includes extended display identification data (Extended Display Identification Data, EDID) and display port configuration data (DisplayPort Configuration Data, DPCD).
The extended display identification data is a VESA standard data format for indicating HDMI display performance of the smart device, and includes parameters related to the monitor and its performance, including vendor information, maximum image size, color setting, vendor preset, limitation of frequency range, and character strings of display name and serial number, etc.
After being connected to the smart device 100, one of the operations to be first performed by the electronic device 200 is to read the extended display identification data of the smart device 100 from the DP-to-HDMI chip 120, which is the basis of the data format when selecting the format of the audio-video data to be transmitted to the smart device 100.
The extended display identification data is generally stored in the main control chip 110 of the smart device 100, and after the DP-HDMI chip 120 reads the extended display identification data from the main control chip 110, the extended display identification data is cached in the memory of the DP-HDMI chip 120 for the external device to read.
The display port configuration data is used for indicating the DP display performance of the intelligent device, and is stored in a register of the DP-HDMI chip, and when the DP-HDMI chip is running, the display port configuration data is cached in the memory of the DP-HDMI chip 120, so that the external device can read the display port configuration data.
If the display performance data obtained by the electronic device 200 at the beginning of the DP communication connection with the smart device 100 is wrong, the display parameters of the audio/video data transmitted by the electronic device will be wrong, so in one example, the debug data further includes the display performance data of the smart device, and the main control chip reads the display performance data from the memory of the DP-HDMI chip.
In this embodiment of the present application, the debug data may be any one of log data, display parameters of the input signal and the output signal, and extended display identification data in the above embodiment, or may be a combination of any two of them, or may be debug data including all of them.
Corresponding to the foregoing method for obtaining debug data from a DP to HDMI chip, the embodiment of the present application further provides a device for obtaining debug data from a DP to HDMI chip, which is applied to an intelligent device, where the intelligent device includes a main control chip and a DP to HDMI chip, the main control chip is connected to an IIC interface of the DP to HDMI chip, and the intelligent device may be any intelligent terminal, for example, may be specifically an intelligent interactive tablet, a computer, a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, a personal digital assistant), an electronic book reader, a multimedia player, or the like. According to the device for acquiring the debug data of the DP-to-HDMI chip, the main control chip is utilized to be connected with the IIC bus of the DP-to-HDMI chip, after a debug data reading instruction is received, the main control chip is used for sending a debug data acquisition request to the DP-to-HDMI chip, and the main control chip is used for receiving the debug data sent by the DP-to-HDMI chip, so that when the DP-to-HDMI chip is debugged, the debug data is acquired from the DP-to-HDMI chip without additionally using a debug small plate provided by a chip manufacturer, the IIC bus connection between the original main control chip and the HDMI chip is not required to be removed, and the debug small plate and the DP-to-HDMI chip are not required to be welded, so that the process for acquiring the debug data of the DP-to-HDMI chip is more convenient, the debug cost is saved, and the debug time is shortened.
Fig. 5 is a schematic structural diagram of a device for obtaining debug data of a DP-to-HDMI chip according to an embodiment of the present application, as shown in fig. 5, the device 500 for obtaining debug data of a DP-to-HDMI chip includes:
the instruction receiving module 501 is configured to receive a debug data reading instruction, where the debug data reading instruction is used to read debug data of the DP-HDMI chip;
the data request module 502 is configured to respond to the debug data reading instruction, and send a debug data acquisition request to the DP-HDMI chip through the main control chip;
the data obtaining module 503 is configured to receive, by using the main control chip, the debug data sent by the DP to HDMI chip.
In an exemplary embodiment, the debug data acquisition device 500 of the DP-to-HDMI chip further includes:
and the data sending module is used for sending the debugging data to the external storage device through a USB interface or a serial port of the intelligent device.
In an exemplary embodiment, the debug data acquisition device 500 of the DP-to-HDMI chip further includes:
the type identification module is used for identifying the object type of the debugging data before the debugging data is sent to the external storage device through the USB interface or the serial port of the intelligent device;
and the classification storage module is used for classifying and storing the debugging data in a register of the main control chip according to the object type of the debugging data.
In an exemplary embodiment, the object type of the debug data includes at least one of:
and the DP converts the operation log data of the HDMI chip, the display parameters of the input signals and the display parameters of the output signals of the DP converts the operation log data of the HDMI chip, and the display performance data of the intelligent device.
In an exemplary embodiment, the instruction receiving module 501 includes:
the instruction receiving unit is used for receiving a debugging data reading instruction sent by the external storage device through the serial port of the intelligent device through the main control chip.
In one exemplary embodiment, the data request module 502 includes:
and the data request unit is used for sending a debugging data acquisition request to the DP-HDMI chip through the main control chip by using an IIC bus communication protocol.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
Corresponding to the foregoing method for obtaining debug data from a DP to HDMI chip, the embodiments of the present application further provide an intelligent device, which may be any intelligent terminal, for example, may be specifically an intelligent interactive tablet, a computer, a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, a personal digital assistant), an electronic book reader, a multimedia player, or the like.
As shown in fig. 6, fig. 6 is a block diagram illustrating a configuration of a smart device according to an exemplary embodiment of the present application.
The intelligent device 600 includes a main control chip 610 and a DP-to-HDMI chip 620, where the main control chip is connected to an IIC interface of the DP-to-HDMI chip; the main control chip comprises: a processor 611 and a memory 612. The number of processors 611 in the main control chip may be one or more, and one processor 611 is taken as an example in fig. 6. The number of memories 612 in the main control chip may be one or more, and one memory 612 is exemplified in fig. 6.
The memory 612 is used as a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a program of the method for obtaining debug data of the DP-to-HDMI chip according to any embodiment of the present application, and a program instruction/module (e.g. a data obtaining instruction sending module and a debug data obtaining module of the DP-to-HDMI chip) corresponding to the method for obtaining debug data of the DP-to-HDMI chip according to any embodiment of the present application. The memory 612 may primarily include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the device, etc. In addition, memory 612 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 612 may further include memory located remotely from processor 611, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 611 executes various functional applications and data processing of the device by executing software programs, instructions and modules stored in the memory 612, that is, implements the method for obtaining debug data of the DP-to-HDMI chip described in any of the above embodiments.
Specifically, in one exemplary embodiment, when the processor 611 executes one or more programs stored in the memory 612, the following operations are specifically implemented:
receiving a debug data reading instruction, wherein the debug data reading instruction is used for reading the debug data of the DP-HDMI chip;
responding to the debug data reading instruction, and sending a debug data acquisition request to the DP-HDMI chip through the main control chip;
and receiving the debugging data sent by the DP-HDMI chip through the main control chip.
On the basis of the foregoing embodiment, after the obtaining, by the main control chip, the debug data sent by the DP-to-HDMI chip, the method further includes:
and sending the debugging data to an external storage device through a USB interface or a serial port of the intelligent device.
On the basis of the foregoing embodiment, before the debug data is sent to the external storage device through the USB interface or the serial port of the smart device, the method further includes:
identifying an object type of the debug data;
and according to the object type of the debugging data, storing the debugging data in a register of the main control chip in a classified manner.
On the basis of the above embodiment, the object type of the debug data includes at least one of:
and the DP converts the operation log data of the HDMI chip, the display parameters of the input signals and the display parameters of the output signals of the DP converts the operation log data of the HDMI chip, and the display performance data of the intelligent device.
On the basis of the above embodiment, the receiving a debug data read instruction includes:
and receiving a debugging data reading instruction sent by the external storage device through the serial port of the intelligent device through the main control chip.
On the basis of the above embodiment, the sending, by the main control chip, a debug data acquisition request to the DP-to-HDMI chip includes:
and sending a debugging data acquisition request to the DP-HDMI chip through the main control chip by using an IIC bus communication protocol.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for obtaining debug data of the DP-HDMI chip described in any one of the above embodiments.
The present invention may take the form of a computer program product embodied on one or more storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-readable storage media include both non-transitory and non-transitory, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device.
It is to be understood that the embodiments of the present application are not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of embodiments of the present application is limited only by the appended claims.
The above examples merely represent a few implementations of the examples of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the embodiments of the present application, which are all within the scope of the embodiments of the present application.

Claims (9)

1. The method is characterized in that the method is applied to intelligent equipment, the electronic equipment outputs DP signals to an USB Type-C interface of the intelligent equipment through the USB Type-C interface, the intelligent equipment comprises a main control chip and a DP-HDMI chip, the main control chip is connected with an IIC interface of the DP-HDMI chip, the DP-HDMI chip converts the DP signals into HDMI signals and then sends the HDMI signals to the main control chip, a signal input end of the DP-HDMI chip is connected with the USB Type-C interface of the intelligent equipment, a signal output end of the DP-HDMI chip is connected with the main control chip, and the main control chip is connected with different operating systems through a channel switch and then transmits audio and video signals transmitted by different operating systems to a screen and a loudspeaker for audio and video playing; when firmware upgrade is performed on the DP-HDMI chip through the IIC bus, the main control chip writes data into the DP-HDMI chip, and the method comprises the following steps:
receiving a debug data reading instruction, wherein the debug data reading instruction is used for reading the debug data of the DP-HDMI chip;
responding to the debug data reading instruction, and sending a debug data acquisition request to the DP-HDMI chip through the main control chip; the debug data reading instruction comprises an IIC communication address of the DP-HDMI chip, directs the main control chip to establish IIC bus communication connection with the DP-HDMI chip, and sends a debug data acquisition request to the DP-HDMI chip through the main control chip by using an IIC bus communication protocol;
and receiving the debugging data sent by the DP-HDMI chip through the main control chip.
2. The method for obtaining the debug data of the DP to HDMI chip according to claim 1, wherein after obtaining the debug data sent by the DP to HDMI chip by the main control chip, further comprises:
and sending the debugging data to an external storage device through a USB interface or a serial port of the intelligent device.
3. The method for obtaining debug data of a DP to HDMI chip according to claim 2, wherein before sending the debug data to an external storage device through a USB interface or a serial port of the smart device, further comprising:
identifying an object type of the debug data;
and according to the object type of the debugging data, storing the debugging data in a register of the main control chip in a classified manner.
4. The method for obtaining debug data of a DP-to-HDMI chip according to claim 3, wherein:
the object type of the debug data includes at least one of:
and the DP converts the operation log data of the HDMI chip, the display parameters of the input signals and the display parameters of the output signals of the DP converts the operation log data of the HDMI chip, and the display performance data of the intelligent device.
5. The method for obtaining debug data of a DP-HDMI chip according to claim 1, wherein said receiving a debug data read command comprises:
and receiving a debugging data reading instruction sent by the external storage device through the serial port of the intelligent device through the main control chip.
6. The device is characterized in that the device is applied to intelligent equipment, the electronic equipment outputs DP signals to an USB Type-C interface of the intelligent equipment through the USB Type-C interface, the intelligent equipment comprises a main control chip and a DP-HDMI chip, the main control chip is connected with an IIC interface of the DP-HDMI chip, the DP-HDMI chip converts the DP signals into HDMI signals and then sends the HDMI signals to the main control chip, a signal input end of the DP-HDMI chip is connected with the USB Type-C interface of the intelligent equipment, a signal output end of the DP-HDMI chip is connected with the main control chip, and the main control chip is connected with different operating systems through a channel switch and then decodes audio and video signals transmitted by different operating systems and transmits the audio and video signals to a screen and a loudspeaker for audio and video playing; when firmware upgrade is performed on the DP-HDMI chip through the IIC bus, the main control chip writes data into the DP-HDMI chip, and the device comprises:
the instruction receiving module is used for receiving a debugging data reading instruction, and the debugging data reading instruction is used for reading the debugging data of the DP-HDMI chip;
the data request module is used for responding to the debugging data reading instruction and sending a debugging data acquisition request to the DP-HDMI chip through the main control chip; the debug data reading instruction comprises an IIC communication address of the DP-HDMI chip, directs the main control chip to establish IIC bus communication connection with the DP-HDMI chip, and sends a debug data acquisition request to the DP-HDMI chip through the main control chip by using an IIC bus communication protocol;
and the data acquisition module is used for receiving the debugging data sent by the DP-HDMI chip through the main control chip.
7. The apparatus for obtaining debug data of a DP-to-HDMI chip of claim 6, further comprising:
and the data sending module is used for sending the debugging data to the external storage device through a USB interface or a serial port of the intelligent device.
8. Intelligent device, electronic equipment exports DP signal to intelligent device's USBType-C interface through USBType-C interface, its characterized in that includes:
the device comprises a main control chip and a DP-HDMI chip, wherein the main control chip is connected with an IIC interface of the DP-HDMI chip; the DP-HDMI chip converts a DP signal into an HDMI signal, the HDMI signal is sent to the main control chip, the signal input end of the DP-HDMI chip is connected with the USB Type-C interface of the intelligent device, the signal output end of the DP-HDMI chip is connected with the main control chip, the main control chip is connected with different operating systems through a channel change-over switch, and audio and video signals transmitted by the different operating systems are decoded and then are transmitted to a screen and a loudspeaker for audio and video playing;
the main control chip comprises at least one memory and at least one processor;
the memory is used for storing one or more programs;
when the one or more programs are executed by the at least one processor, the at least one processor is caused to implement the steps of the method for obtaining debug data of the DP-to-HDMI chip as set forth in any one of claims 1 to 5.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for obtaining debug data of a DP-to-HDMI chip according to any one of claims 1 to 5.
CN202010335192.7A 2020-04-24 2020-04-24 Method and device for acquiring debugging data of DP-HDMI chip and intelligent device Active CN111651308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010335192.7A CN111651308B (en) 2020-04-24 2020-04-24 Method and device for acquiring debugging data of DP-HDMI chip and intelligent device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010335192.7A CN111651308B (en) 2020-04-24 2020-04-24 Method and device for acquiring debugging data of DP-HDMI chip and intelligent device

Publications (2)

Publication Number Publication Date
CN111651308A CN111651308A (en) 2020-09-11
CN111651308B true CN111651308B (en) 2024-01-30

Family

ID=72346516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010335192.7A Active CN111651308B (en) 2020-04-24 2020-04-24 Method and device for acquiring debugging data of DP-HDMI chip and intelligent device

Country Status (1)

Country Link
CN (1) CN111651308B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770070B (en) * 2021-01-07 2023-03-21 京东方科技集团股份有限公司 Control method and device for double-master-control-chip display equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970665A (en) * 2014-05-28 2014-08-06 广州视源电子科技股份有限公司 FPGA (field programmable gate array) system for simulating SPI (serial peripheral interface) FLASH and debugging method
CN104239175A (en) * 2014-09-05 2014-12-24 硅谷数模半导体(北京)有限公司 Debugging system, debugging method and debugging device for chip
CN105786576A (en) * 2016-03-17 2016-07-20 硅谷数模半导体(北京)有限公司 Chip debugging method and device based on serial port
CN106911983A (en) * 2017-01-10 2017-06-30 硅谷数模半导体(北京)有限公司 The control method and system of audio frequency and video protocol conversion chip
CN108647131A (en) * 2018-04-08 2018-10-12 广州视源电子科技股份有限公司 The output system of running log

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9632895B2 (en) * 2012-06-18 2017-04-25 Intel Corporation Apparatus, system and method for a common unified debug architecture for integrated circuits and SoCs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970665A (en) * 2014-05-28 2014-08-06 广州视源电子科技股份有限公司 FPGA (field programmable gate array) system for simulating SPI (serial peripheral interface) FLASH and debugging method
CN104239175A (en) * 2014-09-05 2014-12-24 硅谷数模半导体(北京)有限公司 Debugging system, debugging method and debugging device for chip
CN105786576A (en) * 2016-03-17 2016-07-20 硅谷数模半导体(北京)有限公司 Chip debugging method and device based on serial port
CN106911983A (en) * 2017-01-10 2017-06-30 硅谷数模半导体(北京)有限公司 The control method and system of audio frequency and video protocol conversion chip
CN108647131A (en) * 2018-04-08 2018-10-12 广州视源电子科技股份有限公司 The output system of running log

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘畅.HDMI芯片的测试.电子工业专用设备.2008,(第03期),全文. *

Also Published As

Publication number Publication date
CN111651308A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
TWI510913B (en) Testing device and testing method thereof
US11074157B2 (en) Splicing screen debugging method, splicing screen and splicing wall
WO2019227641A1 (en) Application testing method, apparatus, terminal device and medium
CN110837474A (en) Script recording method, device, terminal and storage medium
US9229836B2 (en) Coexisting standard and proprietary connection usage
US20140292816A1 (en) Computer program product, information processing method, and information processing apparatus
WO2022222293A1 (en) Storage device test method and apparatus, television, and storage medium
CN111651308B (en) Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
CN109246423B (en) VR equipment and VR equipment detection method
US20160267624A1 (en) Information terminal and image display system
CN113160726B (en) Power-on self-detection method and power-on self-detection device
US11354214B2 (en) Judgment method for hardware compatibility
US20210042204A1 (en) Testing apparatus, testing system, and non-transitory tangible machine-readable medium thereof for testing touch mobile devices
CN114443442B (en) Log storage method and electronic equipment
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
CN116302766A (en) Fault injection testing method and device, electronic equipment and readable storage medium
JP5116606B2 (en) Software analysis system
CN114461479A (en) Method and device for debugging multimedia processing chip, storage medium and electronic equipment
CN113032197A (en) Equipment fault detection method and equipment
CN110928766A (en) Application software testing method, device, equipment and computer readable storage medium
WO2021249308A1 (en) Data acquiring method, device, terminal, and storage medium
CN114840460B (en) Hot plug processing method, storage medium, electronic equipment and processing system
CN111930418B (en) Diagnostic device function configuration method, diagnostic device, and storage medium
CN112965751B (en) Main control board card for frame type equipment
CN114741351B (en) Multi-core chip and computer equipment

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