CN116761230B - Equipment network access method and device, electronic equipment and computer readable storage medium - Google Patents

Equipment network access method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116761230B
CN116761230B CN202311037091.1A CN202311037091A CN116761230B CN 116761230 B CN116761230 B CN 116761230B CN 202311037091 A CN202311037091 A CN 202311037091A CN 116761230 B CN116761230 B CN 116761230B
Authority
CN
China
Prior art keywords
frequency point
storage list
connection
historical
connection frequency
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
CN202311037091.1A
Other languages
Chinese (zh)
Other versions
CN116761230A (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.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu 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 TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202311037091.1A priority Critical patent/CN116761230B/en
Publication of CN116761230A publication Critical patent/CN116761230A/en
Application granted granted Critical
Publication of CN116761230B publication Critical patent/CN116761230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • 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

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for network access of equipment, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: if the terminal equipment is detected to restart the network, acquiring the current position information of the terminal equipment; acquiring a frequency point storage list, wherein the frequency point storage list stores historical position information corresponding to historical connection frequency points; determining a target selection position from the full-frequency band and frequency point storage list according to the relative distance difference between the current position information and the historical position information; and selecting a target connection frequency point from the target selection position, and establishing network access of the terminal equipment according to the target connection frequency point. When the position change is large, the target connection frequency point is directly selected from the full frequency band and is selected from the frequency point storage list in a skip mode, and the time-consuming problem caused by network searching from the frequency point storage list can be avoided.

Description

Equipment network access method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the field of communication, in particular to a method and a device for network access of equipment, electronic equipment and a computer readable storage medium.
Background
Communication devices such as mobile phones are generally accessed to corresponding networks through frequency points, for example, when the mobile phones restart the networks, the mobile phones firstly search the networks storing the frequency points and then search the networks in full frequency bands.
However, with the requirement of daily life, when the communication device re-enters the network and has changed position information, for example, after the mobile phone switches the flight model or is restarted, the situation that the network needs to be re-entered, but the front and back positions are different exists, for example, a typical scene is flight, after a user arrives at a new place, the flight mode of the mobile phone is closed or restarted, the mobile phone still can perform network searching of a storage frequency point first, and then perform network searching of a full frequency band, but because the place is changed, the stored frequency point is not applicable any more, so that the network searching time from the storage frequency point is longer, and the user experience is affected.
Disclosure of Invention
The embodiment of the application provides a device networking method, a device, electronic equipment and a computer readable storage medium, which can improve the network searching efficiency of the device and realize the quick networking of the device.
The embodiment of the application provides a device networking method, which is applied to terminal devices and comprises the following steps:
if the terminal equipment is detected to restart the network, acquiring the current position information of the terminal equipment;
Acquiring a frequency point storage list, wherein the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points;
determining a target selection position from a full frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, wherein the target selection position is one of the full frequency band and the frequency point storage list;
and selecting a target connection frequency point from the target selection position, and establishing network access of the terminal equipment according to the target connection frequency point.
Correspondingly, the embodiment of the application also provides a device network access device, which is applied to the terminal device and comprises:
the detection module is used for acquiring the current position information of the terminal equipment if the terminal equipment is detected to restart the network;
the acquisition module is used for acquiring a frequency point storage list, wherein the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points;
the determining module is used for determining a target selection position from the full-frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, wherein the target selection position is one of the full-frequency band and the frequency point storage list;
And the connection module is used for selecting a target connection frequency point from the target selection position and establishing network access of the terminal equipment according to the target connection frequency point.
Optionally, in some embodiments of the present application, the selecting module includes:
the first selecting unit is used for taking the full frequency band as a target selecting position if the relative distance difference exceeds a distance threshold value;
and the second selecting unit is used for taking the frequency point storage list as a target selecting position if the relative distance difference does not exceed a distance threshold value.
Wherein, in some embodiments of the present application, if the relative distance difference exceeds a distance threshold, the connection module includes:
and the connection unit is used for skipping the search of the target connection frequency point in the frequency point storage list and directly searching the target connection frequency point from the full frequency band.
Wherein, in some embodiments of the present application, the apparatus further comprises an update module, the update module comprising:
the deleting unit is used for deleting the historical connection frequency points from the frequency point storage list to obtain a transition storage list;
and the storage unit is used for storing the target connection frequency point and the current position information into the transition storage list to obtain a target storage list.
In some embodiments of the present application, the historical connection frequency point includes at least two, and the selecting module includes:
a determining unit, configured to determine a frequency point to be deleted from the historical connection frequency points according to the relative distance differences between the current location information and each of the historical location information;
the deleting unit is used for deleting the frequency points to be deleted from the frequency point storage list to obtain an updated frequency point storage list;
the third selecting unit is used for taking the full frequency band as a target selecting position if the updated frequency point storage list is empty;
and the fourth selection unit is used for taking the updated frequency point storage list as a target selection position if the updated frequency point storage list is not empty.
Wherein, in some embodiments of the application, the determining unit comprises:
the sorting subunit is used for sorting the historical connection frequency points from small to large according to the relative distance difference to obtain a frequency point sorting list;
the first determining subunit is used for taking the first historical connection frequency point in the frequency point ordered list as a first connection frequency point;
and the second determining subunit is used for taking all the historical connection frequency points as frequency points to be deleted if the relative distance difference of the first connection frequency points exceeds a distance threshold value.
And the third determining subunit is configured to select, if the relative distance difference between the first connection frequency points does not exceed the distance threshold, a history connection frequency point located in the middle position from the frequency point ordered list as a first reference connection frequency point, and determine a frequency point to be deleted from the frequency point ordered list according to the first reference connection frequency point.
Wherein, in some embodiments of the present application, the third determining subunit is specifically configured to:
if the relative distance difference corresponding to the first reference connection frequency point exceeds the distance threshold, directly taking the first reference connection frequency point and a history connection frequency point positioned behind the first reference connection frequency point in the frequency point ordered list as a frequency point to be deleted;
and selecting a historical connection frequency point positioned in the middle position of the first connection frequency point and the first reference connection frequency point from the frequency point sorting list as a second reference connection frequency point, and determining a frequency point to be deleted from the first connection frequency point and the first reference connection frequency point according to the second reference connection frequency point.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the computer program when executed by the processor implements the steps in the device networking method described above.
In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps in the above-mentioned device networking method.
In a fifth aspect, embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations described in the embodiments of the present application.
The beneficial effects of the application are as follows:
if the terminal equipment is detected to restart the network, the current position information of the terminal equipment is acquired, a frequency point storage list is acquired, the frequency point storage list stores historical connection frequency points and corresponding historical position information, a target selection position is determined from a full-frequency-band and frequency point storage list according to the relative distance difference between the current position information and the historical position information, the target selection position is one of the full-frequency-band and frequency point storage list, the target connection frequency points are selected from the target selection position, and network access of the terminal equipment is established according to the target connection frequency points. The method comprises the steps of calculating the relative distance difference between current position information and historical position information, judging whether the network access position of equipment is changed or not, selecting different target selection positions according to position conditions, improving efficiency of selecting target connection frequency bands, improving network searching efficiency of the equipment, and achieving quick network access of the equipment. When the position change is large, the target connection frequency point is directly selected from the full frequency band and is selected from the frequency point storage list in a skip mode, and the time-consuming problem caused by network searching from the frequency point storage list can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a device networking method provided by an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for network access of a device according to an embodiment of the present application;
fig. 3 is another schematic flow chart of a method for network access of a device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for network access according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals: 10-terminal equipment; 301-a detection module; 302, an acquisition module; 303-a determination module; 304-a connection module; 401-a processor; 402-memory; 403-power supply; 404-input unit.
Detailed Description
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a device networking method, a device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the application provides a device networking device suitable for electronic devices (terminal devices), wherein the electronic devices comprise communication devices such as tablet computers, electronic whiteboards, intelligent watches or mobile phones.
Referring to fig. 1, fig. 1 is a schematic view of a scenario in which a terminal device executes a network access method of the device, where a specific execution procedure of the terminal device executing the network access method of the device is as follows:
if the terminal device 10 detects that the network is restarted, the current position information of the terminal device is acquired, a frequency point storage list is acquired, wherein the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points, a target selection position is determined from a full-frequency band and frequency point storage list according to the relative distance difference between the current position information and the historical position information, a target connection frequency point is selected from the target selection position, and network access of the terminal device is established according to the target connection frequency point.
It can be understood that the frequency point storage list is a list formed by storing a historical time connection network, the historical connection frequency point is a frequency point of the terminal equipment historical time connection network, and the historical position information is a historical position of the terminal equipment when the terminal equipment is connected with the network based on the historical connection frequency point.
It can be understood that when the relative distance difference meets a certain distance requirement, the full frequency band can be directly used as a selection position of the target connection frequency point, and the search for the frequency point storage list is skipped, so that the problem that the historical connection frequency point in the frequency point storage list is invalid due to large position change, and further the search time length is increased because the frequency point storage list is searched first when the terminal equipment is accessed to the network is avoided.
According to the embodiment of the application, the judgment of whether the network access position of the equipment is changed or not is realized through the calculation of the relative distance difference between the current position information and the historical position information, different target selection positions are selected according to the position condition, the efficiency of selecting the target connection frequency band is improved, the network searching efficiency of the equipment is improved, and the quick network access of the equipment is realized. When the position change is large, the target connection frequency point is directly selected from the full frequency band and is selected from the frequency point storage list in a skip mode, and the time-consuming problem caused by network searching from the frequency point storage list can be avoided.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
Referring to fig. 2, fig. 2 is a flow chart of a method for device network access according to an embodiment of the present application. The specific flow of the network access method of the equipment is as follows:
S101, if the terminal equipment is detected to restart the network, acquiring the current position information of the terminal equipment.
It will be appreciated that the location information is the location information of the user carrying the terminal device, i.e. the location information of the terminal device, which may be obtained by means of a global positioning system (GPS, global Positioning System), wherein the current location information is the location information of the terminal device or the user carrying the terminal device at the current location.
The network restarting process of the equipment is optimized according to the position information of the terminal equipment by acquiring the current position information when the terminal equipment restarts the network, so that the network access efficiency of the terminal equipment is improved.
S102, acquiring a frequency point storage list, wherein the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points.
It can be understood that the frequency point storage list is a list for storing frequency points and position information of the network connected by the terminal device in the historical time, and accordingly, in general, when the terminal device restarts the network connection, the terminal device searches for the historical connection frequency points from the frequency point storage list first, and connects the network through the searched matched frequency points. And if no suitable connection frequency point is searched in the frequency point storage list, searching the connection frequency point from the full frequency band, thereby realizing the acquisition of the frequency point meeting the current network access requirement of the equipment and further realizing the network access of the equipment.
However, due to the change of the location of the terminal device, the cell changes, so that the terminal cannot search the corresponding historical connection frequency point from the frequency point storage list, but can only search the proper frequency point from the full frequency band, and therefore, the time-consuming problem of inefficiency exists in the searching process from the frequency point storage list.
Accordingly, embodiments of the present application aim to address how to save this time-consuming problem.
S103, determining a target selection position from a full-frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, wherein the target selection position is one of the full-frequency band and the frequency point storage list.
It is understood that the relative distance difference is a distance difference between the position points corresponding to the current position information and the history position information, that is, a distance between the two positions.
The full frequency band is a frequency band aiming at the full network, each frequency band comprises a plurality of frequency points, and compared with a frequency point storage list, the frequency point coverage range of the full frequency band is wider.
And determining a target selection position from the full-frequency band and frequency point storage list through the relative distance difference, thereby being beneficial to realizing the rapid acquisition of the frequency point required by the network access of the equipment. When the target selection position is the full frequency band, the terminal device can skip the acquisition of the frequency point from the frequency point storage list, and directly acquire the proper frequency point from the full frequency band.
The frequency point is related to the cell according to the position, so that the target selection position is determined according to the relative distance difference between the current position and the history position information, and the selected target selection position is ensured to be effective.
S104, selecting a target connection frequency point from the target selection position, and establishing network access of the terminal equipment according to the target connection frequency point.
It can be understood that when the target selection position is valid, the acquisition of the frequency point required by the network access of the terminal equipment is ensured, the acquisition of the target connection frequency point is ensured, and the realization of the network requirement of restarting the network access of the terminal equipment is ensured.
Optionally, the historical location information reflects a frequency point condition of the terminal device in the historical time connection network, when the relative distance difference is large, it is indicated that the current location of the terminal device is far away from the location of the historical time connection network, or the terminal device is not currently in a cell of the historical time connection network, so that a full frequency band can be directly used as a target selection location, that is, optionally, in some embodiments of the present application, the step of determining, according to the relative distance difference between the current location information and the historical location information, the target selection location "from the full frequency band and the frequency point storage list includes:
If the relative distance difference exceeds a distance threshold, taking the full frequency band as a target selection position;
and if the relative distance difference does not exceed the distance threshold value, taking the frequency point storage list as a target selection position.
In the embodiment of the application, the distance threshold is set according to actual needs.
It can be understood that if the relative distance difference exceeds the distance threshold, it indicates that the current position of the terminal device is far away from the position of the network connected in the history time, or the terminal device is not in the cell where the network connected in advance is located, so that the frequency point connected to the network needs to be acquired again, and accordingly, the full frequency band is taken as the target selection position, which is helpful for realizing the rapid acquisition of the new frequency point.
Correspondingly, when the relative distance difference does not exceed the distance threshold, the terminal equipment is not separated from the cell of the prior network, or the distance between the terminal equipment and the position of the network connected with the historical time is not far, and network access operation can be performed through the historical connection frequency point of the prior network, so that the historical connection frequency point can be used as a target selection position for the situation, and the quick acquisition of the frequency point of network access of the equipment can be realized.
Correspondingly, because the historical connection frequency points are stored in the frequency point storage list, the network access of the equipment can be rapidly realized by searching the frequency point storage list. Likewise, when no suitable frequency point exists in the frequency point storage list, the searching of the frequency point storage list is skipped to directly search from the full frequency band, so that the searching process of the frequency point storage list can be saved, the acquisition of the frequency point required by the network access of the equipment is quickened, and the network access of the equipment is quickened. That is, optionally, in some embodiments of the present application, if the relative distance difference exceeds a distance threshold, the step of selecting a target connection frequency point from the target selection position includes:
And skipping the searching of the target connection frequency points in the frequency point storage list, and directly searching the target connection frequency points from the full frequency band.
When the relative distance difference exceeds the distance threshold value, the frequency point storage list is skipped to directly search the target connection frequency point from the full frequency band, the process of searching from the frequency point storage list is saved, and the rapid acquisition of the target connection frequency point is realized.
Correspondingly, after searching the target connection frequency point from the full frequency band, the target connection frequency point can be updated to the frequency point storage list to obtain a new frequency point storage list. That is, optionally, in some embodiments of the present application, after the step of "skipping searching for the target connection frequency point in the frequency point storage list and directly searching for the target connection frequency point from the full frequency band", the method further includes:
deleting the historical connection frequency points from the frequency point storage list to obtain a transition storage list;
and storing the target connection frequency point and the current position information into the transition storage list to obtain a target storage list.
The method comprises the steps of deleting historical connection frequency points which do not meet the relative distance difference from a frequency point storage list, avoiding searching invalid historical connection frequency points when searching the frequency point storage list, correspondingly, obtaining a new frequency point storage list by storing target connection frequency points into the frequency point storage list, and correspondingly, searching the frequency points of the equipment network access from the new frequency point storage list when the equipment network access next time.
Accordingly, there may be a plurality of history connection frequency points in the frequency point storage list, so that a relative distance difference corresponding to each history connection frequency point may be calculated, and the corresponding history connection frequency point may be deleted from the frequency point storage list according to the relative distance difference to obtain an updated frequency point storage list, that is, optionally, in some embodiments of the present application, the history connection frequency point includes at least two, and the step of determining, from the full frequency band and the frequency point storage list, a target selection position "according to the relative distance difference between the current position information and the history position information includes:
determining a frequency point to be deleted from the historical connection frequency points according to the relative distance difference between the current position information and each historical position information;
deleting the frequency points to be deleted from the frequency point storage list to obtain an updated frequency point storage list;
if the updated frequency point storage list is empty, taking the full frequency band as a target selection position;
and if the updated frequency point storage list is not empty, taking the updated frequency point storage list as a target selection position.
The frequency point storage list is optimized by deleting the historical connection frequency points which do not meet the connection requirement in the frequency point storage list through the relative distance difference, wherein the terminal equipment accesses the network in the historical time through the historical connection frequency points in the frequency point storage list, so that the speed of accessing the network through the historical connection frequency points is higher, and if the optimized updated historical connection frequency points meeting the requirement still exist in the updated frequency point storage list, namely the updated frequency point storage list is not empty, the updated frequency point storage list can be directly used as a target selection position. Correspondingly, if the updated frequency point storage list is empty, the full frequency band is used as a target selection position.
When determining the frequency point to be deleted, the method may rank each historical connection frequency point according to the relative distance difference of each historical connection frequency point, and quickly determine the historical connection frequency point to be deleted according to the ranking result, that is, optionally, in some embodiments of the present application, the step of determining the frequency point to be deleted from the historical connection frequency points according to the relative distance difference of the current location information and each historical location information includes:
sorting the historical connection frequency points from small to large according to the relative distance difference to obtain a frequency point sorting list;
taking a historical connection frequency point positioned at the first position in the frequency point sequencing list as a first connection frequency point;
and if the relative distance difference of the first connection frequency points exceeds a distance threshold, taking all the historical connection frequency points as frequency points to be deleted.
And if the relative distance difference of the first connection frequency points does not exceed the distance threshold value, selecting a history connection frequency point positioned in the middle position from the frequency point sorting list as a first reference connection frequency point, and determining a frequency point to be deleted from the frequency point sorting list according to the first reference connection frequency point.
The frequency point sorting list is sorted according to the relative distance difference from small to large, so if the relative distance difference of the first connection frequency point exceeds the distance threshold value, the relative distance difference of the rest historical connection frequency points in the frequency point sorting list exceeds the distance threshold value, and therefore all the historical connection frequency points in the frequency point storage list can be used as frequency points to be deleted.
The frequency point sorting list is designed, and the first connection frequency point is selected, so that screening of frequency points to be deleted in the frequency point storage list can be rapidly achieved.
Otherwise, if the first connection frequency point does not meet the requirement, the historical connection frequency point located in the middle position can be selected from the frequency point sorting list to serve as a first reference connection frequency point, and screening of the frequency points to be deleted is conducted based on the first reference connection frequency point.
Accordingly, if the relative distance difference corresponding to the first reference connection frequency point exceeds the distance threshold, it indicates that the relative distance differences of the historical connection frequency points located after the first reference connection frequency point exceed the distance threshold, so when the relative distance difference of the first reference connection frequency point exceeds the distance threshold, the historical connection frequency point located after the first reference connection frequency point can be directly used as the frequency point to be deleted, that is, optionally, in some embodiments of the present application, the step of determining the frequency point to be deleted from the frequency point ordered list according to the first reference connection frequency point includes:
If the relative distance difference corresponding to the first reference connection frequency point exceeds the distance threshold, directly taking the first reference connection frequency point and a history connection frequency point positioned behind the first reference connection frequency point in the frequency point ordered list as a frequency point to be deleted;
and selecting a historical connection frequency point positioned in the middle position of the first connection frequency point and the first reference connection frequency point from the frequency point sorting list as a second reference connection frequency point, and determining a frequency point to be deleted from the first connection frequency point and the first reference connection frequency point according to the second reference connection frequency point.
The method comprises the steps of selecting a first reference connection frequency point and a second reference connection frequency point, realizing the confirmation of the frequency point to be deleted circularly, gradually determining a history connection frequency point positioned in the middle position, and realizing the quick confirmation of the frequency point to be deleted in a frequency point storage list through the judgment of the relative distance difference and the distance threshold value of the history connection frequency point.
It can be understood that, in the embodiment of the application, the determination of the target selection position is realized through the comparison of the relative distance difference between the current position information and the historical position information and the distance threshold value, if the relative distance difference exceeds the distance threshold value, the full frequency band can be directly used as the target selection position, the target connection frequency point is determined from the full frequency band, the search of the historical connection frequency point in the frequency point storage list is skipped, the acquisition of the frequency point is accelerated, the network searching and network access efficiency of the equipment is improved, and the user experience is improved.
For the understanding of the embodiments of the present application, please refer to fig. 3, fig. 3 is another schematic flow chart of the method for device network access provided in the embodiment of the present application, specifically, the flow chart includes:
s201, terminal equipment normally resides in a network, a global positioning system is started, specific position information is obtained, and a connection frequency point and position information corresponding to the connection frequency point are put into a frequency point storage list;
wherein the location information may be represented by latitude and longitude information.
S202, if the terminal equipment switch is detected to fly or the equipment is restarted, S203 is executed;
s203, acquiring current position information of the terminal equipment;
s204, acquiring position information and connection frequency points in a frequency point storage list, taking the position information as historical position information, and taking the connection frequency points as historical connection frequency points;
s205, calculating the relative distance difference between the current position information and the historical position information;
s206, if the relative distance difference exceeds the distance threshold, executing S207, otherwise, executing S211;
in the embodiment of the present application, the distance threshold may be set according to actual needs, for example, may be 2×107km (LTE cell maximum coverage distance).
S207, deleting the historical connection frequency points corresponding to the relative distance difference;
s208, full-band searching is carried out to obtain a target connection frequency point;
s209, the terminal equipment accesses the network according to the target connection frequency point;
s210, storing the target connection frequency point into a frequency point storage list to obtain a target storage list;
s211, reserving a historical connection frequency point corresponding to the relative distance difference in a frequency point storage list;
s212, acquiring the historical connection frequency points from the frequency point storage list to perform equipment network access.
The method comprises the steps of calculating the relative distance difference between current position information and historical position information, judging whether the network access position of equipment is changed or not, selecting different target selection positions according to position conditions, improving efficiency of selecting target connection frequency bands, improving network searching efficiency of the equipment, and achieving quick network access of the equipment. When the position change is large, the target connection frequency point is directly selected from the full frequency band and is selected from the frequency point storage list in a skip mode, and the time-consuming problem caused by network searching from the frequency point storage list can be avoided.
In order to facilitate better implementation of the device networking method, the application also provides a device networking device based on the device networking method. The meaning of the nouns is the same as that of the network access method of the device, and specific implementation details can be referred to the description of the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus for network access according to an embodiment of the present application, where the apparatus for network access may specifically be as follows:
a detection module 301, configured to obtain current location information of the terminal device if the terminal device is detected to restart a network;
the acquiring module 302 is configured to acquire a frequency point storage list, where the frequency point storage list stores a historical connection frequency point and historical position information corresponding to the historical connection frequency point;
a determining module 303, configured to determine a target selection position from a full frequency band and the frequency point storage list according to a relative distance difference between the current position information and the historical position information, where the target selection position is one of the full frequency band and the frequency point storage list;
and the connection module 304 is configured to select a target connection frequency point from the target selection position, and establish network access of the terminal device according to the target connection frequency point.
Optionally, in some embodiments of the present application, the selecting module includes:
the first selecting unit is used for taking the full frequency band as a target selecting position if the relative distance difference exceeds a distance threshold value;
and the second selecting unit is used for taking the frequency point storage list as a target selecting position if the relative distance difference does not exceed a distance threshold value.
Wherein, in some embodiments of the present application, if the relative distance difference exceeds a distance threshold, the connection module includes:
and the connection unit is used for skipping the search of the target connection frequency point in the frequency point storage list and directly searching the target connection frequency point from the full frequency band.
Wherein, in some embodiments of the present application, the apparatus further comprises an update module, the update module comprising:
the deleting unit is used for deleting the historical connection frequency points from the frequency point storage list to obtain a transition storage list;
and the storage unit is used for storing the target connection frequency point and the current position information into the transition storage list to obtain a target storage list.
In some embodiments of the present application, the historical connection frequency point includes at least two, and the selecting module includes:
a determining unit, configured to determine a frequency point to be deleted from the historical connection frequency points according to the relative distance differences between the current location information and each of the historical location information;
the deleting unit is used for deleting the frequency points to be deleted from the frequency point storage list to obtain an updated frequency point storage list;
the third selecting unit is used for taking the full frequency band as a target selecting position if the updated frequency point storage list is empty;
And the fourth selection unit is used for taking the updated frequency point storage list as a target selection position if the updated frequency point storage list is not empty.
Wherein, in some embodiments of the application, the determining unit comprises:
the sorting subunit is used for sorting the historical connection frequency points from small to large according to the relative distance difference to obtain a frequency point sorting list;
the first determining subunit is used for taking the first historical connection frequency point in the frequency point ordered list as a first connection frequency point;
and the second determining subunit is used for taking all the historical connection frequency points as frequency points to be deleted if the relative distance difference of the first connection frequency points exceeds a distance threshold value.
And the third determining subunit is configured to select, if the relative distance difference between the first connection frequency points does not exceed the distance threshold, a history connection frequency point located in the middle position from the frequency point ordered list as a first reference connection frequency point, and determine a frequency point to be deleted from the frequency point ordered list according to the first reference connection frequency point.
Wherein, in some embodiments of the present application, the third determining subunit is specifically configured to:
if the relative distance difference corresponding to the first reference connection frequency point exceeds the distance threshold, directly taking the first reference connection frequency point and a history connection frequency point positioned behind the first reference connection frequency point in the frequency point ordered list as a frequency point to be deleted;
And selecting a historical connection frequency point positioned in the middle position of the first connection frequency point and the first reference connection frequency point from the frequency point sorting list as a second reference connection frequency point, and determining a frequency point to be deleted from the first connection frequency point and the first reference connection frequency point according to the second reference connection frequency point.
In the embodiment of the application, firstly, if the detection module 301 detects that the terminal equipment restarts a network, the current position information of the terminal equipment is obtained, then, the acquisition module 302 acquires a frequency point storage list, the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points, then, the determination module 303 determines a target selection position from a full frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, the target selection position is one of the full frequency band and the frequency point storage list, then, the connection module 304 selects a target connection frequency point from the target selection position, and establishes network access of the terminal equipment according to the target connection frequency point.
The method comprises the steps of calculating the relative distance difference between current position information and historical position information, judging whether the network access position of equipment is changed or not, selecting different target selection positions according to position conditions, improving efficiency of selecting target connection frequency bands, improving network searching efficiency of the equipment, and achieving quick network access of the equipment. When the position change is large, the target connection frequency point is directly selected from the full frequency band and is selected from the frequency point storage list in a skip mode, and the time-consuming problem caused by network searching from the frequency point storage list can be avoided.
In addition, the application further provides an electronic device, as shown in fig. 5, which shows a schematic structural diagram of the electronic device according to the application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, so as to implement the steps in any device networking method provided in the embodiment of the present application.
If the terminal equipment is detected to restart the network, the current position information of the terminal equipment is acquired, a frequency point storage list is acquired, the frequency point storage list stores historical connection frequency points and corresponding historical position information, a target selection position is determined from a full-frequency-band and frequency point storage list according to the relative distance difference between the current position information and the historical position information, the target selection position is one of the full-frequency-band and frequency point storage list, the target connection frequency points are selected from the target selection position, and network access of the terminal equipment is established according to the target connection frequency points.
The method comprises the steps of calculating the relative distance difference between current position information and historical position information, judging whether the network access position of equipment is changed or not, selecting different target selection positions according to position conditions, improving efficiency of selecting target connection frequency bands, improving network searching efficiency of the equipment, and achieving quick network access of the equipment. When the position change is large, the target connection frequency point is directly selected from the full frequency band and is selected from the frequency point storage list in a skip mode, and the time-consuming problem caused by network searching from the frequency point storage list can be avoided.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium having stored thereon a computer program that can be loaded by a processor to perform the steps of any of the device networking methods provided by the present application.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps in any of the device networking methods provided by the present application, the beneficial effects that any of the device networking methods provided by the present application can be realized, and detailed descriptions of the foregoing embodiments are omitted herein.
The above detailed description of a method, an apparatus, an electronic device and a computer readable storage medium for network access of a device provided by the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the above description of the examples is only for helping to understand the method and core ideas of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.
It should be noted that, in the specific embodiment of the present application, related data such as location information of a terminal device, a frequency point storage list, etc. are related, when the above embodiment of the present application is applied to a specific product or technology, permission or consent of a user needs to be obtained, and collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.

Claims (8)

1. A method for device networking, applied to a terminal device, comprising:
if the terminal equipment is detected to restart the network, acquiring the current position information of the terminal equipment;
acquiring a frequency point storage list, wherein the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points;
determining a target selection position from a full frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, wherein the target selection position is one of the full frequency band and the frequency point storage list;
selecting a target connection frequency point from the target selection position, and establishing network access of the terminal equipment according to the target connection frequency point;
Wherein the determining a target selection position from a full frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, wherein the target selection position is one of the full frequency band and the frequency point storage list comprises:
sorting the historical connection frequency points from small to large according to the relative distance difference to obtain a frequency point sorting list;
taking a historical connection frequency point positioned at the first position in the frequency point sequencing list as a first connection frequency point;
if the relative distance difference of the first connection frequency points exceeds a distance threshold value, taking all the historical connection frequency points as frequency points to be deleted;
if the relative distance difference of the first connection frequency points does not exceed the distance threshold value, selecting a history connection frequency point positioned in the middle position from the frequency point sorting list as a first reference connection frequency point, and determining a frequency point to be deleted from the frequency point sorting list according to the first reference connection frequency point;
deleting the frequency points to be deleted from the frequency point storage list to obtain an updated frequency point storage list;
if the updated frequency point storage list is empty, taking the full frequency band as a target selection position;
And if the updated frequency point storage list is not empty, taking the updated frequency point storage list as a target selection position.
2. The method for accessing a network according to claim 1, wherein determining the target selection position from the full band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information comprises:
if the relative distance difference exceeds a distance threshold, taking the full frequency band as a target selection position;
and if the relative distance difference does not exceed the distance threshold value, taking the frequency point storage list as a target selection position.
3. The method of network access of a device according to claim 2, wherein selecting a target connection frequency point from the target selection location if the relative distance difference exceeds a distance threshold comprises:
and skipping the searching of the target connection frequency points in the frequency point storage list, and directly searching the target connection frequency points from the full frequency band.
4. The method for accessing a network of a device according to claim 3, wherein the method further comprises, after skipping the search for the target connection frequency point in the frequency point storage list and searching for the target connection frequency point directly from the full frequency band:
Deleting the historical connection frequency points from the frequency point storage list to obtain a transition storage list;
and storing the target connection frequency point and the current position information into the transition storage list to obtain a target storage list.
5. The method for device network access according to claim 1, wherein the determining, from the ordered list of frequency points, the frequency point to be deleted according to the first reference connection frequency point includes:
if the relative distance difference corresponding to the first reference connection frequency point exceeds the distance threshold, directly taking the first reference connection frequency point and a history connection frequency point positioned behind the first reference connection frequency point in the frequency point ordered list as a frequency point to be deleted;
and selecting a historical connection frequency point positioned in the middle position of the first connection frequency point and the first reference connection frequency point from the frequency point sorting list as a second reference connection frequency point, and determining a frequency point to be deleted from the first connection frequency point and the first reference connection frequency point according to the second reference connection frequency point.
6. A device networking apparatus, characterized by being applied to a terminal device, comprising:
the detection module is used for acquiring the current position information of the terminal equipment if the terminal equipment is detected to restart the network;
The acquisition module is used for acquiring a frequency point storage list, wherein the frequency point storage list stores historical connection frequency points and historical position information corresponding to the historical connection frequency points;
the determining module is used for determining a target selection position from the full-frequency band and the frequency point storage list according to the relative distance difference between the current position information and the historical position information, wherein the target selection position is one of the full-frequency band and the frequency point storage list;
the connection module is used for selecting a target connection frequency point from the target selection position and establishing network access of the terminal equipment according to the target connection frequency point;
wherein, the acquisition module includes:
sorting the historical connection frequency points from small to large according to the relative distance difference to obtain a frequency point sorting list;
taking a historical connection frequency point positioned at the first position in the frequency point sequencing list as a first connection frequency point;
if the relative distance difference of the first connection frequency points exceeds a distance threshold value, taking all the historical connection frequency points as frequency points to be deleted;
if the relative distance difference of the first connection frequency points does not exceed the distance threshold value, selecting a history connection frequency point positioned in the middle position from the frequency point sorting list as a first reference connection frequency point, and determining a frequency point to be deleted from the frequency point sorting list according to the first reference connection frequency point;
Deleting the frequency points to be deleted from the frequency point storage list to obtain an updated frequency point storage list;
if the updated frequency point storage list is empty, taking the full frequency band as a target selection position;
and if the updated frequency point storage list is not empty, taking the updated frequency point storage list as a target selection position.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the device networking method of any of claims 1-5 when the computer program is executed.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the device networking method according to any of claims 1-5.
CN202311037091.1A 2023-08-17 2023-08-17 Equipment network access method and device, electronic equipment and computer readable storage medium Active CN116761230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311037091.1A CN116761230B (en) 2023-08-17 2023-08-17 Equipment network access method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311037091.1A CN116761230B (en) 2023-08-17 2023-08-17 Equipment network access method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116761230A CN116761230A (en) 2023-09-15
CN116761230B true CN116761230B (en) 2023-12-15

Family

ID=87957538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311037091.1A Active CN116761230B (en) 2023-08-17 2023-08-17 Equipment network access method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116761230B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011100864A1 (en) * 2010-02-19 2011-08-25 Telefonaktiebolaget L M Ericsson (Publ) Methods and arrangements for maintaining timing characteristics
CN102509170A (en) * 2011-10-10 2012-06-20 浙江鸿程计算机系统有限公司 Location prediction system and method based on historical track data mining
CN106792993A (en) * 2016-12-07 2017-05-31 广东欧珀移动通信有限公司 Channel scanning method and mobile terminal
CN109905907A (en) * 2019-01-29 2019-06-18 东莞市步步高通信软件有限公司 A kind of method for searching network and mobile terminal
CN110401973A (en) * 2019-08-19 2019-11-01 Oppo广东移动通信有限公司 Network search method and device, terminal, storage medium
CN113194521A (en) * 2021-03-29 2021-07-30 深圳市广和通无线股份有限公司 5G communication module network searching method and device, computer equipment and storage medium
WO2022160984A1 (en) * 2021-02-01 2022-08-04 华为技术有限公司 Method and apparatus for searching for cell
CN115884151A (en) * 2021-09-29 2023-03-31 华为技术有限公司 Electronic device, network searching method thereof and readable medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101600472B1 (en) * 2009-10-30 2016-03-08 삼성전자주식회사 Apparatus and method for associating network in an wireless terminal
US20150237470A1 (en) * 2014-02-14 2015-08-20 Apple Inc. Personal Geofence

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011100864A1 (en) * 2010-02-19 2011-08-25 Telefonaktiebolaget L M Ericsson (Publ) Methods and arrangements for maintaining timing characteristics
CN102509170A (en) * 2011-10-10 2012-06-20 浙江鸿程计算机系统有限公司 Location prediction system and method based on historical track data mining
CN106792993A (en) * 2016-12-07 2017-05-31 广东欧珀移动通信有限公司 Channel scanning method and mobile terminal
CN109905907A (en) * 2019-01-29 2019-06-18 东莞市步步高通信软件有限公司 A kind of method for searching network and mobile terminal
CN110401973A (en) * 2019-08-19 2019-11-01 Oppo广东移动通信有限公司 Network search method and device, terminal, storage medium
WO2022160984A1 (en) * 2021-02-01 2022-08-04 华为技术有限公司 Method and apparatus for searching for cell
CN113194521A (en) * 2021-03-29 2021-07-30 深圳市广和通无线股份有限公司 5G communication module network searching method and device, computer equipment and storage medium
CN115884151A (en) * 2021-09-29 2023-03-31 华为技术有限公司 Electronic device, network searching method thereof and readable medium

Also Published As

Publication number Publication date
CN116761230A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
RU2686673C1 (en) Device and method of terminal control and terminal
US9256479B2 (en) App icon processing method and communication terminal
CN107479951B (en) Process control method and device, storage medium and electronic equipment
EP2840839B1 (en) Multimode terminal and multimode terminal resident network selection method and device
CN102855286B (en) Mobile terminal and search the method for application program in the terminal
JP2005301791A (en) Mobile communication terminal and application start control method of mobile communication terminal
US8738094B2 (en) Automatically enabling wireless communication
CN108804294A (en) Method, apparatus, equipment and the computer readable storage medium that electricity is reminded
CN111050378A (en) Network searching method and device and electronic equipment
CN107302591A (en) Method of data synchronization, device, storage medium and electronic equipment
CN103634032A (en) Data transferring method and system and mobile terminal
CN116761230B (en) Equipment network access method and device, electronic equipment and computer readable storage medium
CN107608744B (en) Application process management method and device and mobile terminal
CN104780234A (en) Method, device and system for inquiring Internet protocol (IP) address location
CN107548121B (en) Method and device for determining access network
CN111343683A (en) Network switching method, device, storage medium and terminal
CN114788357B (en) Method and apparatus for prioritized 5G NSA cell (re-) selection
CN111355848B (en) Positioning control method and device of electronic equipment, storage medium and electronic equipment
CN113709837A (en) Information processing method and device and electronic equipment
CN112860352A (en) Application loading method and device, storage medium and terminal
CN113891418A (en) User terminal access method in heaven-earth integrated information network, device and medium
CN112291722A (en) Call waiting state setting method, device, terminal and storage medium
CN113115409B (en) Network searching method, device, medium and electronic equipment
CN116528330B (en) Equipment network access method and device, electronic equipment and computer readable storage medium
CN113038573B (en) Network search control method, device, mobile terminal 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