WO2022179305A1 - Data communication method and apparatus, and storage medium, electronic device and protective sleeve - Google Patents

Data communication method and apparatus, and storage medium, electronic device and protective sleeve Download PDF

Info

Publication number
WO2022179305A1
WO2022179305A1 PCT/CN2021/143503 CN2021143503W WO2022179305A1 WO 2022179305 A1 WO2022179305 A1 WO 2022179305A1 CN 2021143503 W CN2021143503 W CN 2021143503W WO 2022179305 A1 WO2022179305 A1 WO 2022179305A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
wireless
data
external device
power
Prior art date
Application number
PCT/CN2021/143503
Other languages
French (fr)
Chinese (zh)
Inventor
贝为炬
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022179305A1 publication Critical patent/WO2022179305A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/20Circuit arrangements or systems for wireless supply or distribution of electric power using microwaves or radio frequency waves
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/80Circuit arrangements or systems for wireless supply or distribution of electric power involving the exchange of data, concerning supply or distribution of electric power, between transmitting devices and receiving devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a data communication method, an apparatus, a storage medium, an electronic device, and a protective cover.
  • electronic devices such as smart phones and tablet computers can wirelessly communicate with other electronic devices through wireless communication protocols, thereby realizing data transmission between the electronic devices and other electronic devices.
  • the present application provides a data communication method, device, storage medium, electronic device and protective cover, which can expand the communication capability of the electronic device.
  • the present application provides a data communication method, which is applied to an electronic device, where the electronic device includes a first wireless power component, and the data communication method includes:
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the present application further provides a data communication device, which is applied to an electronic device, the electronic device includes a first wireless power component, and the data communication device includes:
  • a power supply module configured to provide power to an external device through the first wireless power component
  • a communication module configured to transmit communication data with the external device through a first wireless communication protocol
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the present application also provides a storage medium on which a computer program is stored, and when the computer program is loaded by an electronic device including the first wireless power component, the data communication method provided by the present application is executed.
  • the present application further provides an electronic device, including a processor, a memory and a first wireless power component, wherein the memory stores a computer program, and the processor executes the method provided by the present application by loading the computer program data communication method.
  • the present application further provides a data communication method, which is applied to a protective cover, where the protective cover includes a wireless power receiving component and a data forwarding component, and the data communication method includes:
  • the data forwarding component uses the second wireless communication protocol to transmit the communication data with the target communication device.
  • the present application also provides a protective cover, including a wireless power receiving component and a data forwarding component, wherein,
  • the wireless power receiving component is used for receiving power provided by the electronic device
  • the data forwarding component is used for transmitting communication data with the electronic device using a first wireless communication protocol
  • the second wireless communication protocol is used to transmit the communication data with the target communication device.
  • FIG. 1 is a schematic flowchart of a data communication method provided by an embodiment of the present application.
  • FIG. 2 is a physical schematic diagram of an electronic device and an external device in an embodiment of the present application.
  • FIG. 3 is an example diagram of a communication trigger control provided by an electronic device in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of communication data transmission between an electronic device and a target communication device through an external device in an embodiment of the present application.
  • FIG. 5 is an example diagram of a device control interface provided by an electronic device in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the electronic device charging the battery and supplying power to the first wireless power component by using the third power provided by the wireless charging device in the embodiment of the present application.
  • FIG. 7 is another schematic flowchart of a data communication method provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a data communication apparatus provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a protective cover provided by an embodiment of the present application.
  • FIG. 11 is another schematic flowchart of a data communication method provided by an embodiment of the present application.
  • electronic devices such as smart phones and tablet computers can wirelessly communicate with other electronic devices through wireless communication protocols, thereby realizing data transmission between the electronic devices and other electronic devices.
  • wireless communication protocols are constantly emerging. Since the hardware of electronic equipment is fixed after leaving the factory, it cannot support new wireless communication protocols.
  • An embodiment of the present application provides a data communication method, which is applied to an electronic device, where the electronic device includes a first wireless power component, and the data communication method includes:
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the second wireless communication protocol includes an ultra-wideband communication protocol.
  • the external device includes a protective cover.
  • the providing power to an external device through the first wireless power component includes:
  • the second power for data forwarding is provided to the external device through the first wireless power component.
  • the transmitting a handshake request signal to the external device through the first wireless power component includes:
  • the handshake request signal is transmitted to the external device through the first wireless power component.
  • the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
  • the method further includes:
  • the method further includes:
  • Stop providing the second power to the external device through the first wireless power component when there is no communication demand with the target communication device.
  • the communication data includes a device identifier of the target communication device
  • the transmission of the communication data with the external device through the first wireless communication protocol includes:
  • the device identification transmitted by the external device is received through the first wireless communication protocol.
  • the method after receiving the device identifier transmitted by the external device through the first wireless communication protocol, the method further includes:
  • a device control interface corresponding to the target communication device is displayed, and the target communication device is controlled through the device control interface.
  • controlling the target communication device through the device control interface includes:
  • the electronic device further includes a second wireless power component
  • the data communication method further includes:
  • the supplying power to an external device through the first wireless power component includes:
  • the first wireless power component is powered based on the third power to provide power to the external device through the first wireless power component.
  • the data communication method further includes:
  • the method further includes:
  • the first wireless communication protocol includes a Bluetooth communication protocol.
  • the embodiments of the present application provide a data communication method, a data communication device, a storage medium, an electronic device, and a protective cover, wherein the execution body of the data communication method may be the data communication device provided in the embodiments of the present application, or the data communication device is integrated
  • the electronic device, wherein the data communication device can be implemented in the form of hardware or software.
  • the electronic device may be a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer and other devices.
  • FIG. 1 is a schematic flowchart of a data communication method provided by an embodiment of the present application.
  • the data communication method is implemented in an electronic device, and the electronic device includes a first wireless power component.
  • an embodiment of the present application The flow of the provided data communication method can be as follows:
  • the electronic device includes a first wireless power component, and the first wireless power component is configured to convert the wired power into wireless power and radiate outward when receiving the wired power supply.
  • the present application is to supply power to the external device through the first wireless power component of the electronic device, so as to extend the communication capability of the electronic device through the external device.
  • the electronic device supports the A wireless communication protocol, but does not support the B wireless communication protocol, but the electronic device has a communication requirement with the target communication device using the B wireless communication protocol (it can be any other electronic device for which the electronic device has communication requirements), and
  • the external device supports both the A wireless communication protocol and the B wireless communication protocol, and the external device can provide power to the external device by the electronic device without a battery, so that the external device acts as an electronic device and uses the B wireless communication protocol.
  • the target communication device A bridge for data communication.
  • the present application does not specifically limit the physical display form of the external device.
  • the external device may be a protective cover for protecting the smart phone.
  • the electronic device when it recognizes that there is a communication requirement of a wireless communication protocol that it does not support, it supplies power to the first wireless power component in a wired manner through a battery configured by itself, and converts the wired power provided by the battery into wireless power through the wireless power component. Electricity radiates outwards, providing power to external devices.
  • the electronic device is provided with a communication trigger control in the pull-down menu, and the user can operate the electronic device to display the pull-down menu when the user needs the electronic device to communicate with other electronic devices using a wireless communication protocol that is not supported by the electronic device. And click the communication trigger control in the drop-down menu to input the communication command to the electronic device.
  • the electronic device receives the communication instruction, it recognizes that there is currently a communication requirement of a wireless communication protocol that it does not support.
  • the aforementioned communication requirements may also be triggered in other ways, including but not limited to double-tap, shake, screen-off gesture, and the like.
  • the transmission of communication data is performed with the external device through the first wireless communication protocol
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the external device if there is an external device within the radiation range of the first wireless power component, the external device will start to work based on the power provided by the first wireless power component.
  • the electronic device has a communication requirement of a wireless communication protocol that it does not support.
  • the electronic device communicates with the external device through the first wireless communication protocol supported by both the electronic device and the external device.
  • the communication data is transmitted, wherein the communication data is transmitted to the target communication device through the second wireless communication protocol that is not supported by the electronic device based on the power provided by the electronic device through the first wireless power component via the external device, as shown in FIG. 4 . .
  • the electronic device sends communication data to the external device through the first wireless communication protocol, and the external device forwards the communication data to the target communication device through the second wireless communication protocol that is not supported by the electronic device;
  • the second wireless communication protocol that is not supported by the electronic device receives the communication data sent by the target communication device, the received communication data is forwarded to the external device through the first wireless communication protocol.
  • the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data.
  • this application does not specifically limit the first wireless communication protocol and the second wireless communication protocol.
  • the first wireless communication protocol can be any wireless communication protocol supported by the electronic device and the external device at the same time
  • the second wireless communication protocol can be an electronic device that does not Supported, but any communication protocol supported by both the external device and the target communication device.
  • the external device powers is provided to the external device through the first wireless power component of the electronic device, and communication data is transmitted with the external device through the first wireless communication protocol, and the communication data is communicated by the external device through the second wireless communication.
  • the protocol is transmitted with the target communication device, which may be to send the communication data from the electronic device to the target communication device, or to transmit the communication data from the target communication device to the electronic device.
  • the external device acts as a communication bridge between the electronic device and the target communication device, which can effectively expand the communication capability of the electronic device.
  • the first wireless communication protocol includes a Bluetooth communication protocol
  • the second wireless communication protocol includes an ultra-wideband communication protocol
  • the Bluetooth communication protocol is a global specification for wireless data. It is a special short-range wireless technology that establishes a communication environment between fixed and mobile devices based on low-cost short-range wireless connections. With years of technological development, the Bluetooth communication protocol has the advantages of convenience, flexibility, security, low cost, and low power consumption.
  • Ultra Wide Band (UWB) communication protocol is a wireless carrier communication technology. It does not use a sinusoidal carrier, but uses nanosecond non-sinusoidal narrow pulses to transmit data, so it occupies a wide spectrum. It has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy, and is especially suitable for high-speed wireless access in dense multipath places such as indoors.
  • the external device adopts the Bluetooth communication protocol and the ultra-wideband communication protocol to provide the ultra-wideband function for the electronic device, so as to perform data communication with the target communication device adopting the ultra-wideband communication protocol, which can further realize object searching, navigation, etc. Function.
  • the external device includes a protective case for protecting the electronic device.
  • the power is provided to the external device through the first wireless power component, including:
  • the second power for data forwarding is provided to the external device through the first wireless power component.
  • the electronic device when the electronic device recognizes that there is a communication requirement of a wireless communication protocol that it does not support, the electronic device supplies power to the first wireless power component in a wired manner through the battery configured by itself, and the wireless power component provides the wired power supply from the battery. The electric power is converted into wireless electric power and radiated outward, and the wireless electric power is recorded as the first electric power.
  • the electronic device also transmits a handshake request signal through the first wireless power component, where the handshake request signal at least carries description information of the electronic device and is used for declaring the existence of the electronic device and simultaneously detecting whether there is an external device.
  • the description information includes, but is not limited to, a device identifier used to uniquely characterize the electronic device. In addition, it may also include a description of the wireless communication protocol supported by the electronic device, and the information describing the maximum power that the electronic device can radiate through the first wireless power component, etc. .
  • the external device if there is an external device within the radiation range of the first power, the external device will start to work based on the first power and receive a handshake request signal from the electronic device.
  • the handshake rules are used to return a handshake response signal to the electronic device.
  • the handshake response signal may carry information for describing the power required by the external device for data forwarding.
  • the configuration of the handshake rule is not specifically limited here, and can be configured by those skilled in the art according to actual needs. It should be noted that the size of the first power can be configured according to the power conversion efficiency of the external device and the power required for the handshake communication by the external device, that is, after the first power is converted by the external device, at least the power required for the external device to perform handshake communication. required power.
  • the electronic device will receive the handshake response signal returned by the external device based on the first power through the first wireless power component. So far, the electronic device has completed the handshake with the external device, and both the electronic device and the external device recognize the existence of each other. At this time, the electronic device further radiates the second power outward through the first wireless power component, and provides the second power to the external device for the external device to realize the forwarding of the communication data.
  • the size of the second power can be configured according to the power conversion efficiency of the external device and the power required for data forwarding by the external device, that is, after the second power is converted by the external device, at least the power required for the external device to perform data forwarding. . In this embodiment of the present application, the second power is greater than the first power.
  • the handshake request signal is transmitted to the external device through the first wireless power component, including:
  • a handshake request signal is transmitted to the external device through the first wireless power component.
  • the input mode of the communication trigger instruction is not specifically limited here, and can be configured by those skilled in the art according to actual needs.
  • the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
  • the method further includes:
  • the electronic device after sending the handshake request signal, if the electronic device does not receive the handshake response signal, it is determined that there is no external device capable of data forwarding, and correspondingly stops supplying power to the first wireless power component, so that the first wireless The power component stops radiating power to the outside, thereby stopping supplying the first power to the external device through the first wireless power component.
  • the electronic device starts timing while sending the handshake request signal, and stops supplying power to the first wireless power component if the handshake response signal is not received within a preset time period.
  • the value of the preset duration is not specifically limited here, and can be selected by those skilled in the art according to actual needs, for example, it can be configured to be 3 seconds.
  • the method further includes:
  • the power supply to the first wireless power component is stopped, so as to stop providing the second power to the external device through the first wireless power component.
  • the electronic device completes all data transmission with the target communication device, or receives an input communication disconnection instruction, it determines that there is currently no communication requirement with the target communication device.
  • the present application avoids meaningless outward radiation of power from the first wireless power component, which can not only reduce the power consumption of electronic devices, but also reduce the possible impact of power radiation on users.
  • the communication data includes a device identifier of the target communication device, and the communication data is transmitted with the external device through the first wireless communication protocol, including:
  • the device identification transmitted by the external device is received through the first wireless communication protocol.
  • the device identification of the target communication device is used to uniquely characterize the target communication device, and those skilled in the art can select relevant information as the device identification of the target communication device according to actual needs.
  • the MAC address of the target communication device can be used as its device identification.
  • the target communication device may use its own device identification as communication data, and send it to the external device through the second wireless communication protocol.
  • the external device when receiving the device identification sent by the target communication device based on the second power, the external device sends the device identification to the electronic device through the first wireless communication protocol.
  • the electronic device will receive the device identifier of the target communication device sent by the external device through the first wireless communication protocol.
  • the method after receiving the device identifier transmitted by the external device through the first wireless communication protocol, the method further includes:
  • the electronic device uses the received device identification of the target communication device to remotely control the target communication device.
  • the device identification of the target communication device can uniquely characterize the target communication device. Therefore, after receiving the device identification of the target communication device forwarded by the external device, the electronic device can identify the identity of the target communication device through the device identification. Afterwards, the electronic device displays a device control interface corresponding to the target communication device according to the identified identity of the target communication device. Thus, the target communication device is controlled through the device control interface.
  • controlling the target communication device through the device control interface includes:
  • the control instruction of the device control interface is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
  • the device control interface is configured to generate a control instruction for controlling the target communication device according to a user operation.
  • the electronic device receives the control instruction for the target communication device through the displayed device control interface.
  • the electronic device sends the control command to the external device through the first wireless communication protocol, and the external device forwards the control command to the target communication device through the second wireless communication protocol device executes.
  • the electronic device recognizes that the target communication device is a smart fan, and displays the device control interface corresponding to the smart fan accordingly.
  • the device control interface includes three controls, one for controlling A power-on control for turning on or off the smart fan, a circulating air control for controlling the smart fan to turn on or off the circulating air mode, and a timing power-on control for controlling the smart fan to turn on regularly.
  • the user can click the power-on control to generate a power-on control command for the smart fan.
  • the electronic device further forwards the power-on control command to the smart fan via an external device. After the smart fan receives the power-on control command, it responds accordingly.
  • the smart fan After that, if the user wants to turn on the circulating air mode of the smart fan, he can click the circulating air control to generate a circulating air control command for the smart fan, and the electronic device further forwards the circulating air control command to the smart fan through the external device.
  • the fan after receiving the circulating air control command, the smart fan correspondingly turns on the circulating air mode.
  • control instruction is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device through the second wireless communication protocol for execution, including:
  • the control instruction is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
  • a short-range control mode In the embodiment of the present application, a short-range control mode is provided.
  • the electronic device In the short-range control mode, the electronic device will forward control instructions through an external device to control the target communication device.
  • the electronic device is further provided with a mode switching control for turning on and off the short-range control mode, and the electronic device receives user operation through the mode switching control, and correspondingly turns on or off the short-range control mode.
  • the electronic device when the electronic device receives a control command for the target communication device when the short-range control mode is not turned on, first, whether the current mobile network of the device is available, and if the mobile network is unavailable, the electronic device also performs control commands through external devices. Forwarding is used to control the target communication device.
  • the data communication method provided by this application further includes:
  • control instruction is sent to the target communication device through the mobile network for execution.
  • the electronic device further includes a second wireless power component
  • the data communication method further includes:
  • Power is provided to external devices through the first wireless power assembly, including:
  • the first wireless power assembly is powered based on the third power to provide power to an external device through the first wireless power assembly.
  • the electronic device further includes a second wireless power assembly, and by using the second wireless power assembly, the electronic device can supply power to the first wireless power assembly while charging its own battery.
  • the electronic device receives the third power provided by the wireless charging device through the second wireless power component, converts the third power into wired power, charges the battery based on a part of the wired power, and charges the battery based on another part of the wired power Power is supplied to the first wireless power assembly, thereby providing power to the external device through the first wireless power assembly, as shown in FIG. 6 .
  • the data communication method provided by this application further includes:
  • the electronic equipment In order to avoid long-term power radiation to the user, the electronic equipment gives an early warning of the power radiation.
  • the electronic device after the electronic device supplies power to the first wireless power assembly, the first wireless power assembly immediately starts to radiate power outward. It should be noted that, in this embodiment of the present application, the electronic device only collects statistics on the power radiation value released to the user.
  • the electronic device monitors in real time whether the user is within the radiation range of the first wireless power component, and if it is identified that the user is within the radiation range of the first wireless power component, the electronic device radiates outward according to the current situation of the first wireless power component.
  • the size of the electric power is used to calculate the electric power radiation value, and when it is identified that the user is outside the radiation range of the first wireless power component, the statistics of the electric power radiation value are suspended until it is identified again that the user is within the radiation range of the first wireless electric power assembly. When the statistics are restored, and so on, the power radiation value released by the first wireless power component to the user can be obtained by statistics.
  • the electronic device can collect images in real time through the front camera, and identify whether there is a user's face in the collected image, and if yes, determine that the user is within the radiation range of the first wireless power component; for another example, the electronic device can obtain and predict the user's face.
  • the distance between the associated wearable devices if the wearable device is in the state of being worn by the user, the distance is taken as the distance between the electronic device and the user.
  • the value of the actual power radiation capability of the component it is determined that the user is within the radiation range of the first wireless power component.
  • the embodiment of the present application also presets a preset radiation value for triggering a prompt to stop communicating with the target communication device, and the value of the preset radiation value can be obtained by those skilled in the art according to actual needs. limit.
  • the electronic device obtains the statistical power radiation value released by the first wireless power component to the user in real time, and judges whether the power radiation value is less than the aforementioned preset radiation value. The user is warned. If the power radiation value is greater than or equal to the preset radiation value, it is determined that the user needs to be warned, and a prompt message for stopping communication with the target communication device is output.
  • the confirmation message for the prompt message is received, it is determined that the user agrees to stop the communication with the target communication device, and the power supply to the first wireless power assembly is stopped at this time, thereby stopping the supply of power to the external device through the first wireless power assembly.
  • the method further includes:
  • Stop providing power to the external device through the first wireless power component when no acknowledgment information for the prompt information is received within a preset time period.
  • the electronic device determines that the user agrees to stop the communication with the target communication device, and at this time, stops supplying power to the first wireless power component, thereby stopping the pass through The first wireless power assembly provides power to the external device.
  • FIG. 7 is another schematic flowchart of a data communication method provided by an embodiment of the present application.
  • the first wireless communication protocol is a Bluetooth communication protocol
  • the second wireless communication protocol is an ultra-wideband communication protocol as an example.
  • the data communication method may include:
  • the electronic device determines whether there is a communication requirement with a target communication device using an ultra-wideband communication protocol that it does not support.
  • the electronic device includes a first wireless power component, and the first wireless power component is configured to convert the wired power into wireless power and radiate outward when receiving the wired power supply.
  • the present application is to supply power to the external device through the first wireless power component of the electronic device, so as to extend the communication capability of the electronic device through the external device.
  • the electronic device supports the A wireless communication protocol, but does not support the B wireless communication protocol, but the electronic device has a communication requirement with the target communication device using the B wireless communication protocol (it can be any other electronic device for which the electronic device has communication requirements), and
  • the external device supports both the A wireless communication protocol and the B wireless communication protocol, and the external device can provide power to the external device by the electronic device without a battery, so that the external device acts as an electronic device and uses the B wireless communication protocol.
  • the target communication device A bridge for data communication.
  • the present application does not specifically limit the physical display form of the external device.
  • the external device may be a protective cover for protecting the smart phone.
  • the electronic device firstly determines whether there is a communication requirement of an ultra-wideband communication protocol that it does not support. For example, referring to FIG. 3, the electronic device is provided with a communication trigger control in the pull-down menu, and the user can operate the electronic device to display the pull-down menu when the user needs the electronic device to communicate with other electronic devices using the ultra-wideband communication protocol not supported by the electronic device. , and click the communication trigger control in the drop-down menu to input communication commands to the electronic device.
  • the electronic device receives the communication instruction, it recognizes that there is currently a communication requirement of an ultra-wideband communication protocol that it does not support.
  • the aforementioned communication requirements may also be triggered in other ways, including but not limited to double-tap, shake, screen-off gesture, and the like.
  • the electronic device when the aforementioned communication requirement exists, supplies power to the first wireless power component, radiates the first power outward through the first wireless power component, and transmits a handshake request signal outward.
  • the electronic device when it recognizes that there is a communication requirement of a wireless communication protocol that it does not support, it supplies power to the first wireless power component in a wired manner through a battery configured by itself, and converts the wired power provided by the battery into wireless power through the wireless power component. The electric power is radiated outward, and the wireless electric power is recorded as the first electric power.
  • the electronic device also transmits a handshake request signal through the wireless power component.
  • the handshake request signal carries at least description information of the electronic device, and is used to declare the existence of the electronic device and simultaneously detect whether there is an external device.
  • the description information includes, but is not limited to, a device identifier used to uniquely characterize the electronic device.
  • it may also include a description of the wireless communication protocol supported by the electronic device, and the information describing the maximum power that the electronic device can radiate through the first wireless power component, etc. .
  • the electronic device upon receiving a handshake response signal returned by the external device based on the first power through the first wireless power assembly, the electronic device provides the second power to the external device through the first wireless power assembly.
  • the external device if there is an external device within the radiation range of the first power, the external device will start to work based on the first power, and when receiving a handshake request from the electronic device, according to the handshaking rules pre-agreed with the electronic device, Returns a handshake response signal to the electronic device.
  • the handshake response signal may carry information for describing the power required by the external device for data forwarding.
  • the configuration of the handshake rule is not specifically limited here, and can be configured by those skilled in the art according to actual needs. It should be noted that the size of the first power can be configured according to the power conversion efficiency of the external device and the power required for the handshake communication by the external device, that is, after the first power is converted by the external device, at least the power required for the external device to perform handshake communication. required power.
  • the electronic device will receive the handshake response signal returned by the external device based on the first power through the first wireless power component. So far, the electronic device has completed the handshake with the external device, and both the electronic device and the external device recognize the existence of each other. At this time, the electronic device further radiates the second power outward through the first wireless power component, and provides the second power to the external device for the external device to realize the forwarding of the communication data.
  • the size of the second power can be configured according to the power conversion efficiency of the external device and the power required for data forwarding by the external device, that is, after the second power is converted by the external device, at least the power required for the external device to perform data forwarding. . In this embodiment of the present application, the second power is greater than the first power.
  • the electronic device transmits communication data with the external device through the Bluetooth wireless communication protocol, and the communication data is transmitted by the external device and the target communication device through the ultra-wideband communication protocol based on the second power.
  • the electronic device has the communication requirements of the ultra-wideband communication protocol that it does not support, and recognizes the existence of the external device.
  • the electronic device transmits the communication data with the external device through the Bluetooth communication protocol supported by the electronic device and the external device, wherein , the communication data is transmitted with the target communication device via an ultra-wideband communication protocol not supported by the electronic device based on the second power provided by the electronic device through the first wireless power component via the external device.
  • the electronic device sends communication data to the external device through the Bluetooth communication protocol, and the external device forwards the communication data to the target communication device through the ultra-wideband communication protocol not supported by the electronic device based on the second power;
  • the device receives the communication data sent by the target communication device through the ultra-wideband communication protocol not supported by the electronic device based on the second power, the device receives the communication data forwarded by the external device through the Bluetooth communication protocol.
  • the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data.
  • the external device adopts the Bluetooth communication protocol and the ultra-wideband communication protocol to provide the ultra-wideband function for the electronic device, so as to perform data communication with the target communication device adopting the ultra-wideband communication protocol, which can further realize object searching, navigation, etc. Function.
  • the electronic device stops powering the first wireless power component when there is no communication demand with the target communication device.
  • the power supply to the first wireless power component is stopped.
  • the electronic device completes all data transmission with the target communication device, or receives an input communication disconnection instruction, it determines that there is currently no communication requirement with the target communication device.
  • the present application avoids meaningless outward radiation of power from the first wireless power component, which can not only reduce the power consumption of electronic devices, but also reduce the possible impact of power radiation on users.
  • a data communication device is also provided.
  • FIG. 8 is a schematic structural diagram of a data communication apparatus 300 according to an embodiment of the present application.
  • the data communication device 300 is applied to electronic equipment, and the data communication device includes a power supply module 310 and a communication module 320, as follows:
  • the power supply module 310 is configured to provide power to the external device through the first wireless power component
  • the communication module 320 is configured to transmit communication data with the external device through the first wireless communication protocol
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the second wireless communication protocol includes an ultra-wideband communication protocol.
  • the external device includes a protective case.
  • the power supply module 310 when providing power to the external device through the first wireless power component, is configured to:
  • the second power for data forwarding is provided to the external device through the first wireless power component.
  • the power supply module 310 when the handshake request signal is transmitted to the external device through the first wireless power component, the power supply module 310 is configured to:
  • a handshake request signal is transmitted to the external device through the first wireless power component.
  • the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
  • the power supply module 310 is further configured to:
  • the power supply module 310 is further configured to:
  • the communication data includes the device identifier of the target communication device, and when the communication data is transmitted with the external device through the first wireless communication protocol, the communication module 320 is configured to:
  • the device identification transmitted by the external device is received through the first wireless communication protocol.
  • the communication module 320 is further configured to:
  • the communication module 320 when the target communication device is controlled through the device control interface, the communication module 320 is configured to:
  • the control instruction of the device control interface is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
  • the electronic device further includes a second wireless power component
  • the data communication apparatus provided by the present application further includes a charging module, configured to receive the third power provided by the wireless charging device through the second wireless power component, and charging the battery based on the third power;
  • the power supply module 310 When providing power to the external device through the first wireless power assembly, the power supply module 310 is used for:
  • the first wireless power assembly is powered based on the third power to provide power to an external device through the first wireless power assembly.
  • the data communication device provided by the present application further includes a prompt module for acquiring the power radiation value released by the first wireless power component to the user; and when the power radiation value is greater than or equal to the preset radiation value , output a prompt message to stop communicating with the target communication device.
  • a prompt module for acquiring the power radiation value released by the first wireless power component to the user; and when the power radiation value is greater than or equal to the preset radiation value , output a prompt message to stop communicating with the target communication device.
  • the prompt module is further configured to:
  • Stop providing power to the external device through the first wireless power component when no acknowledgment information for the prompt information is received within a preset time period.
  • the first wireless communication protocol includes a Bluetooth communication protocol.
  • the above modules can be implemented as independent entities, or can be arbitrarily combined, implemented as the same or several entities, the specific implementation of the above units can refer to the previous embodiments, which will not be repeated here.
  • an electronic device is also provided.
  • the electronic device 400 includes a processor 410 , a memory 420 and a first wireless power component 430 .
  • the processor 410 is electrically connected with the memory 420 and the first wireless power component 430 .
  • the processor 410 is the control center of the electronic device 400, uses various interfaces and lines to connect various parts of the entire electronic device, executes the electronic device by running or loading the computer program stored in the memory 420, and calling the data stored in the memory 420. Various functions of the device 400 and processing data.
  • the memory 420 can be used to store software programs and modules, and the processor 410 executes various functional applications and data processing by running the computer programs and modules stored in the memory 420 .
  • the memory 420 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, a computer program required for at least one function (such as a sound playback function, a communication playback function, etc.), etc.; Data created by the use of electronic equipment, etc.
  • memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 420 may also include a memory controller to provide processor 410 access to memory 420 .
  • the first wireless power component 430 is configured to convert the wired power into wireless power to radiate outward when receiving the wired power supply.
  • the processor 410 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 420 according to the following steps, and is executed by the processor 410 and stored in the memory 420
  • the computer program in , so as to realize various functions, as follows:
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the second wireless communication protocol includes an ultra-wideband communication protocol.
  • the external device includes a protective case.
  • the processor 410 when power is provided to the external device through the first wireless power component 430, the processor 410 is configured to execute:
  • the second power for data forwarding is provided to the external device through the first wireless power component 430 .
  • the processor 410 when the handshake request signal is transmitted to the external device through the first wireless power component 430, the processor 410 is configured to execute:
  • a handshake request signal is transmitted to the external device through the first wireless power component 430 .
  • the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
  • the processor 410 is further configured to execute:
  • the processor 410 is further configured to execute:
  • the communication data includes the device identifier of the target communication device, and when the communication data is transmitted with the external device through the first wireless communication protocol, the processor 410 is configured to execute:
  • the device identification transmitted by the external device is received through the first wireless communication protocol.
  • the processor 410 after receiving the device identification transmitted by the external device through the first wireless communication protocol, the processor 410 is further configured to execute:
  • the processor 410 when the target communication device is controlled through the device control interface, the processor 410 is configured to execute:
  • the control instruction of the device control interface is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
  • the electronic device further includes a second wireless power component
  • the processor 410 is further configured to execute:
  • the processor 410 When providing power to the external device through the first wireless power component 430, the processor 410 is configured to perform:
  • Power is supplied to the first wireless power component 430 based on the third power to provide power to an external device through the first wireless power component 430 .
  • the processor 410 is further configured to execute:
  • the processor 410 is further configured to execute:
  • the first wireless communication protocol includes a Bluetooth communication protocol.
  • An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on an electronic device including the first wireless power component, the electronic device is made to execute any of the foregoing embodiments.
  • data communication methods such as:
  • the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM,) or a random access device (Random Access Memory, RAM), and the like.
  • a protective cover is also provided.
  • the protective cover 500 includes a wireless power receiving component 510 , a data forwarding component 520 and a protective cover body 530 , wherein,
  • the wireless power receiving component 510 is used for receiving power provided by the electronic device
  • the data forwarding component 520 is used for transmitting the communication data with the electronic device using the first wireless communication protocol
  • the second wireless communication protocol is used to transmit the communication data with the target communication device.
  • the protective cover body 530 is used for accommodating the electronic device, so as to protect the electronic device.
  • the material of the protective cover body 530 is not specifically limited here, including but not limited to materials such as plastic and silica gel.
  • the protective cover 500 further includes a power management module (not shown in the figure).
  • the electronic device includes a first wireless power component, and the first wireless power component is configured to convert the wired power into wireless power and radiate outward when receiving the wired power supply.
  • the present application is to supply power to the protective cover through the first wireless power component of the electronic device, so as to extend the communication capability of the electronic device through the protective cover.
  • the electronic device When the electronic device recognizes that there is a communication requirement of a wireless communication protocol that it does not support, it supplies power to the first wireless power component in a wired manner through the battery configured by itself, and converts the wired power provided by the battery into wireless power through the wireless power component. external radiation, so as to provide power for the protective cover 500 .
  • the wireless power receiving component 510 will receive the power radiated by the first wireless power component, and start to work based on the power.
  • the wireless power receiving component 510 converts the power radiated by the first wireless power component into wired power and then provides the power to the power management module.
  • the power management module provides power to the data forwarding component 520 after optimizing the converted wired power.
  • the optimization processing performed by the power management module includes but is not limited to processing such as rectification, filtering, and voltage regulation.
  • the data forwarding component 520 transmits communication data with the electronic device through a first wireless protocol; and transmits communication data with the target communication device through a second wireless communication protocol not supported by the electronic device.
  • the electronic device sends communication data to the data forwarding component 520 through the first wireless communication protocol, and the data forwarding component 520 forwards the communication data to the target communication device through the second wireless communication protocol that is not supported by the electronic device; or
  • the data forwarding component 520 receives the communication data sent by the target communication device through the second wireless communication protocol not supported by the electronic device, the data forwarding component 520 forwards the communication data to the target communication device.
  • the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data.
  • this application does not specifically limit the first wireless communication protocol and the second wireless communication protocol
  • the first wireless communication protocol can be any wireless communication protocol supported by the electronic device and the protective case at the same time
  • the second wireless communication protocol can be an electronic device that does not Supported, but any communication protocol supported by both the case and the target communication device.
  • a data communication method is also provided.
  • the data communication method is applied to the protective cover provided by the present application.
  • the protective cover includes a wireless power receiving component and a data forwarding component. Please refer to FIG. 11 .
  • the data communication method includes: :
  • the data forwarding component uses the second wireless communication protocol to transmit the communication data with the target communication device.
  • 620 and 630 is not limited by the size of the sequence number, and 620 may be executed before 630, or 620 may be executed after 630.
  • the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process can include methods such as data communication methods.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
  • each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Power Engineering (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A data communication method and apparatus, and a storage medium, an electronic device and a protective sleeve. The method comprises: providing power to an external device by means of a first wireless power assembly of an electronic device; and transmitting communication data with the external device by means of a first wireless communication protocol, wherein the communication data is transmitted by the external device with a target communication device by means of a second wireless communication protocol.

Description

数据通信方法、装置、存储介质、电子设备及保护套Data communication method, device, storage medium, electronic device and protective cover
本申请要求于2021年2月23日提交中国专利局、申请号为202110203619.2、申请名称为“数据通信方法、装置、存储介质、电子设备及保护套”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on February 23, 2021 with the application number 202110203619.2 and the application name is "Data Communication Method, Device, Storage Medium, Electronic Device and Protective Cover", the entire content of which is Incorporated herein by reference.
技术领域technical field
本申请涉及通信技术领域,具体涉及一种数据通信方法、装置、存储介质、电子设备及保护套。The present application relates to the field of communication technologies, and in particular, to a data communication method, an apparatus, a storage medium, an electronic device, and a protective cover.
背景技术Background technique
目前,如智能手机、平板电脑等电子设备可以通过无线通信协议与其它电子设备进行无线通信,进而实现数据在电子设备与其它电子设备间的传输。At present, electronic devices such as smart phones and tablet computers can wirelessly communicate with other electronic devices through wireless communication protocols, thereby realizing data transmission between the electronic devices and other electronic devices.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种数据通信方法、装置、存储介质、电子设备及保护套,能够扩展电子设备的通信能力。The present application provides a data communication method, device, storage medium, electronic device and protective cover, which can expand the communication capability of the electronic device.
第一方面,本申请提供一种数据通信方法,应用于电子设备,所述电子设备包括第一无线电力组件,所述数据通信方法包括:In a first aspect, the present application provides a data communication method, which is applied to an electronic device, where the electronic device includes a first wireless power component, and the data communication method includes:
通过所述第一无线电力组件向外部设备提供电力;providing power to an external device through the first wireless power assembly;
通过第一无线通信协议与所述外部设备进行通信数据的传输;Perform communication data transmission with the external device through a first wireless communication protocol;
其中,所述通信数据由所述外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
第二方面,本申请还提供一种数据通信装置,应用于电子设备,所述电子设备包括第一无线电力组件,所述数据通信装置包括:In a second aspect, the present application further provides a data communication device, which is applied to an electronic device, the electronic device includes a first wireless power component, and the data communication device includes:
供电模块,用于通过所述第一无线电力组件向外部设备提供电力;a power supply module, configured to provide power to an external device through the first wireless power component;
通信模块,用于通过第一无线通信协议与所述外部设备进行通信数据的传输;a communication module, configured to transmit communication data with the external device through a first wireless communication protocol;
其中,所述通信数据由所述外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
第三方面,本申请还提供一种存储介质,其上存储有计算机程序,当所述计算机程序被包括第一无线电力组件的电子设备加载时执行如本申请所提供的数据通信方法。In a third aspect, the present application also provides a storage medium on which a computer program is stored, and when the computer program is loaded by an electronic device including the first wireless power component, the data communication method provided by the present application is executed.
第四方面,本申请还提供一种电子设备,括处理器、存储器和第一无线电力组件,所述存储器存储有计算机程序,所述处理器通过加载所述计算机程序执行如本申请所提供的数据通信方法。In a fourth aspect, the present application further provides an electronic device, including a processor, a memory and a first wireless power component, wherein the memory stores a computer program, and the processor executes the method provided by the present application by loading the computer program data communication method.
第五方面,本申请还提供一种数据通信方法,应用于保护套,所述保护套包括无线受电组件和数据转发组件,所述数据通信方法包括:In a fifth aspect, the present application further provides a data communication method, which is applied to a protective cover, where the protective cover includes a wireless power receiving component and a data forwarding component, and the data communication method includes:
通过所述无线受电组件接收电子设备提供的电力;receiving power provided by the electronic device through the wireless power receiving component;
通过所述数据转发组件采用第一无线通信协议与所述电子设备进行通信数据的传输;以及Use the first wireless communication protocol to transmit communication data with the electronic device through the data forwarding component; and
通过所述数据转发组件采用第二无线通信协议与目标通信设备进行所述通信数据的传输。The data forwarding component uses the second wireless communication protocol to transmit the communication data with the target communication device.
第六方面,本申请还提供一种保护套,包括无线受电组件和数据转发组件,其中,In a sixth aspect, the present application also provides a protective cover, including a wireless power receiving component and a data forwarding component, wherein,
所述无线受电组件用于接收电子设备提供的电力;The wireless power receiving component is used for receiving power provided by the electronic device;
所述数据转发组件用于采用第一无线通信协议与所述电子设备进行通信数据的传输;以及The data forwarding component is used for transmitting communication data with the electronic device using a first wireless communication protocol; and
采用第二无线通信协议与目标通信设备进行所述通信数据的传输。The second wireless communication protocol is used to transmit the communication data with the target communication device.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的 附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请实施例提供的数据通信方法的一流程示意图。FIG. 1 is a schematic flowchart of a data communication method provided by an embodiment of the present application.
图2是本申请实施例中电子设备和外部设备的实体示意图。FIG. 2 is a physical schematic diagram of an electronic device and an external device in an embodiment of the present application.
图3是本申请实施例中电子设备提供的通信触发控件的示例图。FIG. 3 is an example diagram of a communication trigger control provided by an electronic device in an embodiment of the present application.
图4是本申请实施例中电子设备与目标通信设备通过外部设备进行通信数据传输的示意图。FIG. 4 is a schematic diagram of communication data transmission between an electronic device and a target communication device through an external device in an embodiment of the present application.
图5是本申请实施例中电子设备提供的设备控制界面的示例图。FIG. 5 is an example diagram of a device control interface provided by an electronic device in an embodiment of the present application.
图6是本申请实施例中电子设备通过无线充电设备提供的第三电力对电池进行充电以及对第一无线电力组件供电的示意图。FIG. 6 is a schematic diagram of the electronic device charging the battery and supplying power to the first wireless power component by using the third power provided by the wireless charging device in the embodiment of the present application.
图7是本申请实施例提供的数据通信方法的另一流程示意图。FIG. 7 is another schematic flowchart of a data communication method provided by an embodiment of the present application.
图8是本申请实施例提供的数据通信装置的结构示意图。FIG. 8 is a schematic structural diagram of a data communication apparatus provided by an embodiment of the present application.
图9是本申请实施例提供的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图10是本申请实施例提供的保护套的结构示意图。FIG. 10 is a schematic structural diagram of a protective cover provided by an embodiment of the present application.
图11是本申请实施例提供的数据通信方法的又一流程示意图。FIG. 11 is another schematic flowchart of a data communication method provided by an embodiment of the present application.
具体实施方式Detailed ways
应当说明的是,本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。It should be noted that the terms "first", "second" and "third" in the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include unlisted steps or modules, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
目前,如智能手机、平板电脑等电子设备可以通过无线通信协议与其它电子设备进行无线通信,进而实现数据在电子设备与其它电子设备间的传输。然而,随着无线通信技术的快速发展,新的无线通信协议不断涌现,由于电子设备在出厂后硬件固定,导致其无法支持新的无线通信协议。At present, electronic devices such as smart phones and tablet computers can wirelessly communicate with other electronic devices through wireless communication protocols, thereby realizing data transmission between the electronic devices and other electronic devices. However, with the rapid development of wireless communication technology, new wireless communication protocols are constantly emerging. Since the hardware of electronic equipment is fixed after leaving the factory, it cannot support new wireless communication protocols.
本申请实施例提供一种数据通信方法,应用于电子设备,所述电子设备包括第一无线电力组件,所述数据通信方法包括:An embodiment of the present application provides a data communication method, which is applied to an electronic device, where the electronic device includes a first wireless power component, and the data communication method includes:
通过所述第一无线电力组件向外部设备提供电力;providing power to an external device through the first wireless power assembly;
通过第一无线通信协议与所述外部设备进行通信数据的传输;Perform communication data transmission with the external device through a first wireless communication protocol;
其中,所述通信数据由所述外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
可选的,在一实施例中,所述第二无线通信协议包括超宽带通信协议。Optionally, in an embodiment, the second wireless communication protocol includes an ultra-wideband communication protocol.
可选的,在一实施例中,所述外部设备包括保护套。Optionally, in an embodiment, the external device includes a protective cover.
可选的,在一实施例中,所述通过所述第一无线电力组件向外部设备提供电力,包括:Optionally, in an embodiment, the providing power to an external device through the first wireless power component includes:
通过所述第一无线电力组件向所述外部设备提供用于握手的第一电力;providing first power for handshake to the external device through the first wireless power component;
通过所述第一无线电力组件向所述外部设备发射握手请求信号;transmitting a handshake request signal to the external device through the first wireless power component;
在接收到所述外部设备返回的握手响应信号时,通过所述第一无线电力组件向所述外部设备提供用于数据转发的第二电力。When receiving the handshake response signal returned by the external device, the second power for data forwarding is provided to the external device through the first wireless power component.
可选的,在一实施例中,所述通过所述第一无线电力组件向所述外部设备发射握手请求信号,包括:Optionally, in an embodiment, the transmitting a handshake request signal to the external device through the first wireless power component includes:
在接收到通信触发指令时,通过所述第一无线电力组件向所述外部设备发射所述握手请求信号。When a communication trigger instruction is received, the handshake request signal is transmitted to the external device through the first wireless power component.
可选的,在一实施例中,所述通信触发指令包括用于触发通信的触摸指令、语音指令或手势指令中的至少一种。Optionally, in an embodiment, the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
可选的,在一实施例中,所述通过所述第一无线电力组件向所述外部设备发射握手请求信号之后,还包括:Optionally, in an embodiment, after the sending a handshake request signal to the external device through the first wireless power component, the method further includes:
未接收到所述握手响应信号时,停止通过所述第一无线电力组件向所述外部设备提供所述第一电力。When the handshake response signal is not received, the supply of the first power to the external device through the first wireless power component is stopped.
可选的,在一实施例中,所述通过所述第一无线电力组件向所述外部设备提供用于数据传输的第二电力之后,还包括:Optionally, in an embodiment, after providing the external device with the second power for data transmission by using the first wireless power component, the method further includes:
不存在与所述目标通信设备的通信需求时,停止通过所述第一无线电力组件向所述外部设备提供所述第二电力。Stop providing the second power to the external device through the first wireless power component when there is no communication demand with the target communication device.
可选的,在一实施例中,所述通信数据包括所述目标通信设备的设备标识,所述通过第一无线通信协议与所述外部设备进行通信数据的传输,包括:Optionally, in an embodiment, the communication data includes a device identifier of the target communication device, and the transmission of the communication data with the external device through the first wireless communication protocol includes:
通过所述第一无线通信协议接收所述外部设备传输的所述设备标识。The device identification transmitted by the external device is received through the first wireless communication protocol.
可选的,在一实施例中,所述通过所述第一无线通信协议接收所述外部设备传输的所述设备标识之后,还包括:Optionally, in an embodiment, after receiving the device identifier transmitted by the external device through the first wireless communication protocol, the method further includes:
展示对应所述目标通信设备的设备控制界面,并通过所述设备控制界面对所述目标通信设备进行控制。A device control interface corresponding to the target communication device is displayed, and the target communication device is controlled through the device control interface.
可选的,在一实施例中,所述通过所述设备控制界面对所述目标通信设备进行控制,包括:Optionally, in an embodiment, the controlling the target communication device through the device control interface includes:
通过所述第一无线通信协议将所述设备控制界面的控制指令发送至所述外部设备,使得所述外部设备通过所述第二无线通信协议将所述控制指令发送至所述目标通信设备执行。Send the control instruction of the device control interface to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol .
可选的,在一实施例中,所述电子设备还包括第二无线电力组件,所述数据通信方法还包括:Optionally, in an embodiment, the electronic device further includes a second wireless power component, and the data communication method further includes:
通过所述第二无线电力组件接收无线充电设备提供的第三电力,并基于所述第三电力为电池充电;receiving third power provided by the wireless charging device through the second wireless power component, and charging the battery based on the third power;
所述通过所述第一无线电力组件向外部设备提供电力,包括:The supplying power to an external device through the first wireless power component includes:
基于所述第三电力向所述第一无线电力组件供电,以通过所述第一无线电力组件向所述外部设备提供电力。The first wireless power component is powered based on the third power to provide power to the external device through the first wireless power component.
可选的,在一实施例中,所述数据通信方法还包括:Optionally, in an embodiment, the data communication method further includes:
获取所述第一无线电力组件释放给用户的电力辐射值;obtaining the power radiation value released by the first wireless power component to the user;
在所述电力辐射值大于或等于预设辐射值时,输出停止与所述目标通信设备进行通信的提示信息。When the power radiation value is greater than or equal to a preset radiation value, outputting prompt information for stopping communication with the target communication device.
可选的,在一实施例中,所述输出停止与所述目标通信设备进行通信的提示信息之后,还包括:Optionally, in an embodiment, after the outputting prompt information for stopping communication with the target communication device, the method further includes:
在预设时长内未接收到针对所述提示信息的否认信息时,停止通过所述第一无线电力组件向外部设备提供电力。When no acknowledgment information for the prompt information is received within a preset time period, the power supply to the external device through the first wireless power component is stopped.
可选的,在一实施例中,所述第一无线通信协议包括蓝牙通信协议。Optionally, in an embodiment, the first wireless communication protocol includes a Bluetooth communication protocol.
本申请实施例提供一种数据通信方法、数据通信装置、存储介质、电子设备以及保护套,其中数据通信方法的执行主体可以是本申请实施例提供的数据通信装置,或者集成了该数据通信装置的电子设备,其中该数据通信装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等设备。The embodiments of the present application provide a data communication method, a data communication device, a storage medium, an electronic device, and a protective cover, wherein the execution body of the data communication method may be the data communication device provided in the embodiments of the present application, or the data communication device is integrated The electronic device, wherein the data communication device can be implemented in the form of hardware or software. The electronic device may be a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer and other devices.
请参照图1,图1为本申请实施例提供的数据通信方法的流程示意图,该数据通信方法实施于电子设备,该电子设备包括第一无线电力组件,如图1所示,本申请实施例提供的数据通信方法的流程可以如下:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data communication method provided by an embodiment of the present application. The data communication method is implemented in an electronic device, and the electronic device includes a first wireless power component. As shown in FIG. 1, an embodiment of the present application The flow of the provided data communication method can be as follows:
在110中,通过第一无线电力组件向外部设备提供电力。At 110, power is provided to the external device through the first wireless power assembly.
本申请实施例中,电子设备包括第一无线电力组件,该第一无线电力组件被配置为在接收到有线电力供给时,将有线电力转换为无线电力向外辐射。In the embodiment of the present application, the electronic device includes a first wireless power component, and the first wireless power component is configured to convert the wired power into wireless power and radiate outward when receiving the wired power supply.
应当说明的是,本申请在于通过电子设备的第一无线电力组件为外部设备供电,从而通过外部设备为电子设备扩展通信能力。比如,电子设备支持A无线通信协议,不支持B无线通信协议,但是电子设备存在与采用B无线通信协议的目标通信设备(可以电子设备存在通信需求的其它任一电子设备)的通信需求,而外部设备同时支持A无线通信协议和B无线通信协议,则外部设备在未配置电池的情况下,可由电子设备为外部设备提供电力,使得外部设备作为电子设备与采用B无线通信协议的目标通信设备进行数据通信的桥梁。其中,本申请对于外部设备的实体展示形式不作具体限制,比如,请参照图2,在电子设备为智能手机时,外部设备可以为用于保护智能手机的保护套。It should be noted that the present application is to supply power to the external device through the first wireless power component of the electronic device, so as to extend the communication capability of the electronic device through the external device. For example, the electronic device supports the A wireless communication protocol, but does not support the B wireless communication protocol, but the electronic device has a communication requirement with the target communication device using the B wireless communication protocol (it can be any other electronic device for which the electronic device has communication requirements), and The external device supports both the A wireless communication protocol and the B wireless communication protocol, and the external device can provide power to the external device by the electronic device without a battery, so that the external device acts as an electronic device and uses the B wireless communication protocol. The target communication device A bridge for data communication. The present application does not specifically limit the physical display form of the external device. For example, referring to FIG. 2 , when the electronic device is a smart phone, the external device may be a protective cover for protecting the smart phone.
其中,电子设备在识别到存在自身不支持的无线通信协议的通信需求时,通过自身配置的电池以有线的方式向第一无线电力组件供电,通过无线电力组件将电池提供的有线电力转换为无线电力向外辐射,从而为外部设备提供电力。Wherein, when the electronic device recognizes that there is a communication requirement of a wireless communication protocol that it does not support, it supplies power to the first wireless power component in a wired manner through a battery configured by itself, and converts the wired power provided by the battery into wireless power through the wireless power component. Electricity radiates outwards, providing power to external devices.
比如,请参照图3,电子设备在下拉菜单中提供有通信触发控件,用户可以在需要电子设备与采用电子设备不支持的无线通信协议的其它电子设备进行通信时,操作电子设备显示下拉菜单,并点击下拉菜单中的通信触发控件,向电子设备输入通信指令。相应的,电子设备在接收到通信指令时,识别到当前存在自身不支持的无线通信协议的通信需求。此外,还可以通过其它方式触发前述通信需求,触发方式包括但不限于双击、摇一摇、熄屏手势等。For example, referring to FIG. 3 , the electronic device is provided with a communication trigger control in the pull-down menu, and the user can operate the electronic device to display the pull-down menu when the user needs the electronic device to communicate with other electronic devices using a wireless communication protocol that is not supported by the electronic device. And click the communication trigger control in the drop-down menu to input the communication command to the electronic device. Correspondingly, when the electronic device receives the communication instruction, it recognizes that there is currently a communication requirement of a wireless communication protocol that it does not support. In addition, the aforementioned communication requirements may also be triggered in other ways, including but not limited to double-tap, shake, screen-off gesture, and the like.
在120中,通过第一无线通信协议与外部设备进行通信数据的传输;In 120, the transmission of communication data is performed with the external device through the first wireless communication protocol;
其中,通信数据由外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
本申请实施例中,若第一无线电力组件的辐射范围内存在外部设备,外部设备将基于该第一无线电力组件提供的电力开始工作。In the embodiment of the present application, if there is an external device within the radiation range of the first wireless power component, the external device will start to work based on the power provided by the first wireless power component.
如上,电子设备存在自身不支持的无线通信协议的通信需求,当外部设备基于第一无线电力组件提供的电力开始工作后,电子设备通过其与外部设备均支持的第一无线通信协议与外部设备进行通信数据的传输,其中,该通信数据经由外部设备基于电子设备通过第一无线电力组件提供的电力,通过电子设备不支持的第二无线通信协议与目标通信设备进行传输,如图4所示。As above, the electronic device has a communication requirement of a wireless communication protocol that it does not support. When the external device starts to work based on the power provided by the first wireless power component, the electronic device communicates with the external device through the first wireless communication protocol supported by both the electronic device and the external device. The communication data is transmitted, wherein the communication data is transmitted to the target communication device through the second wireless communication protocol that is not supported by the electronic device based on the power provided by the electronic device through the first wireless power component via the external device, as shown in FIG. 4 . .
其中,可以是电子设备通过第一无线通信协议向外部设备发送通信数据,由外部设备通过电子设备不支持的第二无线通信协议将该通信数据转发至目标通信设备;也可以是外部设备在通过电子设备不支持的第二无线通信协议接收到目标通信设备发送的通信数据时,通过第一无线通信协议将接收到的通信数据转发至外部设备。Wherein, it may be that the electronic device sends communication data to the external device through the first wireless communication protocol, and the external device forwards the communication data to the target communication device through the second wireless communication protocol that is not supported by the electronic device; When the second wireless communication protocol that is not supported by the electronic device receives the communication data sent by the target communication device, the received communication data is forwarded to the external device through the first wireless communication protocol.
应当说明的是,本申请实施例对于通信数据的类型不作具体限制,其可以为任意类型的数据。此外,本申请对第一无线通信协议和第二无线通信协议不作具体限制,第一无线通信协议可以为电子设备和外部设备同时支持的任意无线通信协议,第二无线通信协议可以为电子设备不支持,但是外部设备和目标通信设备同时支持的任意通信协议。It should be noted that the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data. In addition, this application does not specifically limit the first wireless communication protocol and the second wireless communication protocol. The first wireless communication protocol can be any wireless communication protocol supported by the electronic device and the external device at the same time, and the second wireless communication protocol can be an electronic device that does not Supported, but any communication protocol supported by both the external device and the target communication device.
由上可知,本申请中,通过电子设备的第一无线电力组件向外部设备提供电力,以及通过第一无线通信协议与外部设备进行通信数据的传输,该通信数据由外部设备通过第二无线通信协议与目标通信设备进行传输,可以是将来自于电子设备的通信数据发送至目标通信设备,也可以是将来自于目标通信设备的通信数据传输至电子设备。以此,通过向外 部设备无线供电,由外部设备作为电子设备与目标通信设备的通信桥梁,能够有效地扩展电子设备的通信能力。As can be seen from the above, in this application, power is provided to the external device through the first wireless power component of the electronic device, and communication data is transmitted with the external device through the first wireless communication protocol, and the communication data is communicated by the external device through the second wireless communication. The protocol is transmitted with the target communication device, which may be to send the communication data from the electronic device to the target communication device, or to transmit the communication data from the target communication device to the electronic device. In this way, by wirelessly supplying power to the external device, the external device acts as a communication bridge between the electronic device and the target communication device, which can effectively expand the communication capability of the electronic device.
可选地,在一实施例中,第一无线通信协议包括蓝牙通信协议,第二无线通信协议包括超宽带通信协议。Optionally, in an embodiment, the first wireless communication protocol includes a Bluetooth communication protocol, and the second wireless communication protocol includes an ultra-wideband communication protocol.
其中,蓝牙通信协议是一种无线数据的全球规范,它是基于低成本的近距离无线连接,为固定和移动间设备建立通信环境的一种特殊的近距离无线技术。随着多年技术发展,蓝牙通信协议具有方便快捷、灵活安全、低成本、低功耗等优点。Among them, the Bluetooth communication protocol is a global specification for wireless data. It is a special short-range wireless technology that establishes a communication environment between fixed and mobile devices based on low-cost short-range wireless connections. With years of technological development, the Bluetooth communication protocol has the advantages of convenience, flexibility, security, low cost, and low power consumption.
超宽带(Ultra Wide Band,UWB)通信协议是一种无线载波通信技术,它不采用正弦载波,而是利用纳秒级的非正弦波窄脉冲传输数据,因此其所占的频谱范围很宽。其具有系统复杂度低,发射信号功率谱密度低,对信道衰落不敏感,截获能力低,定位精度高等优点,尤其适用于室内等密集多径场所的高速无线接入。Ultra Wide Band (UWB) communication protocol is a wireless carrier communication technology. It does not use a sinusoidal carrier, but uses nanosecond non-sinusoidal narrow pulses to transmit data, so it occupies a wide spectrum. It has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy, and is especially suitable for high-speed wireless access in dense multipath places such as indoors.
本申请实施例中,外部设备采用蓝牙通信协议和超宽带通信协议,为电子设备提供超宽带功能,从而与采用超宽带通信协议的目标通信设备进行数据通信,能够实现寻物、导航等进一步地功能。In the embodiment of the present application, the external device adopts the Bluetooth communication protocol and the ultra-wideband communication protocol to provide the ultra-wideband function for the electronic device, so as to perform data communication with the target communication device adopting the ultra-wideband communication protocol, which can further realize object searching, navigation, etc. Function.
可选地,在一实施例中,外部设备包括用于保护电子设备的保护套。Optionally, in an embodiment, the external device includes a protective case for protecting the electronic device.
可选地,在一实施例中,通过第一无线电力组件向外部设备提供电力,包括:Optionally, in an embodiment, the power is provided to the external device through the first wireless power component, including:
通过第一无线电力组件向外部设备提供用于握手的第一电力;providing first power for handshake to the external device through the first wireless power component;
通过第一无线电力组件向外部设备发射握手请求信号;Sending a handshake request signal to the external device through the first wireless power component;
在接收到外部设备返回的握手响应信号时,通过第一无线电力组件向外部设备提供用于数据转发的第二电力。When receiving the handshake response signal returned by the external device, the second power for data forwarding is provided to the external device through the first wireless power component.
本申请实施例中,电子设备在识别到存在自身不支持的无线通信协议的通信需求时,通过自身配置的电池以有线的方式向第一无线电力组件供电,通过无线电力组件将电池提供的有线电力转换为无线电力向外辐射,将该无线电力记为第一电力。此外,电子设备还通过第一无线电力组件向外发射握手请求信号,该握手请求信号至少携带有电子设备的描述信息,用于声明电子设备的存在,同时探测是否存在外部设备。其中,描述信息包括但不限于用于唯一表征电子设备的设备标识,此外,还可以包括用于描述电子设备支持的无线通信协议,描述电子设备能够通过第一无线电力组件辐射的最大电力信息等。In the embodiment of the present application, when the electronic device recognizes that there is a communication requirement of a wireless communication protocol that it does not support, the electronic device supplies power to the first wireless power component in a wired manner through the battery configured by itself, and the wireless power component provides the wired power supply from the battery. The electric power is converted into wireless electric power and radiated outward, and the wireless electric power is recorded as the first electric power. In addition, the electronic device also transmits a handshake request signal through the first wireless power component, where the handshake request signal at least carries description information of the electronic device and is used for declaring the existence of the electronic device and simultaneously detecting whether there is an external device. The description information includes, but is not limited to, a device identifier used to uniquely characterize the electronic device. In addition, it may also include a description of the wireless communication protocol supported by the electronic device, and the information describing the maximum power that the electronic device can radiate through the first wireless power component, etc. .
本申请实施例中,若第一电力的辐射范围内存在外部设备,外部设备将基于该第一电力开始工作,并接收到来自于电子设备的握手请求信号,此时,按照与电子设备预先约定的握手规则,向电子设备返回握手响应信号。该握手响应信号可携带用于描述外部设备进行数据转发所需电力的信息。In this embodiment of the present application, if there is an external device within the radiation range of the first power, the external device will start to work based on the first power and receive a handshake request signal from the electronic device. The handshake rules are used to return a handshake response signal to the electronic device. The handshake response signal may carry information for describing the power required by the external device for data forwarding.
此处对握手规则的配置不作具体限制,可由本领域技术人员根据实际需要进行配置。应当说明的是,第一电力的大小可根据外部设备的电力转换效率以及外部设备进行握手通信所需的电力进行配置,即,第一电力经外部设备转换后,至少达到外部设备进行握手通信所需的电力。The configuration of the handshake rule is not specifically limited here, and can be configured by those skilled in the art according to actual needs. It should be noted that the size of the first power can be configured according to the power conversion efficiency of the external device and the power required for the handshake communication by the external device, that is, after the first power is converted by the external device, at least the power required for the external device to perform handshake communication. required power.
相应的,电子设备将通过第一无线电力组件接收到外部设备基于第一电力返回的握手响应信号,至此,电子设备完成与外部设备的握手,电子设备与外部设备均识别到对方的存在。此时,电子设备进一步通过第一无线电力组件向外辐射第二电力,将该第二电力提供给外部设备,供外部设备实现通信数据的转发。同上,第二电力的大小可根据外部设备的电力转换效率以及外部设备进行数据转发所需的电力进行配置,即,第二电力经外部设备转换后,至少达到外部设备进行数据转发所需的电力。本申请实施例中,第二电力大于第一电力。Correspondingly, the electronic device will receive the handshake response signal returned by the external device based on the first power through the first wireless power component. So far, the electronic device has completed the handshake with the external device, and both the electronic device and the external device recognize the existence of each other. At this time, the electronic device further radiates the second power outward through the first wireless power component, and provides the second power to the external device for the external device to realize the forwarding of the communication data. Same as above, the size of the second power can be configured according to the power conversion efficiency of the external device and the power required for data forwarding by the external device, that is, after the second power is converted by the external device, at least the power required for the external device to perform data forwarding. . In this embodiment of the present application, the second power is greater than the first power.
可选地,在一实施例中,通过第一无线电力组件向外部设备发射握手请求信号,包括:Optionally, in an embodiment, the handshake request signal is transmitted to the external device through the first wireless power component, including:
在接收到通信触发指令时,通过第一无线电力组件向外部设备发射握手请求信号。When the communication trigger instruction is received, a handshake request signal is transmitted to the external device through the first wireless power component.
此处对通信触发指令的输入方式不作具体限定,可由本领域技术人员根据实际需要进行配置。通过限制电子设备在接收到通信触发指令时,才通过第一无线电力组件向外部设备发射握手请求信号,能够降低对用户的电力辐射。The input mode of the communication trigger instruction is not specifically limited here, and can be configured by those skilled in the art according to actual needs. By restricting the electronic device to transmit a handshake request signal to the external device through the first wireless power component only when it receives the communication trigger instruction, the power radiation to the user can be reduced.
可选地,在一实施例中,通信触发指令包括用于触发通信的触摸指令、语音指令或手势指令中的至少一种。Optionally, in an embodiment, the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
本申请实施例中,通信触发指令可以设置用于触发通信的触摸指令,还可以设置为用于触发通信的语音指令,更可以设置为用于触发通信的手势指令等。In this embodiment of the present application, the communication triggering instruction may be set as a touch command for triggering communication, may also be set as a voice command for triggering communication, and may be set as a gesture command for triggering communication, or the like.
可选地,在一实施例中,通过第一无线电力组件向外部设备发射握手请求信号之后,还包括:Optionally, in an embodiment, after transmitting the handshake request signal to the external device through the first wireless power component, the method further includes:
未接收到握手响应信号时,停止通过第一无线电力组件向外部设备提供第一电力。When the handshake response signal is not received, the supply of the first power to the external device through the first wireless power component is stopped.
作为一可选地实施方式,电子设备在发出握手请求信号后,若未接收到握手响应信号,判定不存在可进行数据转发的外部设备,相应停止向第一无线电力组件供电,使得第一无线电力组件停止向外辐射电力,从而停止通过第一无线电力组件向外部设备提供第一电力。比如,电子设备在发出握手请求信号的同时开始计时,若在预设时长内未接收到握手响应信号,则停止向第一无线电力组件供电。此处对预设时长的取值不作具体限制,可由本领域技术人员根据实际需要取值,比如,可以配置为3秒。As an optional implementation manner, after sending the handshake request signal, if the electronic device does not receive the handshake response signal, it is determined that there is no external device capable of data forwarding, and correspondingly stops supplying power to the first wireless power component, so that the first wireless The power component stops radiating power to the outside, thereby stopping supplying the first power to the external device through the first wireless power component. For example, the electronic device starts timing while sending the handshake request signal, and stops supplying power to the first wireless power component if the handshake response signal is not received within a preset time period. The value of the preset duration is not specifically limited here, and can be selected by those skilled in the art according to actual needs, for example, it can be configured to be 3 seconds.
可选地,在一实施例中,通过第一无线电力组件向外部设备提供用于数据传输的第二电力之后,还包括:Optionally, in an embodiment, after the second power for data transmission is provided to the external device through the first wireless power component, the method further includes:
不存在与目标通信设备的通信需求时,停止通过第一无线电力组件向外部设备提供第二电力。When there is no communication demand with the target communication device, the supply of the second power to the external device through the first wireless power component is stopped.
作为另一种可选地实施方式,当识别到不存在与目标通信设备的通信需求时,停止向第一无线电力组件供电,从而停止通过第一无线电力组件向外部设备提供第二电力。比如,电子设备在完成与目标通信设备之间所有的数据传输,或者接收到输入的通信断开指令时,判定当前不存在与目标通信设备的通信需求。As another optional implementation manner, when it is recognized that there is no communication demand with the target communication device, the power supply to the first wireless power component is stopped, so as to stop providing the second power to the external device through the first wireless power component. For example, when the electronic device completes all data transmission with the target communication device, or receives an input communication disconnection instruction, it determines that there is currently no communication requirement with the target communication device.
如上,本申请通过适时停止向第一无线电力组件供电,避免第一无线电力组件无意义的向外辐射电力,不仅能够降低对电子设备的电量消耗,更能减少电力辐射对用户可能的影响。As above, by stopping power supply to the first wireless power component in a timely manner, the present application avoids meaningless outward radiation of power from the first wireless power component, which can not only reduce the power consumption of electronic devices, but also reduce the possible impact of power radiation on users.
可选地,在一实施例中,通信数据包括目标通信设备的设备标识,通过第一无线通信协议与外部设备进行通信数据的传输,包括:Optionally, in an embodiment, the communication data includes a device identifier of the target communication device, and the communication data is transmitted with the external device through the first wireless communication protocol, including:
通过第一无线通信协议接收外部设备传输的设备标识。The device identification transmitted by the external device is received through the first wireless communication protocol.
其中,目标通信设备的设备标识用于唯一表征目标通信设备,可由本领域技术人员根据实际需要选择相关信息作为目标通信设备的设备标识,比如,可以将目标通信设备的MAC地址作为其设备标识。The device identification of the target communication device is used to uniquely characterize the target communication device, and those skilled in the art can select relevant information as the device identification of the target communication device according to actual needs. For example, the MAC address of the target communication device can be used as its device identification.
本申请实施例中,目标通信设备可以将自身的设备标识作为通信数据,并通过第二无线通信协议发送至外部设备。相应的,外部设备在基于第二电力接收到目标通信设备发送的设备标识时,通过第一无线通信协议将该设备标识发送至电子设备。相应的,电子设备将通过第一无线通信协议接收到外部设备发送的目标通信设备的设备标识。In this embodiment of the present application, the target communication device may use its own device identification as communication data, and send it to the external device through the second wireless communication protocol. Correspondingly, when receiving the device identification sent by the target communication device based on the second power, the external device sends the device identification to the electronic device through the first wireless communication protocol. Correspondingly, the electronic device will receive the device identifier of the target communication device sent by the external device through the first wireless communication protocol.
可选地,在一实施例中,通过第一无线通信协议接收外部设备传输的设备标识之后,还包括:Optionally, in an embodiment, after receiving the device identifier transmitted by the external device through the first wireless communication protocol, the method further includes:
展示对应目标通信设备的设备控制界面,并通过设备控制界面对目标通信设备进行控制。Display the device control interface corresponding to the target communication device, and control the target communication device through the device control interface.
本申请实施例中,电子设备利用接收到的目标通信设备的设备标识对目标通信设备进行远程控制。In this embodiment of the present application, the electronic device uses the received device identification of the target communication device to remotely control the target communication device.
如上所述,目标通信设备的设备标识能够唯一表征目标通信设备。因此,电子设备在 接收到外部设备转发的目标通信设备的设备标识之后,通过该设备标识即可识别出目标通信设备的身份。之后,电子设备根据识别出的目标通信设备的身份,展示对应目标通信设备的设备控制界面。从而通过该设备控制界面对目标通信设备进行控制。As described above, the device identification of the target communication device can uniquely characterize the target communication device. Therefore, after receiving the device identification of the target communication device forwarded by the external device, the electronic device can identify the identity of the target communication device through the device identification. Afterwards, the electronic device displays a device control interface corresponding to the target communication device according to the identified identity of the target communication device. Thus, the target communication device is controlled through the device control interface.
可选地,在一实施例中,通过设备控制界面对目标通信设备进行控制,包括:Optionally, in an embodiment, controlling the target communication device through the device control interface includes:
通过第一无线通信协议将设备控制界面的控制指令发送至外部设备,使得外部设备通过第二无线通信协议将控制指令发送至目标通信设备执行。The control instruction of the device control interface is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
本申请实施例中,该设备控制界面被配置为根据用户操作产生用于对目标通信设备进行控制的控制指令。In this embodiment of the present application, the device control interface is configured to generate a control instruction for controlling the target communication device according to a user operation.
相应的,在展示设备控制界面的过程中,电子设备通过展示的设备控制界面接收针对目标通信设备的控制指令。在通过设备控制界面接收到针对目标通信设备的控制指令时,电子设备通过第一无线通信协议将该控制指令发送至外部设备,由外部设备通过第二无线通信协议将该控制指令转发至目标通信设备执行。Correspondingly, in the process of displaying the device control interface, the electronic device receives the control instruction for the target communication device through the displayed device control interface. When receiving the control command for the target communication device through the device control interface, the electronic device sends the control command to the external device through the first wireless communication protocol, and the external device forwards the control command to the target communication device through the second wireless communication protocol device executes.
比如,请参照图5,电子设备识别到目标通信设备为智能风扇,相应展示对应该智能风扇的设备控制界面,如图5所示,该设备控制界面中包括三个控件,分别为用于控制智能风扇开启或关闭的开机控件,用于控制智能风扇开启或关闭循环风模式的循环风控件,以及用于控制智能风扇定时开机的定时开机控件。基于该设备控制界面,用户可以点击开机控件,从而产生针对智能风扇的开机控制指令,电子设备进一步将该开机控制指令经由外部设备转发至智能风扇,智能风扇在接收到该开机控制指令后,相应开机送风;之后,若用户期望开启智能风扇的循环风模式,则可以点击循环风控件,从而产生针对智能风扇的循环风控制指令,电子设备进一步将该循环风控制指令经由外部设备转发至智能风扇,智能风扇在接收到该循环风控制指令后,相应开启循环风模式。For example, referring to FIG. 5 , the electronic device recognizes that the target communication device is a smart fan, and displays the device control interface corresponding to the smart fan accordingly. As shown in FIG. 5 , the device control interface includes three controls, one for controlling A power-on control for turning on or off the smart fan, a circulating air control for controlling the smart fan to turn on or off the circulating air mode, and a timing power-on control for controlling the smart fan to turn on regularly. Based on the device control interface, the user can click the power-on control to generate a power-on control command for the smart fan. The electronic device further forwards the power-on control command to the smart fan via an external device. After the smart fan receives the power-on control command, it responds accordingly. After that, if the user wants to turn on the circulating air mode of the smart fan, he can click the circulating air control to generate a circulating air control command for the smart fan, and the electronic device further forwards the circulating air control command to the smart fan through the external device. The fan, after receiving the circulating air control command, the smart fan correspondingly turns on the circulating air mode.
可选地,在一实施例中,通过第一无线通信协议将控制指令发送至外部设备,使得外部设备通过第二无线通信协议将控制指令发送至目标通信设备执行,包括:Optionally, in an embodiment, the control instruction is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device through the second wireless communication protocol for execution, including:
在移动网络不可用或者当前开启短距控制模式时,通过第一无线通信协议将控制指令发送至外部设备,使得外部设备通过第二无线通信协议将控制指令发送至目标通信设备执行。When the mobile network is unavailable or the short-range control mode is currently enabled, the control instruction is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
本申请实施例中,提供有短距控制模式,电子设备在短距控制模式将通过外部设备进行控制指令的转发,用于对目标通信设备进行控制。相应的,电子设备还提供有用于开启和关闭短距控制模式的模式切换控件,电子设备通过该模式切换控件接收用户操作,相应开启或关闭短距控制模式。In the embodiment of the present application, a short-range control mode is provided. In the short-range control mode, the electronic device will forward control instructions through an external device to control the target communication device. Correspondingly, the electronic device is further provided with a mode switching control for turning on and off the short-range control mode, and the electronic device receives user operation through the mode switching control, and correspondingly turns on or off the short-range control mode.
此外,电子设备在未开启短距控件模式的情况下接收到针对目标通信设备的控制指令时,首先设备当前移动网络是否可用,若移动网络不可用,则电子设备也通过外部设备进行控制指令的转发,用于对目标通信设备进行控制。In addition, when the electronic device receives a control command for the target communication device when the short-range control mode is not turned on, first, whether the current mobile network of the device is available, and if the mobile network is unavailable, the electronic device also performs control commands through external devices. Forwarding is used to control the target communication device.
可选地,在一实施例中,本申请提供的数据通信方法还包括:Optionally, in an embodiment, the data communication method provided by this application further includes:
在移动网络可用且当前关闭短距控制模式时,通过移动网络将控制指令发送至目标通信设备执行。When the mobile network is available and the short-range control mode is currently turned off, the control instruction is sent to the target communication device through the mobile network for execution.
可选地,在一实施例中,电子设备还包括第二无线电力组件,数据通信方法还包括:Optionally, in an embodiment, the electronic device further includes a second wireless power component, and the data communication method further includes:
通过第二无线电力组件接收无线充电设备提供的第三电力,并基于第三电力为电池充电;receiving third power provided by the wireless charging device through the second wireless power component, and charging the battery based on the third power;
通过第一无线电力组件向外部设备提供电力,包括:Power is provided to external devices through the first wireless power assembly, including:
基于第三电力向第一无线电力组件供电,以通过第一无线电力组件向外部设备提供电力。The first wireless power assembly is powered based on the third power to provide power to an external device through the first wireless power assembly.
本申请实施例中,电子设备还包括第二无线电力组件,利用该第二无线电力组件,电子设备可以在为自身电池充电的同时,为第一无线电力组件供电。In this embodiment of the present application, the electronic device further includes a second wireless power assembly, and by using the second wireless power assembly, the electronic device can supply power to the first wireless power assembly while charging its own battery.
其中,电子设备通过第二无线电力组件接收无线充电设备提供的第三电力,将第三电力转换为有线电力后,基于该有线电力中的一部分为电池充电,以及基于该有线电力中的另一部分向第一无线电力组件供电,从而通过第一无线电力组件向外部设备提供电力,如图6所示。The electronic device receives the third power provided by the wireless charging device through the second wireless power component, converts the third power into wired power, charges the battery based on a part of the wired power, and charges the battery based on another part of the wired power Power is supplied to the first wireless power assembly, thereby providing power to the external device through the first wireless power assembly, as shown in FIG. 6 .
可选地,在一实施例中,本申请提供的数据通信方法,还包括:Optionally, in an embodiment, the data communication method provided by this application further includes:
获取第一无线电力组件释放给用户的电力辐射值;Obtain the power radiation value released by the first wireless power component to the user;
在电力辐射值大于或等于预设辐射值时,输出停止与目标通信设备进行通信的提示信息。When the power radiation value is greater than or equal to the preset radiation value, a prompt message for stopping communication with the target communication device is output.
为避免对用户地长时电力辐射,电子设备对电力辐射进行预警。In order to avoid long-term power radiation to the user, the electronic equipment gives an early warning of the power radiation.
其中,如上,电子设备在向第一无线电力组件供电之后,第一无线电力组件随即开始向外辐射电力。应当说明的是,本申请实施例中,电子设备仅对释放给用户的电力辐射值进行统计。Wherein, as above, after the electronic device supplies power to the first wireless power assembly, the first wireless power assembly immediately starts to radiate power outward. It should be noted that, in this embodiment of the present application, the electronic device only collects statistics on the power radiation value released to the user.
示例性地,电子设备实时监测用户是否位于第一无线电力组件的辐射范围内,若识别到用户位于第一无线电力组件的辐射范围内,则电子设备根据此时第一无线电力组件向外辐射电力的大小进行电力辐射值的统计,而当识别到用户位于第一无线电力组件的辐射范围外时,暂停进行电力辐射值的统计,直至再次识别到用户位于第一无线电力组件的辐射范围内时恢复统计,以此类推,即可统计得到第一无线电力组件释放给用户的电力辐射值。Exemplarily, the electronic device monitors in real time whether the user is within the radiation range of the first wireless power component, and if it is identified that the user is within the radiation range of the first wireless power component, the electronic device radiates outward according to the current situation of the first wireless power component. The size of the electric power is used to calculate the electric power radiation value, and when it is identified that the user is outside the radiation range of the first wireless power component, the statistics of the electric power radiation value are suspended until it is identified again that the user is within the radiation range of the first wireless electric power assembly. When the statistics are restored, and so on, the power radiation value released by the first wireless power component to the user can be obtained by statistics.
应当说明的是,本申请实施例中对于如何识别用户是否位于第一无线电力组件的辐射范围内不作具体限制,可由本领域技术人员根据实际需要进行识别方式的配置。比如,电子设备可以通过前置摄像头实时采集图像,并识别采集到的图像中是否存在用户人脸,是则判定用户位于第一无线电力组件的辐射范围内;又比如,电子设备可以获取与预关联的可穿戴设备间的距离,若可穿戴设备处于用户穿戴状态,则将该距离作为电子设备与用户的距离,若该距离小于或等于预设距离(可由本领域技术人员根据第一无线电力组件的实际电力辐射能力取值),则判定用户位于第一无线电力组件的辐射范围内。It should be noted that there is no specific limitation on how to identify whether the user is within the radiation range of the first wireless power component in the embodiments of the present application, and those skilled in the art can configure the identification method according to actual needs. For example, the electronic device can collect images in real time through the front camera, and identify whether there is a user's face in the collected image, and if yes, determine that the user is within the radiation range of the first wireless power component; for another example, the electronic device can obtain and predict the user's face. The distance between the associated wearable devices, if the wearable device is in the state of being worn by the user, the distance is taken as the distance between the electronic device and the user. The value of the actual power radiation capability of the component), it is determined that the user is within the radiation range of the first wireless power component.
此外,本申请实施例中还预设有用于触发提示停止与目标通信设备通信的预设辐射值,该预设辐射值的取值可由本领域技术人员根据实际需要取经验值,此处不作具体限制。In addition, the embodiment of the present application also presets a preset radiation value for triggering a prompt to stop communicating with the target communication device, and the value of the preset radiation value can be obtained by those skilled in the art according to actual needs. limit.
相应的,电子设备实时获取统计的第一无线电力组件释放给用户的电力辐射值,并判断该电力辐射值是否小于前述预设辐射值,若该电力辐射值小于预设辐射值,则判定无需对用户进行警示,若该电力辐射值大于或等于预设辐射值,则判定需要对用户进行警示,此时输出停止与目标通信设备进行通信的提示信息。Correspondingly, the electronic device obtains the statistical power radiation value released by the first wireless power component to the user in real time, and judges whether the power radiation value is less than the aforementioned preset radiation value. The user is warned. If the power radiation value is greater than or equal to the preset radiation value, it is determined that the user needs to be warned, and a prompt message for stopping communication with the target communication device is output.
之后,若接收到针对提示信息的确认信息,判定用户同意停止与目标通信设备的通信,此时停止向第一无线电力组件供电,从而停止通过第一无线电力组件向外部设备提供电力。Afterwards, if the confirmation message for the prompt message is received, it is determined that the user agrees to stop the communication with the target communication device, and the power supply to the first wireless power assembly is stopped at this time, thereby stopping the supply of power to the external device through the first wireless power assembly.
可选地,在一实施例中,输出停止与目标通信设备进行通信的提示信息之后,还包括:Optionally, in an embodiment, after outputting prompt information for stopping communication with the target communication device, the method further includes:
在预设时长内未接收到针对提示信息的否认信息时,停止通过第一无线电力组件向外部设备提供电力。Stop providing power to the external device through the first wireless power component when no acknowledgment information for the prompt information is received within a preset time period.
本申请实施例中,若在预设时长内为接收到针对提示信息的否认信息,则电子设备判定用户同意停止与目标通信设备的通信,此时停止向第一无线电力组件供电,从而停止通过第一无线电力组件向外部设备提供电力。In the embodiment of the present application, if the denial information for the prompt information is received within the preset time period, the electronic device determines that the user agrees to stop the communication with the target communication device, and at this time, stops supplying power to the first wireless power component, thereby stopping the pass through The first wireless power assembly provides power to the external device.
请参照图7,图7为本申请实施例提供的数据通信方法的另一流程示意图,本申请实施例以第一无线通信协议为蓝牙通信协议,第二无线通信协议为超宽带通信协议为例进行说明,如图7所示,该数据通信方法可以包括:Please refer to FIG. 7 , which is another schematic flowchart of a data communication method provided by an embodiment of the present application. In the embodiment of the present application, the first wireless communication protocol is a Bluetooth communication protocol, and the second wireless communication protocol is an ultra-wideband communication protocol as an example. For illustration, as shown in FIG. 7 , the data communication method may include:
在210中,电子设备判断是否存在与采用其不支持的超宽带通信协议的目标通信设备的通信需求。In 210, the electronic device determines whether there is a communication requirement with a target communication device using an ultra-wideband communication protocol that it does not support.
本申请实施例中,电子设备包括第一无线电力组件,该第一无线电力组件被配置为在 接收到有线电力供给时,将有线电力转换为无线电力向外辐射。In the embodiment of the present application, the electronic device includes a first wireless power component, and the first wireless power component is configured to convert the wired power into wireless power and radiate outward when receiving the wired power supply.
应当说明的是,本申请在于通过电子设备的第一无线电力组件为外部设备供电,从而通过外部设备为电子设备扩展通信能力。比如,电子设备支持A无线通信协议,不支持B无线通信协议,但是电子设备存在与采用B无线通信协议的目标通信设备(可以电子设备存在通信需求的其它任一电子设备)的通信需求,而外部设备同时支持A无线通信协议和B无线通信协议,则外部设备在未配置电池的情况下,可由电子设备为外部设备提供电力,使得外部设备作为电子设备与采用B无线通信协议的目标通信设备进行数据通信的桥梁。其中,本申请对于外部设备的实体展示形式不作具体限制,比如,请参照图2,在电子设备为智能手机时,外部设备可以为用于保护智能手机的保护套。It should be noted that the present application is to supply power to the external device through the first wireless power component of the electronic device, so as to extend the communication capability of the electronic device through the external device. For example, the electronic device supports the A wireless communication protocol, but does not support the B wireless communication protocol, but the electronic device has a communication requirement with the target communication device using the B wireless communication protocol (it can be any other electronic device for which the electronic device has communication requirements), and The external device supports both the A wireless communication protocol and the B wireless communication protocol, and the external device can provide power to the external device by the electronic device without a battery, so that the external device acts as an electronic device and uses the B wireless communication protocol. The target communication device A bridge for data communication. The present application does not specifically limit the physical display form of the external device. For example, referring to FIG. 2 , when the electronic device is a smart phone, the external device may be a protective cover for protecting the smart phone.
其中,电子设备首先判断是否存在自身不支持的超宽带通信协议的通信需求。比如,请参照图3,电子设备在下拉菜单中提供有通信触发控件,用户可以在需要电子设备与采用电子设备不支持的超宽带通信协议的其它电子设备进行通信时,操作电子设备显示下拉菜单,并点击下拉菜单中的通信触发控件,向电子设备输入通信指令。相应的,电子设备在接收到通信指令时,识别到当前存在自身不支持的超宽带通信协议的通信需求。此外,还可以通过其它方式触发前述通信需求,触发方式包括但不限于双击、摇一摇、熄屏手势等。The electronic device firstly determines whether there is a communication requirement of an ultra-wideband communication protocol that it does not support. For example, referring to FIG. 3, the electronic device is provided with a communication trigger control in the pull-down menu, and the user can operate the electronic device to display the pull-down menu when the user needs the electronic device to communicate with other electronic devices using the ultra-wideband communication protocol not supported by the electronic device. , and click the communication trigger control in the drop-down menu to input communication commands to the electronic device. Correspondingly, when the electronic device receives the communication instruction, it recognizes that there is currently a communication requirement of an ultra-wideband communication protocol that it does not support. In addition, the aforementioned communication requirements may also be triggered in other ways, including but not limited to double-tap, shake, screen-off gesture, and the like.
在220中,在存在前述通信需求时,电子设备向第一无线电力组件供电,通过第一无线电力组件向外辐射第一电力,以及向外发射握手请求信号。In 220, when the aforementioned communication requirement exists, the electronic device supplies power to the first wireless power component, radiates the first power outward through the first wireless power component, and transmits a handshake request signal outward.
其中,电子设备在识别到存在自身不支持的无线通信协议的通信需求时,通过自身配置的电池以有线的方式向第一无线电力组件供电,通过无线电力组件将电池提供的有线电力转换为无线电力向外辐射,将该无线电力记为第一电力。此外,电子设备还通过无线电力组件向外发射握手请求信号,该握手请求信号至少携带有电子设备的描述信息,用于声明电子设备的存在,同时探测是否存在外部设备。其中,描述信息包括但不限于用于唯一表征电子设备的设备标识,此外,还可以包括用于描述电子设备支持的无线通信协议,描述电子设备能够通过第一无线电力组件辐射的最大电力信息等。Wherein, when the electronic device recognizes that there is a communication requirement of a wireless communication protocol that it does not support, it supplies power to the first wireless power component in a wired manner through a battery configured by itself, and converts the wired power provided by the battery into wireless power through the wireless power component. The electric power is radiated outward, and the wireless electric power is recorded as the first electric power. In addition, the electronic device also transmits a handshake request signal through the wireless power component. The handshake request signal carries at least description information of the electronic device, and is used to declare the existence of the electronic device and simultaneously detect whether there is an external device. The description information includes, but is not limited to, a device identifier used to uniquely characterize the electronic device. In addition, it may also include a description of the wireless communication protocol supported by the electronic device, and the information describing the maximum power that the electronic device can radiate through the first wireless power component, etc. .
在230中,在通过第一无线电力组件接收到外部设备基于第一电力返回的握手响应信号时,电子设备通过第一无线电力组件向外部设备提供第二电力。In 230, upon receiving a handshake response signal returned by the external device based on the first power through the first wireless power assembly, the electronic device provides the second power to the external device through the first wireless power assembly.
本申请实施例中,若第一电力的辐射范围内存在外部设备,外部设备将基于该第一电力开始工作,并接收到来自于电子设备握手请求时,按照与电子设备预先约定的握手规则,向电子设备返回握手响应信号。该握手响应信号可携带用于描述外部设备进行数据转发所需电力的信息。In the embodiment of the present application, if there is an external device within the radiation range of the first power, the external device will start to work based on the first power, and when receiving a handshake request from the electronic device, according to the handshaking rules pre-agreed with the electronic device, Returns a handshake response signal to the electronic device. The handshake response signal may carry information for describing the power required by the external device for data forwarding.
此处对握手规则的配置不作具体限制,可由本领域技术人员根据实际需要进行配置。应当说明的是,第一电力的大小可根据外部设备的电力转换效率以及外部设备进行握手通信所需的电力进行配置,即,第一电力经外部设备转换后,至少达到外部设备进行握手通信所需的电力。The configuration of the handshake rule is not specifically limited here, and can be configured by those skilled in the art according to actual needs. It should be noted that the size of the first power can be configured according to the power conversion efficiency of the external device and the power required for the handshake communication by the external device, that is, after the first power is converted by the external device, at least the power required for the external device to perform handshake communication. required power.
相应的,电子设备将通过第一无线电力组件接收到外部设备基于第一电力返回的握手响应信号,至此,电子设备完成与外部设备的握手,电子设备与外部设备均识别到对方的存在。此时,电子设备进一步通过第一无线电力组件向外辐射第二电力,将该第二电力提供给外部设备,供外部设备实现通信数据的转发。同上,第二电力的大小可根据外部设备的电力转换效率以及外部设备进行数据转发所需的电力进行配置,即,第二电力经外部设备转换后,至少达到外部设备进行数据转发所需的电力。本申请实施例中,第二电力大于第一电力。Correspondingly, the electronic device will receive the handshake response signal returned by the external device based on the first power through the first wireless power component. So far, the electronic device has completed the handshake with the external device, and both the electronic device and the external device recognize the existence of each other. At this time, the electronic device further radiates the second power outward through the first wireless power component, and provides the second power to the external device for the external device to realize the forwarding of the communication data. Same as above, the size of the second power can be configured according to the power conversion efficiency of the external device and the power required for data forwarding by the external device, that is, after the second power is converted by the external device, at least the power required for the external device to perform data forwarding. . In this embodiment of the present application, the second power is greater than the first power.
在240中,电子设备通过蓝牙无线通信协议与外部设备进行通信数据的传输,通信数据由外部设备基于第二电力,通过超宽带通信协议与目标通信设备进行传输。In 240, the electronic device transmits communication data with the external device through the Bluetooth wireless communication protocol, and the communication data is transmitted by the external device and the target communication device through the ultra-wideband communication protocol based on the second power.
如上,电子设备存在自身不支持的超宽带通信协议的通信需求,且识别外部设备的存在,此时,电子设备通过其与外部设备均支持的蓝牙通信协议与外部设备进行通信数据的传输,其中,该通信数据经由外部设备基于电子设备通过第一无线电力组件提供的第二电力,通过电子设备不支持的超宽带通信协议与目标通信设备进行传输。As above, the electronic device has the communication requirements of the ultra-wideband communication protocol that it does not support, and recognizes the existence of the external device. At this time, the electronic device transmits the communication data with the external device through the Bluetooth communication protocol supported by the electronic device and the external device, wherein , the communication data is transmitted with the target communication device via an ultra-wideband communication protocol not supported by the electronic device based on the second power provided by the electronic device through the first wireless power component via the external device.
其中,可以是电子设备通过蓝牙通信协议向外部设备发送通信数据,由外部设备基于第二电力,通过电子设备不支持的超宽带通信协议将该通信数据转发至目标通信设备;也可以是在外部设备基于第二电力,通过电子设备不支持的超宽带通信协议接收到目标通信设备发送的通信数据时,通过蓝牙通信协议接收外部设备转发的通信数据。Wherein, it can be that the electronic device sends communication data to the external device through the Bluetooth communication protocol, and the external device forwards the communication data to the target communication device through the ultra-wideband communication protocol not supported by the electronic device based on the second power; When the device receives the communication data sent by the target communication device through the ultra-wideband communication protocol not supported by the electronic device based on the second power, the device receives the communication data forwarded by the external device through the Bluetooth communication protocol.
应当说明的是,本申请实施例对于通信数据的类型不作具体限制,其可以为任意类型的数据。本申请实施例中,外部设备采用蓝牙通信协议和超宽带通信协议,为电子设备提供超宽带功能,从而与采用超宽带通信协议的目标通信设备进行数据通信,能够实现寻物、导航等进一步地功能。It should be noted that the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data. In the embodiment of the present application, the external device adopts the Bluetooth communication protocol and the ultra-wideband communication protocol to provide the ultra-wideband function for the electronic device, so as to perform data communication with the target communication device adopting the ultra-wideband communication protocol, which can further realize object searching, navigation, etc. Function.
在250中,在不存在与目标通信设备的通信需求时,电子设备停止向第一无线电力组件供电。At 250, the electronic device stops powering the first wireless power component when there is no communication demand with the target communication device.
其中,当识别到不存在与目标通信设备的通信需求时,停止向第一无线电力组件供电。比如,电子设备在完成与目标通信设备之间所有的数据传输,或者接收到输入的通信断开指令时,判定当前不存在与目标通信设备的通信需求。Wherein, when it is recognized that there is no communication demand with the target communication device, the power supply to the first wireless power component is stopped. For example, when the electronic device completes all data transmission with the target communication device, or receives an input communication disconnection instruction, it determines that there is currently no communication requirement with the target communication device.
如上,本申请通过适时停止向第一无线电力组件供电,避免第一无线电力组件无意义的向外辐射电力,不仅能够降低对电子设备的电量消耗,更能减少电力辐射对用户可能的影响。As above, by stopping power supply to the first wireless power component in a timely manner, the present application avoids meaningless outward radiation of power from the first wireless power component, which can not only reduce the power consumption of electronic devices, but also reduce the possible impact of power radiation on users.
在一实施例中,还提供了一种数据通信装置。请参照图8,图8为本申请实施例提供的数据通信装置300的结构示意图。其中该数据通信装置300应用于电子设备,该数据通信装置包括供电模块310和通信模块320,如下:In an embodiment, a data communication device is also provided. Please refer to FIG. 8 , which is a schematic structural diagram of a data communication apparatus 300 according to an embodiment of the present application. The data communication device 300 is applied to electronic equipment, and the data communication device includes a power supply module 310 and a communication module 320, as follows:
供电模块310用于通过第一无线电力组件向外部设备提供电力;The power supply module 310 is configured to provide power to the external device through the first wireless power component;
通信模块320用于通过第一无线通信协议与外部设备进行通信数据的传输;The communication module 320 is configured to transmit communication data with the external device through the first wireless communication protocol;
其中,通信数据由外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
可选地,在一实施例中,第二无线通信协议包括超宽带通信协议。Optionally, in an embodiment, the second wireless communication protocol includes an ultra-wideband communication protocol.
可选地,在一实施例中,外部设备包括保护套。Optionally, in one embodiment, the external device includes a protective case.
可选地,在一实施例中,在通过第一无线电力组件向外部设备提供电力时,供电模块310用于:Optionally, in one embodiment, when providing power to the external device through the first wireless power component, the power supply module 310 is configured to:
通过第一无线电力组件向外部设备提供用于握手的第一电力;providing first power for handshake to the external device through the first wireless power component;
通过第一无线电力组件向外部设备发射握手请求信号;Sending a handshake request signal to the external device through the first wireless power component;
在接收到外部设备返回的握手响应信号时,通过第一无线电力组件向外部设备提供用于数据转发的第二电力。When receiving the handshake response signal returned by the external device, the second power for data forwarding is provided to the external device through the first wireless power component.
可选地,在一实施例中,在通过第一无线电力组件向外部设备发射握手请求信号时,供电模块310用于:Optionally, in an embodiment, when the handshake request signal is transmitted to the external device through the first wireless power component, the power supply module 310 is configured to:
在接收到通信触发指令时,通过第一无线电力组件向外部设备发射握手请求信号。When the communication trigger instruction is received, a handshake request signal is transmitted to the external device through the first wireless power component.
可选地,在一实施例中,通信触发指令包括用于触发通信的触摸指令、语音指令或手势指令中的至少一种。Optionally, in an embodiment, the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
可选地,在通过第一无线电力组件向外部设备发射握手请求信号之后,供电模块310还用于:Optionally, after transmitting the handshake request signal to the external device through the first wireless power component, the power supply module 310 is further configured to:
未接收到握手响应信号时,停止通过第一无线电力组件向外部设备提供第一电力。When the handshake response signal is not received, the supply of the first power to the external device through the first wireless power component is stopped.
可选地,在一实施例中,在通过第一无线电力组件向外部设备提供用于数据传输的第二电力之后,供电模块310还用于:Optionally, in an embodiment, after the second power for data transmission is provided to the external device through the first wireless power component, the power supply module 310 is further configured to:
不存在与目标通信设备的通信需求时,停止通过第一无线电力组件向外部设备提供第二电力。When there is no communication demand with the target communication device, the supply of the second power to the external device through the first wireless power component is stopped.
可选地,在一实施例中,通信数据包括目标通信设备的设备标识,在通过第一无线通信协议与外部设备进行通信数据的传输时,通信模块320用于:Optionally, in an embodiment, the communication data includes the device identifier of the target communication device, and when the communication data is transmitted with the external device through the first wireless communication protocol, the communication module 320 is configured to:
通过第一无线通信协议接收外部设备传输的设备标识。The device identification transmitted by the external device is received through the first wireless communication protocol.
可选地,在一实施例中,在通过第一无线通信协议接收外部设备传输的设备标识之后,通信模块320还用于:Optionally, in an embodiment, after receiving the device identifier transmitted by the external device through the first wireless communication protocol, the communication module 320 is further configured to:
展示对应目标通信设备的设备控制界面,并通过设备控制界面对目标通信设备进行控制。Display the device control interface corresponding to the target communication device, and control the target communication device through the device control interface.
可选地,在一实施例中,在通过设备控制界面对目标通信设备进行控制时,通信模块320用于:Optionally, in an embodiment, when the target communication device is controlled through the device control interface, the communication module 320 is configured to:
通过第一无线通信协议将设备控制界面的控制指令发送至外部设备,使得外部设备通过第二无线通信协议将控制指令发送至目标通信设备执行。The control instruction of the device control interface is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
可选地,在一实施例中,电子设备还包括第二无线电力组件,本申请提供的数据通信装置还包括充电模块,用于通过第二无线电力组件接收无线充电设备提供的第三电力,并基于第三电力为电池充电;Optionally, in an embodiment, the electronic device further includes a second wireless power component, and the data communication apparatus provided by the present application further includes a charging module, configured to receive the third power provided by the wireless charging device through the second wireless power component, and charging the battery based on the third power;
在通过第一无线电力组件向外部设备提供电力时,供电模块310用于:When providing power to the external device through the first wireless power assembly, the power supply module 310 is used for:
基于第三电力向第一无线电力组件供电,以通过第一无线电力组件向外部设备提供电力。The first wireless power assembly is powered based on the third power to provide power to an external device through the first wireless power assembly.
可选地,在一实施例中,本申请提供的数据通信装置还包括提示模块,用于获取第一无线电力组件释放给用户的电力辐射值;以及在电力辐射值大于或等于预设辐射值时,输出停止与目标通信设备进行通信的提示信息。Optionally, in an embodiment, the data communication device provided by the present application further includes a prompt module for acquiring the power radiation value released by the first wireless power component to the user; and when the power radiation value is greater than or equal to the preset radiation value , output a prompt message to stop communicating with the target communication device.
可选地,在一实施例中,在输出停止与目标通信设备进行通信的提示信息之后,提示模块还用于:Optionally, in an embodiment, after outputting prompt information for stopping communication with the target communication device, the prompt module is further configured to:
在预设时长内未接收到针对提示信息的否认信息时,停止通过第一无线电力组件向外部设备提供电力。Stop providing power to the external device through the first wireless power component when no acknowledgment information for the prompt information is received within a preset time period.
可选地,在一实施例中,第一无线通信协议包括蓝牙通信协议。Optionally, in an embodiment, the first wireless communication protocol includes a Bluetooth communication protocol.
具体实施时,以上各个模块可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined, implemented as the same or several entities, the specific implementation of the above units can refer to the previous embodiments, which will not be repeated here.
在一实施例中,还提供一种电子设备,请参照图9,电子设备400包括处理器410、存储器420以及第一无线电力组件430。其中,处理器410与存储器420、第一无线电力组件430电性连接。In an embodiment, an electronic device is also provided. Please refer to FIG. 9 , the electronic device 400 includes a processor 410 , a memory 420 and a first wireless power component 430 . The processor 410 is electrically connected with the memory 420 and the first wireless power component 430 .
处理器410是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器420内的计算机程序,以及调用存储在存储器420内的数据,执行电子设备400的各种功能并处理数据。The processor 410 is the control center of the electronic device 400, uses various interfaces and lines to connect various parts of the entire electronic device, executes the electronic device by running or loading the computer program stored in the memory 420, and calling the data stored in the memory 420. Various functions of the device 400 and processing data.
存储器420可用于存储软件程序以及模块,处理器410通过运行存储在存储器420的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、通信播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器420还可以包括存储器控制器,以提供处理器410对存储器420的访问。The memory 420 can be used to store software programs and modules, and the processor 410 executes various functional applications and data processing by running the computer programs and modules stored in the memory 420 . The memory 420 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, a computer program required for at least one function (such as a sound playback function, a communication playback function, etc.), etc.; Data created by the use of electronic equipment, etc. Additionally, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 420 may also include a memory controller to provide processor 410 access to memory 420 .
第一无线电力组件430被配置为在接收到有线电力供给时,将有线电力转换为无线电力向外辐射.The first wireless power component 430 is configured to convert the wired power into wireless power to radiate outward when receiving the wired power supply.
在本申请实施例中,电子设备400中的处理器410会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器420中,并由处理器410运行存储在存储器420中的计算机程序,从而实现各种功能,如下:In this embodiment of the present application, the processor 410 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 420 according to the following steps, and is executed by the processor 410 and stored in the memory 420 The computer program in , so as to realize various functions, as follows:
通过第一无线电力组件430向外部设备提供电力;providing power to external devices through the first wireless power component 430;
通过第一无线通信协议与外部设备进行通信数据的传输;Carry out the transmission of communication data with the external device through the first wireless communication protocol;
其中,通信数据由外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
可选地,在一实施例中,第二无线通信协议包括超宽带通信协议。Optionally, in an embodiment, the second wireless communication protocol includes an ultra-wideband communication protocol.
可选地,在一实施例中,外部设备包括保护套。Optionally, in one embodiment, the external device includes a protective case.
可选地,在一实施例中,在通过第一无线电力组件430向外部设备提供电力时,处理器410用于执行:Optionally, in one embodiment, when power is provided to the external device through the first wireless power component 430, the processor 410 is configured to execute:
通过第一无线电力组件430向外部设备提供用于握手的第一电力;providing the first power for handshake to the external device through the first wireless power component 430;
通过第一无线电力组件430向外部设备发射握手请求信号;transmitting a handshake request signal to an external device through the first wireless power component 430;
在接收到外部设备返回的握手响应信号时,通过第一无线电力组件430向外部设备提供用于数据转发的第二电力。When the handshake response signal returned by the external device is received, the second power for data forwarding is provided to the external device through the first wireless power component 430 .
可选地,在一实施例中,在通过第一无线电力组件430向外部设备发射握手请求信号时,处理器410用于执行:Optionally, in an embodiment, when the handshake request signal is transmitted to the external device through the first wireless power component 430, the processor 410 is configured to execute:
在接收到通信触发指令时,通过第一无线电力组件430向外部设备发射握手请求信号。When the communication trigger instruction is received, a handshake request signal is transmitted to the external device through the first wireless power component 430 .
可选地,在一实施例中,通信触发指令包括用于触发通信的触摸指令、语音指令或手势指令中的至少一种。Optionally, in an embodiment, the communication triggering instruction includes at least one of a touch instruction, a voice instruction, or a gesture instruction for triggering communication.
可选地,在通过第一无线电力组件430向外部设备发射握手请求信号之后,处理器410还用于执行:Optionally, after transmitting the handshake request signal to the external device through the first wireless power component 430, the processor 410 is further configured to execute:
未接收到握手响应信号时,停止通过第一无线电力组件430向外部设备提供第一电力。When the handshake response signal is not received, the supply of the first power to the external device through the first wireless power component 430 is stopped.
可选地,在一实施例中,在通过第一无线电力组件430向外部设备提供用于数据传输的第二电力之后,处理器410还用于执行:Optionally, in an embodiment, after the second power for data transmission is provided to the external device through the first wireless power component 430, the processor 410 is further configured to execute:
不存在与目标通信设备的通信需求时,停止通过第一无线电力组件430向外部设备提供第二电力。When there is no communication demand with the target communication device, the supply of the second power to the external device through the first wireless power component 430 is stopped.
可选地,在一实施例中,通信数据包括目标通信设备的设备标识,在通过第一无线通信协议与外部设备进行通信数据的传输时,处理器410用于执行:Optionally, in an embodiment, the communication data includes the device identifier of the target communication device, and when the communication data is transmitted with the external device through the first wireless communication protocol, the processor 410 is configured to execute:
通过第一无线通信协议接收外部设备传输的设备标识。The device identification transmitted by the external device is received through the first wireless communication protocol.
可选地,在一实施例中,在通过第一无线通信协议接收外部设备传输的设备标识之后,处理器410还用于执行:Optionally, in an embodiment, after receiving the device identification transmitted by the external device through the first wireless communication protocol, the processor 410 is further configured to execute:
展示对应目标通信设备的设备控制界面,并通过设备控制界面对目标通信设备进行控制。Display the device control interface corresponding to the target communication device, and control the target communication device through the device control interface.
可选地,在一实施例中,在通过设备控制界面对目标通信设备进行控制时,处理器410用于执行:Optionally, in an embodiment, when the target communication device is controlled through the device control interface, the processor 410 is configured to execute:
通过第一无线通信协议将设备控制界面的控制指令发送至外部设备,使得外部设备通过第二无线通信协议将控制指令发送至目标通信设备执行。The control instruction of the device control interface is sent to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol.
可选地,在一实施例中,电子设备还包括第二无线电力组件,处理器410还用于执行:Optionally, in an embodiment, the electronic device further includes a second wireless power component, and the processor 410 is further configured to execute:
通过第二无线电力组件接收无线充电设备提供的第三电力,并基于第三电力为电池充电;receiving third power provided by the wireless charging device through the second wireless power component, and charging the battery based on the third power;
在通过第一无线电力组件430向外部设备提供电力时,处理器410用于执行:When providing power to the external device through the first wireless power component 430, the processor 410 is configured to perform:
基于第三电力向第一无线电力组件430供电,以通过第一无线电力组件430向外部设备提供电力。Power is supplied to the first wireless power component 430 based on the third power to provide power to an external device through the first wireless power component 430 .
可选地,在一实施例中,处理器410还用于执行:Optionally, in an embodiment, the processor 410 is further configured to execute:
获取第一无线电力组件430释放给用户的电力辐射值;以及在电力辐射值大于或等于预设辐射值时,输出停止与目标通信设备进行通信的提示信息。Acquiring the power radiation value released by the first wireless power component 430 to the user; and when the power radiation value is greater than or equal to the preset radiation value, outputting prompt information for stopping communication with the target communication device.
可选地,在一实施例中,在输出停止与目标通信设备进行通信的提示信息之后,处理器410还用于执行:Optionally, in an embodiment, after outputting prompt information for stopping communication with the target communication device, the processor 410 is further configured to execute:
在预设时长内未接收到针对提示信息的否认信息时,停止通过第一无线电力组件430向外部设备提供电力。When no acknowledgment information for the prompt information is received within a preset time period, the power supply to the external device through the first wireless power component 430 is stopped.
可选地,在一实施例中,第一无线通信协议包括蓝牙通信协议。Optionally, in an embodiment, the first wireless communication protocol includes a Bluetooth communication protocol.
应当说明的是,本申请实施例提供的电子设备400与上文实施例中的数据通信方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the electronic device 400 provided in the embodiment of the present application and the data communication method in the above embodiment belong to the same concept, and the specific implementation process thereof is detailed in the above related embodiments, which will not be repeated here.
本申请实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在包括第一无线电力组件的电子设备上运行时,使得该电子设备执行上述任一实施例中的数据通信方法,比如:An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on an electronic device including the first wireless power component, the electronic device is made to execute any of the foregoing embodiments. data communication methods, such as:
通过第一无线电力组件向外部设备提供电力;providing power to the external device through the first wireless power component;
通过第一无线通信协议与外部设备进行通信数据的传输;Carry out the transmission of communication data with the external device through the first wireless communication protocol;
其中,通信数据由外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)或者随机存取器(Random Access Memory,RAM)等。In this embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM,) or a random access device (Random Access Memory, RAM), and the like.
在一实施例中,还提供一种保护套,请参照图10,保护套500包括无线受电组件510、数据转发组件520和保护套本体530,其中,In an embodiment, a protective cover is also provided. Referring to FIG. 10 , the protective cover 500 includes a wireless power receiving component 510 , a data forwarding component 520 and a protective cover body 530 , wherein,
无线受电组件510用于接收电子设备提供的电力;The wireless power receiving component 510 is used for receiving power provided by the electronic device;
数据转发组件520用于采用第一无线通信协议与电子设备进行通信数据的传输;以及The data forwarding component 520 is used for transmitting the communication data with the electronic device using the first wireless communication protocol; and
采用第二无线通信协议与目标通信设备进行通信数据的传输。The second wireless communication protocol is used to transmit the communication data with the target communication device.
其中,保护套本体530用于容纳电子设备,从而对电子设备进行保护。此处对保护套本体530的材质不作具体限制,包括但不限于塑料、硅胶等材质。Wherein, the protective cover body 530 is used for accommodating the electronic device, so as to protect the electronic device. The material of the protective cover body 530 is not specifically limited here, including but not limited to materials such as plastic and silica gel.
另外,保护套500还包括电源管理模块(图中未示出)。In addition, the protective cover 500 further includes a power management module (not shown in the figure).
应当说明的是,电子设备包括第一无线电力组件,该第一无线电力组件被配置为在接收到有线电力供给时,将有线电力转换为无线电力向外辐射。本申请在于通过电子设备的第一无线电力组件为保护套供电,从而通过保护套为电子设备扩展通信能力。It should be noted that the electronic device includes a first wireless power component, and the first wireless power component is configured to convert the wired power into wireless power and radiate outward when receiving the wired power supply. The present application is to supply power to the protective cover through the first wireless power component of the electronic device, so as to extend the communication capability of the electronic device through the protective cover.
电子设备在识别到存在自身不支持的无线通信协议的通信需求时,通过自身配置的电池以有线的方式向第一无线电力组件供电,通过无线电力组件将电池提供的有线电力转换为无线电力向外辐射,从而为保护套500提供电力。When the electronic device recognizes that there is a communication requirement of a wireless communication protocol that it does not support, it supplies power to the first wireless power component in a wired manner through the battery configured by itself, and converts the wired power provided by the battery into wireless power through the wireless power component. external radiation, so as to provide power for the protective cover 500 .
本申请实施例中,若保护套500位于第一无线电力组件的电力辐射范围内,无线受电组件510将接收到第一无线电力组件辐射的电力,并基于该电力开始工作。In the embodiment of the present application, if the protective cover 500 is located within the power radiation range of the first wireless power component, the wireless power receiving component 510 will receive the power radiated by the first wireless power component, and start to work based on the power.
其中,无线受电组件510将第一无线电力组件辐射的电力转换为有线电力后提供给电源管理模块。The wireless power receiving component 510 converts the power radiated by the first wireless power component into wired power and then provides the power to the power management module.
本申请实施例中,电源管理模块对转换后的有线电力进行优化处理后为数据转发组件520供电。其中,电源管理模块进行优化处理包括但不限于整流滤波以及稳压等处理。In this embodiment of the present application, the power management module provides power to the data forwarding component 520 after optimizing the converted wired power. The optimization processing performed by the power management module includes but is not limited to processing such as rectification, filtering, and voltage regulation.
本申请实施例中,数据转发组件520通过第一无线协议与电子设备进行通信数据的传输;以及通过电子设备不支持的第二无线通信协议与目标通信设备进行通信数据的传输。In this embodiment of the present application, the data forwarding component 520 transmits communication data with the electronic device through a first wireless protocol; and transmits communication data with the target communication device through a second wireless communication protocol not supported by the electronic device.
其中,可以是电子设备通过第一无线通信协议向数据转发组件520发送通信数据,由数据转发组件520通过电子设备不支持的第二无线通信协议将该通信数据转发至目标通信设备;也可以是数据转发组件520通过电子设备不支持的第二无线通信协议接收到目标通信设备发送的通信数据时,由数据转发组件520将该通信数据转发至目标通信设备。Wherein, it may be that the electronic device sends communication data to the data forwarding component 520 through the first wireless communication protocol, and the data forwarding component 520 forwards the communication data to the target communication device through the second wireless communication protocol that is not supported by the electronic device; or When the data forwarding component 520 receives the communication data sent by the target communication device through the second wireless communication protocol not supported by the electronic device, the data forwarding component 520 forwards the communication data to the target communication device.
应当说明的是,本申请实施例对于通信数据的类型不作具体限制,其可以为任意类型 的数据。此外,本申请对第一无线通信协议和第二无线通信协议不作具体限制,第一无线通信协议可以为电子设备和保护套同时支持的任意无线通信协议,第二无线通信协议可以为电子设备不支持,但是保护套和目标通信设备同时支持的任意通信协议。It should be noted that the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data. In addition, this application does not specifically limit the first wireless communication protocol and the second wireless communication protocol, the first wireless communication protocol can be any wireless communication protocol supported by the electronic device and the protective case at the same time, and the second wireless communication protocol can be an electronic device that does not Supported, but any communication protocol supported by both the case and the target communication device.
在一实施例中,还提供一种数据通信方法,该数据通信方法应用于本申请提供的保护套,该保护套包括无线受电组件和数据转发组件,请参照图11,该数据通信方法包括:In an embodiment, a data communication method is also provided. The data communication method is applied to the protective cover provided by the present application. The protective cover includes a wireless power receiving component and a data forwarding component. Please refer to FIG. 11 . The data communication method includes: :
在610中,通过无线受电组件接收电子设备提供的电力;In 610, receiving power provided by the electronic device through the wireless powered component;
在620中,通过数据转发组件采用第一无线通信协议与电子设备进行通信数据的传输;以及In 620, using the first wireless communication protocol to transmit the communication data with the electronic device through the data forwarding component; and
在630中,通过数据转发组件采用第二无线通信协议与目标通信设备进行通信数据的传输。In 630, the data forwarding component uses the second wireless communication protocol to transmit the communication data with the target communication device.
应当说明的是,以上620和630的执行顺序不受序号大小的限制,可以是620在630之前执行,也可以是620在630之后执行。It should be noted that the execution order of the above 620 and 630 is not limited by the size of the sequence number, and 620 may be executed before 630, or 620 may be executed after 630.
具体说明请参照以上保护套实施例的相关说明,此处不再赘述。For specific descriptions, please refer to the relevant descriptions of the above protective cover embodiments, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
需要说明的是,对本申请实施例的数据通信方法而言,本领域普通测试人员可以理解实现本申请实施例的数据通信方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如数据通信方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the data communication method of the embodiment of the present application, ordinary testers in the art can understand that all or part of the process of implementing the data communication method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program , the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process can include methods such as data communication methods. Example flow. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
对本申请实施例的数据通信装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the data communication device according to the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种数据通信方法、装置、存储介质、电子设备及保护套进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A data communication method, device, storage medium, electronic device, and protective cover provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples in this article. The above embodiments The description is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. In summary, the above , the contents of this specification should not be construed as limiting the application.

Claims (20)

  1. 一种数据通信方法,应用于电子设备,所述电子设备包括第一无线电力组件,其中,所述数据通信方法包括:A data communication method, applied to an electronic device, the electronic device comprising a first wireless power component, wherein the data communication method comprises:
    通过所述第一无线电力组件向外部设备提供电力;providing power to an external device through the first wireless power assembly;
    通过第一无线通信协议与所述外部设备进行通信数据的传输;Perform communication data transmission with the external device through a first wireless communication protocol;
    其中,所述通信数据由所述外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  2. 如权利要求1所述的数据通信方法,其中,所述第二无线通信协议包括超宽带通信协议。The data communication method of claim 1, wherein the second wireless communication protocol comprises an ultra-wideband communication protocol.
  3. 如权利要求1所述的数据通信方法,其中,所述外部设备包括保护套。The data communication method of claim 1, wherein the external device includes a protective case.
  4. 如权利要求1所述的数据通信方法,其中,所述通过所述第一无线电力组件向外部设备提供电力,包括:The data communication method of claim 1, wherein the supplying power to an external device through the first wireless power component comprises:
    通过所述第一无线电力组件向所述外部设备提供用于握手的第一电力;providing first power for handshake to the external device through the first wireless power component;
    通过所述第一无线电力组件向所述外部设备发射握手请求信号;transmitting a handshake request signal to the external device through the first wireless power component;
    在接收到所述外部设备返回的握手响应信号时,通过所述第一无线电力组件向所述外部设备提供用于数据转发的第二电力。When receiving the handshake response signal returned by the external device, the second power for data forwarding is provided to the external device through the first wireless power component.
  5. 如权利要求4所述的数据通信方法,其中,所述通过所述第一无线电力组件向所述外部设备发射握手请求信号,包括:The data communication method according to claim 4, wherein the transmitting a handshake request signal to the external device through the first wireless power component comprises:
    在接收到通信触发指令时,通过所述第一无线电力组件向所述外部设备发射所述握手请求信号。When a communication trigger instruction is received, the handshake request signal is transmitted to the external device through the first wireless power component.
  6. 如权利要求5所述的数据通信方法,其中,所述通信触发指令包括用于触发通信的触摸指令、语音指令或手势指令中的至少一种。The data communication method according to claim 5, wherein the communication triggering instruction comprises at least one of a touch instruction, a voice instruction or a gesture instruction for triggering communication.
  7. 如权利要求4所述的数据通信方法,其中,所述通过所述第一无线电力组件向所述外部设备发射握手请求信号之后,还包括:The data communication method according to claim 4, wherein after transmitting the handshake request signal to the external device through the first wireless power component, the method further comprises:
    未接收到所述握手响应信号时,停止通过所述第一无线电力组件向所述外部设备提供所述第一电力。When the handshake response signal is not received, the supply of the first power to the external device through the first wireless power component is stopped.
  8. 如权利要求4所述的数据通信方法,其中,所述通过所述第一无线电力组件向所述外部设备提供用于数据传输的第二电力之后,还包括:The data communication method of claim 4, wherein after providing the external device with the second power for data transmission through the first wireless power component, the method further comprises:
    不存在与所述目标通信设备的通信需求时,停止通过所述第一无线电力组件向所述外部设备提供所述第二电力。Stop providing the second power to the external device through the first wireless power component when there is no communication demand with the target communication device.
  9. 如权利要求1所述的数据通信方法,其中,所述通信数据包括所述目标通信设备的设备标识,所述通过第一无线通信协议与所述外部设备进行通信数据的传输,包括:The data communication method according to claim 1, wherein the communication data includes a device identification of the target communication device, and the transmission of the communication data with the external device through the first wireless communication protocol comprises:
    通过所述第一无线通信协议接收所述外部设备传输的所述设备标识。The device identification transmitted by the external device is received through the first wireless communication protocol.
  10. 如权利要求9所述的数据通信方法,其中,所述通过所述第一无线通信协议接收所述外部设备传输的所述设备标识之后,还包括:The data communication method according to claim 9, wherein after receiving the device identification transmitted by the external device through the first wireless communication protocol, the method further comprises:
    展示对应所述目标通信设备的设备控制界面,并通过所述设备控制界面对所述目标通信设备进行控制。A device control interface corresponding to the target communication device is displayed, and the target communication device is controlled through the device control interface.
  11. 如权利要求10所述的数据通信方法,其中,所述通过所述设备控制界面对所述目标通信设备进行控制,包括:The data communication method according to claim 10, wherein the controlling the target communication device through the device control interface comprises:
    通过所述第一无线通信协议将所述设备控制界面的控制指令发送至所述外部设备,使得所述外部设备通过所述第二无线通信协议将所述控制指令发送至所述目标通信设备执行。Send the control instruction of the device control interface to the external device through the first wireless communication protocol, so that the external device sends the control instruction to the target communication device for execution through the second wireless communication protocol .
  12. 如权利要求1所述的数据通信方法,其中,所述电子设备还包括第二无线电力组件,所述数据通信方法还包括:The data communication method of claim 1, wherein the electronic device further comprises a second wireless power component, the data communication method further comprising:
    通过所述第二无线电力组件接收无线充电设备提供的第三电力,并基于所述第三电力为电池充电;receiving third power provided by the wireless charging device through the second wireless power component, and charging the battery based on the third power;
    所述通过所述第一无线电力组件向外部设备提供电力,包括:The supplying power to an external device through the first wireless power component includes:
    基于所述第三电力向所述第一无线电力组件供电,以通过所述第一无线电力组件向所述外部设备提供电力。The first wireless power component is powered based on the third power to provide power to the external device through the first wireless power component.
  13. 如权利要求1所述的数据通信方法,其中,所述数据通信方法还包括:The data communication method of claim 1, wherein the data communication method further comprises:
    获取所述第一无线电力组件释放给用户的电力辐射值;obtaining the power radiation value released by the first wireless power component to the user;
    在所述电力辐射值大于或等于预设辐射值时,输出停止与所述目标通信设备进行通信的提示信息。When the power radiation value is greater than or equal to a preset radiation value, outputting prompt information for stopping communication with the target communication device.
  14. 如权利要求13所述的数据通信方法,其中,所述输出停止与所述目标通信设备进行通信的提示信息之后,还包括:The data communication method according to claim 13, wherein after the outputting prompt information for stopping communication with the target communication device, the method further comprises:
    在预设时长内未接收到针对所述提示信息的否认信息时,停止通过所述第一无线电力组件向外部设备提供电力。When no acknowledgment information for the prompt information is received within a preset time period, the power supply to the external device through the first wireless power component is stopped.
  15. 如权利要求1所述的数据通信方法,其中,所述第一无线通信协议包括蓝牙通信协议。The data communication method of claim 1, wherein the first wireless communication protocol comprises a Bluetooth communication protocol.
  16. 一种数据通信装置,应用于电子设备,所述电子设备包括第一无线电力组件,其中,所述数据通信装置包括:A data communication apparatus is applied to an electronic device, the electronic apparatus includes a first wireless power component, wherein the data communication apparatus includes:
    供电模块,用于通过所述第一无线电力组件向外部设备提供电力;a power supply module, configured to provide power to an external device through the first wireless power component;
    通信模块,用于通过第一无线通信协议与所述外部设备进行通信数据的传输;a communication module, configured to transmit communication data with the external device through a first wireless communication protocol;
    其中,所述通信数据由所述外部设备通过第二无线通信协议与目标通信设备进行传输。Wherein, the communication data is transmitted by the external device and the target communication device through the second wireless communication protocol.
  17. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序被包括第一无线电力组件的电子设备加载时执行如权利要求1-14任一项所述的数据通信方法。A storage medium having a computer program stored thereon, wherein the data communication method according to any one of claims 1-14 is performed when the computer program is loaded by an electronic device including a first wireless power component.
  18. 一种电子设备,包括处理器、存储器和第一无线电力组件,所述存储器存储有计算机程序,其中,所述处理器通过加载所述计算机程序执行如权利要求1-14任一项所述的数据通信方法。An electronic device, comprising a processor, a memory and a first wireless power component, wherein the memory stores a computer program, wherein the processor executes the method according to any one of claims 1-14 by loading the computer program data communication method.
  19. 一种数据通信方法,应用于保护套,其中,所述保护套包括无线受电组件和数据转发组件,所述数据通信方法包括:A data communication method, applied to a protective cover, wherein the protective cover includes a wireless power receiving component and a data forwarding component, and the data communication method includes:
    通过所述无线受电组件接收电子设备提供的电力;receiving power provided by the electronic device through the wireless power receiving component;
    通过所述数据转发组件采用第一无线通信协议与所述电子设备进行通信数据的传输;以及Use the first wireless communication protocol to transmit communication data with the electronic device through the data forwarding component; and
    通过所述数据转发组件采用第二无线通信协议与目标通信设备进行所述通信数据的传输。The data forwarding component uses the second wireless communication protocol to transmit the communication data with the target communication device.
  20. 一种保护套,其中,包括无线受电组件和数据转发组件,其中,A protective cover, which includes a wireless power receiving component and a data forwarding component, wherein,
    所述无线受电组件用于接收电子设备提供的电力;The wireless power receiving component is used for receiving power provided by the electronic device;
    所述数据转发组件用于采用第一无线通信协议与所述电子设备进行通信数据的传输;以及The data forwarding component is used for transmitting communication data with the electronic device using a first wireless communication protocol; and
    采用第二无线通信协议与目标通信设备进行所述通信数据的传输。The second wireless communication protocol is used to transmit the communication data with the target communication device.
PCT/CN2021/143503 2021-02-23 2021-12-31 Data communication method and apparatus, and storage medium, electronic device and protective sleeve WO2022179305A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110203619.2 2021-02-23
CN202110203619.2A CN114977538A (en) 2021-02-23 2021-02-23 Data communication method, device, storage medium, electronic equipment and protective sleeve

Publications (1)

Publication Number Publication Date
WO2022179305A1 true WO2022179305A1 (en) 2022-09-01

Family

ID=82974248

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143503 WO2022179305A1 (en) 2021-02-23 2021-12-31 Data communication method and apparatus, and storage medium, electronic device and protective sleeve

Country Status (2)

Country Link
CN (1) CN114977538A (en)
WO (1) WO2022179305A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453906A (en) * 2016-10-19 2017-02-22 广州视源电子科技股份有限公司 External equipment, data transmission method, device and system
CN108604911A (en) * 2015-10-30 2018-09-28 精华产品公司 Wireless accessory bus for electronic equipment
CN108681514A (en) * 2018-05-02 2018-10-19 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium and electronic equipment
US20200265001A1 (en) * 2017-10-27 2020-08-20 Samsung Electronics Co., Ltd. Communication method using input/output interface, and apparatus therefor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108604911A (en) * 2015-10-30 2018-09-28 精华产品公司 Wireless accessory bus for electronic equipment
CN106453906A (en) * 2016-10-19 2017-02-22 广州视源电子科技股份有限公司 External equipment, data transmission method, device and system
US20200265001A1 (en) * 2017-10-27 2020-08-20 Samsung Electronics Co., Ltd. Communication method using input/output interface, and apparatus therefor
CN108681514A (en) * 2018-05-02 2018-10-19 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114977538A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US8904218B2 (en) Portable device and method for providing voice recognition service
EP3624552B1 (en) Device control method and device
EP3624404B1 (en) Method and device for establishing wireless communication connection
WO2020156021A1 (en) Antenna control method and system, electronic device, and computer-readable storage medium
KR20140101958A (en) Apparatus and method for controlling charging path of mobile terminal
WO2018103191A1 (en) Method and device for wireless charging
WO2020056747A1 (en) Method for low-temperature protection of electronic device and electronic device
WO2018049970A1 (en) Hotspot network switching method and terminal
JP2023538685A (en) Electronic equipment assembly, its control method, and electronic equipment control device
WO2018049969A1 (en) Hotspot establishment method and related device
KR20210017030A (en) Electronic device for reducing power consumption and operating method thereof
US11482095B2 (en) Wireless control method, system, and apparatus for determining the state of a power switch
CN106507357B (en) Access control method and terminal equipment
WO2018049968A1 (en) Hotspot establishment method and terminals
WO2022110352A1 (en) Smart home control method and apparatus, and terminal and storage medium
WO2022179305A1 (en) Data communication method and apparatus, and storage medium, electronic device and protective sleeve
WO2022100314A1 (en) Iot device control method, apparatus, control system, and terminal device
KR102468110B1 (en) Electronic device and method for reducing current consuming of electronic device in short-range wireless communication thereof
CN113808379A (en) Control method, electronic device, and storage medium
CN113722260A (en) Protection circuit, serial bus system, circuit protection method and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN108476238B (en) Terminal equipment and control method thereof
CN112261536B (en) Earphone control method, earphone control device, terminal equipment and storage medium
CN113055515B (en) Ultra-wideband data transmission method and equipment support

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21927729

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21927729

Country of ref document: EP

Kind code of ref document: A1