Summary of the invention
In view of this, the fundamental purpose of the embodiment of the present invention is to provide a kind of data communications method and system, with facilitating the interface between communication facilities to plug on the basis of operation, ensures the object of the electrical safety between communication facilities further.
For achieving the above object, embodiments provide a kind of data communications method, comprising:
When adopting IIC communication to carry out production debugging, the secondary USB interface of the first USB interface of the first debugging acid side and product side to be debugged is utilized to carry out data communication;
When adopting SPI communication to carry out production debugging, the 3rd USB interface of the second debugging acid side and the 4th USB interface of product side to be debugged is utilized to carry out data communication.
Preferably, in the above-mentioned methods,
If described first debugging acid is different debugging acids from described second debugging acid, then described first USB interface, described secondary USB interface, described 3rd USB interface and described 4th USB interface are different USB interface, and the signal wire of described first USB interface comprises: the first bidirectional data line SDA, the first clock line SCL and the first ground wire GND; The signal wire of described secondary USB interface comprises: the second bidirectional data line SDA, second clock line SCL and the second ground wire GND; The signal wire of described 3rd USB interface comprises: the first primary input is from output data line MISO, and the first main output is from input data line MOSI, and the 3rd clock line SCLK, first select signal wire CS and the 3rd ground wire GND; The signal wire of described 4th USB interface comprises: the second primary input from output data line MISO, the second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND;
If described first debugging acid and described second debugging acid are same debugging acid, then described first USB interface and described 3rd USB interface are same USB interface, described secondary USB interface and described 4th USB interface are same USB interface, described first USB interface or described 3rd USB interface comprise: the first bidirectional data line SDA, first clock line SCL, first ground wire GND, first primary input is from output data line MISO, first main output is from input data line MOSI, 3rd clock line SCLK, first selects signal wire CS and the 3rd ground wire GND, described secondary USB interface or described 4th USB interface comprise: the second bidirectional data line SDA, second clock line SCL, the second ground wire GND, the second primary input are from output data line MISO, second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND.
Preferably, in the above-mentioned methods, the first bidirectional data line SDA is connected with the second bidirectional data line SDA, and the first clock line SCL is connected with second clock line SCL, and the first ground wire GND is connected with the second ground wire GND;
Describedly utilize the secondary USB interface of the first USB interface of the first debugging acid side and product side to be debugged to carry out data communication to comprise:
When described first debugging acid utilizes described first bidirectional data line SDA to send the first data, described in described product utilization to be debugged, the first bidirectional data line SDA receives described first data;
When described in described product utilization to be debugged, the first bidirectional data line SDA sends the second data, described first debugging acid utilizes described first bidirectional data line SDA to receive described second data.
Preferably, in the above-mentioned methods, first primary input is connected from output data line MISO from output data line MISO with the second primary input, first main output is connected from input data line MOSI from input data line MOSI with the second main output, 3rd clock line SCLK is connected with the 4th clock line SCLK, first selects signal wire CS to be connected with the second chip selection signal line CS, and the 3rd ground wire GND is connected with the 4th ground wire GND;
Describedly utilize the 3rd USB interface of the second debugging acid side and the 4th USB interface of product side to be debugged to carry out data communication to comprise:
When described second debugging acid utilizes described first main output to send the 3rd data from input data line MOSI, the second main output described in described product utilization to be debugged receives described 3rd data from input data line MOSI;
When the primary input of described product utilization second to be debugged sends the 4th data from output data line MISO, described second debugging acid utilizes described first primary input to receive described 4th data from output data line MISO.
Preferably, in the above-mentioned methods,
When production debugging is carried out in employing IIC communication and described first debugging acid is different debugging acids from described second debugging acid, described first USB interface also comprises: the first power lead VBVS, and described secondary USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises:
Described first debugging acid utilizes the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered;
Or, when adopting SPI communication to carry out production debugging and described first debugging acid is different debugging acids from described second debugging acid time, described 3rd USB interface also comprises: the first power lead VBVS, and described 4th USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises:
Described second debugging acid utilizes the connecting line between described second source line VBVS and described second source line VBVS to be that described product to be debugged is powered.
Or when described first debugging acid and described second debugging acid are same debugging acid, described first USB interface or described 3rd USB interface also comprise: the first power lead VBVS; Described secondary USB interface or described 4th USB interface also comprise: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises:
Described first debugging acid and described second debugging acid utilize the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered.
The embodiment of the present invention additionally provides a kind of data communication system, comprising: the first debugging acid, described second debugging acid, product to be debugged, the first USB interface, secondary USB interface, the 3rd USB interface and the 4th USB interface;
Described first debugging acid, for when adopting IIC communication to carry out production debugging, utilizes the secondary USB interface of the first USB interface and product side to be debugged to carry out data communication;
Described second debugging acid, for when adopting SPI communication to carry out production debugging, utilizes the 4th USB interface of the 3rd USB interface and product side to be debugged to carry out data communication.
Preferably, in said system,
If described first debugging acid is different debugging acids from described second debugging acid, then described first USB interface, described secondary USB interface, described 3rd USB interface and described 4th USB interface are different USB interface, and the signal wire of described first USB interface comprises: the first bidirectional data line SDA, the first clock line SCL and the first ground wire GND; The signal wire of described secondary USB interface comprises: the second bidirectional data line SDA, second clock line SCL and the second ground wire GND; The signal wire of described 3rd USB interface comprises: the first primary input is from output data line MISO, and the first main output is from input data line MOSI, and the 3rd clock line SCLK, first select signal wire CS and the 3rd ground wire GND; The signal wire of described 4th USB interface comprises: the second primary input from output data line MISO, the second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND;
If described first debugging acid and described second debugging acid are same debugging acid, then described first USB interface and described 3rd USB interface are same USB interface, described secondary USB interface and described 4th USB interface are same USB interface, described first USB interface or described 3rd USB interface comprise: the first bidirectional data line SDA, first clock line SCL, first ground wire GND, first primary input is from output data line MISO, first main output is from input data line MOSI, 3rd clock line SCLK, first selects signal wire CS and the 3rd ground wire GND, described secondary USB interface or described 4th USB interface comprise: the second bidirectional data line SDA, second clock line SCL, the second ground wire GND, the second primary input are from output data line MISO, second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND.
Preferably, in said system, the first bidirectional data line SDA is connected with the second bidirectional data line SDA, and the first clock line SCL is connected with second clock line SCL, and the first ground wire GND is connected with the second ground wire GND;
Described first debugging acid, has for utilizing described first bidirectional data line SDA to send the first data;
Described product to be debugged, has for utilizing described first bidirectional data line SDA to receive described first data, and utilizes described first bidirectional data line SDA to send the second data;
Described first debugging acid, also has for utilizing described first bidirectional data line SDA to receive described second data.
Preferably, in said system, first primary input is connected from output data line MISO from output data line MISO with the second primary input, first main output is connected from input data line MOSI from input data line MOSI with the second main output, 3rd clock line SCLK is connected with the 4th clock line SCLK, first selects signal wire CS to be connected with the second chip selection signal line CS, and the 3rd ground wire GND is connected with the 4th ground wire GND;
Described second debugging acid, has for utilizing described first main output to send the 3rd data from input data line MOSI;
Described product to be debugged, has for utilizing described second main output to receive described 3rd data from input data line MOSI, and utilizes the second primary input to send the 4th data from output data line MISO;
Described second debugging acid, also has for utilizing described first primary input to receive described 4th data from output data line MISO.
Preferably, in said system,
When production debugging is carried out in employing IIC communication and described first debugging acid is different debugging acids from described second debugging acid, described first USB interface also comprises: the first power lead VBVS, and described secondary USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described first debugging acid, also for utilizing the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered.
Or, when adopting SPI communication to carry out production debugging and described first debugging acid is different debugging acids from described second debugging acid time, described 3rd USB interface also comprises: the first power lead VBVS, and described 4th USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described second debugging acid, also for utilizing the connecting line between described second source line VBVS and described second source line VBVS to be that described product to be debugged is powered.
Or when described first debugging acid and described second debugging acid are same debugging acid, described first USB interface or described 3rd USB interface also comprise: the first power lead VBVS; Described secondary USB interface or described 4th USB interface also comprise: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described first debugging acid and described second debugging acid, also for utilizing the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered.
In the data communications method provided in the embodiment of the present invention and system, when adopting IIC communication to carry out production debugging, the secondary USB interface of the first USB interface of the first debugging acid side and product side to be debugged is utilized to carry out data communication; When adopting SPI communication to carry out production debugging, the 3rd USB interface of the second debugging acid side and the 4th USB interface of product side to be debugged is utilized to carry out data communication.Due to when carrying out product test,
Need to connect or disconnect debugging acid and product to be debugged frequently, so, the embodiment of the present invention arranges special USB interface at debugging acid and product both sides to be debugged, when needing the plug operation carrying out interface frequently, utilize these USB interface, make plug convenient to operation, improve IIC and to communicate the work efficiency communicated in production debugging process with SPI, and ensure that the electrical safety of debugging acid and product to be debugged.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Because existing IIC debugging acid and SPI debugging acid do not have special Peripheral Interface, and jack/contact pin or rectangular insert/socket can only be adopted to realize IIC debugging acid and/or the connection between SPI debugging acid and product to be debugged, but, owing to needing between debugging acid and product to be tested frequently to plug operation, to occur that operating efficiency is low and the problems such as the electrical safety of debugging acid and product to be debugged can not be ensured, for this problem, the embodiment of the present invention realizes IIC communication and/or SPI communication on the basis not changing existing interface (such as USB interface) physical arrangement, namely pin and principle of work by redefining existing interface realize the communication between debugging acid and product to be tested (debugged product and tested chip), and facilitate interface plug operation and ensure that the electrical safety of debugging acid and product to be debugged.
Shown in Figure 1, the schematic flow sheet of the data communications method that Fig. 1 provides for the embodiment of the present invention, the step realizing the method comprises:
Step 101: when carrying out production debugging, determine communication type, described communication type comprises employing IIC communication and employing SPI communicates.
Step 102: when adopting IIC communication to carry out production debugging, utilize the secondary USB interface of the first USB interface of the first debugging acid side and product side to be debugged to carry out data communication;
Step 103: when adopting SPI communication to carry out production debugging, utilize the 3rd USB interface of the second debugging acid side and the 4th USB interface of product side to be debugged to carry out data communication.
IIC/SPI communication interface schematic diagram shown in Figure 2, IIC communication bus generally has two signal wires, and one is bidirectional data line SDA, and another root is clock line SCL, but, also must there be a ground wire GND on the necessary common reference ground of 2 equipment of communication; SPI communication bus at least needs 4 lines, and they are that the primary input of MISO(data is from output), the main output of MOSI(data is from input), SCLK(clock), CS(sheet selects), but the necessary common reference ground of 2 equipment of communication, also must there is a ground wire GND.
The embodiment of the present invention does not change the physical arrangement of existing USB interface, but the pin of existing USB interface is redefined, be defined as the pin of IIC communication interface and/or SP communication interface, and utilize the USB interface redefined to realize IIC communication and/or SPI communication.
Wherein, described first debugging acid and described second debugging acid can be different debugging acids also can be same debugging acid, is specifically divided into following two kinds of situations:
If the first described first debugging acid is different debugging acids from described second debugging acid, then described first USB interface, described secondary USB interface, described 3rd USB interface and described 4th USB interface are different USB interface.
First debugging acid shown in Figure 3 and the connection diagram of product to be debugged, when carrying out IIC communication, described first USB interface is arranged on described first debugging acid side, described secondary USB interface is arranged on described product side to be debugged, so that the IIC realized between the first debugging acid with product to be debugged by the first USB interface and secondary USB interface is communicated.Wherein, the signal wire of described first USB interface comprises: the first bidirectional data line SDA, the first clock line SCL and the first ground wire GND; The signal wire of described secondary USB interface comprises: the second bidirectional data line SDA, second clock line SCL and the second ground wire GND.
Second debugging acid shown in Figure 4 and the connection diagram of product to be debugged, when carrying out SPI communication, described 3rd USB interface is arranged on described second debugging acid side, described 4th USB interface is arranged on described product side to be debugged, so that the SPI realized between the second debugging acid with product to be debugged by the 3rd USB interface and the 4th USB interface is communicated.The signal wire of described 3rd USB interface comprises: the first primary input is from output data line MISO, and the first main output is from input data line MOSI, and the 3rd clock line SCLK, first select signal wire CS and the 3rd ground wire GND; The signal wire of described 4th USB interface comprises: the second primary input from output data line MISO, the second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND.
If the second described first debugging acid and described second debugging acid are same debugging acid, then described first USB interface and described 3rd USB interface are same USB interface, and described secondary USB interface and described 4th USB interface are same USB interface.
The connection diagram of debugging acid shown in Figure 5 and product to be debugged, described first USB interface (or described 3rd USB interface) is arranged on described first debugging acid (or second debugging acid) side, described secondary USB interface (or described 4th USB interface) is arranged on described product side to be debugged, to realize IIC communication or SPI communication or to carry out IIC communication communicating with SPI by the USB interface of both sides simultaneously.Wherein, described first USB interface or described 3rd USB interface comprise: the first bidirectional data line SDA, the first clock line SCL, the first ground wire GND, the first primary input are from output data line MISO, first main output is from input data line MOSI, and the 3rd clock line SCLK, first select signal wire CS and the 3rd ground wire GND; Described secondary USB interface or described 4th USB interface comprise: the second bidirectional data line SDA, second clock line SCL, the second ground wire GND, the second primary input are from output data line MISO, second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND.
See Fig. 3 and Fig. 5, the first bidirectional data line SDA is connected with the second bidirectional data line SDA, and the first clock line SCL is connected with second clock line SCL, and the first ground wire GND is connected with the second ground wire GND; Based on this, under the effect of clock signal SCL, the following method of main employing realizes the step 102 in the embodiment of the present invention:
When described first debugging acid utilizes described first bidirectional data line SDA to send the first data, described in described product utilization to be debugged, the first bidirectional data line SDA receives described first data;
When described in described product utilization to be debugged, the first bidirectional data line SDA sends the second data, described first debugging acid utilizes described first bidirectional data line SDA to receive described second data.
See Fig. 4 and Fig. 5, first primary input is connected from output data line MISO from output data line MISO with the second primary input, first main output is connected from input data line MOSI from input data line MOSI with the second main output, 3rd clock line SCLK is connected with the 4th clock line SCLK, and the 3rd ground wire GND is connected with the 4th ground wire GND; Based on this, under the effect of clock signal SCLK, the following method of main employing realizes the step 103 in the embodiment of the present invention:
When described second debugging acid utilizes described first main output to send the 3rd data from input data line MOSI, the second main output described in described product utilization to be debugged receives described 3rd data from input data line MOSI;
When the primary input of described product utilization second to be debugged sends the 4th data from output data line MISO, described second debugging acid utilizes described first primary input to receive described 4th data from output data line MISO.
Further, see Fig. 3, when production debugging is carried out in employing IIC communication and described first debugging acid is different debugging acids from described second debugging acid, described first USB interface also comprises: the first power lead VBVS, and described secondary USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described first debugging acid utilizes the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered;
See Fig. 4, when adopting SPI communication to carry out production debugging and described first debugging acid is different debugging acids from described second debugging acid time, described 3rd USB interface also comprises: the first power lead VBVS, and described 4th USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described second debugging acid utilizes the connecting line between described second source line VBVS and described second source line VBVS to be that described product to be debugged is powered.
See Fig. 5, when described first debugging acid and described second debugging acid are same debugging acid, described first USB interface or described 3rd USB interface also comprise: the first power lead VBVS; Described secondary USB interface or described 4th USB interface also comprise: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described first debugging acid and described second debugging acid utilize the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered.
Further, the first USB interface in the embodiment of the present invention, secondary USB interface, the 3rd USB interface and the 4th USB interface are USB3.0 interface, typically, select to install USB3.0A type socket in debugging acid side; Consider the size of interface volume, select to install USB3.0Micro-B type socket in product side to be debugged, it takies small volume.
See table 1, be existing USB3.0A type and USB3.0Macro-B type pinout table, wherein, the left side is USB3.0A type pinout table, and the right is USB3.0Macro-B type pinout table.
Table 1
The embodiment of the present invention does not change the physical arrangement of USB3.0 interface, just changes its pinout and principle of work thereof.Because USB3.0 is interfaced to rare 9 pins, and IIC communication to communicate with SPI and needs 8 pins altogether, meets the demand of pin number.Sometimes debugged product and tested chip need external power supply, because the IIC debugging acid communicated with SPI that communicate can be powered to external unit, so 1 pin be left can be VBUS, to power use to external unit; In addition, in order to reduce the change to existing USB interface, original power signal line VBVS and the pinout of ground wire GND can be retained.
For Fig. 3, when only realizing IIC communication, following redefining can be carried out, see table 2 and table 3 to USB3.0A type pin and USB3.0Micro-B type pin:
Table 2
Table 3
For Fig. 4, when only realizing SPI communication, following redefining can be carried out, see table 4 and table 5 to USB3.0A type pin and USB3.0Micro-B type pin:
Table 4
Table 5
For Fig. 5, when to realize IIC communication and communicate with SPI simultaneously, following redefining can be carried out, see table 6 and table 7 to USB3.0A type pin and USB3.0Micro-B type pin:
Table 6
Table 7
Wherein, the pin of USB3.0 interface has outer cover metal layer Shell, and this outer cover metal layer Shell ground connection, for realizing the public domain of debugging acid or product to be debugged during interface plug, to reach the effect of proterctive equipment electrical safety.
It should be noted that, when not considering volume, DB9 interface can replace USB3.0 interface.DB9 interface is different with USB3.0 interface profile, and just DB9 interface volume is large, is widely used in RS232 communication, but the same with USB3.0 interface, frequently can plug easily and in plug process, realize the effect of protection electrical safety.
In the data communications method that the embodiment of the present invention provides, when adopting IIC communication to carry out production debugging, the secondary USB interface of the first USB interface of the first debugging acid side and product side to be debugged is utilized to carry out data communication; When adopting SPI communication to carry out production debugging, the 3rd USB interface of the second debugging acid side and the 4th USB interface of product side to be debugged is utilized to carry out data communication.Due to when carrying out product test, need to connect or disconnect debugging acid and product to be debugged frequently, so, the embodiment of the present invention arranges special USB interface at debugging acid and product both sides to be debugged, when needing the plug operation carrying out interface frequently, utilizing these USB interface, making plug convenient to operation, improve IIC to communicate the work efficiency communicated in production debugging process with SPI, and ensure that the electrical safety of debugging acid and product to be debugged.
In addition, because the USB interface in the embodiment of the present invention (such as USB3.0 interface) is widely used in the various electronic equipment with USB interface (as computer, USB flash disk, portable hard drive and oscillograph etc.), when not needing extra manpower financial capacity to design and produce the interface with new physical arrangement, existing interface and wire rod thereof is adopted to realize the embodiment of the present invention.
See Fig. 6, the structural representation of the data communication system that Fig. 6 provides for the embodiment of the present invention, comprising: the first debugging acid 1, described second debugging acid 2, product to be debugged 3, first USB interface 4, secondary USB interface 5, the 3rd USB interface 6 and the 4th USB interface 7;
Described first debugging acid 1, for when adopting IIC communication to carry out production debugging, utilizes the first USB interface 4 to carry out data communication with the secondary USB interface 5 of product 3 side to be debugged;
Described second debugging acid 1, for when adopting SPI communication to carry out production debugging, utilizes the 3rd USB interface 6 to carry out data communication with the 4th USB interface 7 of product 3 side to be debugged.
If described first debugging acid is different debugging acids from described second debugging acid, then described first USB interface, described secondary USB interface, described 3rd USB interface and described 4th USB interface are different USB interface, and the signal wire of described first USB interface comprises: the first bidirectional data line SDA, the first clock line SCL and the first ground wire GND; The signal wire of described secondary USB interface comprises: the second bidirectional data line SDA, second clock line SCL and the second ground wire GND; The signal wire of described 3rd USB interface comprises: the first primary input is from output data line MISO, and the first main output is from input data line MOSI, and the 3rd clock line SCLK, first select signal wire CS and the 3rd ground wire GND; The signal wire of described 4th USB interface comprises: the second primary input from output data line MISO, the second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND;
If described first debugging acid and described second debugging acid are same debugging acid, then described first USB interface and described 3rd USB interface are same USB interface, described secondary USB interface and described 4th USB interface are same USB interface, described first USB interface or described 3rd USB interface comprise: the first bidirectional data line SDA, first clock line SCL, first ground wire GND, first primary input is from output data line MISO, first main output is from input data line MOSI, 3rd clock line SCLK, first selects signal wire CS and the 3rd ground wire GND, described secondary USB interface or described 4th USB interface comprise: the second bidirectional data line SDA, second clock line SCL, the second ground wire GND, the second primary input are from output data line MISO, second main output from input data line MOSI, the 4th clock line SCLK, the second chip selection signal line CS and the 4th ground wire GND.
Wherein, the first bidirectional data line SDA is connected with the second bidirectional data line SDA, and the first clock line SCL is connected with second clock line SCL, and the first ground wire GND is connected with the second ground wire GND; Described first debugging acid 1, has for utilizing described first bidirectional data line SDA to send the first data; Described product to be debugged 3, has for utilizing described first bidirectional data line SDA to receive described first data, and utilizes described first bidirectional data line SDA to send the second data; Described first debugging acid 1, also has for utilizing described first bidirectional data line SDA to receive described second data.
Wherein, first primary input is connected from output data line MISO from output data line MISO with the second primary input, first main output is connected from input data line MOSI from input data line MOSI with the second main output, 3rd clock line SCLK is connected with the 4th clock line SCLK, first selects signal wire CS to be connected with the second chip selection signal line CS, and the 3rd ground wire GND is connected with the 4th ground wire GND; Described second debugging acid 2, has for utilizing described first main output to send the 3rd data from input data line MOSI; Described product to be debugged 3, has for utilizing described second main output to receive described 3rd data from input data line MOSI, and utilizes the second primary input to send the 4th data from output data line MISO; Described second debugging acid 2, also has for utilizing described first primary input to receive described 4th data from output data line MISO.
In addition, debugging acid can also be powered for product to be tested, particularly:
When production debugging is carried out in employing IIC communication and described first debugging acid is different debugging acids from described second debugging acid, described first USB interface also comprises: the first power lead VBVS, and described secondary USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described first debugging acid, also for utilizing the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered.
Or, when adopting SPI communication to carry out production debugging and described first debugging acid is different debugging acids from described second debugging acid time, described 3rd USB interface also comprises: the first power lead VBVS, and described 4th USB interface also comprises: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described second debugging acid, also for utilizing the connecting line between described second source line VBVS and described second source line VBVS to be that described product to be debugged is powered.
Or when described first debugging acid and described second debugging acid are same debugging acid, described first USB interface or described 3rd USB interface also comprise: the first power lead VBVS; Described secondary USB interface or described 4th USB interface also comprise: second source line VBVS; Described first power lead VBVS is connected with described second source line VBVS; Described method also comprises: described first debugging acid and described second debugging acid, also for utilizing the connecting line between described first power lead VBVS and described second source line VBVS to be that described product to be debugged is powered.
In the data communication system that the embodiment of the present invention provides, when adopting IIC communication to carry out production debugging, the secondary USB interface of the first USB interface of the first debugging acid side and product side to be debugged is utilized to carry out data communication; When adopting SPI communication to carry out production debugging, the 3rd USB interface of the second debugging acid side and the 4th USB interface of product side to be debugged is utilized to carry out data communication.Due to when carrying out product test, need to connect or disconnect debugging acid and product to be debugged frequently, so, the embodiment of the present invention arranges special USB interface at debugging acid and product both sides to be debugged, when needing the plug operation carrying out interface frequently, utilizing these USB interface, making plug convenient to operation, improve IIC to communicate the work efficiency communicated in production debugging process with SPI, and ensure that the electrical safety of debugging acid and product to be debugged.
In addition, because the USB interface in the embodiment of the present invention (such as USB3.0 interface) is widely used in the various electronic equipment with USB interface (as computer, USB flash disk, portable hard drive and oscillograph etc.), when not needing extra manpower financial capacity to design and produce the interface with new physical arrangement, existing interface and wire rod thereof is adopted to realize the embodiment of the present invention.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that all or part of step in above-described embodiment method can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network communication equipments such as such as media gateway, etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
It should be noted that, in this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For method disclosed in embodiment, because it is corresponding with system disclosed in embodiment, so description is fairly simple, relevant part illustrates see components of system as directed.
Also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.