Self-adaptive switching method and system for static load test communication, medium and equipment

By setting the adaptive switching method of the main and backup communication modes in the static load test equipment, the problems of unstable communication and long recovery time in foundation pile detection are solved, and communication stability and flexibility are achieved under complex operating conditions ensures the continuity and safety of the test.

CN119325100APending Publication Date: 2025-01-17YANLIAN (WUHAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411152900.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

In foundation pile detection, the communication of static load testing equipment has problems of instability and flexibility under complex operating conditions, especially in the case of multi-device interference and insufficient signal coverage of mobile operators, and the recovery time when communication is abnormal. Longer, affecting the test continuity.

Method used

Adaptive switching method is adopted to set two communication modes (main and backup). When communication is abnormal, the switching mode is detected and the recovery situation is switched to ensure communication stability and flexibility. The specific steps include sending service data packets and judging the communication recovery status. , and switch the backup mode if necessary to maintain communication continuity.

Benefits of technology

It realizes the communication stability and flexibility requirements under complex operating conditions, quickly restores service data communication, reduces test interruptions caused by communication abnormalities, and improves anti-interference ability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119325100A_ABST
    Figure CN119325100A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive switching method and system for static load test communication, a medium and equipment, and the method comprises the following steps: setting two different communication modes in a static load test process, and defining any communication mode selected for communication with a lower computer for the first time as a main path communication mode, the communication mode which is not selected for the first time is defined as a standby communication mode; when the service data packet is sent to the lower computer through the main path communication mode and a service data reply packet sent by the lower computer is not received, regulating and controlling the two different communication modes so as to confirm whether the main path communication mode is recovered or not; when it is confirmed that the main path communication mode is recovered, keeping communication between the main path communication mode and the lower computer, and shielding the standby path communication mode; and when it is confirmed that the main path communication mode is not recovered, the standby path communication mode is selected to communicate with the lower computer, and the main path communication mode is shielded. Therefore, the method can meet the requirements for communication stability and flexibility under complex and changeable working conditions of a static load test site.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pile foundation detection, and in particular to an adaptive switching method, system, medium and equipment for static load test communication. Background Art

[0002] Static load test is a common detection method used in the field of pile foundation detection. During the static load test, although the communication between the static load detection host and the sensor centralized control base station is not large in data volume, it needs to be maintained at all times and cannot be interrupted to ensure that the sensor centralized control base station (lower computer) is always under control.

[0003] In the field of static load testing of construction site pile foundation inspection, the early connection between the static load inspection host and the sensor centralized control base station was wired. Pure wired connection has the problems of complex on-site wiring, obvious distance limitation, inconvenient carrying and storage of wires, etc.

[0004] With later technical improvements, the communication method between the static load detection host and the sensor centralized control base station has developed into a coexistence of wired and 433lora wireless connection modes. However, only one of the two modes can be selected during use. That is, after selecting one of the connection methods, it is impossible to flexibly switch to another communication method during the test operation. If the wired connection is plugged in, the wired mode is the default, and the wireless communication mode can only be activated when the wired connection is not plugged in.

[0005] A single 433lora wireless communication connection will cause unstable communication when encountering special terrain or when there are multiple other devices running at the same time nearby. In most cases, there will be no such problem when using 4G communication alone. However, the foundation pile detection equipment is used in the early stages of construction of buildings, bridges, etc. In this area, the foundation houses are in the stage of preparing to start construction, so it is inevitable that there will be imperfect signal coverage by mobile operators. At the same time, if only a single wireless communication method is selected, if communication abnormalities occur, the communication recovery time is usually at least 5 seconds due to operations such as module reset configuration. At this time, there will be a long period of communication loss.

[0006] When the equipment has multiple communication modes at the same time, the static load test lasts for a long time, usually more than 24 hours. During the long-term continuous operation, the on-site environment will inevitably change. For example, other equipment added to the construction site will cause communication interference to the static load test that is more than halfway through. At this time, the need for flexible and dynamic switching, or even seamless and efficient switching of communication modes is more urgent. Summary of the invention

[0007] The present invention provides an adaptive switching method, system, medium and equipment for static load test communication, which can meet the requirements for communication stability and flexibility under complex and changeable working conditions at a static load test site.

[0008] In a first aspect, a method for adaptive switching of static load test communication is provided, which is applied to a host computer and includes the following steps:

[0009] Two different communication modes are set in the static load test process, and any communication mode selected for the initial communication with the lower computer is defined as the main communication mode, and the communication mode not selected for the initial communication is defined as the backup communication mode, and the backup communication mode is shielded;

[0010] When a service data packet is sent to a lower computer through the main communication mode, and no service data reply packet sent by the lower computer is received, two different communication modes are regulated to confirm whether the main communication mode is restored;

[0011] When it is confirmed that the main communication mode is restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded;

[0012] When it is confirmed that the main communication mode has not been restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded.

[0013] According to the first aspect, in a first possible implementation manner of the first aspect, the step of “when a service data packet is sent to a lower computer through the main communication mode and no service data reply packet sent by the lower computer is received, regulating two different communication modes to confirm whether the main communication mode is restored” specifically includes the following steps:

[0014] When a service data packet is sent to a lower computer via the main communication mode, and no service data reply packet is received from the lower computer, the main communication mode is maintained within a preset communication cycle, and the backup communication mode is shielded;

[0015] When the service data packet is sent to the lower computer again through the main communication mode, and a service data reply packet sent by the lower computer is received, it is determined that the main communication mode has been restored;

[0016] When the service data packet is sent to the lower computer through the main communication mode again, and no service data reply packet sent by the lower computer is received, it is determined that the main communication mode has not been restored.

[0017] According to the first aspect, in a second possible implementation manner of the first aspect, the two different communication modes are a 4G communication mode and a Lora communication mode.

[0018] According to the first aspect, in a third possible implementation manner of the first aspect, after the step of “when it is confirmed that the main communication mode has not been restored, selecting the backup communication mode to communicate with the lower computer, and shielding the main communication mode”, the following steps are specifically included:

[0019] The result of the self-check and recovery of the main communication mode by the lower computer in the non-main line Task is obtained, and the two communication modes are regulated according to the self-check and recovery result.

[0020] According to the third possible implementation manner of the first aspect, in the fourth possible implementation manner of the first aspect, the step of “regulating the two communication modes according to the self-test recovery result” specifically includes the following steps:

[0021] When it is detected that the main communication mode self-checks and recovers successfully, the status of the two communication modes are refreshed and both are available.

[0022] In a second aspect, there is provided an adaptive switching system for static load test communication, including a communication-connected upper computer and a lower computer;

[0023] The upper computer is used to set two different communication modes in the static load test process, and define any communication mode selected for the initial communication with the lower computer as the main communication mode, define the communication mode not selected for the initial communication as the backup communication mode, and shield the backup communication mode;

[0024] When the upper computer sends a service data packet to the lower computer through the main communication mode and does not receive a service data reply packet sent by the lower computer, the two different communication modes are regulated to confirm whether the main communication mode is restored;

[0025] When the upper computer confirms that the main communication mode is restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded;

[0026] When the upper computer confirms that the main communication mode has not been restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded.

[0027] In some embodiments, the host computer is also used to:

[0028] When a service data packet is sent to a lower computer via the main communication mode, and no service data reply packet is received from the lower computer, the main communication mode is maintained within a preset communication cycle, and the backup communication mode is shielded;

[0029] When the service data packet is sent to the lower computer again through the main communication mode, and a service data reply packet sent by the lower computer is received, it is determined that the main communication mode has been restored;

[0030] When the service data packet is sent to the lower computer through the main communication mode again, and no service data reply packet sent by the lower computer is received, it is determined that the main communication mode has not been restored.

[0031] In some embodiments, the lower computer is used to perform self-check recovery on the main communication mode at preset intervals in the non-main line task until the main communication mode is successfully restored;

[0032] The upper computer is also used to obtain the result of the self-check and recovery of the main communication mode by the lower computer. When it is detected that the self-check and recovery of the main communication mode is successful, the status of the two communication modes are refreshed to be available.

[0033] Compared with the prior art, the advantages of the present invention are as follows: by setting two different communication modes in the static load test process, and defining any communication mode selected for the initial communication with the lower computer as the main communication mode, and defining the communication mode not selected for the initial communication as the backup communication mode, and shielding the backup communication mode; when abnormal communication with the lower computer is detected, the two different communication modes are regulated to confirm whether the main communication mode is restored; when the main communication mode is detected to be restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded; when the main communication mode is detected not to be restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded. Therefore, it can meet the requirements for communication stability and flexibility under complex and changeable working conditions at the static load test site. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of an embodiment of an adaptive switching method for static load test communication of the present invention;

[0035] Figure 2 It is a flow chart of another embodiment of an adaptive switching method for static load test communication of the present invention. DETAILED DESCRIPTION

[0036] Reference will now be made in detail to specific embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Although the present invention will be described in conjunction with specific embodiments, it will be understood that it is not intended to limit the present invention to the embodiments described. On the contrary, it is intended to cover changes, modifications and equivalents included in the spirit and scope of the present invention as defined by the appended claims. It should be noted that the method steps described herein can all be implemented by any functional block or functional arrangement, and any functional block or functional arrangement can be implemented as a physical entity or a logical entity, or a combination of the two.

[0037] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0038] Note: The example to be introduced below is only a specific example, and is not intended to limit the embodiments of the present invention to the following specific steps, values, conditions, data, sequences, etc. Those skilled in the art can apply the concept of the present invention to construct more embodiments not mentioned in this specification by reading this specification.

[0039] See also Figure 1 and Figure 2 As shown, an embodiment of the present invention provides an adaptive switching method for static load test communication, which is applied to a host computer and includes the following steps:

[0040] S100, setting two different communication modes in the static load test process, and defining any communication mode selected for the initial communication with the lower computer as the main communication mode, defining the communication mode not selected for the initial communication as the backup communication mode, and shielding the backup communication mode;

[0041] S200, when a service data packet is sent to a lower computer through the main communication mode, and no service data reply packet sent by the lower computer is received, two different communication modes are regulated to confirm whether the main communication mode is restored;

[0042] S300, when it is confirmed that the main communication mode is restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded;

[0043] S400, when it is confirmed that the main communication mode has not been restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded.

[0044] The two different communication modes are 4G communication mode and Lora communication mode.

[0045] Specifically, in the present embodiment, the measurement and control device (lower computer) hardware has two sets of wireless communication hardware modules, 433lora and 4G, and is connected to the upper computer using spi port and uart port respectively. The present invention takes into account that 433lora can be used for communication in the case of a communication distance of less than 1 km to save the traffic charges of mobile operators, and takes into account that the static load test time exceeds 24 hours, and the on-site monitoring personnel need to go to eat during the test and the problem of inadequate monitoring at the same time, and can flexibly switch to 4G communication mode to carry the upper computer tablet with them, without being restricted by distance. When there are multiple devices on site using 433lora or 4G at the same time or there are other high-power motors and the like that generate strong interference, 433lora or 4G are in two different frequency bands with large gaps, and at this time, the device communication can be efficiently and flexibly switched to a wireless communication mode with less interference to work. When the equipment is intensively operated, 4G and 433lora can also expand the number of channels and increase the upper limit of the number of devices running simultaneously in a small area. When the 4G and 433LoRa modules only use UART and SPI low-cost hardware access solutions, the primary and backup lines are simultaneously connected to the application layer logic to achieve high-speed primary and backup line switching. The strategy of restoring business communications first and then handling communication anomalies is adopted, making communication anomalies imperceptible and not affecting the test process and user experience, greatly improving the anti-interference ability and flexibility of communication.

[0046] At the same time, in view of the special environment of the static load test site, it is likely that multiple sets of static load testers and other testing equipment will be intensively running at the same time during a specific stage of the construction period, and the equipment will have strong mutual interference. The communication state is maintained in the measurement and control device, that is, three communication states are set: ①. Standby state ②. 433lora working state ③. 4G working state. When a certain communication method successfully establishes business communication, this state is maintained, and the data packets of other communication methods are logically shielded to save the processing power of the upper and lower computers. The upper limit of 433lora channels is 7, and the upper limit of single-band access in a small area of ​​4G communication is 30. If these upper limits are exceeded, the communication will be unstable. State retention logically and effectively reduces the mutual interference between multiple sets of equipment and unnecessary main and standby line switching. When multiple devices are running simultaneously in a small area, this strategy can be used to quickly stabilize. Each set of equipment will be stable in a certain channel under a certain communication method, and run independently and stably without interfering with each other.

[0047] Preferably, in another embodiment of the present application, the step of "S200, when a service data packet is sent to a lower computer through the main communication mode, and no service data reply packet sent by the lower computer is received, two different communication modes are regulated to confirm whether the main communication mode is restored" specifically includes the following steps:

[0048] When a service data packet is sent to a lower computer via the main communication mode, and no service data reply packet is received from the lower computer, the main communication mode is maintained within a preset communication cycle, and the backup communication mode is shielded;

[0049] When the service data packet is sent to the lower computer again through the main communication mode, and a service data reply packet sent by the lower computer is received, it is determined that the main communication mode has been restored;

[0050] When the service data packet is sent to the lower computer through the main communication mode again, and no service data reply packet sent by the lower computer is received, it is determined that the main communication mode has not been restored.

[0051] Specifically, in this embodiment, the primary and standby communication are always on standby at the same time, and connected to the application layer of the lower computer program. When a single communication is abnormal (i.e., a single host request does not receive a reply), the common practice is to first check whether this communication mode is available (this operation will take up at least one communication cycle, and this cycle will inevitably fail to make business logic data interaction), and the present invention directly attempts to send the business data packet again by the upper computer. If the lower computer returns the packet at this time, and passes the data verification, it is determined that the communication is restored, and the data interaction is completed in this preset communication cycle, then it is judged that the main communication mode has been restored. If the lower computer still returns the packet abnormally, the communication mode is directly and quickly switched. Therefore, when the present invention detects that the communication with the lower computer is abnormal, it only makes one more attempt. If it succeeds, this attempt has been restored. If it fails, it can be restored by switching to the standby communication next time. This method ensures that the highest priority pause and pump off command in the static load test can restore the communication and send business data successfully in the case of network abnormality, and avoids safety accidents caused by untimely sending of emergency packets as much as possible. Therefore, when a communication anomaly is detected, the present invention can directly perform self-check and reset without waiting for a recovery cycle consisting of self-check and reset operations of at least 5 seconds when using a single module, and it also eliminates the problem of misjudging a single service data packet anomaly caused by accidental interference in wireless communication as a communication mode anomaly.

[0052] That is to say, if there is no major problem with the main communication mode at present, a large number of self-check and reset processes will be blindly carried out. Even if the current main line is switched to the backup line, and the background performs self-check and reset, the current communication has been switched to the backup line without affecting the business logic communication, but the limited host computer computing power will be consumed in the background.

[0053] Preferably, in another embodiment of the present application, after the step of "when it is confirmed that the main communication mode has not been restored, selecting the backup communication mode to communicate with the lower computer, and shielding the main communication mode", the following steps are specifically included:

[0054] The result of the self-check and recovery of the main communication mode by the lower computer in the non-main line Task is obtained, and the two communication modes are regulated according to the self-check and recovery result.

[0055] Preferably, in another embodiment of the present application, the step of "regulating the two communication modes according to the self-test recovery result" specifically includes the following steps:

[0056] When it is detected that the main communication mode self-checks and recovers successfully, the status of the two communication modes are refreshed and both are available.

[0057] Specifically, in this embodiment, the communication of the static load test equipment has the following characteristics: 1. Under normal circumstances, the static load test performs data exchange once every second; 2. When the static load test detects an abnormality, the upper computer needs to issue the highest priority pause and pump shutdown command as quickly as possible. At this time, all other logics must give way to this command to ensure that this command is delivered to the lower computer as soon as possible. Even if the network is not good, this command must not respond too slowly, otherwise it will cause a production accident.

[0058] Based on the above communication characteristics of the static load test, when encountering a communication abnormality, any operation such as detecting whether the current communication can continue to be used or restoring the module configuration requires the single-chip microcomputer and the communication module to interact with each other for device status information data. These operations are time-consuming and the business data information cannot be transmitted at the same time as these operations are being performed. It is necessary to wait for these operations to be completed before business data transmission can be performed. Therefore, in order to restore business data communication as quickly as possible, the present invention directly adopts the fast switching of the main and standby lines, and the abnormal line is cut to the background to self-check and reset to handle the communication mode in which the abnormality currently occurs. After processing, the current state of the main and standby lines is refreshed and restored to the state in which the main and standby lines are available at the same time, so as to realize efficient and rapid recovery of communication business data and prevent the lower computer from being uncontrollable due to the slow recovery of communication abnormalities.

[0059] During the self-check and recovery process of the lower computer, the lower computer places the previous main communication mode in the backup task of the FreeRTOS of the lower computer (which can be understood as an independent thread that does not interfere with the main line logic), and the lower computer performs the time-consuming 4G or lora module self-check and recovery initialization process. When the lower computer completes the initialization self-check and recovery, the lower computer will use the currently used backup communication mode to confirm whether the abnormal main communication mode of the current lower computer has been restored through the service data packet. After confirming that the main communication mode has been restored, the upper computer and the lower computer will conduct a backup connection test on both sides to confirm that the backup can communicate normally, and the upper and lower computers will refresh to the state of backup availability at the same time.

[0060] At the same time, the embodiment of the present invention also provides an adaptive switching system for static load test communication, including a communication-connected upper computer and a lower computer;

[0061] The upper computer is used to set two different communication modes in the static load test process, and define any communication mode selected for the initial communication with the lower computer as the main communication mode, define the communication mode not selected for the initial communication as the backup communication mode, and shield the backup communication mode;

[0062] When the upper computer sends a service data packet to the lower computer through the main communication mode and does not receive a service data reply packet sent by the lower computer, the two different communication modes are regulated to confirm whether the main communication mode is restored;

[0063] When the upper computer confirms that the main communication mode is restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded;

[0064] When the upper computer confirms that the main communication mode has not been restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded.

[0065] The host computer is also used for:

[0066] When a service data packet is sent to a lower computer via the main communication mode, and no service data reply packet is received from the lower computer, the main communication mode is maintained within a preset communication cycle, and the backup communication mode is shielded;

[0067] When the service data packet is sent to the lower computer again through the main communication mode, and a service data reply packet sent by the lower computer is received, it is determined that the main communication mode has been restored;

[0068] When the service data packet is sent to the lower computer through the main communication mode again, and no service data reply packet sent by the lower computer is received, it is determined that the main communication mode has not been restored.

[0069] The lower computer is used to perform self-check recovery on the main line communication mode at preset intervals in the non-main line task until the main line communication mode is successfully restored;

[0070] The upper computer is also used to obtain the result of the self-check and recovery of the main communication mode by the lower computer. When it is detected that the self-check and recovery of the main communication mode is successful, the status of the two communication modes are refreshed to be available.

[0071] Specifically, in the embodiment of the present invention, the initial state of the lower computer of the measurement and control device is ① standby state, and the upper computer can communicate with the measurement and control device using any one of the two communication modes.

[0072] If the measurement and control device is connected using the 433LoRa method, the measurement and control device will enter the 433LoRa state. In this state, each time a business logic interaction is successfully completed, the 4G module and 4G-related logic will enter a shielded and unresponsive state and refresh this state for two communication interaction cycles (2 seconds here). After that, each time 433LoRa successfully communicates, the 4G shielding duration will be refreshed to 2 seconds, eliminating the impact of 4G-related internal logic and external signals on normal communication, improving the operating efficiency and anti-interference ability of the entire system.

[0073] If you use 4G to connect to the measurement and control device, the measurement and control device will enter the 4G state. In this state, each time a business logic interaction is successfully completed, the 433LoRa module and the 433LoRa-related logic will enter a shielded and unresponsive state and refresh this state for two communication interaction cycles (2 seconds here). After that, each time 4G_successful communication is completed, the 433LoRa shielding duration will be refreshed to 2 seconds, eliminating the impact of 433LoRa-related internal logic and external signals on normal communication, improving the operating efficiency and anti-interference ability of the entire system.

[0074] When a communication anomaly occurs, it must exceed two communication interaction cycles (2 seconds), and the measurement and control device will exit the current communication state and return to the standby state. In this state, the measurement and control device can accept any of the two communication modes for communication. At this time, the upper computer will switch to another communication mode to communicate with the lower computer. In this way, the business data communication is quickly restored by the method of high-speed, flexible and adaptive switching of communication modes. At this time, the communication mode that has been determined to have a problem is switched away, and the background asynchronously performs self-checking, repairing configuration, resetting and other time-consuming operations. These time-consuming operations that require waiting will no longer affect business data communication due to the use of this adaptive switching solution, and even the entire network exception handling process is no longer perceived by the business logic. Users may not even be aware of the network anomaly during use.

[0075] When communication is normal, communication remains continuous and there is no situation where the communication shielding time (two communication cycles) is exceeded. At this time, the shielding of heterogeneous communication signals takes effect, and the lower computer eliminates the signal interference of the communication mode that is not currently in use, reducing the amount of data processing, avoiding the uncontrolled frequent switching of the main and backup routes, avoiding the simultaneous occupation of the main and backup routes, and avoiding the interference of the main and backup routes in sending and receiving data at the same time while occupying too many communication resources to interfere with other devices, thereby achieving anti-interference characteristics.

[0076] In the static load scenario, the single communication interaction interval is 1 second. Here, 2 seconds is set to represent a communication failure. Then, another communication attempt is made under this communication mode. If successful, the business data communication is directly restored. If it fails, the primary and backup lines are quickly switched to ensure that the next communication will be restored. At the same time, it also effectively reduces the mutual interference between devices when multiple sets of equipment are used at the same time.

[0077] In summary, the present invention has the following beneficial effects:

[0078] 1. Fast switching. Fast recovery of abnormal communication. The detection steps of non-business data transmission that will interrupt business transmission will not appear in the main line logic.

[0079] 2. Logical shielding lasts for 2 cycles to resist interference. At the same time, it reduces unnecessary packet sending at the logic level to reduce interference to similar surrounding devices.

[0080] 3. The truly time-consuming module detection is placed in other threads, which does not affect the main business communication and keeps the communication as uninterrupted as possible.

[0081] Specifically, this embodiment corresponds one-to-one to the above method embodiment, and the functions of each module have been described in detail in the corresponding method embodiment, so they will not be repeated here.

[0082] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the method steps of the above method are implemented.

[0083] The present invention implements all or part of the process in the above method, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0084] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program running on the processor, and when the processor executes the computer program, all or part of the method steps in the above method are implemented.

[0085] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of a computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

[0086] The memory can be used to store computer programs and / or modules, and the processor realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, video data, etc.). In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMed i aCard, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0087] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, servers or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.

[0088] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), servers, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. An adaptive switching method for static load test communication, applied to a host computer, characterized in that: The following steps are involved: Two different communication modes are set in the static load test process, and any communication mode selected for the initial communication with the lower computer is defined as the main communication mode, and the communication mode not selected for the initial communication is defined as the backup communication mode, and the backup communication mode is shielded; When a service data packet is sent to a lower computer through the main communication mode, and no service data reply packet sent by the lower computer is received, two different communication modes are regulated to confirm whether the main communication mode is restored; When it is confirmed that the main communication mode is restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded; When it is confirmed that the main communication mode has not been restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded.

2. The adaptive switching method for static load test communication according to claim 1, characterized in that: The step of "when a service data packet is sent to the lower computer through the main communication mode and no service data reply packet sent by the lower computer is received, two different communication modes are regulated to confirm whether the main communication mode is restored" specifically includes the following steps: When a service data packet is sent to a lower computer via the primary communication mode, and no service data reply packet is received from the lower computer, the primary communication mode is maintained within a preset communication period, and the backup communication mode is shielded; When the service data packet is sent to the lower computer again through the main communication mode, and a service data reply packet sent by the lower computer is received, it is determined that the main communication mode has been restored; When the service data packet is sent to the lower computer through the main communication mode again, and no service data reply packet sent by the lower computer is received, it is determined that the main communication mode has not been restored.

3. The adaptive switching method for static load test communication according to claim 1, characterized in that: The two different communication modes are 4G communication mode and Lora communication mode.

4. The adaptive switching method for static load test communication according to claim 1, characterized in that: After the step of "when it is confirmed that the main communication mode has not been restored, selecting the backup communication mode to communicate with the lower computer and shielding the main communication mode", the following steps are specifically included: The result of the self-check and recovery of the main communication mode by the lower computer in the non-main line Task is obtained, and the two communication modes are regulated according to the self-check and recovery result.

5. The adaptive switching method for static load test communication according to claim 4, characterized in that: The step of "regulating the two communication modes according to the self-test recovery result" specifically includes the following steps: When it is detected that the main communication mode self-checks and recovers successfully, the status of the two communication modes are refreshed and both are available.

6. An adaptive switching system for static load test communication, characterized in that: Including a communication-connected upper computer and a lower computer; The upper computer is used to set two different communication modes in the static load test process, and define any communication mode selected for the initial communication with the lower computer as the main communication mode, define the communication mode not selected for the initial communication as the backup communication mode, and shield the backup communication mode; When the upper computer sends a service data packet to the lower computer through the main communication mode and does not receive a service data reply packet sent by the lower computer, the two different communication modes are regulated to confirm whether the main communication mode is restored; When the upper computer confirms that the main communication mode is restored, the main communication mode is maintained to communicate with the lower computer, and the backup communication mode is shielded; When the upper computer confirms that the main communication mode has not been restored, the backup communication mode is selected to communicate with the lower computer, and the main communication mode is shielded.

7. The adaptive switching system for static load test communication according to claim 6, characterized in that: The host computer is also used for: When a service data packet is sent to a lower computer via the primary communication mode, and no service data reply packet is received from the lower computer, the primary communication mode is maintained within a preset communication period, and the backup communication mode is shielded; When the service data packet is sent to the lower computer again through the main communication mode, and a service data reply packet sent by the lower computer is received, it is determined that the main communication mode has been restored; When the service data packet is sent to the lower computer through the main communication mode again, and no service data reply packet sent by the lower computer is received, it is determined that the main communication mode has not been restored.

8. The adaptive switching system for static load test communication according to claim 6, characterized in that: The lower computer is used to perform self-check recovery on the main line communication mode at preset intervals in the non-main line task until the main line communication mode is successfully restored; The upper computer is also used to obtain the result of the self-check and recovery of the main communication mode by the lower computer. When it is detected that the self-check and recovery of the main communication mode is successful, the status of the two communication modes are refreshed to be available.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the adaptive switching method for static load test communication according to any one of claims 1 to 6 is implemented.

10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor runs the computer program, the adaptive switching method for static load test communication according to any one of claims 1 to 6 is implemented.