CN108197054B - USB Type-C chip, and debugging method and system thereof - Google Patents

USB Type-C chip, and debugging method and system thereof Download PDF

Info

Publication number
CN108197054B
CN108197054B CN201810068198.5A CN201810068198A CN108197054B CN 108197054 B CN108197054 B CN 108197054B CN 201810068198 A CN201810068198 A CN 201810068198A CN 108197054 B CN108197054 B CN 108197054B
Authority
CN
China
Prior art keywords
chip
debugging
information
debugged
usb type
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
CN201810068198.5A
Other languages
Chinese (zh)
Other versions
CN108197054A (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.)
Analogix China Semiconductor Inc
Analogix International LLC
Original Assignee
Analogix China Semiconductor Inc
Analogix International LLC
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 Analogix China Semiconductor Inc, Analogix International LLC filed Critical Analogix China Semiconductor Inc
Priority to CN201810068198.5A priority Critical patent/CN108197054B/en
Publication of CN108197054A publication Critical patent/CN108197054A/en
Application granted granted Critical
Publication of CN108197054B publication Critical patent/CN108197054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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/221Detection 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 buses, lines or interfaces, e.g. stuck-at or open line faults
    • 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/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • 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)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a USB Type-C chip, and a debugging method and a debugging system thereof. Wherein, the method comprises the following steps: the method comprises the steps that a chip to be debugged receives debugging information through a CC signal line of a configuration channel, wherein the chip to be debugged is a USB Type-C chip; and debugging the chip to be debugged according to the debugging information. The invention solves the technical problem that the debugging of the USB Type-C chip is complicated because auxiliary equipment needs to be added to the existing USB Type-C chip.

Description

USB Type-C chip, and debugging method and system thereof
Technical Field
The invention relates to the technical field of electronics, in particular to a USB Type-C chip, and a debugging method and a debugging system thereof.
Background
The scheme of the existing debugging USB Type-C chip is mainly a universal communication interface through USB Type-C, such as I2C, SPI, etc. to realize communication debugging between chips, but in the research and development stage or product stage, these communication interfaces have usually been connected more chips, need to come out corresponding interface flying leads from the PCB board and connect to debugging equipment to increase the debugging difficulty degree and the uncertain factor of process.
In addition, the existing debugging scheme needs to be externally connected with an MCU or EC or other main control units, and the cost of debugging equipment is further increased.
Aiming at the problem that the debugging of the USB Type-C chip is complex due to the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a USB Type-C chip, and a debugging method and a debugging system thereof, which are used for at least solving the technical problem that the debugging of the USB Type-C chip is complicated because auxiliary equipment needs to be added to the existing USB Type-C chip.
According to an aspect of the embodiment of the invention, a USB Type-C chip debugging method is provided, which includes: a chip to be debugged receives debugging information through a CC signal line of a configuration channel, wherein the chip to be debugged is the USB Type-C chip; and debugging the chip to be debugged according to the debugging information.
Further, the debugging information is encrypted information, and before the chip to be debugged is debugged according to the debugging information, the method further includes: and decrypting the debugging information.
Further, after the chip to be debugged is debugged according to the debugging information, the method further comprises: the chip to be debugged generates feedback information after debugging according to the debugging information; and the chip to be debugged reports the feedback information to the sending object of the debugging information through the CC signal line of the configuration channel.
Further, before reporting the feedback information to the sending object of the debug information through the CC signal line of the configuration channel, the method further includes: and encrypting the feedback information.
According to another aspect of the embodiment of the present invention, there is further provided a USB Type-C chip debugging method including: the debugging chip sends debugging information to a chip to be debugged through a CC signal line of a configuration channel, wherein the debugging chip and the chip to be debugged are USB Type-C chips; and the debugging chip receives feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, wherein the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
Further, before the debugging chip sends the debugging information to the chip to be debugged through the configuration channel CC signal line, the method further includes: and encrypting the debugging information.
Further, the feedback information is encrypted information, and after the debugging chip receives the feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, the method further includes: and decrypting the feedback information.
According to another aspect of the embodiment of the invention, the USB Type-C chip is a chip to be debugged, and includes modules for implementing the following functions: the receiving module is used for receiving debugging information through a CC signal line of a configuration channel; and the debugging module is used for debugging according to the debugging information.
Further, the USB Type-C chip further includes modules for implementing the following functions: the generating module is used for generating feedback information after debugging is carried out according to the debugging information; and the reporting module is used for reporting the feedback information to the sending object of the debugging information through the CC signal line of the configuration channel.
According to another aspect of the embodiment of the invention, a USB Type-C chip is further provided, where the USB Type-C chip is a debug chip and includes modules for implementing the following functions: the debugging device comprises a sending module, a debugging module and a debugging module, wherein the sending module is used for sending debugging information to a chip to be debugged through a CC signal line of a configuration channel, and the chip to be debugged is a USB Type-C chip; and the feedback module is used for receiving feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, wherein the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
According to another aspect of the embodiments of the present invention, there is also provided a USB Type-C chip, including: a first module, configured to receive debug information through a configuration channel CC signal line when the USB Type-C chip is a chip to be debugged, and report feedback information to a sending object of the debug information through the configuration channel CC signal line; and/or a second module, configured to send, when the USB Type-C chip is a debug chip, debug information to a chip to be debugged through a configuration channel CC signal line, and receive, through the configuration channel CC signal line, feedback information reported by the chip to be debugged, where the feedback information is information generated after the chip to be debugged is debugged according to the debug information.
According to another aspect of the embodiment of the present invention, there is also provided an electrical appliance, including any one of the USB Type-C chips described above.
According to another aspect of the embodiments of the present invention, there is also provided a USB Type-C chip debugging system, including: the debugging chip is used for receiving debugging information sent by the debugging chip through a configuration channel CC signal wire and reporting feedback information to the debugging chip through the configuration channel CC signal wire; the debugging chip is configured to send the debugging information to the chip to be debugged through a configuration channel CC signal line, and receive feedback information reported by the chip to be debugged through the configuration channel CC signal line, where the chip to be debugged and the debugging chip are USB Type-C chips, and the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and the program executes the USB Type-C chip debugging method described in any one of the foregoing embodiments when running.
According to another aspect of the embodiments of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes the USB Type-C chip debugging method described in any one of the foregoing embodiments when running.
In the embodiment of the invention, the chip to be debugged can be a USB Type-C chip, the CC signal line of the configuration channel is adopted to receive debugging information, then the chip to be debugged responds to the debugging information to be debugged, and further, the transmission of the debugging information can be completed only by using the transmission of the CC signal line without arranging auxiliary equipment such as flying lines and the like aiming at the USB Type-C chip in the debugging process, so that the aim of debugging the USB Type-C chip can be completed without arranging the auxiliary equipment such as flying lines and the like is fulfilled, the technical effect of simplifying equipment required by the USB Type-C chip is realized, and the technical problem of complicated debugging of the USB Type-C chip caused by the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a first flowchart of a method for debugging a USB Type-C chip according to an embodiment of the present invention;
FIG. 2 is a flowchart II of a USB Type-C chip debugging method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a chip debugging method based on CC signal lines according to an embodiment of the present invention;
FIG. 4 is a first schematic diagram of a USB Type-C chip according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram of a USB Type-C chip according to an embodiment of the present invention;
FIG. 6 is a third schematic diagram of a USB Type-C chip according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a USB Type-C chip debugging system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present invention are applicable to the following explanations:
CC: the USB device is called a Configuration Channel, and the Chinese name is a Configuration Channel, and the USB device is used for detecting USB connection, checking positive and negative checking, establishing and managing connection between USB equipment data and VBUS, and the like.
Type-C: the USB interface is a connecting interface of the USB interface, part of the front and back surfaces can be inserted, and the USB interface supports the functions of charging, data transmission, display output and the like of the USB standard as other interfaces.
In accordance with an embodiment of the present invention, there is provided an USB Type-C chip debug method embodiment, it is noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a first flowchart of a USB Type-C chip debugging method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, a chip to be debugged receives debugging information through a CC signal line of a configuration channel, wherein the chip to be debugged is a USB Type-C chip;
and step S104, debugging the chip to be debugged according to the debugging information.
Through the steps, the chip to be debugged can be a USB Type-C chip, the CC signal line of the configuration channel is adopted to receive debugging information, then the chip to be debugged responds to the debugging information to debug, and then the transmission of the debugging information can be completed only by using the transmission of the CC signal line, and auxiliary equipment such as flying lines does not need to be arranged aiming at the USB Type-C chip in the debugging process, so that the aim of debugging the USB Type-C chip can be completed without arranging the auxiliary equipment such as flying lines is achieved, the technical effect of simplifying the equipment required by the debugging of the USB Type-C chip is realized, and the technical problem that the debugging of the USB Type-C chip is complicated because the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
In the scheme provided in step S102, the debugging information may be instruction information for debugging the USB Type-C chip, instruction information for debugging software, instruction information for upgrading, or instruction information for acquiring internal information of the chip, and the USB Type-C chip may respond to the debugging information, process specific content of the debugging information, and complete an instruction corresponding to the debugging information.
For example, the debugging of the chip may be completed when the debugging information is instruction information for debugging the chip; the debugging of the chip software can be completed under the condition that the debugging information is instruction information for debugging the software in the chip; the upgrading process can be completed under the condition that the debugging information is instruction information for upgrading; and the feedback of the internal information of the chip can be completed under the condition that the debugging information is the instruction information for acquiring the internal information of the chip.
Optionally, the debugging information may be information sent by a debugging terminal or a debugging chip, where the debugging chip may also be a USB Type-C chip, and the debugging chip and the chip to be debugged transmit the debugging information through a CC signal line configured as a channel.
Optionally, the chip to be debugged may be a USB Type-C chip that needs to be debugged or upgraded.
In order to ensure the security of information transmission, the debugging information may be encrypted and transmitted, so that the debugging information received by the chip to be debugged is encrypted, and in order to enable the chip to be debugged to respond to the debugging information, the received debugging information needs to be decrypted.
As an optional embodiment, the debugging information is encryption information, and before the chip to be debugged is debugged according to the debugging information, the embodiment may further include: the debug information is decrypted.
The debugging information is transmitted after being encrypted, so that the accuracy of the debugging information can be ensured, and then the received debugging information is decrypted after the chip to be debugged receives the debugging information, so that the debugging information which can be used by the chip to be debugged can be obtained.
As an optional embodiment, after the chip to be debugged is debugged according to the debugging information, the embodiment may further include: the chip to be debugged generates feedback information after debugging according to the debugging information; and reporting the feedback information to a transmitting object of the debugging information by the chip to be debugged through the CC signal line of the configuration channel.
After receiving the debugging information, the chip to be debugged can respond to the debugging information, generate feedback information after responding to the debugging information, and then report the feedback information to the sending object of the debugging information through the CC signal line of the configuration channel, so that the sending object of the debugging information can determine the response condition of the chip to be debugged to the debugging information through the feedback information.
Alternatively, the issuing object of the debug information may be a debug chip.
Before the chip to be debugged uploads the feedback information to the sending object of the debugging information, the feedback information can be encrypted in order to ensure the safety of information transmission, and then the encrypted feedback information is transmitted.
As an optional embodiment, before reporting the feedback information to the sending object of the debug information through the CC signal line, the embodiment may further include: the feedback information is encrypted.
By encrypting the feedback information, the feedback information can be safely and accurately transmitted between the signal to be debugged and the sending object of the debugging information.
Fig. 2 is a flowchart ii of a USB Type-C chip debugging method according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S202, a debugging chip sends debugging information to a chip to be debugged through a CC signal line of a configuration channel, wherein the debugging chip and the chip to be debugged are USB Type-C chips;
step S204, the debugging chip receives feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, wherein the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
Through the steps, the debugging chip and the chip to be debugged can be USB Type-C chips, the debugging chip sends debugging information to the chip to be debugged through the CC signal line of the configuration channel, and receives feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, and then transmission of the debugging information can be completed only by using transmission of the CC signal line, auxiliary equipment such as flying lines does not need to be arranged aiming at the USB Type-C chip in the debugging process, the purpose of debugging the USB Type-C chip without arranging the auxiliary equipment such as flying lines is achieved, the technical effect of simplifying equipment required by debugging the USB Type-C chip is achieved, and the technical problem that the debugging of the USB Type-C chip is complex due to the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
In order to ensure the safety of information transmission, the debugging information can be encrypted and then transmitted, so that the debugging information can be encrypted through the debugging core.
As an optional embodiment, before the debug chip sends the debug information to the chip to be debugged through the configuration channel CC signal line, the embodiment may further include: the debug information is encrypted.
The debugging information is encrypted and transmitted, so that the accuracy of the debugging information can be ensured.
As an optional embodiment, the feedback information is encrypted information, and after the debug chip receives the feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, the embodiment includes: the feedback information is decrypted.
After receiving the feedback information encrypted by the chip to be debugged, the debugging chip can decrypt the encrypted feedback information, so as to obtain the feedback information which can be used by the debugging chip.
The invention also provides a preferred embodiment, which provides a chip debugging method based on the USB CC line.
According to the technical scheme provided by the invention, the chip debugging, software debugging and upgrading can be directly carried out on the USB Type-C interface by adopting the CC signal wire, and the internal information of the chip can be obtained. The PCB board-level upper lead is not needed to be debugged, so that the development period can be shortened, software development, system debugging, mass production and maintenance of later-stage products and the like are facilitated.
Fig. 3 is a schematic diagram of a Chip debugging method based on a CC signal Line according to an embodiment of the present invention, and as shown in fig. 3, a CC execution module (CC executing module) and a CC debugging module (CC debug) are integrated inside a USB Type-C Chip, data communication is performed on a CC signal Line (CC Line) of a configuration channel through a CC Encoder and a CC Decoder, the CC debug sends a related command to the CC executing module for execution, and after the CC executing module is executed, the information is reported to the CC debug.
Optionally, in fig. 3, a first Chip (USB Type-C Chip #1, that is, a Chip to be debugged) and a second Chip (USB Type-C Chip #2, that is, a debug Chip) communicate with each other through a configuration channel CC signal Line (CC Line), the second Chip sends instruction information (debug information) to the first Chip through the configuration channel CC signal Line (CC Line), and after the first Chip is executed, the first Chip sends corresponding feedback information (message) to the second Chip, so that the second Chip can obtain relevant information inside the first Chip, such as a Chip model, a Chip state, a Chip register value, a software version, a software state, and the like.
Optionally, a second chip may be connected to the terminal for displaying and controlling the debugging process.
Alternatively, the terminal may be a computer (computer).
According to another aspect of the present invention, an embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device on which the storage medium is located is controlled to execute the USB Type-C chip debugging method described above.
According to another aspect of the present invention, an embodiment of the present invention further provides a processor, where the processor is configured to execute a program, where the program executes the USB Type-C chip debugging method described above.
Fig. 4 is a first schematic diagram of a USB Type-C chip according to an embodiment of the present invention, and as shown in fig. 4, the USB Type-C chip is a chip to be debugged and includes modules for implementing the following functions: a receiving module 41, configured to receive debug information through a configuration channel CC signal line; and the debugging module 43 is used for debugging according to the debugging information.
According to the embodiment of the invention, the chip to be debugged can be a USB Type-C chip and comprises a receiving module and a debugging module, wherein the receiving module receives debugging information by adopting a CC signal line of a configuration channel, then the debugging module is used for debugging the chip to be debugged in response to the debugging information, and then the transmission of the debugging information can be completed by only using the transmission of the CC signal line without arranging auxiliary equipment such as flying lines and the like for the USB Type-C chip in the debugging process, so that the aim of debugging the USB Type-C chip without arranging the auxiliary equipment such as flying lines and the like is fulfilled, the technical effect of simplifying equipment required by the debugging of the USB Type-C chip is realized, and the technical problem of complicated debugging of the USB Type-C chip caused by the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
Optionally, the CC executing module in fig. 3 may include a receiving module.
As an alternative embodiment, the embodiment may further include a module for implementing the following functions: the generating module is used for generating feedback information after debugging is carried out according to the debugging information; and the reporting module is used for reporting the feedback information to the sending object of the debugging information through the CC signal line of the configuration channel.
Optionally, the CC executing module in fig. 3 may include a reporting module.
Fig. 5 is a second schematic diagram of a USB Type-C chip according to an embodiment of the present invention, and as shown in fig. 5, the USB Type-C chip is a debug chip and includes modules for implementing the following functions: the transmitting module 51 is configured to transmit debugging information to a chip to be debugged through a configured channel CC signal line, where the chip to be debugged is a USB Type-C chip; and a feedback module 53, configured to receive feedback information reported by the chip to be debugged through the configuration channel CC signal line, where the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
According to the above embodiment, both the debugging chip and the chip to be debugged can be USB Type-C chips, including a sending module and a feedback module, wherein, the sending module sends debugging information to the chip to be debugged through the CC signal line of the configuration channel, then the feedback module receives the feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, further, the debugging information can be transmitted only by using CC signal wires without arranging auxiliary equipment such as flying leads and the like aiming at the USB Type-C chip in the debugging process, thereby achieving the aim of debugging the USB Type-C chip without arranging the auxiliary equipment such as the flying leads and the like, therefore, the technical effect of simplifying the equipment required by the USB Type-C chip debugging is achieved, and the technical problem that the USB Type-C chip debugging is complex due to the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
Optionally, the CC debugging module in fig. 3 may include a sending module and a feedback module.
Fig. 6 is a third schematic diagram of a USB Type-C chip according to an embodiment of the present invention, as shown in fig. 6, including: the USB Type-C chip 60 includes: the first module 61 is configured to receive the debug information through a configuration channel CC signal line and report feedback information to a sending object of the debug information through the configuration channel CC signal line when the USB Type-C chip is a chip to be debugged; and/or the second module 63 is configured to send debugging information to the chip to be debugged through the configuration channel CC signal line when the USB Type-C chip is the debugging chip, and receive feedback information reported by the chip to be debugged through the configuration channel CC signal line, where the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
According to the embodiment of the invention, the USB Type-C chip can be a chip to be debugged and can also be a debugging chip, and under the condition that the USB Type-C chip is the chip to be debugged, the first module of the USB Type-C chip can receive debugging information through the CC signal line of the configuration channel and report feedback information to a sending object of the debugging information through the CC signal line of the configuration channel; under the condition that the USB Type-C chip is a debugging chip, the second module of the USB Type-C chip can send debugging information to the chip to be debugged through the CC signal line of the configuration channel, and receive feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, the transmission of the debugging information can be completed only by using the CC signal line for transmission, auxiliary equipment such as flying lines does not need to be arranged aiming at the USB Type-C chip in the debugging process, the purpose of debugging the USB Type-C chip can be completed without arranging the auxiliary equipment such as flying lines, the technical effect of simplifying equipment required by debugging the USB Type-C chip is achieved, and the technical problem that the debugging of the USB Type-C chip is complex due to the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
Alternatively, the first module may be a CC execution module shown in fig. 3, and the second module may be a CC debugging module shown in fig. 3.
According to another aspect of the invention, the embodiment of the invention further provides an electrical appliance, which comprises the USB Type-C chip of the USB Type-C chip debugging method.
Fig. 7 is a schematic diagram of a USB Type-C chip debugging system according to an embodiment of the present invention, as shown in fig. 7, including: the chip 71 to be debugged is used for receiving debugging information sent by the debugging chip through the configuration channel CC signal wire and reporting feedback information to the debugging chip through the configuration channel CC signal wire; and the debugging chip 73 is used for sending debugging information to the chip to be debugged through the configuration channel CC signal line and receiving feedback information reported by the chip to be debugged through the configuration channel CC signal line, wherein the chip to be debugged and the debugging chip are USB Type-C chips, and the feedback information is information generated after the chip to be debugged is debugged according to the debugging information.
According to the above embodiment of the invention, the chip to be debugged receives the debugging information sent by the debugging chip through the CC signal line of the configuration channel, then generates the feedback information in response to the debugging information, and feeds the feedback information back to the debugging chip through the CC signal line of the configuration channel, and both the debugging chip and the chip to be debugged adopt the USB Type-C chip, the debugging chip and the chip to be debugged can transmit information through the shared CC signal line, and then the transmission of the debugging information and the feedback information can be completed only by using the CC signal line, and auxiliary equipment such as flying lines and the like is not needed to be arranged aiming at the USB Type-C chip in the debugging process, so that the aim of debugging the USB Type-C chip can be completed without arranging the auxiliary equipment such as flying lines and the like is achieved, thereby realizing the technical effect of simplifying the equipment required by debugging the USB Type-C chip, the technical problem that the debugging of the USB Type-C chip is complex due to the fact that the auxiliary equipment needs to be added to the existing USB Type-C chip is solved.
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.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A USB Type-C chip debugging method is characterized by comprising the following steps:
the debugging method comprises the steps that a chip to be debugged receives debugging information through a CC signal line of a configuration channel, wherein the debugging information is sent by the debugging chip, the debugging chip is the USB Type-C chip, and the chip to be debugged is the USBType-C chip;
debugging the chip to be debugged according to the debugging information;
the USB Type-C chip is internally integrated with a CC execution module and a CC debugging module, and the CC execution module and the CC debugging module carry out data communication on a CC signal line of a configuration channel;
the debugging information is instruction information for debugging the chip, and the chip is debugged;
under the condition that the debugging information is instruction information for debugging the software in the chip, the debugging of the chip software is completed;
finishing the upgrading process under the condition that the debugging information is instruction information for upgrading;
and finishing the feedback of the internal information of the chip under the condition that the debugging information is instruction information for acquiring the internal information of the chip.
2. The method according to claim 1, wherein the debug information is encrypted information, and before the chip to be debugged is debugged according to the debug information, the method further comprises:
and decrypting the debugging information.
3. The method of claim 1, wherein after the chip to be debugged is debugged according to the debugging information, the method further comprises:
the chip to be debugged generates feedback information after debugging according to the debugging information;
and the chip to be debugged reports the feedback information to the sending object of the debugging information through the CC signal line of the configuration channel.
4. The method of claim 3, wherein before reporting the feedback information to the issuing object of debug information via the Configuration Channel (CC) signal line, the method further comprises:
and encrypting the feedback information.
5. A USB Type-C chip debugging method is characterized by comprising the following steps:
the debugging chip sends debugging information to a chip to be debugged through a CC signal line of a configuration channel, wherein the debugging chip and the chip to be debugged are USB Type-C chips;
the debugging chip receives feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, wherein the feedback information is information generated after the chip to be debugged is debugged according to the debugging information;
the USB Type-C chip is internally integrated with a CC execution module and a CC debugging module, and the CC execution module and the CC debugging module carry out data communication on a CC signal line of a configuration channel;
the debugging information is instruction information for debugging the chip, and the chip is debugged;
under the condition that the debugging information is instruction information for debugging the software in the chip, the debugging of the chip software is completed;
finishing the upgrading process under the condition that the debugging information is instruction information for upgrading;
and finishing the feedback of the internal information of the chip under the condition that the debugging information is instruction information for acquiring the internal information of the chip.
6. The method of claim 5, wherein before the debug chip sends debug information to the chip to be debugged via the Configuration Channel (CC) signal line, the method further comprises:
and encrypting the debugging information.
7. The method of claim 5, wherein the feedback information is encrypted information, and after the debug chip receives the feedback information reported by the chip to be debugged through the Configuration Channel (CC) signal line, the method further comprises:
and decrypting the feedback information.
8. The utility model provides a USBType-C chip, its characterized in that, USBType-C chip is for waiting to debug the chip, including the module that is used for realizing following function:
the debugging module is used for receiving debugging information through a CC signal line of a configuration channel, wherein the debugging information is sent by a debugging chip, and the debugging chip is the USB Type-C chip;
the debugging module is used for debugging according to the debugging information;
the USB Type-C chip is internally integrated with a CC execution module and a CC debugging module, and the CC execution module and the CC debugging module carry out data communication on a CC signal line of a configuration channel;
the debugging information is instruction information for debugging the chip, and the chip is debugged;
under the condition that the debugging information is instruction information for debugging the software in the chip, the debugging of the chip software is completed;
finishing the upgrading process under the condition that the debugging information is instruction information for upgrading;
and finishing the feedback of the internal information of the chip under the condition that the debugging information is instruction information for acquiring the internal information of the chip.
9. The USB Type-C chip of claim 8, wherein the USB Type-C chip further comprises modules for:
the generating module is used for generating feedback information after debugging is carried out according to the debugging information;
and the reporting module is used for reporting the feedback information to the sending object of the debugging information through the CC signal line of the configuration channel.
10. The utility model provides a USBType-C chip, its characterized in that, USBType-C chip is the debugging chip, including the module that is used for realizing following function:
the debugging device comprises a sending module, a debugging module and a debugging module, wherein the sending module is used for sending debugging information to a chip to be debugged through a CC signal line of a configuration channel, and the chip to be debugged is a USB Type-C chip;
a feedback module, configured to receive feedback information reported by the chip to be debugged through the CC signal line of the configuration channel, where the feedback information is information generated after the chip to be debugged is debugged according to the debugging information;
the USB Type-C chip is internally integrated with a CC execution module and a CC debugging module, and the CC execution module and the CC debugging module carry out data communication on a CC signal line of a configuration channel;
the debugging information is instruction information for debugging the chip, and the chip is debugged;
under the condition that the debugging information is instruction information for debugging the software in the chip, the debugging of the chip software is completed;
finishing the upgrading process under the condition that the debugging information is instruction information for upgrading;
and finishing the feedback of the internal information of the chip under the condition that the debugging information is instruction information for acquiring the internal information of the chip.
11. The utility model provides a USBType-C chip which characterized in that includes:
a first module, configured to receive debug information through a configuration channel CC signal line when the USB Type-C chip is a chip to be debugged, and report feedback information to a sending object of the debug information through the configuration channel CC signal line; and/or
A second module, configured to send debug information to a chip to be debugged through a configuration channel CC signal line and receive feedback information reported by the chip to be debugged through the configuration channel CC signal line, if the USB Type-C chip is a debug chip,
the USB Type-C chip is internally integrated with a CC execution module and a CC debugging module, and the CC execution module and the CC debugging module carry out data communication on a CC signal line of a configuration channel;
the feedback information is information generated after the chip to be debugged is debugged according to the debugging information;
the debugging information is instruction information for debugging the chip, and the chip is debugged;
under the condition that the debugging information is instruction information for debugging the software in the chip, the debugging of the chip software is completed;
finishing the upgrading process under the condition that the debugging information is instruction information for upgrading;
and finishing the feedback of the internal information of the chip under the condition that the debugging information is instruction information for acquiring the internal information of the chip.
12. An electrical appliance comprising a USB Type-C chip according to any one of claims 8 to 11.
13. The utility model provides a USBType-C chip debugging system which characterized in that includes:
the debugging chip is used for receiving debugging information sent by the debugging chip through a configuration channel CC signal wire and reporting feedback information to the debugging chip through the configuration channel CC signal wire;
the debugging chip is used for sending the debugging information to the chip to be debugged through a CC signal line of a configuration channel and receiving the feedback information reported by the chip to be debugged through the CC signal line of the configuration channel,
the chip to be debugged and the debugging chip are USB Type-C chips, and the feedback information is information generated after the chip to be debugged is debugged according to the debugging information;
the USB Type-C chip is internally integrated with a CC execution module and a CC debugging module, and the CC execution module and the CC debugging module carry out data communication on a CC signal line of a configuration channel;
the debugging information is instruction information for debugging the chip, and the chip is debugged;
under the condition that the debugging information is instruction information for debugging the software in the chip, the debugging of the chip software is completed;
finishing the upgrading process under the condition that the debugging information is instruction information for upgrading;
and finishing the feedback of the internal information of the chip under the condition that the debugging information is instruction information for acquiring the internal information of the chip.
14. A storage medium comprising a stored program, wherein the program executes the USB Type-C chip debugging method of any one of claims 1 to 4 and the USB Type-C chip debugging method of any one of claims 5 to 7.
15. A processor, wherein the processor is configured to run a program, and wherein the program is run to perform the USB Type-C chip debugging method according to any one of claims 1 to 4 and the USB Type-C chip debugging method according to any one of claims 5 to 7.
CN201810068198.5A 2018-01-24 2018-01-24 USB Type-C chip, and debugging method and system thereof Active CN108197054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810068198.5A CN108197054B (en) 2018-01-24 2018-01-24 USB Type-C chip, and debugging method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810068198.5A CN108197054B (en) 2018-01-24 2018-01-24 USB Type-C chip, and debugging method and system thereof

Publications (2)

Publication Number Publication Date
CN108197054A CN108197054A (en) 2018-06-22
CN108197054B true CN108197054B (en) 2021-12-14

Family

ID=62590936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810068198.5A Active CN108197054B (en) 2018-01-24 2018-01-24 USB Type-C chip, and debugging method and system thereof

Country Status (1)

Country Link
CN (1) CN108197054B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369001A (en) * 2008-10-17 2009-02-18 北京星网锐捷网络技术有限公司 Apparatus used for debugging programmable chip and field programmable gate array chip
US9606175B2 (en) * 2014-12-26 2017-03-28 Intel Corporation Reprogramming a port controller via its own external port
US9535117B2 (en) * 2015-03-06 2017-01-03 Intel Corporation System debug using an all-in-one connector
US20160283423A1 (en) * 2015-03-25 2016-09-29 Intel Corporation System and method to enable closed chassis debug control interface using a universal serial bus (usb) type-c connector
CN106291210B (en) * 2015-05-22 2020-05-05 快捷半导体(苏州)有限公司 USB interface detector, USB interface detection method, USB connector and electronic equipment
CN206075268U (en) * 2016-07-29 2017-04-05 珠海智融科技有限公司 A kind of BMC sender units of USB PD communications

Also Published As

Publication number Publication date
CN108197054A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN103037538B (en) Data transmission method and mobile terminal
CN107111588A (en) The data transfer of PCIe protocol is used via USB port
CN104216840B (en) The method and device that a kind of USB sets and operated to external equipment
CN104598285A (en) Burning method and burning system
CN105681882A (en) Video output control method, video output control device and control circuit
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN110069288B (en) USB equipment sharing method, device and system
CN106803792A (en) Data transfer equipment, electric equipment and electric equipment fault diagnosis system
CN111756858B (en) Remote development processing system, method and device for embedded equipment
CN105592459B (en) Safety certification device based on wireless communication
CN107301151B (en) Mainboard and server
TWI253586B (en) Control system for controlling a plurality of computers
CN104239175A (en) Debugging system, debugging method and debugging device for chip
CN108197054B (en) USB Type-C chip, and debugging method and system thereof
CN108540516B (en) Running state information acquisition method, control terminal, network equipment and system
CN112463474A (en) Server testing method and system
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system
CN107171801B (en) Method and device for encrypted binding and encrypted display control and display screen system
CN105872278A (en) USB data wireless transmission method, camera and system
WO2022237239A1 (en) Method, system, apparatus and device for product monitoring
WO2018196223A1 (en) Data processing method and relevant device
TWI599255B (en) Pilot configuration method and device
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN113596835A (en) Network connection method, device, storage medium and electronic device
CN108134963B (en) Digital television all-in-one machine upgrading method, device, medium 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