CN115022934A - WiFi signal automatic switching connection method - Google Patents

WiFi signal automatic switching connection method Download PDF

Info

Publication number
CN115022934A
CN115022934A CN202210464452.XA CN202210464452A CN115022934A CN 115022934 A CN115022934 A CN 115022934A CN 202210464452 A CN202210464452 A CN 202210464452A CN 115022934 A CN115022934 A CN 115022934A
Authority
CN
China
Prior art keywords
wifi
signal
time
wifi signals
signals
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
CN202210464452.XA
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210464452.XA priority Critical patent/CN115022934A/en
Publication of CN115022934A publication Critical patent/CN115022934A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • 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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a WiFi signal automatic switching connection method, which comprises the steps of obtaining the signal intensity of all available WiFi signals, and carrying out backup sequencing on the signal intensity values; selecting the obtained available WiFi signals, and selecting the first available WiFi signal arranged in the signal strength value sorting table; updating the WiFi signal strength value within a preset time; judging whether the signal intensity of the selected WiFi signals is first in the sequence; if not, detecting the stability of all the available WiFi signals, wherein the stability detection is to calculate the fault time of the WiFi signals through the MTBF coefficient test; obtaining the stability ratio of the corresponding WiFi signals according to the proportion of the calculated fault time in all the operation time of the WiFi signals; and updating the sorting table according to the calculated stability ratio, and automatically selecting the first WiFi signal to be sorted for switching. The invention can automatically select the optimal signal source for connection when the user uses the WiFi signal, and the internet speed of the user is ensured.

Description

WiFi signal automatic switching connection method
Technical Field
The invention relates to the technical field of communication, in particular to a WiFi signal automatic switching connection method.
Background
With the development of the internet, WiFi becomes an essential element for people's life, and WiFi is used anytime and anywhere, but many times, because too many people connect the same WiFi signal, the WiFi signal strength weakens, and the internet can not be used quickly in the using step, another WiFi needs to be switched to achieve the purpose of using the internet more quickly.
Application number CN201310497852.1 discloses a method and system for intelligently switching network connections, the method steps are: A. presetting a first network signal intensity threshold and a second network signal intensity threshold; B. detecting the signal intensity of a first network and a second network in the current network environment, and respectively comparing and judging the signal intensity with the signal intensity threshold value; if the first network signal strength is greater than the corresponding signal strength threshold and the second network signal strength is less than the corresponding signal strength threshold, connecting the first network; if the first network signal strength is less than its corresponding signal strength threshold and the second network signal strength is greater than its corresponding signal strength threshold, then the second network is connected. According to the invention, the wireless network threshold is set, each network is monitored in real time, and the best network is obtained through comparison and judgment for connection, so that the problems of unreliable network connection and easy disconnection are avoided, and the electric quantity loss caused by frequent automatic network searching of equipment in a poor network environment is also avoided. And better user experience is brought to the user.
When the intelligent network is used for switching, the mobile network is started to consume the data traffic of the user, and the problem that the WiFi network which is good in network and convenient to use by the user cannot be intelligently switched when the WiFi network is switched is solved.
Disclosure of Invention
In order to solve the above problems, the present invention provides an automatic WiFi signal switching connection method, so as to more exactly solve the above problem of weak WiFi signal strength, and better switch a faster network, which is convenient for a user to surf the internet better.
The invention is realized by the following technical scheme:
the invention provides a WiFi signal automatic switching connection method, which comprises the following steps:
acquiring signal strength of all available WiFi signals, and performing backup sorting on the signal strength values, wherein all the available WiFi signals are WiFi signals which can be acquired within a preset range;
selecting the obtained available WiFi signals, and selecting the first available WiFi signal arranged in the signal strength value sorting table;
updating the WiFi signal strength value within a preset time;
judging whether the signal intensity of the selected WiFi signals is first in the sequence;
if not, detecting the stability of all the available WiFi signals, wherein the stability detection is to calculate the fault time of the WiFi signals through the MTBF coefficient test;
obtaining the stability ratio of the corresponding WiFi signals according to the proportion of the calculated fault time in all the operation time of the WiFi signals;
and updating the sorting table according to the calculated stability ratio, and automatically selecting the first WiFi signal to be sorted for switching.
Further, the acquiring signal strengths of all available WiFi signals and performing backup sorting on the signal strength values, where the step of acquiring WiFi signals in a preset range for all available WiFi signals includes:
acquiring power values of two adjacent WiFi signals, wherein
Figure DEST_PATH_IMAGE001
Figure 782944DEST_PATH_IMAGE002
Power of the signal source A and the signal source B respectively;
by the formula
Figure DEST_PATH_IMAGE003
Calculating the signal intensity values of the signal source A and the signal source B;
and if the calculation result is positive, the signal intensity value of the A signal source is higher than that of the B signal source, and all the calculated signal intensity values are sorted.
Further, the selecting the obtained available WiFi signal, after the step of selecting the first available WiFi signal listed in the signal strength value ranking table, includes:
counting the number of the selected WiFi signal users in a first preset time range;
and when the number of the currently selected WiFi signal users reaches the preset number, sending prompt information to the user.
Further, when the number of currently selected WiFi signal users reaches a preset number, the step of sending prompt information to the user comprises the following steps:
counting the number of users in the signal source within a second preset time range, wherein the counting mode is to count whether the number of the users of the selected WiFi signals is reduced relative to the number of the users within the first preset time;
if the number of people is less than the preset number of people, the signal source needing to be switched is judged, and the signal source arranged in the second signal strength value sorting table is selected for switching.
Further, the step of updating the WiFi signal strength value within the preset time includes:
judging whether the user acquires a new available WiFi signal within a third preset time;
if yes, detecting the safety of the newly acquired available WiFi signals;
when security is detected, then in a backup added to the available WiFi signals;
the signal strength values are updated for the available WiFi signals in all backups.
Further, if not, sorting is performed according to the stability detection result of the updated signal strength value, where the step of recording the WiFi fault time according to the MTBF coefficient includes:
acquiring transmission failure time in the MTBF coefficient test through a video transmission mode;
and judging the stability of the WiFi signal according to the acquired transmission fault time.
Further, the data transmission at a rate of 50% -80% of the maximum bandwidth of the system is tested according to the MTBF, wherein the step of selecting a transmission video in the data transmission process comprises the following steps:
video transmission is carried out after each available WiFi signal is selected, and data are transmitted according to the rate of 50% -80% of the maximum bandwidth of the system in transmission;
counting transmission time by transmitting videos of different memory sizes;
and comparing the transmission time with preset standard transmission time to obtain the WiFi signal fault time.
Further, before the step of obtaining the stability ratio of the corresponding WiFi signal according to the proportion of the calculated failure time in all the operating times of the WiFi signal, the method includes:
the method comprises the steps of backing up the fault time of a WiFi signal and transmitting the fault time to a preset control end;
and removing the WiFi signals with the fault time larger than the preset value, and calculating the rest WiFi signals.
Further, the step of obtaining the stability ratio of the corresponding WiFi signal according to the proportion of the calculated failure time in all the operating times of the WiFi signal includes:
acquiring all the running time of the WiFi signals through a preset console;
the ratio of the calculated failure time to all the obtained running times is processed to obtain the corresponding stability ratio.
Further, after the step of updating the sorting table according to the calculated stability ratio and automatically selecting the WiFi signal with the first sorting for switching, the method includes:
setting the rest unselected WiFi signal sources as backup signal sources and performing code conversion;
analyzing the operation rate of the WiFi signal source converted into codes;
and screening and filtering the WiFi signals in the backup signal sources according to the running speed of the codes.
The invention has the beneficial effects that:
the method for automatically switching and connecting the WiFi signals obtains the signal strength of all available WiFi signals, and backups and sorts the signal strength values, wherein all the available WiFi signals are the WiFi signals which can be obtained in a preset range, the obtained available WiFi signals are selected, the first available WiFi signal arranged in a signal strength value sorting table is selected, and the WiFi signal strength value is updated within preset time; and judging whether the signal intensity of the selected WiFi signals is first in the sorting, if not, detecting the stability of all the available WiFi signals, wherein the stability detection is to test the fault time of the WiFi signals through the MTBF coefficient, obtain the stability ratio of the corresponding WiFi signals according to the proportion of the calculated fault time in all the operation time of the WiFi signals, update a sorting table according to the calculated stability ratio, and automatically select the first-sorted WiFi signals for switching. The invention can automatically select the optimal signal source for connection when the user uses the WiFi signal, thereby ensuring the internet speed of the user, ensuring that the mobile data of the user cannot be used and avoiding the surplus money from being deducted due to the use of the mobile data.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a WiFi signal automatic switching connection method.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to more clearly and completely describe the technical scheme of the invention, the invention is further described with reference to the accompanying drawings.
Referring to fig. 1, the present invention provides a method for automatically switching and connecting WiFi signals, including:
s1, acquiring signal strengths of all available WiFi signals, and performing backup sorting on the signal strength values, wherein all the available WiFi signals are WiFi signals that can be obtained within a preset range;
s2, selecting the obtained available WiFi signals, and selecting the first available WiFi signal arranged in the signal strength value sorting table;
s3, updating the WiFi signal strength value within a preset time;
s4, judging whether the signal intensity of the selected WiFi signals is first in the sequence;
s5, if not, detecting the stability of all the available WiFi signals, wherein the stability detection is to calculate the failure time of the WiFi signals through the MTBF test;
s6, obtaining the stability ratio of the corresponding WiFi signals according to the proportion of the calculated fault time in all the operation time of the WiFi signals;
and S7, updating the sorting table according to the calculated stability ratio, and automatically selecting the first WiFi signal to switch.
In the above steps, firstly, the WiFi setting is turned on, the signal strength values of all available WiFi signals are obtained and calculated, wherein all available WiFi signals are WiFi signals that can be obtained within a preset range, the preset range is 50-100 meters, then the signal strength of every two signal sources is calculated, the calculation mode is logarithmic calculation, the magnitude sequence of the signal strength values of the signal sources can be judged through the positive and negative of the calculation result, the available WiFi signals ranked at the first position are selected after the signal strength values are calculated, the signal strength values of all WiFi signals are updated within a preset time, wherein whether new WiFi signals are obtained or not is judged, when the new signal sources are detected, safety detection is firstly performed, under the condition that the signal sources are safe, the new WiFi signals can be added into a signal source backup, and the signal strength values of all signal sources are updated, and then judging whether the currently selected WiFi signals are still sorted at the first order, if not, detecting the stability of all the available WiFi signals, wherein the stability detection is to test the fault time of the WiFi signals through the MTBF coefficient, obtain the stability ratio of the corresponding WiFi signals according to the proportion of the calculated fault time in all the operation time of the WiFi signals, update a sorting table according to the calculated stability ratio, and automatically select the first-sorted WiFi signals for switching.
In this embodiment, the step of obtaining signal strengths of all available WiFi signals and performing backup sorting on the signal strength values, where all the available WiFi signals are WiFi signals obtained within a preset range includes:
acquiring power values of two adjacent WiFi signals, wherein
Figure 8127DEST_PATH_IMAGE001
Figure 703551DEST_PATH_IMAGE002
Power of the signal source A and the signal source B respectively;
by the formula
Figure 351701DEST_PATH_IMAGE003
Calculating the signal intensity values of the signal source A and the signal source B;
and if the calculation result is positive, the signal intensity value of the A signal source is higher than that of the B signal source, and all the calculated signal intensity values are sorted.
In a specific embodiment, the range of the WiFi signals that can be acquired by the mobile phone user is 50 meters, and after all available WiFi signals are acquired within the range, every two signal sources are selected according to permutation and combination to perform
Figure 157983DEST_PATH_IMAGE003
The formula (2) is calculated, wherein the power values of the two are calculated, and after logarithm is taken according to the power values, if the power values are calculated
Figure 942399DEST_PATH_IMAGE003
=
Figure 808724DEST_PATH_IMAGE004
If the power value of A is proved to be twice larger than that of B by =3db, the power value of A can be alternatively obtained to be 3db larger than that of B, and the signal intensity value of A is calculated to be larger than that of B, and then A is ranked in the front of B.
In another embodiment, the range of the WiFi signal that can be acquired by the user of the notebook computer is 100 meters, and the notebook computer has the function of the network card cable, so the range of the WiFi signal that can be acquired is wider, and similarly, according to the acquired WiFi signal, every two signal sources are arranged and combined to perform logarithmic calculation, and if the obtained WiFi signal is not equal to the obtained WiFi signal, the logarithmic calculation is performed on every two signal sources
Figure 803225DEST_PATH_IMAGE003
=
Figure DEST_PATH_IMAGE005
If the power value of a is not less than 3db, the power value of a is lower than that of B by one time, and the power value of a is lower than that of B by 3 db.
In another embodiment, when the power of the signals is calculated to be 3db, the distance of the user is obtained according to the distance of the WiFi signals, and the WiFi signals closer to the user are ranked further forward.
In this embodiment, the step of selecting the obtained available WiFi signal and selecting the first available WiFi signal listed in the signal strength value ranking table includes:
counting the number of the selected WiFi signal users in a first preset time range;
and when the number of the currently selected WiFi signal users reaches the preset number, sending prompt information to the user.
In the specific embodiment, when the available WiFi signals are used and the signal intensity value of a certain WiFi signal is very strong, a plurality of users can select to connect the WiFi signals, when the number of users reaches a certain upper limit, the signal intensity distribution is uneven, and a certain mobile phone can rob the signal, even if the signal intensity value of the WiFi signals is very strong, the available intensity value received by the rest mobile phones connected with the signals is correspondingly reduced and becomes stuck, in order to prevent the situation, the number of the current users of the available WiFi signals needs to be calculated, the number of the people who pass in and out the WiFi signal source within the first preset time of 2s is counted, the number of the people who pass in and out the WiFi signal source can be counted continuously within two preset seconds, and when the number of the people who pass in and out the WiFi signal reaches 25, the corresponding speed of the signal source can be reduced, at this time, prompt information is sent to the user.
In this embodiment, the step of determining whether to switch the WiFi signal source according to the number of users updated in real time includes:
counting the number of users in the signal source within a second preset time range, wherein the counting mode is to count whether the number of the users of the selected WiFi signals is reduced relative to the number of the users within the first preset time;
if the number of people is less than the preset number of people, the signal source needing to be switched is judged, and the signal source arranged in the second signal strength value sorting table is selected for switching.
In a specific embodiment, when the real-time number of users is detected, after the second preset time is preset for 5 minutes, the number of people passing in and out of the WiFi signal source within 2s is counted, whether the detected number of people is reduced to some extent compared with the number of people detected for the first time is judged, if the number of users is reduced to less than six people after counting, and the strength value of the currently used WiFi signal is still not strong enough, the WiFi signal source to be used is automatically switched, and the current sorting table is selected to sort the signal source on the second.
In this embodiment, the step of updating the WiFi signal strength value within the preset time includes:
judging whether the user acquires a new available WiFi signal within a third preset time;
if yes, detecting the safety of the newly acquired available WiFi signals;
when security is detected, then in a backup added to the available WiFi signals;
the signal strength values are updated for the available WiFi signals in all backups.
In a specific embodiment, the third preset time is to judge whether the mobile phone user acquires a new available WiFi signal within 50 meters every 30 minutes, wherein after the mobile phone reacquires in the WiFi setting, it needs to judge whether the newly acquired signal source is safe, wherein the safety detection is to detect whether SSID broadcast is turned on, and the SSID is an abbreviation of Service Set Identifier, and means that: the method comprises the steps that a service set identifier is used, each sub-network in WiFi signals needs independent identity authentication, only users passing the identity authentication can enter the corresponding sub-network, unauthorized users are prevented from entering the network, when safety detection is carried out, the preset safety factor is 0 or 1, the WiFi signals are scanned to determine whether SSID broadcasting is started, if the SSID broadcasting is started by scanning the WiFi signals, the safety factor is determined to be unqualified, the safety factor is 0, the WiFi signals with unqualified safety cannot be obtained, the safety of the users when the WiFi is used is ensured, personal privacy leakage is avoided, if the SSID broadcasting is not scanned by the safety factor, the safety factor is recorded to be 1, the safety factor meets requirements, the WiFi signals meeting the requirements are added into signal source backups, and signal strength values are calculated for available WiFi signals in all backups.
In this embodiment, if not, stability of all the available WiFi signals is detected, where the stability detection is a step of testing a failure time of a WiFi signal through an MTBF coefficient, and includes:
acquiring transmission failure time in the MTBF coefficient test through a video transmission mode;
and judging the stability of the WiFi signal according to the acquired transmission fault time.
In a specific embodiment, the mathematical expression of MTBF is
Figure 554143DEST_PATH_IMAGE006
The total number of faults is N0, the faults are repaired after each fault and continue to be used as new faults, and the working time of the fault is as follows: t0, T1, the mean time between failure, i.e. the mean life, of the product is Q: (T0 + T1)/N0.
In this embodiment, the step of testing the transmission data at a rate of 50% to 80% of the maximum bandwidth of the system according to the MTBF coefficient and recording the failure time of the system through the time of transmitting the video includes:
after each usable WiFi signal is selected, video transmission is carried out, and data are transmitted according to the rate of 50% -80% of the maximum bandwidth of the system in transmission;
counting transmission time by transmitting videos of different memory sizes;
and comparing the transmission time with preset standard transmission time to obtain the WiFi signal fault time.
In the specific embodiment, videos with memory sizes of 50M, 500M and 1G are selected, wherein a WiFi signal is set, in the using process, the transmission data is transmitted from a user mobile phone to a control end at a rate of 50% -80% of the maximum bandwidth of the system, the transmission speed of each video in transmission is calculated, when the transmission is always on or the transmission is stopped without accident, the failure time of the WiFi signal source is recorded and compared with the preset transmission standard time, and the obtained positive numerical value is recorded as a failure time value.
In this embodiment, before the step of obtaining the stability ratio of the corresponding WiFi signal according to the proportion of the calculated failure time in all the operating times of the WiFi signal, the method includes:
the method comprises the steps of backing up the fault time of a WiFi signal and transmitting the fault time to a preset control end;
and removing the WiFi signals with the fault time larger than the preset value, and calculating the rest WiFi signals.
In a specific embodiment, after the fault time of the WiFi signals is recorded, the WiFi signals are transmitted to the control end, the fault time of the WiFi signals is screened for once, if the fault time of the WiFi signals is greater than or equal to 3h, WiFi signal sources with too long fault time and without consideration are recorded, and after all calculated WiFi signals are screened, the stability ratio of the remaining WiFi signals is calculated.
In this embodiment, the step of obtaining the stability ratio of the corresponding WiFi signal according to the ratio of the calculated failure time to all the operating times of the WiFi signal includes:
acquiring all the running time of the WiFi signals through a preset console;
the ratio of the calculated failure time to all the obtained running times is processed to obtain the corresponding stability ratio.
In a specific embodiment, the current time that WiFi has been operated can be acquired through the console, the acquired time units are all converted into hours, then a ratio is performed between the counted failure time and the acquired operation time, if the calculated ratio is greater than 70%, it is indicated that the stability of the WiFi signal is poor, if the calculated ratio is 40% -70%, it is indicated that the stability of the WiFi signal is relatively stable, and if the calculated result is less than 40%, the stability of the WiFi signal is good.
In this embodiment, updating the sorting table according to the calculated stability ratio, and after the step of automatically selecting the WiFi signal with the first sorting for switching, the method includes:
setting the rest unselected WiFi signal sources as backup signal sources and performing code conversion;
analyzing the operation rate of the WiFi signal source converted into codes;
and screening and filtering the WiFi signals in the backup signal sources according to the code running speed.
In a specific embodiment, all unselected signal sources are set as backup signals, the backup signals are converted into programming codes, the operating speed of the WiFi signal source is judged according to the movement rate of the programming codes, wherein whether the current WiFi is in normal operation or not can be observed according to the change speed of the codes, and the WiFi signals of which the code change speed is less than 8 pieces of data per second are filtered.
To sum up: in specific implementation, firstly, WiFi is turned on, then the range for acquiring WiFi signals is set according to a connecting user for acquiring WiFi signals, the range of WiFi signals which can be acquired by a mobile phone user is 50 meters, the range of WiFi signals which can be acquired by a notebook computer user can be more widely 100 meters due to the function of a network cable with a network card, and then every two signal sources are selected according to the arrangement and combination of WiFi signals acquired within a preset range to carry out
Figure 957180DEST_PATH_IMAGE003
The formula of (1) is calculated, wherein power values of the two are calculated during calculation, if a calculation result is positive, A is ranked in the front of B, then if power of a plurality of signals is calculated to be 3db larger, the distance of a user can be obtained according to the distance of the WiFi signals, WiFi signals closer to the user are ranked in the front, then when available WiFi signals are used, when the signal intensity value of a certain WiFi signal is very strong, a plurality of users can select to connect the WiFi signals, when the number of users reaches a certain upper limit, the number of users can rob the signal in a single mobile phone due to uneven signal intensity distribution, even if the signal intensity value of the WiFi signal is very strong, the available intensity value received by the mobile phones which are connected with the signal is correspondingly reduced, the mobile phones become stuck and influence the smooth network use of the users, in order to prevent the situation, the number of currently used people of the available WiFi signals needs to be calculated, counting the number of people who pass in and out of the WiFi signal source within the first preset time of 2s, and then, determining the current WiFi signal sourceCounting the number of people in use, continuously counting the number of people in and out of the WiFi signal source within two preset seconds, when the number of people in the WiFi signal source minus the number of people out of the WiFi signal source reaches 25, then using the signal source may correspondingly slow down the internet surfing speed, at the moment, sending a prompt message to a user, the number of people currently using the signal source is too many, but at the moment, perhaps many people all receive the prompt message, the number of people in use of the signal source needs to be updated in real time, whether the signal source needs to be switched is judged, during judgment, counting the number of people in use within the preset time, after the second preset time is preset 5 minutes, counting the number of people in and out of the WiFi signal source within 2 seconds is carried out, whether the number of people detected is reduced compared with the number of people detected for the first time is judged, if the number of people in use is reduced to be less than six after counting, the strength value of the WiFi signal currently used is still not strong enough, then, the used WiFi signal sources are automatically switched, wherein the signal sources sorted in the second in the current sorting table are selected, then whether a new available WiFi signal is obtained or not is judged, within a third preset time of 30 minutes, whether the mobile phone is within 50 meters or not and whether a notebook user receives the new WiFi signal source or not is judged, after the new available WiFi signal source is obtained, whether the newly obtained signal source is safe or not needs to be judged, wherein the safety detection is to detect whether SSID broadcast is started or not, and SSID is an abbreviation of Service Set Identifier, which means: the service set identification, each sub-network in the WiFi signal needs independent authentication, only the user passing the authentication can enter the corresponding sub-network, the unauthorized user is prevented from entering the network, when the security detection is carried out, the preset security factor is 0 or 1, whether the SSID broadcast is started by the WiFi signal or not is scanned, if the SSID broadcast is started by the WiFi signal, the security is judged to be unqualified, the security coefficient is 0, the WiFi signal with unqualified security cannot be acquired, the security of the user when using the WiFi is ensured, the personal privacy is prevented from being leaked, if the SSID broadcast is not scanned, recording a safety factor of 1, meeting the requirement, adding the WiFi signal meeting the requirement into the signal source backup, calculating signal strength values for all available WiFi signals in the backup, and then judging the received WiFi signals.Whether the signal strength of the signal is positioned at the first position in the sorting is judged, if yes, the signal source is kept to be received, if not, the stability of all the available WiFi signals is detected, wherein the stability detection is that the fault time of the WiFi signals is tested through MTBF coefficients, and the mathematical expression of MTBF is
Figure 259986DEST_PATH_IMAGE008
Wherein, a WiFi signal is set in the using process, the data is transmitted at the rate of 50% -80% of the maximum bandwidth of the system, when the data is transmitted, video transmission is carried out, videos with three memory sizes of 50M, 500M and 1G are selected, the three videos are respectively transmitted to a control end from a user mobile phone under the selection condition of different WiFi signal sources, the transmission speed of each video transmission is calculated, when the video is transmitted in the transmission process, the video is always transmitted and blocked or the transmission is stopped without accident, the video is recorded as the fault time of the WiFi signal source, the transmission standard speeds of the three video formats are set in a preset library, the transmission speed under the selection condition of the signal source is compared with the transmission standard speed, if the transmission speed is less than one time of the standard speed, the fault time is recorded as 0.5h, if the transmission speed is less than 1-3 than the standard speed, negligible, when the transmission speed is greater than the standard speed, it indicates that the intensity value of the signal source is very high, and N0 faults occur in total, and after each fault is repaired, the signal source continues to be used as a new signal source, and the working time is: t0, T1, the mean time between failure, i.e. the mean life, of the product is Q: (T0 + T1)/N0, determining the stability of the WiFi signals in use according to the calculated Q value, after recording the fault time of the WiFi signals, transmitting the fault time to a control end, screening the fault time of the WiFi signals for one time, if the fault time of the WiFi signals is more than or equal to 3h, recording the fault time as a WiFi signal source which is not considered, screening all the calculated WiFi signals, calculating the stability ratio of the rest WiFi signals, acquiring the current time when the WiFi has been operated by a control console, converting all the acquired time units into hours, then performing the ratio of the counted fault time to the acquired operation time, if the calculated ratio is more than 70%, the stability of the WiFi signals is poor, and if the calculated ratio is 40% -70%, the stability of the WiFi signals is relatively stable, if the calculation result is less than 40%, the stability of the WiFi signal is better, in the calculated stability ratio, the stability performance is poorer if the ratio result is larger, therefore the sequence is higher if the stability ratio is smaller in the sequence, but when the calculation results of the stability ratios of the WiFi signals are equal, the signal intensity values of the WiFi signal sources with the same stability ratio are checked, the sequence is advanced if the signal intensity values are higher, after the sequencing of all the available WiFi signals is completed, the signal source with the first sequence is automatically selected to be switched, in the switching process, a user is prompted to automatically switch the WiFi signals within 2s, finally all the unselected signal sources are set as backup signals, the backup signals are converted into programming codes, the operating speed of the WiFi signal sources is judged according to the movement speed of the programming codes, wherein whether the current WiFi is in normal operation or not can be observed according to the change speed of the codes, and filtering the WiFi signals of which the code change speed is less than 8 data per second.
Of course, the present invention may have other embodiments, and based on the embodiments, other embodiments obtained by persons skilled in the art without any creative work are within the protection scope of the present invention.

Claims (10)

1. A WiFi signal automatic switching connection method is characterized by comprising the following steps:
acquiring signal strength of all available WiFi signals, and performing backup sorting on the signal strength values, wherein all the available WiFi signals are WiFi signals which can be acquired within a preset range;
selecting the obtained available WiFi signals, and selecting the first available WiFi signal arranged in the signal strength value sorting table;
updating the WiFi signal strength value within a preset time;
judging whether the signal intensity of the selected WiFi signals is first in the sequence;
if not, detecting the stability of all the available WiFi signals, wherein the stability detection is to calculate the fault time of the WiFi signals through the MTBF coefficient test;
obtaining the stability ratio of the corresponding WiFi signals according to the proportion of the calculated fault time in all the operation time of the WiFi signals;
and updating the sorting table according to the calculated stability ratio, and automatically selecting the first WiFi signal to be sorted for switching.
2. The method according to claim 1, wherein the step of obtaining the signal strengths of all available WiFi signals and performing backup sorting on the signal strength values comprises:
acquiring power values of two adjacent WiFi signals, wherein
Figure 724799DEST_PATH_IMAGE001
Figure 249321DEST_PATH_IMAGE002
Power of the signal source A and the signal source B respectively;
by the formula
Figure 269230DEST_PATH_IMAGE003
Calculating the signal intensity values of the signal source A and the signal source B;
and if the calculation result is positive, the signal intensity value of the A signal source is higher than that of the B signal source, and all the calculated signal intensity values are sorted.
3. The method according to claim 1, wherein the step of selecting the first WiFi signal listed in the signal strength value list comprises:
counting the number of the selected WiFi signal users within a first preset time range;
and when the number of the currently selected WiFi signal users reaches the preset number, sending prompt information to the user.
4. The method according to claim 3, wherein the step of sending a prompt message to the user when the number of currently selected WiFi signal users reaches a preset number comprises:
counting the number of users in the signal source within a second preset time range, wherein the counting mode is to count whether the number of the users of the selected WiFi signals is reduced relative to the number of the users within the first preset time;
if the number of people is less than the preset number of people, the signal source needing to be switched is judged, and the signal source arranged on the second side in the signal strength value sequencing table is selected for switching.
5. The method of claim 1, wherein the step of updating the WiFi signal strength value within a predetermined time comprises:
judging whether the user acquires a new available WiFi signal within a third preset time;
if yes, detecting the safety of the newly acquired available WiFi signals;
when security is detected, then in a backup added to the available WiFi signals;
the signal strength values are updated for the available WiFi signals in all backups.
6. The method according to claim 1, wherein if no, the stability of all the available WiFi signals is detected, and the step of detecting the failure time of the WiFi signals through the MTBF coefficient includes:
acquiring transmission failure time in the MTBF coefficient test through a video transmission mode;
and judging the stability of the WiFi signal according to the acquired transmission fault time.
7. The method of claim 6, wherein the step of testing the transmission rate of 50% to 80% of the maximum bandwidth of the system according to the MTBF coefficient comprises the steps of:
video transmission is carried out after each available WiFi signal is selected, and data are transmitted according to the rate of 50% -80% of the maximum bandwidth of the system in transmission;
counting transmission time by transmitting videos of different memory sizes;
and comparing the transmission time with preset standard transmission time to obtain the WiFi signal fault time.
8. The method according to claim 7, wherein before the step of obtaining the stability ratio of the WiFi signal according to the ratio of the calculated failure time to the WiFi signal in all the operation times, the method comprises:
the method comprises the steps of backing up the fault time of a WiFi signal and transmitting the fault time to a preset control end;
and removing the WiFi signals with the fault time larger than the preset value, and calculating the rest WiFi signals.
9. The method according to claim 1, wherein the step of obtaining the stability ratio of the WiFi signal according to the ratio of the calculated failure time to the WiFi signal in all the operation times comprises:
acquiring all the running time of the WiFi signals through a preset console;
the ratio of the calculated failure time to all the obtained running times is processed to obtain the corresponding stability ratio.
10. The method according to claim 1, wherein the step of updating the ranking table according to the calculated stability ratio and automatically selecting the first WiFi signal in the ranking for switching comprises:
setting the rest unselected WiFi signal sources as backup signal sources and performing code conversion;
analyzing the operation rate of the WiFi signal source converted into codes;
and screening and filtering the WiFi signals in the backup signal sources according to the code running speed.
CN202210464452.XA 2022-04-29 2022-04-29 WiFi signal automatic switching connection method Pending CN115022934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210464452.XA CN115022934A (en) 2022-04-29 2022-04-29 WiFi signal automatic switching connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210464452.XA CN115022934A (en) 2022-04-29 2022-04-29 WiFi signal automatic switching connection method

Publications (1)

Publication Number Publication Date
CN115022934A true CN115022934A (en) 2022-09-06

Family

ID=83067663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210464452.XA Pending CN115022934A (en) 2022-04-29 2022-04-29 WiFi signal automatic switching connection method

Country Status (1)

Country Link
CN (1) CN115022934A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116542662A (en) * 2023-05-06 2023-08-04 上海商睿智能科技有限公司 Off-line POS machine transaction method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116542662A (en) * 2023-05-06 2023-08-04 上海商睿智能科技有限公司 Off-line POS machine transaction method and system

Similar Documents

Publication Publication Date Title
CN1887021B (en) Method, user terminal and network for performing a handover for user terminal in peer-to-peer communication mode, to a cell whose link performance is a predefined value higher than that of the active cell
CN101237689B (en) Access technology selecting method and device
CA2135176A1 (en) Cellular communications test system
CN103077718A (en) Speech processing method, system and terminal
CN101431708A (en) Terminal and method for recognizing headphone type
CN101194442A (en) Automated monitoring of a network
WO1998026622A2 (en) Mobile communication apparatus with transmission of battery level informations
CN115022934A (en) WiFi signal automatic switching connection method
CN101877872A (en) Method, device and system for optimizing network access performance
CN104837010A (en) Voice remote control testing method, device and system
CN103249061A (en) Method and system for testing voice quality
CN104866782A (en) Data processing method and apparatus
CN110708732A (en) Method and terminal for dynamically self-adapting network switching
CN106488495A (en) Base station selecting method and device based on base station signal quality
CA2052802A1 (en) Fm receiver anti-fading method and system
RU2222877C2 (en) Method for evaluating mobile phone quality in mobile radio communication network
CN1193882A (en) Method of redialing in case of deterioration of speech quality in cellular phone
CN101646189B (en) Wireless network cell performance test method and device
CN106604363A (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
KR100340245B1 (en) Apparatus and method of speech quality measurement in mobile communication system
CN101834749A (en) Method and device for acquiring data, method and device for monitoring business service quality
CN104994203A (en) Conversation quality test system and method
CN115942357A (en) WiFi signal weak automatic switching method and system
CA2155442C (en) Automatic signal analyzing system for identification and analysis of facsimile signals in telephone signal transmissions
CN101754238B (en) Temperature test method and temperature test system applied by same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication