Network connection control method of shared mobile power supply cabinet

By monitoring and switching user identification cards in real time in a shared mobile power cabinet, the problem of network connection interruption in places with poor network coverage is solved, and stable network connections are achieved in a weak network environment.

CN119183169APending Publication Date: 2024-12-24HANGZHOU XPOWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110438.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In places with poor network coverage, the probability of network connection interruption of shared mobile power cabinets is high, and the existing technology has failed to provide an effective solution.

Method used

By setting at least two card slots in a shared mobile power cabinet, inserting a user identification card in each card slot to monitor the network status in real time, selecting the optimal user identification card according to priority for network communication, and reaching the preset Switch the card slot during conditions to ensure the stability of network connection.

Benefits of technology

Effectively maintain the quality and speed of network connections, reduce the probability of network connection interruption, and improve network stability in weak network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119183169A_ABST
    Figure CN119183169A_ABST
Patent Text Reader

Abstract

The invention relates to a network connection control method for a shared mobile power supply cabinet, and the method comprises the steps: selecting a preset user identification card with the highest priority as a target identification card currently used by the shared mobile power supply cabinet; monitoring the network state of the target identification card in real time; when it is determined that the network state reaches a preset network switching condition, selecting other identification cards from all the user identification cards as new target identification cards according to the priorities; and controlling to switch to a new target identification card for network communication, and setting the priority of the new target identification card to be higher than the priority of the original target identification card when the number of continuous stable connection times of the new target identification card in a preset time period reaches a preset threshold value of the number of times. According to the invention, the quality and speed of network connection can be maintained based on the switching use of the user identification card, the stability of network connection is improved, and the probability of network connection interruption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device control, and in particular to a network connection control method for a shared mobile power cabinet. Background Art

[0002] At present, shared mobile power banks have been widely used in commercial places, entertainment and leisure places, and transportation hubs. In practical applications, the use of shared mobile power banks depends on cabinets. For places with poor network coverage, such as basements, cabinets often face problems with unstable network connection or disconnection, which not only affects the user experience, but also increases the complexity of equipment operation and maintenance.

[0003] In the related art, multiple network connections such as 4G connection, Wi-Fi connection and Bluetooth connection are usually used. For places with poor network coverage, the above connection methods still cannot provide stable network connection, which in turn affects the use of the cabinet. In the related art, there is a high probability of network connection interruption when the cabinet is in a place with poor network coverage, and no effective solution has been proposed so far. Summary of the invention

[0004] In this embodiment, a network connection control method for a shared mobile power cabinet is provided to solve the problem of a high probability of network connection interruption in the related art.

[0005] In a first aspect, a network connection control method of a shared mobile power cabinet is provided in this embodiment, wherein the shared mobile power cabinet is provided with at least two card slots, each of which is inserted with a user identification card, and the method comprises:

[0006] From all the user identification cards, select the user identification card with the highest preset priority as the target identification card currently used by the shared mobile power cabinet;

[0007] Real-time monitoring of the network status of the target identification card; the network status includes network connection status and network signal strength;

[0008] When it is determined that the network state reaches a preset network switching condition, selecting, from all the user identification cards, other identification cards except the target identification card as new target identification cards according to the priority;

[0009] Control switching to a new target identification card for network communication, and when the number of continuous stable connections of the new target identification card within a preset time period reaches a preset number threshold, set the priority of the new target identification card to be higher than the priority of the original target identification card.

[0010] In some embodiments, when it is determined that the network state reaches a preset network switching condition, selecting, according to the priority, from all the user identification cards, other identification cards except the target identification card as new target identification cards, including:

[0011] When the network connection state of the target identification card is disconnected and the preset switching flag indicates disconnection, ie switching, according to the priority, other identification cards except the target identification card are selected from all the user identification cards as new target identification cards.

[0012] In some embodiments, when it is determined that the network state reaches a preset network switching condition, selecting, according to the priority, from all the user identification cards, other identification cards except the target identification card as new target identification cards, including:

[0013] When it is detected that the network signal strength of the target identification card is in a preset weak network state, other identification cards except the target identification card are selected from all the user identification cards according to the priority as new target identification cards.

[0014] In some embodiments thereof: when the network signal strength of the target identification card is lower than a preset signal strength threshold, it is confirmed that the network signal strength of the target identification card is in a preset weak network state.

[0015] In some of the embodiments: a weighted solution is performed according to the network signal strength, transmission bandwidth, current network delay and packet loss rate of the target identification card to obtain a strength score of the target identification card;

[0016] When the strength score is lower than a preset score threshold, it is confirmed that the network signal strength of the target identification card is in a preset weak network state.

[0017] In some embodiments, when it is detected that the network signal strength of the target identification card is in a preset weak network state, selecting other identification cards except the target identification card from all the user identification cards as new target identification cards according to the priority, including:

[0018] When it is detected that the network signal strength of the target identification card is in a preset weak network state, selecting, from all the user identification cards, identification cards other than the target identification card as candidate identification cards according to the priority;

[0019] It is determined whether the network signal strength of the candidate identification card is greater than a preset signal strength threshold. If so, the candidate identification card is used as a new target identification card.

[0020] In some embodiments, if the network signal strength of the candidate identification card is less than the signal strength threshold, the method further includes:

[0021] It is determined whether the difference between the network signal strength of the candidate identification card and the network signal strength of the target identification card is greater than a preset difference threshold; if so, the candidate identification card is used as a new target identification card.

[0022] In some embodiments, the method further comprises:

[0023] When it is detected that the usage time of the currently used target identification card exceeds a preset time threshold, the other identification card is selected from all the user identification cards as a new target identification card for network communication.

[0024] In some embodiments, the method further comprises:

[0025] When it is monitored that the number of continuous stable connections of the new target identification card within the preset time period has not reached the preset number threshold and exceeds the preset number of retries, the original target identification card is restored for network communication.

[0026] In some embodiments, the method further comprises:

[0027] When a user identification card switch occurs, the switch information currently occurring is recorded to generate log data;

[0028] The network switching condition is optimized regularly according to the log data.

[0029] In a second aspect, a shared mobile power cabinet is provided in this embodiment, comprising: a control module, a communication module, a detection module and at least two card slots; wherein a user identification card is inserted into each card slot;

[0030] The detection module is used to monitor the network status of the target identification card currently in use in real time; the target identification card is one of all the user identification cards;

[0031] The control module is used to implement the network connection control method described in the first aspect above;

[0032] The communication module is used to perform network communication using a target identification card based on the control of the control module.

[0033] In some of the embodiments, the cabinet further includes a display module;

[0034] The display module is used to display the network status of the target identification card currently in use and provide a user operation interface.

[0035] In the third aspect, an electronic device is provided in this embodiment, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the network connection control method for the shared mobile power cabinet described in the first aspect is implemented.

[0036] In a fourth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the network connection control method of the shared mobile power cabinet described in the first aspect above is implemented.

[0037] Compared with the related art, a network connection control method for a shared mobile power cabinet, a shared mobile power cabinet, an electronic device and a storage medium are provided in this embodiment. The network connection control method for a shared mobile power cabinet selects a user identification card with the highest preset priority from all user identification cards as the target identification card currently used by the shared mobile power cabinet; monitors the network status of the target identification card in real time; the network status includes the network connection status and the network signal strength; when it is determined that the network status reaches the preset network switching condition, selects other identification cards except the target identification card from all user identification cards according to the priority as the new target identification card; controls the switching to the new target identification card for network communication, and when the number of continuous stable connections of the new target identification card within a preset time period reaches a preset number threshold, sets the priority of the new target identification card to be higher than the priority of the original target identification card. It can maintain the quality and speed of network connection based on the switching use of user identification cards, improve the stability of network connection, and thus reduce the probability of network connection interruption.

[0038] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0040] Figure 1 is a hardware structure block diagram of a terminal of the network connection control method of a shared mobile power cabinet of this embodiment;

[0041] Figure 2 is a flow chart of the network connection control method of the shared mobile power cabinet of this embodiment;

[0042] Figure 3is a flow chart of a network connection control method for a shared mobile power cabinet in some of the embodiments;

[0043] Figure 4 It is a structural block diagram of the shared mobile power cabinet of this embodiment. DETAILED DESCRIPTION

[0044] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0045] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0046] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 1 is a hardware structure block diagram of a terminal of the network connection control method of a shared mobile power cabinet in this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0047] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the network connection control method of the shared mobile power cabinet in the present embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0048] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0049] In this embodiment, a network connection control method for a shared mobile power cabinet is provided. The cabinet is provided with at least two card slots, and a user identification card is inserted into each card slot. Figure 2 is a flow chart of the network connection control method of the shared mobile power cabinet of this embodiment. Figure 2 As shown, the process includes the following steps:

[0050] Step S210: Select a user identification card with the highest preset priority from all user identification cards as the target identification card currently used by the shared mobile power cabinet.

[0051] The above-mentioned Subscriber Identity Module (SIM card for short) is an integrated circuit card held by mobile users of the global mobile communication system. The above-mentioned shared mobile power cabinet can specifically be a cabinet for placing shared mobile power. By setting a user identification card in the cabinet, it is possible to provide the cabinet with a network communication function, thereby facilitating the use and management of shared mobile power. In particular, the main card and the backup card can be set based on the priority from all the user identification cards. When running the cabinet, the main card with the highest priority is first used as the target identification card for network connection.

[0052] Step S220, monitoring the network status of the target identification card in real time; the network status includes the network connection status and the network signal strength.

[0053] Specifically, a detection module can be set in the cabinet to detect the network status of the user identification card to determine whether the network connection status of the target identification card currently in use is stable or disconnected, and to detect the network signal strength. The network status of the user identification card can be detected by using a third-party network status monitoring software, network testing tools, or services provided by operators.

[0054] Step S230, when it is determined that the network state reaches the preset network switching condition, select other identification cards except the target identification card from all user identification cards according to the priority as new target identification cards.

[0055] Wherein, the network switching condition can be that the network signal strength of the currently used user identification card is low, the network connection is unstable, or the network is disconnected. The unstable network connection can specifically be that the quality or speed of the network connection fluctuates, resulting in discontinuous data transmission or a slowdown in speed. When it is determined that the network connection state reaches the preset network switching condition, a user identification card is selected from all user identification cards to replace the currently used target identification card as a new target identification card. For example, when the network connection state of the main card reaches the preset network switching condition, a spare card with the next highest priority is selected from multiple user identification cards as a new target identification card for network connection according to the preset priority of each user identification card.

[0056] Step S240, control is switched to the new target identification card for network communication, and when the number of continuous stable connections of the new target identification card within a preset time period reaches a preset number threshold, the priority of the new target identification card is set higher than the priority of the original target identification card.

[0057] Specifically, the communication module in the cabinet can be controlled to switch to the new target identification card for network connection to continue to maintain the communication function. For example, when the spare card is used as the new target identification card, a counter Cstable is set to record the number of times the spare card continuously provides a stable connection. If the count value of the counter Cstable exceeds a certain threshold Tstable within a period of time (for example, within 24 hours), the primary and backup priorities of the user identification card are adjusted, the priority of the spare card is set to the highest, and it is upgraded to the main card, and the original main card is set to the spare card. If the original main card restores a stable connection and maintains a stable connection for a period of time (for example, within 24 hours), the original primary and backup priorities are restored.

[0058] In the above steps, a multi-card single standby network switching solution is implemented. By dynamically selecting and using the best user identification card to maintain the quality and speed of the network connection, the best network connection is achieved in a weak network state, thereby ensuring that the cabinet can maintain a stable network connection even in areas with poor network conditions.

[0059] In the related art, multiple network connections such as 4G connection, Wi-Fi connection and Bluetooth connection are usually used. For places with poor network coverage, stable network connection cannot be provided, and there is a problem of high probability of network connection interruption. In this regard, the network connection control method implemented in this embodiment can maintain the quality and speed of the network connection, thereby reducing the probability of network connection interruption.

[0060] Through the above steps S210 to S230, a user identification card with the highest preset priority is selected from all user identification cards as the target identification card currently used by the shared mobile power cabinet; the network status of the target identification card is monitored in real time; the network status includes the network connection status and the network signal strength; when it is determined that the network status reaches the preset network switching condition, according to the priority, other identification cards other than the target identification card are selected from all user identification cards as new target identification cards; control the switching to the new target identification card for network communication, and when the number of continuous stable connections of the new target identification card within a preset time period reaches the preset number threshold, the priority of the new target identification card is set to be higher than the priority of the original target identification card. It can maintain the quality and speed of network connection based on the switching use of user identification cards, improve the stability of network connection, and thus reduce the probability of network connection interruption.

[0061] In one embodiment, when it is determined that the network state reaches a preset network switching condition, selecting other identification cards except the target identification card from all user identification cards as new target identification cards according to the priority, which may specifically include:

[0062] When the network connection state of the target identification card is disconnected and the preset switching flag indicates disconnection, ie switching, other identification cards except the target identification card are selected as new target identification cards from all user identification cards according to the priority.

[0063] A flag bit immediate_switch can be pre-set to control whether the logic of immediate switching when the network is disconnected is enabled. For example, the default value of the flag bit can be set to 1, indicating that it is enabled by default. The network connection status of each user identification card is monitored in real time. When the target identification card is disconnected from the network (for example, the value of the network connection status CSmain of the target identification card changes from 1 to 0), and the flag bit of immediate switching when the network is disconnected is pre-enabled, it is confirmed that the network switching condition is met.

[0064] Based on this, in the present embodiment, when the currently used target identification card is disconnected from the network, another user identification card can be immediately switched to be used, thereby maintaining a stable network connection.

[0065] In another embodiment, when it is determined that the network state reaches a preset network switching condition, selecting other identification cards except the target identification card from all user identification cards as new target identification cards according to the priority may include:

[0066] When it is detected that the network signal strength of the target identification card is in a preset weak network state, other identification cards except the target identification card are selected as new target identification cards from all user identification cards according to the priority.

[0067] Specifically, the current network status can be determined by real-time monitoring of any one or more parameters related to the network signal strength, including but not limited to: signal strength, data transmission rate, delay, packet loss rate, and bandwidth utilization. The corresponding parameter threshold can be pre-set for the read parameter, and the relationship between the corresponding parameter and the parameter threshold can be used to determine whether the current network signal strength reaches the preset weak network state. For example, when the signal strength is lower than a certain signal strength threshold, such as 100 decibel milliwatts (dBm), it is confirmed that the current network connection state is poor and the network switching conditions are met. In addition, when the data transmission rate is lower than a certain rate threshold, it can be confirmed that a weak network state has been reached.

[0068] In this embodiment, by acquiring the real-time monitored network signal strength, the accuracy of network status detection can be improved, thereby achieving accurate judgment on whether to perform network switching.

[0069] In one embodiment, when the network signal strength of the target identification card is lower than a preset signal strength threshold, it is confirmed that the network signal strength of the target identification card is in a preset weak network state.

[0070] Optionally, in one embodiment, a weighted solution is performed based on the network signal strength, transmission bandwidth, current network delay and packet loss rate of the target identification card to obtain a strength score of the target identification card; when the strength score is lower than a preset score threshold, it is confirmed that the network signal strength of the target identification card is in a preset weak network state.

[0071] Specifically, the network signal strength can be combined with other parameters to determine whether the target identification card is in a weak network state. The Priority Score can be calculated by referring to the following formula:

[0072] [Priority Score (PS)=α·SS+β·BW-γ·L-δ·PLR]

[0073] Among them, SS stands for signal strength (Signal Strength), the unit is usually dBm or received signal strength indication (RSSI); BW stands for bandwidth (Bandwidth), the unit is usually Mbps; L stands for latency (Latency), the unit is usually milliseconds (ms); PLR stands for packet loss rate (Packet Loss Rate), usually expressed in percentage; α, β, γ, δ are weight coefficients used to adjust the influence of different indicators on the final score.

[0074] Based on this, when evaluating whether the target identification card has reached a weak network state, the network signal strength, transmission bandwidth, current network delay and packet loss rate can be comprehensively considered based on the above formula to determine whether it is necessary to continue switching the user identification card. In this way, frequent network switching caused by low signal strength due to occasional network fluctuations can be avoided, thereby improving the stability of the target identification card.

[0075] Additionally, in one embodiment, when it is detected that the network signal strength of the target identification card is in a preset weak network state, selecting, from all user identification cards according to priority, identification cards other than the target identification card as new target identification cards may specifically include:

[0076] When it is detected that the network signal strength of the target identification card is in a preset weak network state, other identification cards except the target identification card are selected as candidate identification cards from all user identification cards according to priority; it is determined whether the network signal strength of the candidate identification card is greater than the preset signal strength threshold, and if so, the candidate identification card is used as the new target identification card.

[0077] For example, when the network signal strength RSSImain of the main card is lower than the preset signal strength threshold Tswitch, according to the priority, confirm whether the network signal strength RSSIbackup of the user identification card serving as the backup card (for example, a user identification card with a priority lower than the current target identification card) is greater than or equal to the signal strength threshold Tswitch; if so, switch to using the backup card.

[0078] Furthermore, in one embodiment, if the network signal strength of the candidate identification card is less than the signal strength threshold, the network connection control method may further include:

[0079] Determine whether the difference between the network signal strength of the candidate identification card and the network signal strength of the target identification card is greater than a preset difference threshold; if so, use the candidate identification card as the new target identification card. Specifically, if RSSIbackup is less than Tswitch, determine whether RSSIbackup is greater than RSSImain+Tdiff; where Tdiff is a preset difference threshold, and if so, switch to using the standby card. In this embodiment, by introducing a difference threshold, it is determined whether the network signal strength of the standby card is better than that of the main card, so that the user identification card with better network signal strength can be used for network communication.

[0080] Additionally, in some of the embodiments, one or more network switching strategies may be pre-set according to the different requirements of the actual application scenario. In specific use, the selection of the user identification card may be realized based on a single network switching strategy among the multiple network switching strategies, or the selection of the user identification card may be realized by combining the multiple network switching strategies. In particular, the network switching strategies may be respectively set correspondingly from the dimension of the use priority of the user identification card, the dimension of the timed use, and the dimension of the signal strength of each user identification card.

[0081] For the priority strategy, different priorities can be set for different user identification cards in advance, for example, the priority of the primary card is higher than that of the backup card. When the communication function of the cabinet is turned on, the primary card is used for network communication first. When the network connection status of the primary card has problems such as poor quality, reduced speed or interruption, and network switching is required, the backup card is used for network connection.

[0082] For the timed switching strategy, the user identification card is automatically switched every preset time period. That is, the usage time of each user identification card is limited to prevent network connection problems caused by long-term use of the same user identification card.

[0083] As for the signal strength strategy, when it is detected that the signal strength of the currently used target identification card, such as the main card, is lower than a preset strength threshold, it will automatically switch to other user identification cards.

[0084] Additionally, in one embodiment, the network connection control method may further include:

[0085] When it is detected that the usage time of the currently used target identification card exceeds the preset time threshold, other identification cards are selected from all user identification cards as new target identification cards for network communication. In this embodiment, a timed switching strategy is set, and when the usage time of the target identification card is too long, other identification cards are switched to be used.

[0086] Additionally, in one embodiment, the network connection control method may further include:

[0087] When it is detected that the number of continuous stable connections of the new target identification card within the preset time period has not reached the preset number threshold and exceeds the preset number of retries, the original target identification card is restored for network communication.

[0088] Continue to use the above main card and backup card as an example. When the network signal strength of the main card is lower than the preset signal strength threshold, when switching to the backup card, if the signal strength of the backup card is higher than the strength threshold, you can immediately switch to the backup card for connection and set the number of retries. If the number of attempts to connect to the network using the backup card does not reach the preset number of retries N, you can wait for the preset retry interval time T interval If the backup card is not stably connected after the number of retries is reached, the error message can be recorded and the primary card can be used for connection again. In this case, the network connection status of the user identification card may be unstable due to environmental factors.

[0089] In this embodiment, by introducing a retry mechanism, the success rate of connection can be improved in a weak network environment and connection failures caused by network fluctuations can be reduced.

[0090] Additionally, in one embodiment, the network connection control method may further include:

[0091] When a user identification card switch occurs, the switch information of the current switch is recorded to generate log data; the network switch condition is optimized regularly according to the log data.

[0092] Specifically, each time a user identification card is switched, the switching information such as the reason for the current switching, the time, the state of the user identification card before and after the switching, etc. can be recorded and stored in the form of log data. Afterwards, the stored log data can be regularly analyzed to optimize the above network switching conditions and adjust the relevant thresholds involved therein.

[0093] In this embodiment, by recording and analyzing log data, the switching conditions and threshold settings can be continuously optimized to improve the adaptability and accuracy of the algorithm.

[0094] Figure 3 1 is a flow chart of a network connection control method for a shared mobile power cabinet in some embodiments. Figure 3 As shown, the network connection control method includes the following steps:

[0095] Step S301, initialize the priority of the user identification card according to the priority strategy; specifically, the primary and backup priorities of the two user identification cards can be set, and the primary card priority is higher than the backup card priority; in addition, the strength threshold of the network signal strength, the number of retries and the retry interval can also be set.

[0096] Step S302, monitor the network status of the main card currently in use, and when it is determined that the network status reaches the preset network switching condition, switch to the standby card for network connection; wherein, set a signal strength threshold Tswitch, below which the main card is considered to be in a weak network state, and switch to the standby card for network connection; or, set a flag bit immediate_switch to control whether to enable the logic of immediate switching when the network is disconnected (enabled by default, immediate_switch = 1), when the network connection status CSmain of the main card is 0, indicating that it is not connected (1 indicates that it is connected), and the switch flag indicates that the network is disconnected, i.e. switching, switch to the standby card.

[0097] Step S303: When the signal strength of the standby card is higher than the strength threshold, directly switch to the standby card for connection; otherwise, try to use the standby card to establish a network connection within the number of retries.

[0098] Step S304: If the standby card fails to establish a stable connection within the number of retries, an error message is recorded and the primary card connection is restored; and step S306 is executed.

[0099] Step S305, after the standby card establishes a network connection, adjust the priority according to the network connection status; wherein, if the standby card maintains a stable network connection within a preset period of time, the priority of the standby card is set to be higher than the priority of the primary card, and the standby card and the primary and standby card are swapped; if the original primary card can restore a stable connection and maintain a stable connection within a preset period of time, the original primary card is restored as the current primary card, and the initial priority setting is restored; execute step S306.

[0100] Step S306, recording the switching information each time the subscriber identity card is switched to generate log data, and regularly optimizing the network switching conditions and the related threshold settings therein according to the log data.

[0101] The above steps S301 to S306 can monitor the network status of the user identification card in real time and dynamically select the best user identification card for connection according to the actual situation. Through the priority adjustment mechanism, it can automatically adapt to changes in the network environment to ensure that the cabinet always uses the user identification card with the best signal for connection. In a weak network environment, the retry mechanism improves the success rate of the connection and reduces the connection failure caused by network fluctuations. By recording and analyzing log data, the network switching strategy and threshold setting can be continuously optimized to improve the adaptability and accuracy of the algorithm.

[0102] In this embodiment, a shared mobile power cabinet is also provided, which is used to implement the above embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware of predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0103] Figure 4 is a structural block diagram of the shared mobile power cabinet 40 of this embodiment, such as Figure 4 As shown, the shared mobile power cabinet 40 includes: a control module 42, a communication module 44, a detection module 46 and at least two card slots 48; wherein a user identification card is inserted into each card slot;

[0104] The detection module 46 is used to monitor the network status of the target identification card currently in use in real time; the target identification card is one of all the user identification cards; the control module 42 is used to implement the network connection control method provided in any of the above embodiments; the communication module 44 is used to use the target identification card for network communication based on the control of the control module.

[0105] Specifically, the control module 42 is the core of the components and is responsible for controlling the operation of other modules. The communication module is used to achieve communication connection with the network. The card slot can be a SIM card slot for inserting and reading a user identification card. The detection module is used to monitor the network connection status of the user identification card in real time. In addition, the shared mobile power cabinet 40 can also include a power module (not shown in the figure), which can provide power support for the operation of the entire cabinet.

[0106] Among them, this embodiment introduces a detection module 46 in the shared mobile power cabinet 40, which is responsible for real-time monitoring of the network connection status of the currently used user identification card and feeding back the detection result to the control module 42. When it is detected that the network connection is unstable or disconnected, the detection module 46 will send an alarm signal to the control module 42 to trigger the switching use of the user identification card.

[0107] When the shared mobile power cabinet 40 is turned on, the control module 42 will initialize each module and start the detection module 46 to monitor the network connection status in real time. When it is detected that the network connection status of the current user identification card is unstable or disconnected, the control module 42 will trigger the switching mechanism according to the preset network switching conditions and switch the communication module 44 to another user identification card for network connection.

[0108] Based on the above-mentioned shared mobile power cabinet 40, it is possible to maintain the quality and speed of the network connection based on the switching use of user identification cards, improve the stability of the network connection, and thus reduce the probability of network connection interruption. Through multi-card single-standby technology, when a user identification card has a network problem, it can be switched to another user identification card to ensure that the cabinet always maintains a network connection state. Specifically based on the network switching conditions, automatic switching is achieved without manual intervention, which reduces operation and maintenance costs and improves the availability and user experience of the cabinet. In addition, it can be applied to various network environments, and even for areas with poor network, it can also improve the network connection stability of the cabinet. In addition, the system structure of the above-mentioned shared mobile power cabinet 40 is simple, easy to implement and maintain, and can be expanded and upgraded according to needs.

[0109] In one embodiment, the shared mobile power cabinet may further include a display module, wherein the display module is used to display the network status of the target identification card currently in use and provide a user operation interface.

[0110] The user can view the current network status, the usage of the user identification card and other information through the display module, and perform related operations through the user operation interface. For example, in order to facilitate user operation, the display module can adopt a touch screen.

[0111] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0112] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0113] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0114] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0115] S1, from all user identification cards, select a user identification card with the highest preset priority as the target identification card currently used by the shared mobile power cabinet;

[0116] S2, real-time monitoring of the network status of the target identification card; the network status includes the network connection status and the network signal strength;

[0117] S3, when it is determined that the network status reaches the preset network switching condition, select other identification cards except the target identification card from all user identification cards according to the priority as the new target identification card;

[0118] S4, control switching to the new target identification card for network communication, and when the number of continuous stable connections of the new target identification card within a preset time period reaches a preset number threshold, the priority of the new target identification card is set to be higher than the priority of the original target identification card.

[0119] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0120] In addition, in combination with the network connection control method of the cabinet provided in the above embodiment, a storage medium can also be provided in this embodiment to implement. The storage medium stores a computer program; when the computer program is executed by the processor, any network connection control method of the shared mobile power cabinet in the above embodiment is implemented.

[0121] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0122] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0123] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0124] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0125] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A network connection control method for a shared mobile power cabinet, characterized in that: The shared mobile power cabinet is provided with at least two card slots, each of which is inserted with a user identification card, and the method comprises: From all the user identification cards, select the user identification card with the highest preset priority as the target identification card currently used by the shared mobile power cabinet; Real-time monitoring of the network status of the target identification card; the network status includes network connection status and network signal strength; When it is determined that the network state reaches a preset network switching condition, selecting, from all the user identification cards, other identification cards except the target identification card as new target identification cards according to the priority; Control switching to a new target identification card for network communication, and when the number of continuous stable connections of the new target identification card within a preset time period reaches a preset number threshold, set the priority of the new target identification card to be higher than the priority of the original target identification card.

2. The network connection control method of the shared mobile power cabinet according to claim 1, characterized in that: When it is determined that the network state reaches a preset network switching condition, selecting, from all the user identification cards, other identification cards except the target identification card as new target identification cards according to the priority, including: When the network connection state of the target identification card is disconnected and the preset switching flag indicates disconnection, ie switching, according to the priority, other identification cards except the target identification card are selected from all the user identification cards as new target identification cards.

3. The network connection control method of the shared mobile power cabinet according to claim 1, characterized in that: When it is determined that the network state reaches a preset network switching condition, selecting, from all the user identification cards, other identification cards except the target identification card as new target identification cards according to the priority, including: When it is detected that the network signal strength of the target identification card is in a preset weak network state, other identification cards except the target identification card are selected from all the user identification cards according to the priority as new target identification cards.

4. The network connection control method of the shared mobile power cabinet according to claim 3 is characterized in that: When the network signal strength of the target identification card is lower than a preset signal strength threshold, it is confirmed that the network signal strength of the target identification card is in a preset weak network state.

5. The network connection control method of the shared mobile power cabinet according to claim 3, characterized in that: Perform a weighted solution based on the network signal strength, transmission bandwidth, current network delay and packet loss rate of the target identification card to obtain the strength score of the target identification card; When the strength score is lower than a preset score threshold, it is confirmed that the network signal strength of the target identification card is in a preset weak network state.

6. The network connection control method of the shared mobile power cabinet according to claim 3, characterized in that: When it is detected that the network signal strength of the target identification card is in a preset weak network state, selecting, from all the user identification cards, other identification cards except the target identification card as new target identification cards according to the priority, including: When it is detected that the network signal strength of the target identification card is in a preset weak network state, selecting, from all the user identification cards, identification cards other than the target identification card as candidate identification cards according to the priority; It is determined whether the network signal strength of the candidate identification card is greater than a preset signal strength threshold. If so, the candidate identification card is used as a new target identification card.

7. The network connection control method of the shared mobile power cabinet according to claim 6, characterized in that: If the network signal strength of the candidate identification card is less than the signal strength threshold, the method further includes: It is determined whether the difference between the network signal strength of the candidate identification card and the network signal strength of the target identification card is greater than a preset difference threshold; if so, the candidate identification card is used as a new target identification card.

8. The network connection control method of the shared mobile power cabinet according to claim 1, characterized in that: The method further comprises: When it is detected that the usage time of the currently used target identification card exceeds a preset time threshold, the other identification card is selected from all the user identification cards as a new target identification card for network communication.

9. The network connection control method of the shared mobile power cabinet according to claim 1, characterized in that: The method further comprises: When it is monitored that the number of continuous stable connections of the new target identification card within the preset time period has not reached the preset number threshold and exceeds the preset number of retries, the original target identification card is restored for network communication.

10. The network connection control method for a shared mobile power cabinet according to any one of claims 1 to 9, characterized in that: The method further comprises: When a user identification card switch occurs, the switch information currently occurring is recorded to generate log data; The network switching condition is optimized regularly according to the log data.

11. A shared mobile power cabinet, characterized in that: include: A control module, a communication module, a detection module and at least two card slots; wherein a user identification card is inserted into each card slot; The detection module is used to monitor the network status of the target identification card currently in use in real time; the target identification card is one of all the user identification cards; The control module is used to implement the network connection control method of the shared mobile power cabinet according to any one of claims 1 to 10; The communication module is used to perform network communication using a target identification card based on the control of the control module.

12. The shared mobile power cabinet according to claim 11, characterized in that: The shared mobile power cabinet also includes a display module; The display module is used to display the network status of the target identification card currently in use and provide a user operation interface.

13. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the network connection control method for a shared mobile power cabinet according to any one of claims 1 to 10.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the network connection control method for a shared mobile power cabinet according to any one of claims 1 to 10 are implemented.