CN116938950A - Data transmission method, electronic equipment and storage medium - Google Patents

Data transmission method, electronic equipment and storage medium Download PDF

Info

Publication number
CN116938950A
CN116938950A CN202210370011.3A CN202210370011A CN116938950A CN 116938950 A CN116938950 A CN 116938950A CN 202210370011 A CN202210370011 A CN 202210370011A CN 116938950 A CN116938950 A CN 116938950A
Authority
CN
China
Prior art keywords
access point
electronic device
frequency band
link
data
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210370011.3A
Other languages
Chinese (zh)
Inventor
王康
李小金
王皓
姜文浩
钟文国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210370011.3A priority Critical patent/CN116938950A/en
Publication of CN116938950A publication Critical patent/CN116938950A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/002Transmission of channel access control information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Abstract

The application discloses a data transmission method, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing a first link between the first electronic device and a second electronic device; judging whether the first access point and the second access point are the same access point or not, and if the first access point and the second access point are different access points, acquiring a second frequency band supported by the first access point and the third frequency band supported by the second access point; comparing the first frequency band with the second frequency band and a third frequency band; based on a comparison result, a first instruction is sent to the second electronic equipment, first data is sent to the second electronic equipment through the first link, and second data is sent to the first access point, so that the first access point forwards the second data to the second electronic equipment.

Description

Data transmission method, electronic equipment and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a data transmission method, an electronic device, and a storage medium
Background
With the development of technology in recent years, most electronic devices support Peer-TO-Peer (P2P) data transmission. However, when data is transmitted between devices through the P2P link, the P2P link is easily affected by a wireless network around the devices, and channel interference occurs, thereby increasing data transmission delay. The applicant found through testing that in the process of using the P2P transmission link to transmit data, if co-channel interference occurs (when the duty cycle is 75%), the network delay increases to 100ms. Under the different channel interference (when the duty ratio is 75%), the network delay is greatly fluctuated, and the maximum time delay can reach 1100ms.
Disclosure of Invention
In a first aspect, the present application discloses a method for data transmission, which is used for a first electronic device, where the first electronic device may include an intelligent terminal device such as a mobile phone. The method comprises the following steps:
the method comprises the steps that a first link is established between first electronic equipment and second electronic equipment by the first electronic equipment, wherein the first electronic equipment is connected to a first access point, the second electronic equipment is connected to a second access point, and the first link is a link under a first frequency band; specifically, the second electronic device may include a smart terminal device such as a mobile phone, a large-screen terminal (e.g., a smart screen), and the like. Further, the first link may comprise a point-to-point link and the first access point may comprise an electronic device such as a wireless router.
The first electronic equipment judges whether the first access point and the second access point are the same access point or not, and if the first access point and the second access point are different access points, the first electronic equipment acquires a second frequency band supported by the first access point and a third frequency band supported by the second access point.
The first electronic device compares the first frequency band with the second frequency band and the third frequency band;
in one example, the first electronic device may send a first indication to the second electronic device based on the comparison result, wherein the first indication is used to instruct the second electronic device to switch from the second access point to the first access point; transmitting first data to a second electronic device via a first link and transmitting second data to a first access point such that the first access point forwards the second data to the second electronic device, wherein the first data and the second data are the same data
In another example, the first electronic device may switch from the first access point to the second access point based on the comparison, send first data to the second electronic device over the first link, and send second data to the second access point such that the second access point forwards the second data to the second electronic device, wherein the first data and the second data are the same data.
When the data transmission method disclosed by the application is executed, the first electronic equipment can switch the two-way transmission data by the single-way transmission data, and the same data are respectively transmitted by the second electronic equipment through the two links, so that the transmission efficiency is improved, and the transmission delay is reduced.
In one embodiment of the present application, the first electronic device determining whether the first access point and the second access point are the same access point includes:
the first electronic equipment measures the service quality of the first link, and if the service quality of the first link meets the preset condition, the characteristic information of the first access point and the characteristic information of the second access point are obtained;
specifically, the quality of service of the first link is determined based on information measurement related to the quality of service, for example, based on measurement of parameters such as transmission delay, packet loss rate, etc. of the first link. Further, if one of the parameters such as the transmission delay or the packet loss rate of the first link is greater than a preset threshold, the service quality of the first link meets a preset condition. Further, if the weighted value of a plurality of parameters such as the transmission delay or the packet loss rate of the first link is greater than a preset threshold, the service quality of the first link meets a preset condition.
The first electronic device compares the characteristic information of the first access point with the characteristic information of the second access point, and if the characteristic information of the first access point is inconsistent with the characteristic information of the second access point, the first access point and the second access point are different access points.
In one embodiment of the application, the characteristic information of the first access point includes at least one of SSID, MAC of the first access point.
In one embodiment of the application, the first electronic device sends a first indication to the second electronic device based on the comparison result, comprising:
if the first frequency band is inconsistent with the second frequency band, the first electronic device sends a first indication to the second electronic device; if the first frequency band is inconsistent with the third frequency band, the first access point is switched to the second access point.
In one embodiment of the application, the first electronic device sends a first indication to the second electronic device based on the comparison result, comprising:
if the first frequency band is inconsistent with the second frequency band and the third frequency band, the first electronic equipment measures and acquires first signal intensity information of the first access point and second signal intensity information of the second access point;
the first electronic device obtains third signal intensity information of the first access point and fourth signal intensity information of the second access point from the second electronic device, and the third signal intensity information and the fourth signal intensity information are associated with the second electronic device;
And sending a first indication to the second electronic device based on the first signal strength information to the fourth signal strength information.
In one embodiment of the present application, the first electronic device is handed over from the first access point to the second access point based on the comparison result, comprising:
if the first frequency band is inconsistent with the third frequency band, the first access point is switched to the second access point.
In one embodiment of the application, the switching from the first access point to the second access point by the first electronic device based on the comparison result comprises:
if the first frequency band is inconsistent with the third frequency band and the second frequency band, measuring and acquiring the fifth signal intensity of the first access point and the sixth signal intensity of the second access point;
acquiring a seventh signal intensity of the first access point and an eighth signal intensity of the second access point from the second electronic device, wherein the seventh signal intensity and the eighth signal intensity are corresponding to each other by the second electronic device;
based on the fifth signal strength information to the eighth signal strength information, switching from the first access point to the second access point.
In one embodiment of the present application, the method further comprises:
the first electronic equipment sends the characteristic information of the first access point to the second electronic equipment, and the characteristic information of the first access point is used for the second electronic equipment to access the first access point.
In one embodiment of the present application, the first indication includes characteristic information of the first access point, where the characteristic information of the first access point is used for the second electronic device to access the first access point.
In a second aspect, the present application also provides a method for data transmission, for a first electronic device, the method comprising:
the method comprises the steps that a first electronic device establishes a first link between the first electronic device and a second electronic device, wherein the first link is a link under a first frequency band;
the first electronic equipment is accessed to a first access point, wherein the first access point supports a second frequency band;
the first electronic equipment compares the first frequency band with the second frequency band, and if the first frequency band is inconsistent with the second frequency band, a first indication is sent to the second electronic equipment, and the first indication is used for indicating the second electronic equipment to be accessed to the first access point;
the first electronic device sends first data to the second electronic device through the first link and sends second data to the first access point so that the first access point forwards the second data to the second electronic device;
the first data and the second data of the first electronic device are the same data.
When the data transmission method disclosed by the application is executed, the first electronic equipment can switch the two-way transmission by the single-way transmission, and the same data are respectively transmitted by the second electronic equipment through the two links, so that the transmission efficiency is improved, and the transmission delay is reduced.
In a third aspect, the application also discloses an electronic device comprising a processor and a storage device storing program instructions which, when executed by the processor, cause the electronic device to perform the method of data transmission as disclosed in the first aspect.
In a fourth aspect, the application also discloses an electronic device comprising a processor and a storage device storing program instructions which, when executed by the processor, cause the electronic device to perform a method as in the second aspect of data transmission.
In a fifth aspect, the application discloses a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform a method of data transmission as disclosed in the first aspect.
In a sixth aspect, a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform a method as the second aspect of data transmission.
Drawings
FIGS. 1A-1B are schematic communication diagrams of a first electronic device and a second electronic device according to an embodiment of the present application;
FIGS. 2A-2B are exemplary diagrams of a networking of a first electronic device and a second electronic device provided in one embodiment of the application;
3A-3B are exemplary diagrams of networking of a first electronic device and a second electronic device provided in another embodiment of the present application;
FIG. 4 is an exemplary diagram of an interaction flow between a first electronic device and a second electronic device provided in one embodiment of the application;
FIGS. 5A-5B are schematic diagrams illustrating communications between a first electronic device and a second electronic device according to another embodiment of the present application;
FIGS. 6A-6B are exemplary diagrams of a networking of a first electronic device and a second electronic device provided in one embodiment of the application;
7A-7B are exemplary diagrams of a networking of a first electronic device and a second electronic device provided in another embodiment of the application;
8A-8B are exemplary diagrams of a networking of a first electronic device and a second electronic device provided in one embodiment of the application;
9A-9B are exemplary diagrams of a networking of a first electronic device and a second electronic device provided in another embodiment of the application;
FIG. 10 is an exemplary diagram of an interaction flow between a first electronic device and a second electronic device provided in one embodiment of the application;
fig. 11 is a schematic structural diagram of an electronic device 100 according to an embodiment of the application;
fig. 12 is a schematic software architecture of the electronic device 100 according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
As described above, when data is transmitted between devices through the P2P link, the P2P link is easily affected by WiFi networks around the devices, and channel interference occurs, thereby increasing data transmission delay.
Various methods have been proposed in the prior art to reduce the effects of channel interference. For example, in a screen-drop scenario, during a data transmission process of a source device and a target device through a P2P link, if the P2P link is interfered by one or more wireless networks around the source device or the target device, the source device may generally ensure a delay and a frame rate by reducing sharpness (i.e., a code rate). It is apparent that reducing sharpness necessarily reduces the user experience.
In order to solve the above technical problems, in the process of transmitting data by the first electronic device and the second electronic device through the P2P link, if the P2P link is detected to be affected, the first electronic device and the second electronic device may be connected to the same Access Point (AP), and the frequency band supported by the Access point is different from the frequency band supported by the P2P link. In this way, the first electronic device may transmit data to the second electronic device over the P2P link while forwarding data to the second electronic device over the connected access point. That is, the following is true. The first electronic device may send data to be transmitted to the second electronic device over both paths simultaneously. Through testing, the applicant finds that compared with the prior art, the average time delay can be reduced by 28%, and the frame rate can be improved by 10fps.
The method of data transmission provided by the application is explained and illustrated below with reference to the drawings in the specification. Fig. 1A-1B are schematic communication diagrams of a first electronic device and a second electronic device according to an embodiment of the present application.
The first electronic device and the second electronic device may include smart terminals such as a mobile phone, a tablet computer, and a wearable device.
Referring to fig. 1A, a first electronic device 102 accesses a first access point AP1106. Specifically, the first electronic device 102 and the first access point AP1106 may be connected via the second link 110. The second link may be a link in a second frequency band, that is, the first access point AP1106 may support the second frequency band.
Specifically, the first access point AP1106 may include a wireless router, a wireless gateway, a wireless bridge, or the like. Taking the first access point AP1106 as an example of a wireless router, the first access point AP1106 may implement access and forwarding of data of the first electronic device 102. In general, the wireless router may include a single frequency router, a dual frequency router, or a tri-frequency router. Wherein the single frequency router supports a communication band, such as 2.4g. The dual-band router supports two communication bands, such as 2.4g and 5g low frequencies. The three-frequency router supports three communication frequency bands of 2.4g,5g of low frequency and 5g of high frequency, and the corresponding communication frequencies are 2.4GHz,5GHz and 5.8GHz. It will be appreciated that, as communication technologies evolve, the communication frequency band supported by the wireless router may vary accordingly, and embodiments of the present application are not limited in this respect.
Illustratively, the second frequency band in the present application may include a 2.4G frequency band or a 5G frequency band. It is understood that the frequency range of the 2.4G band may be: 2400-2488 MHz. The frequency range of the 5G band may be: 4910-5835 MHz.
With continued reference to fig. 1A, a first link 108 may be established between the first electronic device 102 and the second electronic device 104, which may be a link 108 in a first frequency band. The first frequency band may include a 2.4G frequency band or a 5G frequency band. In one example, the first link 108 is a P2P link.
The first link 108 may be established in a variety of ways. In one example of the application, the first electronic device 102 and the second electronic device 104 may establish the first link 108 based on a WiFi P2P or the like protocol. It will be appreciated that the WiFi P2P protocol is still capable of implementing a point-to-point WiFi connection between devices such as smartphones and televisions in environments where there is no conventional WiFi network or WiFi access point. That is, in this example, the establishment of the first link 108 is not based on the first electronic device 102 and the second electronic device 104 being connected to an access point. It is to be appreciated that the first link 108 supporting the first frequency band may also be established based on other P2P protocols, which is not limiting to the present application.
Further, the first link 108 may be used to transmit a variety of data. For example, the first link 108 may be used to transmit the screen-casting data during the screen-casting of the first electronic device 100 and the second electronic device 104. However, as shown above, in the near field communication application scenario such as screen projection, the communication frequency band used by other wireless local area networks or cellular networks is the same as or adjacent to the first frequency band, and interference is easily generated to the first link 108, such as co-channel interference or off-channel interference, which results in an increase in data transmission delay.
In one embodiment of the application, the first electronic device 102 may acquire and compare the first frequency band and the second frequency band. If the first frequency band and the second frequency band are different, the first electronic device 102 may send a connection indication to the second electronic device 104 to instruct the second electronic device 104 to access the first access point AP1106.
Specifically, the first electronic device 102 may acquire, based on the network card related information thereof, a first frequency band supported by the first link 108 (i.e., a frequency band supported by the first access point) and a second frequency band supported by the second link 110.
Further, after the second electronic device 104 receives the connection instruction, the second electronic device 104 may access the first access point AP1106 based on the feature information of the first access point AP1106.
Note that the characteristic information of the AP1106 of the first access point may include a service set identifier (Service Set Identifier, SSID) and a physical (Media Access Control, MAC) address of the AP1106, and the like.
In one example of the present application, the first electronic device 102 may send the SSID, MAC, etc. of the first access point AP1106 to the second electronic device 104 at regular time, so that the second electronic device 104 accesses the first access point based on the characteristic information of the first access point after receiving the connection indication.
In an example of the present application, the connection instruction may include information such as an SSID or an MAC of the AP1106 of the first access point, so that the second electronic device 104 accesses the first access point based on the characteristic information of the first access point after receiving the connection instruction.
In another embodiment of the present application, the first electronic device 102 may measure the quality of service (Quality of Service, QOS) of the first link 108, and if the QOS of the first link 108 meets the preset condition, the first electronic device 102 may acquire and compare the first frequency band and the second frequency band. If the first frequency band is different from the second frequency band, the first electronic device 102 sends a connection indication to the second electronic device 104. In this embodiment, QOS of the first link may include packet loss rate, transmission bandwidth, transmission delay, and the like. Further, when one or more of the packet loss rate, the transmission bandwidth, the transmission delay, and the like is greater than a preset threshold, it is determined that QOS of the first link satisfies the preset condition. It can be understood that, in the present application, the QOS of the first link satisfying the preset condition indicates that the QOS of the first link is poor, and that channel interference is likely to occur.
Referring to fig. 1B, after the second electronic device 104 accesses the first access point AP1106, the first access point AP1106 and the second electronic device 104 may be connected through a third link 112, and the third link 112 may be a link in the second frequency band.
In another embodiment of the present application, if the first frequency band is different from the second frequency band, the first electronic device 102 may directly send the characteristic information of the first access point AP1106 to the second electronic device 104, and the second electronic device 104 decides whether to access the first access point. Specifically, after receiving the feature information of the first access point AP1106, the second electronic device 104 may measure the signal strength of the first access point AP1106, and if the signal strength meets the preset requirement, the second electronic device 104 may access the first access point AP1106.
Further, the characteristic information may further include a connection key of the first access point AP1106, so as to facilitate the second electronic device 104 accessing the first access point AP1106.
After the first electronic device and the second electronic device access the same access point, the first electronic device 102 may redundantly transmit data to the second electronic device 104 via two paths. That is, the first electronic device 102 may send the first data to the second electronic device 104 over the first link 108, the first electronic device 102 forwards the second data to the second electronic device 104 over an access point that is simultaneously accessed by the second electronic device, and the first data and the second data are the same. That is, the same frame of data is transmitted simultaneously on two paths. Therefore, the second electronic equipment performs sequencing and de-duplication processing on the received data, so that the data transmission efficiency can be greatly improved, and the time delay is reduced.
In the present application, there are a plurality of networking modes for the first electronic device 102, the second electronic device 104, and the first access point AP 1. The networking mode in the embodiment of the present application is described below with reference to fig. 2A-2B.
Referring to fig. 2A, the first electronic device 102 is connected to the second electronic device 104 through the first link 108, the first electronic device 102 accesses the first access point AP1106, and the first electronic device 102 is connected to the first access point AP1106 through the second link 110.
Referring to fig. 2A, the first frequency band may be a 2.4G frequency band, and the second frequency band is a 5G frequency band, that is, the first access point AP1 may support the 5G frequency band.
Referring to fig. 2B, after the second electronic device 104 accesses the first access point 106, the second electronic device 104 is connected to the first access point AP1106 through a third link 112, where the third link 112 is a link in the second frequency band.
Referring to fig. 3A-3B, an exemplary diagram of networking according to one embodiment of the present application is shown.
Referring to fig. 3A, the first electronic device 102 is connected to the second electronic device 104 through the first link 108, the first electronic device 102 accesses the first access point AP1106, and the first electronic device 102 is connected to the first access point AP1106 through the second link 110.
Referring to fig. 3A, the first frequency band may be a 5G frequency band, and the second frequency band is a 2.4G frequency band, that is, the first access point AP1 may support the 2.4G frequency band.
Referring to fig. 3B, after the second electronic device 104 accesses the first access point AP1106, the second electronic device 104 is connected to the first access point AP1106 through a third link 112, where the third link 112 is a link in the second frequency band.
It can be seen that, in the networking shown in fig. 3A and fig. 3B, two data transmission paths exist between the first electronic device and the second electronic device, and compared with the single-path P2P transmission in the prior art, the data transmission efficiency can be further improved.
The interaction flow between the first electronic device and the second electronic device in one embodiment of the present application is explained and illustrated with reference to fig. 4.
In step 502, a first electronic device accesses a first access point.
In step 504, a first link in a first frequency band is established between the first electronic device and the second electronic device.
In step 506, the first electronic device sends the characteristic information of the first access point to the second electronic device, where the characteristic information may include information such as SSID, MAC, etc. of the first access point.
Step 508, the first electronic device detects the service quality of the first link, if the service quality is poor, further determines whether the first frequency band is consistent with the second frequency band, and if not, sends a first indication to the second electronic device. In particular, the first indication may be used to instruct the second electronic device to access the first access point.
Specifically, whether the quality of service of the first link satisfies the preset condition may be determined based on QOS related information. If the packet loss rate is greater than the preset threshold, it may be determined that the service quality of the first link is poor, and the above-mentioned two-way transmission is required.
Step 510, the second electronic device accesses the first access point, and establishes a third link in the second frequency band with the first access point.
In one example of the present application, after receiving the first indication, the second electronic device may measure whether the signal strength of the first access point is greater than a preset threshold, and if so, access the first access point. Specifically, the second electronic device may measure a signal strength value of the first access point based on the received characteristic information of the first access point. The signal strength value is used to characterize the channel quality and may be a received channel strength indication (received signal strength indication, RSSI). For example, the RSSI measured by the second electronic device.
In another example of the present application, after the second electronic device accesses the first access point, a message confirming access to the first access point may be sent to the first electronic device.
In step 512, the first electronic device sends the first data to the second electronic device through the first link, and the first electronic device forwards the second data to the second electronic device through the first access point, where the first data and the second data are the same data.
It should be noted that, the interaction flow in the first electronic device and the second electronic device in fig. 4 is only exemplary, and is not limited to the interaction flow shown in fig. 4. For example, the steps of steps 502 and 504 may be interchanged. For another example, steps 506 and 508 are combined, that is, the first electronic device detects the service quality of the first link, determines, based on the detection result, whether the first frequency band is consistent with the second frequency band, and if not, sends a first indication to the second electronic device, where the first indication further includes the characteristic information of the first access point.
In summary, the first electronic device and the second electronic device perform redundant transmission on data through two paths, so that data transmission efficiency is improved.
Referring now to fig. 5A-5B, a schematic diagram of communication between a first electronic device 102 and a second electronic device 104 is provided in another embodiment of the present application.
Referring to fig. 5A, the first electronic device 102 accesses the first access point AP1106, the first electronic device 102 may forward or receive data through the first access point AP1106, and in particular, the first electronic device 102 and the first access point AP1106 may be connected through the second link 110. The second link may be a link in a second frequency band, that is, the first access point AP1106 may support the second frequency band.
Further, the second electronic device 104 accesses to the second access point AP2114, and the second electronic device 104 may forward or receive data through the second access point AP2114, where the second electronic device 104 may transmit data with the second access point AP2114 through the fourth link 116 under the third frequency band, that is, the second access point AP2114 may support the third frequency band. The third frequency band in the present application may include a 2.4G frequency band or a 5G frequency band, etc.
With continued reference to fig. 5A, the first electronic device 102 and the second electronic device 104 are connected by a first link 108 in a first frequency band, the first link 108 comprising a P2P link.
In one embodiment of the application, the first electronic device 102 and the second electronic device 104 may exchange characteristic information of the connected access points. For example, the first electronic device 102 may send the characteristic information of the first access point AP1 to the second electronic device 104 at each interval for a preset period of time. The second electronic device 104 may also send the characteristic information of the second access point AP2114 to the first electronic device 102 at each interval for a preset period of time. The characteristic information may include SSID, MAC, operating band, etc. of the access point.
In one embodiment of the present application, the first electronic device 102 may measure the QOS of the P2P link, when detecting that the QOS of the P2P link meets the preset condition, the first electronic device 102 may compare the characteristic information of the first AP1106 and the second AP2112, and if the characteristic information (such as SSID and MAC) of the first AP1106 and the second AP1114 are inconsistent, it may be determined that the first AP1106 and the second AP1114 are not identical access points. That is, the first electronic device determines whether to perform the two-way transmission by measuring QOS of the first link of the link.
Further, after determining that the first access point and the second access point are not the same access point, the first electronic device 102 may acquire the first frequency band and the second frequency band, and acquire the third frequency band from the second electronic device 104, and compare the first frequency band with the second frequency band and the third frequency band, respectively.
In one embodiment, if the first frequency band is different from the second frequency band, the first electronic device 102 may send a connection indication to the second electronic device 104, where the connection indication is used to instruct the second electronic device 104 to disconnect from the second access point AP2114 and access the first access point AP1106, so that the second electronic device 104 is connected to the first access point AP1106 through the third link 112. In this way, the first electronic device may forward data to the second electronic device 104 through the first access point AP1106. In one example of the present application, the second electronic device 104 may disconnect directly from the second access point and access the first access point after receiving the connection indication. In another example of the present application, after receiving the connection instruction, the second electronic device 104 may measure the signal strength of the first access point AP1106, and based on the signal strength measurement result, decide whether to disconnect from the second access point AP2114 and access the first access point AP1106.
In another embodiment of the present application, if the first frequency band is different from the third frequency band, the first electronic device 102 may disconnect from the first access point AP1106 and directly access the second access point AP1106, so that the first electronic device 102 may forward data to the second electronic device directly through the second access point AP 2114.
In another example of the present application, if the first frequency band is different from the second frequency band and the third frequency band, the first electronic device 102 may measure and obtain the first signal strength of the first access point AP1106 and the second signal strength of the second access point AP2114, and obtain the third signal strength of the second electronic device 102 under the second access point AP2114 and the fourth signal strength of the second electronic device 104 under the second access point AP2114 from the second electronic device 104, respectively. The first electronic device 102 compares the first signal strength with the third signal strength and the second signal strength with the fourth signal strength, and based on the comparison result, determines whether to access the second access point AP2114 or send a connection indication to the second electronic device 104. For example, if the first signal strength is greater than the third signal strength and the second signal strength is greater than the fourth signal strength, the first electronic device 102 may send a connection indication to the second electronic device 104. If the first signal strength is less than the third signal strength and the second signal strength is less than the fourth signal strength, the first electronic device 102 may switch from the first access point to the second access point.
As shown in fig. 5B, the second electronic device 104 is disconnected from the second access point AP2114 and has access to the first access point AP1106, and the first access point AP1106 and the second electronic device 104 may be connected via the third link 112. It can be seen that there are two paths between the first electronic device and the second electronic device for data interaction. I.e. the first electronic device may send data to the second electronic device via the first link, or may forward data to the second electronic device 104 via the first access point AP 1106.
In another embodiment of the present application, before the second electronic device 104 disconnects from the second access point AP2114, the wifi outbound interface route thereof may be changed to the first link 108 (P2P link), and the wifi IP/listening port may be sent to the first electronic device 102 to proxy surfing through the first electronic device 102. In this way, when the second electronic device is in the core network for data interaction, the second access point AP2114 is disconnected, so that the second electronic device is prevented from being disconnected, and the user experience is prevented from being affected.
In the present application, since the first frequency band, the second frequency band, and the third frequency band may all include multiple frequency bands, in the present application, there are multiple networking modes for the first electronic device 102, the second electronic device 104, and the first access point AP1 and the second access point AP 2.
Referring now to FIGS. 6A-6B, 7A-7B, 8A-8B, and 9A and 9B, respectively, an exemplary networking scheme in accordance with embodiments of the present application will now be described.
Referring to fig. 6A, the first electronic device 102 is connected to the second electronic device 104 through the first link 108, the first electronic device 102 accesses the first access point AP1106, and the first electronic device 102 is connected to the first access point AP1106 through the second link 110. The second electronic device 104 accesses the second access point AP2114, and the second electronic device 104 is connected to the second access point AP2114 through the fourth link 116.
The first frequency band supported by the first link 108 is a 5G frequency band, the second frequency band supported by the second link 110 is a 2.4G frequency band, and the third frequency band supported by the fourth link 116 is a 5G frequency band.
Referring to fig. 6B, after the second electronic device 104 accesses the first access point 106, the second electronic device 104 is connected to the first access point AP1106 through a third link 112, where the third link 112 is a link in the second frequency band.
Referring to fig. 7A, the first electronic device 102 is connected to the second electronic device 104 through the first link 108, the first electronic device 102 accesses the first access point AP1106, and the first electronic device 102 is connected to the first access point AP1106 through the second link 110. The second electronic device 104 accesses the second access point AP2114, and the second electronic device 104 is connected to the second access point AP2114 through the fourth link 116.
The first frequency band supported by the first link 108 is a 5G frequency band, the second frequency band supported by the second link 110 is a 2.4G frequency band, and the third frequency band supported by the fourth link 116 is a 2.4G frequency band.
Referring to fig. 7B, after the second electronic device 104 accesses the first access point 106, the second electronic device 104 is connected to the first access point AP1106 through a third link 112, where the third link 112 is a link supporting the second frequency band.
In this example, the first electronic device 102 and the second electronic device 104 may access the second access point AP2114 simultaneously.
Referring to fig. 8A, the first electronic device 102 is connected to the second electronic device 104 through the first link 108, the first electronic device 102 accesses the first access point AP1106, and the first electronic device 102 is connected to the first access point AP1106 through the second link 110. The second electronic device 104 accesses the second access point AP2114, and the second electronic device 104 is connected to the second access point AP2114 through the fourth link 116.
The first frequency band supported by the first link 108 is a 2.4G frequency band, the second frequency band supported by the second link 110 is a 5G frequency band, and the third frequency band supported by the fourth link 116 is a 5G frequency band.
Referring to fig. 8B, after the second electronic device 104 accesses the first access point 106, the second electronic device 104 is connected to the first access point AP1106 through a third link 112, where the third link 112 is a link supporting the second frequency band.
In this example, the first electronic device 102 and the second electronic device 104 may access the second access point AP2114 simultaneously.
Referring to fig. 9A, the first electronic device 102 is connected to the second electronic device 104 through the first link 108, the first electronic device 102 accesses the first access point AP1106, and the first electronic device 102 is connected to the first access point AP1106 through the second link 110. The second electronic device 104 accesses the second access point AP2114, and the second electronic device 104 is connected to the second access point AP2114 through the fourth link 116.
The first frequency band supported by the first link 108 is a 2.4G frequency band, the second frequency band supported by the second link 110 is a 5G frequency band, and the third frequency band supported by the fourth link 116 is a 2.4G frequency band.
Referring to fig. 9B, after the second electronic device 104 accesses the first access point 106, the second electronic device 104 is connected to the first access point AP1106 through a third link 112, where the third link 112 is a link supporting the second frequency band.
It can be seen that, in the networking shown in fig. 6A-6B, fig. 7A-7B, fig. 8A-8B, and fig. 9A-9B, two data transmission paths exist between the first electronic device and the second electronic device, and compared with the single-path P2P transmission in the prior art, the data transmission efficiency can be further improved.
The interaction flow between the first electronic device and the second electronic device in one embodiment of the present application is explained and illustrated with reference to fig. 10.
In step 1100, a first link in a first frequency band is established between a first electronic device and a second electronic device.
In step 1102, the first electronic device accesses to a first access point, where the first electronic device is connected to the first access point through a second link in a second frequency band, and the first access point can support the second frequency band.
In step 1104, the second electronic device accesses the second access point, where the second access point may support the third frequency band, and the second electronic device is connected to the second access point through a fourth link in the third frequency band.
In step 1106, the first electronic device sends the characteristic information of the first access point to the second electronic device, where the characteristic information may include information such as SSID, MAC, etc. of the first access point.
In step 1108, the second electronic device sends the characteristic information of the second access point to the second electronic device, where the characteristic information may include information such as SSID, MAC, etc. of the second access point.
At step 1110, the first electronic device detects QOS for the first link. Specifically, QOS may specifically include a packet loss rate, a transmission delay, a transmission bandwidth, and the like in a data transmission process of the first link.
In step 1112, the first electronic device 102 determines whether the characteristic information of the first access point and the characteristic information of the second access point are consistent based on the measurement result.
The step is used for judging whether the first access point and the second access point belong to the same access point. It is appreciated that based on the SSID, MAC, etc. information of the first access point AP1106 and the second access point, it may be determined whether the first access point and the second access point belong to the same access point.
In an example of the present application, the SSID, MAC, etc. information of the first access point and the second access point are consistent, that is, the first access point and the second access point belong to the same access point, the first electronic device may send the first data to the second electronic device through the first link, and the first electronic device forwards the first data to the second electronic device through the first access point (step 1122), thereby improving the data transmission efficiency.
In step 1114, the first electronic device determines whether the first frequency band is the same as the second frequency band and/or the third frequency band.
In one embodiment of the present application, if the first access point and the second access point do not belong to the same access point, the first electronic device determines whether the first frequency band supported by the first link is the same as the second frequency band supported by the second link and/or the third frequency band supported by the fourth link.
In one example of the present application, if the first frequency band and the third frequency band are different, the first electronic device may be disconnected directly from the first access point, connected to the second access point, and forward data to the second electronic device through the second access point (step 1124). Further, if the first frequency band is different from the third frequency band, the first electronic device may further measure the signal strength of the second access point, and if the signal strength of the second access point is greater than a preset threshold, the first electronic device may disconnect from the first access point and access to the second access point. The first electronic device may send the first data to the second electronic device through the first link, and the first electronic device forwards the first data to the second electronic device through the second access point (step 1126), thereby improving data transmission efficiency.
In step 1116, if the first frequency band is different from the second frequency band, the first electronic device sends a connection indication to the second electronic device.
In one example of the present application, if the first frequency band and the second frequency band are different, the first electronic device sends a connection instruction to the second electronic device, and the second electronic device may disconnect from the second access point directly after receiving the connection instruction, and then access the first access point (step 1116), so that the first electronic device forwards the first data to the second electronic device through the first access point.
In another example of the present application, if the first frequency band is different from the second frequency band, the first electronic device sends a connection instruction to the second electronic device, the second electronic device may measure the signal strength of the first access point after receiving the connection instruction, and if the signal strength of the first access point is greater than a preset threshold, the second electronic device disconnects from the second access point and then accesses the first access point, so that the first electronic device forwards the first data to the second electronic device through the first access point. Further, before the second electronic device disconnects from the second access point, the wifi output interface route of the second electronic device may be changed to the first link 108 (P2P link), and the wifi IP/listening port may be sent to the first electronic device 102, so as to proxy surfing through the first electronic device 102. In this way, when the second electronic device is in the core network for data interaction, the second access point AP2114 is disconnected, so that the second electronic device is prevented from being disconnected, and the user experience is prevented from being affected. The applicant finds through tests that the average time delay can be reduced by 28% compared with the prior art by adopting the scheme of the application, and the frame rate is improved by 10fps.
Fig. 11 shows a schematic structural diagram of an electronic device 100, and the electronic device 100 may implement the method disclosed in the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 12 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 12, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 12, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
The functional units in the embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A method of data transmission for a first electronic device, the method comprising:
a first link is established between the first electronic equipment and the second electronic equipment, wherein the first electronic equipment is accessed to a first access point, the second electronic equipment is accessed to a second access point, and the first link is a link under a first frequency band;
judging whether the first access point and the second access point are the same access point or not, and if the first access point and the second access point are different access points, acquiring a second frequency band supported by the first access point and the third frequency band supported by the second access point;
comparing the first frequency band with the second frequency band and a third frequency band;
based on a comparison result, sending a first instruction to the second electronic device, wherein the first instruction is used for instructing the second electronic device to be switched from the second access point to the first access point; transmitting first data to the second electronic device through the first link and transmitting second data to the first access point, so that the first access point forwards the second data to the second electronic device;
Or alternatively, the process may be performed,
based on the comparison, switching by the first access point to the second access point, transmitting first data to the second electronic device over the first link, and transmitting the data to the second access point such that the second access point forwards the second data to the second electronic device;
the first data and the second data are the same data.
2. The method of claim 1, wherein the determining whether the first access point and the second access point are the same access point comprises:
measuring the service quality of the first link, and if the service quality of the first link meets a preset condition, acquiring the characteristic information of the first access point and the characteristic information of the second access point;
and comparing the characteristic information of the first access point with the characteristic information of the second access point, and if the characteristic information of the first access point is inconsistent with the characteristic information of the second access point, the first access point and the second access point are different access points.
3. The method of claim 2, wherein the characteristic information of the first access point comprises at least one of an SSID, a MAC of the first access point.
4. A method according to any of claims 1-3, wherein the sending a first indication to the second electronic device based on the comparison result comprises:
if the first frequency band is inconsistent with the second frequency band, a first indication is sent to the second electronic equipment; and if the first frequency band is inconsistent with the third frequency band, switching from the first access point to the second access point.
5. A method according to any of claims 1-3, wherein the sending a first indication to the second electronic device based on the comparison result comprises:
if the first frequency band is inconsistent with the second frequency band and the third frequency band, measuring and acquiring first signal intensity information of the first access point and second signal intensity information of the second access point;
acquiring third signal strength information of a first access point and fourth signal strength information of the second access point from the second electronic device, wherein the third signal strength information and the fourth signal strength information are associated with the second electronic device;
and sending a first indication to the second electronic equipment based on the first signal strength information to the fourth signal strength information.
6. A method according to any of claims 1-3, characterized by switching from the first access point to the second access point based on the comparison result, comprising:
and if the first frequency band is inconsistent with the third frequency band, switching from the first access point to the second access point.
7. A method according to any of claims 1-3, wherein switching from the first access point to the second access point based on the comparison result comprises:
if the first frequency band is inconsistent with the third frequency band and the second frequency band, measuring and acquiring the fifth signal intensity of the first access point and the sixth signal intensity of the second access point;
acquiring a seventh signal strength of a first access point and an eighth signal strength of the second access point from the second electronic device, the seventh signal strength and the eighth signal strength being corresponding by the second electronic device;
and switching from the first access point to the second access point based on the fifth signal strength information to the eighth signal strength information.
8. The method as recited in claim 1, further comprising:
and sending the characteristic information of the first access point to the second electronic equipment, wherein the characteristic information of the first access point is used for the second electronic equipment to access the first access point.
9. The method of claim 1, wherein the first indication includes characteristic information of the first access point, the characteristic information of the first access point being used by the second electronic device to access the first access point.
10. A method of data transmission for a first electronic device, the method comprising:
establishing a first link between the first electronic equipment and the second electronic equipment, wherein the first link is a link under a first frequency band;
accessing a first access point, wherein the first access point supports a second frequency band;
comparing the first frequency band with the second frequency band, and if the first frequency band is inconsistent with the second frequency band, sending a first indication to the second electronic device, wherein the first indication is used for indicating the second electronic device to access the first access point;
transmitting first data to the second electronic device through the first link and transmitting the second data to the first access point, so that the first access point forwards the second data to the second electronic device;
the first data and the second data are the same data.
11. An electronic device comprising a processor and a storage device, the storage device storing program instructions that, when executed by the processor, cause the electronic device to perform the method of data transmission of any one of claims 1-9.
12. An electronic device comprising a processor and a storage device, the storage device storing program instructions that, when executed by the processor, cause the electronic device to perform the method of data transmission of claim 10.
13. A computer readable storage medium comprising computer instructions which, when run on the electronic device, cause the electronic device to perform the method of data transmission of any of claims 1-9.
14. A computer readable storage medium comprising computer instructions which, when run on the electronic device, cause the electronic device to perform the method of data transmission of claim 10.
CN202210370011.3A 2022-04-08 2022-04-08 Data transmission method, electronic equipment and storage medium Pending CN116938950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210370011.3A CN116938950A (en) 2022-04-08 2022-04-08 Data transmission method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210370011.3A CN116938950A (en) 2022-04-08 2022-04-08 Data transmission method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116938950A true CN116938950A (en) 2023-10-24

Family

ID=88385209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210370011.3A Pending CN116938950A (en) 2022-04-08 2022-04-08 Data transmission method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116938950A (en)

Similar Documents

Publication Publication Date Title
EP4319169A1 (en) Screen projection method for electronic device, and electronic device
US11483359B2 (en) Voice call method, electronic device, and system
CN114449599B (en) Network link switching method based on electronic equipment position and electronic equipment
CN114079893B (en) Bluetooth communication method, terminal device and computer readable storage medium
CN115696483B (en) Network link switching method based on electronic equipment state and electronic equipment
US11665274B2 (en) Call method and apparatus
CN113448382B (en) Multi-screen display electronic device and multi-screen display method of electronic device
CN112806092B (en) Microphone MIC switching method and device
US20230125956A1 (en) Wireless Communication System and Method
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
WO2020134868A1 (en) Connection establishment method, and terminal apparatus
CN114338913B (en) Fault diagnosis method, electronic device and readable storage medium
CN113490291A (en) Data downloading method and device and terminal equipment
CN113126948B (en) Audio playing method and related equipment
US11792631B2 (en) Emergency call method and user terminal
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN116938950A (en) Data transmission method, electronic equipment and storage medium
CN116321265B (en) Network quality evaluation method, electronic device and storage medium
CN117062252B (en) Data transmission method and electronic equipment
CN115460445B (en) Screen projection method of electronic equipment and electronic equipment
CN116405594B (en) Voice communication method and device
US11973895B2 (en) Call method and apparatus
CN114520870B (en) Display method and terminal
CN111801931B (en) Method for switching on and hanging up telephone when call occurs SRVCC switch
WO2023280160A1 (en) Channel switching method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination