A communication method, a first electronic device, and a second electronic device
Patent Information
- Application Number
- CN202311413751.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-10-27
AI Technical Summary
但是,接口越多对应的故障点数量也会越多以及故障概率也会越高,影响接入的稳定性
Smart Images

Figure CN117459097B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a communication method, a first electronic device, and a second electronic device. Background Technology
[0002] Currently, in solutions where the first and second electronic devices can be connected, the first electronic device often has a large number of interfaces for connecting the second electronic device. However, the more interfaces there are, the more potential points of failure and the higher the probability of failure, affecting the stability of the connection. Summary of the Invention
[0003] This application provides the following technical solution:
[0004] This application provides a communication method, including:
[0005] The system determines that the second electronic device is connected to the power line interface of the first electronic device, supplies power to the second electronic device through the power line interface, and establishes a communication connection between the first electronic device and the second electronic device based on the power line interface while supplying power. Data transmission between the first electronic device and the second electronic device is realized through the communication connection established based on the power line interface.
[0006] The power line interface includes a first conductive interface and a second conductive interface. The first conductive interface is connected to the positive terminal of the power line of the first electronic device, and the second conductive interface is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device.
[0007] Determining the power line interface through which the second electronic device connects to the first electronic device includes:
[0008] The sensing device of the first electronic device determines that the second electronic device is connected to the power line interface of the first electronic device based on the sensing signal of the power line interface.
[0009] Establishing a communication connection between the first electronic device and the second electronic device based on the power line interface includes:
[0010] In response to determining that the second electronic device is connected to the power line interface of the first electronic device, the first communication chip of the first electronic device is switched from an idle state to a wake-up state. The first communication chip is used to modulate the communication data of the established communication connection into a communication signal with a preset carrier frequency for transmission to the second electronic device through the power line interface. The power consumption of the first communication chip in the idle state is lower than that in the wake-up state.
[0011] Data transmission between the first electronic device and the second electronic device is achieved through the communication connection established based on the power line interface, including:
[0012] The identity information of the second electronic device is obtained through the communication connection established based on the power line interface;
[0013] Data transmission between the first electronic device and the second electronic device is achieved based on the identity information of the second electronic device and the communication connection.
[0014] Data transmission between the first electronic device and the second electronic device is achieved through the communication connection established based on the power line interface, including:
[0015] The identity information of the third electronic device connected to the second electronic device is obtained through the communication connection established based on the power line interface;
[0016] Data transmission between the first electronic device and the second electronic device is achieved based on the identity information of the third electronic device and the communication connection.
[0017] This application also provides a first electronic device, comprising:
[0018] A power line interface is used to supply power to a second electronic device connected to a first electronic device;
[0019] A communication module is used to establish a communication connection between the first electronic device and the second electronic device based on the power line interface while power is being supplied, and to realize data transmission between the first electronic device and the second electronic device through the communication connection established based on the power line interface.
[0020] The power line interface includes a first conductive interface and a second conductive interface. The first conductive interface is connected to the positive terminal of the power line, and the second conductive interface is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device.
[0021] A third aspect of this application provides a first electronic device, comprising:
[0022] A first processor is configured to execute the communication method as described in any of the preceding aspects;
[0023] A first power line interface is used to connect to a second electronic device so that the first electronic device supplies power to the second electronic device. At the same time, a communication connection is established between the first communication chip and the second electronic device. The first power line interface includes a first conductive interface and a second conductive interface. The first conductive interface is connected to the positive terminal of the power line of the first electronic device, and the second conductive interface is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device.
[0024] The first communication chip is used to modulate data from the first processor into a communication signal with a preset carrier frequency and transmit it to the second electronic device, and to demodulate the communication signal from the second electronic device and transmit it to the first processor.
[0025] A fourth aspect of this application provides a second electronic device, comprising:
[0026] A keyboard is used to input keystrokes.
[0027] The second processor is used to control the transmission of the input key information to the second communication chip;
[0028] The second power line interface is used to connect to the first power line interface of the first electronic device;
[0029] The second communication chip is used to modulate the key information into a communication signal with a preset carrier frequency and transmit it to the first electronic device, and / or to demodulate the communication signal from the first electronic device and transmit it to the second processor. The second electronic device is an auxiliary device of the first electronic device.
[0030] The fifth aspect of this application provides a second electronic device, comprising:
[0031] The second power line interface is used to connect to the first power line interface of the first electronic device;
[0032] A connection interface is used to connect a second communication chip and a third electronic device; the connection interface conforms to a first communication protocol, and the power line interface conforms to a second communication protocol, wherein the first communication protocol and the second communication protocol are different;
[0033] The second communication chip is used to modulate data from the third electronic device into a communication signal with a preset carrier frequency and transmit it to the first electronic device, and to demodulate the communication signal from the first electronic device and transmit it to the third electronic device connected to the connection interface.
[0034] The connection interface is used to convert between the first communication protocol and the second communication protocol. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram of an implementation scenario of a communication method provided in this application;
[0037] Figure 2 This is a schematic diagram illustrating another implementation scenario of the communication method provided in this application;
[0038] Figure 3 This is a schematic diagram illustrating a connection between a first electronic device and a second electronic device provided in this application;
[0039] Figure 4 This is a schematic diagram illustrating another implementation scenario of the communication method provided in this application;
[0040] Figure 5 This is a schematic diagram illustrating another connection between a first electronic device and a second electronic device provided in this application;
[0041] Figure 6 This is a schematic diagram illustrating another connection between a first electronic device and a second electronic device provided in this application;
[0042] Figure 7 This is a schematic diagram illustrating another connection between a first electronic device and a second electronic device provided in this application;
[0043] Figure 8 This is a schematic diagram illustrating another implementation scenario of the communication method provided in this application;
[0044] Figure 9 This is a schematic diagram illustrating another implementation scenario of the communication method provided in this application;
[0045] Figure 10 This is a schematic diagram of the structure of a second electronic device provided in this application;
[0046] Figure 11 This is a schematic diagram illustrating another implementation scenario of the communication method provided in this application. Detailed Implementation
[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] This application provides a communication method that can be applied to electronic devices. This application does not limit the type of electronic device; see reference [link / reference]. Figure 1 The illustrated communication method scenario diagram shows that, in Embodiment 1 of this application, the method may include, but is not limited to, the following steps:
[0050] Step S101: Determine that the second electronic device is connected to the power line interface of the first electronic device, supply power to the second electronic device through the power line interface, and at the same time, establish a communication connection between the first electronic device and the second electronic device based on the power line interface, and realize data transmission between the first electronic device and the second electronic device through the communication connection established based on the power line interface.
[0051] The power line interface includes a first conductive interface and a second conductive interface. The first conductive interface is connected to the positive terminal of the power line of the first electronic device, and the second conductive interface is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device.
[0052] Corresponding to the first conductive interface and the second conductive interface, the second electronic device includes a third conductive interface and a fourth conductive interface. The positive terminals of the power lines of the second electronic device are connected through the third conductive interface, and the negative terminals of the power lines of the second electronic device are connected through the fourth conductive interface.
[0053] In this application, the interface types of the first and second conductive interfaces are not limited. For example, the first and second conductive interfaces may include, but are not limited to, a first metal contact and a second metal contact of a 2-pin POGO Pin. Corresponding to the implementation where the first and second conductive interfaces are 2-pin POGO Pins with first and second metal contacts, the third and fourth conductive interfaces may include a first spring-loaded pin and a second spring-loaded pin of the 2-pin POGO Pin, and the second electronic device can be connected to the first and second metal contacts of the first electronic device via the first and second spring-loaded pins.
[0054] In this embodiment, the first processor of the first electronic device can be connected to the first conductive interface and the second conductive interface via a power line connection. The first processor determines that the second electronic device is connected to the power line interface of the first electronic device and can send a first enable signal to the power supply module of the first electronic device to enable the power supply module to start supplying power.
[0055] In this embodiment, the power supply module of the first electronic device can be connected to the first conductive interface and the second conductive interface of the first electronic device via a power line connection, and supplies power to the second electronic device through the first conductive interface and the second conductive interface.
[0056] The power supply module of the first electronic device may include, but is not limited to, a power module, a DC / DC converter, and a power filter. The DC / DC converter is connected to the power module, and the power filter is connected to the DC / DC converter, a first conductive interface, and a second conductive interface. The DC / DC converter is used to convert the voltage output by the power module into a voltage that can be used by the second electronic device, and the power filter is used to filter out interference signals in the voltage signal output by the DC / DC converter.
[0057] While supplying power to the second electronic device through the first conductive interface and the second conductive interface, the first processor can establish a communication connection between the first electronic device and the second electronic device based on the first conductive interface and the second conductive interface, and realize data transmission between the first electronic device and the second electronic device through the communication connection established based on the first conductive interface and the second conductive interface.
[0058] The auxiliary devices of the first electronic device can be used to assist in the use of the first electronic device. In this application, there is no limitation on the type of auxiliary devices for the first electronic device.
[0059] It should be noted that, Figure 1 This is merely an example of a communication method and is not intended to limit the specific implementation of the first and second electronic devices.
[0060] In this embodiment, the first electronic device can supply power to the second electronic device, which is an auxiliary device, and the communication connection between the first electronic device and the second electronic device can be realized through the power line interface. This reduces the number of interfaces required for the first electronic device, thereby reducing the number of corresponding fault points and the probability of failure, improving the stability of power supply and communication, and enhancing the user experience of the first and second electronic devices.
[0061] As another optional embodiment of this application, this embodiment is mainly a refinement of the communication method described in Embodiment 1 above. In Embodiment 2 of this application, the step S101 of determining that the second electronic device is connected to the power line interface of the first electronic device may include, but is not limited to:
[0062] Step S1011: Determine that the second electronic device is connected to the power line interface of the first electronic device based on the sensing signal of the power line interface of the first electronic device's sensing device.
[0063] The sensing device of the first electronic device can sense the connection status of the power line interface to generate a sensing signal. The sensing signal can be sent to the first processor of the first electronic device. If the first processor receives the sensing signal, it can determine that the second electronic device is connected to the power line interface of the first electronic device.
[0064] This application does not limit the type of sensing device. For example, the sensing device may include, but is not limited to, a Hall sensor. The sensing area of a Hall sensor includes a power line interface, such as... Figure 2 As shown, a magnetic attraction area exists within the sensing area of the Hall sensor. In an implementation where the sensing device is a Hall sensor, the second electronic device may be equipped with a magnetic component. The magnetic field of the magnetic attraction area corresponding to the magnetic component on the second electronic device differs from the magnetic field of the magnetic attraction area on the first electronic device. If the second electronic device is connected to the power line interface of the first electronic device, the first and second electronic devices can be magnetically connected based on their respective magnetic attraction areas. If the Hall sensor senses a change in the magnetic field of the magnetic attraction area, it can generate an interrupt signal, which is transmitted to the first processor. Accordingly, if the first processor receives the interrupt signal, it can determine that the second electronic device is connected to the power line interface of the first electronic device.
[0065] In this embodiment, the first electronic device determines access by setting a sensing device, which simplifies the circuit design and access determination logic of the first electronic device.
[0066] As another optional embodiment of this application, this embodiment is mainly a refinement of the communication method described in Embodiment 1 above. In Embodiment 3 of this application, the step S101 of establishing a communication connection between the first electronic device and the second electronic device based on the power line interface may include, but is not limited to:
[0067] Step S1012: In response to determining that the second electronic device is connected to the power line interface of the first electronic device, the first communication chip of the first electronic device is switched from an idle state to a wake-up state. The first communication chip is used to modulate the communication data of the established communication connection into a communication signal with a preset carrier frequency for transmission to the second electronic device through the power line interface. The power consumption of the first communication chip in the idle state is lower than that in the wake-up state.
[0068] When the power line interface of the first electronic device is not connected to the second electronic device, the first communication chip of the first electronic device can be in an idle state.
[0069] Specifically, in response to determining that the second electronic device is connected to the power line interface of the first electronic device, the first processor may send a second enable signal to the first communication chip of the first electronic device, so that the first communication chip switches from an idle state to a wake-up state in response to the second enable signal.
[0070] The first communication chip, in a wake-up state, modulates the communication data used to establish the communication connection into a communication signal at a preset carrier frequency for transmission to the second electronic device via a power line interface. The second communication chip in the second electronic device responds to the communication signal from the first electronic device, modulating the response data into a communication signal at the preset carrier frequency and returning it to the first electronic device via its power line interface. The first electronic device, responding to the returned communication signal from the second electronic device, establishes a communication connection between itself and the second electronic device.
[0071] Specifically, the first communication chip can modulate the communication data used to establish the communication connection into a communication signal with a preset carrier frequency and transmit it to the second electronic device through a power line communication analog front-end (PLC AFE), a coupling circuit module (Coupling Unit), a high-pass filter (HPF), and a power line interface. Correspondingly, the second communication chip of the second electronic device can receive the communication signals from the first electronic device through the power line interface, high-pass filter (HPF), coupling circuit module (Coupling Unit), and power line communication analog front-end (PLC AFE) of the second electronic device. Similarly, the second communication chip can transmit communication signals to the first electronic device through the power line communication analog front-end (PLC AFE), coupling circuit module (Coupling Unit), high-pass filter (HPF), and power line interface of the second electronic device; correspondingly, the first communication chip can receive the communication signals from the second electronic device through the power line interface, high-pass filter (HPF), coupling circuit module (Coupling Unit), and power line communication analog front-end (PLC AFE) of the first electronic device.
[0072] The first communication chip may include, but is not limited to, a power line communication baseband processor (PLC Baseband Processor). Correspondingly, the second communication chip may include, but is not limited to, a power line communication baseband processor (PLC Baseband Processor), such as... Figure 3 As shown, if the Hall sensor of the first electronic device senses a change in the magnetic field of the magnetic attraction area, it can generate an interrupt signal and transmit the interrupt signal to the first processor. Correspondingly, if the first processor receives the interrupt signal, it can send a first enable signal (EN1) to the DC power converter and a second enable signal (EN2) to the power line communication baseband processor. In response to the first enable signal, the DC power converter starts to supply power to the second electronic device through the metal contacts of the power line interface. The second electronic device supplies power to the power line communication analog front end (PLC AFE), coupling circuit module (Coupling Unit), and high-pass filter (HPF) of the second electronic device through the power filter and the DC power converter.
[0073] In response to the second enable signal, the power line communication baseband processor switches from an idle state to a wake-up state and modulates the communication data for establishing the communication connection into a communication signal with a preset carrier frequency, which is then transmitted to the second electronic device through the power line communication analog front end (PLCAFE), coupling unit, high-pass filter (HPF), and metal contacts of the power line interface.
[0074] Accordingly, the power line communication baseband processor of the second electronic device can receive communication signals from the first electronic device through the spring pin, high-pass filter (HPF), coupling unit, and power line communication analog front end (PLC AFE) of the power line interface of the second electronic device. Figure 3 The process of the second electronic device transmitting communication signals to the first electronic device can be found in the process of the first electronic device transmitting communication signals to the second electronic device, and will not be repeated here.
[0075] Figure 3 In the PLC, RGMII stands for Simplified Gigabit Media Independent Interface, SPI stands for Serial Peripheral Interface, PLC_Tx stands for Power Communication Transmitter, and PLC_Rx stands for Power Communication Receiver.
[0076] It should be noted that, Figure 3 This is merely a circuit diagram of the first and second electronic devices and is not intended to limit the circuitry of the first and second electronic devices.
[0077] In this embodiment, the detailed process of determining the connection of the second electronic device to the power line interface of the first electronic device can be found in the relevant description in Embodiment 2, and will not be repeated here.
[0078] In this embodiment, in response to determining that the second electronic device is connected to the power line interface of the first electronic device, the first communication chip of the first electronic device is switched from an idle state to a wake-up state. This allows the first communication chip to be in an idle state before the second electronic device is connected to the power line interface of the first electronic device, thus saving power consumption of the first electronic device.
[0079] As another optional embodiment of this application, this embodiment is mainly a refinement of the communication method described in Embodiment 1 above. In Embodiment 4 of this application, the data transmission between the first electronic device and the second electronic device is realized through a communication connection established based on the power line interface in step S101, which may include, but is not limited to:
[0080] Step S1013: Obtain the identity information of the second electronic device through a communication connection established based on the power line interface.
[0081] Through a communication connection established based on a power line interface, the first electronic device can send a broadcast signal to the second electronic device, and in response to the broadcast signal, the second electronic device can send its identity information to the first electronic device based on the communication connection.
[0082] The identity information of the second electronic device can identify the identity of the second electronic device.
[0083] Step S1014: Data transmission between the first electronic device and the second electronic device is realized based on the identity information and communication connection of the second electronic device.
[0084] In this embodiment, the identity of the second electronic device can be determined based on its identity information, and the data content that can be transmitted between the first and second electronic devices can be determined based on its identity.
[0085] Based on the communication connection, data content that can be transmitted between the first electronic device and the second electronic device can be transmitted.
[0086] In this embodiment, data from the first electronic device can act on the second electronic device, and data sent from the second electronic device to the first electronic device originates from the second electronic device. The second electronic device may include, but is not limited to, a keyboard, a second processor, a second power line interface, and a second communication chip. The second power line interface may include a third conductive interface and a fourth conductive interface. The identity information of the second electronic device may include, but is not limited to, the network identifier and communication address of the second electronic device. For example, such as... Figure 4As shown, the first electronic device and the second electronic device can be connected via a first power line interface and a second power line interface.
[0087] The keyboard is used to input key information. A second communication chip is connected to a second processor. The second processor controls the transmission of the input key information to the second communication chip. The second communication chip modulates the key information into a communication signal with a preset carrier frequency and transmits it to the first electronic device via a second power line interface. The second power line interface is connected to the first power line interface of the first electronic device. The second communication chip can also receive communication signals from the first electronic device via the second power line interface, demodulate the communication signals from the first electronic device, and transmit them to the second processor. The communication signals from the first electronic device are communication signals modulated by the first communication chip from the data of the first electronic device into a communication signal with a preset carrier frequency.
[0088] For example, if the second power line interface is a 2-pin POGO Pin with a first and second spring-loaded pin, and the second communication chip is a power line communication baseband processor, such as... Figure 5 As shown, the power line communication baseband processor can demodulate the communication signal from the first electronic device and transmit it to the second processor; the second processor can control the key input from the keyboard to be transmitted to the power line communication baseband processor, and the power line communication baseband processor modulates the key input into a communication signal with a preset carrier frequency and transmits it to the first electronic device through the first spring pin and the second spring pin.
[0089] It should be noted that, Figure 4 and Figure 5 This is a simplified diagram and is not intended to limit the structure of the first and second electronic devices.
[0090] In this embodiment, the identity information of the second electronic device is obtained through a communication connection established based on the power line interface. Data transmission between the first and second electronic devices is realized based on the identity information of the second electronic device and the communication connection, so that the data of the first electronic device can be applied to the second electronic device, and / or the first electronic device can obtain data from the second electronic device.
[0091] Furthermore, by modulating the data into a communication signal with a preset carrier frequency and transmitting the communication signal to transmit the data, the security of data transmission between the first electronic device and the second electronic device can be improved.
[0092] As another optional embodiment of this application, this embodiment is mainly a refinement of the communication method described in Embodiment 1 above. In Embodiment 5 of this application, the data transmission between the first electronic device and the second electronic device is realized through a communication connection established based on the power line interface in step S101, which may include but is not limited to:
[0093] Step S1015: Obtain the identity information of the third electronic device connected to the second electronic device through the communication connection established based on the power line interface.
[0094] Through a communication connection established based on the power line interface, the first electronic device can send a broadcast signal to the second electronic device. In response to the broadcast signal, the second electronic device determines that a third electronic device has accessed the second electronic device and sends the identity information of the third electronic device to the first electronic device based on the communication connection.
[0095] The identity information of a third electronic device can characterize the identity of the third electronic device.
[0096] The second electronic device can be used to establish a connection between the first electronic device and the third electronic device. The second electronic device can transmit data from the first electronic device to the third electronic device, and vice versa.
[0097] Step S1016: Data transmission between the first electronic device and the second electronic device is realized based on the identity information and communication connection of the third electronic device.
[0098] The identity of the third electronic device can be determined based on its identity information, and the data content that can be transmitted between the first electronic device and the third electronic device can be determined based on its identity.
[0099] The first electronic device can transmit data content that can be transmitted between the first electronic device and the third electronic device to the second electronic device based on a communication connection, and the second electronic device can transmit data content from the first electronic device to the third electronic device.
[0100] The third electronic device can also transmit data content that can be transmitted between the first electronic device and the third electronic device to the second electronic device, and the second electronic device can transmit data content from the third electronic device to the first electronic device.
[0101] In this embodiment, the second electronic device may include, but is not limited to, a second power line interface, a connection interface, and a second communication chip.
[0102] The second power line interface can be connected to the first power line interface of the first electronic device. Corresponding to the first power line interface, which includes a first metal contact and a second metal contact of a 2-pin POGO Pin, the second power line interface may include a first spring-loaded pin and a second spring-loaded pin of the 2-pin POGO Pin.
[0103] The connection interface allows connection to a second communication chip and a third electronic device. The connection interface conforms to the first communication protocol, while the power line interface conforms to the second communication protocol; the first and second communication protocols are different. For example... Figure 6 As shown, the second communication chip (e.g., a power line communication baseband processor) can obtain data from the third electronic device through a connection interface. The second communication chip can modulate the data from the third electronic device into a communication signal with a preset carrier frequency, and transmit the communication signal to the first electronic device through the power line communication analog front-end (PLC AFE), coupling circuit module (HPF), high-pass filter (HPF), and power line interface of the second electronic device. Correspondingly, the first communication chip (e.g., a power line communication baseband processor) can receive the communication signals from the second electronic device through the power line interface, high-pass filter (HPF), coupling circuit module (HPF), and power line communication analog front-end (PLC AFE) of the first electronic device.
[0104] The first communication chip can modulate the data of the first electronic device into a communication signal with a preset carrier frequency and transmit it to the second electronic device through the power line communication analog front end (PLC AFE), coupling circuit module (Coupling Unit), high-pass filter (HPF), and power line interface. The second communication chip of the second electronic device can receive the communication signal of the first electronic device through the power line interface, high-pass filter (HPF), coupling circuit module (Coupling Unit), and power line communication analog front end (PLC AFE) of the second electronic device, and transmit the data of the first electronic device to the connection interface, which then transmits the data of the first electronic device to the third electronic device.
[0105] In this embodiment, as Figure 7 As shown, the connection interface may include, but is not limited to, a USB bridge and a USB interface. The USB bridge is used to connect the second communication chip and the USB interface. Corresponding to the USB interface, such as... Figure 8 As shown, the third electronic device can be a USB flash drive, or, as... Figure 9 As shown, the third electronic device can be a mouse or keyboard, etc., connected via a USB interface data cable.
[0106] The second communication chip can modulate data from the third electronic device into a communication signal with a preset carrier frequency and transmit it to the first electronic device, and demodulate the communication signal from the first electronic device and transmit it to the third electronic device connected to the connection interface. The communication signal from the first electronic device is the communication signal modulated by the first communication chip onto the data from the first electronic device at the preset carrier frequency.
[0107] The second communication chip demodulates the communication signal from the first electronic device and transmits it to the third electronic device connected to the connection interface. This may include: the second communication chip demodulates the communication signal from the first electronic device to obtain data, determines that the data is a second communication protocol, converts the data into a first communication protocol, and transmits the data of the first communication protocol to the third electronic device connected to the connection interface.
[0108] Of course, the connection interface can also be used to convert between the first and second communication protocols. Accordingly, the second communication chip can transmit the data obtained by demodulating the communication signal from the first electronic device to the connection interface, which then converts the data from the second communication protocol to the first communication protocol and transmits the data of the first communication protocol to the third electronic device.
[0109] The second electronic device may also be equipped with magnetic components, which can be configured as needed and are not limited in this application. For example, such as Figure 10 The side view of the second electronic device shown in part (a) and Figure 10 The rear front view of the second electronic device shown in part (b) shows that the metal spring pin and the USB interface are disposed on different surfaces of the first electronic device. The second electronic device may include two magnetic components that may be disposed on both sides of the metal spring pin and the USB interface.
[0110] While the metal spring pin of the second electronic device is connected to the metal contact of the first electronic device, based on the magnetic attraction area in the first electronic device and Figure 10 In the second electronic device shown in section (c), the surface of the metal spring pin corresponds to the magnetic attraction area of the magnetic component, such as... Figure 11 As shown, the first electronic device and the second electronic device can be magnetically connected.
[0111] In this embodiment, the second electronic device includes a magnetic component, which can assist in the connection of the power line interface between the first and second electronic devices, reducing the possibility of poor contact at the power line interface between the first and second electronic devices; on the other hand, if the first electronic device is equipped with a Hall sensor, the first electronic device can detect changes in the magnetic field of the magnetic attraction area based on the Hall sensor, thereby determining that the second electronic device is connected to the power line interface of the first electronic device.
[0112] In this embodiment, the identity information of the third electronic device connected to the second electronic device is obtained through a communication connection established based on the power line interface. Data transmission between the first electronic device and the second electronic device is realized based on the identity information of the third electronic device and the communication connection, so that the data of the first electronic device can be applied to the third electronic device, and / or the first electronic device can obtain data from the third electronic device.
[0113] Furthermore, the second electronic device can enable the first power line interface of the first electronic device to support more general-purpose peripheral electronic devices, expanding the functionality of the first electronic device through the first power line interface. For example, the second electronic device includes a second power line interface, a second communication chip, and a USB interface. By connecting the first power line interface of the first electronic device to the second power line interface, keyboards, mice, or USB flash drives connected to the USB interface of the second electronic device can be connected to the first electronic device. This allows the first electronic device to expand its USB interface through the first power line interface, solving the problem that the first electronic device does not have a USB interface or that the USB interface is occupied and cannot connect USB devices.
[0114] Furthermore, by modulating the data into a communication signal with a preset carrier frequency and transmitting the communication signal to transmit the data, the security of data transmission between the first electronic device and the third electronic device can be improved.
[0115] The following section describes a first electronic device provided in this application. The first electronic device described below can be referred to in correspondence with the communication method described above.
[0116] The first electronic device may include: a power line interface and a communication module.
[0117] A power line interface is used to supply power to a second electronic device connected to a first electronic device;
[0118] The communication module is used to establish a communication connection between a first electronic device and a second electronic device based on a power line interface while supplying power, and to realize data transmission between the first electronic device and the second electronic device through the communication connection established based on the power line interface.
[0119] The power line interface includes a first conductive interface and a second conductive interface. The first conductive interface is connected to the positive terminal of the power line, and the second conductive interface is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device.
[0120] The process by which the communication module establishes a communication connection between the first electronic device and the second electronic device based on the power line interface may specifically include:
[0121] In response to determining that the second electronic device is connected to the power line interface of the first electronic device, the first communication chip of the first electronic device is switched from an idle state to a wake-up state. The first communication chip is used to modulate the communication data of the established communication connection into a communication signal with a preset carrier frequency for transmission to the second electronic device through the power line interface. The power consumption of the first communication chip in the idle state is lower than that in the wake-up state.
[0122] The communication module enables data transmission between a first electronic device and a second electronic device through a communication connection established based on a power line interface. Specifically, this process may include:
[0123] The identity information of the second electronic device is obtained through a communication connection established based on the power line interface;
[0124] Data transmission between the first and second electronic devices is achieved based on the identity information and communication connection of the second electronic device.
[0125] The communication module enables data transmission between a first electronic device and a second electronic device through a communication connection established based on a power line interface. Specifically, this process may include:
[0126] The identity information of the third electronic device connected to the second electronic device is obtained through a communication connection established based on the power line interface.
[0127] Data transmission between the first and second electronic devices is achieved based on the identity information and communication connection of the third electronic device.
[0128] Corresponding to the communication method embodiment provided in this application above, this application also provides an embodiment of a first electronic device.
[0129] The first electronic device may include: a first processor, a first power line interface, and a first communication chip.
[0130] The first processor is configured to execute the communication methods described in the embodiments above.
[0131] The first power line interface is used to connect to the second electronic device so that the first electronic device can supply power to the second electronic device. At the same time, a communication connection is established between the first communication chip and the second electronic device. The first power line interface includes a first conductive interface and a second conductive interface. The first conductive interface is connected to the positive terminal of the power line of the first electronic device, and the second conductive interface is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device.
[0132] The first communication chip is used to modulate data from the first processor into a communication signal with a preset carrier frequency and transmit it to the second electronic device, and to demodulate the communication signal from the second electronic device and transmit it to the first processor.
[0133] The connection relationship between the first communication chip, the first power line interface and the first processor can be found in the first electronic device described in the aforementioned communication method, and will not be repeated here.
[0134] Corresponding to the communication method embodiment provided in this application above, this application also provides an embodiment of a second electronic device.
[0135] The second electronic device may include: a keyboard, a second processor, a second power line interface, and a second communication chip.
[0136] A keyboard is used to input keystrokes.
[0137] The second processor is used to control the transmission of input key information to the second communication chip.
[0138] The second power line interface is used to connect to the first power line interface of the first electronic device.
[0139] The second communication chip is used to modulate the key information into a communication signal with a preset carrier frequency and transmit it to the first electronic device, and / or to demodulate the communication signal from the first electronic device and transmit it to the second processor. The second electronic device is an auxiliary device of the first electronic device.
[0140] The connection relationship between the keyboard, the second processor, the second power line interface, and the second communication chip can be found in the second electronic device described in the aforementioned communication method embodiments, and will not be repeated here.
[0141] Corresponding to the communication method embodiment provided in this application above, this application also provides an embodiment of a second electronic device.
[0142] The second electronic device may include: a second power line interface, a connection interface, and a second communication chip.
[0143] The second power line interface is used to connect to the first power line interface of the first electronic device.
[0144] A connection interface is used to connect a second communication chip and a third electronic device; the connection interface conforms to a first communication protocol, and the power line interface conforms to a second communication protocol, the first communication protocol and the second communication protocol are different.
[0145] The second communication chip is used to modulate data from the third electronic device into a communication signal with a preset carrier frequency and transmit it to the first electronic device, and to demodulate the communication signal from the first electronic device and transmit it to the third electronic device connected to the connection interface.
[0146] In this embodiment, the connection interface can be used to implement the conversion between the first communication protocol and the second communication protocol.
[0147] The connection relationship between the second power line interface, the connection interface, and the second communication chip can be found in the second electronic device described in the aforementioned communication method embodiments, and will not be repeated here.
[0148] It should be noted that each embodiment focuses on describing the differences from other embodiments, and the same or similar parts between the embodiments can be referred to accordingly. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.
[0149] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0150] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0151] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0152] The communication method, first electronic device, and second electronic device provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A communication method, comprising: The second power line interface of the second electronic device is connected to the first power line interface of the first electronic device. Power is supplied to the second power line interface of the second electronic device through the first power line interface. At the same time, a communication connection is established between the first electronic device and the second power line interface of the second electronic device based on the first power line interface. Data transmission between the first electronic device and the third electronic device connected to the connection interface of the second electronic device is realized through the second electronic device based on the communication connection. The first power line interface includes a first metal contact and a second metal contact of a spring pin interface. The first metal contact is connected to the positive terminal of the power line of the first electronic device, and the second metal contact is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device. The second power line interface includes a first spring pin and a second spring pin of a spring pin interface; the first electronic device is connected to the first spring pin and the second spring pin of the second electronic device via a first metal contact and a second metal contact. The connection interface of the second electronic device conforms to the first communication protocol, and the second power line interface conforms to the second communication protocol. The first communication protocol and the second communication protocol are different. The third electronic device is a general-purpose peripheral electronic device. The second electronic device enables the first power line interface of the first electronic device to support general-purpose peripheral electronic devices and expands the functionality of the first electronic device through the first power line interface.
2. The communication method according to claim 1, determining that the second power line interface of the second electronic device is connected to the first power line interface of the first electronic device, includes: Based on the sensing signal from the first power line interface of the first electronic device, the second power line interface of the second electronic device is determined to be connected to the first power line interface of the first electronic device.
3. The communication method according to claim 1, wherein establishing a communication connection between the first electronic device and the second electronic device's second power line interface based on the first power line interface comprises: In response to determining that the second electronic device is connected to the first power line interface of the first electronic device, the first communication chip of the first electronic device is switched from an idle state to a wake-up state. The first communication chip is used to modulate the communication data of the established communication connection into a communication signal with a preset carrier frequency for transmission to the second electronic device through the power line interface. The power consumption of the first communication chip in the idle state is lower than that in the wake-up state.
4. The communication method according to claim 1, wherein data transmission between the first electronic device and a third electronic device connected to the connection interface of the second electronic device is realized via the second electronic device based on the communication connection, comprising: The identity information of the third electronic device connected to the second electronic device is obtained through the communication connection established based on the first power line interface; Data transmission between the first electronic device and the second electronic device is achieved based on the identity information of the third electronic device and the communication connection.
5. A first electronic device, comprising: The first power line interface is used to supply power to the second power line interface of the second electronic device connected to the first electronic device; A communication module is used to establish a communication connection between the first electronic device and the second electronic device via the first power line interface while supplying power. Through the second electronic device, data transmission is realized between the first electronic device and a third electronic device connected to the data interface of the second electronic device based on the communication connection. The first power line interface includes a first metal contact and a second metal contact of a spring pin interface. The first metal contact is connected to the positive terminal of the power line of the first electronic device, and the second metal contact is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device. The second power line interface includes a first spring pin and a second spring pin of a spring pin interface; the first electronic device is connected to the first spring pin and the second spring pin of the second electronic device via a first metal contact and a second metal contact. The connection interface of the second electronic device conforms to the first communication protocol, and the second power line interface conforms to the second communication protocol. The first communication protocol and the second communication protocol are different. The third electronic device is a general-purpose peripheral electronic device. The second electronic device enables the first power line interface of the first electronic device to support general-purpose peripheral electronic devices and expands the functionality of the first electronic device through the first power line interface.
6. A first electronic device, comprising: A first processor is configured to perform the method as described in any one of claims 1-4; A first power line interface is used to connect to a second electronic device via a second power line interface of the second electronic device, enabling the first electronic device to supply power to the second electronic device and simultaneously establishing a communication connection between the first communication chip and the second electronic device. The first power line interface includes a first metal contact and a second metal contact with a spring-loaded pin interface. The first metal contact is connected to the positive terminal of the power line of the first electronic device, and the second metal contact is connected to the negative terminal of the power line. The second electronic device is an auxiliary device of the first electronic device. The first electronic device is connected to the first spring pin and the second spring pin of the spring-loaded pin interface of the second power line interface of the second electronic device via the first and second metal contacts. A first communication chip is used to modulate data from the first processor into a communication signal with a preset carrier frequency and transmit it to the second electronic device, enabling the second communication chip of the second electronic device to receive the communication signal from the first electronic device and transmit the data from the first electronic device to a third electronic device through the data interface of the second electronic device. It also demodulates the communication signal from the second electronic device and transmits it to the first processor. The communication signal from the second electronic device is generated by the second communication chip of the second electronic device modulating data from the third electronic device.
7. A second electronic device, comprising: The second power line interface is used to connect to the first power line interface of the first electronic device; The first power line interface includes a first metal contact and a second metal contact of a spring pin interface, and the second power line interface includes a first spring pin and a second spring pin of a spring pin interface; the second electronic device is connected to the first metal contact and the second metal contact of the first electronic device through the first spring pin and the second spring pin. A connection interface is used to connect a second communication chip and a third electronic device; the connection interface conforms to a first communication protocol, and the power line interface conforms to a second communication protocol, wherein the first communication protocol and the second communication protocol are different; The second communication chip is used to modulate data from the third electronic device into a communication signal with a preset carrier frequency and transmit it to the first electronic device, and to demodulate the communication signal from the first electronic device and transmit it to the third electronic device connected to the connection interface. The third electronic device is a general-purpose peripheral electronic device, and the second electronic device enables the first power line interface of the first electronic device to support general-purpose peripheral electronic devices, thereby expanding the functionality of the first electronic device through the first power line interface.
8. The second electronic device according to claim 7, wherein the connection interface is used to convert between the first communication protocol and the second communication protocol.
Citation Information
Patent Citations
Signal transmission method and device, electronic equipment and readable storage medium
CN113179108A
Power line communication chip and equipment
CN203788280U