Detailed Description
In order to make the technical solutions of the present application better understood, 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 only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, system, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In addition, the electronic device according to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
In the present embodiment, the connection means electrical connection.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a reverse charging and data transmission shared system disclosed in an embodiment of the present application, and as shown in fig. 1, the system includes a first device 10, a second device 20, a third device 30, and a multiplexing data line 40, the first device 10 includes a first interface 11, a controller 12, and a charging module 13, the second device 20 includes a second interface 21, the third device 30 includes a third interface 31, the multiplexing data line 40 includes a first connector 41, a second connector 42, a third connector 43, and a switching chip 44, where:
the first connector 41 is connected with the first interface 11, the second connector 42 is connected with the second interface 21, and the third connector 43 is connected with the third interface 31; the power pin 411 of the first connector 41 is connected with the power pin 421 of the second connector 42 and the power pin 431 of the third connector 43;
when the switching chip 44 controls the data pin of the first connector 41 to communicate with the data pin of the second connector 42, the controller 12 is configured to detect whether the second device 20 is a device to be charged and detect an allowable charging current of the second device 20, and if the second device 20 is the device to be charged and the allowable charging current of the second device 20 is a first target charging current, control the charging module 13 to charge the second device 20 with the first target charging current;
when the switching chip 44 controls the data pin of the first connector 41 to communicate with the data pin of the third connector 43, the controller 12 is configured to detect whether the third device 30 is a data transmission device, and if the third device 30 is a data transmission device, control the first interface 11 to perform data transmission with the third device 30.
In the embodiment of the present application, the data pins of the first connector 41 include a positive data pin 412 and a negative data pin 413, the data pins of the second connector 42 include a positive data pin 422 and a negative data pin 423, and the data pins of the second connector 43 include a positive data pin 432 and a negative data pin 433. The first interface 11 includes a power supply pin 111, a positive data pin 112, a negative data pin 113, a ground pin 114, and a detection pin 115, the second interface 21 includes a power supply pin 211, a positive data pin 212, a negative data pin 213, and a ground pin 214, and the third interface 31 includes a power supply pin 311, a positive data pin 312, a negative data pin 313, and a ground pin 314.
When the first connector 41 is connected to the first interface 11, the positive data pin 412 and the negative data pin 413 of the first connector 41 are respectively connected to the positive data pin 112 and the negative data pin 113 of the first interface 11, the power pin 411 of the first connector 41 is connected to the power pin 111 of the first interface 11, the ground pin 414 of the first connector 41 is connected to the ground pin 114 of the first interface 11, and the detection pin 415 of the first connector 41 is connected to the detection pin 115 of the first interface 11.
When the second connector 42 is connected to the second interface 21, the positive data pin 422 and the negative data pin 423 of the second connector 42 are respectively connected to the positive data pin 212 and the negative data pin 213 of the second interface 21, the power pin 421 of the second connector 42 is connected to the power pin 211 of the second interface 21, and the ground pin 424 of the second connector 42 is connected to the ground pin 214 of the second interface 21.
When the third connector 43 is connected to the third interface 31, the positive data pin 432 and the negative data pin 433 of the third connector 43 are respectively connected to the positive data pin 312 and the negative data pin 313 of the third interface 31, the power pin 431 of the third connector 43 is connected to the power pin 311 of the third interface 31, and the ground pin 434 of the third connector 43 is connected to the ground pin 314 of the third interface 31.
The switching chip 44 may include a power supply terminal 447, wherein the switching chip 44 starts to operate when the power supply terminal 447 of the switching chip 44 detects the power supply voltage output by the first connector 411. Wherein, the supply voltage can be 5V.
The switching chip 44 may further include a memory in which program instructions are stored, which, when the power supply terminal 447 of the switching chip 44 detects a power supply voltage, trigger the switching chip 44 to execute the program instructions including the following steps.
(11) The switching chip 44 controls the data pin of the first connector 41 to communicate with the data pin of the second connector 42;
(12) the switching chip 44 controls the data pin of the first connector 41 to communicate with the data pin of the third connector 43.
The time interval between the step (11) and the step (12) is a preset time interval, and the preset time interval can be preset and stored in the memory of the switching chip. For example, the preset time interval may be set to 5 seconds.
When the switching chip 44 executes the step (11), the first interface 11 of the first device 10 is connected to the second interface 21 of the second device 20, at this time, the power pin 111 of the first interface 11 is connected to the power pin 211 of the second interface 21, the positive data pin 112 of the first interface 11 is connected to the positive data pin 212 of the second interface 21, the negative data pin 113 of the first interface 11 is connected to the negative data pin 213 of the second interface 21, and the ground pin 114 of the first interface 11 is connected to the ground pin 214 of the second interface 21. At this time, the controller 12 of the first device 10 may detect whether the second device 20 is a device to be charged and detect the allowable charging current of the second device 20 through the positive data pin 112 and the negative data pin 113 of the first interface 11, and if the second device 20 is the device to be charged and the allowable charging current of the second device 20 is the first target charging current, control the charging module 13 to charge the second device 20 with the first target charging current.
When the switching chip 44 executes the step (12), the first interface 11 of the first device 10 is connected to the third interface 31 of the third device 30, at this time, the power pin 111 of the first interface 11 is connected to the power pin 311 of the third interface 31, the positive data pin 112 of the first interface 11 is connected to the positive data pin 312 of the third interface 31, the negative data pin 113 of the first interface 11 is connected to the negative data pin 313 of the third interface 31, and the ground pin 114 of the first interface 11 is connected to the ground pin 314 of the third interface 31. At this time, the controller 12 of the first device 10 may detect whether the third device 30 is a data transmission device through the positive data pin 112 and the negative data pin 113 of the first interface 11, and if the third device 30 is a data transmission device, the controller is configured to control the first interface 11 and the third device 30 to perform data transmission. When the first device 10 and the third device 30 perform data transmission, the power pin 111 of the first interface 11 is still connected to the power pin 311 of the third interface 31, and at this time, the power pin 111 of the first interface 11 supplies power to the power pin 311 of the third interface 31, and is not charged to the power pin 311 of the third interface 31, that is, the current of the power pin 311 of the third interface 31 is small.
It should be noted that, when the switching chip 44 executes step (12), the power pin 111 of the first interface 11 is still connected to the power pin 211 of the second interface 21, and at this time, the first device 10 can still charge the second device 20.
In the embodiment of the application, the first device can perform reverse charging to the second device and perform data transmission with the third device, the function multiplexing of the reverse charging and the data transmission of the first device is realized through the multiplexing data line, and the reverse charging and the data transmission can be performed with two external devices at the same time respectively.
Optionally, as shown in fig. 1, when the first connector 41 is connected to the first interface 11, the detection pin 415 of the first connector 41 is connected to the detection pin 115 of the first interface 11, the power pin 411 of the first connector 41 is connected to the power pin 111 of the first interface 11, and the detection pin 415 of the first connector 41 is grounded;
the controller 12 is further configured to control the charging module 13 to output a power voltage to the power pin 111 of the first interface 11 when detecting that the detection pin 115 of the first interface 11 is grounded.
In the embodiment of the present application, the detection pin 115 of the first interface 11 may detect whether the detection pin 415 of the first connector 41 is grounded to determine whether the first device 10 is a master device or a slave device. If the detection pin 115 of the first interface 11 detects that the detection pin 415 of the first connector 41 is grounded, the first device 10 determines that the first device is a master device, and controls the charging module 13 to output a power voltage to the power pin 111 of the first interface 11 to supply power to slave devices (such as the second device 20 and the third device 30 shown in fig. 1), so that the first device 10 can reversely charge the second device 20 and the third device 30. If the detection pin 115 of the first interface 11 detects that the detection pin 415 of the first connector 41 is not grounded, the first device 10 determines that the first device is a slave device, and the power pin 111 of the first interface 11 may receive a voltage input by an external device, and may receive the voltage input by the external device to charge the external device.
Optionally, the manner for the controller 12 to detect whether the second device 20 is a device to be charged is specifically as follows:
the controller 12 detects whether the current of the data pin of the first connector 41 is in a first preset current interval.
In the embodiment of the present application, the data pins of the first connector 41 may include a positive data pin 412 and a negative data pin 413. If the second device 20 is a device to be charged, the positive data pin 212 or the negative data pin 213 of the second interface 21 of the second device 20 is grounded through a first specific resistance. Generally, the larger the allowable charging current of the device to be charged, the smaller the first specific resistance. For example, the first predetermined current interval may be between 0.5mA and 5 mA.
Optionally, the manner for the controller 12 to detect the allowable charging current of the second device 20 is specifically as follows:
the controller 12 determines a first target charging current corresponding to the current of the data pin of the first connector 41 according to the correspondence between the data pin current and the allowable current.
In the embodiment of the present application, the corresponding relationship between the data pin current and the allowable current may be pre-established and stored in the memory of the controller 12. Referring to table 1, table 1 is a table of correspondence between pin currents and allowable currents disclosed in the embodiments of the present application.
TABLE 1
| Pin current (mA)
|
Allowable Current (mA)
|
| 0.5-1
|
500
|
| 1-3
|
1000
|
| 3-5
|
2000 |
As shown in table 1, different pin current intervals correspond to different allowable currents. The allowed current is the maximum charging current allowed for the second device 20.
Optionally, the manner for the controller 12 to detect whether the third device 30 is a data transmission device specifically includes:
the controller 12 detects whether the current of the data pin of the first connector 41 is in a second preset current interval, where the first preset current interval and the first preset current interval do not intersect. If the third device 30 is a data transfer device, the positive data pin 312 or the negative data pin 313 of the third interface 31 of the third device 30 is in a floating state. The current of the data pin of the first connector 41 is very small, close to 0 mA.
The second preset circuit interval is smaller than the second preset current interval. For example, the second predetermined current interval may be between 0mA and 0.5 mA.
It should be noted that, when it is detected that the third device 30 is a data transmission device, the power pin 111 of the first interface 11 may supply power to the power pin 311 of the third interface 31. The supply current is small, for example, the supply current of the power pin 111 of the first interface 11 can supply 25mA to the power pin 311 of the third interface 31.
Optionally, please refer to fig. 2, and fig. 2 is a schematic structural diagram of a first device disclosed in the embodiment of the present application. As shown in fig. 2, the charging module 13 includes a battery 131 and a booster circuit 132;
the output port 1311 of the battery 131 is connected to the input port 1321 of the booster circuit 132, and the output port 1322 of the booster circuit 132 is connected to the power supply pin 111 of the first interface 11.
The boosting circuit 132 may boost the voltage (e.g., 4.35V) of the battery 131 to a voltage (e.g., 5V) of a charging standard, among others. The boost circuit 132 may also be referred to as a boost circuit.
Optionally, the controller 12 is further configured to decrease the charging current output by the charging module 13 to the second device 20 when the charge of the battery 131 is lower than a preset charge threshold.
In this embodiment, the first device 10 may adjust the charging current output by the charging module according to the electric quantity of its own battery. For example, the first device 10 may decrease the charging current output by the charging module 13 when the electric quantity of the battery of the first device is lower than the preset electric quantity threshold, so that the charging current output by the charging module 13 is smaller than the first target current. The preset charge threshold may be preset, for example, the preset charge threshold may be set to 40% of the total charge of the battery.
For example, if the maximum charging current allowed by the first device 10 is 1000mA when the first device 10 charges the second device 20, when the battery capacity of the first device 10 is detected to be lower than 40%, the charging current output by the charging module 13 of the first device 10 is reduced from 1000mA to 100mA to prevent the battery capacity of the first device 10 from being rapidly consumed.
Optionally, the controller 12 is further configured to decrease the charging current output by the charging module 13 to the second device 20 when the supply current of the battery 131 in the first device 10 exceeds a preset current threshold.
First equipment 10 can reduce the charging current that charging module 13 exported to second equipment 20 when the supply current of self is great, can guarantee the stability of battery work, avoids appearing the battery output total current too big condition that leads to first equipment 10 to generate heat.
Optionally, as shown in fig. 3, the first device 10 further includes a display device 14, where the display device 14 is configured to receive a charging current adjustment instruction input by a user, the charging current adjustment instruction is used to adjust a current that the first device 10 charges the second device 20 within a third preset current interval, and an upper limit of the third preset current interval is the first target charging current.
In the embodiment of the present application, for example, if the maximum charging current operated by the second device 20 is 1000mA, a charging current adjustment progress bar may be displayed on the display device 14. As shown in fig. 3, the user may adjust the current of the first device 10 to the second device 20 from 1000mA to 700mA by sliding a finger on the charging current adjustment progress bar. The embodiment of the application can actively and flexibly adjust the current of the first device 10 to charge the second device 20 by the user.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a multiplexing data line disclosed in an embodiment of the present application, as shown in fig. 4, the multiplexing data line 40 is used to connect the first device 10 and the second device 20, the multiplexing data line 40 is also used to connect the first device 10 and the third device 30, the multiplexing data line 40 includes a first connector 41, a second connector 42, a third connector 43 and a switching chip 44, the first connector 41 includes a first power pin 411, a first positive data pin 412, a first negative data pin 413, a first ground pin 414 and a first detection pin 415; the second connector 42 includes a second power supply pin 421, a second positive data pin 422, a second negative data pin 423, and a second ground pin 424; the third connector 43 includes a third power supply pin 431, a third positive data pin 432, a third negative data pin 433, and a third ground pin 434; the switching chip 44 includes a first selection port 441, a second selection port 442, a first positive data port 443, a first negative data port 444, a second positive data port 445, and a second negative data port 446;
the first power pin 411 is connected with the second power pin 421 and the third power pin 431, the first positive data pin 412 is connected with the first selection port 441, the first negative data pin 413 is connected with the second selection port 442, the first positive data port 443 is connected with the second positive data pin 422, the first negative data port 444 is connected with the second negative data pin 423, the second positive data port 445 is connected with the third positive data pin 432, and the second negative data port 446 is connected with the third negative data pin 433;
the first connector 41 is inserted into the first device 10, the second connector 42 is inserted into the second device 20, and the third connector 43 is inserted into the third device 30;
when the switching chip 44 controls the first selection port 441 to be connected to the first positive data port 443 and controls the second selection port 442 to be connected to the first negative data port 444, the first device 10 is configured to detect whether the second device 20 is a device to be charged and detect a charging current of the second device 20, and if the second device 20 is a device to be charged and the charging current of the second device 20 is the first target charging current, the first device 10 is configured to charge the second device 20 with the first target charging current.
Optionally, when the switching chip 44 controls the first selection port 441 to be connected to the second positive data port 445 and controls the second selection port 442 to be connected to the second negative data port 446, the first device 10 is configured to detect whether the third device 30 is a data transmission device, and if the third device 30 is a data transmission device, the first device 10 is configured to perform data transmission with the third device 30.
In the embodiment of the present application, the first connector 41 of the multiplexed data line 40 is connected to the first device 10, the second connector 42 is connected to the second device 20, and the third connector 43 is connected to the third device 30. The first device 10 is a master device, and the first device 10 may charge the second device 20 or may perform data transmission to the third device 30. By using the multiplexing data line shown in fig. 4, the function multiplexing of the reverse charging and the data transmission of the first device is realized, and the first device can simultaneously perform the reverse charging and the data transmission with two external devices respectively.
The embodiment of the application also discloses an electronic device. The electronic device may refer to the first apparatus shown in fig. 2 or fig. 3. The electronic device comprises a first interface, a controller and a charging module, wherein a first joint of a multiplexing data line is inserted into the first interface, the multiplexing data line also comprises a second joint and a third joint, the second joint is inserted into an interface of equipment to be charged, and the third joint is inserted into an interface of data transmission equipment;
the electronic device is used for charging the equipment to be charged connected with the multiplexing data line through the charging module and is used for carrying out data transmission with the data transmission equipment connected with the multiplexing data line.
An electronic device is also provided in the embodiments of the present application, as shown in fig. 5, for convenience of description, only the relevant portions of the embodiments of the present application are shown, and details of the technology are not disclosed. The electronic device may be any terminal equipment including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the electronic device as the mobile phone as an example:
referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and fig. 5 illustrates a mobile phone as an example. Referring to fig. 5, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a Wireless Fidelity (WiFi) module 970, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 5, the fingerprint recognition module 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 4 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces (e.g., a UART interface and a USB interface) and lines, performs various functions of the mobile phone and processes data by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby monitoring the mobile phone as a whole. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an Application Processor (AP), which mainly handles operating systems, user interfaces, application programs, etc., and a Modem processor (Modem), which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
The mobile phone may further include a camera 9100, and the camera 9100 is used for shooting images and videos and transmitting the shot images and videos to the processor 980 for processing.
The mobile phone can also be provided with a Bluetooth module and the like, which are not described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the core concepts of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.