Adaptive adjustment method and apparatus for data link, and device and medium

By introducing a link release timer into the data link of the Lwm2m client and dynamically adjusting the timing time according to communication abnormalities, the problem of excessive power consumption of the client module is solved and more efficient power consumption management is achieved.

WO2025035905A1PCT designated stage expired Publication Date: 2025-02-20FIBOCOM WIRELESS SOFTWARE INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/097236
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-15
Filing Date
2024-06-04
Publication Date
2025-02-20

AI Technical Summary

Technical Problem

The Lwm2m client automatically establishes and maintains the data link during operation, resulting in the link being maintained without tasks, increasing the average operating power consumption of the client module.

Method used

By introducing a link release timer into the data link, and when communicating with the server, the timing time is dynamically adjusted according to the timestamp and adjustment coefficient of multiple message interactions, to achieve adaptive adjustment of the data link.

Benefits of technology

It effectively reduces the power consumption of the client module and ensures that it remains idle as long as possible while meeting the data service requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024097236_20022025_PF_FP_ABST
    Figure CN2024097236_20022025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are an adaptive adjustment method and apparatus for a data link, and a device and a medium. The adaptive adjustment method for a data link comprises: establishing a data link with a server on the basis of the current service requirements, and starting a link release timer of the data link, wherein the link release timer has a default timing period; when communication with the server is abnormal, determining a timeout period on the basis of timestamps of multiple message interactions with the server and a selected adjustment coefficient; changing the timing period of the link release timer to the timeout period; and when the link release timer reaches the timeout period corresponding thereto, releasing the data link.
Need to check novelty before this filing date? Find Prior Art

Description

Data link adaptive adjustment method, device, equipment and medium

[0001] Citation of Related Applications

[0002] This disclosure claims all rights and interests in the invention patent application with application number 202311028817.5 filed with the State Intellectual Property Office of the People's Republic of China on August 15, 2023, entitled "A method, device, equipment and medium for adaptive adjustment of a data link", and incorporates the entire contents thereof into this disclosure by reference.

[0003] field

[0004] The present disclosure generally relates to the field of device communication technology, and more particularly to a method, apparatus, device, and computer-readable storage medium for adaptively adjusting a data link.

[0005] background

[0006] Lwm2m (Lightweight m2m) is a lightweight, standard and universal IoT device management protocol proposed by the Open Mobile Alliance. It can be used to quickly deploy IoT services in a client / server model.

[0007] Currently, the Lwm2m client does not implement data dial-up adaptation. When the client is running, it automatically establishes a data link. Even if there are no tasks performing data services, the data link will continue to exist. Because the data link is not released, the client cannot be idle for a long time, which will increase the average power consumption of the client module.

[0008] Overview

[0009] In one aspect, the present disclosure provides a method for adaptively adjusting a data link, comprising:

[0010] Establishing a data link with the server based on current business needs, and starting a link release timer of the data link; wherein the link release timer has a default timing time;

[0011] In the event of an abnormal communication with the server, determining a timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient;

[0012] Replacing the timing of the link release timer with the timeout period; and

[0013] When the link release timer reaches its corresponding timeout period, the data link is released.

[0014] In certain embodiments, in the case of abnormal communication with the server, determining the timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient includes:

[0015] If no response information fed back by the server is received within a preset time after sending a message request to the server, determining a time difference based on the timestamps of the most recently sent message request and the immediately preceding sent message request; and

[0016] The product of the time difference and the selected adjustment coefficient is used as the timeout period.

[0017] In certain embodiments, in the case of abnormal communication with the server, determining the timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient includes:

[0018] If no response information fed back by the server is received for a set number of consecutive times, determining an average time difference based on timestamps of multiple message requests; and

[0019] The product of the average time difference and the selected adjustment coefficient is used as the timeout time.

[0020] In certain embodiments, the method for selecting the adjustment factor includes:

[0021] Based on the communication frequency between the client and the server, an adjustment coefficient matching the communication frequency is selected from a set frequency-coefficient correspondence.

[0022] In some embodiments, the method for adaptively adjusting a data link further includes:

[0023] When communication with the server is normal and the link release timer has not reached its corresponding timing time, each time a message request is sent to the server, the link release timer is restarted until the link release timer reaches its corresponding timing time, and then the data link is released.

[0024] In some embodiments, the method for adaptively adjusting a data link further includes:

[0025] Upon receiving the wake-up information sent by the server, verifying the wake-up information;

[0026] If the wake-up information passes the verification, a data link is established.

[0027] In some embodiments, the method for adaptively adjusting a data link further includes:

[0028] Based on the data service interaction frequency of each data link between the client and the server, the timing time of the link release timer corresponding to each data link is adjusted.

[0029] On the other hand, the present disclosure provides an adaptive adjustment device for a data link, which includes an establishment unit, a start unit, a determination unit, a replacement unit, and a release unit;

[0030] The establishing unit is configured to establish a data link with the server based on current business needs;

[0031] The starting unit is configured to start a link release timer of the data link; wherein the link release timer has a default timing time;

[0032] The determining unit is configured to determine a timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient when communication with the server is abnormal;

[0033] The changing unit is configured to change the timing time of the link release timer to the timeout time; and

[0034] The releasing unit is configured to release the data link when the link release timer reaches its corresponding timeout period.

[0035] In certain embodiments, the determination unit is configured to determine a time difference based on the timestamps of the most recent message request sent and the previous message request sent, if no response information is received from the server within a preset time after sending a message request to the server; and to use the product of the time difference and the selected adjustment coefficient as the timeout period.

[0036] In certain embodiments, the determination unit is configured to determine the average time difference based on the timestamps of multiple message requests sent when no response information is received from the server for a set number of consecutive times; and to use the product of the average time difference and the selected adjustment coefficient as the timeout time.

[0037] In certain embodiments, with respect to the process of selecting the adjustment coefficient, the apparatus includes a selection unit;

[0038] The selection unit is configured to select an adjustment coefficient that matches the communication frequency from a set frequency-coefficient correspondence based on the communication frequency between the client and the server.

[0039] In certain embodiments, the data link adaptive adjustment device further comprises a restart unit;

[0040] The restart unit is configured to restart the link release timer each time a message request is sent to the server when communication with the server is normal and the link release timer has not reached its corresponding timing time, until the link release timer reaches its corresponding timing time, and then release the data link.

[0041] In certain embodiments, the data link adaptive adjustment device further includes a verification unit and an establishment unit;

[0042] The verification unit is configured to verify the wake-up information when receiving the wake-up information sent by the server; and

[0043] The establishing unit is configured to establish a data link if the wake-up information passes verification.

[0044] In certain embodiments, the data link adaptive adjustment apparatus further comprises an adjustment unit;

[0045] The adjustment unit is configured to adjust the timing of the link release timer corresponding to each data link based on the data service interaction frequency of each data link between the client and the server.

[0046] In another aspect, an embodiment of the present disclosure further provides an electronic device, comprising:

[0047] a memory configured to store a computer program;

[0048] The processor is configured to execute the computer program to implement the steps of the above-mentioned data link adaptive adjustment method.

[0049] On the other hand, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for adaptively adjusting a data link described in the present disclosure is implemented.

[0050] In some implementation schemes, the timestamps of multiple message interactions with the server are used to reflect the frequency of data service interactions between the client and the server. Based on the timestamps of multiple message interactions with the server and the adjustment coefficient, a more reasonable timeout time can be automatically determined to release the data link, ensuring that the client module remains in an idle state for as long as possible while meeting the data service requirements, effectively reducing the client's power consumption.

[0051] BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present disclosure, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0053] FIG1 is a flow chart of a method for adaptively adjusting a data link according to an embodiment of the present disclosure;

[0054] FIG2 is a schematic diagram of a scenario in which a client and a server interact with each other according to an embodiment of the present disclosure;

[0055] FIG3 is a schematic structural diagram of a data link adaptive adjustment device provided by an embodiment of the present disclosure; and

[0056] FIG4 is a structural diagram of an electronic device provided by an embodiment of the present disclosure.

[0057] Details

[0058] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of them. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0059] The terms "including" and "having," as well as any variations thereof, in the specification and claims of the present disclosure and the accompanying drawings, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements and may include steps or elements that are not listed.

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

[0061] Next, the method for adaptively adjusting a data link provided by an embodiment of the present disclosure is described in detail. FIG1 is a flow chart of the method for adaptively adjusting a data link provided by an embodiment of the present disclosure, the method comprising:

[0062] S101: Establishing a data link with a server based on current service requirements and starting a link release timer for the data link;

[0063] S102: In case of abnormal communication with the server, multiple communication with the server is performed;

[0064] S103: Changing the timing of the link release timer to the timeout time; and

[0065] S104: When the link release timer reaches its corresponding timeout period, the data link is released.

[0066] The data links corresponding to different business needs are different. The client can establish a matching data link with the server based on the current business needs.

[0067] The adaptive adjustment method of each data link is similar. In the embodiment of the present disclosure, one data link is used as an example for description.

[0068] In certain embodiments, when the client starts, a default timer time can be configured. After the data link is established, a link release timer can be added for the data link and started.

[0069] Each data link has a corresponding link release timer. In the initial state, the default timing times of different link release timers can be the same time value or different time values, which is not limited here.

[0070] After the link release timer for a data link is started, it begins counting. When the timer reaches its corresponding set time, the data link corresponding to the link release timer is released. Considering that in actual applications, normal communication interactions between the client and the server persist during the timing period, directly releasing the data link according to the set time may affect normal communication between the client and the server. Therefore, if the client and the server are communicating normally and the link release timer has not reached its corresponding set time, the client restarts the link release timer each time it sends a message request to the server. At this time, the link release timer restarts counting until the link release timer reaches its corresponding set time, indicating that there has been no communication demand between the client and the server during the set time, and the data link can be released.

[0071] In some implementation schemes, there may be communication anomalies. In response to such situations, the timing of the link release timer may be adaptively adjusted to release the data link as early as possible while satisfying data service interaction.

[0072] In certain embodiments, if no response information is received from the server within a preset time after a message request is sent to the server, it indicates that there is an abnormality in the communication between the client and the server. At this time, the time difference can be determined based on the timestamp of the most recent message request and the previous message request; the product of the time difference and the selected adjustment coefficient is used as the timeout period.

[0073] The value of the preset time can be flexibly set based on actual needs and is not limited here.

[0074] In certain embodiments, in addition to determining the timeout period based on the time difference between two consecutive message requests, the message requests may be evaluated multiple times, and the timeout period may be determined based on the average time difference between the multiple message requests.

[0075] In some implementation schemes, when no response information is received from the server for a set number of consecutive times, the average time difference can be determined based on the timestamps of multiple message requests; the product of the average time difference and the selected adjustment coefficient is used as the timeout period.

[0076] The number of consecutive requests can be determined based on actual needs. For example, it can be set to 3. If the client does not receive a response from the server after sending three consecutive request messages to the server, it indicates that a communication anomaly has occurred between the client and the server. In this case, the client can calculate the average time difference based on the timestamps of the message requests.

[0077] In certain implementation schemes, assuming that the server has fed back response information for the first two message requests sent by the client to the server, and has not fed back response information since the third message request, and the client has still not received a response information from the server after sending the fifth message request to the server, the time difference between the two adjacent message requests can be calculated in sequence, and a total of four time differences can be calculated, and the average of these four time differences can be taken to obtain the average time difference.

[0078] The adjustment coefficient may adopt a set empirical value, or the specific value of the adjustment coefficient may be determined based on the communication frequency.

[0079] In some implementations, an adjustment coefficient matching the communication frequency between the client and server can be selected from a set frequency-coefficient mapping. By determining the value of the adjustment coefficient based on the communication frequency, the adjustment coefficient is dynamically adjusted as the communication frequency changes, ensuring that the value of the adjustment coefficient better meets the current communication needs of the client and server.

[0080] After the timeout period is determined, the timing period of the link release timer may be replaced with the timeout period.

[0081] The timestamps of multiple message interactions are used to reflect the frequency of data service interactions between the client and the server. Based on the timestamps of multiple message interactions with the server and the adjustment coefficient, a more reasonable timeout period can be determined to release the data link.

[0082] In certain implementation schemes, the timing time of the link release timer is used as the basis for releasing the data link, and the timeout time is a relatively reasonable time for releasing the data link determined based on the frequency of interaction of the current data service. By replacing the timing time of the link release timer with the timeout time, the timing time of the link release timer is made more reasonable.

[0083] When the link release timer reaches its corresponding timeout period, it means that the data link is no longer needed. If the data link is retained, the power consumption of the client will increase. Therefore, in order to reduce the power consumption of the client, the data link can be released when the link release timer reaches its corresponding timeout period.

[0084] The client module configuration represents the hardware communication module that supports the client application. Each time the client releases a data link, power consumption is reduced to a certain extent. When all data links are released, the client module enters an idle state. This significantly reduces power consumption.

[0085] Figure 2 is a schematic diagram of a scenario in which a client and a server interact with each other according to an embodiment of the present disclosure. Based on different business requirements, the client can establish different data links with the server. Each time a data link is established, a link release timer can be added to the data link, and each link release timer has its default timing time. For each data link, a more reasonable timeout time can be determined to release the data link based on the frequency of interaction between the client and the server through the data link. In a specific implementation, a communication anomaly between the client and the server can be used as a trigger condition for calculating the timeout time. When there is no communication anomaly between the client and the server, the default timing time can still be used as the timeout time of the link release timer. A multi-way dial-up controller can be deployed on the client. When a link release timer reaches its corresponding timeout time, the multi-way dial-up controller can release the corresponding data link.

[0086] Figure 2 uses two data links as an example. A client can send a request message a to a server via the first data link, and the server can send a response message a back to the client via the first data link. During the first data link's link release timer, if normal communication between the client and server continues, the client can restart the link release timer each time it sends a request message to the server. The client can then send a request message b to the server via the second data link. If there's a communication problem with the second data link, the server might not receive request message b, or it might receive request message b but fail to send a response message b back to the client via the second data link. In Figure 2, a cross (×) indicates a communication problem with the second data link. When the second data link reaches its timeout, it is released.

[0087] It can be seen from the above technical solution that a data link with the server is established based on the current business needs, and the link release timer of the data link is started; each data link has its own corresponding link release timer, and the link release timer has its default timing time. In the case of abnormal communication with the server, the timeout time is determined based on the timestamp of multiple message interactions with the server and the selected adjustment coefficient. The timing time of the link release timer is replaced with the timeout time; when the link release timer reaches its corresponding timeout time, it means that the data link no longer has a need to be used, and the data link can be released at this time. In this technical solution, the timestamp of multiple message interactions with the server is used to reflect the frequency of interaction of data services between the client and the server. Based on the timestamp of multiple message interactions with the server and the adjustment coefficient, a more reasonable timeout time can be automatically determined to release the data link, ensuring that the client module remains in an idle state for as long as possible while meeting the data service requirements, effectively reducing the power consumption of the client.

[0088] In some embodiments, when the server needs to communicate with the client, it can send a wake-up message to the client.

[0089] When the client receives the wake-up information sent by the server, it can verify the wake-up information; if the wake-up information passes the verification, a data link is established.

[0090] The information exchanged between the server and the client may take various forms. To facilitate the client to recognize the wake-up information, the client may agree on the format of the wake-up information with the server in advance.

[0091] The wake-up message may be a string of codes in a specific format, and may be sent in the form of a short message (Short Message Service, SMS).

[0092] In some implementations, validation rules can be established based on the communication protocol used by the wake-up message. Upon receiving the wake-up message, the client verifies the wake-up message based on the validation rules. If the wake-up message passes the validation, it is considered safe and qualified, and the client can then establish a data link.

[0093] The wake-up message can be used to wake up all data links between the client and the server. In actual applications, there is no need to re-establish the already connected data links, and only the disconnected data links need to be re-established.

[0094] In some implementation schemes, assuming that a total of 10 data links can be established based on the business needs between the client and the server, and currently 3 data links are in a connected state, when the client receives the wake-up information sent by the server and the wake-up information verification is passed, the client can re-establish the remaining 7 data links to meet the access needs of the server.

[0095] In some implementation schemes, a mechanism is added for triggering the establishment of a data link by a wake-up message. The data link is established after the client receives the wake-up message, so that preparations can be made in advance for subsequent data services.

[0096] In some implementation schemes, there may be multiple data links established between the client and the server, and the data service interaction frequency on each data link may be different. Therefore, the timing of the link release timer corresponding to each data link can be adjusted based on the data service interaction frequency of each data link between the client and the server.

[0097] In certain embodiments, taking a data link as an example, when the frequency of data service interaction on the data link is high, it indicates that the utilization rate of the data link is high, and the client and server have a high demand for the data link. In this case, the timer value can be adjusted to a larger value. When the frequency of data service interaction on the data link is low, it indicates that the utilization rate of the data link is low, and the client and server have a low demand for the data link. In this case, the timer value can be adjusted to a smaller value.

[0098] In certain embodiments, a correspondence between frequency ranges and time intervals may be pre-established, and this correspondence may include time intervals corresponding to different frequency ranges. After determining the data service exchange frequency for each data link, the time interval corresponding to the data service exchange frequency may be determined based on this correspondence, and the matched time interval may be used as the time interval for the link release timer.

[0099] In certain implementation schemes, the value of the timing time is adjusted according to the frequency of data service interaction between the client and the server, thereby making the timing time more reasonable.

[0100] FIG3 is a schematic structural diagram of a data link adaptive adjustment device provided by an embodiment of the present disclosure, comprising an establishing unit 31, a starting unit 32, a determining unit 33, a replacing unit 34, and a releasing unit 35;

[0101] An establishing unit 31 is configured to establish a data link with the server based on current business needs;

[0102] The starting unit 32 is configured to start a link release timer of the data link; wherein the link release timer has a default timing time;

[0103] The determining unit 33 is configured to determine a timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient when communication with the server is abnormal;

[0104] A changing unit 34 is configured to change the timing time of the link release timer to the timeout time; and

[0105] The releasing unit 35 is configured to release the data link when the link release timer reaches its corresponding timeout period.

[0106] In certain embodiments, the determination unit is configured to determine the time difference based on the timestamps of the most recent message request sent and the previous message request sent, if no response information is received from the server within a preset time after sending a message request to the server; and to use the product of the time difference and the selected adjustment coefficient as the timeout period.

[0107] In some embodiments, the determination unit is configured to determine the average time difference based on the timestamps of multiple message requests sent when no response information is received from the server for a set number of consecutive times; and use the product of the average time difference and the selected adjustment coefficient as the timeout time.

[0108] In certain embodiments, with respect to the process of selecting the adjustment coefficient, the apparatus includes a selection unit;

[0109] The selection unit is configured to select an adjustment coefficient that matches the communication frequency from a set frequency-coefficient correspondence based on the communication frequency between the client and the server.

[0110] In certain embodiments, the data link adaptive adjustment device further comprises a restart unit;

[0111] The restart unit is configured to restart the link release timer each time a message request is sent to the server when communication with the server is normal and the link release timer has not reached its corresponding timing time, and release the data link until the link release timer reaches its corresponding timing time.

[0112] In certain embodiments, the data link adaptive adjustment device further includes a verification unit and an establishment unit;

[0113] a verification unit, configured to verify the wake-up information when receiving the wake-up information sent by the server;

[0114] The establishing unit is configured to establish a data link when the wake-up information passes the verification.

[0115] In certain embodiments, the data link adaptive adjustment apparatus further comprises an adjustment unit;

[0116] The adjusting unit is configured to adjust the timing of the link release timer corresponding to each data link based on the data service interaction frequency of each data link between the client and the server.

[0117] For the description of the features in the embodiment corresponding to FIG3 , reference can be made to the relevant description of the embodiment corresponding to FIG1 , and no further details will be given here.

[0118] It can be seen from the above technical solution that a data link with the server is established based on the current business needs, and the link release timer of the data link is started; each data link has its own corresponding link release timer, and the link release timer has its default timing time. In the case of abnormal communication with the server, the timeout time is determined based on the timestamp of multiple message interactions with the server and the selected adjustment coefficient. The timing time of the link release timer is replaced with the timeout time; when the link release timer reaches its corresponding timeout time, it means that the data link no longer has a need to be used, and the data link can be released at this time. In this technical solution, the timestamp of multiple message interactions with the server is used to reflect the frequency of interaction of data services between the client and the server. Based on the timestamp of multiple message interactions with the server and the adjustment coefficient, a more reasonable timeout time can be automatically determined to release the data link, ensuring that the client module remains in an idle state for as long as possible while meeting the data service requirements, effectively reducing the power consumption of the client.

[0119] FIG4 is a structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG4 , the electronic device includes: a memory 40 configured to store a computer program;

[0120] The processor 41 is configured to implement the data link adaptive adjustment method described in the present disclosure when executing a computer program.

[0121] In some embodiments, the electronic device may include, but is not limited to, a smartphone, a tablet computer, a laptop computer, or a desktop computer.

[0122] In certain embodiments, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 41 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor configured to process data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor configured to process data in a standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is configured to be responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an AI (Artificial Intelligence) processor configured to process computing operations related to machine learning.

[0123] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least configured to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, it can implement the relevant steps of the adaptive adjustment method of the data link disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include but is not limited to timing time, adjustment coefficient, timeout time, etc.

[0124] In some embodiments, the electronic device may further include a display screen 42 , an input / output interface 43 , a communication interface 44 , a power supply 45 , and a communication bus 46 .

[0125] Those skilled in the art will appreciate that the structure shown in FIG. 4 does not limit the electronic device and may include more or fewer components than shown.

[0126] It is understandable that if the adaptive adjustment method of the data link in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the current technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium and executes all or part of the steps of the various embodiments of the present disclosure. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, a magnetic disk or an optical disk, and other media that can store program codes.

[0127] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for adaptively adjusting a data link described in the present disclosure is implemented.

[0128] The above describes in detail the data link adaptive adjustment method, apparatus, device, and computer-readable storage medium provided by the embodiments of the present disclosure. The various embodiments are described in a progressive manner throughout this specification, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between the various embodiments can be referenced to each other. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple. For relevant details, refer to the method description.

[0129] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0130] The above describes in detail the data link adaptive adjustment method, apparatus, device, and computer-readable storage medium provided by the present disclosure. This document uses specific examples to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only intended to help understand the method and core concept of the present disclosure. It should be noted that for those skilled in the art, without departing from the principles of the present disclosure, various improvements and modifications may be made to the present disclosure, and such improvements and modifications also fall within the scope of protection of the claims of the present disclosure.

Claims

1. A method for adaptively adjusting a data link, comprising: Establishing a data link with the server based on current business needs, and starting a link release timer of the data link; wherein the link release timer has a default timing time; In case of abnormal communication with the server, determining a timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient; Replacing the timing time of the link release timer with the timeout time; and When the link release timer reaches its corresponding timeout period, the data link is released.

2. The method for adaptively adjusting a data link according to claim 1, wherein: In the case of abnormal communication with the server, determining the timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient includes: If no response information fed back by the server is received within a preset time after sending a message request to the server, determine the time difference according to the timestamps of the most recent message request sent and the timestamps of the previous message request sent; and The product of the time difference and the selected adjustment coefficient is taken as the timeout time.

3. The method for adaptively adjusting a data link according to claim 1, wherein: In the case of abnormal communication with the server, determining the timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient includes: If the response information fed back by the server is not received for a set number of consecutive times, the average number of times the request is sent is determined based on the timestamps of the multiple times the request is sent. time difference; and The product of the average time difference and the selected adjustment coefficient is taken as the timeout time.

4. The method for adaptively adjusting a data link according to claim 2 or 3, wherein: Regarding the selection process of the adjustment coefficient, the method includes: Based on the communication frequency between the client and the server, an adjustment coefficient matching the communication frequency is selected from a set frequency-coefficient correspondence relationship.

5. The method for adaptively adjusting a data link according to any one of claims 1 to 4, further comprising: When the communication with the server is normal and the link release timer has not reached its corresponding timing time, each time a message request is sent to the server, the link release timer is restarted until the link release timer reaches its corresponding timing time, and then the data link is released.

6. The method for adaptively adjusting a data link according to any one of claims 1 to 5, further comprising: When receiving the wake-up information sent by the server, verifying the wake-up information; as well as When the wake-up information passes the verification, a data link is established.

7. The method for adaptively adjusting a data link according to any one of claims 1 to 6, further comprising: Based on the data service interaction frequency of each data link between the client and the server, the timing time of the link release timer corresponding to each data link is adjusted.

8. An adaptive adjustment device for a data link, comprising an establishment unit, a start unit, a determination unit, a replacement unit and a release unit; The establishing unit is configured to establish a data link with the server based on current business requirements; The starting unit is configured to start a link release timer of the data link; wherein the link release timer has a default timing time; The determining unit is configured to determine a timeout period based on timestamps of multiple message interactions with the server and a selected adjustment coefficient when communication with the server is abnormal; The changing unit is configured to change the timing time of the link release timer to the timeout time; and The releasing unit is configured to release the data link when the link release timer reaches its corresponding timeout period.

9. Electronic equipment, comprising: a memory configured to store a computer program; A processor configured to execute the computer program to implement the data link adaptive adjustment method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for adaptively adjusting a data link according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for transmitting multi-media files in local area network

    CN103023735A

  • Secondary link release method, terminal and network side equipment

    CN111132381A

  • Data transmission method and device, computer equipment and storage medium

    CN112566225A

  • Adaptive adjustment method and device of data link, equipment and medium

    CN117062250A

  • Method and system for delayed connection release protocol

    US20030152030A1