Data transmission method and equipment
By integrating the wireless charging module in the electronic device and establishing a communication connection with the device to be charged, the problem of complex and low efficiency of data transmission operations in the prior art is solved, and automatic data transmission during the charging process is realized, and efficiency is improved.
Patent Information
- Application Number
- CN202510387967.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-06-20
AI Technical Summary
In the prior art, in the process of data transmission between a mobile phone and a personal computer, the operation steps are complex and inefficient, making it difficult to make full use of charging time for data transmission.
By integrating the wireless charging module in the electronic device, in response to the wireless charging module being in the working state, a communication connection between the electronic device and the device to be charged is established, and the data transmitted by the device to be charged is received based on the connection.
It realizes automatic data transmission during the charging process, simplifies operation steps, improves the efficiency of data transmission, and makes full use of the charging time of the device to be charged.
Smart Images

Figure CN120186809A_ABST
Abstract
Description
Technical Field
[0001] This application relates to, but is not limited to, the field of communications, and particularly relates to a data transmission method and device. Background Art
[0002] In daily life, mobile phones and personal computers (PCs) are the digital devices with the highest usage frequency, and the interconnection between the two is particularly important, such as data synchronization and backup, multimedia resource sharing, and extended function applications. There are various ways for mobile phones and PCs to interconnect, such as connecting with a data cable, Bluetooth connection, Near Field Communication (NFC) connection, network connection, third-party software, etc. Numerous interconnection solutions have their respective application scenarios, advantages, and disadvantages. Summary of the Invention
[0003] Embodiments of this application provide a data transmission method and device. The technical solution of the embodiments of this application is implemented as follows:
[0004] In a first aspect, embodiments of this application provide a data transmission method. The method is applied to an electronic device, and the electronic device includes a wireless charging module. The method includes: in response to the wireless charging module being in a working state, establishing a communication connection between the electronic device and a device to be charged; and based on the communication connection, receiving first data transmitted by the device to be charged.
[0005] In a second aspect, embodiments of this application provide a data transmission device. The device includes: a establishing module configured to establish a communication connection between the electronic device and a device to be charged in response to the wireless charging module being in a working state; and a receiving module configured to receive first data transmitted by the device to be charged based on the communication connection.
[0006] In a third aspect, embodiments of this application provide an electronic device. The electronic device includes a memory, a processor, and a wireless charging module, where: the memory is used to store a computer program that can run on the processor; the processor is used to execute the computer program in the memory and perform: in response to the wireless charging module being in a working state, establishing a communication connection between the electronic device and a device to be charged; and based on the communication connection, receiving first data transmitted by the device to be charged.
[0007] In a fourth aspect, embodiments of this application provide a computer-readable storage medium for storing a computer program, and the computer program causes the processor to execute the method described in the first aspect.
[0008] Fifth aspect, an embodiment of the present application provides a computer program product, including computer program instructions, and the computer program instructions cause a processor to execute the method described in the first aspect.
[0009] Sixth aspect, an embodiment of the present application provides a computer program, and the computer program causes a processor to execute the method described in the first aspect.
[0010] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the technical solution of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and constitute a part of this specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to explain the technical solution of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0012] The flowcharts shown in the drawings are only exemplary illustrations, not necessarily including all contents and operations / steps, nor necessarily executed in the described order. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.
[0013] Figure 1 Schematic diagram of the implementation process of a data transmission method provided by an embodiment of the present application Figure 1 ;
[0014] Figure 2 Schematic diagram of the implementation process of a data transmission method provided by an embodiment of the present application Figure 2 ;
[0015] Figure 3 Schematic diagram of the connection of modules in an electronic device provided by an embodiment of the present application;
[0016] Figure 4 Schematic diagram of the implementation process of a data transmission method provided by an embodiment of the present application Figure 3 ;
[0017] Figure 5 Schematic diagram of the circuit connection of an electronic device provided by an embodiment of the present application;
[0018] Figure 6 Schematic diagram of the implementation process of a data transmission method provided by an embodiment of the present application Figure 4 ;
[0019] Figure 7Schematic structural diagram of a data transmission device provided by an embodiment of the present application;
[0020] Figure 8 Schematic structure of an electronic device provided by an embodiment of the present application Figure 1 ;
[0021] Figure 9 Schematic structure of an electronic device provided by an embodiment of the present application Figure 2 。 Detailed implementation manners
[0022] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be further elaborated in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be construed as limitations on the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.
[0023] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0024] Those skilled in the art of the present technology can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the embodiments of the present application belong. It should also be understood that terms such as those defined in a general dictionary should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as here.
[0025] The descriptions such as "first, second, third" etc. appearing in the embodiments of the present application are only for indicating and distinguishing the described objects, without any order, nor do they represent a special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0026] An embodiment of the present application provides a data transmission method. The method is applied to an electronic device, and the electronic device includes a wireless charging module; Figure 1 Schematic implementation process of a data transmission method provided by an embodiment of the present application Figure 1 ,such as Figure 1 shown, the method includes the following steps 101 to step 102:
[0027] Step 101, in response to the wireless charging module being in a working state, establish a communication connection between the electronic device and the device to be charged;
[0028] Step 102: Based on the communication connection, receive the first data transmitted by the device to be charged.
[0029] It can be understood that in the embodiments of the present application, in response to the wireless charging module in the electronic device charging the device to be charged, a communication connection is established between the electronic device and the device to be charged; and based on this communication connection, the first data transmitted by the device to be charged is received. That is to say, the wireless charging module can trigger the connection between the device to be charged and the electronic device in the working state. In this way, during the charging process, automatic data transmission can be achieved, that is, the time for charging the device to be charged can be fully utilized to achieve automatic data transmission, thereby improving the data transmission efficiency and simplifying the operation burden / operation steps in the data transmission process.
[0030] The further optional implementation manners of the above steps and related terms will be described below.
[0031] In step 101, in response to the wireless charging module being in the working state, a communication connection is established between the electronic device and the device to be charged.
[0032] It should be understood that in the embodiments of the present application, the wireless charging module is not limited. The wireless charging module is a component that transmits electrical energy to the device to be charged through a non-physical contact method (such as electromagnetic induction, magnetic resonance, or radio wave).
[0033] In some embodiments, the wireless charging module uses the principle of electromagnetic induction to implement the function of charging the device to be charged. The transmitting coil (i.e., the wireless charging module) passes alternating current to generate a magnetic field, and the receiving coil (i.e., the device to be charged) induces current and converts it into direct current to charge the device to be charged (such as the Qi standard); among them, the Qi standard is the international mainstream wireless charging technology standard, formulated and promoted by the Wireless Power Consortium (WPC). Its core goal is to achieve wireless charging compatibility between devices of different brands.
[0034] In other embodiments, the wireless charging module uses the principle of magnetic resonance to implement the function of charging the device to be charged, and realizes medium-distance charging through resonance frequency matching.
[0035] In still other embodiments, the wireless charging module uses the principle of radio wave (far-field radiation) to implement the function of charging the device to be charged. This principle has low power consumption and is suitable for low-power devices.
[0036] In the embodiments of the present application, "the wireless charging module is in a working state" can be understood as that the wireless charging module is performing the function of power transmission. That is, an alternating current is passed through the coil of the transmitting end (i.e., the wireless charging module) to generate an alternating magnetic field; the coil of the receiving end (i.e., the device to be charged) induces a current and charges the device to be charged through a rectifying circuit.
[0037] It should be understood that in the embodiments of the present application, "establishing a communication connection between the electronic device and the device to be charged" can be understood as enabling the electronic device and the device to be charged to transmit data, signals or information to each other through a certain communication medium and protocol.
[0038] In the embodiments of the present application, there is no limitation on the device to be charged, and the device to be charged can perform wireless charging and information transmission. In some embodiments, the device to be charged includes, but is not limited to, at least one of the following: mobile phone, tablet computer, smart home device (e.g., smart table lamp), Bluetooth headset, Bluetooth keyboard, smart bracelet, etc.
[0039] In some embodiments, the electronic device further includes a detection module, and the detection module is communicatively connected to the wireless charging module; the method further includes: enabling the wireless charging module in response to the induction area of the wireless charging module being in a first state; wherein the first state includes: the state in which the device to be charged is placed on the induction area; based on a clock signal, controlling the detection module to poll whether the wireless charging module enables a wireless charging operation, and when the wireless charging module enables the wireless charging operation, determining that the wireless charging module is in a working state.
[0040] It should be understood that in the embodiments of the present application, there is no limitation on the induction area of the wireless charging module, and the induction area of the wireless charging module is the core range where the device can effectively receive electric energy. Wireless charging generates an alternating magnetic field through a coil (transmitting end), and the coil of the receiving end (i.e., the device to be charged) induces a current in the magnetic field to achieve energy transmission. The induction area is the spatial range where the magnetic field strength is sufficient to efficiently transmit energy. The induction area is the "effective energy channel" of wireless charging, and its design needs to balance efficiency, cost and user experience. The user only needs to place the device to be charged within the range of the induction area and ensure that there is no metal barrier to enjoy convenient wireless charging.
[0041] In the embodiments of the present application, when the device to be charged is placed on the induction area, the wireless charging module is changed from the "to-be-charged state" to the "charging state"; through a clock signal, periodically controlling the detection module to query whether the wireless charging module enters the "charging state", that is, querying whether the wireless charging module enables a wireless charging operation; when the wireless charging module enters the "charging state", determining that the wireless charging module is in a working state.
[0042] In some embodiments, the electronic device further includes a detection module, and the detection module is communicatively connected to the wireless charging module; the method further includes: enabling the wireless charging module in response to the induction area of the wireless charging module being in a first state; wherein, the first state includes: a state in which the device to be charged is placed on the induction area; determining that the wireless charging module is in an operating state based on the information that the wireless charging module is in an operating state sent by the wireless charging module to the detection module.
[0043] It should be understood that in the embodiments of the present application, when a device to be charged is placed on the induction area, the wireless charging module is caused to enter the "charging state" from the "awaiting charging state"; at this time, the wireless charging module actively sends information that the wireless charging module is in an operating state to the detection module, thereby determining that the wireless charging module is in an operating state.
[0044] In the embodiments of the present application, the wireless charging module can communicate bidirectionally with the detection module. That is to say, during the process of "controlling the detection module to poll whether the wireless charging module enables wireless charging operation based on a clock signal", if the wireless charging module enters the "charging state", it will also actively send information that the wireless charging module is in an operating state to the detection module.
[0045] In some embodiments, establishing the communication connection between the electronic device and the device to be charged includes: establishing a pairing connection between the electronic device and the device to be charged; based on the pairing connection, establishing the communication connection between the electronic device and the device to be charged.
[0046] In the embodiments of the present application, "establishing the pairing connection between the electronic device and the device to be charged" can be understood as the process of establishing a secure and stable communication link between the electronic device and the device to be charged. The core is to ensure that both parties can reliably exchange data through protocol handshake, authentication, and parameter negotiation. In some embodiments, the pairing connection includes, but is not limited to, at least one of the following: Bluetooth pairing, Near Field Communication (NFC) pairing, infrared pairing, Wireless Fidelity (Wi-Fi) pairing, out-of-band pairing, etc.
[0047] In some embodiments, establishing a communication connection between the electronic device and the device to be charged based on the pairing connection includes: determining a first wireless network where the electronic device is located and a second wireless network where the device to be charged is located based on the pairing connection; and establishing a communication connection between the electronic device and the device to be charged based on the first / second wireless network when the first wireless network is the same as the second wireless network.
[0048] It can be understood that in the embodiments of the present application, when it is determined that the wireless charging module is in a working state, that is, when the detection module determines that the wireless charging module enables wireless charging operation, a pairing connection between the electronic device and the device to be charged will be triggered. After successful pairing, a network connection is established through a network protocol for data transmission. In this way, the user only needs to place the device to be charged in the induction area of the wireless charging module, and data transmission between the electronic device and the device to be charged can be achieved. The operation is convenient, and during the data interaction process, the device to be charged is continuously charged, so as to make full use of the charging time and improve the efficiency of data transmission.
[0049] In the embodiments of the present application, the first wireless network and the second wireless network are not limited. In some embodiments, the first / second wireless network includes but is not limited to at least one of the following: Wi-Fi network, mobile network, satellite network, wireless local area network (LAN), in-vehicle wireless network, etc.
[0050] Exemplarily, in a possible implementation manner, it is determined that the first wireless network where the electronic device is located is a first Wi-Fi network, and the second wireless network where the device to be charged is located is a second Wi-Fi network, and the first Wi-Fi network is the same as the second Wi-Fi network. Then, a communication connection between the electronic device and the device to be charged is established based on the first Wi-Fi network / second Wi-Fi network.
[0051] In another possible implementation manner, it is determined that the first wireless network where the electronic device is located is a first wireless local area network, and the second wireless network where the device to be charged is located is a second wireless local area network, and the first wireless local area network is the same as the second wireless local area network. Then, a communication connection between the electronic device and the device to be charged is established based on the first wireless local area network / second wireless local area network.
[0052] In some embodiments, establishing a communication connection between the electronic device and the device to be charged based on the pairing connection includes: determining a first wireless network where the electronic device is located and a second wireless network where the device to be charged is located based on the pairing connection; in a case where the first wireless network is different from the second wireless network, providing a third wireless network through the electronic device or the device to be charged, and establishing a communication connection between the electronic device and the device to be charged based on the third wireless network.
[0053] It can be understood that in the embodiments of the present application, in a case where the wireless networks used / connected by the electronic device and the device to be charged are different, a communication connection between the electronic device and the device to be charged can be established through the third wireless network provided by the electronic device; or a communication connection between the electronic device and the device to be charged can be established through the third wireless network provided by the device to be charged. In this way, only by the user placing the device to be charged in the induction area of the wireless charging module, data transmission between the electronic device and the device to be charged can be achieved, which is convenient to operate. And during the data interaction process, the device to be charged is continuously charged, thus making full use of the charging time and improving the efficiency of data transmission.
[0054] In the embodiments of the present application, the third wireless network is not limited. In some embodiments, the third wireless network includes but is not limited to at least one of the following: Wi-Fi network, mobile network, satellite network, wireless local area network, vehicle-mounted wireless network, etc., virtual hotspot, Wi-Fi hotspot.
[0055] In some embodiments, the third wireless network provided by the electronic device includes a virtual hotspot; the third wireless network provided by the device to be charged includes a Wi-Fi hotspot.
[0056] Exemplarily, in a possible implementation manner, it is determined that the first wireless network where the electronic device is located is a first wireless local area network, and it is determined that the second wireless network where the device to be charged is located is a first Wi-Fi network. The first wireless local area network is different from the first Wi-Fi network. The electronic device starts the virtual hotspot mode to connect to the device to be charged, thereby establishing a communication connection between the electronic device and the device to be charged.
[0057] In another possible implementation manner, it is determined that the first wireless network where the electronic device is located is a first Wi-Fi network, and it is determined that the second wireless network where the device to be charged is located is a first wireless local area network. The first wireless local area network is different from the first Wi-Fi network. The device to be charged starts a Wi-Fi hotspot for the electronic device, thereby establishing a communication connection between the electronic device and the device to be charged.
[0058] In step 102, based on the communication connection, receive the first data transmitted by the device to be charged.
[0059] It should be understood that in the embodiments of the present application, the data type of the first data transmitted by the device to be charged is not limited. In some embodiments, the data type of the first data includes, but is not limited to, at least one of the following: display data, non-display data, instructions, etc.
[0060] In some embodiments, based on the communication connection, second data is transmitted to the device to be charged.
[0061] It should be understood that in the embodiments of the present application, the data type of the second data transmitted by the device to be charged is not limited. In some embodiments, the data type of the second data includes, but is not limited to, at least one of the following: display data, non-display data, instructions, etc.
[0062] In some embodiments, receiving the first data transmitted by the device to be charged includes: when the data type of the first data includes display data, outputting a display screen corresponding to the display data.
[0063] It should be understood that in the embodiments of the present application, when the electronic device receives the display data transmitted by the device to be charged, the electronic device outputs a display screen corresponding to the display data based on the default display mode. In some embodiments, the default display mode includes: mirror display and / or extended display.
[0064] In some embodiments, when the data type of the first data includes display data, the display data is mirror-displayed. In other embodiments, when the data type of the first data includes display data, the display data is extended-displayed.
[0065] It should be understood that in the embodiments of the present application, "extended-displaying the display data" can be understood as expanding the display content of the device to be charged, and the electronic device displays the expanded content. In the embodiments of the present application, the electronic device can expand the display content of the device to be charged, or the device to be charged can expand the display content of the device to be charged. In this regard, the embodiments of the present application do not make a limitation.
[0066] In the embodiments of the present application, when the device to be charged expands the display content of the device to be charged, the display data includes the expanded display content, and the electronic device only needs to display the display screen corresponding to the expanded display content. When the electronic device expands the display content of the device to be charged, the display data includes the display content of the device to be charged, and the electronic device displays the display screen corresponding to the expanded display content.
[0067] In the embodiments of the present application, the implementation manner of "extending the display content of the device to be charged to obtain the extended display content" is not limited. In some embodiments, the display content of the device to be charged may be text-recognized, and key information may be extracted; the key information may be extended to obtain the extended display content.
[0068] In some embodiments, when the data type of the first data includes display data, outputting a display screen corresponding to the display data includes: when the data type of the first data includes a display control instruction, based on the display control instruction, outputting a display screen corresponding to the display data; wherein, the display control instruction is generated based on a first control operation of a user on the device to be charged; the first control operation is used to indicate the display manner of the display data.
[0069] It should be understood that in the embodiments of the present application, when the data type of the first data includes display data and a display control instruction corresponding to the display data, based on the display control instruction, a display screen corresponding to the display data is output. That is to say, the user can operate on the device to be charged, so as to select the display manner of the display data transmitted by the device to be charged to the electronic device.
[0070] In the embodiments of the present application, the first control operation is not limited. In some embodiments, the first control operation includes but is not limited to: clicking, double-clicking, dragging, scrolling, gesture control, voice control, eye tracking, shaking, etc. Exemplarily, in one possible implementation manner, the first control operation may be clicking mirror display. In another possible implementation manner, the first control operation may be double-clicking extended display.
[0071] In some embodiments, when the display control instruction indicates mirror display, mirror-display the display data output by the device to be charged. In other embodiments, when the display control instruction indicates extended display, display the extended content. In the embodiments of the present application, the electronic device may extend the display content of the device to be charged, or the device to be charged may extend the display content of the device to be charged. In this regard, the embodiments of the present application are not limited.
[0072] In the embodiments of the present application, when the device to be charged extends the display content of the device to be charged, the display data includes the extended display content, and the electronic device displays a display screen corresponding to the extended display content based on the display manner of extended display. When the electronic device extends the display content of the device to be charged, the display data includes the display content of the device to be charged, and the electronic device displays a display screen corresponding to the extended display content based on the display manner of extended display.
[0073] In some embodiments, when the display mode is the mirror display mode, the method further includes: in response to a second control operation of the user on the mirror interface of the device to be charged displayed on the electronic device, generating second data and transmitting the second data to the device to be charged; wherein the second data includes at least one operation instruction for controlling the interface display content of the device to be charged.
[0074] It can be understood that in the embodiments of the present application, when the electronic device mirror-displays the display interface of the device to be charged, the effect of controlling the display interface of the device to be charged can be achieved by operating on the mirror interface on the electronic device. That is to say, if the device to be charged has an operation requirement, there is no need to pick up the device to be charged, and the operation on the device to be charged can also be achieved by using the electronic device, so as to ensure that the charging process of the device to be charged is not interrupted while the work on the device to be charged can also be completed.
[0075] It should be understood that in the embodiments of the present application, the second control operation is not limited. In some embodiments, the second control operation includes but is not limited to: clicking, double-clicking, dragging, scrolling, gesture control, voice control, eye tracking, shaking, etc. Exemplarily, in one possible implementation manner, the second control operation may be scrolling the current display interface to the next display interface. In another possible implementation manner, the first control operation may be clicking on a certain window to open a new display interface.
[0076] In some embodiments, in response to the induction area of the wireless charging module being in a second state, the enabling of the wireless charging module is stopped; wherein the second state includes: a state in which the device to be charged is to be placed on the induction area; when the detection module detects that the wireless charging module stops the wireless charging operation, the pairing connection and the communication connection between the electronic device and the device to be charged are controlled to be disconnected.
[0077] It should be understood that in the embodiments of the present application, when the device to be charged leaves the induction area of the wireless charging module, the wireless charging module enters the "waiting for charging state" from the "charging state"; when the detection module detects that the wireless charging module stops the wireless charging operation, the pairing connection and the communication connection between the electronic device and the device to be charged are controlled to be interrupted.
[0078] In the embodiments of the present application, there is no limitation on the order of controlling the interruption of the pairing connection between the electronic device and the device to be charged and controlling the interruption of the communication connection between the electronic device and the device to be charged. In some embodiments, first control the interruption of the pairing connection between the electronic device and the device to be charged, and then control the interruption of the communication connection between the electronic device and the device to be charged. In other embodiments, first control the interruption of the communication connection between the electronic device and the device to be charged, and then control the interruption of the pairing connection between the electronic device and the device to be charged. In still other embodiments, simultaneously control the interruption of the pairing connection and the communication connection between the electronic device and the device to be charged.
[0079] In some embodiments, when the detection module detects that the wireless charging module stops the wireless charging operation, controlling the interruption of the pairing connection and the communication connection between the electronic device and the device to be charged includes: based on the clock signal, controlling the detection module to poll whether the wireless charging module stops the wireless charging operation; when the detection module detects that the wireless charging module stops the wireless charging operation, controlling the interruption of the pairing connection and the communication connection between the electronic device and the device to be charged.
[0080] In some embodiments, the method further includes: in response to the induction area of the wireless charging module being in the second state, stopping the enabling of the wireless charging module; wherein, the second state includes: the state where the device to be charged is to be placed on the induction area; based on the information that the wireless charging module sends to the detection module indicating that the wireless charging module is in a state of waiting to work, determining that the wireless charging module stops the wireless charging operation during the working state, and controlling the interruption of the pairing connection and the communication connection between the electronic device and the device to be charged.
[0081] The following describes an exemplary application of the processing method provided in the embodiments of the present application in an actual scenario.
[0082] The embodiments of the present application provide a data transmission method. Figure 2 It is a schematic implementation process of a data transmission method provided in the embodiments of the present application. Figure 2 , such as Figure 2 shown, this method is a method (i.e., an example of a data transmission method) for triggering the interconnection (i.e., interaction, that is, data transmission) between the mobile phone and the PC through the charging behavior of the built-in wireless charging module of the personal computer (PC) (i.e., an example of an electronic device) by the mobile phone (i.e., an example of a device to be charged).
[0083] In some embodiments, the data transmission method provided by the embodiments of the present application can also be referred to as Qi-Link one-charge transmission, which triggers the interconnection between the mobile phone and the PC through wireless charging in one step. This method allows the mobile phone to easily establish a connection with the PC while using the built-in wireless charging module of the PC, quickly back up or transfer pictures, videos, and documents, and implement mobile phone screen mirroring control. That is, transmission starts as soon as charging begins, greatly simplifying the operation steps and bringing a simpler and more natural interaction experience.
[0084] Figure 3 It is a schematic diagram of the connection of modules in an electronic device provided by the embodiments of the present application. As Figure 3 shown, the Qi-link module is connected to the PC through Universal Serial Bus 2.0 (USB 2.0). The Qi-link module is controlled by a System on a Chip (SoC) with a Bluetooth Low Energy (BLE) / Wi-Fi dual-mode channel. The Qi-link module communicates with the wireless charging module through an Inter-Integrated Circuit (I2C). When the mobile phone is charged, the interconnection is triggered.
[0085] Figure 4 It is a schematic diagram of the implementation process of a data transmission method provided by the embodiments of the present application. Figure 3 As Figure 4 shown, the Qi-link module of the PC periodically polls the status of the wireless charging module. When the mobile phone is placed on the PC charging module (i.e., an example of the induction area of the wireless charging module) to start wireless charging, the Qi-link module will detect the status of the start of wireless charging. This action of starting wireless charging will trigger the Bluetooth pairing behavior (i.e., the PC Bluetooth Low Energy discovers, and the mobile phone waits for the Bluetooth Low Energy connection). After the paired mobile phone and the PC are successfully paired, a network connection is established by network protocols such as Wi-Fi or Wireless Local Area Network, and data transmission is started to synchronize and back up the mobile phone data to the PC, and at the same time, the mobile phone interface is mapped to the PC monitor. If there is a need to operate the mobile phone, there is no need to pick up the mobile phone, and the PC can be used for operation;
[0086] Among them, ACK represents an acknowledgement signal, and NACK represents a non-acknowledgement signal. The pairing between the PC and the mobile phone is established via Bluetooth. There is no limit on the number of times or time for ACK, and it can be connected at any time. After the Bluetooth connection is established, if the mobile phone and the PC are in the same wireless network, they will be automatically connected online. If they are not in the same network, the PC can start the virtual hotspot mode to connect to the mobile phone, or the mobile phone can share the Wi-Fi hotspot with the PC. API refers to the application programming interface. The mobile phone and the PC install the Qi-link application. Functions such as photo transfer, file transfer, shared clipboard, screen mirroring, etc. can be set in this APP. These functions can be freely operated and realized during the operation of the shared API (i.e., during the operation of the Qi-Link computing shared API) after the mobile phone and the PC are connected.
[0087] Figure 5 It is a schematic diagram of the circuit connection of an electronic device provided by an embodiment of the present application. As Figure 5 shown, the Qi-link module is set on the charging base and can be laid out (i.e., layout) on a printed circuit board (PCB) together with the wireless charging module, or can be independently laid out and connected through a connector. Vbus is the power output for 12V power supply, and the LDO converts the Vbus to 5V or 3.3V voltage to supply power to the Qi-link module. Coil represents the coil. The base is only the placement position of the module, and the electrical connection is the power supply interface and the USB interface.
[0088] The clock and the antenna are part of the Qi-link module. The clock is used to provide periodic pulse signals for the control I2C and serves as the basis for the system timing logic. The antenna is used to realize signal transmission between wireless devices, such as direct data transmission between the mobile phone and the PC. The wireless charging module needs to establish communication with the Qi-link module. Hardware I2C and I / O connections are required, and relevant communication programs need to be written in the main control IC for software. The PC and the controlled device need to install an APP to operate this function.
[0089] Figure 6 It is a schematic implementation process of a data transmission method provided by an embodiment of the present application Figure 4 As Figure 6 shown, after the mobile phone behavior state is that the mobile phone is placed on the charging base, it enters the Bluetooth search state; the wireless charging controls the wireless charging module to detect and start charging; the Qi-link control obtains the information of entering the charging and conducts Bluetooth search. If it is a non-paired mobile phone, the pairing is not successful. If it is a paired mobile phone, a network channel (e.g., Wi-Fi) is established. After the mobile phone behavior state is successfully connected to the PC for communication, it enters the working mode, that is, it enters the data mutual transmission mode.
[0090] In some embodiments, the Qi-link module is built into the PC and can be regarded as an integrated unit. That is, when the mobile phone pairs with the Qi-link, it can also be understood as pairing with the PC. Because for the user, when the mobile phone and the PC perform data transmission, it is equivalent to the mobile phone and the PC pairing.
[0091] It can be understood that in the embodiments of the present application, the proposed Qi-Link "one-charge transmission" can, while the mobile phone is placed on the PC charging module for charging, achieve the interaction between the mobile phone and the PC in one step, so as to make full use of the charging time for data backup, mobile phone use, etc. This method triggers the synchronization and backup of mobile phone data through wireless charging, makes full use of the charging time, improves work efficiency, and triggers the mobile phone interface to be cast to the PC through wireless charging, and uses the PC to process the work of the mobile phone without affecting the use of the mobile phone during charging. The advantages of this method include: (1) wireless connection; (2) not limited by the mobile phone brand; (3) simple operation, only requiring this step of wireless charging trigger; (4) during the interaction process, the mobile phone keeps charging. In short, the advantages of "one-charge transmission" lie in "convenience and high efficiency".
[0092] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that these steps must be executed in this specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.; or, the steps in different embodiments may be combined into a new technical solution.
[0093] Based on the foregoing embodiments, the embodiments of the present application provide a data transmission device. The device includes each module included and each unit included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; during the implementation process, the processor can be an AI acceleration engine (such as an NPU, etc.), a GPU, a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.
[0094] Figure 7 As shown in the structural schematic diagram of a data transmission device provided by the embodiments of the present application, Figure 7 as shown, the data transmission device 70 includes a establishment module 701 and a receiving module 702, where:
[0095] The establishment module 701 is configured to establish a communication connection between the electronic device and the device to be charged in response to the wireless charging module being in a working state;
[0096] The receiving module 702 is configured to receive the first data transmitted by the device to be charged based on the communication connection.
[0097] In some embodiments, the data transmission device 70 further includes an enabling module and a first control module; wherein, the enabling module is configured to enable the wireless charging module in response to the sensing area of the wireless charging module being in a first state, where the first state includes a state in which the device to be charged is placed on the sensing area; the first control module is configured to control the detection module to poll whether the wireless charging module enables wireless charging operations based on a clock signal, and determine that the wireless charging module is in an operating state when the wireless charging module enables wireless charging operations.
[0098] In some embodiments, the data transmission device 70 further includes an enabling module and a determination module; wherein, the enabling module is configured to enable the wireless charging module in response to the sensing area of the wireless charging module being in a first state, where the first state includes a state in which the device to be charged is placed on the sensing area; the determination module is configured to determine that the wireless charging module is in an operating state based on the information that the wireless charging module sends to the detection module indicating that the wireless charging module is in an operating state.
[0099] In some embodiments, the establishment module 701 is configured to establish a pairing connection between the electronic device and the device to be charged; and based on the pairing connection, establish a communication connection between the electronic device and the device to be charged.
[0100] In some embodiments, the establishment module 701 is configured to determine a first wireless network where the electronic device is located and a second wireless network where the device to be charged is located based on the pairing connection; when the first wireless network is inconsistent with the second wireless network, provide a third wireless network through the electronic device or the device to be charged, and establish a communication connection between the electronic device and the device to be charged based on the third wireless network.
[0101] In some embodiments, the receiving module 702 is configured to output a display screen corresponding to the display data when the data type of the first data includes display data.
[0102] In some embodiments, the receiving module 702 is configured to output a display screen corresponding to the display data based on the display control instruction when the data type of the first data includes a display control instruction; wherein, the display control instruction is generated based on a first control operation of a user on the device to be charged; the first control operation is used to indicate the display manner of the display data.
[0103] In some embodiments, when the display mode is the mirror display mode, the data transmission device 70 further includes a generation module; wherein, the generation module is configured to generate second data in response to a second control operation of the user on the mirror interface of the device to be charged displayed on the electronic device, and transmit the second data to the device to be charged; wherein, the second data includes at least one operation instruction for controlling the interface display content of the device to be charged.
[0104] In some embodiments, the data transmission device 70 further includes a stop module and a second control module; wherein, the stop module is configured to stop the enabling of the wireless charging module in response to the induction area of the wireless charging module being in a second state; wherein, the second state includes: the state where the device to be charged is to be placed on the induction area; the second control module is configured to control the pairing connection and the communication connection between the electronic device and the device to be charged to be disconnected when the detection module detects that the wireless charging module stops the wireless charging operation.
[0105] The description of the above device embodiments is similar to the description of the above method embodiments and has similar beneficial effects to those of the method embodiments. For the technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0106] It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation. In addition, each functional unit in the various embodiments of the present application may be integrated in one processing unit, may exist separately physically, or two or more units may be integrated in one unit. The above integrated units may be implemented in the form of hardware, or in the form of software functional units, or in the form of a combination of software and hardware.
[0107] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the related technology, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0108] An embodiment of the present application provides a first controller. Figure 8 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Figure 1 As shown in Figure 8 , the electronic device 80 includes a memory 801, a processor 802, and a wireless charging module 803. The memory 801 is used to store a computer program that can run on the processor 802. The processor 802 is used to execute the computer program in the memory 801 and perform the following: in response to the wireless charging module 803 being in a working state, establish a communication connection between the electronic device 80 and the device to be charged; and based on the communication connection, receive first data transmitted by the device to be charged.
[0109] It should be noted that the memory 801 is configured to store instructions and applications executable by the processor 802, and can also cache data to be processed or already processed by each module in the processor 802 and the electronic device 80, and can be implemented by flash memory (Flash) or random access memory (Random Access Memory, RAM).
[0110] In some embodiments, Figure 9 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Figure 2 As shown in Figure 9 , the electronic device 80 further includes a display 804. Among them, the display 804 is used to display a display screen corresponding to the display data when the data type of the first data includes display data.
[0111] In some embodiments, the display 804 is used to output a display screen corresponding to the display data based on the display control instruction when the data type of the first data includes a display control instruction.
[0112] In the embodiments of the present application, the type of the electronic device is not limited. The electronic device can be a device with a wireless charging module such as a laptop computer, a tablet computer, a smart home device, an Internet of Things (IoT) device, or a vehicle-mounted device.
[0113] Exemplarily, in a possible implementation manner, the electronic device is a personal computer.
[0114] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps in the method provided in the above embodiment.
[0115] An embodiment of the present application provides a computer program product containing instructions. When it runs on a processor, it causes the processor to execute the steps in the method provided in the above method embodiment.
[0116] It should be noted here that the descriptions of the above storage medium and device embodiments are similar to those of the above method embodiments and have similar beneficial effects to the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0117] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" or "in a possible implementation" or "example" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" or "in some embodiments" or "in a possible implementation" or "example" etc. that appear throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the sequence numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The sequence numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments. The descriptions of the above embodiments tend to emphasize the differences between the embodiments. Their similarities or similarities can be referred to each other. For the sake of brevity, they will not be repeated herein.
[0118] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, object A and / or object B can represent: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0119] It should be noted that in this article, the term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In several embodiments provided in the present application, it should be understood that the disclosed devices and apparatuses, etc. can be implemented in other ways. The above-described embodiments are only illustrative. The features disclosed in the several product embodiments provided in the present application can be combined arbitrarily without conflict to obtain new product embodiments.
[0120] As described above, it is only the implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims described above.
Claims
1. A data transmission method, applied to an electronic device, wherein the electronic device includes a wireless charging module; the method comprises: In response to the wireless charging module being in an operating state, establishing a communication connection between the electronic device and a device to be charged; Based on the communication connection, first data transmitted by the device to be charged is received.
2. The data transmission method according to claim 1, wherein the electronic device further comprises a detection module, wherein the detection module is communicatively connected to the wireless charging module; and the method further comprises: In response to the sensing area of the wireless charging module being in a first state, enabling the wireless charging module; wherein the first state includes: a state where the device to be charged is placed on the sensing area; Based on the clock signal, the detection module is controlled to poll whether the wireless charging module enables the wireless charging operation, and when the wireless charging module enables the wireless charging operation, it is determined that the wireless charging module is in a working state.
3. The data transmission method according to claim 1, wherein the electronic device further comprises a detection module, wherein the detection module is communicatively connected to the wireless charging module; and the method further comprises: In response to the sensing area of the wireless charging module being in a first state, enabling the wireless charging module; wherein the first state includes: a state where the device to be charged is placed on the sensing area; Based on the received information sent by the wireless charging module to the detection module that the wireless charging module is in the working state, it is determined that the wireless charging module is in the working state.
4. The data transmission method according to claim 1, wherein establishing a communication connection between the electronic device and the device to be charged comprises: Establishing a pairing connection between the electronic device and the device to be charged; Based on the pairing connection, a communication connection is established between the electronic device and the device to be charged.
5. The data transmission method according to claim 4, wherein the step of establishing a communication connection between the electronic device and the device to be charged based on the pairing connection comprises: Based on the pairing connection, determining a first wireless network where the electronic device is located and a second wireless network where the device to be charged is located; In the case that the first wireless network is inconsistent with the second wireless network, a third wireless network is provided by the electronic device or the device to be charged, and a communication connection is established between the electronic device and the device to be charged based on the third wireless network.
6. The data transmission method according to claim 1, wherein the receiving the first data transmitted by the device to be charged comprises: When the data type of the first data includes display data, a display screen corresponding to the display data is output.
7. The data transmission method according to claim 6, wherein when the data type of the first data includes display data, outputting a display screen corresponding to the display data comprises: In the case where the data type of the first data includes a display control instruction, a display screen corresponding to the display data is output based on the display control instruction; wherein the display control instruction is generated based on a first control operation of a user on the device to be charged; and the first control operation is used to indicate a display mode of the display data.
8. The data transmission method according to claim 7, when the display mode is a mirror display mode, the method further comprises: In response to a second control operation of the user on the mirroring interface displayed on the electronic device of the device to be charged, second data is generated and transmitted to the device to be charged; wherein the second data includes at least one operation instruction, and the operation instruction is used to control the interface display content of the device to be charged.
9. The data transmission method according to claim 2 or 3, further comprising: In response to the sensing area of the wireless charging module being in a second state, stopping enabling the wireless charging module; wherein the second state includes: a state where the device to be charged is to be placed on the sensing area; When the detection module detects that the wireless charging module has disabled the wireless charging operation, the pairing connection and the communication connection between the electronic device and the device to be charged are controlled to be disconnected.
10. An electronic device, comprising a memory, a processor and a wireless charging module, wherein: The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the computer program in the memory to: In response to the wireless charging module being in a working state, a communication connection is established between the electronic device and the device to be charged; and based on the communication connection, first data transmitted by the device to be charged is received.