Terminal communication recovery method, device and equipment and readable storage medium

By retaining the information table entry of the terminal device that is misjudged as offline in the wireless access point device and marking it as an invalid state, processing the received downlink and uplink messages, and timely updating the terminal device status, solving the problem of the AP error judgment that the terminal device is offline, causing the AP error judgment that the terminal is offline. The communication interruption problem realizes the rapid automatic recovery of communication of terminal devices, and improves user experience and network stability.

CN119421187AActive Publication Date: 2025-02-11NEW H3C TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411513765.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-11
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

In WLAN network, when the AP mistakenly believes that the terminal device is offline, it usually deletes the terminal's relevant information, resulting in communication interruption, affecting the user experience, and lacks an effective mechanism to quickly restore communication, which requires the user to manually reconnect.

Method used

In a wireless access point device, in response to an event that determines that the target terminal device is an offline device, its information entry is retained and marked as an invalid state, rather than directly deleted. If the downlink message is received, it will be discarded; if the uplink message is received, it will be processed according to the message type. When the processing results of the uplink message comply with the preset rules, the update terminal device status is valid.

Benefits of technology

Through this method, the communication status of the terminal device that is misjudged as offline can be quickly restored without user intervention, and the degree of automation of the network and user experience can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119421187A_ABST
    Figure CN119421187A_ABST
Patent Text Reader

Abstract

The invention provides a terminal communication recovery method, device and equipment and a readable storage medium, and the method comprises the steps: in response to an event of judging that target terminal equipment is offline equipment, retaining an information table item associated with the target terminal equipment, and configuring the equipment state of the target terminal equipment as an invalid state in the information table item; discarding the downlink message, and processing the uplink message according to the type of the uplink message; and in response to an event of which the uplink message processing result accords with a preset rule, configuring the device state of the target terminal device to be an effective state in the information table item. Through the technical scheme of the invention, the information table item of the offline terminal is reserved on the wireless access point equipment and is marked as the invalid state instead of being directly deleted, so that when the uplink message of the terminal is received, the message is processed and recovered to the valid state according to the message type, the inconvenience of manual reconnection of a user is avoided, and the user experience is improved. And the automatic recovery capability and the user experience of the terminal under the abnormal condition of the network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a terminal communication recovery method, device, equipment and readable storage medium. Background Art

[0002] With the rapid development of wireless local area network (WLAN) technology, more and more devices are connected to the Internet wirelessly, making wireless networks an indispensable part of daily life. The current mainstream WLAN network architecture adopts a centralized management mode, namely AC (Access Controller) + FIT AP (Fit Access Point) mode. In this mode, FIT AP is mainly responsible for radio frequency management and user access, while more complex network management and policy implementation are completed by AC.

[0003] like Figure 4 In actual application environments, WLAN networks are faced with a variety of terminal device connections, which may cause problems with the connection between the devices and the AP (Access Point) due to various reasons. There are two common situations: one is that the terminal is actually offline, but the network device still thinks it is online; the other is that the terminal is still online, but the network device mistakenly thinks it is offline. The former problem is relatively easy to solve, and there are usually multiple ways to deal with it. However, the latter is a more difficult problem, especially when the terminal has no business activities and enters a dormant state, or the terminal temporarily leaves the coverage of the AP during movement and then returns. At this time, the AP may mistakenly believe that the terminal has left the network.

[0004] When the AP mistakenly believes that a terminal is offline, it usually deletes the relevant information of the terminal, so that any data packets sent to the terminal will not be forwarded, and the uplink data from the terminal may also be discarded. Although some terminals will try to reconnect after detecting a connection problem, many terminals do not do so automatically, which leads to long communication interruptions and seriously affects the user experience.

[0005] Manually reconnecting can solve this problem, but doing so is not only inconvenient for the user, but in some cases, it may cause long disconnections if the user is unaware of the network connection problem.

[0006] In view of the above problems, a new method is urgently needed to handle terminals that are mistakenly considered offline but are actually still online, so as to ensure that they can quickly resume normal communication without user intervention. Summary of the invention

[0007] In view of this, the present specification provides a terminal communication recovery method, device, electronic device, and readable storage medium to improve the above-mentioned problem of terminal communication interruption.

[0008] The specific technical solutions are as follows:

[0009] The present specification provides a terminal communication recovery method, which is applied to a wireless access point device, and the method includes: in response to an event of determining that a target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item; if a downlink message to be forwarded to the target terminal device is received, discarding the downlink message according to the invalid state of the target terminal device, and if an uplink message is received from the target terminal device, processing the uplink message according to the type of the uplink message; in response to an event that the result of processing the uplink message meets a preset rule, configuring the device status of the target terminal device as a valid state in the information table item.

[0010] As a technical solution, in response to an event of determining that a target terminal device is an offline device, an information table item associated with the target terminal device is retained, and a device state of the target terminal device is configured as an invalid state in the information table item, including: if it is detected that the target terminal device meets a preset feature, the target terminal device is determined to be an offline device, and in response to an event of determining that the target terminal device is an offline device, an information table item associated with the target terminal device is retained, and the device state of the target terminal device is configured as an invalid state in the information table item; the preset features include: a specific message is lost when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of a local wireless access point after leaving the working range of the local wireless access point.

[0011] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table item associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table item, including: receiving an offline message sent by the target terminal device, judging that the target terminal device is an offline device according to the offline message sent by the target terminal device, and in response to an event in which the target terminal device is determined to be an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item.

[0012] As a technical solution, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.

[0013] As a technical solution, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device, and if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.

[0014] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.

[0015] The present specification also provides a terminal communication recovery device, which is applied to a wireless access point device, and the device includes: a first unit, which is used to retain an information table item associated with the target terminal device in response to an event that the target terminal device is determined to be an offline device, and configure the device status of the target terminal device as an invalid state in the information table item; a second unit, which is used to discard the downlink message to be forwarded to the target terminal device according to the invalid state of the target terminal device after receiving the downlink message to be forwarded to the target terminal device, and to process the uplink message according to the type of the uplink message after receiving the uplink message sent by the target terminal device; and a third unit, which is used to configure the device status of the target terminal device as a valid state in the information table item in response to an event that the result of processing the uplink message meets a preset rule.

[0016] As a technical solution, in response to an event of determining that a target terminal device is an offline device, an information table item associated with the target terminal device is retained, and a device state of the target terminal device is configured as an invalid state in the information table item, including: if it is detected that the target terminal device meets a preset feature, the target terminal device is determined to be an offline device, and in response to an event of determining that the target terminal device is an offline device, an information table item associated with the target terminal device is retained, and the device state of the target terminal device is configured as an invalid state in the information table item; the preset features include: a specific message is lost when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of a local wireless access point after leaving the working range of the local wireless access point.

[0017] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table item associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table item, including: receiving an offline message sent by the target terminal device, judging that the target terminal device is an offline device according to the offline message sent by the target terminal device, and in response to an event in which the target terminal device is determined to be an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item.

[0018] As a technical solution, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.

[0019] As a technical solution, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device, and if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.

[0020] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.

[0021] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned terminal communication recovery method.

[0022] This specification also provides a readable storage medium, which stores machine executable instructions. When the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned terminal communication recovery method.

[0023] The above technical solution provided in this specification brings at least the following beneficial effects:

[0024] By retaining the information table entries of offline terminals on the wireless access point device and marking them as invalid instead of directly deleting them, it is possible to process and restore the valid state of the uplink messages received from such terminals according to the message type, thus avoiding the inconvenience of manual reconnection by users and improving the automatic recovery capability and user experience of the terminal in network abnormalities. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.

[0026] Figure 1 is a flow chart of a terminal communication recovery method in one implementation of this specification;

[0027] Figure 2 is a structural diagram of a terminal communication recovery device in one implementation mode of this specification;

[0028] Figure 3 is a hardware structure diagram of an electronic device in one embodiment of this specification;

[0029] Figure 4 This is a typical networking diagram involved in this manual.

[0030] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION

[0031] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, rather than limiting this specification. The singular forms of "a", "said" and "the" used in this specification and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0032] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".

[0033] In the AC+FITAP WLAN network, FITAP is responsible for providing radio frequency interfaces and user access services, while AC is responsible for managing all FITAPs in the network and providing all services other than access. This network architecture can effectively support large-scale wireless user access, but it also brings some challenges, especially in terminal status management.

[0034] In actual network operations, terminal status misjudgment may occur due to various reasons. For example, when a terminal device frequently enters a dormant state due to a power management policy, some packets may be lost in the network, causing the AP to mistakenly believe that the terminal is offline. In addition, when a terminal temporarily leaves the working range of the AP during movement and then returns, the AP may mistakenly judge that the terminal is offline, while in fact the terminal is still online. These situations will cause the communication between the terminal and the network to be interrupted, affecting the user's network experience.

[0035] When the AP determines that the terminal is offline, it usually deletes the terminal information, resulting in the loss of downlink messages and the discarding of uplink data messages. The terminal needs to reconnect to restore communication, but most terminal devices do not reconnect automatically, which requires manual intervention by the user, resulting in a poor user experience. In addition, if the terminal cannot reconnect automatically for a long time, it may cause communication interruption, affecting the user's work and daily life.

[0036] One of the technical solutions is for users to manually reconnect. Although this method can restore communication, it requires active user intervention, which not only increases the user's usage burden, but also reduces the degree of network automation. In addition, manual reconnection may also cause communication interruption for a period of time, affecting the user's workflow and network experience.

[0037] Another solution is to wait for the terminal to automatically reconnect, but this usually takes a long time and the success rate of reconnection cannot be guaranteed. During this period, users may experience continuous communication interruptions, which seriously affects user experience and network reliability.

[0038] Therefore, the problem with the above technical solution is that when the AP mistakenly determines that the terminal is offline, there is a lack of an effective mechanism to quickly restore the communication status of the terminal to avoid manual intervention by the user and reduce the risk of communication interruption. This not only affects the user's network experience, but also poses a challenge to the stability and reliability of the network.

[0039] This specification aims to solve the above-mentioned problems in the prior art and provide a method and implementation for quickly restoring communication of an invalid terminal to improve the stability of the WLAN network and the user experience. Through the technical solution of this specification, when a terminal is misjudged as offline, its communication status can be quickly restored without the need for the user to manually reconnect, thereby improving the automation and reliability of the network.

[0040] The specific technical solution is described below.

[0041] In one embodiment, the present specification provides a terminal communication recovery method, which is applied to a wireless access point device, and the method includes: in response to an event in which a target terminal device is determined to be an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item; if a downlink message to be forwarded to the target terminal device is received, discarding the downlink message according to the invalid state of the target terminal device, and if an uplink message is received from the target terminal device, processing the uplink message according to the type of the uplink message; in response to an event in which the result of processing the uplink message meets a preset rule, configuring the device status of the target terminal device as a valid state in the information table item.

[0042] Specifically, Figure 1 , including the following steps:

[0043] Step S11, in response to the event of determining that the target terminal device is an offline device, retaining an information table entry associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table entry.

[0044] When the AP determines that the target terminal device is an offline device through some mechanism (such as signal detection, message loss, etc.), instead of immediately deleting the information table items associated with the terminal device, the AP will retain these information table items and configure the device status of the target terminal device as "invalid state" (Inv) in the information table items. This step is a key innovation because it avoids directly deleting the terminal information, thereby making it possible for the terminal device to quickly resume communication.

[0045] Assuming that a wireless client enters sleep mode due to power management policy, the AP does not receive any message from the client for a period of time and may mistakenly determine that the client is offline. In the method of the present invention, the AP does not delete the information of the client, but marks it as "invalid" and waits for the client to be reactivated.

[0046] Step S12: If a downlink message to be forwarded to the target terminal device is received, the downlink message is discarded according to the invalid state of the target terminal device; if an uplink message sent by the target terminal device is received, the uplink message is processed according to the type of the uplink message.

[0047] While the target end device is in the "invalid state", the AP will perform the following operations:

[0048] Downlink message processing: If the AP receives a downlink message that needs to be forwarded to the target terminal device, since the target terminal device is in an "invalid state", the AP will discard these downlink messages based on this state. This is done to avoid sending data to a terminal that has been considered offline, thereby saving network resources;

[0049] Uplink message processing: If the AP receives an uplink message sent by the target terminal device, the AP will process it according to the type of uplink message. This may include data messages, management messages, etc. For data messages, the AP will check whether the MAC address and IP address of the message are consistent with those when the terminal was previously online. If they are consistent, the AP will process the message. If the message is encrypted and the encryption information used when the terminal was online is used, the AP will set the terminal status to "valid status" (V) after processing the message. If the message is not encrypted, the AP will directly change the terminal status to "valid status" after processing the message.

[0050] Step S13, in response to the event that the result of processing the uplink message meets the preset rule, the device state of the target terminal device is configured as a valid state in the information table item.

[0051] When the client wakes up from sleep and tries to send data, the AP will receive the uplink data message. The AP will check the encryption status of the message and the MAC and IP address of the terminal. If everything is normal, the AP will process the message and restore the client's status to "valid state"

[0052] If after processing the uplink message, the result meets the preset rules (for example, the message format is correct, the encryption information matches, the terminal responds normally, etc.), the AP will configure the device status of the target terminal device as "valid state" (V) in the information table entry. This step marks the official recovery of terminal communication.

[0053] If the management message sent by the client is correctly processed by the AP and the client responds normally to the protection message of the AP, the AP will confirm that the client is back online and update the client status to "valid status".

[0054] Through this terminal communication recovery method, even if the AP mistakenly judges an online terminal as offline, the terminal's communication status can be quickly restored without manual user intervention, thereby greatly improving network stability and user experience. This method is not only applicable to misjudgments caused by sleep or mobility, but also to other situations that may lead to misjudgment of terminal status, and has wide applicability and practicality.

[0055] When the AP device determines that a target terminal device (STA) is offline through detection means, the AP will not immediately delete the information record of the terminal, but will retain its information table entry and mark the device status of the terminal as invalid (Invalid, abbreviated as Inv) in the information table entry. The invalid state here means that the AP is not sure whether the terminal has actually left the network coverage. For example, suppose a user is using a laptop to connect to a wireless network, but because there is no network activity for the time being, the AP mistakenly believes that the laptop has left the network range. At this time, the AP will change the status of the laptop to Inv instead of directly deleting its record.

[0056] Once the AP is in this state setting, if it receives downlink data messages that need to be forwarded to the target terminal, the AP will directly discard these messages without processing them according to the invalid state of the terminal, because at this time the AP believes that the terminal cannot receive these data. On the contrary, if the AP receives uplink messages sent by the target terminal, whether they are data messages or management messages, the AP will process them according to the type of message. For example, assuming that the aforementioned laptop starts sending emails, that is, uplink data messages, after being marked as Inv state, the AP will check whether the source MAC address and IP address of the message are consistent with the previously recorded ones, and if they are consistent, the message will be processed. If the message is encrypted and uses the previously valid encryption information, after processing the message, the AP will re-mark the state of the terminal as valid (V for short). If the message is not encrypted, it will be directly processed and its state will be changed to V. If it is a management message, such as an authentication request, the AP will process it normally and send a protection message to the terminal after processing. If the terminal receives a correct response, the AP will also change the terminal's state back to V. If the correct response is not received, the AP will not process it further.

[0057] When the result of processing the uplink message meets the preset rules, that is, when the AP determines that the terminal is indeed online and has conducted effective communication, the AP will reconfigure the device status of the target terminal to the valid state (V) in the information table entry, so that the terminal can continue to use the network service normally. For example, continuing with the above laptop as an example, assuming that after receiving the email sent by the laptop, the AP successfully processes the email and receives a correct response from the laptop, then the AP will change the laptop's status from Inv to V and resume its normal service.

[0058] In order to prevent terminals that are in an invalid state for a long time from occupying system resources, when the terminal status changes from valid (V) to invalid (Inv), the AP will start a maintenance period (T) with a default duration of 3600 seconds (i.e. one hour). If the terminal status is still invalid (Inv) during this period, the AP will delete the terminal information table entry after the period ends. Users can also choose to enable the periodic keep-alive detection function, so that the AP will regularly send detection messages to the terminal within the period T. If the terminal can respond correctly, its status will be changed to valid (V), otherwise the terminal information record will also be deleted.

[0059] Through this method, even if the terminal temporarily loses effective contact with the AP due to various reasons, it can automatically restore communication without user intervention, improving the terminal's self-recovery ability in network abnormalities, thereby greatly improving the user experience.

[0060] In one embodiment, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item, includes: if it is detected that the target terminal device meets a preset feature, then determining that the target terminal device is an offline device, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item; the preset features include: losing a specific message when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.

[0061] In one embodiment, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item, includes: receiving an offline message sent by the target terminal device, determining that the target terminal device is an offline device according to the offline message sent by the target terminal device, and in response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item.

[0062] In one embodiment, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.

[0063] In one embodiment, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device, and if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.

[0064] In one embodiment, in response to an event in which the target terminal device is determined to be an offline device, an information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.

[0065] In one embodiment, if Figure 2 , the specification also provides a terminal communication recovery device, which is applied to a wireless access point device, and the device includes: a first unit, which is used to respond to an event that a target terminal device is determined to be an offline device, retain an information table item associated with the target terminal device, and configure the device state of the target terminal device as an invalid state in the information table item; a second unit, which is used to discard the downlink message to be forwarded to the target terminal device according to the invalid state of the target terminal device after receiving the downlink message to be forwarded to the target terminal device, and to process the uplink message according to the type of the uplink message after receiving the uplink message sent by the target terminal device; a third unit, which is used to respond to an event that the result of processing the uplink message meets a preset rule, and configure the device state of the target terminal device as a valid state in the information table item.

[0066] In one embodiment, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item, includes: if it is detected that the target terminal device meets a preset feature, then determining that the target terminal device is an offline device, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item; the preset features include: losing a specific message when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.

[0067] In one embodiment, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item, includes: receiving an offline message sent by the target terminal device, determining that the target terminal device is an offline device according to the offline message sent by the target terminal device, and in response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table item.

[0068] In one embodiment, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.

[0069] In one embodiment, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device, and if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.

[0070] In one embodiment, in response to an event in which the target terminal device is determined to be an offline device, an information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.

[0071] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.

[0072] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned terminal communication recovery method. From a hardware level, the hardware architecture diagram can be seen in Figure 3 shown.

[0073] In one embodiment, the present specification provides a readable storage medium, wherein the readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned terminal communication recovery method.

[0074] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0075] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0076] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

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

[0078] This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes 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.

[0079] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0080] 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 executing on the computer or other programmable device to implement 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.

[0081] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0082] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A terminal communication recovery method, characterized in that: Applied to a wireless access point device, the method comprises: In response to an event that the target terminal device is determined to be an offline device, retaining an information table item associated with the target terminal device, and configuring a device state of the target terminal device as an invalid state in the information table item; If a downlink message to be forwarded to a target terminal device is received, the downlink message is discarded according to the invalid state of the target terminal device, and if an uplink message sent by the target terminal device is received, the uplink message is processed according to the type of the uplink message; In response to an event that a result of processing the uplink message complies with a preset rule, a device state of the target terminal device is configured as a valid state in the information table item.

2. The method according to claim 1, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table item, includes: If it is detected that the target terminal device meets the preset characteristics, the target terminal device is determined to be an offline device. In response to the event of determining that the target terminal device is an offline device, an information table item associated with the target terminal device is retained, and a device state of the target terminal device is configured as an invalid state in the information table item; The preset features include: a specific message is lost when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.

3. The method according to claim 1, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table item, includes: An offline message sent by a target terminal device is received, and the target terminal device is determined to be an offline device according to the offline message sent by the target terminal device. In response to the event of determining that the target terminal device is an offline device, an information table item associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table item.

4. The method according to claim 1, characterized in that: In response to the event that the result of processing the uplink message meets the preset rule, configuring the device state of the target terminal device as a valid state in the information table item includes: If the uplink message sent by the target terminal device is a data message, after processing the data message, the device state of the target terminal device is configured as a valid state in the information table item.

5. The method according to claim 1, characterized in that In response to the event that the result of processing the uplink message meets the preset rule, configuring the device state of the target terminal device as a valid state in the information table item includes: If the uplink message sent by the target terminal device is a management message, a protection message is sent to the target terminal device after processing the management message. If a response message sent by the target terminal device in response to the protection message is received, the device status of the target terminal device is configured as a valid status in the information table item.

6. The method according to claim 1, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table item, includes: In response to an event that the device status of the target terminal device in the information table item is configured as an invalid state, a keep-alive timer associated with the target terminal device is started. If the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, the information table item associated with the target terminal device is deleted.

7. A terminal communication recovery device, characterized in that: Applied to a wireless access point device, the device comprises: The first unit is used for, in response to an event of determining that the target terminal device is an offline device, retaining an information table item associated with the target terminal device, and configuring a device state of the target terminal device as an invalid state in the information table item; The second unit is used to discard the downlink message according to the invalid state of the target terminal device after receiving the downlink message to be forwarded to the target terminal device, and to process the uplink message according to the type of the uplink message after receiving the uplink message sent by the target terminal device; The third unit is used to configure the device state of the target terminal device as a valid state in the information table item in response to an event that the result of processing the uplink message meets the preset rule.

8. The device according to claim 7, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table item, includes: If it is detected that the target terminal device meets the preset characteristics, the target terminal device is determined to be an offline device. In response to the event of determining that the target terminal device is an offline device, an information table item associated with the target terminal device is retained, and a device state of the target terminal device is configured as an invalid state in the information table item; The preset features include: a specific message is lost when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.

9. The device according to claim 7, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table item, includes: An offline message sent by a target terminal device is received, and the target terminal device is determined to be an offline device according to the offline message sent by the target terminal device. In response to the event of determining that the target terminal device is an offline device, an information table item associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table item.

10. The device according to claim 7, characterized in that In response to the event that the result of processing the uplink message meets the preset rule, configuring the device state of the target terminal device as a valid state in the information table item includes: If the uplink message sent by the target terminal device is a data message, after processing the data message, the device state of the target terminal device is configured as a valid state in the information table item.

11. The device according to claim 7, characterized in that In response to the event that the result of processing the uplink message meets the preset rule, configuring the device state of the target terminal device as a valid state in the information table item includes: If the uplink message sent by the target terminal device is a management message, a protection message is sent to the target terminal device after processing the management message. If a response message sent by the target terminal device in response to the protection message is received, the device status of the target terminal device is configured as a valid status in the information table item.

12. The device according to claim 7, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table item associated with the target terminal device, and configuring the device state of the target terminal device as an invalid state in the information table item, includes: In response to an event that the device status of the target terminal device in the information table item is configured as an invalid state, a keep-alive timer associated with the target terminal device is started. If the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, the information table item associated with the target terminal device is deleted.

13. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any method described in claims 1-6.

14. A readable storage medium, characterized in that: The readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement any one of the methods of claims 1-6.

Citation Information

Patent Citations

  • Method, device and system for waking up calling terminal

    CN102624566A

  • Method and device for switching AP (Access Point) in Wi-Fi network

    CN106454973A

  • User account management method and device

    CN106789913A

  • Wireless network configuration method and device

    CN111356149A

  • 5G message processing method and device

    CN113938847A