CN113691979B - Wireless data transmission method, electronic device, system and storage medium - Google Patents

Wireless data transmission method, electronic device, system and storage medium Download PDF

Info

Publication number
CN113691979B
CN113691979B CN202010421211.8A CN202010421211A CN113691979B CN 113691979 B CN113691979 B CN 113691979B CN 202010421211 A CN202010421211 A CN 202010421211A CN 113691979 B CN113691979 B CN 113691979B
Authority
CN
China
Prior art keywords
electronic device
data transmission
electronic
management server
electronic equipment
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.)
Active
Application number
CN202010421211.8A
Other languages
Chinese (zh)
Other versions
CN113691979A (en
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 CN202010421211.8A priority Critical patent/CN113691979B/en
Publication of CN113691979A publication Critical patent/CN113691979A/en
Application granted granted Critical
Publication of CN113691979B publication Critical patent/CN113691979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a wireless data transmission method, which is applied to first electronic equipment, wherein the first electronic equipment is wirelessly connected with second electronic equipment, and the first electronic equipment and the second electronic equipment are both in communication connection with an account management server, and the method comprises the following steps: after detecting that the first electronic equipment transmits a file to the second electronic equipment, the first electronic equipment transmits a request message to an account management server for acquiring the trust relationship between the first electronic equipment and the second electronic equipment; the first electronic equipment receives a response message from the account management server; if the response message reveals that the first electronic equipment and the second electronic equipment trust each other, the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; the first electronic equipment automatically selects a data transmission mode with the highest priority from the N available data transmission modes, and transmits a file to the second electronic equipment in the selected data transmission mode; n is a positive integer greater than or equal to 1. And the transmission mode is automatically selected according to the network state, so that the transmission efficiency is improved.

Description

Wireless data transmission method, electronic device, system and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a wireless data transmission method, an electronic device, a system, and a storage medium.
Background
The wireless data transmission modes include short-range point-to-point transmission (such as bluetooth, Wi-Fi direct, Near Field Communication (NFC), and the like), Wireless Local Area Network (WLAN), cellular network, and the like. When a file, such as a video file, can be transmitted through multiple wireless data transmission modes, the user is still required to manually set and select a specific wireless data transmission mode. This causes inconvenience to the user.
Disclosure of Invention
In order to provide more convenience for users, embodiments of the present application provide a method, device, and system for wireless data transmission to solve the above technical problems.
In a first aspect, a method for wireless data transmission is provided. The method is applied to first electronic equipment, the first electronic equipment is in wireless communication connection with second electronic equipment, and the first electronic equipment and the second electronic equipment are both in communication connection with an account management server, and the method comprises the following steps: after detecting that the first electronic device transmits a file to the second electronic device, the first electronic device sends a request message to an account management server, wherein the request message is used for acquiring the trust relationship between the first electronic device and the second electronic device; the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message; if the response message reveals that the first electronic equipment and the second electronic equipment are mutually trusted, the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; n is a positive integer greater than or equal to 1; the first electronic device automatically selects a data transmission mode with the highest priority from the N available data transmission modes, and transmits the file to the second electronic device in the data transmission mode with the highest priority. Therefore, under the condition of the first electronic equipment and the second electronic equipment, the first electronic equipment can automatically select the data transmission mode with the highest priority according to the current available data transmission mode and transmit the file in the data transmission mode with the highest priority, so that the transmission efficiency is improved, the whole process is reduced, even user operation is not needed, and the user experience is improved. The priority of different data transmission modes can be preset and flexibly adjusted.
According to a first aspect, the request message comprises a login account and device information of the first electronic device; the device information includes positioning information; the response message is also used for revealing the distance between the first electronic equipment and the second electronic equipment; the method comprises the steps that the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; the method comprises the following steps: the first electronic equipment determines M types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the distance; m is a positive integer greater than or equal to N; the first electronic device determines N available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M data transmission modes to be selected. Thus, a refinement of the determination by the first electronic device of the available data transmission means between the first and second electronic devices is provided.
According to the first aspect, or any implementation manner of the first aspect, the response message is further used to disclose M types of data transmission manners to be selected for wireless communication between the first electronic device and the second electronic device; m is a positive integer greater than or equal to N; the method comprises the steps that the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; the method comprises the following steps: the first electronic device determines N available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M data transmission modes to be selected. Thus, another refinement of the determination by the first electronic device of the available data transmission means between the first and second electronic devices is provided.
According to the first aspect or any one of the foregoing implementation manners of the first aspect, the first electronic device determines, from M types of data transmission manners to be selected, N types of available data transmission manners for wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: the first electronic device selects a data transmission mode to be selected from the M data transmission modes to be selected in sequence, sends a data transmission request to the second electronic device in the selected data transmission mode to be selected, and determines that the selected data transmission mode to be the available data transmission mode if the first electronic device receives a response message of the second electronic device within a preset time and/or within a preset sending frequency. Thus, a specific determination process is provided by the first electronic device for determining the available data transmission modes between the first and second electronic devices.
According to the first aspect or any one implementation manner of the first aspect, the first electronic device determines, according to the distance, M types of to-be-selected data transmission manners of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: and the first electronic equipment compares the distance with a preset first threshold value, and determines M types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to a comparison result. Thus, a refined determination scheme of the transmission mode of the data to be selected between the first electronic device and the second electronic device is provided.
According to the first aspect, or any implementation manner of the first aspect, the first electronic device selects a data transmission manner with the highest priority from N available data transmission manners, and transmits a file to the second electronic device in the data transmission manner with the highest priority; the method comprises the following steps: if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device selects another data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the second electronic device by using the latest selected data transmission mode. Therefore, in the file transmission process, the optimal data transmission mode can be dynamically adjusted and automatically completed according to the change of the current available transmission mode, so that the first electronic device always transmits data by using the current optimal data transmission mode without manual adjustment and selection of a user, and the user experience is guaranteed.
According to the first aspect, or any implementation manner of the first aspect, if the data transmission manner with the highest priority selected at the beginning is available, the first electronic device resumes selecting the data transmission manner with the highest priority selected at the beginning to transmit the file to the second electronic device. Therefore, the optimal data transmission mode is automatically and dynamically adjusted along with the change of the current available transmission mode in the file transmission process, the user does not need to manually adjust and select, and the transmission experience of the user is ensured.
According to a first aspect, or any implementation manner of the first aspect above, the data transmission manner includes short-range point-to-point transmission, WLAN transmission, and cellular network transmission; the priority of the close range point-to-point transmission is higher than that of the WLAN transmission, and the priority of the WLAN transmission is higher than that of the cellular network transmission; the close-range point-to-point transmission comprises at least one of the following: bluetooth, Wi-Fi direct, and near field communication. Thus, a specific data transmission mode is provided. The specific data transmission manner is only an illustrative example and is not used to limit the scope of the present application.
According to the first aspect, or any implementation manner of the first aspect, the priority is preset and adjustable; in the presetting of the priority, consideration factors include, but are not limited to, at least one of data transmission speed, cost, security, stability, and the like. Therefore, the priorities of different data transmission modes can be adjusted, so that the application is more flexible and the method is suitable for various different scenes.
In a second aspect, a method for wireless data transmission is provided. The method is applied to an account management server, the account management server is in communication connection with a first electronic device and a second electronic device, the first electronic device is in wireless communication connection with the second electronic device, the account management server stores accounts which trust each other, the account management server receives login accounts and device information of the first electronic device and the second electronic device, the device information comprises positioning information, and the method comprises the following steps: after receiving a request message from first electronic equipment, the account management server judges the trust relationship between the first electronic equipment and second electronic equipment; after the judgment result reveals that the first electronic device and the second electronic device trust each other, the account management server determines the distance between the first electronic device and the second electronic device according to the respective positioning information of the first electronic device and the second electronic device; the account management server sends a response message to the first electronic device, wherein the response message comprises a judgment result and the distance; or the account management server determines M types of to-be-selected data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment according to the distance; sending a response message to the first electronic device, wherein the response message comprises a judgment result and M types of data transmission modes to be selected; m is a positive integer greater than or equal to 1. Therefore, the account management server firstly judges whether the electronic devices are mutually trusted, and after judging that the electronic devices are mutually trusted, the account management server sends the data transmission modes to be selected to the first electronic device so as to screen the available data transmission modes from the first electronic device subsequently; or the distance between the first electronic device and the second electronic device is sent to the first electronic device, so that the first electronic device further acquires the available data transmission mode according to the distance.
According to the second aspect, after the judgment result reveals that the first electronic device and the second electronic device are not trusted with each other, the account management server sends a response message to the first electronic device, where the response message includes the judgment result. Therefore, after the two devices are not trusted with each other, the result is also fed back to the first electronic device, so that the first electronic device can obtain the judgment result. Further, the result may also be fed back to the second electronic device, so that the second electronic device learns the determination result.
According to the second aspect, or any implementation manner of the second aspect, the login account and the device information are updated instantly at a preset frequency. Specifically, the first electronic device and the second electronic device may periodically send respective login account and device information to an account management server at a certain frequency. Therefore, the account management server determines that the respective login accounts of the first electronic device and the second electronic device are the latest login accounts, and the situation that the determination result is wrong due to untimely updating is avoided.
According to a second aspect, or any implementation manner of the second aspect, the transmission manner of the data to be selected includes close-range point-to-point transmission, WLAN transmission, and cellular network transmission; the close-range point-to-point transmission comprises at least one of the following: bluetooth, Wi-Fi direct, and near field communication. Thus, a specific data transmission mode is provided. The specific data transmission manner is only an illustrative example and is not used to limit the scope of the present application.
According to the second aspect, or any implementation manner of the second aspect, if the respective login accounts of the first electronic device and the second electronic device are the same account or the same group of accounts among the mutually trusted accounts, the first electronic device and the second electronic device are mutually trusted. Therefore, a specific judgment mode for judging whether the first electronic equipment and the second electronic equipment trust each other is provided.
In a third aspect, a method for wireless data transmission is provided. The method is applied to a first electronic device, a second electronic device and an account management server, the first electronic device is in wireless communication connection with the second electronic device, the first electronic device and the second electronic device are both in communication connection with the account management server, the account management server stores accounts which are trusted with each other, the account management server receives login accounts and device information of the first electronic device and the second electronic device, the device information comprises positioning information, and the method comprises the following steps: after detecting that the first electronic device transmits a file to the second electronic device, the first electronic device sends a request message to an account management server, wherein the request message is used for acquiring the trust relationship between the first electronic device and the second electronic device; after receiving a request message from the first electronic device, the account management server judges whether the first electronic device and the second electronic device trust each other; after the judgment result reveals that the first electronic equipment and the second electronic equipment trust each other, the account management server determines the distance between the first electronic equipment and the second electronic equipment according to the respective positioning information of the first electronic equipment and the second electronic equipment; the account management server sends a response message to the first electronic device, wherein the response message comprises a judgment result and the distance; or the account management server determines M types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the distance; sending a response message to the first electronic device, wherein the response message comprises the judgment result and the M types of data transmission modes to be selected; m is a positive integer greater than or equal to 1; the first electronic equipment receives a response message from the account management server, and if the response message reveals that the first electronic equipment and the second electronic equipment are mutually trusted, the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment from M data transmission modes to be selected; n is a positive integer greater than or equal to 1 and less than or equal to M; the first electronic device automatically selects a data transmission mode with the highest priority from the N available data transmission modes, and transmits a file to the second electronic device in the data transmission mode with the highest priority. Therefore, from the overall perspective, the interaction and respective steps of the first electronic device and the account management server are fully described. The first electronic device can automatically select the data transmission mode with the highest priority according to the current available data transmission mode after acquiring that the first electronic device and the second electronic device trust each other, and transmit the file in the data transmission mode with the highest priority, so that the transmission efficiency is improved, the user operation is reduced in the whole process, and the user experience is improved. The priority of different data transmission modes can be preset and flexibly adjusted.
According to a third aspect, the first electronic device determines N available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M data transmission modes to be selected; the method comprises the following steps: and the first electronic equipment sequentially selects a data transmission mode to be selected from the M data transmission modes to be selected, sends a data transmission request to the second electronic equipment in the selected data transmission mode to be selected, and determines that the selected data transmission mode to be an available data transmission mode if the first electronic equipment receives a response message from the second electronic equipment within a preset time and/or within preset sending times. Thus, a refinement of the first electronic device in determining the available data transmission modes is provided.
According to the third aspect, or any implementation manner of the third aspect, the first electronic device determines, according to the distance, M types of candidate data transmission manners of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: and the first electronic equipment compares the distance with a preset first threshold value, and determines M types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the comparison result. Therefore, a refined determination scheme of the to-be-selected data transmission mode between the first electronic device and the second electronic device is provided.
According to the third aspect, or any implementation manner of the third aspect, the first electronic device automatically selects a data transmission manner with the highest priority from the N available data transmission manners, and transmits a file to the second electronic device in the data transmission manner with the highest priority; the method comprises the following steps: if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device selects another data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the second electronic device by using the latest selected data transmission mode. Therefore, during file transmission, the optimal data transmission mode can be dynamically adjusted according to the change of the current available transmission mode and automatically completed, so that the first electronic equipment always transmits data by using the current optimal data transmission mode without manually adjusting and selecting by a user, and the user experience is ensured.
According to the third aspect or any implementation manner of the third aspect, if the initially selected data transmission manner with the highest priority is available for recovery, the first electronic device resumes to select the initially selected data transmission manner with the highest priority to transmit the file to the second electronic device. Therefore, the optimal data transmission mode is automatically and dynamically adjusted along with the change of the current available transmission mode in the file transmission process, the user does not need to manually adjust and select, and the transmission experience of the user is ensured.
According to the third aspect, or any implementation manner of the third aspect, the login account and the device information are updated instantly at a preset frequency. Specifically, the first electronic device and the second electronic device may periodically send respective login account and device information to the account management server at a certain frequency. Therefore, the account management server determines that the respective login accounts of the first electronic device and the second electronic device are the latest login accounts, and the situation that the determination result is wrong due to untimely updating is avoided.
According to the third aspect, or any implementation manner of the third aspect above, the data transmission manner includes short-range point-to-point transmission, WLAN transmission, and cellular network transmission; the priority of the close range point-to-point transmission is higher than that of the WLAN transmission, and the priority of the WLAN transmission is higher than that of the cellular network transmission; the close-range point-to-point transmission comprises at least one of the following: bluetooth, Wi-Fi direct, and near field communication. Thus, a specific data transmission mode is provided. The specific data transmission manner is only an illustrative example and is not used to limit the scope of the present application.
According to the third aspect, or any implementation manner of the third aspect, if the respective login accounts of the first electronic device and the second electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the second electronic device are mutually trusted. Therefore, a specific judgment mode for judging whether the first electronic equipment and the second electronic equipment trust each other is provided.
In a fourth aspect, a method of wireless data transmission is provided. The method is applied to first electronic equipment, the first electronic equipment is in wireless communication connection with second electronic equipment and third electronic equipment, the second electronic equipment is in wireless communication connection with the third electronic equipment, the first electronic equipment, the second electronic equipment and the third electronic equipment are in communication connection with an account management server, and the second electronic equipment is located between the first electronic equipment and the third electronic equipment, and the method comprises the following steps: after detecting that the first electronic device transmits a file to the third electronic device, the first electronic device sends a request message to an account management server, wherein the request message is used for acquiring the trust relationship between any two of the first electronic device, the second electronic device and the third electronic device; the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message; if the response message reveals that any two of the first electronic device, the second electronic device and the third electronic device are mutually trusted, the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; n1 is a positive integer of 1 or more; the first electronic equipment receives a sharing message from the second electronic equipment, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic equipment and the third electronic equipment, which are determined by the second electronic equipment; n2 is a positive integer of 1 or more; the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more; the first electronic device automatically selects a data transmission mode with the highest priority from the N1, N2 and N3 available data transmission modes, and transmits the file to the third electronic device in the data transmission mode with the highest priority. Therefore, under the conditions of the first electronic device, the second electronic device and the third electronic device, the first electronic device can automatically select the data transmission mode with the highest priority according to the currently available data transmission mode and transmit the file in the data transmission mode with the highest priority, so that the transmission efficiency is improved, the whole process is reduced, even user operation is not needed, and the user experience is improved. The priority of different data transmission modes can be preset and flexibly adjusted. The second electronic device is located between the first electronic device and the third electronic device, and the first electronic device, the second electronic device and the third electronic device are not required to be in a straight line.
According to a fourth aspect, the method further comprises: if the response information reveals that the first electronic device and the third electronic device are mutually trusted and the first electronic device and the second electronic device are not mutually trusted or the second electronic device and the third electronic device are not mutually trusted, the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more; the first electronic device automatically selects a data transmission mode with the highest priority from the N3 available data transmission modes, and transmits the file to the third electronic device in the data transmission mode with the highest priority. Thus, a specific scheme is provided that in the first electronic device, the second electronic device and the third electronic device, the first electronic device can automatically select the data transmission mode with the highest priority according to the currently available data transmission mode and transmit the file in the data transmission mode with the highest priority only under the condition that the first electronic device and the third electronic device trust each other; moreover, the transmission efficiency is improved, the whole process is reduced, even user operation is not needed, and the user experience is improved.
According to a fourth aspect, or any implementation manner of the fourth aspect, the response information is further used for revealing a distance between the first electronic device and the second electronic device; the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: the method comprises the steps that according to the distance between first electronic equipment and second electronic equipment, the first electronic equipment determines M1 types of data transmission modes to be selected of wireless communication between the first electronic equipment and the second electronic equipment; wherein M1 is a positive integer greater than or equal to N1; the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M1 candidate data transmission modes; or the response information is further used for revealing the distance between the first electronic equipment and the third electronic equipment; the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; the method comprises the following steps: the first electronic device determines M3 types of data transmission modes to be selected for wireless communication between the first electronic device and the third electronic device according to the distance between the first electronic device and the third electronic device; wherein M3 is a positive integer greater than or equal to N3; and the first electronic equipment determines N3 available data transmission modes of wireless communication between the first electronic equipment and the third electronic equipment from the M3 candidate data transmission modes. In this way, a specific refinement of the determination of the available data transmission modes between the first electronic device and the second electronic device, and between the first electronic device and the third electronic device, in the case of the first, second and third electronic devices, is provided by the first electronic device.
According to the fourth aspect, or any implementation manner of the fourth aspect above, the first electronic device determines, according to a distance between the first electronic device and the second electronic device, M1 candidate data transmission manners of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: and the first electronic equipment compares the distance with a preset first threshold, and determines M1 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the comparison result. Therefore, a refinement scheme for determining the to-be-selected data transmission mode between the first electronic device and the second electronic device by the first electronic device is provided.
According to a fourth aspect, or any implementation manner of the fourth aspect above, the first electronic device determines, according to a distance between the first electronic device and a third electronic device, M3 candidate data transmission manners of wireless communication between the first electronic device and the third electronic device; the method comprises the following steps: and the first electronic equipment compares the distance with a preset first threshold, and determines M3 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the third electronic equipment according to the comparison result. Therefore, a refinement scheme for determining the to-be-selected data transmission mode between the first electronic device and the third electronic device by the first electronic device is provided.
According to the fourth aspect, or any implementation manner of the fourth aspect above, the first electronic device automatically selects a data transmission manner with the highest priority from the N1 available data transmission manners, the N2 available data transmission manners, and the N3 available data transmission manners, and transmits the file to the third electronic device in the data transmission manner with the highest priority; the method comprises the following steps: if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device automatically reselects a data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the third electronic device in the latest selected data transmission mode. Therefore, in the file transmission process, the optimal data transmission mode can be dynamically adjusted according to the change of the current available transmission mode, and the data transmission is automatically completed, so that the first electronic device always transmits data by using the current optimal data transmission mode without manual adjustment and selection of a user, and the user experience is ensured.
According to a fourth aspect, or any implementation manner of the fourth aspect, if the data transmission manner with the highest priority selected at the beginning is available, the first electronic device automatically resumes selecting the data transmission manner with the highest priority selected at the beginning to transmit the file to the third electronic device. Therefore, the optimal data transmission mode is automatically and dynamically adjusted along with the change of the current available transmission mode in the file transmission process, the user does not need to manually adjust and select, and the transmission experience of the user is ensured.
According to a fourth aspect or any one of the previous implementation manners of the fourth aspect, the data transmission manner includes close-range point-to-point transmission, WLAN transmission, and cellular network transmission; the priority of the close range point-to-point transmission is higher than that of the WLAN transmission, and the priority of the WLAN transmission is higher than that of the cellular network transmission; the close-range point-to-point transmission comprises at least one of the following: bluetooth, Wi-Fi direct, and near field communication. Thus, a specific data transmission mode is provided. The specific data transmission manner is only an illustrative example and is not used to limit the scope of the present application.
According to the fourth aspect, or any implementation manner of the fourth aspect, if the respective login accounts of the first electronic device, the second electronic device, and the third electronic device are the same account or the same group of accounts among the mutually trusted accounts, the first electronic device, the second electronic device, and the third electronic device are mutually trusted; if the respective login accounts of the first electronic device and the third electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the third electronic device are mutually trusted. Therefore, the specific judgment mode of whether the first electronic equipment, the second electronic equipment and the third electronic equipment trust each other is more definite.
In a fifth aspect, a method for wireless data transmission is provided. The method is applied to an account management server, the account management server is in communication connection with first electronic equipment, second electronic equipment and third electronic equipment, the first electronic equipment, the second electronic equipment and the third electronic equipment are in wireless communication connection with each other, accounts which trust each other are stored in the account management server, the account management server receives login accounts and equipment information of the first electronic equipment, the second electronic equipment and the third electronic equipment, the equipment information comprises positioning information, and the second electronic equipment is located between the first electronic equipment and the third electronic equipment, and the method comprises the following steps: after receiving a request message from a first electronic device, an account management server judges the trust relationship between any two of the first electronic device, a second electronic device and a third electronic device, wherein the request message is used for acquiring the trust relationship between any two of the first electronic device, the second electronic device and the third electronic device; after the judgment result reveals that any two of the first electronic device, the second electronic device and the third electronic device trust each other, the account management server determines the distance between any two of the first electronic device, the second electronic device and the third electronic device according to the respective positioning information of the first electronic device, the second electronic device and the third electronic device; the account management server sends a response message to the first electronic device, wherein the response message comprises a judgment result, a distance between the first electronic device and the second electronic device, and a distance between the first electronic device and the third electronic device; the account management server also sends a notification message to the second electronic device, wherein the notification message comprises the judgment result and the distance between the second electronic device and the third electronic device; or, according to the distance between any two of the first electronic device, the second electronic device, and the third electronic device, the account management server determines M1 candidate data transmission modes of wireless communication between the first electronic device and the second electronic device, M2 candidate data transmission modes of wireless communication between the second electronic device and the third electronic device, and M3 candidate data transmission modes of wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises the judgment result, M1 types of data transmission modes to be selected and M3 types of data transmission modes to be selected; sending a notification message to the second electronic device, wherein the notification message comprises the judgment result and M2 types of data transmission modes to be selected; wherein M1, M2 and M3 are positive integers of 1 or more. Therefore, the account management server firstly judges whether the first electronic equipment, the second electronic equipment and the third electronic equipment trust each other, and after judging that the first electronic equipment trusts each other, the account management server sends a data transmission mode to be selected to the first electronic equipment so as to screen an available data transmission mode from the first electronic equipment; or the distance between any two of the first electronic device, the second electronic device and the third electronic device is sent to the first electronic device, so that the first electronic device can further acquire the available data transmission modes. The second electronic device is located between the first electronic device and the third electronic device, and the first electronic device, the second electronic device and the third electronic device are not required to be in a straight line.
According to a fifth aspect, the method further comprises: after the judgment result reveals that the first electronic device and the third electronic device are mutually trusted and the first electronic device and the second electronic device are not mutually trusted, or the second electronic device and the third electronic device are not mutually trusted, the account management server determines the distance between the first electronic device and the third electronic device according to the respective positioning information of the first electronic device and the third electronic device; the account management server sends a response message to the first electronic device, wherein the response message comprises the judgment result and the distance between the first electronic device and the third electronic device; or, according to the distance between the first electronic device and the third electronic device, the account management server determines M3 types of data transmission modes to be selected for wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises a judgment result and M3 types of data transmission modes to be selected; wherein M3 is a positive integer of 1 or more. Therefore, the account management server sends the data transmission mode to be selected to the first electronic equipment under the condition that the account management server judges that only the first electronic equipment and the third electronic equipment trust each other in the first electronic equipment, the second electronic equipment and the third electronic equipment, and the first electronic equipment screens the available data transmission mode subsequently; or the distance between the first electronic device and the third electronic device is sent to the first electronic device, so that the first electronic device further acquires the available data transmission mode according to the distance.
According to the fifth aspect, or any implementation manner of the fifth aspect above, the login accounts and the device information of the first electronic device, the second electronic device, and the third electronic device are updated instantly at a preset frequency. Specifically, the first, second, and third electronic devices may periodically send respective login account and device information to the account management server at a certain frequency. Therefore, the account management server judges that the login accounts of the first electronic device, the second electronic device and the third electronic device are the latest login accounts, and the situation that the judgment result is wrong due to untimely updating is avoided.
According to a fifth aspect or any implementation manner of the above fifth aspect, the transmission manner of the data to be selected includes close-range point-to-point transmission, WLAN transmission, and cellular network transmission; the close-range point-to-point transmission comprises at least one of the following: bluetooth, Wi-Fi direct, and near field communication. Thus, a specific data transmission mode is provided. The specific data transmission manner described above is only an illustrative example, and is not intended to limit the scope of the present application.
In a sixth aspect, a method of wireless data transmission is provided. The method is applied to a first electronic device, a second electronic device, a third electronic device and an account management server, wherein the first electronic device, the second electronic device and the third electronic device are in wireless communication connection with each other, the first electronic device, the second electronic device and the third electronic device are in communication connection with the account management server, the account management server stores accounts which are mutually trusted, the account management server receives login accounts and device information of the first electronic device, the second electronic device and the third electronic device, the device information comprises positioning information, and the second electronic device is located between the first electronic device and the third electronic device, and the method comprises the following steps: after detecting that the first electronic device transmits a file to the third electronic device, the first electronic device sends a request message to an account management server, wherein the request message is used for acquiring the trust relationship of any two of the first electronic device, the second electronic device and the third electronic device; after receiving a request message from the first electronic device, the account management server judges the trust relationship of any two of the first electronic device, the second electronic device and the third electronic device; after the judgment result reveals that any two of the first electronic equipment, the second electronic equipment and the third electronic equipment are mutually trusted, the account management server determines the distance between any two of the first electronic equipment, the second electronic equipment and the third electronic equipment according to the respective positioning information of the first electronic equipment, the second electronic equipment and the third electronic equipment; the account management server sends a response message to the first electronic device, wherein the response message comprises a judgment result, the distance between the first electronic device and the second electronic device, and the distance between the first electronic device and the third electronic device; the account management server also sends a notification message to the second electronic device, wherein the notification message comprises a judgment result and a distance between the second electronic device and the third electronic device; or, according to the distance between any two of the first electronic device, the second electronic device and the third electronic device, the account management server determines M1 candidate data transmission modes of wireless communication between the first electronic device and the second electronic device, M2 candidate data transmission modes of wireless communication between the second electronic device and the third electronic device, and M3 candidate data transmission modes of wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises a judgment result, M1 types of data transmission modes to be selected and M3 types of data transmission modes to be selected; sending a notification message to the second electronic device, wherein the notification message comprises a judgment result and M2 types of data transmission modes to be selected; wherein M1, M2 and M3 are positive integers of 1 or more; the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message; if the response message reveals that any two of the first, second and third electronic devices are mutually trusted, the first electronic device determines N1 available data transfer modes for wireless communication between the first and second electronic devices; n1 is a positive integer of 1 or more; the first electronic equipment receives a sharing message from the second electronic equipment, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic equipment and the third electronic equipment, which are determined by the second electronic equipment; n2 is a positive integer of 1 or more; the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more; the first electronic device automatically selects a data transmission mode with the highest priority from the N1 available data transmission modes, the N2 available data transmission modes and the N3 available data transmission modes, and transmits the file to the third electronic device in the data transmission mode with the highest priority. Therefore, the interaction and respective steps of the first electronic equipment and the account management server are comprehensively explained from the overall perspective; under the conditions of the first electronic device, the second electronic device and the third electronic device, the first electronic device can automatically select the data transmission mode with the highest priority according to the current available data transmission mode, and transmits the file in the data transmission mode with the highest priority, so that the transmission efficiency is improved, the whole process is reduced, even user operation is not needed, and the user experience is improved. The priorities of different data transmission modes can be preset and flexibly adjusted.
According to a sixth aspect, the method further comprises: after the judgment result reveals that the first electronic device and the third electronic device are mutually trusted and the first electronic device and the second electronic device are not mutually trusted, or the second electronic device and the third electronic device are not mutually trusted, the account management server determines the distance between the first electronic device and the third electronic device according to the respective positioning information of the first electronic device and the third electronic device; the account management server sends a response message to the first electronic device, wherein the response message comprises a judgment result and a distance between the first electronic device and the third electronic device; or, according to the distance between the first electronic device and the third electronic device, the account management server determines M3 types of data transmission modes to be selected for wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises a judgment result and M3 types of data transmission modes to be selected; wherein M3 is a positive integer greater than or equal to 1; after the first electronic device receives the response message, the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more; the first electronic device automatically selects a data transmission mode with the highest priority from the N3 available data transmission modes, and transmits the file to the third electronic device in the data transmission mode with the highest priority. Therefore, the account management server sends the data transmission mode to be selected to the first electronic equipment under the condition that the account management server judges that only the first electronic equipment and the third electronic equipment trust each other in the first electronic equipment, the second electronic equipment and the third electronic equipment, and the first electronic equipment screens the available data transmission mode subsequently; or the distance between the first electronic device and the third electronic device is sent to the first electronic device, so that the first electronic device further acquires the available data transmission mode according to the distance.
According to a sixth aspect, or any implementation manner of the sixth aspect above, the response information is further used to reveal a distance between the first electronic device and the second electronic device; the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: the method comprises the steps that the first electronic equipment determines M1 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the third electronic equipment according to the distance between the first electronic equipment and the second electronic equipment; wherein M1 is a positive integer greater than or equal to N1; the first electronic equipment determines N1 available data transmission modes of wireless communication between the first electronic equipment and the third electronic equipment from M1 candidate data transmission modes; or the response information is also used for revealing the distance between the first electronic equipment and the third electronic equipment; the first electronic equipment determines N3 available data transmission modes of wireless communication between the first electronic equipment and the third electronic equipment; the method comprises the following steps: the method comprises the steps that the first electronic equipment determines M3 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the third electronic equipment according to the distance between the first electronic equipment and the second electronic equipment; wherein M3 is a positive integer greater than or equal to N3; the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device from M3 candidate data transmission modes. In this way, a specific refinement of the determination of the available data transmission modes between the first electronic device and the second electronic device, and between the first electronic device and the third electronic device, in the case of the first, second and third electronic devices, is provided by the first electronic device.
According to the sixth aspect, or any implementation manner of the sixth aspect above, the first electronic device determines, according to a distance between the first electronic device and the second electronic device, M1 candidate data transmission manners of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps: the first electronic equipment compares the distance with a preset first threshold value, and determines M1 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the comparison result; the first electronic equipment determines M3 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the third electronic equipment according to the distance; the method comprises the following steps: and the first electronic equipment compares the distance with a preset first threshold, and determines M3 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the comparison result. Therefore, a refinement scheme for determining the transmission mode of the data to be selected between the first electronic device and the second electronic device by the first electronic device is provided, or a refinement scheme for determining the transmission mode of the data to be selected between the first electronic device and the third electronic device by the first electronic device is provided.
According to the sixth aspect, or any implementation manner of the sixth aspect above, the first electronic device automatically selects a data transmission manner with the highest priority from the N1 available data transmission manners, the N2 available data transmission manners, and the N3 available data transmission manners, and transmits the file to the third electronic device in the data transmission manner with the highest priority; the method comprises the following steps: if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device automatically selects a data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the third electronic device in the latest selected data transmission mode. Therefore, in the file transmission process, the optimal data transmission mode can be dynamically adjusted according to the change of the current available transmission mode, and the data transmission is automatically completed, so that the first electronic device always transmits data by using the current optimal data transmission mode without manual adjustment and selection of a user, and the user experience is ensured.
According to a sixth aspect, or any implementation manner of the sixth aspect above, if the initially selected data transmission manner with the highest priority is available again, the first electronic device automatically resumes selecting the data transmission manner with the highest priority to transmit the file to the third electronic device. Therefore, the optimal data transmission mode is automatically and dynamically adjusted along with the change of the current available transmission mode in the file transmission process, the manual adjustment and selection of a user are not needed, and the transmission experience of the user is ensured.
According to a sixth aspect, or any implementation manner of the sixth aspect above, the login accounts and the device information of the first, second, and third electronic devices are updated instantly at a preset frequency. Specifically, the first, second, and third electronic devices may periodically send respective login account and device information to the account management server at a certain frequency. Therefore, the account management server judges that the respective login accounts of the first electronic device, the second electronic device and the third electronic device are the latest login accounts, and the situation that the judgment result is wrong due to untimely updating is avoided.
According to a sixth aspect or any one of the previous implementation manners of the sixth aspect, the data transmission manner includes close-range point-to-point transmission, WLAN transmission, and cellular network transmission; the priority of the close range point-to-point transmission is higher than that of the WLAN transmission, and the priority of the WLAN transmission is higher than that of the cellular network transmission; the close-range point-to-point transmission comprises at least one of the following: bluetooth, Wi-Fi direct, and near field communication. Thus, a specific data transmission mode is provided. The specific data transmission manner is only an illustrative example and is not used to limit the scope of the present application.
According to the sixth aspect, or any implementation manner of the sixth aspect, if the login accounts of the first, second, and third electronic devices are the same account or the same group of accounts among the mutually trusted accounts, the first, second, and third electronic devices are mutually trusted; and if the respective login accounts of the first electronic equipment and the third electronic equipment are the same account or accounts in the same group in the mutually trusted accounts, the first electronic equipment and the third electronic equipment are mutually trusted. Therefore, the specific judgment mode of whether the first electronic equipment, the second electronic equipment and the third electronic equipment are mutually trusted is more definite.
In a seventh aspect, an electronic device is provided. The electronic device includes at least: memory, one or more processors, and one or more computer programs; wherein the one or more computer programs are stored in the memory; the one or more processors, when executing the one or more computer programs, cause the electronic device to implement the first aspect and the method for wireless data transmission of any one of the implementations of the first aspect, the fourth aspect and the fourth aspect.
In addition, for any implementation manner and corresponding technical effect in the seventh aspect, reference may be made to any implementation manner and corresponding technical effect in the first aspect and the first aspect, and any implementation manner and corresponding technical effect in the fourth aspect and the fourth aspect, which are not described herein again.
In an eighth aspect, an account management server is provided. The account management server at least comprises: memory, one or more processors, and one or more computer programs; wherein the one or more computer programs are stored in the memory; the one or more processors, when executing the one or more computer programs, cause the account management server to implement the second aspect and the method for wireless data transmission implemented by any of the implementation manners of the second aspect, the fifth aspect and the fifth aspect.
In addition, for any implementation manner and corresponding technical effect in the eighth aspect, reference may be made to any implementation manner and corresponding technical effect in the second aspect and the second aspect, and any implementation manner and corresponding technical effect in the fifth aspect and the fifth aspect, which are not described herein again.
In a ninth aspect, a wireless data transmission system is provided. The wireless data transmission system comprises at least: the electronic device according to any one of the two seventh aspects and the seventh aspect, and the account management server according to any one of the eighth aspect and the eighth aspect, are configured to implement the wireless data transmission method according to any one of the third aspect and the third aspect, and the sixth aspect.
In addition, for any implementation manner and corresponding technical effect of the ninth aspect, reference may be made to any implementation manner and corresponding technical effect of the third aspect and the third aspect, and any implementation manner and corresponding technical effect of the sixth aspect and the sixth aspect, which are not described herein again.
In a tenth aspect, a computer-readable storage medium is provided. The computer-readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the first aspect and the method for wireless data transmission of any one of the implementations of the first aspect, the fourth aspect, and the fourth aspect.
In addition, for any implementation manner and corresponding technical effect in the tenth aspect, reference may be made to any implementation manner and corresponding technical effect in the first aspect and the first aspect, and any implementation manner and corresponding technical effect in the fourth aspect and the fourth aspect, which are not described herein again.
In an eleventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium includes a computer program that, when run on an account management server, causes the account management server to execute the second aspect and the wireless data transmission method of any one of the implementation manners of the second aspect, the fifth aspect, and the fifth aspect.
In addition, for any implementation manner and corresponding technical effect in the eleventh aspect, reference may be made to any implementation manner and corresponding technical effect in the second aspect and the second aspect, and any implementation manner and corresponding technical effect in the fifth aspect and the fifth aspect, which are not described herein again.
In a twelfth aspect, a computer program product is provided. When the computer program product runs on an electronic device, the electronic device is caused to perform the first aspect or the wireless data transmission method of any one of the implementations of the first aspect, the fourth aspect, and the fourth aspect.
In addition, for any implementation manner and corresponding technical effect in the twelfth aspect, reference may be made to any implementation manner and corresponding technical effect in the first aspect and the first aspect, and any implementation manner and corresponding technical effect in the fourth aspect and the fourth aspect, which are not described herein again.
In a thirteenth aspect, a computer program product is provided. The computer program product, when run on an electronic device, causes the electronic device to perform the second aspect or the method of wireless data transmission of any one of the implementations of the second aspect, the fifth aspect and the fifth aspect.
In addition, for any implementation manner and corresponding technical effect in the thirteenth aspect, reference may be made to any implementation manner and corresponding technical effect in the second aspect and the second aspect, and any implementation manner and corresponding technical effect in the fifth aspect and the fifth aspect, which are not described herein again.
Those skilled in the art will appreciate that the technical solutions relating to any one of the above different aspects and implementations of the different aspects and the technical features included in the technical solutions may be freely combined; the above-mentioned technical solutions after free combination are all within the scope of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below. It is obvious that the drawings in the following description relate to some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from these drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a wireless data transmission system according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a wireless data transmission system according to an embodiment of the present application.
Fig. 4a to fig. 4b are schematic structural diagrams of a wireless data transmission system according to a second embodiment of the present application.
Fig. 5a to fig. 5b are schematic structural diagrams of a wireless data transmission system according to a third embodiment of the present application.
Fig. 6 is a schematic structural diagram of a wireless data transmission system according to a fourth embodiment of the present application.
Fig. 7 a-7 b are schematic structural diagrams of a wireless data transmission system according to a fifth embodiment of the present application.
Fig. 8 is a flowchart illustrating a wireless data transmission method according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an account management server according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
In order to provide more convenience for users, embodiments of the present application provide a wireless data transmission method, device, system, and storage medium, so as to solve the problem that when a file can be transmitted through multiple wireless data transmission modes, especially when a file occupying a larger storage space, such as a video file, is transmitted, a user still needs to manually set and select a specific wireless data transmission mode.
Several concepts related to embodiments of the present application are described below:
and (3) short-distance point-to-point transmission: the way in which two communication parties transmit information by radio within a small transmission distance may be referred to as short-range point-to-point transmission. In particular, close range point-to-point transmission includes bluetooth, Wi-Fi direct, NFC, and the like.
Bluetooth: a radio technology supporting short-range communication of devices uses the industrial, scientific and medical (ISM) band of 2.4 to 2.485GHz for wireless communication between various fixed and mobile digital hardware devices. Bluetooth technology supports point-to-point connections and point-to-multipoint connections, while supporting data and voice services, based on low cost short-range wireless connections.
Wi-Fi direct: an 802.11-based peer-to-peer connection technology established by the Wi-Fi alliance, Wi-Fi direct may also be referred to as Wi-Fi peer-to-peer (Wi-Fi peer-to-peer, Wi-Fi P2P). Wi-Fi direct uses the 802.11 physical layer to modify the existing 802.11 Media Access Control (MAC) layer and above, making it suitable for the scene from discovery to establishment of point-to-point connection between two devices.
NFC: a short-distance high-frequency radio technology is evolved from non-contact radio frequency identification, an induction card reader, an induction card and a point-to-point function are combined on a single chip, identification and data interaction can be carried out on compatible equipment in a short distance, the working frequency is 13.56MHz, the transmission distance is less than or equal to 0.2 m, the effective distance is 4cm, and the transmission rate is 106kbit/s, 212kbit/s, 424kbit/s, 848kbit/s and the like.
In addition to short range point-to-point transmission, devices may also wirelessly transmit data between themselves via WLAN and cellular networks.
WLAN: a local area network is constructed using radio waves or electric fields in connection with magnetic fields as a medium for data transfer. Can provide high-speed wireless data access in a small range, and the transmission distance is generally only dozens of meters. The backbone network of a wlan typically uses a wired network, and wlan subscribers access the wlan through one or more wireless access devices.
Cellular network: a mobile communication hardware architecture, also called mobile network, is divided into an analog cellular network and a digital cellular network. Since the signal coverage of each communication base station forming the network coverage is hexagonal, the whole network is named like a honeycomb. The cellular network mainly comprises a mobile terminal, a base station subsystem and a network subsystem. Common types of cellular networks are: a global system for mobile communications (GSM) network, a Code Division Multiple Access (CDMA) network, a third generation mobile communication technology (3rd-generation, 3G) network, a fourth generation mobile communication technology (4rd-generation, 4G) network, a fifth generation mobile communication technology (5rd-generation, 5G) network, and the like.
Soft routing: the routing solution is formed by utilizing electronic equipment or a server to cooperate with software, and the function of the router is realized mainly by the setting of the software.
Hard routing: the method adopts specific hardware equipment, is based on an embedded system architecture, takes a self-developed or ready-made embedded operating system as an operating system, and provides a special router function by matching with routing software self-developed by a system manufacturer, wherein the software is matched with the hardware.
It should be noted that, unless otherwise specified, a plurality of electronic devices related to the present application all trust each other.
Alternatively, the electronic devices that are trusted with each other may be multiple electronic devices that log into the same account.
Specifically, the plurality of electronic devices logged in to the same account include, but are not limited to, a plurality of electronic devices of the same user.
Alternatively, a user may have only one account or multiple accounts.
Alternatively, when the electronic device logs in to an account, the electronic device may associate device information of the electronic device with the account and transmit the device information and the account to the account management server together. The same account number may be logged on multiple electronic devices. The account management server may record device information for a plurality of electronic devices associated with the account. The device information includes at least one of: an Identifier (ID), location information, a name, a physical address, network information, a remaining power of the electronic device. The network information of the electronic device may include at least one of: the working frequency band of the electronic equipment, the name of the connected routing equipment, the password, the available bandwidth and the working frequency band.
Optionally, the account management server stores accounts which are trusted with each other in advance. Further, the account management server stores accounts which trust each other in advance in the form of an account group. The account management server compares the received different login accounts with the pre-stored accounts in the group after receiving the different login accounts from the plurality of electronic devices, and if all or part of the different login accounts belong to the same group of accounts, the account management server indicates that all or part of the different login accounts are mutually trusted, so that the plurality of electronic devices are mutually trusted. If the login accounts received by the account management server from the plurality of electronic devices are the same account, the login accounts do not need to be compared with the account in the pre-stored group, and the fact that the plurality of electronic devices trust each other is directly indicated.
Alternatively, the electronic devices that are trusted with each other may be multiple electronic devices that log in to different accounts and/or the same account in the same group. For example, the electronic device a logs in the account 1, the electronic device B logs in the account 2, the electronic device C logs in the account 3, and the electronic device D logs in the account 3, and the accounts 1, 2, and 3 belong to the same group. For another example, the electronic device a logs in the account 1, the electronic device B logs in the account 2, and the electronic device C logs in the account 3, and the accounts 1, 2, and 3 belong to the same group.
The group can be a group created by a user in application software. The application software includes, but is not limited to, operating system software, pre-installed software, third party application software, etc. bound or associated with the login account of the electronic device.
Specifically, the user may create a group by adding or scanning accounts or business cards of other users, where the group includes login accounts of two or more electronic devices, and even further includes a device ID. Different electronic devices log in to different accounts. For example, the group includes a login account 1 of the electronic device a, a login account 2 of the electronic device B, and even further includes device IDs of the electronic device a and the electronic device B.
Optionally, the group may also include different electronic devices that log into the same account. For example, the group also includes the login account number 2 and the device ID of the electronic device C. The group may show: account 1 (device ID of electronic device a), account 2 (device ID of electronic device B), and account 2 (device ID of electronic device C). As another example, the group may include only the login accounts of electronic device B and electronic device C, and even the device ID. The group may show: account 2 (device ID of electronic device B) and account 2 (device ID of electronic device C).
Optionally, the account management server may associate and store the identifier of the group with the login account of the electronic device in the group and the device ID of the electronic device. Optionally, after the plurality of electronic devices establish the group, the plurality of electronic devices send the group identifier, the login account of each electronic device, and the device information to the account management server. And the account management server stores the login account, the equipment information and the group identification in a correlation manner. Optionally, a group may be further established in the account management server, where the group includes a group identifier, a login account of each electronic device, and device information.
A data transmission system according to an embodiment of the present application will be described with reference to fig. 1.
Fig. 1 schematically shows a structural diagram of a data transmission system provided in an embodiment of the present application. As shown in fig. 1, the data transmission system includes: electronic devices 10a, 10b, 10c, and 10d, and an account management server (not shown). And each electronic device sends the login account to the account management server. The account management server acquires the login account of each electronic device and identifies whether all or part of the login accounts of the electronic devices are mutually trusted. Whether the related accounts are mutually trusted can be identified and judged in the following way. For example, the login accounts of multiple electronic devices belong to the same group and/or are the same account. The account number may be a hua account number or an account number of another manufacturer. In addition, different manufacturer accounts can also form the same group. For example, at least two of the hua account number, the manufacturer account number a and the manufacturer account number B form the same group. The manufacturer A and the manufacturer B are different from Hua. In addition, in the same group, there may be a plurality of accounts of some manufacturers. For example, at least two of hua account 1, hua account 2, manufacturer account a, and manufacturer account B form the same group.
The account management server is used for identifying and judging whether the plurality of electronic devices logging in the account are mutually trusted, maintaining the device information of the plurality of mutually trusted electronic devices, and adding or modifying the account information and/or the device information. Further, the account management server can also notify the electronic devices that trust each other of the online and offline messages of different accounts and/or different electronic devices under the same account in real time.
For clarity of illustration, the account management server stores a database, for example. The database stores a plurality of accounts which trust each other and equipment information of electronic equipment corresponding to each account. One account may correspond to device information of a plurality of electronic devices. The account management server identifies and judges whether the relations between the connected electronic equipment login accounts are mutually trusting or not by inquiring the database. An authorized administrator can log in the account management server and add or modify a plurality of accounts which are mutually trusted. The electronic device logging in the account may also provide requests for establishing a group, dismissing the group, adding group members, removing group members, and the like, and after verifying that the electronic device has the relevant authority, corresponding operations are correspondingly performed. The electronic device of any login account can have the authority to establish the group, and after the group is established, the electronic device can set that a certain member has the management authority of the group. When a group member is added, the added member is required to approve, and the member is successfully added to the group. When a group member is removed, the member's consent is not required. The establishment and the resolution of the group, the addition and the removal of the group members and the like are maintained in the account management server. Taking the electronic device 10a as an example, specifically, after the electronic device 10a logs in an account, the electronic device 10a sends the login account and device information of the electronic device 10a to the account management server. And after receiving the login account, the account management server inquires the login account and correspondingly maintains the equipment information corresponding to the account.
Optionally, the communication connection between the electronic device and the account management server includes a direct connection and an indirect connection. For example, the electronic device is in communication connection with the account management server through the routing device. Wherein the routing device comprises any electronic device capable of implementing a routing function.
And data transmission is carried out among the electronic equipment which are mutually trusted. Firstly, determining an available data transmission mode; secondly, selecting an optimal data transmission mode from the available data transmission modes for data transmission. The optimal data transmission mode can be determined according to the priority of the available data transmission modes. For example, there are three available data transmission modes, and the data transmission mode with the highest priority is selected for data transmission.
It should be noted that the number of the electronic devices 10a, 10b, 10c, and 10d is merely an illustrative example, and the number of the electronic devices may be any other number.
The device information mentioned in the present application may include at least one of: a name of the electronic device, an ID of the electronic device, a physical address (MAC) of the electronic device, location information of the electronic device, network information of the electronic device, a remaining power amount of the electronic device, a computing capability of the electronic device, and the like.
The position information of the electronic device may be obtained through a Global Navigation Satellite System (GNSS) chip or module, or may be obtained through positioning of a base station of at least one of 2G/3G/4G/5G networks. The GNSS includes, but is not limited to, a Global Positioning System (GPS), a beidou satellite navigation system (BDS), and a galileo satellite navigation system (galileo satellite navigation system). The location information of the electronic device may be represented by, but is not limited to, longitude and latitude.
The network information of the electronic device may include: the working frequency band of the electronic equipment, whether the electronic equipment is connected with the routing equipment, and the like. If the electronic device is connected to the routing device, the network information of the electronic device may further include a name, a password, an available bandwidth, an operating frequency band, and the like of the routing device.
The remaining capacity of the electronic device can be obtained by the power management module. When the electronic device needs to be selected as the soft route and a plurality of electronic devices can be selected as the soft route, the electronic device with a large residual capacity can be preferentially selected as the soft route.
Wherein the computing power of the electronic device is available to the processor. When the electronic device needs to be selected as the soft route and a plurality of electronic devices can be selected as the soft route, the electronic device with strong computing capability can be preferentially selected as the soft route.
Optionally, when the electronic device needs to be selected as the soft route and a plurality of electronic devices can be selected as the soft route, at least two factors including the computing capability and the remaining power can be considered comprehensively, and the electronic device with high comprehensive capability is preferentially selected as the soft route.
In the application, the device information of each electronic device may be stored in a memory of the account management server. The storage includes, but is not limited to, one or more of memory, flash memory, floppy disk, hard disk, U disk, and optical disk. When one or more storage devices are selected, the number of the one or more storage devices may be one or more.
Optionally, each electronic device may report device information to the account management server according to a certain frequency, so that the account management server updates the device information in time, refreshes the information list, and ensures accuracy of the device information.
The routing device related to the present application may be a hard route, a soft route, or a routing device including a hard route and a soft route. For example, a hard route may be a router with a stable power supply, and a soft route may be an electronic device without a stable power supply.
The electronic devices related to the present application include, but are not limited to, mobile phones, tablet computers, desktop computers, laptop computers, ultra-mobile personal computers (UMPC), handheld computers, Personal Digital Assistants (PDA), wearable electronic devices, virtual reality devices, and the like.
An exemplary electronic device of the present application is described below in conjunction with fig. 2.
Fig. 2 shows a schematic structural diagram of the electronic device 100. As shown in fig. 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging 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, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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 is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. In this embodiment, the processor 110 may be configured to determine a plurality of communication links that may exist between the electronic device 100 and another electronic device 100, and select one communication link from the plurality of communication links to communicate with another electronic device.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete 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 have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface includes an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The charging management module 140 is configured to receive charging input from a charger. 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 to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to 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 used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc.
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 can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as 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 including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. 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 disposed in the same device as at least some of the modules of the processor 110. In this embodiment, the electronic device 100 may establish a connection with an account management server through the mobile communication module 150, and perform data interaction with other electronic devices through the account management server. The mobile communication module 150 of the electronic device 100 may also transmit data to other electronic devices through a cellular network.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a 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 passes the demodulated low frequency baseband signal to a 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 a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image 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 modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on 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, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves. In this embodiment, the electronic device 100 may be connected to the routing device through the wireless communication module 160, and establish a WLAN with other electronic devices through the routing device, so as to perform data interaction with other electronic devices through the WLAN. In this embodiment, the electronic device 100 may also directly establish a close-range peer-to-peer connection with other electronic devices through the wireless communication module, such as bluetooth, NFC, Wi-Fi direct connection, and perform data interaction with other electronic devices through a close-range peer-to-peer connection mode. In this embodiment, the electronic device 100 may implement short-distance peer-to-peer transmission with other electronic devices through the wireless communication module 160. In this embodiment, the electronic device 100 may also be in the same WLAN as other electronic devices through the wireless communication module 160, so as to implement data transmission.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS). In this embodiment, the electronic device 100 may communicate with an account management server, a routing device, or other electronic devices through a wireless communication technology.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor.
The display screen 194 is used to display images, video, and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. The ISP can also carry out algorithm optimization on 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.
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 to the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals.
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.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent cognition of the electronic device 100.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. The processor 110 executes 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 via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. 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.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it is possible to receive voice by placing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association) standard interface of the USA.
The pressure sensor 180A is used for sensing a pressure signal, and converting 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 can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D.
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 can be detected when the electronic device 100 is stationary. The method can also be used for identifying the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser.
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 to the outside 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 can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called 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 used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication.
Several embodiments provided by the present application are described below.
The first embodiment is as follows: the first electronic device and the second electronic device are at most related to two modes of short-distance point-to-point transmission and cellular network transmission.
Fig. 3 shows a schematic structural diagram of a wireless data transmission system according to an embodiment of the present application. As shown in fig. 3, the wireless data transmission system includes: a first electronic device 310, a second electronic device 320, and an account management server (not shown).
The first electronic device 310 and the second electronic device 320 are respectively connected to an account management server. The connection includes direct or indirect connection. The first electronic device 310 and the second electronic device 320 may both log in accounts that are trusted with each other, such as the same account (account a), and accounts of the same group (account a, account B). The account management server obtains login account information and device information of the first electronic device 310 and the second electronic device 320, and determines whether the login accounts of the first electronic device 310 and the second electronic device 320 are trusted with each other. The device information includes at least a device ID and location information (e.g., GPS coordinates, BDS coordinates, QZSS coordinates, SBAS coordinates, etc.). After determining that the respective login accounts of the first electronic device 310 and the second electronic device 320 are mutually trusted, the account management server feeds back the mutual trust of the login accounts of the first electronic device 310 and the second electronic device 320 to the first electronic device 310 and the second electronic device 320, and sends device information of the second electronic device 320 to the first electronic device 310. Further, the account management server also transmits the device information of the first electronic device 310 to the second electronic device 320.
Optionally, after determining that the login accounts of the first electronic device 310 and the second electronic device 320 are trusted with each other, the account management server sends the device information of the second electronic device 320 to the first electronic device 310, and does not feed back that the login accounts are trusted with each other to the first electronic device 310 and the second electronic device 320. At this time, when the first electronic device 310 receives the device information of the second electronic device 320 sent by the account management server, it is default that the login accounts of the first electronic device 310 and the login account of the second electronic device 320 are trusted with each other. Further, the account management server also transmits the device information of the first electronic device 310 to the second electronic device 320. Similarly, the second electronic device 320 receives the device information of the first electronic device 310 sent by the account management server, and then the login accounts of the first electronic device 310 and the second electronic device 320 are defaulted to trust each other.
Optionally, after the account management server determines that the respective login accounts of the first electronic device 310 and the second electronic device 320 are not trusted with each other, the account management server feeds back that the login accounts of the first electronic device 310 and the second electronic device 320 are not trusted with each other. At this time, if the first electronic device 310 and the second electronic device 320 both feed back that they are willing to establish mutual trust, or if the first electronic device 310 and the second electronic device 320 both feed back that they are willing to perform the communication on the basis of not establishing mutual trust, the account management server still sends the device information of the second electronic device 320 to the first electronic device 310, and sends the device information of the first electronic device 310 to the second electronic device 320.
After the account management server feeds back, to the first electronic device 310 and the second electronic device 320, that the login accounts are mutually trusted and sends the device information of the second electronic device 320 to the first electronic device 310, the first electronic device 310 preliminarily determines the distance between the first electronic device 310 and the second electronic device 320 according to the device information of the first electronic device 310 and the device information of the second electronic device 320, and preliminarily determines a data transmission mode capable of performing data transmission between the first electronic device 310 and the second electronic device 320 according to the distance. Further, the account management server sends the positioning information of the second electronic device 320 to the first electronic device 310. The first electronic device 310 preliminarily determines a distance between the first electronic device 310 and the second electronic device 320 according to the location information of itself and the location information of the second electronic device 320.
Specifically, the first electronic device 310 preliminarily determines, according to the distance, a data transmission mode capable of performing data transmission between the first electronic device 310 and the second electronic device 320, and the data transmission mode is determined by a relationship between the distance and the first threshold. The first threshold is preset according to the characteristics of a close-range point-to-point transmission mode (such as Bluetooth, NFC, Wi-Fi direct connection and the like). For example, the first threshold is 1 meter, 2.6 meters, 5 meters, etc. If the distance is greater than the first threshold, it is preliminarily determined that the first electronic device 310 and the second electronic device 320 cannot establish a communication connection in a close-range peer-to-peer transmission manner. Otherwise, it is preliminarily determined that the first electronic device 310 and the second electronic device 320 can establish a communication connection in two data transmission modes, namely, a short-range point-to-point transmission mode and a cellular network transmission mode.
Then, the first electronic device 310 attempts to establish a communication connection with the second electronic device 320 through the preliminarily determined data transmission manner, respectively. After a predetermined period of time and/or a predetermined number of transmissions, the available data transmission modes with which a communication connection can be established are determined. The available data transmission mode can be one or more data transmission modes. Then, according to the priority level, the first electronic device 310 selects the available data transmission mode with the highest priority level as the data transmission mode to be subsequently adopted.
Specifically, the first electronic device 310 only sends a data transmission request through one data transmission method, and if the first electronic device 310 receives a response message of the second electronic device 320 within a preset time duration and/or a preset number of sending times, it indicates that the communication connection of the data transmission method can be established between the first electronic device 310 and the second electronic device 320; if the first electronic device 310 does not receive the response message of the second electronic device 320 within the preset time duration or the preset number of times of transmission, it indicates that the communication connection of the data transmission manner cannot be established between the first electronic device 310 and the second electronic device 320. According to the process, the first electronic device 310 sequentially sends the data transmission request through one of the preliminarily determined data transmission manners, and determines whether the response message of the second electronic device 320 is received within the same preset time duration or preset sending times.
If the communication connection between the short-distance peer-to-peer transmission mode and the cellular network transmission mode can be established, the first electronic device 310 selects the communication connection mode between the first electronic device 310 and the second electronic device 320 as the short-distance peer-to-peer transmission mode because the priority of the short-distance peer-to-peer transmission mode is higher than that of the cellular network transmission mode.
If the communication connection of the close-range point-to-point transmission mode cannot be established, the communication connection of the cellular network transmission mode can only be established, and the first electronic device 310 selects the communication connection mode between the first electronic device 310 and the second electronic device 320 as the cellular network transmission mode.
When the distance between the first electronic device 310 and the second electronic device 320 is large, the first electronic device 310 preliminarily determines that the data transmission mode capable of performing data transmission between the two devices is only the cellular network transmission mode. Then, the process of specifically determining the data transmission mode capable of establishing the communication connection is similar to that described above, and details are not described here.
If the communication connection of the cellular network transmission method can be established, the first electronic device 310 selects the communication connection method between the first electronic device 310 and the second electronic device 320 as the cellular network transmission method.
Considerations for data transfer mode priority include, but are not limited to, at least one of data transfer speed, cost, security, stability, and the like.
Optionally, when the first electronic device 310 attempts to establish a communication connection with the second electronic device 320 through the preliminarily determined data transmission modes, the data transmission mode with the higher priority is preferentially selected according to the priority, and the communication connection with the second electronic device 320 is attempted. When the data transmission mode with the highest priority cannot establish the communication connection, the data transmission mode with the second priority is selected to attempt to establish the communication connection with the second electronic device 320. And so on.
Optionally, the account management server only obtains login account information of the first electronic device 310 and the second electronic device 320, and determines whether the login accounts of the first electronic device 310 and the second electronic device 320 are trusted with each other. After determining whether the respective login accounts of the first electronic device 310 and the second electronic device 320 are mutually trusted, the account management server feeds back to the first electronic device 310 and the second electronic device 320 whether the login accounts are mutually trusted.
After the account management server feeds back that the login accounts of the first electronic device 310 and the second electronic device 320 are trusted with each other, the first electronic device 310 tries to establish a communication connection with the second electronic device 320 through multiple data transmission methods. After a predetermined period of time and/or a predetermined number of transmissions, a data transmission mode is determined in which a communication connection can be established. The data transmission mode can be one or more data transmission modes. Then, according to the priority level, the first electronic device 310 selects the data transmission mode with the highest priority level as the data transmission mode to be subsequently adopted.
Further, the first electronic device 310 only sends the data transmission request through one data transmission method, and if the first electronic device 310 receives the response message of the second electronic device 320 within the preset time duration and/or the preset sending times, it indicates that the communication connection of the data transmission method can be established between the first electronic device 310 and the second electronic device 320; if the first electronic device 310 does not receive the response message of the second electronic device 320 within the preset time duration and/or the preset number of times of transmission, it indicates that the communication connection in the data transmission manner cannot be established between the first electronic device 310 and the second electronic device 320. According to the process, the first electronic device 310 sequentially transmits a data transmission request through one of the three data transmission modes, and determines whether a response message of the second electronic device 320 is received within the same preset time length and/or preset transmission times; thereby determining which data transfer mode communication connections can be established between the first electronic device 310 and the second electronic device 320.
The preset time period may be a time period such as 3 seconds, 5.5 seconds, 10 seconds, or other time periods.
The preset number of times of transmission may be, for example, 3 times, 6 times, 8 times, or other numbers.
The above "and/or" and "in" mean and.
Optionally, a communication connection of a certain data transmission mode is successfully/unsuccessfully established between the first electronic device 310 and the second electronic device 320, and the information is displayed on the first electronic device 310 and/or the second electronic device 320, and a prompt is fed back to the user.
Alternatively, in some cases, such as when the first electronic device 310 and the second electronic device 320 cannot be successfully connected to the account management server (or are disconnected after being successfully connected for some reason), and thus the relationship between the respective login accounts of the first electronic device 310 and the second electronic device 320 cannot be confirmed by the account management server, if the first electronic device 310 and the second electronic device 320 both wish to communicate, the first electronic device 310 and the second electronic device 320 determine whether the two can establish a communication connection in the foregoing manner; if the communication connection between the short-distance point-to-point transmission mode and the cellular network transmission mode can be established, the data transmission mode with the highest priority is selected to carry out data transmission in the selectable data transmission modes.
Optionally, the priority of each data transmission mode is preset and stored in the electronic device in advance. In fig. 1, the electronic device is a first electronic device and/or a second electronic device.
Optionally, the first electronic device does not pre-store the priority of each data transmission mode, but first obtains the available data transmission mode, then determines the data transmission mode with the highest priority by comprehensively considering the priority factors of the data transmission modes, and selects the mode for data transmission.
Optionally, information sent between at least two of the first electronic device 310, the second electronic device 320, and the account management server may be encrypted information, so as to ensure information security. Optionally, decryption is performed after the encrypted information is received.
Therefore, in the first embodiment, at most two optional data transmission modes exist between the first electronic device and the second electronic device. The first is a short-distance point-to-point transmission mode, and the second is a cellular network transmission mode. When only one data transmission mode exists, such as a short-distance point-to-point transmission mode (such as a cellular network failure, which cannot be used), or a cellular network transmission mode, because the priority of the cellular network transmission mode is already the highest, the data transmission mode is only used for transmission. When two data transmission modes exist, the data transmission mode with the highest priority, such as a short-distance point-to-point transmission mode, is selected according to the priority for transmission. That is to say, in an optional situation, the first electronic device selects the data transmission mode with the highest priority for transmission according to the priority corresponding to the data transmission mode. Optionally, the priority of the cellular network transmission mode can be set to be higher than that of the short-distance point-to-point transmission mode. Those skilled in the art will appreciate that the components of the first embodiment can be freely combined.
Example two: the first electronic device and the second electronic device are involved in at most two ways, WLAN transmission and cellular network transmission.
Fig. 4 a-4 b are schematic structural diagrams illustrating a wireless data transmission system according to a second embodiment of the present application. As shown in fig. 4a, the wireless data transmission system includes: a first electronic device 410, a second electronic device 420, a routing device 430, and an account management server (not shown). First electronic device 410 and/or second electronic device 420 are connected to routing device 430. The connection includes direct connection and indirect connection. Where indirectly connected, first electronic device 410 and/or second electronic device 420 are connected to routing device 430 through other devices.
The determination as to whether the respective login account relationships of the first electronic device 410 and the second electronic device 420 are mutually trusted is the same as the related description in the first embodiment; the determination of the available data transmission method between the first electronic device 410 and the second electronic device 420 after mutual trust is similar to the description in the first embodiment, and is not repeated here.
After the above process, the first electronic device 410 and the second electronic device 420 perform at most two modes, namely WLAN transmission and cellular network transmission, further determining:
as shown in fig. 4a, when the first electronic device 410 and the second electronic device 420 can establish a connection of WLAN transmission mode through the routing device 430, and the first electronic device 410 and the second electronic device 420 can establish a connection of cellular network transmission mode, the communication connection mode between the first electronic device 410 and the second electronic device 420 is selected as WLAN transmission mode because the priority of WLAN transmission mode is higher than that of cellular network transmission mode.
As shown in fig. 4b, when the first electronic device 410 cannot be connected to the routing device 430 and the second electronic device 420 can be connected to the routing device 430, so that the first electronic device 410 and the second electronic device 420 cannot establish a connection of the WLAN transmission method and can only establish a connection of the cellular network transmission method, the communication connection method between the first electronic device 410 and the second electronic device 420 is selected as the cellular network transmission method.
Optionally, the information sent between at least two of the first electronic device 410, the second electronic device 420, the routing device 430, and the account management server may be encrypted information to ensure information security. Optionally, decryption is performed after the encrypted information is received.
Therefore, in the second embodiment, at most two optional data transmission modes exist between the first electronic device and the second electronic device. The first is WLAN transmission mode, and the second is cellular network transmission mode. When there is only one data transmission mode, such as WLAN transmission mode (e.g. cellular network failure, unable to use), or cellular network transmission mode, since its priority is already the highest, only this data transmission mode is used for transmission. When two data transmission modes exist, the data transmission mode with the highest priority, such as the WLAN transmission mode, is selected for transmission according to the priority. That is to say, in an optional situation, the first electronic device selects the data transmission mode with the highest priority for transmission according to the priority corresponding to the data transmission mode. Optionally, the priority of the cellular network transmission mode may be set higher than the priority of the WLAN transmission mode.
In the case of no specific description, the related contents related to the second embodiment of the present application are the same as those related contents related to the first embodiment of the present application, and are not described herein again. Those skilled in the art will appreciate that the parts of the second embodiment can be freely combined.
Example three: the first electronic device and the second electronic device are at most related to two modes of short-distance point-to-point transmission and WLAN transmission.
Fig. 5 a-5 b are schematic structural diagrams illustrating a wireless data transmission system according to a third embodiment of the present application. As shown in fig. 5a, the wireless data transmission system includes: a first electronic device 510, a second electronic device 520, a routing device 530, and an account management server (not shown). The first electronic device 510 and/or the second electronic device 520 are connected to a routing device 530. The connection includes direct connection and indirect connection.
The determination as to whether the respective login account relationships of the first electronic device 510 and the second electronic device 520 are mutually trusted is the same as the related description in the first embodiment; the determination of the available data transmission method between the first electronic device 510 and the second electronic device 520 after mutual trust is similar to the description in the first embodiment, and is not repeated here.
After the above process, the first electronic device 510 and the second electronic device 520 may perform at most two ways, namely, near-distance peer-to-peer transmission and WLAN transmission, and then further determine:
as shown in fig. 5a, when both the first electronic device 510 and the second electronic device 520 can establish a connection between a close-range peer-to-peer transmission mode and a WLAN transmission mode, the communication connection mode between the first electronic device 510 and the second electronic device 520 is selected to be the close-range peer-to-peer transmission mode because the priority of the close-range peer-to-peer transmission mode is higher than the priority of the WLAN transmission mode.
As shown in fig. 5b, when the first electronic device 510 and the second electronic device 520 cannot establish a connection by a close-range peer-to-peer transmission method, but both the first electronic device 510 and the second electronic device 520 can be connected to the routing device 530, the communication connection method between the first electronic device 510 and the second electronic device 520 is selected as a WLAN transmission method. At this time, when the first electronic device 510 initiates a data transmission request to the second electronic device 520 through the WLAN transmission mode; the second electronic device 520 receives the data transmission request through the WLAN transmission method and responds. Likewise, in this process, the main subject of selecting the communication connection mode between the first electronic device 510 and the second electronic device 520 may be only the first electronic device 510 and/or the second electronic device 520, instead of the account management server; or an account management server.
Optionally, the information sent between at least two of the first electronic device 510, the second electronic device 520, the routing device 530, and the account management server may be encrypted information to ensure information security. Optionally, decryption is performed after the encrypted information is received.
Therefore, in the third embodiment, at most two optional data transmission modes exist between the first electronic device and the second electronic device. The first is a short-distance point-to-point transmission mode, and the second is a WLAN transmission mode. When there is only one data transmission method, such as a short-distance point-to-point transmission method (e.g. a failure of the routing device 530) or a WLAN transmission method, only the data transmission method is used for transmission. When two data transmission modes exist, the data transmission mode with the highest priority, such as a short-distance point-to-point transmission mode, is selected according to the priority for transmission. That is to say, in an optional situation, the first electronic device selects an optimal data transmission method for transmission according to the priority corresponding to the data transmission method. Alternatively, the priority of the WLAN transmission mode may be set higher than the priority of the short-range point-to-point transmission mode.
In the case that no specific description is given, relevant contents related to the third embodiment of the present application are the same as or similar to relevant contents related to any one of the foregoing embodiments of the present application, and are not described herein again. Those skilled in the art will appreciate that the components of the third embodiment can be freely combined.
Example four: the first electronic device and the second electronic device are at most related to three modes of short-distance point-to-point transmission, WLAN transmission and cellular network transmission.
Fig. 6 shows a schematic structural diagram of a wireless data transmission system according to a fourth embodiment of the present application. As shown in fig. 6, the data transmission system includes: a first electronic device 610, a second electronic device 620, a routing device 630, and an account management server (not shown).
The determination as to whether the respective login account relationships of the first electronic device 610 and the second electronic device 620 are mutually trusted is the same as the related description in the first embodiment; the determination of the available data transmission mode between the first electronic device 610 and the second electronic device 620 after mutual trust is the same as the description in the first embodiment, and is not described herein again.
After the above processes, the first electronic device 610 and the second electronic device 620 at most relate to the short-distance peer-to-peer transmission and mode, the WLAN transmission mode and the cellular network transmission mode, further determining:
when the first electronic device 610 and the second electronic device 620 can both establish connection in three data transmission modes, the communication connection mode between the first electronic device 610 and the second electronic device 620 is selected to be a near-range point-to-point transmission mode because the priority of the near-range point-to-point transmission mode is higher than the priorities of the other two transmission modes.
When the first electronic device 610 and the second electronic device 620 can only establish a connection between two data transmission modes, such as a WLAN transmission mode and a cellular network transmission mode, the communication connection mode between the first electronic device 610 and the second electronic device 620 is selected as the WLAN transmission mode because the priority of the WLAN transmission mode is higher than that of the cellular network transmission mode.
When the first electronic device 610 and the second electronic device 620 can only establish a connection of one data transmission mode, such as a cellular network transmission mode, the communication connection mode between the first electronic device 610 and the second electronic device 620 is selected as the cellular network transmission mode.
Therefore, in the fourth embodiment, at most three selectable data transmission modes exist between the first electronic device and the second electronic device. The first is a short-distance point-to-point transmission mode, the second is a WLAN transmission mode, and the third is a cellular network transmission mode. When only one data transmission mode exists, such as a short-distance point-to-point transmission mode, a WLAN transmission mode or a cellular network transmission mode, the data transmission mode is only used for transmission because the priority of the data transmission mode is the highest. And when more than two data transmission modes exist, selecting the data transmission mode with the highest priority for transmission according to the priority. That is to say, in an optional situation, the first electronic device selects the data transmission mode with the highest priority for transmission according to the priority corresponding to the data transmission mode. Alternatively, the priority of the WLAN transmission mode may be set higher than the priority of the short-range point-to-point transmission mode.
In the case of no specific description, related contents related to the fourth embodiment of the present application are the same as or similar to related contents related to any of the foregoing embodiments of the present application, and are not described herein again. Those skilled in the art will appreciate that the parts of the fourth embodiment can be freely combined.
Example five: more than three electronic devices are related to two modes of short-distance point-to-point transmission and cellular network transmission at most.
When more than three electronic devices are related to at most two modes of short-distance point-to-point transmission and cellular network transmission, the data transmission mode is also selected between any two electronic devices according to the first embodiment. And will not be described in detail herein.
The connection for determining whether or not the short-distance point-to-point transmission method can be established between two electronic devices among the three or more electronic devices includes a direct connection and an indirect connection.
For clarity of illustration, three electronic devices are illustrated. Fig. 7 a-7 b are schematic structural diagrams illustrating a wireless data transmission system according to a fifth embodiment of the present application. As shown in fig. 7a, it is determined that the data transmission method between the first electronic device 710 and the second electronic device 720 is the short-distance peer-to-peer transmission method, and the data transmission method between the second electronic device 720 and the third electronic device 730 is the short-distance peer-to-peer transmission method. Optionally, after selecting the data transmission mode between the second electronic device 720 and the third electronic device 730, the second electronic device 720 sends the data transmission mode between the second electronic device 720 and the third electronic device 730 to the first electronic device 710.
In this way, the first electronic device 710 can establish a communication connection with the third electronic device 730 via the second electronic device 720 by means of a short-range point-to-point transmission method. Therefore, the data transmission method between the first electronic device 710 and the third electronic device 730 is also selected to be a short-range point-to-point transmission method, and the cellular network transmission method is not selected.
Further, in the case of four or more electronic devices, in the above manner, there may be a plurality of routing situations. Four electronic devices are taken as an example for explanation. For example, as shown in fig. 7b, it is determined that the data transmission method between the first electronic device 710 and the second electronic device 720, and the data transmission method between the first electronic device 710 and the third electronic device 730 are both short-distance point-to-point transmission methods, and the data transmission method between the second electronic device 720 and the fourth electronic device 740, and the data transmission method between the third electronic device 730 and the fourth electronic device 740 are both short-distance point-to-point transmission methods. Optionally, the second electronic device 720 sends the data transmission mode between the second electronic device 720 and the fourth electronic device 740 to the first electronic device 710. The third electronic device 730 transmits a data transmission mode between the third electronic device 730 and the fourth electronic device 740 to the first electronic device 710.
In this way, the data transmission method between the first electronic device 710 and the fourth electronic device 740 is also selected to be a short-range point-to-point transmission method (via the second electronic device 720 or the third electronic device 730). Then, it is further determined that at least one of the remaining power, the computing power, the available bandwidth, the security, the stability, and the like of the second electronic device 720 and the third electronic device 730 is integrated, and the electronic device with the strongest integrated capability is selected as the soft route, for example, the integrated capability of the second electronic device 720 is stronger than that of the third electronic device 730, and then the first electronic device 710 and the fourth electronic device 740 are selected to establish the communication connection via the second electronic device 720 in the short-distance peer-to-peer transmission manner.
In the case that no specific description is given, relevant contents related to the fifth embodiment of the present application are the same as or similar to relevant contents related to any one of the foregoing embodiments of the present application, and are not described herein again. Those skilled in the art will appreciate that the parts of the fifth embodiment can be freely combined.
Example six: more than three electronic devices are involved in at most two modes, WLAN transmission and cellular network transmission.
When three or more electronic devices are involved in at most two modes, namely WLAN transmission and cellular network transmission, the data transmission mode is also selected between any two electronic devices according to the second embodiment. And will not be described in detail herein.
It should be noted that the connection for determining whether the WLAN transmission mode can be established between two electronic devices of the three or more electronic devices includes a direct connection and an indirect connection.
For clarity of illustration, three electronic devices are illustrated. For example, after the determination, the data transmission method between the first electronic device and the second electronic device is selected to be a WLAN transmission method, and the data transmission method between the second electronic device and the third electronic device is selected to be a WLAN transmission method. Optionally, the second electronic device sends the first electronic device to the second electronic device in a WLAN transmission mode.
In this way, the first electronic device can establish a communication connection with the third electronic device via the second electronic device by means of WLAN transmission. Therefore, the data transmission mode between the first electronic device and the third electronic device is also selected to be the WLAN transmission mode, and the cellular network transmission mode is not selected.
In the case of four or more electronic devices, there may be a plurality of routing situations in the manner described above. Similar to the description in the fifth embodiment, the selection of the specific route may be performed by integrating at least one factor of the remaining power, the computing capability, the available bandwidth, the security, the stability, and the like, and selecting the electronic device with the strongest integrated capability as the soft route, which is not described herein again.
In the case of no specific description, related contents related to the sixth embodiment of the present application are the same as or similar to related contents related to any of the foregoing embodiments of the present application, and are not described herein again. Those skilled in the art will appreciate that the parts of the sixth embodiment can be freely combined.
Example seven: more than three electronic devices are related to two modes of short-distance point-to-point transmission and WLAN transmission at most.
When more than three electronic devices are related to at most two modes, namely, near-distance point-to-point transmission and WLAN transmission, the data transmission mode is also selected between any two electronic devices according to the third embodiment. And will not be described in detail herein.
The connection for determining whether or not the short-distance point-to-point transmission method can be established between two electronic devices among the three or more electronic devices includes a direct connection and an indirect connection.
For clarity of illustration, three electronic devices are illustrated. For example, after the determination, the data transmission mode between the first electronic device and the second electronic device is selected to be a short-distance point-to-point transmission mode, and the data transmission mode between the second electronic device and the third electronic device is selected to be a short-distance point-to-point transmission mode. Optionally, the second electronic device sends a data transmission mode between the second electronic device and the third electronic device to the first electronic device.
Specifically, the first electronic device, the second electronic device and the third electronic device send respective login accounts and device information to an account management server at a predetermined frequency; the device information includes positioning information; after detecting that the first electronic equipment transmits a file to the third electronic equipment, the first electronic equipment sends a request message to an account management server; the request message is used for acquiring the trust relationship between any two of the first electronic equipment, the second electronic equipment and the third electronic equipment; after the account management server receives the request message, the account management server judges the trust relationship of any two of the first electronic equipment, the second electronic equipment and the third electronic equipment; after the judgment result reveals that any two of the first electronic device, the second electronic device and the third electronic device trust each other, the account management server determines the distance between any two of the first electronic device, the second electronic device and the third electronic device according to the respective positioning information of the first electronic device, the second electronic device and the third electronic device; the account management server sends a response message to the first electronic device, wherein the response message comprises a judgment result, the distance between the first electronic device and the second electronic device, and the distance between the first electronic device and the third electronic device;
the account management server also sends a notification message to the second electronic device, wherein the notification message comprises a judgment result and a distance between the second electronic device and the third electronic device; after receiving the notification message, the second electronic device determines M2 types of data transmission modes to be selected for wireless communication between the second electronic device and the third electronic device in the manner described in the first embodiment; the second electronic device determines N2 available data transmission modes between the second electronic device and the third electronic device in the manner described in the first embodiment; then, the second electronic device sends a sharing message to the first electronic device, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic device and the third electronic device, which are determined by the second electronic device; further, the second electronic device also sends a sharing message to the third electronic device;
alternatively, the first and second electrodes may be,
according to the distance between any two of the first electronic device, the second electronic device and the third electronic device, the account management server determines M1 candidate data transmission modes of wireless communication between the first electronic device and the second electronic device, M2 candidate data transmission modes of wireless communication between the second electronic device and the third electronic device, and M3 candidate data transmission modes of wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises a judgment result, M1 types of data transmission modes to be selected and M3 types of data transmission modes to be selected; sending a notification message to the second electronic device, wherein the notification message comprises a judgment result and M2 types of data transmission modes to be selected; the second electronic device determines N2 available data transmission modes between the second electronic device and the third electronic device in the manner described in the first embodiment; then, the second electronic device sends a sharing message to the first electronic device, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic device and the third electronic device, which are determined by the second electronic device;
the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message; if the response message reveals that any two of the first electronic device, the second electronic device, and the third electronic device are trusted to each other, then:
the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; the first electronic device receives a sharing message from the second electronic device, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic device and the third electronic device, which are determined by the second electronic device; the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; the first electronic device automatically selects a data transmission mode with the highest priority from the N1 available data transmission modes, the N2 available data transmission modes and the N3 available data transmission modes, and transmits a file to the third electronic device in the data transmission mode with the highest priority; wherein M1, M2 and M3 are positive integers of 1 or more; n1 is a positive integer of M1 or less and 1 or more; n2 is a positive integer of M2 or less and 1 or more; n3 is a positive integer of M3 or less and 1 or more.
In this way, the first electronic device can establish a communication connection with the third electronic device via the second electronic device by means of short-range point-to-point transmission. Since the priority of the short-range point-to-point transmission mode is higher than that of the WLAN transmission mode, the data transmission mode between the first electronic device and the third electronic device is also selected to be the short-range point-to-point transmission mode, and the WLAN transmission mode is not selected.
In the case of four or more electronic devices, there may be a plurality of routing situations in the manner described above. Similar to the description in the fifth embodiment, regarding the selection of the specific route, at least one factor of the remaining power, the computing power, the available bandwidth, the security, the stability, and the like is synthesized, and the electronic device with the strongest synthetic capability is selected as the soft route, which is not described herein again.
In the case that no specific description is given, the related contents related to the seventh embodiment of the present application are the same as or similar to the related contents related to any of the foregoing embodiments of the present application, and are not described herein again. Those skilled in the art should understand that the parts in the seventh embodiment of the present application can be freely combined.
Example eight: more than three electronic devices are related to at most three modes of short-distance point-to-point transmission, WLAN transmission and cellular network transmission.
When more than three electronic devices are related to at most three modes, namely, near-distance point-to-point transmission, WLAN transmission and cellular network transmission, a data transmission mode is also selected between any two electronic devices according to the fourth embodiment. And will not be described in detail herein.
It should be noted that the determination as to whether a connection in a high-priority manner can be established between two electronic devices of the three or more electronic devices includes a direct connection and an indirect connection.
For clarity of illustration, three electronic devices are illustrated. For example, after the determination, the data transmission method between the first electronic device and the second electronic device is selected to be a short-range point-to-point transmission method, and the data transmission method between the second electronic device and the third electronic device is selected to be a short-range point-to-point transmission method. Optionally, the second electronic device sends a data transmission mode between the second electronic device and the third electronic device to the first electronic device.
In this way, the first electronic device can establish a communication connection with the third electronic device via the second electronic device by a short-distance point-to-point transmission mode. Since the priority of the short-range point-to-point transmission mode is higher than the priority of the WLAN transmission mode and the cellular network transmission mode, the data transmission mode selected between the first electronic device and the third electronic device is also the short-range point-to-point transmission mode, and neither the WLAN transmission mode nor the cellular network transmission mode is selected.
For another example, after the determination, the data transmission mode between the first electronic device and the second electronic device is selected to be a short-distance point-to-point transmission mode, and the data transmission mode between the second electronic device and the third electronic device is selected to be a WLAN transmission mode. Optionally, the second electronic device sends a data transmission mode between the second electronic device and the third electronic device to the first electronic device.
Therefore, when the first electronic equipment sends data to the third electronic equipment, the first electronic equipment sends the data to the second electronic equipment in a close-range point-to-point transmission mode; and then the second electronic equipment sends data to the third electronic equipment in a WLAN transmission mode. Because the priority of the short-distance point-to-point transmission mode is higher than that of the WLAN transmission mode, and the priority of the WLAN transmission mode is higher than that of the cellular network transmission mode, the data transmission mode between the first electronic device and the third electronic device is selected to be the short-distance point-to-point transmission mode + the WLAN transmission mode (namely, the short-distance point-to-point transmission mode is adopted between the first electronic device and the second electronic device, and the WLAN transmission mode is adopted between the second electronic device and the third electronic device), and the cellular network transmission mode is not selected.
In the case of four or more electronic devices, there may be a plurality of routing situations in the manner described above. Similar to the description in the fifth embodiment, regarding the selection of the specific route, various factors such as the remaining power, the computing power, the available bandwidth, and the like are integrated, and the electronic device with the strongest integrated capability is selected as the soft route, which is not described herein again. Those skilled in the art will recognize that the parts of embodiment eight can be freely combined. The eighth embodiment of the present application has no description, and reference may be made to the description related to the seventh embodiment, which is not repeated herein.
The data transmission modes related to the present application include but are not limited to: a close range point-to-point transmission mode, a WLAN transmission mode and a cellular network transmission mode. Each data transmission mode has a priority.
Illustratively, the close range point-to-point transmission mode has the highest priority, the WLAN transmission mode has the second priority, and the cellular network transmission mode has the lowest priority. The close-range point-to-point transmission mode is the most preferred data transmission mode, network resources of the electronic equipment can not be occupied in the data transmission process, and user experience is better.
The above prioritization of data transmission is merely illustrative. Other orderings are also possible in particular implementations. For example, the WLAN transmission method has the highest priority, the short-range point-to-point transmission method has the second priority, and the cellular network transmission method has the lowest priority. Any ordering of the priorities of the three data transmission modes is within the scope of the present application.
The priority of the data transmission method includes but is not limited to at least one of data transmission speed, cost, security, stability, etc.
Therefore, the data transmission mode with the highest priority is preferentially selected for data transmission during data transmission, and if service conflict or network bandwidth problems occur in the transmission process, the data transmission mode with the second priority can be switched to for data transmission, so that the data transmission efficiency can be guaranteed to be optimal.
For example, in any embodiment of the foregoing embodiments, after the data transmission method between the first electronic device and the second electronic device is selected to be the short-distance point-to-point transmission method, and after the file is transmitted to a certain proportion (for example, after the transmission is completed by 60%), at this time, the short-distance point-to-point transmission method is not available (due to some reason), the data transmission method between the first electronic device and the second electronic device is selected to be the transmission method with the highest priority in the data transmission methods to be selected at this time, for example, the WLAN transmission method, and the remaining part of the file after the certain proportion is continuously transmitted (for example, 40%).
Further, after the file is transmitted to another certain proportion (for example, 80% of the file is completely transmitted), the WLAN transmission mode is not available (for some reason), the data transmission mode between the first electronic device and the second electronic device is selected as the transmission mode with the highest priority in the data transmission modes to be selected at this time, for example, the cellular network transmission mode, and the remaining part (for example, 20%) of the file after the other certain proportion is continuously transmitted.
Optionally, after the file is transmitted to another certain proportion (for example, 80% of the file is transmitted), at this time, the short-distance point-to-point transmission mode is recovered to be available, the data transmission mode between the first electronic device and the second electronic device is selected as the transmission mode with the highest priority in the data transmission modes to be selected at this time, that is, the short-distance point-to-point transmission mode, and the remaining part (for example, 20%) of the file after the certain proportion is transmitted is continued.
A wireless data transmission method provided in the embodiments of the present application is described below. The two electronic devices are exemplified to be involved in at most short-distance point-to-point transmission and cellular network transmission. The two electronic devices include a first electronic device and a second electronic device. Those skilled in the art will appreciate that other approaches are similar.
Fig. 8 is a flowchart illustrating a method for wireless data transmission according to an embodiment of the present application. As shown in fig. 8, the wireless data transmission method includes the following steps:
s801: the first electronic device and the second electronic device send respective login accounts and device information to the account management server.
The login account can be a Hua account or an account of another manufacturer. The device information includes at least a device ID and location information (e.g., at least one of GPS coordinates, BDS coordinates, QZSS coordinates, SBAS coordinates, etc.).
S802: the first electronic equipment sends a request message to the account management server.
Specifically, after it is detected that the first electronic device transmits a file to the second electronic device, the first electronic device sends a request message to the account management server, where the request message is used to obtain a trust relationship between the first electronic device and the second electronic device.
S803: the account management server judges the trust relationship between the first electronic device and the second electronic device.
Specifically, the account management server determines whether login accounts of the first electronic device and the second electronic device are the same account or accounts of the same group. And judging whether the account management server belongs to the same account group stored in advance by the account management server through the received login accounts of the first electronic device and the second electronic device. The accounts of the same manufacturer and/or different manufacturers can form the same group. For example, three Huawei account numbers form the same group. For another example, a Huawei account, an account of manufacturer a and an account of manufacturer B form a same group. The manufacturer A and the manufacturer B are different from Hua.
S804: if the first electronic device and the second electronic device trust each other, the account management server determines the distance between the first electronic device and the second electronic device, and sends the judgment result of mutual trust and the distance to the first electronic device and the second electronic device.
The first electronic device preliminarily determines the distance between the first electronic device and the second electronic device according to the self positioning information and the positioning information of the second electronic device, because the device information includes the positioning information.
Alternatively, if the first electronic device and the second electronic device trust each other, the account management server sends the judgment result and the device information of the trust each other to the first electronic device and the second electronic device.
S805: and according to the distance, the first electronic equipment preliminarily determines a data transmission mode to be selected, which can be used for data transmission between the first electronic equipment and the second electronic equipment.
And the first electronic equipment preliminarily determines a data transmission mode which can carry out data transmission between the first electronic equipment and the second electronic equipment according to the distance, and judges through the relation between the distance and the first threshold. The first threshold is preset according to the characteristics of a short-distance point-to-point transmission mode (such as Bluetooth and Wi-Fi direct). For example, the first threshold is 1 meter, 2 meters. And if the distance is greater than the first threshold, preliminarily determining that the first electronic equipment and the second electronic equipment cannot establish communication connection in a close-range point-to-point transmission mode. Otherwise, preliminarily determining that the first electronic equipment and the second electronic equipment can establish communication connection of two data transmission modes, namely a close-range point-to-point transmission mode and a cellular network transmission mode.
Alternatively, according to the device information, the first electronic device preliminarily determines a data transmission mode to be selected, in which the first electronic device can perform data transmission with the second electronic device.
S806: the first electronic device tries to establish communication connection with the second electronic device through the preliminarily determined data transmission modes to be selected, and determines available data transmission modes in which the first electronic device and the second electronic device can transmit data.
Specifically, the first electronic device sends a data transmission request only through a data transmission mode, and if the first electronic device receives a response message of the second electronic device within a preset time or within preset sending times, it indicates that the communication connection of the data transmission mode can be established between the first electronic device and the second electronic device; if the first electronic device does not receive the response message of the second electronic device within the preset time length or the preset sending times, it indicates that the communication connection of the data transmission mode cannot be established between the first electronic device and the second electronic device. According to the process, the first electronic device sends the data transmission request sequentially through one of the preliminarily determined data transmission modes, and judges whether the response message of the second electronic device is received or not within the same preset time length or preset sending times. Therefore, the available data transmission modes of the first electronic equipment and the second electronic equipment capable of data transmission are determined. The available data transmission mode can be one data transmission mode or two data transmission modes.
Alternatively, the first electronic device attempts to establish a communication connection with the second electronic device through all data transmission modes, and determines available data transmission modes in which the first electronic device and the second electronic device can perform data transmission.
S807: and the first electronic equipment selects the data transmission mode with the highest priority from the available data transmission modes for data transmission according to the priority corresponding to the available data transmission modes.
The priority of the short-distance point-to-point transmission mode is higher than that of the cellular network transmission mode. Of course, the priority of the data transmission method may also be adjusted.
It should be noted that fig. 8 only exemplarily shows a flow chart of a wireless data transmission method provided in an embodiment of the present application. For example, a flow in which two electronic devices relate to the transmission method in at most three data transmission modes, and a flow in which more than three electronic devices relate to the transmission method in at most three data transmission modes are similar to the above, refer to fig. 8 and the above corresponding embodiments, and are not described again here. Those skilled in the art will appreciate that the foregoing is illustrative only; and is not intended to limit the scope of wireless data transmission methods. The flow of the wireless data transmission method can also be other flows.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The modules in the device can be merged, divided and deleted according to actual needs. Different parts of different embodiments of the application can be freely combined and deleted.
All or portions of the various embodiments provided herein may be used in combination with each other. Any of the contents described in the specification of the present application may be used in combination with each other.
The method provided by the embodiment of the application is suitable for the following account management server.
Fig. 9 illustrates an account management server 900 according to the present application. Illustratively, the account management server 900 includes at least one processor 910 and memory 920. The processor 910 is coupled to the memory 920, and the coupling in this embodiment may be a communication connection, an electrical connection, or another form. In particular, memory 920 is used to store program instructions. The processor 910 is configured to invoke the program instructions stored in the memory 920, so that the account management server 900 performs the steps performed by the account management server in the wireless data transmission method provided in the embodiment of the present application. It should be understood that the account management server 900 may be used to implement the wireless data transmission method provided in the embodiment of the present application, and reference may be made to the above for related features, which are not described herein again.
The method provided by the embodiment of the application is suitable for the following electronic equipment.
Fig. 10 illustrates an electronic device 1000 provided in the present application. By way of example, the electronic device 1000 includes at least one processor 1010, memory 1020, and a display 1030. The processor 1010 is coupled to the memory 1020 and the display 1030, and the coupling in the embodiment of the present invention may be a communication connection, an electrical connection, or another form. In particular, memory 1020 is used to store program instructions. The display screen 1030 is used to display a user interface. The processor 1010 is configured to invoke the program instructions stored in the memory 1020 to make the electronic device 1000 execute the steps performed by the electronic device in the wireless data transmission method provided by the embodiment of the present application. It should be understood that the electronic device 1000 may be configured to implement the wireless data transmission method provided in the embodiment of the present application, and reference may be made to the above for related features, which are not described herein again.
In some embodiments, when the display screen has a touch function, the display screen is also referred to as a touch display screen. The operation on the touch display screen can be realized by virtual keys. When the display screen does not have a touch function, the display screen is also called a non-touch display screen. The operation on the non-touch display screen can be realized through physical keys.
The present application further provides a computer program product containing instructions, which when run on an electronic device, causes the electronic device to perform the steps performed by the electronic device in the wireless data transmission method provided in the embodiments of the present application.
The present application further provides a computer-readable storage medium, which includes a computer program and when the computer program runs on an electronic device, causes the electronic device to execute the steps performed by the electronic device in the wireless data transmission method provided in this application.
Those skilled in the art will clearly understand that the embodiments of the present application can be implemented in hardware, or in hardware and software. When implemented using hardware and software, the above-described functions may be stored in a computer-readable medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application.

Claims (32)

1. A wireless data transmission method is applied to first electronic equipment, the first electronic equipment is in wireless communication connection with second electronic equipment, and the first electronic equipment and the second electronic equipment are both in communication connection with an account management server, and the method comprises the following steps:
after detecting that the first electronic device transmits a file to the second electronic device, the first electronic device sends a request message to the account management server, wherein the request message is used for acquiring the trust relationship between the first electronic device and the second electronic device;
the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message;
if the response message reveals that the first electronic equipment and the second electronic equipment are mutually trusted, then
The first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; n is a positive integer greater than or equal to 1;
and the first electronic equipment automatically selects a data transmission mode with the highest priority from the N available data transmission modes, and transmits the file to the second electronic equipment in the data transmission mode with the highest priority.
2. The method of claim 1,
the request message comprises a login account and equipment information of the first electronic equipment; the device information includes positioning information;
the response message is also used for revealing the distance between the first electronic equipment and the second electronic equipment;
the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; the method comprises the following steps:
the first electronic equipment determines M types of to-be-selected data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment according to the distance; m is a positive integer greater than or equal to N;
and the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment from the M data transmission modes to be selected.
3. The method of claim 1, wherein the response message is further used to reveal M candidate data transmission modes of wireless communication between the first electronic device and the second electronic device; m is a positive integer greater than or equal to N;
the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment; the method comprises the following steps: and the first electronic equipment determines N available data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment from the M data transmission modes to be selected.
4. The method of claim 2,
the first electronic device determines N available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M data transmission modes to be selected; the method comprises the following steps:
the first electronic device sequentially selects a data transmission mode to be selected from the M data transmission modes to be selected, sends a data transmission request to the second electronic device in the selected data transmission mode to be selected, and determines that the selected data transmission mode is an available data transmission mode if the first electronic device receives a response message of the second electronic device within a preset time and/or within a preset sending frequency.
5. The method according to any one of claims 1 to 4,
the first electronic equipment selects a data transmission mode with the highest priority from the N available data transmission modes and transmits a file to the second electronic equipment in the data transmission mode with the highest priority; the method comprises the following steps:
if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device selects another data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the second electronic device by using the latest selected data transmission mode.
6. The method of claim 5, further comprising:
and if the data transmission mode with the highest priority selected at the beginning is available, the first electronic equipment resumes to select the data transmission mode with the highest priority selected at the beginning to transmit the file to the second electronic equipment.
7. A wireless data transmission method is applied to an account management server, the account management server is in communication connection with a first electronic device and a second electronic device, the first electronic device is in wireless communication connection with the second electronic device, the account management server stores accounts which trust each other, the account management server receives login accounts and device information of the first electronic device and the second electronic device, the device information comprises positioning information, and the method is characterized by comprising the following steps:
after receiving a request message from a first electronic device, the account management server judges a trust relationship between the first electronic device and a second electronic device;
after the judgment result reveals that the first electronic device and the second electronic device trust each other, the account management server determines the distance between the first electronic device and the second electronic device according to the respective positioning information of the first electronic device and the second electronic device;
the account management server sends a response message to the first electronic device, wherein the response message comprises the judgment result and the distance; alternatively, the first and second electrodes may be,
the account management server determines M types of data transmission modes to be selected in wireless communication between the first electronic equipment and the second electronic equipment according to the distance; sending a response message to the first electronic device, wherein the response message comprises the judgment result and the M types of data transmission modes to be selected; m is a positive integer greater than or equal to 1.
8. The method according to claim 7, wherein after the determination result reveals that the first electronic device and the second electronic device are not trusted with each other, the account management server sends a response message to the first electronic device, where the response message includes the determination result; the login account and the equipment information are updated instantly at a preset frequency; if the respective login accounts of the first electronic device and the second electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the second electronic device are mutually trusted.
9. A wireless data transmission method is applied to a first electronic device, a second electronic device and an account management server, wherein the first electronic device is in wireless communication connection with the second electronic device, the first electronic device and the second electronic device are both in communication connection with the account management server, the account management server stores accounts which are mutually trusted, the account management server receives login accounts and device information of the first electronic device and the second electronic device, and the device information comprises positioning information, and the method comprises the following steps:
after detecting that the first electronic device transmits a file to the second electronic device, the first electronic device sends a request message to the account management server, wherein the request message is used for acquiring the trust relationship between the first electronic device and the second electronic device;
after receiving a request message from a first electronic device, the account management server judges whether the first electronic device and the second electronic device trust each other;
after the judgment result reveals that the first electronic device and the second electronic device trust each other, the account management server determines the distance between the first electronic device and the second electronic device according to the respective positioning information of the first electronic device and the second electronic device;
the account management server sends a response message to the first electronic device, wherein the response message comprises the judgment result and the distance; alternatively, the first and second electrodes may be,
the account management server determines M types of to-be-selected data transmission modes of wireless communication between the first electronic equipment and the second electronic equipment according to the distance; sending a response message to the first electronic device, wherein the response message comprises the judgment result and the M types of data transmission modes to be selected; m is a positive integer greater than or equal to 1;
the first electronic equipment receives a response message from the account management server, and if the response message reveals that the first electronic equipment and the second electronic equipment are mutually trusted, the first electronic equipment receives a response message from the account management server
The first electronic device determines N available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M data transmission modes to be selected; n is a positive integer greater than or equal to 1 and less than or equal to M;
and the first electronic equipment automatically selects a data transmission mode with the highest priority from the N available data transmission modes, and transmits the file to the second electronic equipment in the data transmission mode with the highest priority.
10. The method of claim 9, further comprising:
the first electronic device determines N available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M data transmission modes to be selected; the method comprises the following steps:
the first electronic device sequentially selects a data transmission mode to be selected from the M data transmission modes to be selected, sends a data transmission request to the second electronic device in the selected data transmission mode to be selected, and determines that the selected data transmission mode is an available data transmission mode if the first electronic device receives a response message of the second electronic device within a preset time and/or within a preset sending frequency.
11. The method of claim 9,
the first electronic equipment automatically selects a data transmission mode with the highest priority from the N available data transmission modes, and transmits a file to the second electronic equipment in the data transmission mode with the highest priority; the method comprises the following steps:
if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device selects another data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the second electronic device by using the latest selected data transmission mode.
12. The method of claim 11, further comprising:
and if the data transmission mode with the highest priority selected at the beginning is available, the first electronic equipment resumes to select the data transmission mode with the highest priority selected at the beginning to transmit the file to the second electronic equipment.
13. The method according to any one of claims 9-12, wherein the login account number and the device information are updated instantly with a preset frequency; if the respective login accounts of the first electronic device and the second electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the second electronic device are mutually trusted.
14. A wireless data transmission method is applied to first electronic equipment, wherein the first electronic equipment is in wireless communication connection with second electronic equipment and third electronic equipment, the second electronic equipment is in wireless communication connection with the third electronic equipment, the first electronic equipment, the second electronic equipment and the third electronic equipment are all in communication connection with an account management server, and the second electronic equipment is located between the first electronic equipment and the third electronic equipment, and the method comprises the following steps:
after detecting that the first electronic device transmits a file to the third electronic device, the first electronic device sends a request message to the account management server, wherein the request message is used for acquiring the trust relationship between any two of the first electronic device, the second electronic device and the third electronic device;
the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message;
if the response message reveals that any two of the first electronic device, the second electronic device and the third electronic device are mutually trusted, then
The first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; n1 is a positive integer of 1 or more;
the first electronic device receives a sharing message from the second electronic device, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic device and the third electronic device, which are determined by the second electronic device; n2 is a positive integer of 1 or more;
the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more;
the first electronic device automatically selects a data transmission mode with the highest priority from the N1 available data transmission modes, the N2 available data transmission modes and the N3 available data transmission modes, and transmits the file to the third electronic device in the data transmission mode with the highest priority.
15. The method of claim 14, further comprising:
if the response message reveals that the first electronic equipment and the third electronic equipment are mutually trusted, and
the first electronic device and the second electronic device are not trusted with each other, or the second electronic device and the third electronic device are not trusted with each other, then
The first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more;
the first electronic device automatically selects a data transmission mode with the highest priority from the N3 available data transmission modes, and transmits a file to the third electronic device in the data transmission mode with the highest priority.
16. The method of claim 14,
the response message is also used for revealing the distance between the first electronic equipment and the second electronic equipment;
the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; the method comprises the following steps:
the first electronic equipment determines M1 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the second electronic equipment according to the distance; wherein M1 is a positive integer greater than or equal to N1;
the first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device from the M1 candidate data transmission modes;
alternatively, the first and second electrodes may be,
the response message is also used to reveal a distance between the first electronic device and the third electronic device;
the first electronic device determines N3 available data transmission modes of wireless communication between the first electronic device and the third electronic device; the method comprises the following steps:
the first electronic equipment determines M3 types of data transmission modes to be selected for wireless communication between the first electronic equipment and the third electronic equipment according to the distance; wherein M3 is a positive integer greater than or equal to N3;
and the first electronic equipment determines N3 available data transmission modes for wireless communication between the first electronic equipment and the third electronic equipment from the M3 candidate data transmission modes.
17. The method according to any one of claims 14 to 16,
the first electronic device automatically selects a data transmission mode with the highest priority from the N1 available data transmission modes, the N2 available data transmission modes and the N3 available data transmission modes, and transmits files to the third electronic device in the data transmission mode with the highest priority; the method comprises the following steps:
if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device automatically selects a data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the third electronic device in the latest selected data transmission mode.
18. The method of claim 17, further comprising:
and if the data transmission mode with the highest priority selected at the beginning is available, the first electronic equipment automatically resumes to select the data transmission mode with the highest priority selected at the beginning to transmit the file to the third electronic equipment.
19. The method according to any one of claims 14 to 16, wherein the first electronic device, the second electronic device, and the third electronic device are trusted with each other if the respective login accounts of the first electronic device, the second electronic device, and the third electronic device are the same account or the same group of accounts among the mutually trusted accounts; and if the respective login accounts of the first electronic device and the third electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the third electronic device are mutually trusted.
20. A wireless data transmission method is applied to an account management server, the account management server is in communication connection with a first electronic device, a second electronic device and a third electronic device, the first electronic device, the second electronic device and the third electronic device are in wireless communication connection with each other, the account management server stores accounts which trust each other, the account management server receives login accounts and device information of the first electronic device, the second electronic device and the third electronic device, the device information comprises positioning information, and the second electronic device is located between the first electronic device and the third electronic device, and the method is characterized by comprising the following steps:
after receiving a request message from a first electronic device, the account management server determining a trust relationship between any two of the first electronic device, the second electronic device, and the third electronic device, where the request message is used to obtain the trust relationship between any two of the first electronic device, the second electronic device, and the third electronic device;
after the judgment result reveals that any two of the first electronic device, the second electronic device and the third electronic device are mutually trusted, then
The account management server determines the distance between any two of the first electronic device, the second electronic device and the third electronic device according to the respective positioning information of the first electronic device, the second electronic device and the third electronic device;
the account management server sends a response message to the first electronic device, where the response message includes the determination result, a distance between the first electronic device and the second electronic device, and a distance between the first electronic device and the third electronic device; the account management server further sends a notification message to the second electronic device, where the notification message includes the determination result and a distance between the second electronic device and the third electronic device; alternatively, the first and second electrodes may be,
according to the distance between any two of the first electronic device, the second electronic device and the third electronic device, the account management server determines M1 candidate data transmission modes of wireless communication between the first electronic device and the second electronic device, M2 candidate data transmission modes of wireless communication between the second electronic device and the third electronic device, and M3 candidate data transmission modes of wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises the judgment result, the M1 types of data transmission modes to be selected and the M3 types of data transmission modes to be selected; sending a notification message to the second electronic device, where the notification message includes the determination result and the M2 types of data transmission modes to be selected; wherein M1, M2 and M3 are positive integers of 1 or more.
21. The method of claim 20, further comprising:
the first electronic equipment and the third electronic equipment are mutually trusted and are disclosed in the judgment result
The first electronic device and the second electronic device are not trusted with each other, or after the second electronic device and the third electronic device are not trusted with each other, the first electronic device and the second electronic device are not trusted with each other
The account management server determines the distance between the first electronic device and the third electronic device according to the respective positioning information of the first electronic device and the third electronic device;
the account management server sends a response message to the first electronic device, wherein the response message comprises the judgment result and the distance between the first electronic device and the third electronic device; alternatively, the first and second electrodes may be,
according to the distance between the first electronic device and the third electronic device, the account management server determines M3 types of data transmission modes to be selected of wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises the judgment result and the M3 data transmission modes to be selected; wherein M3 is a positive integer of 1 or more.
22. The method according to claim 20 or 21, wherein the login accounts and device information of the first electronic device, the second electronic device and the third electronic device are updated instantly at a preset frequency; if the respective login accounts of the first electronic device, the second electronic device and the third electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device, the second electronic device and the third electronic device are mutually trusted; and if the respective login accounts of the first electronic device and the third electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the third electronic device are mutually trusted.
23. A wireless data transmission method is applied to a first electronic device, a second electronic device, a third electronic device and an account management server, wherein the first electronic device, the second electronic device and the third electronic device are in wireless communication connection with each other, the first electronic device, the second electronic device and the third electronic device are all in communication connection with the account management server, the account management server stores accounts which are trusted with each other, the account management server receives login accounts and device information of the first electronic device, the second electronic device and the third electronic device, the device information comprises positioning information, and the second electronic device is located between the first electronic device and the third electronic device, and the method is characterized by comprising the following steps:
after detecting that the first electronic device transmits a file to the third electronic device, the first electronic device sends a request message to the account management server, wherein the request message is used for acquiring the trust relationship between any two of the first electronic device, the second electronic device and the third electronic device;
after receiving a request message from a first electronic device, the account management server determines a trust relationship between any two of the first electronic device, the second electronic device and the third electronic device;
after the judgment result reveals that any two of the first electronic device, the second electronic device and the third electronic device are mutually trusted, then
The account management server determines the distance between any two of the first electronic device, the second electronic device and the third electronic device according to the respective positioning information of the first electronic device, the second electronic device and the third electronic device;
the account management server sends a response message to the first electronic device, where the response message includes the determination result, a distance between the first electronic device and the second electronic device, and a distance between the first electronic device and the third electronic device; the account management server further sends a notification message to the second electronic device, where the notification message includes the determination result and a distance between the second electronic device and the third electronic device; alternatively, the first and second electrodes may be,
according to the distance between any two of the first electronic device, the second electronic device and the third electronic device, the account management server determines M1 candidate data transmission modes of wireless communication between the first electronic device and the second electronic device, M2 candidate data transmission modes of wireless communication between the second electronic device and the third electronic device, and M3 candidate data transmission modes of wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises the judgment result, the M1 types of data transmission modes to be selected and the M3 types of data transmission modes to be selected; sending a notification message to the second electronic device, where the notification message includes the determination result and the M2 types of data transmission modes to be selected; wherein M1, M2 and M3 are positive integers of 1 or more;
the first electronic equipment receives a response message from the account management server, wherein the response message is a feedback message of the request message;
if the response message reveals that any two of the first electronic device, the second electronic device and the third electronic device are mutually trusted, then
The first electronic device determines N1 available data transmission modes of wireless communication between the first electronic device and the second electronic device; n1 is a positive integer of 1 or more;
the first electronic device receives a sharing message from the second electronic device, wherein the sharing message reveals N2 available data transmission modes of wireless communication between the second electronic device and the third electronic device, which are determined by the second electronic device; n2 is a positive integer of 1 or more;
the first electronic equipment determines N3 available data transmission modes for wireless communication between the first electronic equipment and the third electronic equipment; n3 is a positive integer of 1 or more;
the first electronic device automatically selects a data transmission mode with the highest priority from the N1 available data transmission modes, the N2 available data transmission modes and the N3 available data transmission modes, and transmits a file to the third electronic device in the data transmission mode with the highest priority.
24. The method of claim 23, further comprising:
the first electronic equipment and the third electronic equipment are mutually trusted and are disclosed in the judgment result
The first electronic device and the second electronic device are not trusted with each other, or after the second electronic device and the third electronic device are not trusted with each other, the first electronic device and the second electronic device are not trusted with each other
The account management server determines the distance between the first electronic device and the third electronic device according to the respective positioning information of the first electronic device and the third electronic device;
the account management server sends a response message to the first electronic device, wherein the response message comprises the judgment result and the distance between the first electronic device and the third electronic device; alternatively, the first and second liquid crystal display panels may be,
according to the distance between the first electronic device and the third electronic device, the account management server determines M3 types of data transmission modes to be selected for wireless communication between the first electronic device and the third electronic device; sending a response message to the first electronic device, wherein the response message comprises the judgment result and the M3 data transmission modes to be selected; wherein M3 is a positive integer greater than or equal to 1;
after the first electronic device receives the response message, the first electronic device determines N3 available data transmission modes for wireless communication between the first electronic device and the third electronic device; n3 is a positive integer of 1 or more;
the first electronic device automatically selects a data transmission mode with the highest priority from the N3 available data transmission modes, and transmits a file to the third electronic device in the data transmission mode with the highest priority.
25. The method of claim 23,
the first electronic device automatically selects a data transmission mode with the highest priority from the N1 available data transmission modes, the N2 available data transmission modes and the N3 available data transmission modes, and transmits a file to the third electronic device in the data transmission mode with the highest priority; the method comprises the following steps:
if the data transmission mode with the highest priority selected at the beginning is unavailable in the file transmission, the first electronic device automatically selects a data transmission mode with the highest priority from the rest available data transmission modes as the latest selected data transmission mode, and continues to transmit the file to the third electronic device in the latest selected data transmission mode.
26. The method of claim 25, further comprising:
and if the initially selected data transmission mode with the highest priority is available, automatically recovering and selecting the data transmission mode with the highest priority by the first electronic equipment to transmit the file to the third electronic equipment.
27. The method according to any one of claims 23 to 26, wherein the login accounts and device information of the first electronic device, the second electronic device and the third electronic device are updated instantly at a preset frequency; if the respective login accounts of the first electronic device, the second electronic device and the third electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device, the second electronic device and the third electronic device are mutually trusted; and if the respective login accounts of the first electronic device and the third electronic device are the same account or accounts of the same group in the mutually trusted accounts, the first electronic device and the third electronic device are mutually trusted.
28. An electronic device comprising at least: memory, one or more processors, and one or more computer programs; wherein the one or more computer programs are stored in the memory; one or more processors, when executing the one or more computer programs, cause the electronic device to implement the method for wireless data transmission according to any of claims 1-6 and 14-19.
29. An account management server comprising at least: memory, one or more processors, and one or more computer programs; wherein the one or more computer programs are stored in the memory; wherein the one or more processors, when executing the one or more computer programs, cause the account management server to implement the wireless data transmission method of any of claims 7-8 and 20-22.
30. A wireless data transmission system comprising at least: two electronic devices according to claim 28 and one account management server according to claim 29, wherein the wireless data transmission system is configured to implement the wireless data transmission method according to any one of claims 9 to 13 and 23 to 27.
31. A computer-readable storage medium comprising a computer program, which, when run on an electronic device, causes the electronic device to perform the method of wireless data transmission according to any one of claims 1-6 and 14-19.
32. A computer-readable storage medium comprising a computer program which, when run on an account management server, causes the account management server to perform a method of wireless data transmission according to any one of claims 7 to 8 and 20 to 22.
CN202010421211.8A 2020-05-18 2020-05-18 Wireless data transmission method, electronic device, system and storage medium Active CN113691979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010421211.8A CN113691979B (en) 2020-05-18 2020-05-18 Wireless data transmission method, electronic device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010421211.8A CN113691979B (en) 2020-05-18 2020-05-18 Wireless data transmission method, electronic device, system and storage medium

Publications (2)

Publication Number Publication Date
CN113691979A CN113691979A (en) 2021-11-23
CN113691979B true CN113691979B (en) 2022-07-12

Family

ID=78575583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010421211.8A Active CN113691979B (en) 2020-05-18 2020-05-18 Wireless data transmission method, electronic device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113691979B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983942A (en) * 2012-11-28 2013-03-20 北京百度网讯科技有限公司 Data transmission method and equipment
CN108541384A (en) * 2015-05-15 2018-09-14 高通股份有限公司 Link selection for device-to-device communication

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102208433B1 (en) * 2014-08-21 2021-01-27 삼성전자주식회사 Method and apparatus for selecting at least one communication method
KR20160111211A (en) * 2015-03-16 2016-09-26 삼성전자주식회사 Method for communicating data and electronic device there

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983942A (en) * 2012-11-28 2013-03-20 北京百度网讯科技有限公司 Data transmission method and equipment
CN108541384A (en) * 2015-05-15 2018-09-14 高通股份有限公司 Link selection for device-to-device communication

Also Published As

Publication number Publication date
CN113691979A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11653398B2 (en) Bluetooth connection method and device
WO2021052178A1 (en) Wi-fi connection method and device
EP3843435B1 (en) Data transmission method and electronic device
CN111373713B (en) Message transmission method and device
CN112469013B (en) Bluetooth connection method and related device
WO2021000923A1 (en) Router configuration method, terminal, and router
US11844119B2 (en) Bluetooth pairing method and related apparatus
CN113423106B (en) Mobile network hotspot sharing method and device and hotspot sharing equipment
CN111083804B (en) Data transmission method and equipment
WO2020216098A1 (en) Method for providing forwarding service across electronic apparatuses, apparatus, and system
CN113923611A (en) Call forwarding system and related device
CN113645571A (en) Data transmission method and electronic equipment
CN114339709A (en) Wireless communication method and terminal device
WO2021027623A1 (en) Device capability discovery method and p2p device
EP4336356A1 (en) Screen projection method and related apparatus
CN113691979B (en) Wireless data transmission method, electronic device, system and storage medium
EP4247030A1 (en) Device network distribution method, and mobile terminal and storage medium
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN113572586A (en) Method for sending sounding reference signal, user equipment and system
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
EP4277351A1 (en) Wi-fi access method and related device
CN117014377A (en) Congestion control negotiation method, electronic equipment and storage medium
CN117354955A (en) Network connection method, electronic device and storage medium
CN116938950A (en) Data transmission method, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant