Data processing method, electronic device and storage medium
By acquiring latency information and moving mobile devices to the target location to optimize communication routes, the signal interruption problem between user terminals and master node devices was resolved, improving the stability and user experience of the wireless network.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2025-11-20
- Publication Date
- 2026-07-02
AI Technical Summary
The wireless signal quality between the user terminal and the master node device may be interrupted due to factors such as increased distance, building obstruction, or signal interference, affecting the network user experience.
By acquiring latency information between the user terminal and the master node device, the signal quality is determined and a line adjustment command is sent. The mobile device is used to determine the target location within a preset area and move to optimize the communication route, thereby realizing signal relay.
It improves the quality of wireless signals on user terminals, ensuring the stability of communication connections and network usage experience.
Smart Images

Figure CN2025136223_02072026_PF_FP_ABST
Abstract
Description
Data processing methods, electronic devices and storage media
[0001] Cross-reference of related applications
[0002] This application claims priority to Chinese Patent Application No. 202411928776.X, filed on December 25, 2024, entitled "Data Processing Method, Electronic Device and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of communication technology, and in particular to a data processing method, electronic device and storage medium. Background Technology
[0004] With the development of electronic technology, wireless communication is becoming increasingly widespread. For example, after a user terminal is added to a wireless network, the master node device of the wireless network can establish a communication connection with the user terminal and provide wireless network services to the user terminal.
[0005] However, in real life, factors such as increased distance between user terminals and master node devices, building obstructions, and signal interference from other electronic devices can all lead to a deterioration in the quality of wireless signals from user terminals, and may even cause communication connection interruptions, resulting in a poor network experience for users. Summary of the Invention
[0006] On one hand, this application provides a data processing method applied to a first mobile device. The method includes: acquiring first latency information between a user terminal and a master node device, and acquiring second latency information between the first mobile device and the master node device; sending a first line adjustment command to the master node device when the first latency information is greater than a first latency threshold and the first latency information is greater than the second latency information; the first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, wherein the first mobile device is located between the master node device and the user terminal in the adjusted communication route; acquiring first location information of the user terminal and second location information of the first mobile device, and determining a first target location in the preset area based on the first location information, the second location information and third latency information of each location in the preset area; generating a first movement command based on the first target location; the first movement command is used to drive the first mobile device to move to the first target location.
[0007] On the other hand, embodiments of this application provide a data processing apparatus applied to a first mobile device. The apparatus includes: an acquisition unit, configured to acquire first latency information between a user terminal and a master node device, and to acquire second latency information between the first mobile device and the master node device; a sending unit, configured to send a first line adjustment command to the master node device when the first latency information is greater than a first latency threshold and the first latency information is greater than the second latency information; the first line adjustment command instructs adjustment of the communication route between the user terminal and the master node device, wherein the first mobile device is located between the master node device and the user terminal in the adjusted communication route; a determining unit, configured to acquire first location information of the user terminal and second location information of the first mobile device, and determine a first target location in the preset area based on the first location information, the second location information, and third latency information of various locations in the preset area; and a generating unit, configured to generate a first movement command based on the first target location; the first movement command drives the first mobile device to move to the first target location.
[0008] In another aspect, embodiments of this application provide an electronic device, including a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being used to call and execute the computer program from the memory to implement the above-described data processing method.
[0009] In another aspect, embodiments of this application provide a computer-readable storage medium for storing a computer program that can be executed by a processor to implement the above-described data processing method.
[0010] In another aspect, embodiments of this application provide a computer program product, including a computer program, which is executed by a processor to implement the above-described data processing method.
[0011] The embodiments of this application adopt the following technical solutions:
[0012] The system acquires first latency information between the user terminal and the master node device, and second latency information between the first mobile device and the master node device. If the first latency information is greater than a first latency threshold and also greater than the second latency information, a first line adjustment command is sent to the master node device. The first line adjustment command instructs the adjustment of the communication route between the user terminal and the master node device, wherein the first mobile device is located between the master node device and the user terminal in the adjusted communication route. The system acquires first location information of the user terminal and second location information of the first mobile device, and determines a first target location within a preset area based on the first location information, the second location information, and third latency information of various locations within a preset area. A first movement command is generated based on the first target location. The first movement command drives the first mobile device to move to the first target location. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in one or more embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in one or more embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 is a schematic flowchart of a data processing method provided in an embodiment of this application;
[0015] Figure 2 is a schematic diagram of a route provided in an embodiment of this application;
[0016] Figure 3 is a schematic diagram of the structure of a first mobile device provided in an embodiment of this application;
[0017] Figure 4 is an interactive schematic diagram of a data processing method provided in an embodiment of this application;
[0018] Figure 5 is a floor plan diagram of a data processing method applied to a smart home scenario according to an embodiment of this application.
[0019] Figure 6 is a schematic diagram of another apartment type used in a data processing method for a smart home scenario provided in an embodiment of this application;
[0020] Figure 7 is a schematic block diagram of a data processing apparatus provided in an embodiment of this application;
[0021] Figure 8 is a schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0022] This application provides a data processing method, an electronic device, and a storage medium.
[0023] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein.
[0025] The data processing method provided in this application embodiment can be executed by a first mobile device or by software installed in the first mobile device. Specifically, the first mobile device can be a sweeping robot, an intelligent robot, a vehicle terminal, an aircraft device, any terminal device with its own mobility, or any terminal device that can move along with other vehicles / terminal devices with mobility.
[0026] Figure 1 is a schematic flowchart of a data processing method provided in an embodiment of this application. As shown in Figure 1, the method includes:
[0027] S102, obtain the first latency information between the user terminal and the master node device, and obtain the second latency information between the first mobile device and the master node device.
[0028] A user terminal is a device or tool used by a user to interact with a system, network, or service. User terminals can include smartphones, laptops, smart wearable devices, in-vehicle terminals, and so on.
[0029] In a wireless network, the master node device is the core device responsible for managing and controlling wireless communication. It connects the wireless signal to the wired network, allowing user terminals to access network resources wirelessly.
[0030] Specifically, in this embodiment, the master node device, the user terminal, and the first mobile device can be in the same wireless network. A communication connection exists between the master node device and the user terminal, allowing the master node device to provide wireless network services to the user terminal; a communication connection also exists between the master node and the first mobile device, allowing the master node device to provide wireless network services to the first mobile device.
[0031] Taking a smart home scenario as an example, the master node device, the user terminal, and the first mobile device can be in the same wireless mesh network. The user terminal can be a laptop, the first mobile device can be a robot vacuum cleaner, and the master node device can be the mesh master node of the wireless mesh network.
[0032] A wireless mesh network is a distributed network architecture that forms a self-organizing and self-healing network through the interconnection of multiple wireless nodes. Each node in a wireless mesh network can communicate with other nodes and transmit data to the target node via multi-hops. The mesh master node is responsible for managing and coordinating the operation of the entire network. For example, the mesh master node can be a home gateway or a CPE (Customer Premises Equipment).
[0033] Taking the new energy vehicle scenario as an example, the master node device, user terminal and first mobile device can be in the same wireless network. The user terminal can be an in-vehicle terminal, the first mobile device can be an aircraft device, and the master node device can be a base station.
[0034] Obtaining first latency information between the user terminal and the master node device, and second latency information between the first mobile device and the master node device, can be achieved by sending a latency detection request to the master node device and receiving response data returned by the master node device in response to the latency detection request, wherein the response data includes the first latency information and the second latency information.
[0035] In one specific implementation, obtaining first latency information between the user terminal and the master node device, and obtaining second latency information between the first mobile device and the master node device, includes: sending a first data packet to the master node device, and receiving a second data packet returned by the master node device in response to the first data packet at a second time point, wherein the second data packet includes the first latency information and the first time point at which the master node device sent the second data packet; and determining the second latency information based on the first time point and the second time point.
[0036] The first data packet can be a data packet actively sent by the first mobile device to the master node device. The second data packet can be a data packet sent by the master node device to the first mobile device in response to the first data packet.
[0037] For example, the first data packet can be an ICMP (Internet Control Message Protocol) data packet used to probe the time delay between two devices, and the second data packet can be another ICMP data packet generated in response to the first data packet, used to probe the time delay between the two devices. Based on the ICMP timestamp request and response protocol, the first data packet can carry the timestamp of the first mobile device sending the first data packet, i.e., the Originate Timestamp. Similarly, the second data packet can carry the timestamp of the master node device sending the second data packet.
[0038] Sending a first data packet to the master node device, and receiving a second data packet returned by the master node device in response to the first data packet at a second time point, wherein the second data packet includes the first time point at which the master node device sent the second data packet, can be illustrated with the following specific example:
[0039] (a1) At time T0, the first mobile device sends data packet 1, which is received by the master node device. Data packet 1 may carry the time T0.
[0040] (a2) At time T1, the master node device receives data packet 1.
[0041] (a3) At time point T1', master node 1 sends data packet 2, which is received by the first mobile device. Data packet 2 may carry the time point T1'.
[0042] (a4) At time T2, the first mobile device receives data packet 2.
[0043] As can be seen from the above, the master node device can determine the time delay between the first mobile device and the master node device as (T1-T0) based on time point T0 and time point T1; similarly, the first mobile device can determine the time delay between the first mobile device and the master node device as (T2-T1') based on time point T1' and time point T2.
[0044] The second time delay information is determined based on the first time point and the second time point. This can be achieved by determining the time interval between the first time point and the second time point and using this time interval as the second time delay information.
[0045] Based on a concept similar to (a1)-(a4), the master node device can send a third data packet to the user terminal, and receive a fourth data packet returned by the user terminal in response to the third data packet at a fourth time point; the fourth data packet includes the third time point at which the user terminal sent the fourth data packet.
[0046] For example:
[0047] (b1) At time T3, the master node sends data packet 3, which is to be received by the user terminal. Data packet 3 may carry the time T3.
[0048] (b2) At time T4, the user terminal receives data packet 3.
[0049] (b3) At time point T4', the user terminal sends data packet 4, which is received by the master node device. Data packet 4 may carry the time point T4'.
[0050] (b4) At time T5, the master node device receives data packet 4.
[0051] As can be seen from the above, the user terminal can determine the time delay between the master node device and the user terminal as (T4-T3) based on time point T3 and time point T4; similarly, the master node device can determine the time delay between the master node device and the user terminal as (T5-T4') based on time point T4' and time point T5.
[0052] In this way, the master node device can obtain the first latency information between the user terminal and the master node device, and then, before the master node device responds to the first data packet and sends the second data packet to the first mobile device, it can add the first latency information to the second data packet.
[0053] Therefore, the second data packet may include the first time point at which the master node device sends the second data packet, and may also include the first delay information.
[0054] For example, the master node device sends a data packet to a smartphone to obtain the time delay between the smartphone and the master node device, i.e., the first delay information. After obtaining the first delay information, the master node device can write the first delay information into a second data packet and send the second data packet to the robot vacuum cleaner. The second data packet is generated in response to the first data packet, which is the data packet sent by the robot vacuum cleaner to the master node device.
[0055] In practice, the specified network protocol can be extended in advance so that after the master node device receives the first data packet and generates a second data packet in response to the first data packet, it can automatically add the first delay information to the second data packet.
[0056] For example, the specified network protocol can be ICMP timestamp request and response protocol. Extended processing is performed for this network protocol, and the extended fields include, but are not limited to: originate TTL-VAL (Time to Live Value), Receive TTL-VAL, Source IP (Internet Protocol), Destination IP, Priority Service end device ID, Priority Service end device delay, etc.
[0057] Wherein, originate TTL-VAL is the initiating time-to-live value, receive TTL-VAL is the receiving time-to-live value, source ip is the source IP address, and destination ip is the destination IP address.
[0058] The Time to Live (TTL) value is a field in a network protocol used to limit the maximum number of hops a data packet can take to travel through the network.
[0059] For example, the receiver and sender of a data packet can pre-configure a fixed TTL-VAL value. Specifically, when the sender sends an ICMP message to the receiver, it sets a fixed TTL-VAL value and fills the originate TTL-VAL field with this TTL-VAL value. After receiving the ICMP message, the receiver fills the Receive TTL-VAL field in the IP header with the TTL-VAL value.
[0060] Source IP can represent the IP address of the sender of the data packet, and Destination IP can represent the IP address of the receiver of the data packet.
[0061] Priority Service end device ID can be an identifier generated by the master node device for the user terminal after the user terminal has been pre-configured as a priority service device. Priority Service end device delay can represent the time delay between the user terminal and the master node device.
[0062] For example, after a user terminal joins a wireless network, it can set itself as a priority service device through an application. At the same time, the master node device can assign a "Priority Service end device ID" to the user terminal and record it locally on the master node device.
[0063] The reason for adding the Priority Service end device ID field and the Priority Service end device delay field during the extension protocol is to make it easier to fill the first delay information, which has no direct connection with the first mobile device, into the field after the master node device receives the first data packet and generates a second data packet in response to the first data packet, so that the second data packet sent by the master node device to the first mobile device carries the first delay information.
[0064] The extended protocol enables the master node device to automatically add the first latency information to the second data packet. Its advantages are good versatility, easy upgrading of old equipment, low cost, low overhead, and less likely to be filtered by security measures such as firewalls.
[0065] In practice, the ping command can be pre-processed to automatically add the first latency information to the second data packet after the master node receives the first data packet and generates a second data packet in response. For details on the extended fields of the ping command, please refer to the corresponding descriptions in the ICMP timestamp request and response protocol section.
[0066] In one specific implementation, the data processing method further includes: during the movement of the first mobile device, acquiring third delay information between the first mobile device and the master node device, and recording the time and location at which the first mobile device acquires the third delay information; the movement range of the first mobile device is determined by a preset area; based on the time and location at which the first mobile device acquires the third delay information, performing deduplication processing on the acquired third delay information to obtain the third delay information for each location in the preset area.
[0067] During the movement of the first mobile device, third delay information between the first mobile device and the master node device can be obtained at preset time intervals, and the time and location at which the first mobile device obtains the third delay information can be recorded.
[0068] The movement range of the first mobile device is determined by a preset area.
[0069] For example, the first mobile device can move within a preset area. Alternatively, the first mobile device can also move within a larger area that includes the preset area.
[0070] Based on the time and location of the third delay information obtained by the first mobile device, the third delay information is deduplicated to obtain the third delay information for each location in the preset area. In the process of obtaining the third delay information, multiple third delay information with the same location but different times can be identified. Among these multiple third delay information, the third delay information with the time closest to the current time point is identified. For each third delay information other than the third delay information with the time closest to the current time point, it can be deleted, masked, or any other deduplication processing method can be used.
[0071] Taking a smart home scenario as an example, this section illustrates how to obtain third-party latency information:
[0072] In a smart home scenario, the primary mobile device could be a robot vacuum cleaner.
[0073] (c1) Upon initial power-on, the robot vacuum cleaner acts as a child node of the wireless mesh network, joining the wireless mesh network created by the master node device, and the user sets the indoor area.
[0074] (c2) The robot vacuum cleaner enters scanning mode and begins cleaning the room.
[0075] (c3) The robot vacuum cleaner's route starts from its charging station.
[0076] The charging station for a robotic vacuum cleaner provides charging, storage, and some additional functions. For example, when the robotic vacuum cleaner's battery is low, it will automatically return to the charging station to recharge. The charging station provides power to the robotic vacuum cleaner through a power connection, ensuring that it can continue to work.
[0077] (c4) The robot vacuum cleaner begins to record its route as it moves.
[0078] (c5) The robotic vacuum cleaner sends ICMP data packets to the master node device at regular time intervals. These ICMP data packets are used to detect the time delay between the robotic vacuum cleaner and the master node device, i.e., the third delay information. The robotic vacuum cleaner also records its location when sending the ICMP data packets. The shorter the packet sending interval of the robotic vacuum cleaner, the more third delay information can be obtained, and the better the relay effect will be provided to user terminals accessing the wireless mesh network in the future.
[0079] (c6) As the working time of the robotic vacuum cleaner increases, the indoor area covered by its route also gradually increases. Once a certain area threshold is reached, it is considered that the entire house area has been basically covered, and the first scan is completed. At this point, by deduplicating the accumulated third time delay information, the third time delay information of each location in the entire house area can be obtained.
[0080] In this way, while performing its primary task of cleaning, the robot vacuum cleaner will continuously accumulate third-time delay information, preparing data for subsequent communication support work.
[0081] Alternatively, the robot vacuum cleaner can perform scanning tasks according to a predetermined time cycle. During the scanning process, the robot vacuum cleaner obtains third-party time delay information for each location in the designated area from the master node device.
[0082] Alternatively, the robot vacuum cleaner can combine cleaning tasks with scanning tasks while acquiring third-party time-delay information, and so on.
[0083] For example, in the scenario of new energy vehicles, the first mobile device can be an in-vehicle terminal. While a new energy vehicle is in motion, its in-vehicle terminal can send data packets to a base station. These data packets are used to detect the time delay between the in-vehicle terminal and the base station, i.e., the third delay information. The in-vehicle terminal can record the acquired third delay information and send the third delay information, along with the corresponding GNSS (Global Navigation Satellite System) data, to a server. The server can store the vehicle's location and the third delay information in a database. Furthermore, the server can generate a time delay database of points along the path to different base stations using map data provided by a map provider.
[0084] The text above mentions that vehicle-mounted terminals can send data packets to base stations. Regarding the "base station," in the field of wireless communication, it refers to equipment or facilities used for wireless communication, primarily responsible for transmitting and receiving signals with mobile devices. Base stations are a core component of wireless communication networks, ensuring users can maintain stable communication connections in different areas. Furthermore, the base station in the field of wireless communication is a different concept from the charging base station for the robotic vacuum cleaner mentioned earlier.
[0085] GSNN data refers to positioning, navigation, and time synchronization data acquired through GNSS. GNSS is a satellite-based positioning technology that provides users with high-precision location, velocity, and time information.
[0086] S104, if the first delay information is greater than the first delay threshold and the first delay information is greater than the second delay information, a first line adjustment instruction is sent to the master node device; the first line adjustment instruction is used to instruct the adjustment of the communication route between the user terminal and the master node device, and in the adjusted communication route, the first mobile device is located between the master node device and the user terminal.
[0087] The first latency threshold can be a custom-configured parameter used to determine whether a user terminal has a relay service requirement.
[0088] If the first delay information is greater than the first delay threshold, it indicates that the signal transmission quality of the user terminal is relatively poor, and there is a need for relay services.
[0089] Relay service is a service used in communication systems to forward or transmit data, signals, or messages. It transmits data from a source device to a destination device through intermediate nodes, and is typically used to extend network coverage, enhance signal strength, or resolve communication obstacles.
[0090] If the first delay information is greater than the second delay information, it indicates that the signal transmission quality of the first mobile device is better than that of the user terminal.
[0091] When the first delay information is less than or equal to the first delay threshold and the first delay information is greater than the second delay information, the signal transmission quality of the user terminal is relatively good. There is no need to adjust the communication route between the user terminal and the master node device, so the subsequent steps S104-S108 will not be triggered.
[0092] When the first delay information is less than or equal to the first delay threshold and the first delay information is less than or equal to the second delay information, the signal transmission quality of the user terminal is relatively good. There is no need to adjust the communication route between the user terminal and the master node device, so the subsequent steps S104-S108 will not be triggered.
[0093] When the first delay information is greater than the first delay threshold and the first delay information is less than or equal to the second delay information, the signal transmission quality of the user terminal is poor, and the signal transmission quality of the first mobile device is even worse. Although the user terminal has a relay service requirement, the first mobile device is not suitable as a relay device, so the subsequent steps S104-S108 will not be triggered.
[0094] If the first delay information is greater than the first delay threshold and the first delay information is greater than the second delay information, the first mobile device sends a first line adjustment command to the master node device.
[0095] After receiving the first line adjustment instruction, the master node device can adjust the communication route between the user terminal and the master node device according to the first line adjustment instruction, or it can forward the first line adjustment instruction to other execution entities so that the other execution entities can adjust the communication route between the user terminal and the master node device.
[0096] Before adjustment, the communication route included the user terminal and the master node device, and the user terminal was connected to the master node device; after adjustment, the communication route included the user terminal, the first mobile device, and the master node device, and the user terminal was connected to the first mobile device, and the first mobile device was connected to the master node device.
[0097] For example, the robot vacuum cleaner sends a first line adjustment command to the master node device. This first line adjustment command is used to instruct the mobile phone to roam from node 1 represented by the master node device to node 2 represented by the robot vacuum cleaner in the wireless network.
[0098] S106, acquire the first location information of the user terminal and the second location information of the first mobile device, and determine the first target location in the preset area based on the first location information, the second location information and the third time delay information of each location in the preset area.
[0099] The first location information of a user terminal can be obtained through technologies such as RTT, AoD, AI (Real-Time Transport Technology, Angle of Departure, Artificial Intelligence), and vision solutions.
[0100] Obtaining the second location information of the first mobile device can be achieved by sending a location query request to the master node device. The location query request is used to request the query of the second location information of the first mobile device, and the master node device receives response data in response to the location query request. The response data includes the second location information.
[0101] Based on the first location information, the second location information, and the third time delay information of each location in the preset area, the first target location is determined in the preset area. This can be achieved by determining the movement range of the first mobile device based on the first location information and the second location information, and then selecting the location with the smallest third time delay information within the movement range as the first target location based on the movement range of the first mobile device and the third time delay information of each location in the preset area.
[0102] Alternatively, step S106 can be replaced by acquiring, during the movement of the first mobile device according to a preset movement mode, the integrated delay information corresponding to the adjusted communication route at predetermined time intervals and recording the location where the integrated delay information is acquired. Based on the acquired integrated delay information and the location where the integrated delay information is acquired, the first target location is determined. The replaced steps can be combined with other processing steps provided in the embodiments of this application to form a new implementation.
[0103] For example, in a smart home scenario, the first mobile device could be a robot vacuum cleaner, and the user terminal could be a laptop computer. Considering the limited area of a home, fixed movement routes can be pre-configured for each room. The robot vacuum cleaner moves according to the preset movement method, which could be determined by the room the robot vacuum cleaner is in and move according to the movement route corresponding to that room.
[0104] Alternatively, the robot vacuum can move according to a preset movement method, or it can use the robot vacuum's built-in cleaning path planning algorithm to determine the first movement route from the current position to the main node device, or the second movement route from the current position to the laptop, and move according to the first movement route or the second movement route.
[0105] Alternatively, the robot vacuum cleaner can move according to a preset movement method, or it can determine a semi-circular movement range based on its current position and move randomly within that range, and so on.
[0106] The preset movement methods listed above are merely examples. Any movement method that is beneficial to improving the overall latency information of the adjusted communication route can be used as a preset latency method. In practical applications, preset movement methods can be customized according to specific scenarios.
[0107] The integrated latency information corresponding to the adjusted communication route can be generated based on the latency information between the user terminal and the first mobile device, as well as the latency information between the first mobile device and the master node device.
[0108] Based on the acquired comprehensive time delay information, the first target location can be determined. This can be done by identifying the comprehensive time delay information with the smallest value among the acquired comprehensive time delay information and using the location where the comprehensive time delay information with the smallest value is acquired as the first target location.
[0109] In one specific implementation, determining a first target location in the preset area based on first location information, second location information, and third time delay information of each location in the preset area includes: generating a movement route of a first mobile device based on the first location information and second location information; querying the third time delay information of each location in the movement route from the third time delay information of each location in the preset area; determining the third time delay information with the smallest value from the third time delay information of each location in the movement route, and taking the location corresponding to the third time delay information with the smallest value as the first target location.
[0110] Based on the first location information and the second location information, a movement route for the first mobile device is generated. This route may start with the first location information as the destination and the second location information as the starting point, and the shortest movement route between the starting point and the destination is generated.
[0111] Alternatively, the movement route of the first mobile device can be generated based on the first location information and the second location information. Or, the first location information can be used as the endpoint of the movement route and the second location information can be used as the starting point of the movement route to generate multiple candidate movement routes between the starting point and the endpoint. The multiple candidate movement routes are sorted according to preset parameters, and the movement route of the first mobile device is determined from the multiple candidate movement routes based on the sorting results.
[0112] The preset parameters can be the length of the candidate movement route, the sum of the third time delay information of each location in the candidate movement route, the average value of the third time delay information of each location in the candidate movement route, and so on.
[0113] For example, based on the first location information and the second location information, the following candidate movement routes are generated: movement route 1, movement route 2, and movement route 3. The length of movement route 1 is l1, the length of movement route 2 is l2, and the length of movement route 3 is l3, where l1 < l2 < l3.
[0114] The three candidate routes are sorted according to their lengths, and route 1 corresponding to l1 is determined as the route of the first mobile device based on the sorting result. By selecting the candidate route with the shortest length, the first mobile device can move to the first target location more quickly. This allows for faster optimization of signal transmission quality and improved network experience for users after the user terminal's wireless signal deteriorates, triggering the relay service provided by the first mobile device.
[0115] For example, based on the first location information and the second location information, the following candidate movement routes are generated: movement route 1, movement route 2, and movement route 3. The average value of the third time delay information for each location in movement route 1 is x1, the average value of the third time delay information for each location in movement route 2 is x2, and the average value of the third time delay information for each location in movement route 3 is x3, where x1 < x2 < x3.
[0116] The three candidate movement routes are sorted according to the average value of the third latency information. Based on this sorting result, movement route 1 corresponding to x1 is determined as the movement route of the first mobile device. By selecting the candidate movement route with the smallest average latency, the communication connection between the first mobile device and the master node device can be made more stable during the movement of the first mobile device, which facilitates the first mobile device to obtain comprehensive latency information from the master node device.
[0117] Query the third time delay information of each location in the preset area, and then query the third time delay information of each location along the movement route.
[0118] For example, the preset area includes 100 locations, and the movement route includes 5 locations. The third time delay information of the 5 locations included in the movement route can be determined from the third time delay information of the 100 locations.
[0119] The third delay information with the smallest value is determined from the third delay information of each location in the movement route, and the location corresponding to the third delay information with the smallest value is taken as the first target location.
[0120] For example, based on the first location information of the mobile phone and the second location information of the robot vacuum cleaner, a movement route from the robot vacuum cleaner to the mobile phone can be determined. Assume that the movement route includes five locations: A, B, C, D, and E. Given the third time delay information of 100 locations in the home, the third time delay information of location A (1), location B (2), ..., location E (5) can be determined.
[0121] Among the five third time delay information values mentioned above, the one with the smallest value is identified as third time delay information 2. Therefore, the location B corresponding to third time delay information 2 can be identified as the first target location.
[0122] In practical applications, when the signal transmission quality of a user terminal begins to deteriorate, it is often necessary to take measures as soon as possible to improve the signal transmission quality in order to ensure the user's network experience. The first target location determined by this implementation method can be approximated as the location with the shortest overall latency information corresponding to the communication line. This is done in order to quickly find the location with the shortest overall latency information using pre-collected historical data, thus balancing the improvement of data processing efficiency and signal transmission quality.
[0123] Alternatively, step S106 can be replaced by obtaining the first location information of the user terminal, the second location information of the first mobile device, and the latency information between the user terminal and the first mobile device, and determining the first target location in the preset area based on the first location information, the second location information, the latency information between the user terminal and the first mobile device, and the third latency information of each location in the preset area. The replaced step can be combined with other processing steps provided in the embodiments of this application to form a new implementation.
[0124] In one implementation, the process of determining the first target location within a preset area can involve the following steps: generating a movement route for the first mobile device based on first and second location information; querying the third delay information of each location along the movement route from the third delay information of each location within the preset area; determining the third delay information with the smallest value among the third delay information of each location along the movement route, and using the location corresponding to the third delay information with the smallest value as the fourth target location; generating a corresponding movement command based on the fourth target location; using the movement command corresponding to the fourth target location to drive the first mobile device to move to the fourth target location; during the process of the first mobile device moving to the fourth target location, acquiring the sixth delay information between the user terminal and the first mobile device, as well as the location where the sixth delay information is acquired; determining the third delay information of the location based on the third delay information of each location within the preset area; determining the comprehensive delay information based on the sixth delay information and the third delay information, and using the location with the smallest value of the comprehensive delay information as the first target location.
[0125] In another implementation, the process of determining the first target location in a preset area can be performed as follows: Based on the first and second location information, a movement route for the first mobile device is generated; the third delay information of each location in the preset area is queried for the third delay information of each location along the movement route; the third delay information with the smallest value is determined from the third delay information of each location along the movement route, and the location corresponding to the third delay information with the smallest value is designated as the fourth target location; a corresponding movement command is generated based on the fourth target location; the movement command corresponding to the fourth target location is used to drive the first mobile device to move to the fourth target location; during the process of the first mobile device moving to the fourth target location, the sixth delay information between the user terminal and the first mobile device and the location where the sixth delay information is obtained are acquired, as well as the seventh delay information between the first mobile device and the intermediate node device and the location where the seventh delay information is obtained are acquired; based on the sixth and seventh delay information, a comprehensive delay information is determined, and the location with the smallest value of the comprehensive delay information is designated as the first target location.
[0126] In the two implementation methods described above, the fourth target location is determined using the first location information, the second location information, and the third time delay information. The sixth time delay information is acquired during the movement to the fourth target location, or the sixth and seventh time delay information are acquired during the movement to the fourth target location. Compared with the technical solution of traversing all locations in the preset area and collecting data in real time, this method can significantly reduce the number of locations that need to perform real-time data collection operations, thereby shortening the time to determine the first target location, improving data processing efficiency, and enabling the first mobile device to provide good relay services to the user terminal at the first target location. This achieves a balance between improving data processing efficiency and improving signal transmission quality.
[0127] S108, a first movement command is generated based on the first target location; the first movement command is used to drive the first mobile device to move to the first target location.
[0128] The first movement command may be a control command for the first mobile device, used to drive the first mobile device to move to the first target location.
[0129] By generating a first movement command to drive the first mobile device to move, the overall latency information corresponding to the adjusted communication line can be reduced as much as possible, so that the master node device can provide better wireless network services to the user terminal.
[0130] In one specific implementation, the data processing method further includes: during the process of the first mobile device moving to the first target location, acquiring fourth time delay information between the first mobile device and the master node device according to a first time period, and recording the location where the fourth time delay information is acquired; if at least one fourth time delay information is less than the third time delay information with the smallest value, determining the fourth time delay information with the smallest value among the fourth time delay information, and taking the location where the fourth time delay information with the smallest value is acquired as the second target location; generating a second movement command based on the second target location; the second movement command is used to drive the first mobile device to move to the second target location.
[0131] The first time period can be a pre-configured time period for acquiring the fourth delay information. For example, the first time period can be pre-configured as t1. During the process of the first mobile device moving to the first target location: at time point T0, the first mobile device acquires a fourth delay information s1 and records the location where s1 is acquired; at time point (T0+t1), the first mobile device acquires a fourth delay information s2 and records the location where s2 is acquired; at time point (T0+2t1), the first mobile device acquires a fourth delay information s3 and records the location where s3 is acquired, and so on.
[0132] For example, if the first target location is location C, after the robot vacuum has moved to location C, some fine-tuning can be done to find a location near location C with lower overall latency than location C. The specific process is as follows:
[0133] During the process of the robot vacuum moving from the starting point to location C, the fourth time delay information between the robot vacuum and the master node device is acquired according to the first time period, and the corresponding location is recorded. After the robot vacuum moves to location C, if the fourth time delay information acquired by the robot vacuum includes at least one fourth time delay information that is less than the third time delay information of location C, the fourth time delay information with the smallest value is determined among the at least one fourth time delay information, and the location where the fourth time delay information with the smallest value is acquired is taken as the second target location.
[0134] If all the fourth delay information acquired by the robot vacuum cleaner is greater than the third delay information at location C, then location C can be considered as the location that makes the overall delay information corresponding to the adjusted communication line as close as possible to the minimum value.
[0135] The second movement command is generated based on the second target location, as can be found in the corresponding description of step S108.
[0136] By driving the first mobile device to the first target node and fine-tuning the position of the first mobile device using this implementation, the overall latency information corresponding to the adjusted communication line can be reduced, thus optimizing the signal transmission quality.
[0137] In one specific implementation, the data processing method further includes: determining a first sub-region within the target area based on the first target location as the center and a preset radius; generating a third movement command based on the first sub-region; the third movement command being used to drive a first mobile device to move within the first sub-region; during the movement of the first mobile device within the first sub-region, acquiring fifth time delay information between the first mobile device and the master node device according to a first time period, and recording the location where the fifth time delay information is acquired; if at least one fifth time delay information is less than the third time delay information with the smallest value, determining the fifth time delay information with the smallest value among the fifth time delay information, and using the location where the fifth time delay information with the smallest value is acquired as the third target location; generating a fourth movement command based on the third target location; the fourth movement command being used to drive the first mobile device to move to the third target location.
[0138] The first time period can be a pre-configured time period for acquiring the fifth delay information. For example, the first time period can be pre-configured as t1. During the process of the first mobile device moving to the first target location: at time point T0, the first mobile device acquires a fifth delay information s1 and records the location where s1 is acquired; at time point (T0+t1), the first mobile device acquires a fifth delay information s2 and records the location where s2 is acquired; at time point (T0+2t1), the first mobile device acquires a fifth delay information s3 and records the location where s3 is acquired, and so on.
[0139] Since the concepts are the same, the first time period for acquiring the fifth delay information pre-configured in this implementation method and the first time period for acquiring the fourth delay information pre-configured in the aforementioned implementation method can be the same concept, or they can be two concepts with similar functions but different values. That is, the first time period with different values can be configured for the fourth delay information and the fifth delay information respectively.
[0140] The first sub-region can be a circular sub-region within the target region.
[0141] A third movement command is generated based on the first sub-region; the third movement command is used to drive the first mobile device to move in the first sub-region.
[0142] For example, a third movement command can be used to drive the first mobile device to traverse every location in the first sub-region.
[0143] During the movement of the first mobile device in the first sub-region, the fifth delay information between the first mobile device and the master node device is acquired according to the first time period, and the location where the fifth delay information is acquired is recorded. If there is at least one fifth delay information less than the third delay information with the smallest value, the fifth delay information with the smallest value is determined from the fifth delay information, and the location where the fifth delay information with the smallest value is acquired is taken as the third target location. The concept is similar to the aforementioned implementation method, and the corresponding description can be referred to.
[0144] By driving the first mobile device to the first target node and fine-tuning the position of the first mobile device using this implementation, the overall latency information corresponding to the adjusted communication line can be reduced, thus optimizing the signal transmission quality.
[0145] Alternatively, a first sub-region can be determined within the target area, centered on the first target location and with a preset radius. A third movement command is generated based on the first sub-region. The third movement command is used to drive the first mobile device to move within the first sub-region. During the movement of the first mobile device within the first sub-region, the integrated delay information corresponding to the adjusted communication line is acquired according to a first time period, and the location where the integrated delay information is acquired is recorded. The integrated delay information with the smallest value is determined from the integrated delay information, and the location where the integrated delay information with the smallest value is acquired is taken as the third target location. A fourth movement command is generated based on the third target location. The fourth movement command is used to drive the first mobile device to move to the third target location.
[0146] The overall latency information corresponding to the adjusted communication line can be determined based on the latency information between the user terminal and the first mobile device, as well as the latency information between the first mobile device and the master node device.
[0147] Alternatively, the first mobile device can be moved to a first target location first, then fine-tuned to move to a second target location. Using the second target location as the center, a first sub-region is determined within the target area based on the center and a preset radius. A third movement command is generated based on the first sub-region. The third movement command is used to drive the first mobile device to move within the first sub-region. During the movement of the first mobile device within the first sub-region, fifth delay information between the first mobile device and the master node device is acquired according to a first time period, and the location where the fifth delay information is acquired is recorded. If at least one fifth delay information is less than the smallest third delay information, the smallest fifth delay information is determined from the fifth delay information, and the location where the smallest fifth delay information is acquired is taken as the third target location. A fourth movement command is generated based on the third target location. The fourth movement command is used to drive the first mobile device to move to the third target location.
[0148] In one specific implementation, the data processing method further includes: acquiring a first channel in an idle state and its characteristic parameters; determining a target channel in the first channel based on the characteristic parameters of the first channel; and establishing a communication connection between the target channel and the first mobile device.
[0149] To obtain the first channel that is in an idle state, you can scan each channel and determine the status information of each channel based on the scan results. If a channel is in an idle state, then that channel is determined as the first channel.
[0150] In each device that has been connected to the wireless network, each device can establish a communication connection with one channel.
[0151] One characteristic parameter of the first channel is its isolation. First channel isolation refers to the signal isolation capability between different first channels in a multi-channel communication system. It measures the degree to which the signal of one first channel affects other first channels, and is usually expressed in decibels (dB). Higher channel isolation indicates less interference between different first channels, and better system performance.
[0152] Based on the characteristic parameters of the first channel, the target channel can be determined from the first channel, which may be the first channel with the highest isolation.
[0153] By identifying the target channel with the highest isolation and establishing a communication connection between the target channel and the first mobile device, network latency can be reduced and network stability improved.
[0154] Another characteristic parameter of the first channel is its bandwidth. Bandwidth refers to the width of the frequency range used for signal transmission in a communication system. It is an important parameter for measuring the channel's transmission capacity, determining the amount of data the channel can transmit and its transmission rate. The larger the channel bandwidth, the more data the channel can transmit, and the higher the transmission rate.
[0155] Based on the characteristic parameters of the first channel, the target channel is determined from the first channel. This can be done by selecting the first channel with the largest bandwidth as the target channel.
[0156] In one specific implementation, there are multiple first mobile devices; the data processing method further includes: when the communication route between the user terminal and the master node device includes N first mobile devices, obtaining comprehensive latency information corresponding to the communication route; N is an integer greater than 0; when the comprehensive latency information is greater than a second latency threshold, sending a second line adjustment command to the master node device; the second line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, and in the adjusted communication route, N+1 first mobile devices are located between the master node device and the user terminal.
[0157] The overall latency information corresponding to the communication route can be determined based on the latency information between the user terminal and the first mobile device and the latency information between the first mobile device and the master node device.
[0158] If the overall delay information is greater than the second delay threshold, it indicates that the signal transmission quality of the adjusted communication line is still very poor. In this case, a second line adjustment command can be sent to the master node device.
[0159] The second delay threshold can be a custom-configured parameter used to determine whether the user terminal needs to add a relay device.
[0160] After executing the data processing method provided in the embodiments of this application, each first mobile device can act as a relay device between the user terminal and the master node device, providing relay services to the user terminal. The second latency threshold is similar in concept to the first latency threshold, except that the first latency threshold is used when there is no relay device between the user terminal and the master node device, while the second latency threshold is used when there is at least one relay device between the user terminal and the master node device.
[0161] Let's take N=1 as an example for illustration:
[0162] After executing steps S102-S108, a robotic vacuum cleaner is inserted as a relay device between the smartphone and the master node device, and the communication route changes from (smartphone - master node device) to (smartphone - robotic vacuum cleaner 1 - master node device).
[0163] If a robotic vacuum cleaner is inserted into the communication line and moved to the first target location, but the smartphone signal is still not good, then robotic vacuum cleaner 1 can drive another robotic vacuum cleaner 2 to move towards the phone through the master node device, and the communication route is adjusted again to (smartphone - robotic vacuum cleaner 2 - robotic vacuum cleaner 1 - master node device). In this case, N+1 = 2.
[0164] This increases the number of devices in the communication line, shortens the transmission distance between two adjacent devices, and helps improve signal transmission quality.
[0165] In one specific implementation, the data processing method further includes: obtaining a first recommended route for the first mobile device; querying the third latency information of each location in the first recommended route from the third latency information of each location in a preset area according to the first recommended route; evaluating the network service quality of the first recommended route according to the third latency information of each location in the first recommended route to obtain an evaluation result of the first recommended route; and determining the target recommended route for the first mobile device in the first recommended route according to the evaluation result of the first recommended route.
[0166] Obtaining the first recommended route for the first mobile device can be achieved by generating one or more first recommended routes for the first mobile device based on a navigation path planning algorithm.
[0167] If the first mobile device is a robotic vacuum cleaner, the first recommended route can be the recommended movement route of the robotic vacuum cleaner. If the first mobile device is an in-vehicle device, the first recommended route can be the recommended route traveled by the vehicle.
[0168] The following explanation uses a new energy vehicle scenario as an example, with reference to Figure 2:
[0169] Figure 2 is a schematic diagram of a route provided in an embodiment of this application.
[0170] When a new vehicle requests route planning, the navigation path planning algorithm provides four first recommended routes as shown in Figure 2:
[0171] ①9->6->1->2->3->4
[0172] ②9->6->7->8->4
[0173] ③9->10->11->12->4
[0174] ④9->13->14->15->11->12->4
[0175] As shown in Figure 2, the starting point of the four recommended routes is location 202, and the ending point of the four recommended routes is location 204.
[0176] When the vehicle terminal is set to prioritize navigation network service, the third latency information of each location in each of the four first recommended routes can be obtained first. Based on the third latency information of each location in the first recommended routes, the network service quality of the first recommended routes can be evaluated and processed to obtain the evaluation result of the first recommended routes.
[0177] The best recommended route for network service quality may not be the shortest recommended route, but the wireless signal of the vehicle terminal is relatively stable and less likely to disconnect.
[0178] Based on the third latency information of each location in the first recommended route, the network service quality of the first recommended route is evaluated to obtain the evaluation result. This can be done by summing, averaging, or finding the maximum value of the third latency information of each location in the first recommended route for each route. The specific calculation method used in evaluating the first recommended route can be customized. The network service quality of the first recommended route can be evaluated based on the calculation results.
[0179] In one specific implementation, the data processing method further includes: obtaining the placement location of the first mobile device; the placement location belongs to a preset area and is used to place the first mobile device in a non-working state; and determining a target placement location in the preset area based on the placement location and third time delay information of each location in the preset area.
[0180] When the first mobile device is a robotic vacuum cleaner, the placement location of the first mobile device can be the location of the robotic vacuum cleaner's base station. The base station is located within a preset area and is used to place the robotic vacuum cleaner when it is not in operation.
[0181] When the first mobile device is an in-vehicle device, its placement location can be a parking space in a parking lot. The parking space is located within a preset area and is used to place a vehicle that is not in operation, including the in-vehicle device.
[0182] Based on the placement location and the third time delay information of each location in the preset area, the target placement location is determined in the preset area. Alternatively, based on the placement location, the third time delay information of each location in the preset area can be queried, and the location with the smallest third time delay information value can be determined as the target placement location.
[0183] For example, when a vehicle arrives at a parking lot and enters the parked state, the vehicle's onboard equipment measures its own latency to surrounding base stations by sending data packets, and simultaneously reports its current location to the server. Combining this with map data, when the server obtains the network latency from all parking spaces to surrounding base stations, it can prioritize recommending the parking space with the lowest network latency, providing the user with the best possible network service.
[0184] In this embodiment, by driving the first mobile device to the first target location and adjusting the communication line between the user terminal and the master node device, the signal transmission distance can be shortened and the signal transmission quality improved. The first target location is determined based on latency; therefore, driving the first mobile device to the first target location helps reduce the latency of the adjusted communication line. Furthermore, the time required to determine the first target location is very short, allowing the first mobile device to quickly reach a position where the latency of the adjusted communication line is minimized. This achieves a balance between improving data processing efficiency and signal transmission quality.
[0185] Based on the same technical concept, this application also provides a first mobile device. Figure 3 is a schematic diagram of the structure of a first mobile device provided in this application.
[0186] As shown in Figure 3, the first mobile device 300 includes: an obstacle perception system 302, a wireless transmission module 304, an obstacle avoidance module 306, a network latency detection module 308, and a walking control module 310.
[0187] The obstacle perception system 302 is mainly equipped with sensors such as cameras, lidar, and meter-wave radar to detect obstacles.
[0188] The wireless transmission module 304 is used to detect transmission delay and perform network relay signal forwarding.
[0189] The obstacle avoidance module 306 is used to identify the detection signals reported by the obstacle perception module and avoid obstacles on the travel route.
[0190] The network latency detection module 308 is used to detect network latency transmission.
[0191] The travel control module 310 is used to process the relevant information reported by the obstacle avoidance module 306 and the network delay detection module 308 to plan the route and control the movement of the first mobile device.
[0192] During the execution of the data processing method provided in this application embodiment by the first mobile device 300, the network latency detection module 308 acquires first latency information between the user terminal and the master node device, and acquires second latency information between the first mobile device and the master node device; when the first latency information is greater than the first latency threshold and the first latency information is greater than the second latency information, the wireless transmission module 304 sends a first line adjustment command to the master node device; the first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, in which the first mobile device is located between the master node device and the user terminal in the adjusted communication route; the walking control module 310 acquires the first location information of the user terminal and the second location information of the first mobile device, and determines the first target location in the preset area according to the first location information, the second location information and the third latency information of each location in the preset area; the walking control module 310 generates a first movement command according to the first target location; the first movement command is used to drive the first mobile device to move to the first target location, and the specific details can be found in the corresponding descriptions of steps S102-S108.
[0193] Figure 4 is an interactive schematic diagram of a data processing method provided in an embodiment of this application.
[0194] As shown in Figure 4, there is a communication connection between the master node device 406 and the laptop 408, and the master node device 406 provides wireless network services to the laptop 408.
[0195] The communication connection between the master node device 406 and the smartphone 404 is interfered with by obstacles, resulting in a deterioration in signal transmission quality. After the data processing method provided in this application embodiment is executed through the first mobile device 402, a communication connection exists between the master node device 406 and the first mobile device 402, and a communication connection exists between the first mobile device 402 and the smartphone 404. The master node device 406 provides wireless network services to the smartphone 404 through the first mobile device 402.
[0196] The master node device 406 collaborates with other important components 410 in the wireless network during its operation. These other important components 410 include, but are not limited to, modems, routing devices, etc.
[0197] Figure 5 is a floor plan diagram of a data processing method applied to a smart home scenario according to an embodiment of this application. The application of the data processing method in a smart home scenario will be further explained below with reference to Figure 5.
[0198] As shown in Figure 5, the robotic vacuum cleaner 504 acquires first latency information between the user terminal and the master node device 502, and acquires second latency information between the robotic vacuum cleaner 504 and the master node device 502. When the first latency information is greater than a first latency threshold and also greater than the second latency information, the robotic vacuum cleaner 504 sends a first line adjustment command to the master node device 502. The first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device 502, in which the robotic vacuum cleaner 504 is located between the master node device 502 and the user terminal. The robotic vacuum cleaner 504 acquires first location information of the user terminal and second location information of the robotic vacuum cleaner 504, and determines a first target location in the preset area based on the first location information, the second location information, and third latency information of each location in the preset area. The robotic vacuum cleaner 504 generates a first movement command based on the first target location. The first movement command is used to drive the robotic vacuum cleaner 504 to move to the first target location; for details, please refer to the corresponding descriptions of steps S102-S108.
[0199] In practice, the master node device 502 can periodically send data packets to the user terminal. These data packets are used to obtain the time delay between the user terminal and the master node device 502, i.e., the aforementioned first delay information.
[0200] The robotic vacuum cleaner 504 can periodically send data packets to the master node device 502. These data packets can be used to obtain the time delay between the robotic vacuum cleaner 504 and the master node device 502, or to obtain the first time delay information collected by the master node device 502.
[0201] When the user terminal is in an area with relatively high signal strength, the first delay information is less than or equal to the first delay threshold. Therefore, the user terminal does not need relay service, and the robot vacuum cleaner 504 decides whether to clean or return to the base station according to its own logic.
[0202] When the user terminal is in an area with low signal strength, the robotic vacuum cleaner 504 determines that the first delay information is greater than a first delay threshold and greater than a second delay information. The robotic vacuum cleaner 504 then sends a first line adjustment command to the master node device 502, causing the user terminal to roam from the node represented by the master node device 502 to the node represented by the robotic vacuum cleaner 504. In the adjusted communication route, the master node device 502 and the robotic vacuum cleaner 504 are communicatively connected, and the robotic vacuum cleaner 504 is communicatively connected to the user terminal. There is no direct communication connection between the master node device 502 and the user terminal.
[0203] The robotic vacuum cleaner 504 sends data packets to the user terminal to obtain the time delay between the robotic vacuum cleaner 504 and the user terminal. Then, combined with the obtained time delay between the robotic vacuum cleaner 504 and the master node device 502, the comprehensive time delay information corresponding to the adjusted communication line is determined.
[0204] The robotic vacuum cleaner 504 begins to move, and during the movement, it finds the first target location with the minimum overall latency information. The robotic vacuum cleaner 504 then stops at the first target location to provide relay services to the user terminal.
[0205] If the movement of the user terminal causes a greater time delay between the robot vacuum cleaner 504 and the user terminal, the robot vacuum cleaner 504 continues to move to determine a new first target location.
[0206] If the master node device 502 detects a time delay between itself and the robotic vacuum cleaner 504, and if the time delay between itself and the user terminal is close to or the same, the master node device 502 can proactively roam the user terminal back to itself and simultaneously notify the robotic vacuum cleaner 504 to release the channel. This can reduce the number of network hops, which is beneficial for stable transmission, reduces channel occupancy, and further reduces transmission latency.
[0207] Figure 6 is a schematic diagram of another apartment type used in a data processing method for smart home scenarios provided in an embodiment of this application.
[0208] As shown in Figure 6, when the communication route between the user terminal 608 and the master node device 602 includes one robotic vacuum cleaner 604, the comprehensive latency information corresponding to the communication route is obtained; if the comprehensive latency information is greater than the second latency threshold, a second line adjustment command is sent to the master node device 602; the second line adjustment command is used to instruct the adjustment of the communication route between the user terminal 608 and the master node device 602, and in the adjusted communication route, two robotic vacuum cleaners are located between the master node device 602 and the user terminal 608, namely robotic vacuum cleaner 604 and robotic vacuum cleaner 606.
[0209] Since the technical concepts are similar, the various embodiments shown in Figures 3-6 are described in a relatively simple manner, and can be referred to the corresponding descriptions above.
[0210] In summary, specific embodiments of this subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing can be advantageous.
[0211] The above are the data processing methods provided in the embodiments of this application. Based on the same idea, the embodiments of this application also provide a data processing device.
[0212] Figure 7 is a schematic block diagram of a data processing device provided in an embodiment of this application. As shown in Figure 7, the data processing device 700 is applied to a first mobile device, and the device includes:
[0213] The acquisition unit 702 is used to acquire first latency information between the user terminal and the master node device, and to acquire second latency information between the first mobile device and the master node device.
[0214] The sending unit 704 is configured to send a first line adjustment command to the master node device when the first delay information is greater than a first delay threshold and the first delay information is greater than the second delay information; the first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, wherein the first mobile device is located between the master node device and the user terminal in the adjusted communication route;
[0215] The determining unit 706 is used to acquire the first location information of the user terminal and the second location information of the first mobile device, and determine the first target location in the preset area based on the first location information, the second location information and the third time delay information of each location in the preset area;
[0216] The generation unit 708 is configured to generate a first movement instruction based on the first target location; the first movement instruction is configured to drive the first mobile device to move to the first target location.
[0217] In one embodiment, when determining the first target location in the preset area based on the first location information, the second location information, and the third time delay information of each location in the preset area, the determining unit 706 performs the following steps:
[0218] Based on the first location information and the second location information, the movement route of the first mobile device is generated;
[0219] From the third time delay information of each location in the preset area, query the third time delay information of each location in the movement route;
[0220] The third delay information with the smallest value is determined from the third delay information of each location in the movement route, and the location corresponding to the third delay information with the smallest value is taken as the first target location.
[0221] In one embodiment, the acquisition unit 702 is further configured to acquire fourth time delay information between the first mobile device and the master node device according to a first time period during the process of the first mobile device moving to the first target location, and record the location where the fourth time delay information is acquired.
[0222] The determining unit 706 is further configured to, when there is at least one fourth delay information less than the third delay information with the smallest value, determine the fourth delay information with the smallest value among the fourth delay information, and take the location where the fourth delay information with the smallest value is obtained as the second target location;
[0223] The generation unit 708 is further configured to generate a second movement instruction based on the second target location; the second movement instruction is used to drive the first mobile device to move to the second target location.
[0224] In one embodiment, the determining unit 706 is further configured to determine a first sub-region in the target region based on the first target location as the center and a preset radius;
[0225] The generation unit 708 is further configured to generate a third movement instruction based on the first sub-region; the third movement instruction is used to drive the first mobile device to move in the first sub-region.
[0226] The acquisition unit 702 is further configured to acquire fifth time delay information between the first mobile device and the master node device according to a first time period during the process of the first mobile device moving in the first sub-region, and record the location where the fifth time delay information is acquired;
[0227] The determining unit 706 is further configured to, when there is at least one fifth delay information less than the third delay information with the smallest value, determine the fifth delay information with the smallest value among the fifth delay information, and take the location where the fifth delay information with the smallest value is obtained as the third target location;
[0228] The generation unit 708 is further configured to generate a fourth movement instruction based on the third target location; the fourth movement instruction is used to drive the first mobile device to move to the third target location.
[0229] In one embodiment, when the acquisition unit 702 acquires the first latency information between the user terminal and the master node device, and acquires the second latency information between the first mobile device and the master node device, it performs the following steps:
[0230] Send a first data packet to the master node device, and receive a second data packet returned by the master node device in response to the first data packet at a second time point, wherein the second data packet includes the first delay information and the first time point at which the master node device sent the second data packet;
[0231] The second time delay information is determined based on the first time point and the second time point.
[0232] In one embodiment, the number of the first mobile devices is multiple;
[0233] The acquisition unit 702 is further configured to acquire comprehensive latency information corresponding to the communication route when the communication route between the user terminal and the master node device includes N first mobile devices; N is an integer greater than 0.
[0234] The sending unit 704 is further configured to send a second line adjustment instruction to the master node device when the comprehensive delay information is greater than the second delay threshold; the second line adjustment instruction is used to instruct the adjustment of the communication route between the user terminal and the master node device, wherein in the adjusted communication route, N+1 first mobile devices are located between the master node device and the user terminal.
[0235] In one embodiment, the data processing apparatus 700 further includes an establishment unit;
[0236] The acquisition unit 702 is further configured to acquire the first channel in an idle state and the characteristic parameters of the first channel;
[0237] The determining unit 706 is further configured to determine a target channel in the first channel based on the characteristic parameters of the first channel;
[0238] The establishment unit is used to establish a communication connection between the target channel and the first mobile device.
[0239] In one embodiment, the data processing device 700 further includes a deduplication unit;
[0240] The acquisition unit 702 is further configured to acquire third delay information between the first mobile device and the master node device during the movement of the first mobile device, and record the time and location at which the first mobile device acquires the third delay information; the movement range of the first mobile device is determined by the preset area;
[0241] The deduplication unit is used to perform deduplication processing on the acquired third delay information based on the time and location at which the first mobile device acquires the third delay information, so as to obtain the third delay information of each location in the preset area.
[0242] In one embodiment, the data processing device 700 further includes a query unit and an evaluation unit;
[0243] The acquisition unit 702 is further configured to acquire the first recommended route of the first mobile device;
[0244] The query unit is used to query the third delay information of each location in the first recommended route from the third delay information of each location in the preset area according to the first recommended route;
[0245] The evaluation unit is used to evaluate the network service quality of the first recommended route based on the third latency information of each location in the first recommended route, and obtain the evaluation result of the first recommended route.
[0246] The determining unit 706 is further configured to determine the target recommended route for the first mobile device in the first recommended route based on the evaluation result of the first recommended route.
[0247] In one embodiment, the acquisition unit 702 is further configured to acquire the placement location of the first mobile device; the placement location belongs to the preset area and the placement location is used to place the first mobile device in a non-working state;
[0248] The determining unit 706 is further configured to determine the target placement location in the preset area based on the placement location and the third time delay information of each location in the preset area.
[0249] In this embodiment, by driving the first mobile device to the first target location and adjusting the communication line between the user terminal and the master node device, the signal transmission distance can be shortened and the signal transmission quality improved. The first target location is determined based on latency; therefore, driving the first mobile device to the first target location helps reduce the latency of the adjusted communication line. Furthermore, the time required to determine the first target location is very short, allowing the first mobile device to quickly reach a position where the latency of the adjusted communication line is minimized. This achieves a balance between improving data processing efficiency and signal transmission quality.
[0250] Those skilled in the art will understand that the data processing apparatus in Figure 7 can be used to implement the data processing method described above, and the details therein should be similar to those described in the method section above. To avoid being cumbersome, they will not be repeated here.
[0251] Based on the same idea, this application also provides an electronic device, as shown in FIG8. The electronic device can vary considerably due to differences in configuration or performance, and may include one or more processors 801 and memories 802. The memories 802 may store one or more application programs or data. The memories 802 may be temporary or persistent storage. The application programs stored in the memories 802 may include one or more modules (not shown), each module including a series of computer-executable instructions for the electronic device. Furthermore, the processor 801 may be configured to communicate with the memories 802 and execute the series of computer-executable instructions in the memories 802 on the electronic device. The electronic device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input / output interfaces 805, and one or more keyboards 806.
[0252] Specifically, in this embodiment, the electronic device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for use in the electronic device, and is configured to be executed by one or more processors. The one or more programs include computer-executable instructions for performing the following:
[0253] Acquire first latency information between the user terminal and the master node device, and acquire second latency information between the first mobile device and the master node device;
[0254] If the first delay information is greater than the first delay threshold and the first delay information is greater than the second delay information, a first line adjustment command is sent to the master node device; the first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, and in the adjusted communication route, the first mobile device is located between the master node device and the user terminal;
[0255] The system acquires the first location information of the user terminal and the second location information of the first mobile device, and determines the first target location in the preset area based on the first location information, the second location information, and the third time delay information of each location in the preset area.
[0256] A first movement command is generated based on the first target location; the first movement command is used to drive the first mobile device to move to the first target location.
[0257] In this embodiment, by driving the first mobile device to the first target location and adjusting the communication line between the user terminal and the master node device, the signal transmission distance can be shortened and the signal transmission quality improved. The first target location is determined based on latency; therefore, driving the first mobile device to the first target location helps reduce the latency of the adjusted communication line. Furthermore, the time required to determine the first target location is very short, allowing the first mobile device to quickly reach a position where the latency of the adjusted communication line is minimized. This achieves a balance between improving data processing efficiency and signal transmission quality.
[0258] This application also proposes a computer-readable storage medium that stores one or more computer programs, each computer program including instructions that, when executed by an electronic device including multiple applications, enable the electronic device to perform various processes of the above-described data processing method embodiments, specifically for executing:
[0259] Acquire first latency information between the user terminal and the master node device, and acquire second latency information between the first mobile device and the master node device;
[0260] If the first delay information is greater than the first delay threshold and the first delay information is greater than the second delay information, a first line adjustment command is sent to the master node device; the first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, and in the adjusted communication route, the first mobile device is located between the master node device and the user terminal;
[0261] The system acquires the first location information of the user terminal and the second location information of the first mobile device, and determines the first target location in the preset area based on the first location information, the second location information, and the third time delay information of each location in the preset area.
[0262] A first movement command is generated based on the first target location; the first movement command is used to drive the first mobile device to move to the first target location.
[0263] In this embodiment, by driving the first mobile device to the first target location and adjusting the communication line between the user terminal and the master node device, the signal transmission distance can be shortened and the signal transmission quality improved. The first target location is determined based on latency; therefore, driving the first mobile device to the first target location helps reduce the latency of the adjusted communication line. Furthermore, the time required to determine the first target location is very short, allowing the first mobile device to quickly reach a position where the latency of the adjusted communication line is minimized. This achieves a balance between improving data processing efficiency and signal transmission quality.
[0264] This application provides a computer program product, including a computer program, which is executed by a processor to implement the various processes of the data processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0265] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0266] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0267] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied 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.
[0268] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.
[0269] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0270] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0271] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0272] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0273] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0274] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0275] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0276] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0277] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the scope of the claims of this application.
Claims
1. A data processing method applied to a first mobile device, wherein, include: Acquire first latency information between the user terminal and the master node device, and acquire second latency information between the first mobile device and the master node device; If the first delay information is greater than the first delay threshold and the first delay information is greater than the second delay information, a first line adjustment command is sent to the master node device; the first line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, and in the adjusted communication route, the first mobile device is located between the master node device and the user terminal; The system acquires the first location information of the user terminal and the second location information of the first mobile device, and determines the first target location in the preset area based on the first location information, the second location information, and the third time delay information of each location in the preset area. A first movement command is generated based on the first target location; The first movement command is used to drive the first mobile device to move to the first target location.
2. The method according to claim 1, wherein, The step of determining the first target location in the preset area based on the first location information, the second location information, and the third time delay information of each location in the preset area includes: Based on the first location information and the second location information of the first mobile device, a movement route for the first mobile device is generated; From the third time delay information of each location in the preset area, query the third time delay information of each location in the movement route; The third delay information with the smallest value is determined from the third delay information of each location in the movement route, and the location corresponding to the third delay information with the smallest value is taken as the first target location.
3. The method according to claim 2, wherein, The method further includes: During the process of the first mobile device moving to the first target location, the fourth time delay information between the first mobile device and the master node device is acquired according to the first time period, and the location where the fourth time delay information is acquired is recorded. If at least one of the fourth delay information is less than the third delay information with the smallest value, the fourth delay information with the smallest value is determined from the fourth delay information, and the location where the fourth delay information with the smallest value is obtained is taken as the second target location. A second movement command is generated based on the second target location; the second movement command is used to drive the first mobile device to move to the second target location.
4. The method according to claim 2, wherein, The method further includes: Using the first target location as the center, a first sub-region is determined in the target region based on the center and a preset radius; A third movement instruction is generated based on the first sub-region; the third movement instruction is used to drive the first mobile device to move within the first sub-region. During the movement of the first mobile device in the first sub-region, the fifth time delay information between the first mobile device and the master node device is acquired according to the first time period, and the location where the fifth time delay information is acquired is recorded. If at least one of the fifth delay information is less than the third delay information with the smallest value, the fifth delay information with the smallest value is determined from the fifth delay information, and the location where the fifth delay information with the smallest value is obtained is taken as the third target location; A fourth movement command is generated based on the third target location; the fourth movement command is used to drive the first mobile device to move to the third target location.
5. The method according to claim 1, wherein, The steps of obtaining the first latency information between the user terminal and the master node device, and obtaining the second latency information between the first mobile device and the master node device, include: Send a first data packet to the master node device, and receive a second data packet returned by the master node device in response to the first data packet at a second time point, wherein the second data packet includes the first delay information and the first time point at which the master node device sent the second data packet; The second time delay information is determined based on the first time point and the second time point.
6. The method according to claim 1, wherein, The number of the first mobile devices is multiple; the method further includes: When the communication route between the user terminal and the master node device includes N first mobile devices, the comprehensive latency information corresponding to the communication route is obtained; N is an integer greater than 0. If the overall latency information is greater than the second latency threshold, a second line adjustment command is sent to the master node device; the second line adjustment command is used to instruct the adjustment of the communication route between the user terminal and the master node device, and in the adjusted communication route, N+1 first mobile devices are located between the master node device and the user terminal.
7. The method according to claim 1, wherein, The method further includes: Obtain the first channel in an idle state and its characteristic parameters; Based on the characteristic parameters of the first channel, the target channel is determined in the first channel; Establish a communication connection between the target channel and the first mobile device.
8. The method according to claim 1, wherein, The method further includes: During the movement of the first mobile device, third latency information between the first mobile device and the master node device is acquired, and the time and location at which the first mobile device acquires the third latency information are recorded; the movement range of the first mobile device is determined by the preset area. Based on the time and location at which the third delay information is obtained by the first mobile device, the obtained third delay information is deduplicated to obtain the third delay information for each location in the preset area.
9. The method according to claim 1, wherein, The method further includes: Obtain the first recommended route for the first mobile device; Based on the first recommended route, query the third delay information of each location in the first recommended route from the third delay information of each location in the preset area; Based on the third latency information of each location in the first recommended route, the network service quality of the first recommended route is evaluated to obtain the evaluation result of the first recommended route. Based on the evaluation results of the first recommended route, a target recommended route for the first mobile device is determined from the first recommended route.
10. The method according to claim 1, wherein, The method further includes: Obtain the placement location of the first mobile device; the placement location belongs to the preset area and the placement location is used to place the first mobile device in a non-working state; Based on the placement location and the third time delay information of each location in the preset area, the target placement location is determined in the preset area.
11. An electronic device, wherein, The device includes a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being configured to call and execute the computer program from the memory to implement the data processing method as described in any one of claims 1-10.
12. A computer-readable storage medium, wherein, The storage medium is used to store a computer program that can be executed by a processor to implement the data processing method as described in any one of claims 1-10.
13. A computer program product, wherein, Includes a computer program, which is executed by a processor to implement the data processing method as described in any one of claims 1-10.