CN116133089A - Equipment communication method and device, electronic equipment and storage medium - Google Patents

Equipment communication method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116133089A
CN116133089A CN202310035355.3A CN202310035355A CN116133089A CN 116133089 A CN116133089 A CN 116133089A CN 202310035355 A CN202310035355 A CN 202310035355A CN 116133089 A CN116133089 A CN 116133089A
Authority
CN
China
Prior art keywords
network
connection
network connection
time
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.)
Pending
Application number
CN202310035355.3A
Other languages
Chinese (zh)
Inventor
王中华
陈加前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Zhunjie Electronic Technology Co ltd
Original Assignee
Guangzhou Zhunjie Electronic Technology 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 Guangzhou Zhunjie Electronic Technology Co ltd filed Critical Guangzhou Zhunjie Electronic Technology Co ltd
Priority to CN202310035355.3A priority Critical patent/CN116133089A/en
Publication of CN116133089A publication Critical patent/CN116133089A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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 invention provides a device communication method, a device, an electronic device and a storage medium, wherein the method comprises the steps of acquiring the network resource use state of the device in the past first time and evaluating the network resource use requirement of the device in the future second time; detecting the current network connection state, and comparing the current network connection state with the estimated use requirement; when the current network connection state can not meet the use requirement, acquiring a network connection list currently available for the equipment; screening out target network connections meeting the use requirements according to the connection conditions of all network connections in a network connection list and network resources corresponding to the network connections; and establishing connection between the equipment and the target network. According to the current network use state and the available network resource condition of the equipment, the network connection mode of the equipment can be dynamically adjusted, and the use experience meeting the use requirement is provided under the condition of ensuring the stable network connection.

Description

Equipment communication method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device communication method, a device, an electronic device, and a storage medium.
Background
With the continuous development of mobile communication technology, new generation mobile communication networks provide users with higher data transmission speed and better transmission quality, and accordingly, higher demands are placed on devices and communication environments. Meanwhile, on some devices, many applications that have higher demands on network speed have also been developed. In the actual use process, the unstable condition of the network connection quality of the equipment is caused due to the influence of real-time change of a complex communication environment, network fluctuation and the like, so that the use experience of a user is influenced. For example, the handset shows that the 5G network is already connected, but the web page is not actually opened.
Therefore, how to provide a better device communication method is a problem to be solved at present.
Disclosure of Invention
In order to improve the problems, the invention provides a device communication method, a device communication device, an electronic device and a storage medium.
In a first aspect of an embodiment of the present invention, there is provided a device communication method, including:
acquiring the network resource use state of the equipment in the past first time, and evaluating the network resource use requirement of the equipment in the future second time;
detecting the current network connection state, and comparing the current network connection state with the estimated use requirement;
if the current network connection state is judged to be unable to meet the use requirement, the network connection list of the equipment available at present 5 is obtained, wherein the network connection list is recorded by historical connection or current scanning
Determining a result;
screening out target network connections meeting the use requirements according to the connection conditions of all network connections in a network connection list and network resources corresponding to the network connections;
and establishing connection between the equipment and the target network.
0 optionally, the step of acquiring the network resource usage status of the device in the past first time and evaluating the network resource usage requirement of the device in the future second time specifically includes:
calculating an average network traffic usage of the device over a first time period in the past;
estimating the average network traffic utilization rate, the possible continuous use time length, namely the second time and the network traffic use characteristics according to the application program content currently used by the equipment;
5, calculating the total network traffic in the duration of the continuous use;
and obtaining a network resource use demand evaluation result of the equipment in a second time in the future according to the content.
Optionally, the step of obtaining the network connection list currently available to the device specifically includes:
acquiring current available historical network connection from a historical connection record of the equipment;
searching for newly-added network connection currently available in the periphery through a wireless communication module of the equipment;
and integrating the historical network connection and the newly added network connection to obtain a network connection list currently available for the equipment.
Optionally, the step of screening out the target network connection meeting the use requirement according to the connection condition of each network connection in the network connection list and the network resource corresponding to the network connection specifically includes:
for the historical network connection in question,
according to the past connection time and the data transmission quantity of the historical network connection, calculating to obtain historical transmission efficiency;
based on the network traffic usage characteristics, the connection time and the historical transmission efficiency are respectively matched with the second time and the total network traffic;
and obtaining the target network connection matched to meet the use requirement.
Optionally, the network traffic usage characteristics are derived from a minimum network traffic rate, an overall traffic demand, and a possible usage time, including a sustained steady-state, overall demand,
when the network traffic usage characteristics are of a continuous stable type, the criteria for matching to meet the conditions are that the historical transmission efficiency is greater than the lowest network traffic rate and the connection time is greater than the second time;
when the network traffic usage characteristic is total demand type, the criterion for matching to meet the condition is that the product of the historical transmission efficiency and the second time is larger than the total network traffic.
Optionally, the step of screening out the target network connection meeting the use requirement according to the connection condition of each network connection in the network connection list and the network resource corresponding to the network connection further specifically includes:
for the newly added network connection,
acquiring equipment information corresponding to the newly added network connection, wherein the equipment information comprises a network protocol type and available network bandwidth;
based on the network traffic usage characteristics, matching the equipment information with the second time and the total network traffic;
when the network traffic usage characteristics are of a continuous stable type, the criterion that the matching meets the condition is that the transmission efficiency supported by the network protocol type is larger than the lowest network traffic rate, and the transmission efficiency corresponding to the available network bandwidth is larger than the lowest network traffic rate;
when the network traffic usage characteristic is total demand type, the criterion that the matching meets the condition is that the product of the transmission efficiency corresponding to the available network bandwidth and the second time is larger than the total network traffic.
Optionally, the method further comprises:
detecting the network state of the equipment after being connected with the target network in real time;
according to a preset time interval, carrying out requirement assessment regularly;
and when the current network connection state cannot meet the use requirement, the screening and connection of the target network connection are carried out again.
In a second aspect of an embodiment of the present invention, there is provided an apparatus for device communication, the apparatus including:
the demand assessment unit is used for acquiring the network resource use state of the equipment in the past first time and assessing the network resource use demand of the equipment in the future second time;
the state detection unit is used for detecting the current network connection state and comparing the current network connection state with the estimated use requirement;
the list acquisition unit is used for acquiring a network connection list currently available for the equipment if the current network connection state cannot meet the use requirement of the network connection state, wherein the network connection list is determined by a historical connection record or a current scanning result;
the target screening unit is used for screening out target network connections meeting the use requirements according to the connection conditions of all network connections in the network connection list and network resources corresponding to the network connections;
and the connection establishment unit is used for establishing the connection between the equipment and the target network connection.
Optionally, the demand evaluation unit is specifically configured to:
calculating an average network traffic usage of the device over a first time period in the past;
estimating the average network traffic utilization rate, the possible continuous use time length, namely the second time and the network traffic use characteristics according to the application program content currently used by the equipment;
calculating the total network traffic in the duration of the continuous use;
obtaining the network resource use demand evaluation result of the equipment in the future second time according to the content
Optionally, the list obtaining unit is specifically configured to:
acquiring current available historical network connection from a historical connection record of the equipment;
searching for newly-added network connection currently available in the periphery through a wireless communication module of the equipment;
integrating the historical network connection and the newly added network connection to obtain a network connection list currently available for the equipment
Optionally, the target screening unit is specifically configured to:
for the historical network connection in question,
according to the past connection time and the data transmission quantity of the historical network connection, calculating to obtain historical transmission efficiency;
based on the network traffic usage characteristics, the connection time and the historical transmission efficiency are respectively matched with the second time and the total network traffic;
and obtaining the target network connection matched to meet the use requirement.
Optionally, the network traffic usage characteristics are derived from a minimum network traffic rate, an overall traffic demand, and a possible usage time, including a sustained steady-state, overall demand,
when the network traffic usage characteristics are of a continuous stable type, the criteria for matching to meet the conditions are that the historical transmission efficiency is greater than the lowest network traffic rate and the connection time is greater than the second time;
when the network traffic usage characteristic is total demand type, the criterion for matching to meet the condition is that the product of the historical transmission efficiency and the second time is larger than the total network traffic.
Optionally, the target screening unit is further specifically configured to:
for the newly added network connection,
acquiring equipment information corresponding to the newly added network connection, wherein the equipment information comprises a network protocol type and available network bandwidth;
based on the network traffic usage characteristics, matching the equipment information with the second time and the total network 5 traffic;
when the network traffic usage characteristics are of a continuous stable type, the criterion that the matching meets the condition is that the transmission efficiency supported by the network protocol type is larger than the lowest network traffic rate, and the transmission efficiency corresponding to the available network bandwidth is larger than the lowest network traffic rate;
when the network traffic usage characteristic is total demand type, the criterion that the matching meets the condition is that the product of the transmission efficiency corresponding to the available network bandwidth and the second time is larger than the total network traffic.
Optionally, the state detection unit is configured to:
detecting the network state of the equipment after being connected with the target network in real time;
according to a preset time interval, carrying out requirement assessment regularly;
and when the current network connection state cannot meet the use requirement, the screening and connection of the target network connection 5 are carried out again.
A third aspect of an embodiment of the present invention provides an electronic device, including:
one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of the first aspect.
A fourth aspect of an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium has program code stored therein, the program code being callable by a processor to perform the method according to the first aspect.
In summary, the present invention provides a device communication method, apparatus, electronic device, and storage medium, which can dynamically adjust a network connection mode of a device according to a current network usage state and an available network resource condition of the device, and provide a usage experience meeting a usage requirement under a condition of ensuring a stable network connection.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of device communication method in accordance with an embodiment of the present invention;
FIG. 2 is a functional block diagram of an apparatus communication device according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device for performing a device communication method according to an embodiment of the present application.
Fig. 4 is a block diagram of a computer-readable storage medium storing or carrying program code for implementing a device communication method according to an embodiment of the present invention.
Icon:
a demand evaluation unit 110; a state detection unit 120; a list acquisition unit 130; a target screening unit 140; a connection establishment unit 150; an electronic device 300; a processor 310; a memory 320; a computer-readable storage medium 400; program code 410.
Detailed Description
The continuous development of mobile communication technology, the new generation of mobile communication networks provides users with higher data transmission speed and better transmission quality, and accordingly, higher requirements on equipment and communication environment are required. Meanwhile, on some devices, many applications that have higher demands on network speed have also been developed. In the actual use process, the unstable condition of the network connection quality of the equipment is caused due to the influence of real-time change of a complex communication environment, network fluctuation and the like, so that the use experience of a user is influenced. For example, the handset shows that the 5G network is already connected, but the web page is not actually opened.
Therefore, how to provide a better device communication method is a problem to be solved at present.
In view of this, the designer designs a device communication method, a device, an electronic device and a storage medium, which can dynamically adjust the network connection mode of the device according to the current network use state and the available network resource condition of the device, and provide the use experience meeting the use requirement under the condition of ensuring the stable network connection.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present invention, it should be noted that, directions or positional relationships indicated by terms such as "top", "bottom", "inner", "outer", etc., are directions or positional relationships based on those shown in the drawings, or those that are conventionally put in use, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
In the description of the present invention, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
Examples
Referring to fig. 1, a device communication method according to an embodiment of the present invention is applied to a device having a communication function, and it should be noted that, in the implementation of the present invention, the device may be a PC, a smart phone, a tablet computer, or other devices having a network connection function.
The device communication method comprises the following steps:
step S101, the network resource use state of the device in the past first time is obtained, and the network resource use requirement of the device in the future second time is evaluated.
The first time may be a duration that the device is in a relatively fixed state, such as opening a video, or entering a game. Or a predetermined fixed duration, for example 5 minutes or 10 minutes, for evaluating the status of the device during a relatively fixed period of time.
And the second time refers to a future period of time that the device is in a state within the past first time from the current point in time. Thus, the second time is typically associated with a state of the device during the past first time. Of course, as other implementation manners of the embodiment of the present invention, when the first time is a fixed value that is set in advance, the second time may also be a fixed value that is set in advance, where the value is equal to or longer than the first time.
Based on the above, the network resource usage requirement of the device in the future second time can be evaluated based on the network resource usage state of the device in the past first time. The specific evaluation method is as follows:
calculating an average network traffic usage of the device over a first time period in the past;
estimating the average network traffic utilization rate, the possible continuous use time length, namely the second time and the network traffic use characteristics according to the application program content currently used by the equipment;
calculating the total network traffic in the duration of the continuous use;
and obtaining a network resource use demand evaluation result of the equipment in a second time in the future according to the content.
The primary purpose of evaluating the network resource usage needs of a device during a second time in the future is to determine whether the current network state is able to continuously meet the continuous usage experience of the device during the second time. According to the definition of the second time, the use requirement of the device on the network resource does not change greatly in the time period. Based on the above, in combination with the content of the application program currently used by the device, the length of the second time can be estimated, and the network traffic usage characteristics can be estimated at the same time. Specifically, for example, the user using the device plays a certain strategy type online game in the past first time, then corresponding to the application of the type, according to the past use condition, the basic network speed for maintaining the smooth running of the strategy type online game can be determined, meanwhile, according to the type of the strategy type online game, the time for the user to continuously play the game can also be estimated, for example, the evaluation duration of one game is 20-30 minutes, the current user has been in use for 15 minutes in the past first time, then the estimated second time is about 5-15 minutes, and the network flow use characteristic is that the time is continuous and keeps stable higher than the basic network speed. For another example, when the user is watching a certain video, and the length of the video is 20 minutes by extracting video information, and 10 minutes have been watched in the past first time, the estimated length of the second time is about 10 minutes. According to the definition of the video watched by the user at present, the total network traffic required by the subsequent video after loading can be calculated, and the network traffic is characterized in that the video file of the total network traffic can be loaded within about 10 minutes.
Step S102, detecting the current network connection state, and comparing the current network connection state with the estimated use requirement.
Comparing the result of the evaluation with the current network connection state of the device, wherein the dimension mainly considered is based on whether the current network connection state can meet the requirement of the current use state in a second time in future. For example, whether the peak network speed is continuously decreasing in the current network connection state is determined, whether the resource loading amount reaching the total network traffic amount can be provided in the second time, or whether the network fluctuation is large currently exists, which results in that the network traffic higher than the basic network speed cannot be continuously ensured in the second time.
Step S103, if the current network connection state is judged to be unable to meet the use requirement, the network connection list currently available for the device is obtained, and the network connection list is determined by a historical connection record or a current scanning result.
When the current network connection state is judged to be unable to meet the use requirement of the equipment in the second time, a higher-quality network connection mode is required to be switched to ensure the use experience of the equipment in use. And selecting the target object for switching from the network connection list currently available for the equipment.
The available network connection list of the equipment is obtained from two sources, namely:
acquiring current available historical network connection from a historical connection record of the equipment;
searching for newly-added network connection currently available in the periphery through a wireless communication module of the equipment;
and integrating the historical network connection and the newly added network connection to obtain a network connection list currently available for the equipment.
It should be noted that the initially acquired network connection list, not all network connections can meet the network resource usage requirement of the device in the future second time. Therefore, for the connection targets in the network connection list, selection after screening is required.
Step S104, screening out the target network connection meeting the use requirement according to the connection condition of each network connection in the network connection list and the network resources corresponding to the network connection.
In this embodiment, for network connection acquired by two different channels, different screening modes are adopted because acquired related information is not used.
For the historical network connection, namely the network connection used by the equipment, the use condition of the equipment is recorded, and when screening is carried out, matching is carried out through the historical record, wherein the specific matching process is as follows:
according to the past connection time and the data transmission quantity of the historical network connection, calculating to obtain historical transmission efficiency;
based on the network traffic usage characteristics, the connection time and the historical transmission efficiency are respectively matched with the second time and the total network traffic;
and obtaining the target network connection matched to meet the use requirement.
In the matching process, the network traffic usage characteristics of the device in the evaluation result are the main dimensions affecting the matching result.
The network traffic usage characteristics are derived from the minimum network traffic rate, the overall traffic demand, and the possible usage time, including sustained stability, total demand. The persistent stability corresponds to the above example of online game play, and may be evaluated as persistent stability, except for games, video conferences, and internet phones. The total demand type may generally correspond to the above-mentioned video watching scenario, and may further include file downloading, updating, etc. For different types of network traffic usage characteristics, when matching, the matching standards meeting the conditions also differ, and the specific implementation standards are as follows:
when the network traffic usage characteristics are of a continuous stable type, the criteria for matching to meet the conditions are that the historical transmission efficiency is greater than the lowest network traffic rate and the connection time is greater than the second time;
when the network traffic usage characteristic is total demand type, the criterion for matching to meet the condition is that the product of the historical transmission efficiency and the second time is larger than the total network traffic.
For the newly added network connection, since the previous device is not connected with the newly added network connection, only the device information acquired during the exploration is used for matching. In this embodiment, when the network connection is opened, other devices capable of providing network connection will broadcast their own device information, including supported network protocol types, available network bandwidths, etc., so that other devices in the same detectable network can be identified, and multiple devices in the same network can provide network connection to each other. For the matching of newly added network connection, the specific method is as follows:
acquiring equipment information corresponding to the newly added network connection, wherein the equipment information comprises a network protocol type and available network bandwidth;
based on the network traffic usage characteristics, matching the equipment information with the second time and the total network traffic;
when the network traffic usage characteristics are of a continuous stable type, the criterion that the matching meets the condition is that the transmission efficiency supported by the network protocol type is larger than the lowest network traffic rate, and the transmission efficiency corresponding to the available network bandwidth is larger than the lowest network traffic rate;
when the network traffic usage characteristic is total demand type, the criterion that the matching meets the condition is that the product of the transmission efficiency corresponding to the available network bandwidth and the second time is larger than the total network traffic.
It should be noted that as a preferred embodiment, there may be a need for the use of network resources by the device providing the network connection, whether it is a historical network connection or a newly added network connection. Therefore, the effect of this factor is also taken into account when matching. Meanwhile, as the devices are connected, the types of the used network protocols can be different, and certain characteristics exist in the different types of network protocols, and the influence caused by the types of the network protocols also need to be considered when the network traffic is matched based on the use characteristics of the network traffic.
For example, four devices of ABCD may be connected to each other through a 4g/5g module, a screening is performed to obtain three target network connections of BCD when a network connection switch is required, B connects a network through a USB network card, C connects a network through an optical fiber, D connects a network through WiFi, and at this time, when a network traffic usage feature of a is continuous and stable, a connection is established by a C with the highest connection stability is preferred.
Further, as a preferred implementation manner of the embodiment of the present invention, when screening the target network connection, considering whether the provided resource can meet the network resource usage requirement in the second time, for some special scenarios, the security problem of data transmission needs to be considered, that is, whether the device providing the historical network connection or the newly added network connection supports some specific secure transmission protocols, and for the device capable of supporting the network connection, the device is used as the successfully matched target network connection.
Step S105, establishing the connection between the equipment and the target network.
Through the matching process, network connections meeting the conditions can be screened out from the network connection list. For the screening result, if a plurality of results exist, the proportion of the cases exceeding the meeting condition can be eliminated for the equipment to select. The connection may be made directly by selecting the one that performs best from among a plurality of results.
Before the connection of the device and the target network is established, the user of the device can be selected to prompt, and the connection is performed after the user selects. In order not to disturb the user's use, it is also possible to choose to connect directly.
As a preferred implementation manner of the present embodiment, after the device is successfully connected to the target network, the device communication method provided in the present embodiment further includes:
detecting the network state of the equipment after being connected with the target network in real time;
according to a preset time interval, carrying out requirement assessment regularly;
and when the current network connection state cannot meet the use requirement, the screening and connection of the target network connection are carried out again.
Considering that the use state of the device may change continuously, for example, the user starts working after playing a game or starts using after downloading a certain application. After the use state is changed, the use requirement can be changed. Correspondingly, the current connected target network connection is not necessarily capable of continuously meeting the requirements of equipment after change, on the basis, if the use experience of the equipment is required to be continuously ensured, the detection and the evaluation are required to be continuously carried out, and whether the steps are executed or not is judged according to the evaluation result of each time, so that the switching of the new target network connection is completed.
In summary, the device communication method provided in this embodiment can dynamically adjust the network connection mode of the device according to the current network usage state and the available network resource condition of the device, and provide a usage experience meeting the usage requirement under the condition of ensuring the stable network connection.
As shown in fig. 2, the device communication apparatus provided by the embodiment of the present invention includes:
a demand assessment unit 110, configured to obtain a network resource usage status of the device in a first time in the past, and assess a network resource usage demand of the device in a second time in the future;
the state detection unit 120 is configured to detect a current network connection state, and compare the current network connection state with the estimated usage requirement;
a list obtaining unit 130, configured to obtain a network connection list currently available to the device if it is determined that the current network connection state cannot meet the use requirement, where the network connection list is determined by a historical connection record or a current scanning result;
the target screening unit 140 is configured to screen out a target network connection that meets the usage requirement according to the connection condition of each network connection in the network connection list and the network resource corresponding to the network connection;
a connection establishment unit 150, configured to establish a connection between the device and the target network connection.
As a preferred implementation manner of this embodiment, the requirement evaluation unit 110 is specifically configured to:
calculating an average network traffic usage of the device over a first time period in the past;
estimating the average network traffic utilization rate, the possible continuous use time length, namely the second time and the network traffic use characteristics according to the application program content currently used by the equipment;
calculating the total network traffic in the duration of the continuous use;
and obtaining a network resource use demand evaluation result of the equipment in a second time in the future according to the content.
As a preferred implementation of this embodiment, the list obtaining unit 130 is specifically configured to:
acquiring current available historical network connection from a historical connection record of the equipment;
searching for newly-added network connection currently available in the periphery through a wireless communication module of the equipment;
and integrating the historical network connection and the newly added network connection to obtain a network connection list currently available for the equipment.
As a preferred implementation manner of this embodiment, the target screening unit 140 is specifically configured to:
for the historical network connection in question,
according to the past connection time and the data transmission quantity of the historical network connection, calculating to obtain historical transmission efficiency;
based on the network traffic usage characteristics, the connection time and the historical transmission efficiency are respectively matched with the second time and the total network traffic;
and obtaining the target network connection matched to meet the use requirement.
As a preferred implementation of this embodiment, the network traffic usage characteristics are derived from the minimum network traffic rate, the overall traffic demand and the possible usage time, including continuous stability, total demand,
when the network traffic usage characteristics are of a continuous stable type, the criteria for matching to meet the conditions are that the historical transmission efficiency is greater than the lowest network traffic rate and the connection time is greater than the second time;
when the network traffic usage characteristic is total demand type, the criterion for matching to meet the condition is that the product of the historical transmission efficiency and the second time is larger than the total network traffic.
As a preferred implementation manner of this embodiment, the target screening unit 140 is further specifically configured to:
for the newly added network connection,
acquiring equipment information corresponding to the newly added network connection, wherein the equipment information comprises a network protocol type and available network bandwidth;
based on the network traffic usage characteristics, matching the equipment information with the second time and the total network traffic;
when the network traffic usage characteristics are of a continuous stable type, the criterion that the matching meets the condition is that the transmission efficiency supported by the network protocol type is larger than the lowest network traffic rate, and the transmission efficiency corresponding to the available network bandwidth is larger than the lowest network traffic rate;
when the network traffic usage characteristic is total demand type, the criterion that the matching meets the condition is that the product of the transmission efficiency corresponding to the available network bandwidth and the second time is larger than the total network traffic.
As a preferred implementation of this embodiment, the state detection unit 120 is further configured to:
detecting the network state of the equipment after being connected with the target network in real time;
according to a preset time interval, carrying out requirement assessment regularly;
and when the current network connection state cannot meet the use requirement, the screening and connection of the target network connection are carried out again.
The device communication apparatus provided by the embodiment of the present invention is used to implement the device communication method, so that the specific implementation manner is the same as the above method, and will not be repeated here.
As shown in fig. 3, an embodiment of the present invention provides a block diagram of an electronic device 300. The electronic device 300 may be a smart phone, tablet, electronic book, etc. capable of running an application program of the electronic device 300. The electronic device 300 in this application may include one or more of the following components: a processor 310, a memory 320, and one or more application programs, wherein the one or more application programs may be stored in the memory 320 and configured to be executed by the one or more processors 310, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Processor 310 may include one or more processing cores. The processor 310 utilizes various interfaces and lines to connect various portions of the overall electronic device 300, perform various functions of the electronic device 300, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 320, and invoking data stored in the memory 320. Alternatively, the processor 310 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 310 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 310 and may be implemented solely by a single communication chip.
The Memory 320 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 320 may be used to store instructions, programs, code sets, or instruction sets. The memory 320 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the terminal in use (such as phonebook, audio-video data, chat-record data), etc.
As shown in fig. 4, an embodiment of the present invention provides a block diagram of a computer-readable storage medium 400. The computer readable medium has stored therein a program code 410, said program code 410 being callable by a processor for performing the method described in the above method embodiments.
The computer readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 400 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 400 has storage space for program code 410 that performs any of the method steps described above. These program code 410 can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
In summary, the present invention provides a device communication method, apparatus, electronic device, and storage medium, which can dynamically adjust a network connection mode of a device according to a current network usage state and an available network resource condition of the device, and provide a usage experience meeting a usage requirement under a condition of ensuring a stable network connection.
In several embodiments disclosed in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (10)

1. A method of device communication, the method comprising:
acquiring the network resource use state of the equipment in the past first time, and evaluating the network resource use requirement of the equipment in the future second time;
detecting the current network connection state, and comparing the current network connection state with the estimated use requirement;
if the current network connection state is judged to be unable to meet the use requirement, acquiring a network connection list currently available for the equipment, wherein the network connection list is determined by a historical connection record or a current scanning result;
screening out target network connections meeting the use requirements according to the connection conditions of all network connections in a network connection list and network resources corresponding to the network connections;
and establishing connection between the equipment and the target network.
2. The device communication method according to claim 1, wherein the step of obtaining the network resource usage status of the device in the past first time and evaluating the network resource usage demand thereof in the future second time specifically comprises:
calculating an average network traffic usage of the device over a first time period in the past;
estimating the average network traffic utilization rate, the possible continuous use time length, namely the second time and the network traffic use characteristics according to the application program content currently used by the equipment;
calculating the total network traffic in the duration of the continuous use;
and obtaining a network resource use demand evaluation result of the equipment in a second time in the future according to the content.
3. The device communication method according to claim 2, wherein the step of obtaining a list of network connections currently available to the device specifically comprises:
acquiring current available historical network connection from a historical connection record of the equipment;
searching for newly-added network connection currently available in the periphery through a wireless communication module of the equipment;
and integrating the historical network connection and the newly added network connection to obtain a network connection list currently available for the equipment.
4. The device communication method according to claim 3, wherein the step of screening out the target network connection meeting the usage requirement according to the connection condition of each network connection in the network connection list and the network resource corresponding to the network connection specifically includes:
for the historical network connection in question,
according to the past connection time and the data transmission quantity of the historical network connection, calculating to obtain historical transmission efficiency;
based on the network traffic usage characteristics, the connection time and the historical transmission efficiency are respectively matched with the second time and the total network traffic;
and obtaining the target network connection matched to meet the use requirement.
5. The device communication method of claim 4, wherein the network traffic usage characteristics are derived from a minimum network traffic rate, an aggregate traffic demand, and a possible usage time, including a sustained steady-state, aggregate demand,
when the network traffic usage characteristics are of a continuous stable type, the criteria for matching to meet the conditions are that the historical transmission efficiency is greater than the lowest network traffic rate and the connection time is greater than the second time;
when the network traffic usage characteristic is total demand type, the criterion for matching to meet the condition is that the product of the historical transmission efficiency and the second time is larger than the total network traffic.
6. The device communication method according to claim 5, wherein the step of screening out the target network connection meeting the usage requirement according to the connection condition of each network connection in the network connection list and the network resource corresponding to the network connection, further specifically includes:
for the newly added network connection,
acquiring equipment information corresponding to the newly added network connection, wherein the equipment information comprises a network protocol type and available network bandwidth;
based on the network traffic usage characteristics, matching the equipment information with the second time and the total network traffic;
when the network traffic usage characteristics are of a continuous stable type, the criterion that the matching meets the condition is that the transmission efficiency supported by the network protocol type is larger than the lowest network traffic rate, and the transmission efficiency corresponding to the available network bandwidth is larger than the lowest network traffic rate;
when the network traffic usage characteristic is total demand type, the criterion that the matching meets the condition is that the product of the transmission efficiency corresponding to the available network bandwidth and the second time is larger than the total network traffic.
7. The device communication method as recited in claim 1, wherein the method further comprises:
detecting the network state of the equipment after being connected with the target network in real time;
according to a preset time interval, carrying out requirement assessment regularly;
and when the current network connection state cannot meet the use requirement, the screening and connection of the target network connection are carried out again.
8. A device communication apparatus, the apparatus comprising:
the demand assessment unit is used for acquiring the network resource use state of the equipment in the past first time and assessing the network resource use demand of the equipment in the future second time;
the state detection unit is used for detecting the current network connection state and comparing the current network connection state with the estimated use requirement;
the list acquisition unit is used for acquiring a network connection list currently available for the equipment if the current network connection state cannot meet the use requirement of the network connection state, wherein the network connection list is determined by a historical connection record or a current scanning result;
the target screening unit is used for screening out target network connections meeting the use requirements according to the connection conditions of all network connections in the network connection list and network resources corresponding to the network connections;
and the connection establishment unit is used for establishing the connection between the equipment and the target network connection.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-7.
CN202310035355.3A 2023-01-10 2023-01-10 Equipment communication method and device, electronic equipment and storage medium Pending CN116133089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310035355.3A CN116133089A (en) 2023-01-10 2023-01-10 Equipment communication method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310035355.3A CN116133089A (en) 2023-01-10 2023-01-10 Equipment communication method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116133089A true CN116133089A (en) 2023-05-16

Family

ID=86307633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310035355.3A Pending CN116133089A (en) 2023-01-10 2023-01-10 Equipment communication method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116133089A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116390189A (en) * 2023-06-05 2023-07-04 微网优联科技(成都)有限公司 Route planning method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116390189A (en) * 2023-06-05 2023-07-04 微网优联科技(成都)有限公司 Route planning method, device, electronic equipment and storage medium
CN116390189B (en) * 2023-06-05 2023-08-15 微网优联科技(成都)有限公司 Route planning method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108647089B (en) Resource allocation method, device, terminal and storage medium
CN102521284B (en) Page screenshot processing method and device based on mobile terminal browser
CN106936671B (en) Multi-screen interaction method and device and terminal equipment
CN107402790B (en) Application program starting method and device, storage medium and terminal
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
CN109474528B (en) Communication connection method, device, terminal equipment and computer readable storage medium
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN110321075B (en) Data migration method, device, equipment and storage medium based on nbd equipment
MX2007015447A (en) Efficient formation of ad hoc networks.
CN106954248A (en) A kind of method for network access and device
CN106664433B (en) Multimedia messages playback method and system, standardized server, live streaming terminal
CN109725543B (en) Equipment control code configuration method and device, cloud server and network system
CN116133089A (en) Equipment communication method and device, electronic equipment and storage medium
CN111935694B (en) Bluetooth device connection method and device, electronic device and readable storage medium
CN111274153A (en) Automatic testing method and device and electronic equipment
CN106815283A (en) Data processing method, device and electronic equipment
CN107450951B (en) Application processing method and device, storage medium and terminal
CN101911001B (en) Messaging device and method
CN111784412A (en) Information pushing method and device, electronic equipment and storage medium
US20080058973A1 (en) Music playback system and music playback machine
CN107291543B (en) Application processing method and device, storage medium and terminal
CN110633148A (en) System operation optimization method and device, electronic equipment and storage medium
CN107168648B (en) File storage method and device and terminal
CN108616870A (en) The method and apparatus for identifying the terminal preferentially customized
CN109829152A (en) Head portrait replacing options, device, computer 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