Data interaction method and device, electronic equipment and storage medium
By using electric field human communication technology to build a data interaction channel when the electronic device is close to the target human body and is located on different sides, the problem of wireless data interaction being affected by human body blocking is solved and the data transmission rate is improved.
Patent Information
- Application Number
- CN202311265790.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2043-09-25
AI Technical Summary
Existing wireless data interaction methods are susceptible to human blockage, resulting in poor signal blockage and data transmission rates.
The data interaction channel between electronic devices is constructed based on electric field human communication technology when the electronic device that needs to interact with data is close to the target human body and is located on different sides of the target human body.
Reduces human body blockage and improves data transmission rate.
Smart Images

Figure CN119697616A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a data interaction method, device, electronic device and storage medium. Background Art
[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions. They have become one of the necessities in people's daily life. At present, different electronic devices can exchange data wirelessly, but the wireless form is often blocked by obstacles, resulting in poor data transmission rate. Summary of the invention
[0003] In view of the above problems, the present application proposes a data interaction method, device, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a data interaction method, which is applied to a first electronic device, wherein the first electronic device is used to perform data interaction with a second electronic device, the method comprising: determining a first distance relationship between a first distance between the first electronic device and a target human body and a distance threshold, and determining a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold; determining a position relationship between the first electronic device and the second electronic device and the target human body; if it is determined based on the first distance relationship that the first distance is less than the distance threshold, it is determined based on the second distance relationship that the second distance is less than the distance threshold, and it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, then constructing a data interaction channel between the first electronic device and the second electronic device based on electric field human body communication technology.
[0005] In a second aspect, an embodiment of the present application provides a data interaction device, which is applied to a first electronic device, wherein the first electronic device is used to interact with a second electronic device for data, and the device includes: a distance relationship determination module, which is used to determine a first distance relationship between a first distance between the first electronic device and a target human body and a distance threshold, and to determine a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold; a position relationship determination module, which is used to determine the position relationship between the first electronic device and the second electronic device and the target human body; and a data interaction channel construction module, which is used to construct a data interaction channel between the first electronic device and the second electronic device based on electric field human body communication technology if it is determined based on the first distance relationship that the first distance is less than the distance threshold, based on the second distance relationship that the second distance is less than the distance threshold, and based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0008] The data interaction method, device, electronic device and storage medium provided in the embodiments of the present application determine a first distance relationship between a first distance between a first electronic device and a target human body and a distance threshold, and determine a second distance relationship between a second distance between a second electronic device and the target human body and the distance threshold, and determine a position relationship between the first electronic device and the second electronic device and the target human body. If it is determined based on the first distance relationship that the first distance is less than the distance threshold, and it is determined based on the second distance relationship that the second distance is less than the distance threshold, and it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, then a data interaction channel between the first electronic device and the second electronic device is constructed based on the electric field human body communication technology. Therefore, by constructing a data interaction channel between the electronic devices based on the electric field human body communication technology when the electronic device that needs to perform data interaction is close to the target human body and is located on different sides of the target human body, human body obstruction can be reduced and the data transmission rate can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A schematic diagram of an application scenario that can be used for the data interaction method provided in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram showing an equivalent capacitance formed between a first electronic device and a target human body;
[0012] Figure 3 A schematic diagram showing an equivalent capacitance formed between a second electronic device and a target human body;
[0013] Figure 4 A schematic diagram of a data interaction method according to an embodiment of the present application is shown;
[0014] Figure 5 A schematic diagram of a data interaction method according to an embodiment of the present application is shown;
[0015] Figure 6 A schematic diagram of a data interaction method according to an embodiment of the present application is shown;
[0016] Figure 7 A schematic diagram of a data interaction method according to an embodiment of the present application is shown;
[0017] Figure 8 A module block diagram of a data interaction device provided by an embodiment of the present application is shown;
[0018] Fig. 9 A block diagram of an electronic device according to an embodiment of the present application for executing a data interaction method according to an embodiment of the present application is shown;
[0019] Fig.10 A storage unit for storing or carrying program codes for implementing the data interaction method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0021] At present, data can be exchanged between two electronic devices. For example, the two electronic devices may include a smartphone and a headset. The smartphone and the headset can exchange data via Bluetooth or wired. Method 1: The headset is connected to the smartphone via wire, and the headset plug is connected to the jack of the smartphone to transmit the audio electrical signal of the smartphone to the headset, and output the audio signal through the speaker of the headset. Method 2: The headset is a wireless Bluetooth headset, and the headset is connected to the smartphone via Bluetooth.
[0022] For method 2, the current data transmission and connection establishment process is as follows: 1. Bluetooth broadcast-discovery of devices; 2. Pairing and binding of devices; 3. Establishment of connection; 4. Data communication. Broadcasting is based on the Bluetooth frame format and is transmitted on broadcast channels 37, 38, and 39. A broadcast packet is up to 37 bytes long. Each broadcast packet consists of a MAC address + N AD Structures. The data can be supplemented when it is less than 37 bytes. When the broadcaster receives scan_req, the broadcaster can send a scan_rsp response message on the same channel, and the response message is completed within the specified time. After the advertiser transmits a broadcast packet, the advertiser needs to open a radio frequency receiving window for a period of time to receive the data packet of the observer. The observer can send a connection request to the advertiser during this period. After the host scans the slave, it sends a connection request connect_req.
[0023] For the wireless communication between smartphones and headphones, the transmission of wireless audio is the communication between the smartphone and the two headphones. Regardless of whether the smartphone is held in the hand, placed on the table or in the trouser pocket, the smartphone is on one side of the user's body, and the signal of the headphones on the other side of the body will be blocked by the body and attenuated, which will inevitably lead to a significant reduction in the signal and a decrease in the transmission of the audio bit rate. The use of binaural forwarding occupies bandwidth and cannot completely solve the problem.
[0024] In view of the above problems, the inventors have discovered after long-term research and proposed the data interaction method, device, electronic device and storage medium provided in the embodiments of the present application. By constructing a data interaction channel between electronic devices based on electric field human body communication technology when the electronic device that needs to interact with data is close to the target human body and is located on different sides of the target human body, it is possible to reduce human body obstruction and improve data transmission rate. Among them, the specific data interaction method is described in detail in the subsequent embodiments.
[0025] The following describes the application scenarios of the data interaction method provided in the embodiments of the present application.
[0026] See also Figure 1 , Figure 1The following is a schematic diagram showing an application scenario of the data interaction method provided in the embodiment of the present application. Figure 1 As shown, it includes a first electronic device 100, and the first electronic device 100 is used to exchange data with a second electronic device 200. The first electronic device 100 may include a smart phone, a tablet computer, a headset, a smart ring, a smart watch, smart glasses, a heart rate belt, a wristband, a bracelet, etc., which are not limited here. Figure 1 Take the first electronic device 100 as a smart phone as an example. The second electronic device 200 may include a smart phone, a tablet computer, a headset, a smart ring, a smart watch, smart glasses, a heart rate belt, a wristband, a bracelet, etc., which are not limited here. Figure 1 Take the second electronic device 200 as a headset as an example. Figure 1 As shown, the first electronic device 100 can be held in the hand of a user (target human body), and the second electronic device 200 can be worn on the ear of the user (target human body).
[0027] The first electronic device 100 can be used as a signal source of the second electronic device 200. For example, the first electronic device 100 can be used as an audio source, a health data source, etc. of the second electronic device, which is not limited here.
[0028] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram showing a first electronic device and a target human body forming an equivalent capacitance. Figure 2 As shown, the first electronic device 100 may include an electrode antenna, which is used to form an equivalent capacitance / electric field with the human body and is used to transmit data based on the equivalent capacitance / electric field, that is, the first electronic device 100 is used to send data based on the equivalent capacitance / electric field, and the second electronic device 200 is used to receive data.
[0029] See also Figure 3 , Figure 3 FIG. 1 shows a schematic diagram of an equivalent capacitance formed between a second electronic device and a target human body. Figure 3As shown, the second electronic device 200 may include a microcontroller unit (MCU) for system logic processing of conventional detection, such as headphone box entry detection, box opening detection, touch event judgment, etc.; a codec (Codec) for audio data encoding and decoding processing; an amplifier and a speaker for outputting sound to be perceived by the human ear; WI-R, which is a human electric field communication technology, WI-R cooperates with electrodes / antennas for data transmission, and the electrodes / antennas are used to form an equivalent capacitance with the human body for data transmission, wherein the antenna can be designed in common with a conventional Bluetooth antenna, which can better save the volume of the second electronic device 200. Optionally, the operating frequency of WI-R is 1M-20M.
[0030] See also Figure 4 , Figure 4 The flowchart of the data interaction method provided by an embodiment of the present application is shown. The method is used to construct a data interaction channel between electronic devices based on the electric field human body communication technology when the distance between the electronic device to be data-interacted and the target human body is close and they are located on different sides of the target human body, so as to reduce the human body obstruction and improve the data transmission rate. In a specific embodiment, the data interaction method is applied to Figure 8 The data interaction device 300 and the first electronic device 100 ( Fig. 9 ). The following will take the first electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the first electronic device used in this embodiment may include a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here. In this embodiment, the first electronic device is used to exchange data with the second electronic device. Figure 4 The process shown is described in detail, and the data interaction method may specifically include the following steps:
[0031] Step S110: determining a first distance relationship between a first distance between the first electronic device and the target human body and a distance threshold, and determining a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold.
[0032] Optionally, the target human body can be a human body that has a corresponding relationship with the first electronic device and the second electronic device. For example, if the first electronic device and / or the second electronic device is in a worn state, the human body worn by the first electronic device and / or the second electronic device can be determined as the target human body; if the first electronic device and / or the second electronic device is in a held state, the human body held by the first electronic device and / or the second electronic device can be determined as the target human body; or, the human body closest to the first electronic device and / or the second electronic device can be determined as the target human body, etc., which is not limited here.
[0033] In this embodiment, the distance between the first electronic device and the target human body can be determined as the first distance, and the distance relationship between the first distance and the distance threshold can be determined as the first distance relationship. The first distance relationship may include: the first distance is less than the distance threshold, the first distance is equal to the distance threshold, or the first distance is greater than the distance threshold.
[0034] Among them, the distance threshold can be the maximum distance of the human body electric field range (the range with the human skin surface), that is, if the first distance between the first electronic device and the target human body is less than the distance threshold, it can be considered that the distance between the first electronic device and the target human body meets the effective range of human body electric field transmission, and an effective human body electric field can be formed between the first electronic device and the target human body; if the first distance between the first electronic device and the target human body is equal to or greater than the distance threshold, it can be considered that the distance between the first electronic device and the target human body does not meet the effective range of human body electric field transmission, and an effective human body electric field cannot be formed between the first electronic device and the target human body. Optionally, the distance threshold can include 10cm, 15cm, etc., which are not limited here.
[0035] In some embodiments, the first electronic device may include a first distance sensor. Based on this, the first distance sensor of the first electronic device can detect a first distance between the first electronic device and the target human body, and compare the detected first distance with a pre-set and stored distance threshold to determine a first distance relationship between the first distance and the distance threshold.
[0036] In this embodiment, the distance between the second electronic device and the target human body can be determined as the second distance, and the distance relationship between the second distance and the distance threshold can be determined as the second distance relationship. The second distance relationship may include: the second distance is less than the distance threshold, the second distance is equal to the distance threshold, or the second distance is greater than the distance threshold.
[0037] Among them, the distance threshold can be the maximum distance of the human body electric field range, that is, if the second distance between the second electronic device and the target human body is less than the distance threshold, it can be considered that the distance between the second electronic device and the target human body meets the effective range of human body electric field transmission, and an effective human body electric field can be formed between the second electronic device and the target human body; if the second distance between the second electronic device and the target human body is equal to or greater than the first distance threshold, it can be considered that the distance between the second electronic device and the target human body does not meet the effective range of human body electric field transmission, and an effective human body electric field cannot be formed between the second electronic device and the target human body. Optionally, the distance threshold can include 10cm, 15cm, etc., which are not limited here.
[0038] In some embodiments, the second electronic device may include a second distance sensor. Based on this, the second distance sensor of the second electronic device can detect the second distance between the second electronic device and the target human body, and compare the detected second distance with a pre-set and stored distance threshold to determine a second distance relationship between the second distance and the distance threshold.
[0039] As an implementable manner, when the second electronic device obtains the second distance relationship with the distance threshold, the second distance relationship can be sent to the first electronic device via broadcast or Bluetooth, and accordingly, the first electronic device can obtain the second distance relationship, which is not limited here.
[0040] Step S120: determining the positional relationship between the first electronic device, the second electronic device, and the target human body.
[0041] In this embodiment, the positional relationship between the first electronic device and the second electronic device and the target body can be determined. The positional relationship may include: the first electronic device and the second electronic device are located on the same side of the target body, or the first electronic device and the second electronic device are located on different sides of the target body. Optionally, when the first electronic device and the second electronic device are located on different sides of the target body, the first electronic device may be located on the left side of the target body, and the second electronic device may be located on the right side of the target body; the first electronic device may be located on the front side of the target body, and the second electronic device may be located on the left side of the target body, etc., which are not limited here.
[0042] Among them, it can be understood that if the position relationship represents that the first electronic device and the second electronic device are located on the same side of the target body, it can be considered that the first electronic device and the second electronic device will not be blocked by the target body during data transmission via wireless methods such as Bluetooth; if the position relationship represents that the first electronic device and the second electronic device are located on different sides of the target body, it can be considered that the first electronic device and the second electronic device will be blocked by the target body during data transmission via wireless methods such as Bluetooth.
[0043] In some embodiments, a first position relationship between a first electronic device and a target body can be obtained, and a second position relationship between a second electronic device and the target body can be obtained, and based on the first position relationship and the second position relationship, the position relationship between the first electronic device and the second electronic device and the target body can be determined.
[0044] As an implementable manner, the first electronic device may determine the first position relationship between itself and the target human body through ultrasonic positioning technology; may determine the first position relationship between itself and the target human body through radar positioning technology; may determine the first position relationship between itself and the target human body through infrared positioning technology; may determine the first position relationship between itself and the target human body through RFID positioning technology; may determine the first position relationship between itself and the target human body through image recognition technology, etc., without limitation herein.
[0045] As an implementable manner, the second electronic device can determine the second position relationship between itself and the target human body through ultrasonic positioning technology; can determine the second position relationship between itself and the target human body through radar positioning technology; can determine the second position relationship between itself and the target human body through infrared positioning technology; can determine the second position relationship between itself and the target human body through RFID positioning technology; can determine the second position relationship between itself and the target human body through image recognition technology, etc., without limitation herein.
[0046] As a method, when the second electronic device obtains the second position relationship with the target human body, the second position relationship can be sent to the first electronic device via broadcast or Bluetooth, and accordingly, the first electronic device can obtain the second position relationship, which is not limited here.
[0047] Step S130: If it is determined based on the first distance relationship that the first distance is less than a distance threshold, if it is determined based on the second distance relationship that the second distance is less than the distance threshold, and if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, a data interaction channel is established between the first electronic device and the second electronic device based on electric field human body communication technology.
[0048] In this embodiment, when the first distance relationship, the second distance relationship and the position relationship are obtained, it can be determined whether the first distance is less than the distance threshold based on the first distance relationship, whether the second distance is less than the distance threshold based on the second distance relationship, and whether the first electronic device and the second electronic device are located on different sides of the target human body based on the position relationship. If it is determined based on the first distance relationship that the first distance is less than the distance threshold, it can be determined that an effective human body electric field can be formed between the first electronic device and the target human body; if it is determined based on the second distance relationship that the second distance is less than the distance threshold, it can be determined that an effective human body electric field can be formed between the second electronic device and the target human body; if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, it can be determined that if the first electronic device and the second electronic device perform data transmission by wireless means such as Bluetooth, they will be blocked by the target human body, then a data interaction channel between the first electronic device and the second electronic device can be constructed based on the electric field human body communication technology, which can reduce human body obstruction and improve human body data transmission efficiency.
[0049] Among them, electric field human body communication technology is a communication technology that uses the human body as a communication channel for signal transmission. This technology couples the signal to the human body by establishing an electric field on the surface or inside the human body, thereby realizing signal transmission and exchange. It can be understood that electric field human body communication technology can realize low-frequency signal transmission. This technology uses low-frequency signals for transmission. The frequency of the signal is usually between tens of hertz and hundreds of hertz. The low-frequency signal establishes an electric field on the surface or inside the human body to realize signal transmission; electric field human body communication technology can achieve signal closure. Since electric field human body communication technology uses low-frequency signals, the signal propagation distance is short, usually only between a few centimeters and a few meters. Therefore, the signal confidentiality is better and it is not easy to be interfered or eavesdropped by the outside world; electric field human body communication technology can achieve higher reliability. Since the signal transmission of electric field human body communication technology is carried out inside the human body, it is not affected by the external environment, so it has higher reliability.
[0050] Among them, when constructing a data interaction channel between a first electronic device and a second electronic device based on electric field human body communication technology, the first electronic device can modulate the signal to be transmitted and convert it into a signal form suitable for transmission. Then, the first electronic device uses electrodes or sensors and other devices to couple the signal to the target human body to establish an electric field inside the human body. The signal propagates in the electric field inside the target human body. Since the human body itself has certain electrical properties such as resistance and capacitance, it can have a certain impact on the electric field. The signal can be transmitted with changes in distance and human posture. The second electronic device can use another set of electrodes or sensors and other devices to receive the signal transmitted from the inside of the target human body, and demodulate it to restore it to the original signal. After that, the second electronic device can further process and apply the received signal, such as playing it.
[0051] A data interaction method provided in an embodiment of the present application determines a first distance relationship between a first distance between a first electronic device and a target human body and a distance threshold, determines a second distance relationship between a second distance between a second electronic device and the target human body and the distance threshold, determines a position relationship between the first electronic device and the second electronic device and the target human body, if it is determined based on the first distance relationship that the first distance is less than the distance threshold, and based on the second distance relationship that the second distance is less than the distance threshold, and based on the position relationship it is determined that the first electronic device and the second electronic device are located on different sides of the target human body, then a data interaction channel between the first electronic device and the second electronic device is constructed based on the electric field human body communication technology, so that when the electronic device that needs to perform data interaction is close to the target human body and is located on different sides of the target human body, a data interaction channel between the electronic devices is constructed based on the electric field human body communication technology, which can reduce human body obstruction and improve data transmission rate.
[0052] See also Figure 5 , Figure 5 The flowchart of the data interaction method provided by an embodiment of the present application is shown. The method is applied to the above-mentioned first electronic device, which is used to interact with the second electronic device for data. Figure 5 The process shown is described in detail, and the data interaction method may specifically include the following steps:
[0053] Step S210: Acquire a first state of the first electronic device.
[0054] In this embodiment, the state of the first electronic device may be acquired, and the state of the first electronic device may be determined as the first state.
[0055] In some embodiments, the first electronic device may include a first pressure sensor, and the first state of the first electronic device may be detected and acquired through the first pressure sensor. For example, the first pressure sensor may be used to detect the position where the first electronic device receives the pressure, and based on the position where the first electronic device receives the pressure, the first state of the first electronic device may be acquired.
[0056] In some embodiments, the first electronic device may include a first contact sensor, and the first state of the first electronic device may be detected and acquired through the first contact sensor. For example, the first contact sensor may be used to detect the position where the first electronic device receives a touch, and based on the position where the first electronic device receives a touch, the first state of the first electronic device may be acquired.
[0057] In some embodiments, the first electronic device may include a first posture sensor, and the first state of the first electronic device may be detected and acquired through the first posture sensor. For example, the first posture of the first electronic device may be detected through the first posture sensor, and the first state of the first electronic device may be acquired based on the first posture.
[0058] Step S220: If it is determined based on the first state that the first electronic device is in a worn state or a held state, then it is determined that the first distance is less than the distance threshold.
[0059] In this embodiment, when the first state of the first electronic device is obtained, it can be determined based on the first state whether the first electronic device is in a worn state or a held state, wherein, if it is determined based on the first state that the first electronic device is in a worn state or a held state, it can be determined that the first distance is less than the distance threshold.
[0060] In some embodiments, if the first state of the first electronic device is determined by data detected by the first pressure sensor, then the pressing position detected by the first pressure sensor can be compared with the pressing position when the first electronic device is in a worn state or a held state, and if the comparison result indicates that the pressing position matches the pressing position when the first electronic device is in a worn state or a held state, then it can be determined that the first electronic device is in a worn state or a held state, and it can be determined that the first distance is less than the distance threshold.
[0061] In some embodiments, if the first state of the first electronic device is determined by data detected by the first touch sensor, then the touch position detected by the first touch sensor can be compared with the touch position when the first electronic device is in a worn state or a held state, and if the comparison result indicates that the touch position matches the touch position when the first electronic device is in a worn state or a held state, it can be determined that the first electronic device is in a worn state or a held state, and it can be determined that the first distance is less than the distance threshold.
[0062] In some embodiments, if the first state of the first electronic device is determined by data detected by the first posture sensor, then the posture data detected by the first posture sensor can be compared with the posture data when the first electronic device is in a worn state or a held state, and if the comparison result indicates that the posture data matches the posture data when the first electronic device is in a worn state or a held state, it can be determined that the first electronic device is in a worn state or a held state, and it can be determined that the first distance is less than the distance threshold.
[0063] Step S230: Acquire the second state of the second electronic device.
[0064] In this embodiment, the state of the second electronic device may be acquired, and the state of the second electronic device may be determined as the second state.
[0065] In some embodiments, the second electronic device may include a second pressure sensor, and the second state of the second electronic device may be detected and acquired through the second pressure sensor. For example, the position where the second electronic device receives the pressure may be detected through the second pressure sensor, and based on the position where the second electronic device receives the pressure, the second state of the second electronic device may be acquired.
[0066] In some embodiments, the second electronic device may include a second contact sensor, and the second state of the second electronic device may be detected and acquired through the second contact sensor. For example, the position where the second electronic device receives a touch may be detected through the second contact sensor, and based on the position where the second electronic device receives a touch, the second state of the second electronic device may be acquired.
[0067] In some embodiments, the second electronic device may include a second posture sensor, and the second state of the second electronic device may be detected and acquired through the second posture sensor. For example, the second posture of the second electronic device may be detected through the second posture sensor, and the second state of the second electronic device may be acquired based on the second posture.
[0068] Step S240: If it is determined based on the second state that the second electronic device is in a worn state or a held state, then it is determined that the second distance is less than the distance threshold.
[0069] In this embodiment, when the second state of the second electronic device is obtained, it can be determined based on the second state whether the second electronic device is in a worn state or a held state, wherein if it is determined based on the second state that the second electronic device is in a worn state or a held state, it can be determined that the second distance is less than the distance threshold.
[0070] In some embodiments, if the second state of the second electronic device is determined by data detected by the second pressure sensor, then the pressing position detected by the second pressure sensor can be compared with the pressing position when the second electronic device is in a worn state or a held state, and if the comparison result indicates that the pressing position matches the pressing position when the second electronic device is in a worn state or a held state, then it can be determined that the second electronic device is in a worn state or a held state, and it can be determined that the second distance is less than the distance threshold.
[0071] In some embodiments, if the second state of the second electronic device is determined by data detected by the second touch sensor, then the touch position detected by the second touch sensor can be compared with the touch position when the second electronic device is in a worn state or a held state, and if the comparison result indicates that the touch position matches the touch position when the second electronic device is in a worn state or a held state, then it can be determined that the second electronic device is in a worn state or a held state, and it can be determined that the second distance is less than the distance threshold.
[0072] In some embodiments, if the second state of the second electronic device is determined by data detected by the second posture sensor, then the posture data detected by the second posture sensor can be compared with the posture data when the second electronic device is in a worn state or a held state, and if the comparison result indicates that the posture data matches the posture data when the second electronic device is in a worn state or a held state, then it can be determined that the second electronic device is in a worn state or a held state, and it can be determined that the second distance is less than the distance threshold.
[0073] Step S250: determining the positional relationship between the first electronic device, the second electronic device, and the target human body.
[0074] Step S260: If it is determined based on the first distance relationship that the first distance is less than a distance threshold, if it is determined based on the second distance relationship that the second distance is less than the distance threshold, and if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, a data interaction channel is established between the first electronic device and the second electronic device based on electric field human body communication technology.
[0075] For the detailed description of step S250 to step S260, please refer to step S120 to step S130, which will not be repeated here.
[0076] Compared with the data interaction method provided in an embodiment of the present application, Figure 4 In the data interaction method shown, this embodiment also obtains the first state of the first electronic device, and when the first state represents that the first electronic device is in a worn state or a held state, determines that the distance between the first electronic device and the target human body is less than a distance threshold, and obtains the second state of the second electronic device, and when the second state represents that the second electronic device is in a worn state or a held state, determines that the distance between the second electronic device and the target human body is less than a distance threshold, thereby improving the accuracy of the determined distance relationship.
[0077] See also Figure 6 , Figure 6The flowchart of the data interaction method provided by an embodiment of the present application is shown. The method is applied to the above-mentioned first electronic device, which is used to interact with the second electronic device for data. Figure 6 The process shown is described in detail, and the data interaction method may specifically include the following steps:
[0078] Step S310: Determine the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device.
[0079] In this embodiment, the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device may be determined.
[0080] As one approach, a data format corresponding to data to be transmitted from the first electronic device to the second electronic device may be acquired, and based on the data format, a data type corresponding to the data to be transmitted from the first electronic device to the second electronic device may be determined.
[0081] As another way, an application corresponding to the data to be transmitted from the first electronic device to the second electronic device may be obtained, and based on the application, the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device may be determined.
[0082] Step S320: If the data type includes an audio type, determining a first distance relationship between the first distance and the distance threshold, and determining a second distance relationship between the second distance and the distance threshold.
[0083] In this embodiment, when determining the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device, it can be determined whether the data type includes an audio type. If it is determined that the data type includes an audio type, the first distance relationship between the first distance and the distance threshold can be determined, and the second distance relationship between the second distance and the distance threshold can be determined, so as to facilitate the subsequent implementation of the scheme of constructing a data interaction channel between the first electronic device and the second electronic device through electric field human body communication technology, thereby improving the transmission effect of audio data. If it is determined that the data type does not include an audio type (such as including a health data type), a wireless (such as Bluetooth) connection between the first electronic device and the second electronic device can be directly constructed.
[0084] Step S330: determining the positional relationship between the first electronic device, the second electronic device, and the target human body.
[0085] Step S340: If it is determined based on the first distance relationship that the first distance is less than a distance threshold, if it is determined based on the second distance relationship that the second distance is less than the distance threshold, and if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, a data interaction channel is established between the first electronic device and the second electronic device based on electric field human body communication technology.
[0086] For the detailed description of step S330 to step S340, please refer to step S120 to step S130, which will not be repeated here.
[0087] Compared with the data interaction method provided in an embodiment of the present application, Figure 4 The data interaction method shown, this embodiment also determines the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device, and constructs a data interaction channel between the electronic devices based on the electric field human body communication technology when the data type includes an audio type, thereby ensuring the transmission rate of the audio data.
[0088] See also Figure 7 , Figure 7 The flowchart of the data interaction method provided by an embodiment of the present application is shown. The method is applied to the above-mentioned first electronic device, which is used to interact with the second electronic device for data. Figure 7 The process shown is described in detail, and the data interaction method may specifically include the following steps:
[0089] Step S410: determining a first distance relationship between a first distance between the first electronic device and the target human body and a distance threshold, and determining a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold.
[0090] Step S420: determining the positional relationship between the first electronic device, the second electronic device, and the target human body.
[0091] For the detailed description of step S410 to step S420, please refer to step S110 to step S120, which will not be repeated here.
[0092] Step S430: If it is determined based on the first distance relationship that the first distance is less than a distance threshold, if it is determined based on the second distance relationship that the second distance is less than the distance threshold, and if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, then determine the current data interaction mode from multiple data interaction modes.
[0093] Among them, the electronic device can be pre-set and stored with multiple data interaction modes, and each of the multiple data interaction modes corresponds to a different way of performing data interaction. For example, multiple data interaction modes may include a first data interaction mode, a second data interaction mode, and a third data interaction mode, and the first data interaction mode, the second data interaction mode, and the third data interaction mode each have different ways of performing data interaction. Optionally, the first data interaction mode may include a minimalist mode, that is, there is no need for mutual interactive responses and data verification between devices; the second data interaction mode may include a conventional one-way / two-way communication mode, which usually includes a master device (such as a first electronic device) and one or more slave devices (such as a second electronic device) for data communication in this scenario; the third data interaction mode may include a multi-device simultaneous communication mode, which usually includes more than two master devices (such as a first electronic device) for communication, and the number of slave devices (such as a second electronic device) is not limited.
[0094] In this embodiment, when the first distance is determined to be less than the distance threshold based on the first distance relationship, the second distance is determined to be less than the distance threshold based on the second distance relationship, and the first electronic device and the second electronic device are located on different sides of the target human body based on the position relationship, a data interaction mode can be determined from multiple data interaction modes as the current data interaction mode.
[0095] In some embodiments, the first electronic device may determine the current data interaction mode from multiple data interaction modes by random selection; the first electronic device may determine the current data interaction mode from multiple data interaction modes by polling selection; the first electronic device may determine the current data interaction mode from multiple data interaction modes by user selection, etc., which are not limited here.
[0096] Step S440: Based on the current data interaction mode and the electric field human body communication technology, the data interaction channel is constructed, and data interaction is performed through the data interaction channel.
[0097] In this embodiment, when the current data interaction mode is determined from multiple data interaction modes, a data interaction channel between the first electronic device and the second electronic device can be constructed based on the current data interaction mode and electric field human body communication technology, and data interaction between the first electronic device and the second electronic device can be carried out through the data interaction channel.
[0098] In some embodiments, if the current data interaction mode is the first data interaction mode, a data interaction channel is constructed between the first electronic device and the second electronic device based on the electric field human body communication technology, and the first electronic device is controlled to operate in a sending state to send the first data to the second electronic device operating in a receiving state through the data interaction channel.
[0099] Among them, if the current data interaction mode is the first data interaction mode, there is no need for a pairing process and an additional data interaction process between the first electronic device and the second electronic device, and the user experience of a wired connection can basically be achieved. The first data interaction mode can be applied to multiple devices for switching at the same time, and the switching process does not require additional device pairing related operations. In addition, the first data interaction mode can be applied to music-related applications. Since music-related data can accept a certain amount of packet loss during normal use, and there is no need for secondary verification of data integrity, it can be directly and simply applied.
[0100] As an implementable manner, in the first data interaction mode, the first data sent by the first electronic device may include a data frame header, data content and others, wherein the data frame header mainly includes the device information ID / address of the first device, the transmission signal strength, the data type and other customized data; the data content includes the audio data transmission content, that is, the specific data; and the others include definition information, such as CRC check value, data source, whether a response needs to be returned, etc.
[0101] In some embodiments, if the current data interaction mode is the second data interaction mode, the first electronic device is controlled to work in the sending state to transmit broadcast frames according to a preset period, and after transmitting the broadcast frames, it switches from working in the sending state to working in the receiving state, and if the response data returned by the second electronic device based on the monitored broadcast frame is received, a data interaction channel between the first electronic device and the second electronic device is constructed based on the electric field human body communication technology, and data interaction is performed through the data interaction channel. It can be understood that in the second data interaction mode, the data interaction process between the first electronic device and the second electronic device is: the first electronic device transmits a broadcast, the second electronic device responds to access, and the first electronic device and the second electronic device negotiate data transmission.
[0102] As an example, the first electronic device may transmit a broadcast frame of “I am the master device 01, are there any other devices present?”, and the second electronic device may return response data of “There are other devices present, I am the slave device 01”.
[0103] Optionally, the response data may include basic information of the second electronic device, device type, device purpose, device name ID, device signal quality, etc., which are not limited here.
[0104] As an implementable method, when the main device transmits broadcast frames at a preset period, if no response data is received from the second electronic device based on the monitored broadcast frames within a preset time period, the main device can stop transmitting broadcast frames to save power consumption of the first electronic device.
[0105] As an implementable method, when a data interaction channel between a first electronic device and a second electronic device is constructed based on electric field human body communication technology, the first electronic device and the second electronic device can normally send and receive data through the data interaction channel, that is, data interaction is performed through the data interaction channel.
[0106] As a method, data interaction through a data interaction channel includes: controlling the first electronic device to work in a sending state, so as to send second data to the second electronic device working in a receiving state through the data interaction channel, and switching from working in the sending state to working in the receiving state after sending the second data, if feedback information returned by the second electronic device switching from working in the receiving state to working in the sending state based on the received second data is received, then switching from working in the receiving state to working in the sending state, so as to send third data to the second electronic device switching from working in the sending state to working in the receiving state through the data interaction channel. It can be understood that during the data interaction process, the second electronic device needs to respond to the data sent by the first electronic device, wherein the need for responding can be carried in the data sent by the first electronic device.
[0107] Optionally, if no feedback information (response) is received from the second electronic device during this process, the first electronic device may repeatedly send the second data until it times out or determines that the communication is interrupted or the second electronic device is not present (for example, the second electronic device is too far away from the body, the first device is too far away from the body, the second device turns off the data receiving function, the second device is turned off, etc.).
[0108] As a method, data interaction through a data interaction channel includes: controlling the first electronic device to work in a sending state, so as to send second data to the second electronic device working in a receiving state through the data interaction channel, and switching from working in the sending state to working in the receiving state after sending the second data, and the second device does not return information and waits for the first electronic device to continue to generate the next data when receiving the second data. It is understandable that during the data interaction process, the second electronic device does not need to respond to the data sent by the first electronic device, wherein the need for a response can be carried in the data sent by the first electronic device.
[0109] In some embodiments, if the current data interaction mode is the third data interaction mode, the working state of the first electronic device can be detected, wherein the working state includes being in a sending state or in a receiving state. If the first electronic device is determined to be in a sending state based on the working state, the working state of the second electronic device is determined to be a receiving state, and the first electronic device is controlled to operate in the sending state to transmit broadcast frames according to a preset period, and after transmitting the broadcast frames, it switches from operating in the sending state to operating in the receiving state. If response data is received from the second electronic device based on the monitored broadcast frame, a data interaction channel is constructed between the first electronic device and the second electronic device based on the electric field human body communication technology, and data interaction is performed through the data interaction channel.
[0110] Optionally, in the third data interaction mode, the number of master devices (including the first electronic device) can be multiple, and multiple master devices need to seize the data interaction channel formed by the target human body to send data. Therefore, in this embodiment, the first electronic device can detect its working status to determine whether it is in a sending state (i.e., successfully seizing the data interaction channel), and perform subsequent data interaction with the second electronic device when it is in the sending state.
[0111] As an example, the first electronic device may transmit “I am the master device 01, are there any other devices here?”, and other master devices may respond with “I am the master device 02, the device information is XXX”.
[0112] Optionally, after the first electronic device sends data, the channel is in an idle state. In the idle state, other master devices can actively initiate a communication process.
[0113] As an implementable method, the data sent by the first electronic device can be received by any other main device and second electronic device in a receiving state. The device ID can be specified when the data is sent. Therefore, only the device corresponding to the device ID will receive the data and respond, while other devices may not make any response.
[0114] Compared with the data interaction method provided in an embodiment of the present application, Figure 4 The data interaction method shown in this embodiment also determines the current data interaction mode from multiple data interaction modes, and constructs a data interaction channel for data interaction based on the current data interaction mode and electric field human body communication technology, so as to adapt to different data interaction modes and enhance the diversity of data interaction usage scenarios.
[0115] See also Figure 8 , Figure 8The data interaction device 300 is applied to a first electronic device, and the first electronic device is used to interact with a second electronic device for data exchange. Figure 8 The block diagram shown in FIG. 1 is used to illustrate that the data interaction device 300 includes: a distance relationship determination module 310, a position relationship determination module 320, and a data interaction channel construction module 330, wherein:
[0116] The distance relationship determination module 310 is used to determine a first distance relationship between a first distance between the first electronic device and the target human body and a distance threshold, and to determine a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold.
[0117] Furthermore, the distance relationship determination module 310 includes: a first state acquisition submodule and a first distance relationship determination submodule, wherein:
[0118] The first state acquisition submodule is used to acquire the first state of the first electronic device.
[0119] The first distance relationship determination submodule is configured to determine that the first distance is less than the distance threshold if it is determined based on the first state that the first electronic device is in a wearing state or a holding state.
[0120] Furthermore, the distance relationship determination module 310 includes: a second state acquisition submodule and a second distance relationship determination submodule, wherein:
[0121] The second state acquisition submodule is used to acquire the second state of the second electronic device.
[0122] The second distance relationship determination submodule is configured to determine that the second distance is less than the distance threshold if it is determined based on the second state that the second electronic device is in a wearing state or a holding state.
[0123] Furthermore, the distance relationship determination module 310 includes: a data type determination submodule and a third distance relationship determination submodule, wherein:
[0124] The data type determination submodule is used to determine the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device.
[0125] The third distance relationship determination submodule is used to determine a first distance relationship between the first distance and the distance threshold if the data type includes an audio type, and to determine a second distance relationship between the second distance and the distance threshold.
[0126] The position relationship determination module 320 is used to determine the position relationship between the first electronic device, the second electronic device and the target human body.
[0127] The data interaction channel construction module 330 is used to construct a data interaction channel between the first electronic device and the second electronic device based on the electric field human body communication technology if it is determined based on the first distance relationship that the first distance is less than a distance threshold, based on the second distance relationship that the second distance is less than the distance threshold, and based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body.
[0128] Furthermore, the data interaction channel construction module 330 includes: a data interaction mode determination submodule and a data interaction channel construction submodule, wherein:
[0129] The data interaction mode determination submodule is used to determine the current data interaction mode from multiple data interaction modes.
[0130] The data interaction channel construction submodule is used to construct the data interaction channel based on the current data interaction mode and the electric field human body communication technology, and perform data interaction through the data interaction channel.
[0131] Furthermore, the data interaction channel construction submodule includes: a first data interaction channel construction unit and a first data sending unit, wherein:
[0132] The first data interaction channel construction unit is used to construct the data interaction channel based on the electric field human body communication technology if the current data interaction mode is the first data interaction mode.
[0133] The first data sending unit is used to control the first electronic device to work in a sending state, so as to send first data to the second electronic device working in a receiving state through the data interaction channel.
[0134] Furthermore, the data interaction channel construction submodule includes: a broadcast frame transmitting unit and a second data interaction channel construction unit, wherein:
[0135] A broadcast frame transmitting unit is used to control the first electronic device to operate in a sending state and transmit broadcast frames at a preset period if the current data interaction mode is the second data interaction mode, and to switch from operating in a sending state to operating in a receiving state after transmitting the broadcast frame.
[0136] The second data interaction channel construction unit is used to construct the data interaction channel based on the electric field human body communication technology if the response data returned by the second electronic device based on the monitored broadcast frame is received, and to perform data interaction through the data interaction channel.
[0137] Furthermore, the second data interaction channel construction unit includes: a second data sending subunit and a third data sending subunit, wherein:
[0138] The second data sending subunit is used to control the first electronic device to work in the sending state, so as to send second data to the second electronic device working in the receiving state through the data interaction channel, and switch from working in the sending state to working in the receiving state after sending the second data.
[0139] The third data sending subunit is used to switch from working in a receiving state to working in a sending state if feedback information returned by the second electronic device that switches from working in a receiving state to working in a sending state based on the received second data is received, so as to send third data to the second electronic device that switches from working in a sending state to working in a receiving state through the data interaction channel.
[0140] Furthermore, the second data interaction channel construction unit further includes: a transmission stopping unit, wherein:
[0141] The transmission stopping unit is used to stop transmitting the broadcast frame if the response data returned by the second electronic device based on the monitored broadcast frame is not received within a preset time period.
[0142] Furthermore, the data interaction channel construction submodule includes: a working state detection unit, a state determination unit, a broadcast frame transmission control unit and a response data receiving unit, wherein:
[0143] A working status detection unit is used to detect the working status of the first electronic device if the current data interaction mode is the third data interaction mode, wherein the working status includes being in a sending state or in a receiving state.
[0144] A state determination unit is used to determine the working state of the second electronic device as being in a receiving state if it is determined based on the working state that the first electronic device is in a sending state.
[0145] The broadcast frame transmission control unit is used to control the first electronic device to work in the transmission state to transmit broadcast frames according to a preset period, and switch from working in the transmission state to working in the receiving state after transmitting the broadcast frame.
[0146] A response data receiving unit is used to construct the data interaction channel based on the electric field human body communication technology if the response data returned by the second electronic device based on the monitored broadcast frame is received, and to perform data interaction through the data interaction channel.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0148] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0149] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0150] See also Fig. 9 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0151] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0152] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0153] See also Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 400 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0154] The computer readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 410 can be compressed, for example, in an appropriate form.
[0155] In summary, the data interaction method, device, electronic device and storage medium provided in the embodiments of the present application determine a first distance relationship between a first distance between a first electronic device and a target human body and a distance threshold, and determine a second distance relationship between a second distance between a second electronic device and a target human body and a distance threshold, determine the position relationship between the first electronic device and the second electronic device and the target human body, if it is determined based on the first distance relationship that the first distance is less than the distance threshold, and based on the second distance relationship that the second distance is less than the distance threshold, and based on the position relationship it is determined that the first electronic device and the second electronic device are located on different sides of the target human body, then a data interaction channel between the first electronic device and the second electronic device is constructed based on the electric field human body communication technology, so that by constructing a data interaction channel between the electronic devices based on the electric field human body communication technology when the electronic device that needs to interact with data is close to the target human body and is located on different sides of the target human body, human body obstruction can be reduced and the data transmission rate can be improved.
[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data interaction method, characterized in that: Applied to a first electronic device, the first electronic device is used to interact with a second electronic device for data, the method comprising: Determine a first distance relationship between a first distance between the first electronic device and the target human body and a distance threshold, and determine a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold; Determining a positional relationship between the first electronic device, the second electronic device, and the target human body; If it is determined based on the first distance relationship that the first distance is less than a distance threshold, if it is determined based on the second distance relationship that the second distance is less than the distance threshold, and if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body, a data interaction channel is constructed between the first electronic device and the second electronic device based on electric field human body communication technology.
2. The method according to claim 1, characterized in that The determining of a first distance relationship between a first distance between the first electronic device and the target human body and a first distance threshold includes: Acquire a first state of the first electronic device; If it is determined based on the first state that the first electronic device is in a worn state or a held state, it is determined that the first distance is less than the distance threshold.
3. The method according to claim 1, characterized in that The determining a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold includes: Acquire a second state of the second electronic device; If it is determined based on the second state that the second electronic device is in a worn state or a held state, it is determined that the second distance is less than the distance threshold.
4. The method according to claim 1, characterized in that: The determining a first distance relationship between a first distance between the first electronic device and the target human body and a distance threshold, and determining a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold, includes: Determine the data type corresponding to the data to be transmitted from the first electronic device to the second electronic device; If the data type includes an audio type, a first distance relationship between the first distance and the distance threshold is determined, and a second distance relationship between the second distance and the distance threshold is determined.
5. The method according to any one of claims 1 to 4, characterized in that: The method of constructing a data interaction channel between the first electronic device and the second electronic device based on the electric field human body communication technology includes: Determine a current data interaction mode from multiple data interaction modes; Based on the current data interaction mode and the electric field human body communication technology, the data interaction channel is constructed, and data interaction is performed through the data interaction channel.
6. The method according to claim 5, characterized in that The constructing the data interaction channel based on the current data interaction mode and the electric field human body communication technology, and performing data interaction through the data interaction channel, includes: If the current data interaction mode is the first data interaction mode, constructing the data interaction channel based on the electric field human body communication technology; The first electronic device is controlled to operate in a sending state, so as to send first data to the second electronic device operating in a receiving state through the data interaction channel.
7. The method according to claim 5, characterized in that The constructing the data interaction channel based on the current data interaction mode and the electric field human body communication technology, and performing data interaction through the data interaction channel, includes: If the current data interaction mode is the second data interaction mode, control the first electronic device to operate in a sending state to transmit broadcast frames according to a preset period, and switch from operating in a sending state to operating in a receiving state after transmitting the broadcast frames; If response data is received from the second electronic device based on the monitored broadcast frame, the data interaction channel is constructed based on the electric field human body communication technology, and data interaction is performed through the data interaction channel.
8. The method according to claim 7, characterized in that The data interaction through the data interaction channel includes: Controlling the first electronic device to operate in a sending state to send second data to a second electronic device operating in a receiving state through the data interaction channel, and switching from operating in the sending state to operating in the receiving state after sending the second data; If feedback information is received from the second electronic device that has switched from working in a receiving state to working in a sending state based on the received second data, the device switches from working in a receiving state to working in a sending state to send third data to the second electronic device that has switched from working in a sending state to working in a receiving state through the data interaction channel.
9. The method according to claim 7, characterized in that: The method further comprises: If the response data returned by the second electronic device based on the monitored broadcast frame is not received within a preset time period, the transmission of the broadcast frame is stopped.
10. The method according to claim 5, characterized in that The constructing the data interaction channel based on the current data interaction mode and the electric field human body communication technology, and performing data interaction through the data interaction channel, includes: If the current data interaction mode is the third data interaction mode, detecting the working state of the first electronic device, wherein the working state includes being in a sending state or in a receiving state; If it is determined based on the working state that the first electronic device is in a sending state, then the working state of the second electronic device is determined to be in a receiving state; Controlling the first electronic device to operate in a sending state to transmit broadcast frames at a preset period, and switching from operating in the sending state to operating in the receiving state after transmitting the broadcast frames; If response data is received from the second electronic device based on the monitored broadcast frame, the data interaction channel is constructed based on the electric field human body communication technology, and data interaction is performed through the data interaction channel.
11. A data interaction device, characterized in that: Applied to a first electronic device, the first electronic device is used to exchange data with a second electronic device, and the device includes: a distance relationship determination module, configured to determine a first distance relationship between a first distance between the first electronic device and the target human body and a distance threshold, and to determine a second distance relationship between a second distance between the second electronic device and the target human body and the distance threshold; A position relationship determination module, used to determine the position relationship between the first electronic device, the second electronic device and the target human body; A data interaction channel construction module is used to construct a data interaction channel between the first electronic device and the second electronic device based on the electric field human body communication technology if it is determined based on the first distance relationship that the first distance is less than a distance threshold, if it is determined based on the second distance relationship that the second distance is less than the distance threshold, and if it is determined based on the position relationship that the first electronic device and the second electronic device are located on different sides of the target human body.
12. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method, device and system for establishing communication connection
CN105939520A
Wireless earphone based on human body communication and communication method, system and device thereof
CN111601204A
Human body communication system and communication device
US20060252371A1
Electromyography-enhanced body area network system and method
US20190076047A1