Intelligent equipment connection communication adjustment method and device, equipment and storage medium
By acquiring the data connection communication model and status logs between smart devices and routers, analyzing abnormal devices and adjusting their connection behavior, the problem of unstable connection between smart home appliances and routers was solved, thus achieving network stability and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2026-03-10
AI Technical Summary
Smart home appliances are prone to disconnection or packet loss when connected to a router, leading to network instability. Existing technical solutions are outdated and inefficient.
Obtain the current data connection communication model and device status log between the smart device and the router, analyze abnormal offline devices, establish a preset data connection communication model, and adjust the connection and communication behavior of abnormal devices to improve stability.
By quickly identifying and adjusting the connection and communication models of abnormal devices, the stability of the connection between smart devices and routers can be improved, processing delays can be avoided, and network stability and reliability can be ensured.
Smart Images

Figure CN121645261A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, device and storage medium for adjusting communication connection of smart devices. Background Technology
[0002] Currently, smart home appliances like air conditioners connect to home routers via Wi-Fi to achieve smart home functionality. However, with the development of Wi-Fi Alliance technology and the increase in router products from manufacturers each year, coupled with differences in design protocols and quality among router manufacturers, Wi-Fi-enabled smart air conditioners are prone to disconnections or packet loss when connected to new routers, leading to network instability. Summary of the Invention
[0003] The main objective of this application is to provide a method, apparatus, device, and storage medium for adjusting the connection and communication of smart devices, aiming to solve the technical problem of unstable connection between smart home appliances and routers.
[0004] To achieve the above objectives, this application proposes a method for adjusting the connection and communication of a smart device, the method comprising:
[0005] Obtain the current data connection communication model and device status log between the smart device and the connected router;
[0006] The distribution data of abnormal offline devices in the smart devices are obtained based on the device status log;
[0007] The abnormal devices are identified based on the abnormal offline device distribution data; and
[0008] The current data connection communication model of the abnormal device is adjusted to adjust the connection and communication between the abnormal device and the router.
[0009] In one embodiment, the step of adjusting the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router includes:
[0010] Obtain a preset data connection communication model, wherein the preset data connection communication model includes communication information between a normal device and a connected router; and
[0011] The current data connection communication model of the abnormal device is adjusted according to the preset data connection communication model in order to adjust the connection and communication between the abnormal device and the router.
[0012] In one embodiment, the step of adjusting the current data connection communication model of the abnormal device according to the preset data connection communication model to adjust the connection and communication between the abnormal device and the router includes:
[0013] The current data connection communication model of the abnormal device is compared and analyzed with the preset data connection communication model to determine the abnormal behavior and connection communication data;
[0014] The corresponding target behavior is queried from the preset data connection communication model using the connection communication data; and
[0015] The abnormal behavior of the abnormal device is adjusted by the target behavior to adjust the connection and communication between the abnormal device and the router.
[0016] In one embodiment, the step of obtaining a preset data connection communication model includes:
[0017] Acquire historical connection and communication sample data between smart devices and routers;
[0018] Based on the connection sample data and the communication sample data, packet sequence number, timestamp, source address, destination address, and behavior analysis are obtained;
[0019] A preset data connection communication model is established based on the packet sequence number, the timestamp, the source address, the destination address, and the behavior analysis.
[0020] In one embodiment, the step of adjusting the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router includes:
[0021] Determine the normally connected devices based on the abnormal offline device distribution data;
[0022] Obtain the data connection communication model of the normally connected device; and
[0023] The current data connection communication model of the abnormal device is adjusted according to the data connection communication model of the normally connected device, so as to adjust the connection and communication between the abnormal device and the router.
[0024] In one embodiment, the step of determining abnormal devices based on the abnormal offline device distribution data includes:
[0025] The abnormal offline rate of devices is obtained based on the distribution data of abnormal offline devices; and
[0026] Abnormal devices among the smart devices are identified by the abnormal offline rate of the devices.
[0027] In one embodiment, before the step of obtaining the distribution data of abnormal offline devices based on the device status log, the method further includes:
[0028] Obtain device access status input rules;
[0029] Compare the device status log with the device access status input rules; and
[0030] If the device status log does not conform to the device access status input rules, the smart device corresponding to the device status log will be removed.
[0031] Furthermore, to achieve the above objectives, this application also proposes a smart device connection communication adjustment method apparatus, the smart device connection communication adjustment method apparatus comprising:
[0032] The acquisition module is used to acquire the current data connection communication model and device status log between the smart device and the connected router;
[0033] The acquisition module is also used to obtain the distribution data of abnormal offline devices in the smart device based on the device status log;
[0034] The determination module is used to determine abnormal devices based on the abnormal offline device distribution data; and
[0035] The adjustment module is used to adjust the current data connection communication model of the abnormal device in order to adjust the connection and communication between the abnormal device and the router.
[0036] In addition, to achieve the above objectives, this application also proposes a smart device connection communication adjustment method device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the smart device connection communication adjustment method as described above.
[0037] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the intelligent device connection and communication adjustment method described above.
[0038] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the smart device connection and communication adjustment method described above.
[0039] This application proposes one or more technical solutions that obtain the current data connection communication model and device status log between a smart device and a connected router; obtain abnormal offline device distribution data among the smart devices based on the device status log; identify abnormal devices based on the abnormal offline device distribution data; and adjust the current data connection communication model of the abnormal devices to adjust the connection and communication between the abnormal devices and the router. This allows for rapid identification of abnormal devices based on the smart device's status log and timely adjustment of the abnormal device's current data connection communication model, thereby improving the stability of the connection between the smart device and the router. Attached Figure Description
[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0041] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a flowchart illustrating an embodiment of the intelligent device connection and communication adjustment method of this application.
[0043] Figure 2 This is a schematic diagram of the three-terminal logs of the smart device in one embodiment of the smart device connection and communication adjustment method of this application;
[0044] Figure 3 This is a schematic diagram of data interaction between a smart device and an access layer server in one embodiment of the smart device connection and communication adjustment method of this application;
[0045] Figure 4 This is a flowchart illustrating Embodiment 2 of the intelligent device connection and communication adjustment method of this application.
[0046] Figure 5 This is a schematic diagram of a data model for establishing a connection in one embodiment of the intelligent device connection communication adjustment method of this application;
[0047] Figure 6 This is a schematic diagram illustrating the data model for establishing communication in one embodiment of the intelligent device connection communication adjustment method of this application;
[0048] Figure 7 This is a schematic diagram illustrating the analysis between abnormal and normal devices in one embodiment of the intelligent device connection and communication adjustment method of this application;
[0049] Figure 8This is another analytical schematic diagram of the relationship between abnormal and normal devices in one embodiment of the intelligent device connection and communication adjustment method of this application;
[0050] Figure 9 This is a flowchart illustrating Embodiment 3 of the intelligent device connection and communication adjustment method of this application.
[0051] Figure 10 This is a schematic diagram of the module structure of the intelligent device connection and communication adjustment device according to an embodiment of this application;
[0052] Figure 11 This is a schematic diagram of the hardware operating environment involved in the intelligent device connection and communication adjustment method in this application embodiment.
[0053] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0054] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0055] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0056] The main solution of this application embodiment is: to obtain the current data connection communication model and device status log between the smart device and the connected router; to obtain the distribution data of abnormal offline devices in the smart device based on the device status log; to determine the abnormal device based on the distribution data of abnormal offline devices; and to adjust the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router.
[0057] Because existing Wi-Fi smart air conditioners are prone to disconnection or packet loss when connected to a new router, resulting in network instability, the solution is to conduct experimental analysis on the same router or analyze and resolve the problem after it occurs, which has a certain lag and low efficiency.
[0058] This application provides a solution that pre-establishes a preset data connection communication model for smart air conditioning devices that are normally connected to the router, analyzes abnormal smart air conditioning devices to determine abnormal behavior, and synchronizes the communication rules or behaviors of the preset data connection communication model to the abnormal smart air conditioning devices, thereby achieving the effect of self-balancing connection communication stability for all devices.
[0059] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or smart device connection and communication adjustment device capable of performing the above functions. The following description uses a smart device connection and communication adjustment device as an example, in which an access layer server is deployed, to illustrate this embodiment and the following embodiments.
[0060] Based on this, embodiments of this application provide a method for adjusting the connection and communication of a smart device, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the intelligent device connection and communication adjustment method of this application.
[0061] In this embodiment, the smart device connection communication adjustment method includes steps S10 to S40:
[0062] Step S10: Obtain the current data connection communication model and device status log between the smart device and the connected router.
[0063] It should be noted that smart devices can be smart home devices, smart wearable devices, etc., such as smart air conditioners and smart refrigerators. This embodiment will use a smart air conditioner as an example for illustration.
[0064] Multiple smart devices can connect to the same router or to different routers. Due to different router protocols, the connected smart devices may experience disconnection or packet loss. Therefore, it is possible to obtain the current data connection communication model between the smart device and the corresponding router, as well as the device status log of the smart device, in real time.
[0065] The current data connection communication model represents the behavior between smart devices and connected routers, as well as the connection communication data. The behavior can include communication behavior, data reporting behavior, etc.
[0066] Device status logs consist of data from the three-terminal log packets of smart devices, and may include signal strength, channel, router model, abnormal behavior, etc. Figure 2 As shown, Figure 2 This is a schematic diagram of the three-terminal logs of the smart device, including log version 03, signal strength -39dBm, Basic Service Set Identifier (BSSID) [B4F18CB9CE30]XXX, IPv4 address 192.168.0.46, restart reason, protocol stack status: 00, protocol stack element return: 08, connection phase error code, login phase error code, and other information.
[0067] In practice, all smart air conditioning devices connected to the access layer server will report their data connection communication model and device status logs to the data bank server, such as... Figure 3 As shown, Figure 3 This diagram illustrates the data interaction between smart devices and the access layer server. Each smart device reports its connection communication model and device status log to the access layer server, which then sends them to the data bank server.
[0068] Step S20: Obtain the distribution data of abnormal offline devices in the smart devices based on the device status log.
[0069] In practice, device status logs can be analyzed to obtain distribution data of abnormal offline devices with problems among multiple smart devices.
[0070] For example, device status logs can be analyzed directly to extract information such as device online / offline status, connection time, disconnection time, and communication frequency, thereby identifying devices that are frequently offline, have unstable connections, or exceed normal offline time, thus obtaining abnormal offline device distribution data.
[0071] In one feasible implementation, steps A01 to A03 are included before step S20:
[0072] Step A01: Obtain the device access status input rules.
[0073] It should be noted that device access status input rules can be used to evaluate the connection quality between smart devices and routers or the current environmental conditions. Device access status input rules can be three-terminal log input rules for device access status, specifically including:
[0074] A. RSSI >= -70 dBm. RSSI (Received Signal Strength Indicator) is a signal strength indicator used to measure the strength of the wireless signal received by a device. -70 dBm is a threshold, indicating that the signal strength should be at least -70 dBm. This value is typically used to define an acceptable signal strength range; values below this may indicate a weak signal and unstable connection.
[0075] B. SINR>=0: SINR (Signal-to-Interference plus Noise Ratio) is the ratio of signal-to-noise ratio to interference, used to measure signal quality. SINR>=0 indicates that the signal-to-noise ratio should be non-negative. A positive SINR value usually means good signal quality, while a negative value may indicate the presence of interference or noise problems.
[0076] C. errCode: errCode is an error code used to indicate problems encountered by the device at different stages. 0 indicates no error and a normal connection. 1 indicates a connection stage error, which may occur when the device attempts to connect to the router. 2 indicates a login stage error, which may occur when the device attempts to authenticate or log in to the network. 3 indicates a communication stage error, which may occur during data transmission.
[0077] D. BSSID: BSSID (Basic Service Set Identifier) is a unique identifier used to identify a specific router or access point in a network. Here, it refers to the type of router the device is connected to and may be used for further analysis of connectivity issues or optimization of connection performance.
[0078] Step A02: Compare the device status log with the device access status input rules.
[0079] It should be understood that the device status log can be compared with the device access status input rules. Specifically, the device status log can be analyzed to extract key parameters, and then the key parameters can be compared with the device access status input rules.
[0080] Step A03: When the device status log does not conform to the device access status input rules, remove the smart device corresponding to the device status log.
[0081] In practice, if key parameters in the device status log do not conform to the device access status input rules, such as errCode=1, the smart device is identified as a useless device or the environment in which the smart device is located is abnormal, and this smart device is removed. By comparing the device status logs of each smart device with the device access status input rules, smart devices that do not conform to the rules are removed, resulting in an updated list of smart devices. By monitoring these parameters, connectivity problems can be detected and resolved in a timely manner, improving device connection stability and communication efficiency.
[0082] Step S30: Determine the abnormal devices based on the abnormal offline device distribution data.
[0083] It should be understood that abnormal devices can be identified through abnormal offline device distribution data. For example, abnormal offline rates or other data between each air conditioner and the same or different routers in the abnormal offline device distribution data can be used to identify abnormal devices.
[0084] In one feasible implementation, step S30 may include steps A11 to A12:
[0085] Step A11: Obtain the abnormal offline rate of devices based on the abnormal offline device distribution data.
[0086] It should be noted that after obtaining the distribution data of abnormal offline devices, the abnormal offline rate of each device can be calculated, i.e., PPM data.
[0087] As shown in Table 1, Table 1 presents the distribution data of abnormally offline devices and the corresponding abnormal offline rates of air conditioners. It includes air conditioners 1 to 6, routers 1 to 5, and the abnormal offline rate (PPM) between each air conditioner and router.
[0088] Table 1
[0089] Air conditioner / router Router 1_PPM Router 2_PPM Router 3_PPM Router 4_PPM Router 5_PPM Air conditioner 1 946 1036 1200 1125 1301 Air conditioner 2 2786 1033 1133 3301 2986 Air conditioner 3 956 2501 1163 2780 2963 Air conditioner 4 1003 1133 3301 946 1036 Air conditioner 5 1201 1163 2780 1200 1125 Air conditioner 6 3214 1033 1133 1133 3301
[0090] Step A12: Determine abnormal devices among the smart devices based on the abnormal offline rate of the devices.
[0091] It should be understood that abnormal devices among multiple smart devices can be identified based on the abnormal offline rate. For example, the abnormal offline rates (PPM) between air conditioners 1 to 5 and router 1 are 946, 2786, 956, 1003, 1201, and 3214, respectively. The device with the highest abnormal offline rate (PPM) can be reported as abnormal, i.e., air conditioner 6. An abnormal offline rate threshold can also be set, for example, set to 2800. Devices with an abnormal offline rate higher than the threshold of 2800 are considered abnormal devices, i.e., air conditioner 6.
[0092] Step S40: Adjust the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router.
[0093] In practical implementation, abnormal behaviors in the current data connection communication model of abnormal devices can be adjusted, such as abnormal connection behavior or abnormal communication behavior, so as to adjust the current data connection communication model of abnormal devices to be consistent with the data connection communication model of normal devices. This achieves the effect of self-balancing connection communication stability of all devices and avoids the problem of delayed processing caused by the failure of unstable communication of smart devices.
[0094] This embodiment provides a method for adjusting the connection and communication of a smart device. It involves acquiring the current data connection communication model and device status log between the smart device and the connected router; obtaining distribution data of abnormal offline devices in the smart device based on the device status log; identifying abnormal devices based on the abnormal offline device distribution data; and adjusting the current data connection communication model of the abnormal devices to adjust the connection and communication between the abnormal devices and the router. This method allows for the rapid identification of abnormal devices based on the smart device's status log and timely adjustment of their current data connection communication model, thereby improving the stability of the connection between the smart device and the router.
[0095] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 Step S40 includes steps S401 to S402:
[0096] Step S401: Obtain a preset data connection communication model, which includes communication information between a normal device and a connected router.
[0097] It should be noted that the preset data connection communication model is the pre-established communication information between a normal device and the connected router, including connection behavior information and communication behavior information.
[0098] In practice, a preset data communication connection model can be established in advance. This allows for direct analysis and adjustment of the current data connection communication model of the smart device when adjusting the connection communication of the smart device in the future.
[0099] In one feasible implementation, step S401 may include steps B11 to B13:
[0100] Step B11: Obtain historical connection sample data and communication sample data between smart devices and routers.
[0101] It should be noted that the historical smart devices are a sample of collected smart devices. Since the connection and communication between smart air conditioners and routers conforms to and follows the IEEE 802.11 standard protocol, a data model of the router connection and communication for each smart air conditioner can be established and recorded.
[0102] like Figure 5 As shown, Figure 5The diagram illustrates the data model for establishing a connection. When establishing a connection between air conditioner module A and router A, air conditioner module A initiates a network probe request, and router A returns a network probe response. Air conditioner module A then initiates an authentication request, and router A returns an authentication response. Finally, air conditioner module A initiates an association request, and router A returns an association response.
[0103] like Figure 6 As shown, Figure 6 This diagram illustrates the data model for establishing communication. When communication is established between air conditioner module A and router A, the sending device waits for its own time interval to expire. If the interval expires, the sending device initiates a time reservation request, sending a request frame (RTS Frame). It then waits for a reply from the peer device. Router A returns a "Clear Send" frame (CTSFrame), and the sending device, air conditioner module A, sends data communication (Data trans). The peer device, router A, returns a data acknowledgment (DataAck). The waiting time includes the longest and shortest waiting frame intervals. By establishing a data model for router connections and communication for each smart air conditioner, connection sample data and communication sample data can be obtained.
[0104] Step B12: Obtain packet sequence number, timestamp, source address, destination address, and behavior analysis based on the connection sample data and the communication sample data.
[0105] It should be noted that packet sequence numbers, timestamps, source addresses, destination addresses, and behavioral analysis can be obtained from the data in the connection sample data and communication sample data.
[0106] Step B13: Establish a preset data connection communication model based on the packet sequence number, the timestamp, the source address, the destination address, and the behavior analysis.
[0107] In practical implementation, the packet sequence number, timestamp, source address, destination address, and behavior analysis can be used to create tables, thereby obtaining multiple tables representing the connection and communication between normal devices and routers, thus forming a preset data connection and communication model. The contents of the tables also represent the connection and communication rules between smart devices and routers under normal circumstances.
[0108] As shown in Tables 2 and 3, Tables 2 and 3 respectively represent the connection and communication data rules between different smart devices and routers.
[0109] The hb request is a heartbeat request, the addba request 60s is an add block acknowledgment with a timeout of 60 seconds, and the addba response is the receiver's response to the sender's ADDBA (Add Block Ack) request.
[0110] Table 2
[0111]
[0112] Table 3
[0113]
[0114] Step S402: Adjust the current data connection communication model of the abnormal device according to the preset data connection communication model, so as to adjust the connection and communication between the abnormal device and the router.
[0115] It should be noted that the current data connection communication model of abnormal devices can be adjusted by using the connection or communication rules in the preset data connection communication model, so that the establishment and communication between abnormal devices and routers are consistent with those of normal devices.
[0116] In one feasible implementation, step S402 may include steps C11 to C13:
[0117] Step C11: Compare and analyze the current data connection communication model of the abnormal device with the preset data connection communication model to determine the abnormal behavior and connection communication data.
[0118] It should be noted that the current data connection communication model of the abnormal device can be compared and analyzed with the preset data connection communication model. Specifically, the comparison involves comparing the timestamp, source address, destination address, and behavior analysis to obtain abnormal behavior and connection communication data. The connection communication data may include one or more of the timestamp, source address, and destination address.
[0119] Step C12: Query the corresponding target behavior from the preset data connection communication model through the connection communication data.
[0120] In practice, data consistent with the connection communication data can be queried from the preset data connection communication model through connection communication data, and the corresponding target behavior can be obtained. The target behavior is the behavior between the normal device and the router, including connection behavior or communication behavior, etc.
[0121] Step C13: Adjust the abnormal behavior of the abnormal device through the target behavior to adjust the connection and communication between the abnormal device and the router.
[0122] In practice, the abnormal behavior of abnormal devices can be adjusted by targeting the behavior of the abnormal devices, thereby adjusting the connection and communication between the abnormal devices and the router.
[0123] By analyzing the abnormal behavior of two different air conditioners, A and B, connected to the same route A (air conditioner A being an abnormal device and air conditioner B being a normal device) and their preset data connection communication model, the cause of the abnormal behavior can be determined to be a communication heartbeat packet error. Figure 7 As shown, Figure 7 The diagram illustrates the analysis between the abnormal and normal devices, revealing a difference in the data connection communication models between the two air conditioners. Specifically: When initiating communication, router A always sends an ADDBA request for 60 seconds. According to the 802.11 standard protocol, the parsed packet aggregation frame buffer timeout is 60 seconds. Therefore, if air conditioner A finds no data response after two seconds, it initiates a timeout reconnection. Air conditioner B, however, waits for the packet aggregation buffer to be sent based on the AP's behavior, and receives a response from the router AP after 3 seconds, allowing normal communication. Therefore, the behavior of air conditioner B can be adjusted to allow air conditioner A to wait for the packet aggregation buffer to be sent based on the AP's behavior.
[0124] In specific implementation, such as Figure 8 As shown, Figure 8 This is another analytical diagram illustrating the interaction between abnormal and normal devices. Some routers default to queuing and competing for communication resources with the access point (AP). However, some routers do not require resource contention. If the router's ERP broadcast flag is not checked and data is sent directly to wait for an ACK reply, it can easily lead to data timeout and offline. Therefore, if the abnormal behavior is to send data directly to wait for an ACK reply without checking the router's ERP broadcast flag, the abnormal behavior should be adjusted according to the normal behavior (checking the router's ERP broadcast flag and then determining whether to wait for an ACK reply based on the router's ERP broadcast flag).
[0125] As shown in Tables 4 and 5, Table 4 shows the connection and communication data of air conditioner A, and Table 5 shows the connection and communication data of air conditioner B. Air conditioner A represents the normal behavior of a normal device, while air conditioner B represents the abnormal behavior of a malfunctioning device.
[0126] Table 4
[0127] Air Conditioner A Time stamp source destination Action Analysis 1 0000000 40:A2:37:74:A5:B1 30:B2.37:74:A5:B3 beacon ERP protect 1 2 0001000 30:B2:37:74:A5:B3 40:A2.37:74:A5:B1 before data frames 3 0001100 30:B2:37:74:A5:B3 40:A2:37:74:A5:B1 RTS Frame 4 0001500 40:A2:37:74:A5:B1 30:B2.37:74:A5:B3 before ack frames 5 0001700 40:A2:37:74:A5:B1 30:B2.37:74:A5:B3 CTS Frame 6 0002000 30:B2:37:74:A5:B3 40:A2:37:74:A5:B1 Data trans 7 0003000 30:B2:37:74.A5:B3 40:A2.37:74:A5:B1 Data Ack
[0128] Table 5
[0129] Air Conditioner B Time stamp source destination Action Analysis 1 0000000 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 beacon ERP protect 0 2 0001000 30:B2:37:74:A5:B3 40:A2:37:74:A5:B1 Data trans 3 0003000 30:B2:37:74:A5:B3 40:A2:37:74:A5:B1 Data Ack
[0130] In practice, some routers cannot accept multiple authentication requests from the device. If the air conditioner device initiates multiple authentication requests at the underlying and application layers simultaneously, it is easy for the router to reject the access or time out the authentication response, which can easily lead to network reconnection failure. Table 6 below shows the model of connection failure caused by multiple authentication requests. Table 7 below shows the model rules for other air conditioners on the same router that the data bank discovers through the big model and reconnects normally. Finally, the connection model rules of air conditioner B are synchronized to air conditioner A, which can complete the model optimization of connection stability.
[0131] Table 6
[0132] Air Conditioner A Time stamp source destination Action Analysis 1 0001000 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11Auth(Soft) 2 0001200 40:A2:37:74:A5:B1 30:B2.37:74:A5:B3 802.11Auth(hard) 3 0002000 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11Auth(Soft) 4 0002200 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11Auth(hard) 5 0003000 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11Auth(Soft) 6 0003200 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11 Authentication (hard) 7 0003300 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 Association Request 8 0003600 30:B2.37:74:A5:B3 40:A2:37:74.A5:B1 Acknowledgment 9 0004300 40:A2:37:74:A5:B1 30:B2.37:74:A5:B3 802.11 Authentication (hard) 10 0004600 30:B2:37:74:A5:B3 40:A2:37:74:A5:B1 Acknowledgment 11 0005300 30:B2:37:74:A5:B3 40:A2:37:74:A5:B1 Association Response 12 0005600 30:B2:37:74:A5:B3 40:A2.37:74:A5:B1 Acknowledgment 13 0006600 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 Deauthentication
[0133] Table 7
[0134] Air conditioner B Time stamp Source Destination Action analysis 1 0001200 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11 Authentication (hard) 2 0002200 40:A2:37:74:A5:B1 30:B2:37:74:A5:B3 802.11 Authentication (hard) 3 0003200 40:A2:37:74:A5:B1 4 0003300 5 0003600 6 0004300 7 0005600 8 0006600 9 0007600 10 0007900 11 0009300 12 0009900
[0135] This embodiment acquires a preset data connection communication model, which includes communication information between a normal device and a connected router. Based on this preset model, the current data connection communication model of the abnormal device is adjusted to regulate the connection and communication between the abnormal device and the router, ensuring that the communication performance of the abnormal device is restored and improved while maintaining a valid connection with the router. This process helps improve the stability and reliability of the entire network.
[0136] Based on the first embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Step S40 includes steps S401' to S403':
[0137] Step S401': Determine the normally connected devices based on the abnormal offline device distribution data.
[0138] It should be noted that normally connected devices can be identified from the distribution data of abnormal offline devices. As shown in Table 1 above, by comparing the abnormal offline rates of devices connected to the same router, such as the abnormal offline rates of air conditioners 1 to 6 and connected to router 1, the air conditioner with the lowest abnormal offline rate is identified as the normally connected device, i.e., air conditioner 1 is the normally connected device.
[0139] Step S402': Obtain the data connection communication model of the normally connected device.
[0140] It is understandable that the data connection communication model of a normally connected device can be obtained, including the connection data, communication data, connection behavior, and communication behavior between the normally connected device and the router.
[0141] Step S403': Adjust the current data connection communication model of the abnormal device according to the data connection communication model of the normal connected device, so as to adjust the connection and communication between the abnormal device and the router.
[0142] In practice, the connection and communication behaviors in the current data connection and communication model of abnormal devices can be adjusted based on the connection and communication behaviors in the data connection and communication model of normally connected devices, thereby optimizing the abnormal offline rate of air conditioners.
[0143] As shown in Table 8, the abnormal offline rate (PPM) of the air conditioners after adjustment is shown. It can be seen that the PPM between air conditioner 2 and router 1 decreased from 2786 to 1230, and the PPM between air conditioner 6 and router 1 decreased from 3214 to 1369.
[0144] Table 8
[0145] 946 1036 1200 1125 1301 1230 1033 1133 3301 966 956 1501 1163 1135 975 1003 1133 1401 946 1036 1201 1163 1256 1200 1125 1369 1033 1133 1133 1301
[0146] This embodiment determines normally connected devices based on the distribution data of abnormal offline devices; obtains the data connection communication model of the normally connected devices; and adjusts the current data connection communication model of the abnormal devices based on the data connection communication model of the normally connected devices, thereby adjusting the connection and communication between the abnormal devices and the router. This allows for the systematic identification and adjustment of abnormal devices, ensuring their communication behavior is consistent with that of normal devices, thereby improving the stability and reliability of the entire network.
[0147] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the intelligent device connection and communication adjustment method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0148] This application also provides a smart device connection and communication adjustment device, please refer to... The intelligent device connection communication adjustment device includes:
[0149] The acquisition module 10 is used to acquire the current data connection communication model and device status log between the smart device and the connected router.
[0150] The acquisition module 10 is also used to obtain the distribution data of abnormal offline devices in the smart device based on the device status log.
[0151] The determination module 20 is used to determine abnormal devices based on the abnormal offline device distribution data.
[0152] The adjustment module 30 is used to adjust the current data connection communication model of the abnormal device in order to adjust the connection and communication between the abnormal device and the router.
[0153] The intelligent device connection communication adjustment device provided in this application, employing the intelligent device connection communication adjustment method in the above embodiments, can solve the technical problem of unstable connection between smart home appliances and routers. Compared with the prior art, the beneficial effects of the intelligent device connection communication adjustment device provided in this application are the same as those of the intelligent device connection communication adjustment method provided in the above embodiments, and other technical features in the intelligent device connection communication adjustment device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0154] In one embodiment, the adjustment module 40 is further configured to acquire a preset data connection communication model, the preset data connection communication model including communication information between a normal device and a connected router; and to adjust the current data connection communication model of the abnormal device according to the preset data connection communication model, so as to adjust the connection and communication between the abnormal device and the router.
[0155] In one embodiment, the adjustment module 40 is further configured to compare and analyze the current data connection communication model of the abnormal device with the preset data connection communication model to determine abnormal behavior and connection communication data; query the corresponding target behavior from the preset data connection communication model through the connection communication data; and adjust the abnormal behavior of the abnormal device through the target behavior to adjust the connection and communication between the abnormal device and the router.
[0156] In one embodiment, the adjustment module 40 is further configured to acquire historical connection sample data and communication sample data between the smart device and the router; obtain packet sequence number, timestamp, source address, destination address and behavior analysis based on the connection sample data and the communication sample data; and establish a preset data connection communication model based on the packet sequence number, the timestamp, the source address, the destination address and the behavior analysis.
[0157] In one embodiment, the adjustment module 40 is further configured to compare and analyze the current data connection communication model of the abnormal device with the preset data connection communication model to determine abnormal behavior and connection communication data; query the corresponding target behavior from the preset data connection communication model through the connection communication data; and adjust the abnormal behavior of the abnormal device through the target behavior to adjust the connection and communication between the abnormal device and the router.
[0158] In one embodiment, the determining module 30 is further configured to obtain the abnormal offline rate of devices based on the abnormal offline device distribution data; and to determine abnormal devices among the smart devices through the abnormal offline rate of devices.
[0159] In one embodiment, the acquisition module 10 is further configured to acquire device access status input rules; compare the device status log with the device access status input rules; and remove the smart device corresponding to the device status log when the device status log does not conform to the device access status input rules.
[0160] This application provides a smart device connection communication adjustment device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the smart device connection communication adjustment method in the above embodiment 1.
[0161] The following is for reference. This document illustrates a structural schematic diagram of a smart device connection and communication adjustment device suitable for implementing embodiments of this application. The smart device connection and communication adjustment device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The smart device connection and communication adjustment device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0162] like As shown, the intelligent device connection communication adjustment device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the intelligent device connection communication adjustment device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows smart devices to connect to communication adjustment devices and other devices for wireless or wired communication to exchange data. Although the figures show smart devices connected to communication adjustment devices with various systems, it should be understood that it is not required to implement or possess all of the systems shown. More or fewer systems can be implemented alternatively.
[0163] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0164] The smart device connection communication adjustment device provided in this application, employing the smart device connection communication adjustment method in the above embodiments, can solve the technical problem of unstable connection between smart home appliances and routers. Compared with the prior art, the beneficial effects of the smart device connection communication adjustment device provided in this application are the same as those of the smart device connection communication adjustment method provided in the above embodiments, and other technical features in this smart device connection communication adjustment device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0165] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0166] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0167] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the smart device connection communication adjustment method in the above embodiments.
[0168] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0169] The aforementioned computer-readable storage medium may be included in the smart device connection and communication adjustment device; or it may exist independently and not assembled into the smart device connection and communication adjustment device.
[0170] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the smart device connection and communication adjustment device, cause the smart device connection and communication adjustment device to: acquire the current data connection communication model and device status log between the smart device and the connected router; obtain abnormal offline device distribution data in the smart device based on the device status log; determine abnormal devices based on the abnormal offline device distribution data; and adjust the current data connection communication model of the abnormal devices to adjust the connection and communication between the abnormal devices and the router.
[0171] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0172] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0173] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0174] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described intelligent device connection communication adjustment method, which can solve the technical problem of unstable connection between smart home appliances and routers. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the intelligent device connection communication adjustment method provided in the above embodiments, and will not be repeated here.
[0175] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the intelligent device connection and communication adjustment method described above.
[0176] The computer program product provided in this application can solve the technical problem of unstable connection between smart home appliances and routers. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the smart device connection communication adjustment method provided in the above embodiments, and will not be repeated here.
[0177] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for adjusting communication connections in a smart device, characterized in that, The intelligent device connection communication adjustment method comprises: obtaining a current data connection communication model and a device state log between an intelligent device and a connected router; obtaining abnormal offline device distribution data in the intelligent device according to the device state log; determining an abnormal device according to the abnormal offline device distribution data; and adjusting a current data connection communication model of the abnormal device to adjust connection and communication between the abnormal device and the router.
2. The method of claim 1, wherein, The step of adjusting the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router comprises: obtaining a preset data connection communication model comprising communication information between a normal device and a connected router; and adjusting the current data connection communication model of the abnormal device according to the preset data connection communication model to adjust the connection and communication between the abnormal device and the router.
3. The method of claim 2, wherein, The step of adjusting the current data connection communication model of the abnormal device according to the preset data connection communication model to adjust the connection and communication between the abnormal device and the router comprises: comparing and analyzing the current data connection communication model of the abnormal device with the preset data connection communication model to determine abnormal behavior and connection communication data; querying a corresponding target behavior from the preset data connection communication model through the connection communication data; and adjusting the abnormal behavior of the abnormal device through the target behavior to adjust the connection and communication between the abnormal device and the router.
4. The method of claim 2, wherein, The step of obtaining the preset data connection communication model comprises: obtaining connection sample data and communication sample data between a historical intelligent device and a router; obtaining a packet sequence number, a timestamp, a source address, a target address, and behavior analysis according to the connection sample data and the communication sample data; establishing a preset data connection communication model according to the packet sequence number, the timestamp, the source address, the target address, and the behavior analysis.
5. The method of claim 1, wherein, The step of adjusting the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router comprises: determining a normal connection device according to the abnormal offline device distribution data; obtaining a data connection communication model of the normal connection device; and adjusting the current data connection communication model of the abnormal device according to the data connection communication model of the normal connection device to adjust the connection and communication between the abnormal device and the router.
6. The method of claim 1, wherein, The step of determining an abnormal device according to the abnormal offline device distribution data comprises: obtaining a device abnormal offline rate according to the abnormal offline device distribution data; and determining the abnormal device in the intelligent device through the device abnormal offline rate.
7. The method of any one of claims 1 to 6, wherein, Before the step of obtaining abnormal offline device distribution data according to the device state log, the method further comprises: obtaining a device access state input rule; comparing the device state log with the device access state input rule; and When the device state log does not conform to the device access state input rule, the smart device corresponding to the device state log is excluded.
8. A method and apparatus for adjusting communication connection of intelligent devices, characterized in that, The device comprises: an acquisition module, configured to acquire a current data connection communication model between a smart device and a connected router and a device state log; the acquisition module is further configured to obtain abnormal offline device distribution data in the smart device according to the device state log; a determination module, configured to determine an abnormal device according to the abnormal offline device distribution data; and an adjustment module, configured to adjust the current data connection communication model of the abnormal device to adjust the connection and communication between the abnormal device and the router.
9. An intelligent device connection communication adjustment device, characterized by, The device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the smart device connection communication adjustment method according to any one of claims 1 to 7.
10. A storage medium, characterized by The storage medium is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the smart device connection communication adjustment method according to any one of claims 1 to 7.