CN112702083B - Electronic device and communication method - Google Patents
Electronic device and communication method Download PDFInfo
- Publication number
- CN112702083B CN112702083B CN202011549653.7A CN202011549653A CN112702083B CN 112702083 B CN112702083 B CN 112702083B CN 202011549653 A CN202011549653 A CN 202011549653A CN 112702083 B CN112702083 B CN 112702083B
- Authority
- CN
- China
- Prior art keywords
- charging interface
- signal
- data terminals
- data
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/02—Details
- H04B3/04—Control of transmission; Equalising
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0042—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
- H02J7/0045—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction concerning the insertion or the connection of the batteries
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/02—Details
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The application discloses electronic equipment and a communication method, and belongs to the technical field of communication. The electronic equipment comprises a first charging interface, a control module and a signal processing module, wherein the first charging interface comprises a plurality of first data terminals; the control module is respectively connected with each first data terminal through the signal processing module; under the condition that the first charging interface is connected with a second charging interface of the target equipment, the control module switches the signal processing module to be in a line transmission mode corresponding to the conduction parameter, and signal transmission is carried out between the electronic equipment and the target equipment according to the line transmission mode; wherein, the conduction parameters are as follows: and the number of the first data terminals and the second data terminals of the second charging interface which are communicated in a one-to-one correspondence manner. According to the method and the device, the corresponding line transmission mode can be switched based on the conduction parameter of the first charging interface and the second charging interface, so that the reliability of data transmission is ensured.
Description
Technical Field
The application belongs to the technical field of communication, and particularly relates to electronic equipment and a communication method.
Background
With the development of charging technology, the communication between the electric device (such as an electronic device like a mobile phone) and the charging device (such as an electronic device like a charger) is getting tighter and tighter. For example: in the quick charging technology, the charger outputs corresponding voltage or performs other corresponding communication along with instructions of electronic equipment such as a mobile phone and the like.
At present, the main way of communication between the power consumption device and the charging device is: when the electric equipment detects that the charging equipment is connected, the electric equipment initiates communication with the charging equipment through a wire connected with the data terminal. However, there may be a problem of poor contact due to factors such as abrasion during use of the charging interface or the data line interface of the electric device, and thus, when the charging interface or the data line interface of the electronic device (e.g., the electric device or the charging device) has poor contact, communication between the electric device and the charging device may not be possible.
Disclosure of Invention
An object of the embodiments of the present application is to provide an electronic device and a communication method, which can solve a problem that communication between a power consumption device and a charging device may not be possible when a contact failure occurs in a charging interface or a data line interface of the electronic device.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an electronic device, including:
a first charging interface comprising a plurality of first data terminals;
the control module is connected with each first data terminal through the signal processing module;
under the condition that the first charging interface is connected with a second charging interface of the target equipment, the control module switches the signal processing module to be in a line transmission mode corresponding to the conduction parameter, and the electronic equipment and the target equipment perform signal transmission according to the line transmission mode;
wherein the conduction parameters are: and the number of the first data terminals and the second data terminals of the second charging interface which are communicated in a one-to-one correspondence manner is equal to the number of the second data terminals.
In a second aspect, an embodiment of the present application provides a communication method, which is applied to an electronic device, where the electronic device has a first charging interface, and the first charging interface includes a plurality of first data terminals; the method comprises the following steps:
determining a conduction parameter under the condition that the first charging interface is connected with a second charging interface of the target device; wherein the conduction parameters are: the number of the first data terminals and the second data terminals of the second charging interface which are in one-to-one correspondence conduction is less than the number of the second data terminals of the second charging interface which are in one-to-one correspondence conduction;
determining a line transmission mode corresponding to the conduction parameter;
and the electronic equipment and the target equipment perform signal transmission according to the line transmission mode.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the communication method according to the second aspect.
In a fourth aspect, the present invention provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the communication method according to the second aspect.
In a fifth aspect, the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the communication method according to the second aspect.
In the embodiment of the application, under the condition that the first charging interface is connected with the second charging interface of the target device, the control module controls the signal processing module to switch to the line transmission mode corresponding to the conduction parameters of the connection between the first charging interface and the second charging interface, so that signal transmission is performed between the electronic device and the target device according to the line transmission mode. Therefore, under the condition that partial data contact is poor or the partial data contact is damaged possibly existing between the first charging interface of the electronic equipment and the second charging interface of the target equipment, the corresponding line transmission mode can be switched based on the conduction parameters of the connection between the first charging interface and the second charging interface, and the reliability of data transmission is ensured.
Drawings
Fig. 1 is one of schematic connection diagrams of an electronic device and a target device according to an embodiment of the present application;
fig. 2 is a second schematic diagram of connection between an electronic device and a target device according to an embodiment of the present application;
fig. 3 is a schematic diagram of splitting a signal to be transmitted according to an embodiment of the present application;
FIG. 4 is a flow chart of one of the communication methods of the embodiments of the present application;
fig. 5 is a second flowchart of a communication method according to an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device of an embodiment of the application;
fig. 7 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
As shown in fig. 1, an embodiment of the present application provides an electronic device. Alternatively, the electronic device may be a charging device (e.g., a charger) or a powered device (e.g., a mobile device such as a mobile phone or a wearable device). In the following embodiments, when the electronic device is an electric device, the target device is a charging device; when the electronic device is a charging device, the target device is an electric device.
The electronic device 10 includes: the first charging interface 11, the control module 13 and the signal processing module 12.
Wherein the first charging interface 11 comprises a plurality of first data terminals; the control module 13 is connected with each first data terminal through the signal processing module 12; when the first charging interface 11 is connected to the second charging interface 21 of the target device 20, the control module 13 switches the signal processing module 12 to be in a line transmission mode corresponding to the conduction parameter, and performs signal transmission between the electronic device 10 and the target device 20 according to the line transmission mode.
Wherein the conduction parameters are: the number of the first data terminals and the number of the second data terminals of the second charging interface 21 that are turned on in a one-to-one correspondence manner.
Alternatively, if the types of the first charging interfaces 11 are different, the number of the first data terminals in the first charging interfaces 11 may be different, for example: the number of first data terminals may be 2, 4, etc.
Alternatively, the second charging interface 21 may be of the same type as the first charging interface 11, so as to ensure that a connection can be established between the first charging interface 11 and the second charging interface 21. Specifically, the electronic device 10 may determine the conduction parameter of the connection between the electronic device and the target device 20 in the following manner:
the first method is as follows: the electronic device 10 sends a signal to the target device 20 through each first data terminal, and when a signal fed back by the target device 20 is received through the corresponding first data terminal, the first data terminal is determined to be conductive to the second data terminal on the target device 20, so that the conduction parameter of the connection between the electronic device 10 and the target device 20 can be determined according to the number of conductive data terminals between the first charging interface 11 and the second charging interface 21.
The second method comprises the following steps: under the condition that the first charging interface 11 is not connected with the second charging interface 21, each first data terminal in the first charging interface 11 is in a low level state, and when the first data terminal is turned on with a second data terminal in the second charging interface 21, the first data terminal is in a high level state, so that through a potential change on the first data terminal, whether the corresponding first data terminal is turned on with the second data terminal can be determined, and thus, a turn-on parameter for connection between the electronic device 10 and the target device 20 can be determined according to the number of turned-on data terminals between the first charging interface 11 and the second charging interface 21.
The third method comprises the following steps: the control module 13 may also be directly connected to each first data terminal in the first charging interface 11, so that the control module 13 may determine whether the corresponding first data terminal is conducted with the second data terminal according to the potential change on the first data terminal, and thus may determine the conduction parameter of the connection between the electronic device 10 and the target device 20 according to the number of the conducted data terminals between the first charging interface 11 and the second charging interface 21.
In the electronic device in the above scheme, under the condition that the first charging interface 11 is connected with the second charging interface 21 of the target device 20, the control module 13 controls the signal processing module 12 to switch to the line transmission mode corresponding to the connection conduction parameter of the first charging interface 11 and the second charging interface 21, so that the signal transmission is performed between the electronic device 10 and the target device 20 according to the line transmission mode. In this way, under the condition that there may be partial poor data contact or damage between the first charging interface 11 of the electronic device 10 and the second charging interface 21 of the target device 20, the corresponding line transmission mode can be switched based on the conduction parameter of the connection between the first charging interface 11 and the second charging interface, so that the reliability of data transmission is ensured, and the abnormal resistance capability is improved.
Optionally, the line transmission mode is: and carrying out signal transmission through the first data terminal and the second data terminal which are conducted in one-to-one correspondence.
As an example, the charging interface of the TYP-C type has 4 data terminals, i.e. the first charging interface 11 and the second charging interface 21 can have at most 4 communication paths when connected. Wherein, the conduction parameter of connecting between first interface 11 and the second interface 21 that charges includes:
single-line mode: only any 1 line is connected and conducted (for example, the line A is conducted, the line B is conducted, the line C is conducted, or the line D is conducted in the figure 1); the corresponding line transmission mode is a single-wire transmission mode, that is, data transmission is performed through one conducting line.
Two-wire mode: only any 2 lines are connected and conducted (such as A, B lines, C, D lines, A, C lines, A, D lines, B, C lines, or B, D lines in fig. 1); the corresponding line transmission mode is a two-wire transmission mode, namely data transmission is carried out through the conducted 2 lines.
Three-wire mode: only any 3 lines are connected and conducted (such as A, B, C lines in fig. 1, A, C, D lines in conduction, A, B, D lines in conduction, or B, C, D lines in conduction); the corresponding line transmission is in a three-line transmission mode, that is, data transmission is performed through the conducted 3 lines.
Four-wire mode: only any 4 lines are connected and conducted (such as A, B, C, D lines in fig. 1 are conducted); the corresponding line transmission mode is a four-wire transmission mode, that is, data transmission is performed through the conducted 4 lines.
Optionally, the signal processing module 12 is configured to divide a signal to be transmitted into M signal blocks according to the line transmission mode, and transmit the M signal blocks to the target device 20 through M groups of first data terminals and second data terminals that are correspondingly conducted one by one; a group of correspondingly conducted first data terminals and second data terminals correspondingly transmit a signal block, and M is a positive integer.
For example: in the two-wire mode, a signal to be transmitted may be divided into 2 signal blocks, and the 2 signal blocks are transmitted to the target device 20 through 2 first data terminals and second data terminals that are in one-to-one correspondence conduction; in the three-wire mode, a signal to be transmitted may be divided into 3 signal blocks, and the 3 signal blocks are transmitted to the target device 20 through 3 first data terminals and 3 second data terminals that are turned on in a one-to-one correspondence; in the four-wire mode, a signal to be transmitted may be divided into 4 signal blocks, and the 4 signal blocks may be transmitted to the target device 20 through 4 first data terminals and second data terminals that are turned on in a one-to-one correspondence.
Optionally, the signal processing module 12 may modulate the signal to be transmitted and then divide the modulated signal into M signal blocks for transmission, or divide the signal to be transmitted into M signal blocks for transmission after modulation respectively, which is not limited in this embodiment of the present application.
Optionally, the signal processing module 12 may be further configured to perform synthesis processing on M signal blocks sent by the target device 20 through M groups of first data terminals and second data terminals that are turned on in a one-to-one correspondence manner, and transmit a synthesized signal to the control module 13.
For example: the signal processing module 12 may divide the signal to be transmitted into M signal blocks and transmit the M signal blocks to the target device 20, and accordingly the signal processing module 12 may also receive the M signal blocks sent by the target device and perform synthesis processing, so that the control module 13 may execute a corresponding function according to the synthesized signal.
Optionally, the signal processing module 12 may respectively modulate and then perform synthesis processing on the M signal blocks received and sent by the target device 20, or may perform synthesis processing and then modulate on the M signal blocks received and sent by the target device 20, which is not limited in this embodiment of the present application.
Optionally, as shown in fig. 2, the signal processing module 12 includes: a packet control unit 122 and a modem unit 121.
The control module 13 is connected to each first data terminal through the grouping control unit 122; the control module 13 is connected to the packet control unit 122 through the modem unit 121.
The grouping control unit 122 is configured to detect the conduction parameter, and feed back the conduction parameter to the control module 13; the control module 13 is configured to control the modulation and demodulation unit 121 to perform modulation processing on a signal according to the conduction parameter fed back by the packet control unit 122, and switch a line transmission mode in which the packet control unit 122 is located; the packet control unit 122 is further configured to transmit the signal to be transmitted, which is modulated and processed by the modulation and demodulation unit 121, to the target device 20 according to the line transmission mode.
Specifically, the modulation and demodulation unit 121 is configured to perform modulation processing on a signal to be transmitted, where the signal to be transmitted may be a communication signal transmitted between the electronic device 10 and the target device 20 during the charging process.
Optionally, as an implementation: the grouping control unit 122 may divide the signal to be transmitted modulated and processed by the modulation and demodulation unit 121 into M signal blocks according to the line transmission mode, and transmit the M signal blocks to the target device 20 through M groups of first data terminals and second data terminals that are in one-to-one correspondence; a group of correspondingly conducted first data terminals and second data terminals correspondingly transmit a signal block, and M is a positive integer.
Optionally, the packet control unit 122 divides the signal to be transmitted into M signal blocks according to time units, as shown in fig. 3; accordingly, the received M signal blocks may be combined in time order on the target device 20 side. The frequency of each signal block is consistent with that of the signal to be transmitted, and the transmitted data volume is unchanged, but is accelerated to the original 1/M in transmission time, so that the communication speed and reliability are improved.
Optionally, when the type of the charging interface is TYP-C, if the four data lines in the charging interface are in good contact, that is, in the four-line mode, the signal processing module 12 may divide the data packet (i.e., the signal to be transmitted) into a high order and a low order for simultaneous transmission, and the target device 20 may receive and process a plurality of data at the same time, thereby improving the data operation and processing capability. For example: in the case of charging abnormality, a signal for abnormality processing such as an interrupt signal can be received by the target device 20 more quickly, thereby ensuring that an abnormality response can be performed in time.
Optionally, when the target device 20 transmits a signal to the electronic device 10, the modem unit 121 may further perform synthesis processing on a plurality of signal blocks received by the packet control unit 122 and transmitted by the target device 20, and transmit the synthesized signal to the control module 13.
In the embodiment of the present invention, when performing signal transmission, the target device 20 and the electronic device 10 may perform similar functions, that is, the target device 20 may also switch the corresponding line transmission mode according to the conduction parameter connected between the first charging interface 11 and the second charging interface 21, so as to perform data transmission.
In this way, the electronic device 10 can receive the plurality of split signal blocks transmitted by the target device 20 even when the signal to be transmitted is split and transmitted to the target device 20. The electronic device 10, upon receiving the plurality of signal blocks transmitted by the target device 20, synthesizes the complete signals in time sequence, and obtains corresponding signal contents through the demodulation process of the modem unit 121, so that the electronic device can perform corresponding functions according to the demodulated signals.
Optionally, the electronic device 10 may further include: a plurality of filtering modules 14. The signal processing module 12 is connected to each first data terminal through the plurality of filtering modules 14; one of the filter modules 14 is connected to a first data terminal.
Alternatively, the number of the filter modules 14 may be set according to the maximum value of the number of the first data terminals; such as: when the number of the first data terminals is 4, the number of the filtering modules 14 may also be 4, so that it can be ensured that the signal blocks transmitted on each data transmission channel can be respectively filtered by the filtering modules 14.
In the embodiment of the application, signal processing is performed through the filtering module, the signal processing module and the like, so that the problems that the distance is short, interference is easily caused and each line can only transmit one communication byte in the existing communication are solved, and the communication speed and the communication reliability are improved.
Optionally, the electronic device 10 may further include: a power output module 15; the power output module 15 is connected to the control module 13 and the power output terminal of the first charging interface 11.
For example: in the case where the electronic device 10 is a charging device (e.g., a charger), the power output module 15 is used to provide an energy output, and the voltage/current of the output can be adjusted to meet the charging requirement of the target device 20.
Optionally, in a case that the electronic device 10 is a charging device, the target device 20 is a power-consuming device, and a power loop module may be further included in the power-consuming device. The power circuit module is connected to the power receiving terminal in the second charging interface 21. When first charging port 11 and second charging port 21 are connected, the power output terminal and the power receiving terminal are electrically connected.
Optionally, the power loop module is further connected to a control module or a Micro Control Unit (MCU), a modem Unit, and an Application Programming Interface (API) in the electrical device, respectively. Specifically, the charging method for the electronic device and the target device is a conventional technique in the art, and is not described herein again.
The following describes the communication method provided in the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 4, an embodiment of the present application provides a communication method, which is applied to an electronic device, where the electronic device has a first charging interface, and the first charging interface includes a plurality of first data terminals; the method comprises the following steps:
step 41: and determining the conduction parameters under the condition that the first charging interface is connected with a second charging interface of the target equipment.
Wherein the conduction parameters are: and the number of the first data terminals and the second data terminals of the second charging interface which are communicated in a one-to-one correspondence manner is equal to the number of the second data terminals.
The electronic device determines the conduction parameters of the electronic device connected with the target device in the following manner:
the first method is as follows: the electronic equipment respectively sends signals to the target equipment through each first data terminal, and under the condition that the signals fed back by the target equipment are received through the corresponding first data terminals, the first data terminals are determined to be conducted with the second data terminals on the target equipment, so that the conduction parameters of the electronic equipment and the target equipment can be determined according to the conduction quantity of the data terminals between the first charging interface and the second charging interface.
The second method comprises the following steps: under the condition that the first charging interface is not connected with the second charging interface, each first data terminal in the first charging interface is in a low level state, and when the first data terminal is conducted with a second data terminal in the second charging interface, the first data terminal is in a high level state, so that whether the corresponding first data terminal is conducted with the second data terminal or not can be determined by acquiring potential change on the first data terminal, and accordingly conducting parameters of connection between the electronic device and the target device can be determined according to the quantity of conducting data terminals between the first charging interface and the second charging interface.
Step 42: and determining a line transmission mode corresponding to the conduction parameter.
Alternatively, taking the charging interface of the TYP-C type as an example, the charging interface of the TYP-C type has 4 data terminals (A, B, C, D), i.e. the first charging interface 11 may have at most 4 communication paths when connected to the second charging interface 21. Wherein, the corresponding relation between the conduction parameter and the line transmission mode of the first charging interface 11 and the second charging interface 21 includes:
single-line mode: only any 1 line is connected and conducted (for example, the line A is conducted, the line B is conducted, the line C is conducted, or the line D is conducted in the figure 1); the corresponding line transmission mode is a single-wire transmission mode, that is, data transmission is performed through one conducting line.
Two-wire mode: only any 2 lines are connected and conducted (such as A, B lines, C, D lines, A, C lines, A, D lines, B, C lines, or B, D lines in fig. 1); the corresponding line transmission mode is a two-wire transmission mode, namely data transmission is carried out through the conducted 2 lines.
Three-wire mode: only any 3 lines are connected and conducted (such as A, B, C lines in fig. 1, A, C, D lines in conduction, A, B, D lines in conduction, or B, C, D lines in conduction); the corresponding line transmission is in a three-line transmission mode, that is, data transmission is performed through the conducted 3 lines.
Four-wire mode: only any 4 lines are connected and conducted (such as A, B, C, D lines in fig. 1 are conducted); the corresponding line transmission mode is a four-wire transmission mode, that is, data transmission is performed through the conducted 4 lines.
Step 43: and the electronic equipment and the target equipment perform signal transmission according to the line transmission mode.
In the above scheme, under the condition that the first charging interface is connected with the second charging interface of the target device, the signal transmission between the electronic device and the target device is performed according to the line transmission mode by switching to the line transmission mode corresponding to the connection parameters of the first charging interface and the second charging interface. Therefore, under the condition that partial data contact is poor or the partial data contact is damaged possibly existing between the first charging interface of the electronic equipment and the second charging interface of the target equipment, the corresponding line transmission mode can be switched based on the conduction parameters of the connection between the first charging interface and the second charging interface, the reliability of data transmission is ensured, and the abnormal resistance is improved.
Optionally, the signal transmission between the electronic device and the target device according to the line transmission mode includes:
the electronic equipment divides a signal to be transmitted into M signal blocks according to the line transmission mode;
and transmitting the M signal blocks to the target device through M groups of first data terminals and second data terminals which are conducted in a one-to-one correspondence manner.
A group of correspondingly conducted first data terminals and second data terminals correspondingly transmit a signal block, and M is a positive integer.
Optionally, when dividing the signal to be transmitted into M signal blocks, dividing the signal to be transmitted into M signal blocks according to a time unit, as shown in fig. 3; accordingly, the received M signal blocks may be combined in chronological order on the target device side. The frequency of each signal block is consistent with that of the signal to be transmitted, and the transmitted data volume is unchanged, but is accelerated to the original 1/M in transmission time, so that the communication speed and reliability are improved.
Optionally, the signal transmission between the electronic device and the target device according to the line transmission mode includes:
receiving M signal blocks sent by the target equipment through M groups of first data terminals and second data terminals which are conducted in a one-to-one correspondence manner;
and synthesizing the M signal blocks to obtain synthesized signals.
In the embodiment of the present invention, when performing signal transmission, the target device and the electronic device may perform similar functions, that is, the target device may also switch the corresponding line transmission mode according to the conduction parameter of the connection between the first charging interface and the second charging interface, so as to perform data transmission.
Therefore, the electronic device can receive the split signal blocks transmitted by the target device under the condition that the signal to be transmitted is split and then transmitted to the target device. The electronic equipment obtains a complete signal by time sequence synthesis under the condition of receiving a plurality of signal blocks transmitted by the target equipment, and obtains corresponding signal content by demodulation processing, so that the electronic equipment can execute corresponding functions according to the demodulated signal.
Optionally, determining a conduction parameter of the connection between the first charging interface and a second charging interface of the target device when the first charging interface is connected to the second charging interface includes:
under the condition that the first charging interface is connected with a second charging interface of the target device, the electronic device performs data transmission with the target device through a first protocol;
after the electronic equipment performs data transmission with the target equipment through the first protocol, the electronic equipment performs data transmission with the target equipment through a second protocol under the condition that the target equipment is determined to be charging equipment;
and determining the conduction parameters under the condition that the electronic equipment is matched with the target equipment after the electronic equipment performs data transmission with the target equipment through a second protocol.
Alternatively, the first protocol may be BC1.2(Battery Charging v1.2) Charging protocol for determining the power type, i.e. whether the target device is a Charging device in case the electronic device is a powered device.
Alternatively, the second protocol may be a PD charging protocol, a QC fast charging protocol, a proprietary protocol, a normal non-fast charging protocol, etc. to further determine the charging type of the charging device if the target device is the charging device. In this way, when the type of the charging device is determined, the corresponding line transmission mode is switched to perform data transmission based on the conduction parameter between the electronic device and the target device.
As shown in fig. 5, the communication method of the present application is specifically described with reference to an electronic device as an example:
step 501: when the electric equipment detects that the target equipment is accessed to the charging interface of the electric equipment, a communication request is initiated, and whether the target equipment is the charging equipment (namely a charger) is confirmed through BC 1.2. If the detection BC1.2 does not pass, the following step 502 is executed; if the detection BC1.2 passes, the following step 503 is executed to detect the quick charging type of the charging device, and if it is determined that the charging device is a charger of the following type: PD charger, QC fast charger, private agreement charger, ordinary non-fast charger.
Step 502: charging is performed at the lowest power.
Step 503: and detecting whether the CC port can communicate. If communication is possible, the following step 504 is executed; if not, the following step 508 is performed.
Step 504: it is judged whether or not preset communication is possible. If the preset communication is possible, the following step 505 is executed, and if not, the following step 506 is executed.
Step 505: and determining a line transmission mode according to the conduction parameters. For example: when only 1 line connection is detected, a single line transmission mode is selected; when detecting that 2 lines are connected, selecting a double-line transmission mode; when 3 lines are detected to be connected, a three-line transmission mode is selected; and when detecting that 4 lines are connected, selecting a four-wire transmission mode.
Step 506: and charging according to the compatible CC protocol.
Step 507: and carrying out data transmission according to the determined transmission mode. For example: in a multi-line transmission mode, a signal processing module is used for modulating and decomposing a complete signal into signal blocks for transmission, and target equipment receives the signal blocks and then demodulates and synthesizes the signal blocks to obtain the complete signal.
Step 508: and detecting whether the D +/D-can communicate. If communication is possible, the following step 509 is executed, and if communication is not possible, the following step 511 is executed.
Step 509: it is judged whether or not preset communication is possible. If the preset communication is possible, the above step 505 is executed, and if not, the following step 510 is executed.
Step 510: and charging is carried out according to a compatible D +/D-protocol.
Step 511: it is judged whether or not preset communication is possible. If the preset communication is possible, the above step 505 is executed, and if not, the following step 512 is executed.
Step 512: ending communication, charging according to common protocol
In the above scheme, the electric equipment detects the fast charging type, and when the charging equipment is detected to be a nonstandard fast charging charger, the corresponding fast charging protocol can be self-adapted through a grouping control unit in the electric equipment. Or when the charging equipment detects that the electric equipment is non-standard electric equipment, the corresponding power can be provided through the corresponding communication protocol of the charging equipment which is self-adaptive to the grouping control unit in the charging equipment, so that good compatibility can be obtained.
In the communication method provided in the embodiment of the present application, the execution main body may be a communication device, or a control module in the communication device for executing the communication method. For example: the communication device may be the electronic device in the above embodiment of the electronic device or a control module in the electronic device, and is not described herein again to avoid repetition.
The communication device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The communication device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The communication device provided in the embodiment of the present application can implement each process implemented in the method embodiments of fig. 4 and fig. 5, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the communication method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The interface unit 708 may include a charging interface, such as a first charging interface including a plurality of first data terminals.
Optionally, the processor 710 is configured to: determining a conduction parameter under the condition that the first charging interface is connected with a second charging interface of the target device; determining a line transmission mode corresponding to the conduction parameter; the electronic equipment and the target equipment perform signal transmission according to the line transmission mode; wherein the conduction parameters are: and the number of the first data terminals and the second data terminals of the second charging interface which are communicated in a one-to-one correspondence manner is equal to the number of the second data terminals.
Optionally, the processor 710 is further configured to: the electronic equipment divides a signal to be transmitted into M signal blocks according to the line transmission mode; transmitting the M signal blocks to the target device through M groups of first data terminals and second data terminals which are conducted in a one-to-one correspondence manner; a group of correspondingly conducted first data terminals and second data terminals correspondingly transmit a signal block, and M is a positive integer.
Optionally, the processor 710 is further configured to: receiving M signal blocks sent by the target equipment through M groups of first data terminals and second data terminals which are conducted in a one-to-one correspondence manner; and synthesizing the M signal blocks to obtain synthesized signals.
Optionally, the processor 710 is further configured to: under the condition that the first charging interface is connected with a second charging interface of the target device, the electronic device performs data transmission with the target device through a first protocol; after the electronic equipment performs data transmission with the target equipment through the first protocol, the electronic equipment performs data transmission with the target equipment through a second protocol under the condition that the target equipment is determined to be charging equipment; and determining a conduction parameter between the first charging interface and the second charging interface under the condition that the electronic equipment is matched with the target equipment after the electronic equipment performs data transmission with the target equipment through a second protocol.
In the electronic device 700 in the above scheme, when the first charging interface is connected to the second charging interface of the target device, the signal transmission between the electronic device and the target device is performed according to the line transmission mode by switching to the line transmission mode corresponding to the conduction parameter of the connection between the first charging interface and the second charging interface. Therefore, under the condition that partial data contact is poor or the partial data contact is damaged possibly existing between the first charging interface of the electronic equipment and the second charging interface of the target equipment, the corresponding line transmission mode can be switched based on the current conduction parameters of the first charging interface and the second charging interface, the reliability of data transmission is ensured, and the abnormal resistance is improved.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the communication method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the communication method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. An electronic device, comprising:
a first charging interface comprising a plurality of first data terminals;
the control module is connected with each first data terminal through the signal processing module;
under the condition that the first charging interface is connected with a second charging interface of the target equipment, the control module switches the signal processing module to be in a line transmission mode corresponding to the conduction parameter, and the electronic equipment and the target equipment perform signal transmission according to the line transmission mode;
wherein the conduction parameters are: and the number of the first data terminals and the second data terminals of the second charging interface which are communicated in a one-to-one correspondence manner is equal to the number of the second data terminals.
2. The electronic device of claim 1, wherein the line transfer mode is: and carrying out signal transmission through the first data terminal and the second data terminal which are conducted in one-to-one correspondence.
3. The electronic device according to claim 1, wherein the signal processing module is configured to divide a signal to be transmitted into M signal blocks according to the line transmission mode, and transmit the M signal blocks to the target device through M groups of first data terminals and second data terminals that are in one-to-one correspondence;
a group of correspondingly conducted first data terminals and second data terminals correspondingly transmit a signal block, and M is a positive integer.
4. The electronic device according to claim 1, wherein the signal processing module is configured to perform synthesis processing on M signal blocks sent by the target device through M groups of first data terminals and second data terminals that are turned on in a one-to-one correspondence manner, and transmit a synthesized signal to the control module.
5. The electronic device of claim 1, wherein the signal processing module comprises:
a grouping control unit through which the control module is connected to each of the first data terminals, respectively;
the control module is connected with the grouping control unit through the modulation and demodulation unit;
the grouping control unit is used for detecting the conduction parameters and feeding back the conduction parameters to the control module; the control module is used for controlling the modulation and demodulation unit to modulate signals and switching the line transmission mode of the packet control unit according to the conduction parameters fed back by the packet control unit; the packet control unit is further configured to transmit the signal to be transmitted, which is modulated and processed by the modulation and demodulation unit, to the target device according to the line transmission mode.
6. The electronic device of claim 1, further comprising:
the signal processing module is respectively connected with each first data terminal through the plurality of filtering modules; wherein one of the filter modules is connected to one of the first data terminals.
7. The communication method is applied to an electronic device, wherein the electronic device is provided with a first charging interface, and the first charging interface comprises a plurality of first data terminals; the method comprises the following steps:
determining a conduction parameter under the condition that the first charging interface is connected with a second charging interface of the target device; wherein the conduction parameters are: the number of the first data terminals and the second data terminals of the second charging interface which are in one-to-one correspondence conduction is less than the number of the second data terminals of the second charging interface which are in one-to-one correspondence conduction;
determining a line transmission mode corresponding to the conduction parameter;
and the electronic equipment and the target equipment perform signal transmission according to the line transmission mode.
8. The communication method according to claim 7, wherein the signal transmission between the electronic device and the target device according to the line transmission mode includes:
the electronic equipment divides a signal to be transmitted into M signal blocks according to the line transmission mode;
transmitting the M signal blocks to the target device through M groups of first data terminals and second data terminals which are conducted in a one-to-one correspondence manner;
a group of correspondingly conducted first data terminals and second data terminals correspondingly transmit a signal block, and M is a positive integer.
9. The communication method according to claim 7, wherein the signal transmission between the electronic device and the target device according to the line transmission mode includes:
receiving M signal blocks sent by the target equipment through M groups of first data terminals and second data terminals which are in one-to-one correspondence conduction;
and synthesizing the M signal blocks to obtain synthesized signals.
10. The communication method according to claim 7, wherein the determining the conduction parameter in the case that the first charging interface is connected with a second charging interface of the target device comprises:
under the condition that the first charging interface is connected with a second charging interface of the target device, the electronic device performs data transmission with the target device through a first protocol;
after the electronic equipment performs data transmission with the target equipment through the first protocol, the electronic equipment performs data transmission with the target equipment through a second protocol under the condition that the target equipment is determined to be charging equipment;
and determining the conduction parameters under the condition that the electronic equipment is matched with the target equipment after the electronic equipment performs data transmission with the target equipment through a second protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011549653.7A CN112702083B (en) | 2020-12-24 | 2020-12-24 | Electronic device and communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011549653.7A CN112702083B (en) | 2020-12-24 | 2020-12-24 | Electronic device and communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112702083A CN112702083A (en) | 2021-04-23 |
CN112702083B true CN112702083B (en) | 2022-08-12 |
Family
ID=75509819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011549653.7A Active CN112702083B (en) | 2020-12-24 | 2020-12-24 | Electronic device and communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112702083B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN205985619U (en) * | 2016-08-30 | 2017-02-22 | 王竞 | Data interface apparatus |
CN107959545A (en) * | 2016-10-17 | 2018-04-24 | 中兴通讯股份有限公司 | Data transmission method and device, mobile phone, data card |
CN107579559B (en) * | 2017-08-29 | 2019-03-05 | 维沃移动通信有限公司 | A kind of Type-C interface charging circuit, charge control method and electronic equipment |
US11011945B2 (en) * | 2018-12-21 | 2021-05-18 | Western Digital Technologies, Inc. | Systems and methods for wireless charging and wired data transfer |
CN109888884B (en) * | 2019-03-28 | 2020-09-18 | 维沃移动通信有限公司 | Charging circuit, terminal equipment, charging interface and charging equipment |
-
2020
- 2020-12-24 CN CN202011549653.7A patent/CN112702083B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112702083A (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102263904B (en) | Method and system for controlling double cameras and electronic equipment with double cameras | |
EP3101754B1 (en) | Charging mode switching circuit and method | |
CN105045548A (en) | Wireless screen transmission method, expansion equipment and wireless screen transmission system | |
US20220030651A1 (en) | Dual-network dual-system mobile device | |
CN112269086B (en) | Charging cable identification method and device, charging cable and readable storage medium | |
CN111490578A (en) | Charging control method and device | |
CN106877462B (en) | A kind of method and charger detecting charged state | |
CN112134337A (en) | Power adapter, terminal device, electronic device and charging control method thereof | |
CN103677239A (en) | Wireless display terminal control method and device | |
US20230378767A1 (en) | Charging control method and apparatus, electronic device, and charger | |
CN202975723U (en) | Household intelligent controller and remote household control system | |
CN213399565U (en) | Charging circuit and electronic device | |
WO2024051563A1 (en) | Electronic device, charging device, and charging control method | |
CN112702083B (en) | Electronic device and communication method | |
CN104378577A (en) | Information processing method and electronic equipment | |
CN106488537B (en) | Sending method, device and mobile terminal | |
CN205961263U (en) | Multisystem instructor in broadcasting's equipment | |
CN113364845B (en) | File transmission method and device | |
EP3048858A1 (en) | Wireless customer premise equipment and accessing method therefor | |
CN111104361B (en) | Serial port number query method and device, computer equipment and storage medium | |
CN111969686A (en) | Mobile terminal for concurrent USB OTG and charging and implementation method | |
CN210155656U (en) | Interactive flat plate with Type-C interface and interactive flat plate system | |
CN113922522A (en) | Wireless charging management method, system, electronic device and storage medium | |
CN104009808B (en) | Terminal device and its data transmission method | |
CN112702463A (en) | Electronic device and communication method |
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 |