Terminal device control method, device, system, storage medium and electronic device
By generating network signal detection configuration files and detecting signal strength in terminal devices, the problem of business interruption caused by poor network signals in cloud robot terminals is solved, free switching of network channels is achieved, and the service stability of terminal devices is improved.
Patent Information
- Application Number
- CN202210278361.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-16
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-03-16
AI Technical Summary
Cloud robot terminals have poor network signals due to signal congestion and other reasons in wireless network environments, which cannot achieve data transmission, resulting in service interruption.
By generating network signal detection configuration files, the network signal strength of the terminal device is detected, and the network switching signal is sent when the preset standard is not met, network channel switching is realized and service data transmission of the terminal device is ensured.
It improves the service operation stability of terminal equipment, ensures that network channels can be switched freely when network signal strength changes, and ensures normal transmission of service data.
Smart Images

Figure CN114710814B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automatic control, and in particular, to a control method, device, system, storage medium and electronic device for a terminal device. Background Art
[0002] Cloud robot terminals are typical applications in IoT scenarios. Different from traditional traffic models, robot terminals require network quality with high bandwidth, low latency, and low packet loss. In the existing IoT network environment, the network communication of cloud robot terminals usually uses wireless network connections such as mobile terminal networks or WIFI networks. Due to the instability of wireless networks, when the network signal is poor due to signal congestion and other reasons, the cloud robot cannot achieve data transmission, resulting in business interruption of the cloud robot terminal. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a control method, device, system, storage medium and electronic device of a terminal device, which are used to maintain the normal operation of the terminal device when the network signal of the terminal device is weak.
[0004] According to a first aspect of an embodiment of the present disclosure, the method is applied to a server and includes:
[0005] Generate a configuration file for network signal detection according to the terminal device type;
[0006] Sending the configuration file to the corresponding terminal device so that the terminal device feeds back the corresponding network signal detection result;
[0007] When it is determined based on the network detection result that the network signal in the environment of the terminal device does not meet the first preset standard, a network switching signal is sent to the terminal device to enable the terminal device to switch the network channel.
[0008] Optionally, the method further comprises:
[0009] A first preset standard for evaluating an environmental network signal is obtained, wherein the first preset standard is determined by a packet loss rate.
[0010] Optionally, the first preset standard includes a first packet loss rate threshold, and when it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard, sending the network switching signal includes:
[0011] Determining a packet loss rate of the terminal device according to the network detection result;
[0012] When the packet loss rate of the terminal device reaches a preset first packet loss rate threshold, determining that the network signal corresponding to the environment in which the terminal device is located does not meet a first preset standard;
[0013] In response to a detection result that the network signal does not meet a first preset standard, generating the network switching signal;
[0014] The network switching signal is sent to the terminal device, so that the terminal device switches the network channel according to the network switching signal.
[0015] Optionally, generating a configuration file for performing network signal detection according to the terminal device type includes:
[0016] Obtaining a terminal device type corresponding to the terminal device, the terminal device type including a device type and a service type;
[0017] According to the device type, generating a corresponding network signal detection mechanism;
[0018] According to the service type, the network signal detection mechanism is converted into the configuration file for performing network signal detection.
[0019] Optionally, the method further comprises:
[0020] Counting the number of times the network switching signal is sent to the terminal device within a preset time period;
[0021] When the number reaches a preset number threshold, a switching inhibition signal is sent to the terminal device, so that the terminal device performs a service network change according to the switching inhibition signal.
[0022] According to a second aspect of an embodiment of the present disclosure, a control method for a terminal device is provided, which is applied to the terminal device and includes:
[0023] Get the configuration file sent by the server for network signal detection;
[0024] Based on the configuration file, the network signal of the environment in which the terminal device is located is detected to generate a network detection result;
[0025] Sending the network detection result to the server;
[0026] When the server determines, based on the network detection result, that the network signal in the environment where the terminal device is located does not meet a first preset standard, receiving a network switching signal sent by the server;
[0027] In response to the network switching signal, network channel switching is performed.
[0028] Optionally, the method further comprises:
[0029] In response to the switching inhibition signal sent by the server, determining whether the network signal in the environment where the terminal device is located meets a second preset standard according to the network detection result to obtain a determination result, wherein the second preset standard is determined by a packet loss rate;
[0030] Based on the determination result, the service function controlled by the terminal device is adjusted.
[0031] Optionally, the second preset standard includes a second packet loss rate threshold, and adjusting the service function controlled by the terminal device based on the determination result includes:
[0032] When the packet loss rate is less than the second packet loss rate threshold, reducing the network signal requirement of the terminal device corresponding to the service function;
[0033] When the packet loss rate is greater than or equal to the second packet loss rate threshold, the operation of the management and control service function of the terminal device is maintained, and other service functions except the management and control service function are closed.
[0034] Optionally, the method further comprises:
[0035] In response to a recovery signal sent by the server indicating that a network signal in an environment where the terminal device is located reaches a first preset standard, all service functions corresponding to the terminal device are enabled.
[0036] According to a third aspect of an embodiment of the present disclosure, a control device of a terminal device is provided, which is applied to a server, and the device includes:
[0037] A first generating module, used to generate a configuration file for performing network signal detection according to the type of terminal equipment;
[0038] A first sending module, used to send the configuration file to a corresponding terminal device, so that the terminal device feeds back a corresponding network signal detection result;
[0039] The second sending module is used to send a network switching signal to the terminal device so that the terminal device switches the network channel when it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard.
[0040] According to a fourth aspect of an embodiment of the present disclosure, a control device of a terminal device is provided, which is applied to the terminal device, and the device includes:
[0041] An acquisition module, used to acquire a configuration file sent by a server for performing network signal detection;
[0042] A second generating module is used to detect the network signal of the environment where the terminal device is located based on the configuration file and generate a network detection result;
[0043] A third sending module is used to send the network detection result to the server, so that the server feeds back a network switching signal when it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard;
[0044] The switching module is used to switch the network channel in response to the network switching signal.
[0045] According to a fifth aspect of an embodiment of the present disclosure, there is provided a control system for a terminal device, including: a server and a terminal device;
[0046] The server is used to generate a configuration file for performing network signal detection according to the type of the terminal device, and send the configuration file to the terminal device;
[0047] The terminal device is used to detect the network signal in the environment based on the configuration file to generate a network detection result, and send the network detection result to the server;
[0048] The server is configured to send a network switching signal to the terminal device when it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet a first preset standard;
[0049] The terminal device is used to switch the network channel in response to the network switching signal.
[0050] According to a sixth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in any one of the first aspect and the second aspect are implemented.
[0051] According to a seventh aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0052] a memory having a computer program stored thereon;
[0053] A processor is used to execute the computer program in the memory to implement the steps of the method in any one of the first aspect and the second aspect.
[0054] Through the above technical solution, a configuration file for network signal detection is generated according to the type of terminal device, and the configuration file is sent to the corresponding terminal device so that the terminal device can feedback the corresponding network signal detection result. When it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard, a network switching signal is sent to the terminal device so that the terminal device switches the network channel. Thus, a network detection signal is sent to the terminal device, so that the terminal device detects the network signal in the environment, determines whether the network signal meets the transmission conditions of the business data, and feeds back the detection result to the server. When the server determines that the network signal does not meet the first preset standard, a network switching signal is issued, so that the terminal device can freely switch the network channel based on the strength of the network signal in the environment, thereby ensuring the business data transmission of the terminal device and improving the stability of the business operation of the terminal device.
[0055] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0057] Figure 1 The figure is a flow chart of a method for controlling a terminal device according to an exemplary embodiment.
[0058] Figure 2 The figure is a flowchart of another method for controlling a terminal device according to an exemplary embodiment.
[0059] Figure 3 The present invention is a flowchart of a method for adjusting a service function according to an exemplary embodiment.
[0060] Figure 4 is a schematic diagram of yet another method for controlling a terminal device according to an exemplary embodiment.
[0061] Figure 5 The present invention is a block diagram of a control device of a terminal device according to an exemplary embodiment.
[0062] Figure 6 The figure is a block diagram of another control device of a terminal device according to an exemplary embodiment.
[0063] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment.
[0064] Figure 8is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0066] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0067] Figure 1 is a flow chart of a method for controlling a terminal device according to an exemplary embodiment. Figure 1 The control method of the terminal device is used for a server, comprising the following steps:
[0068] S11, generating a configuration file for performing network signal detection according to the terminal device type.
[0069] It should be noted that in this embodiment, the terminal device executes the corresponding business action through the control instruction of the server. Based on the existing network control environment, the terminal device and the server can usually communicate and transmit through a wireless network (including a mobile network and a WIFI network). The server sends a control signal, and the terminal device feeds back the execution result, thereby realizing the remote control of the terminal device. The configuration file serves as the carrier of the control instruction. During the transmission process, the corresponding configuration parameters (including initial settings and configuration parameters, etc.) are transmitted to the terminal device in the form of a configuration file based on the wireless network. After the terminal device parses the configuration file, it executes the corresponding business action.
[0070] In this embodiment, the server acts as a control terminal for the terminal device, and the corresponding terminal devices under its jurisdiction may be multiple. According to the application environment of each terminal device, the corresponding control instructions are issued so that the corresponding terminal device performs the corresponding business action. Usually, as a control center, the server needs to control multiple terminal devices of various types. Taking the robot terminal as an example, the corresponding terminal device types may include intelligent service robots, patrol temperature measurement robots, intelligent transportation robots, etc. Different robot terminal devices have different corresponding control instructions due to different business actions performed. Therefore, it is necessary to send the corresponding configuration file according to the terminal device type to control the terminal device. In this embodiment, a configuration file for network signal detection is generated according to the type of each terminal device controlled by the server. For example, a mapping relationship between the terminal device type and the configuration file can be established in advance, and the configuration file corresponding to the terminal device type can be obtained through the mapping relationship.
[0071] Optionally, the above step S11 includes:
[0072] Get the terminal device type corresponding to the terminal device, the terminal device type includes the device type and service type.
[0073] Generate a corresponding network signal detection mechanism based on the device type.
[0074] According to the service type, the network signal detection mechanism is converted into a configuration file for performing network signal detection.
[0075] It is understandable that before remote control is performed, the relevant information of the terminal device needs to be entered into the server so that the server can identify the terminal device. When entering the device information, the type, number and other identification information of the terminal device need to be entered. When the terminal device manufacturer produces the equipment, the terminal devices under the same device type have the same corresponding device functions, so the types of services that can be applied in the batch of terminal devices remain consistent. However, in actual applications, for different user application scenarios, the types of services that need to be turned on and off in different application scenarios are different for terminal devices based on the same device type. In this embodiment, according to the device type corresponding to the terminal device, a corresponding network signal detection mechanism is generated, and then according to the business type corresponding to the terminal device, the network signal detection mechanism is converted into a corresponding configuration file. It should be noted that the network signal detection mechanism is a different network signal detection strategy formed by different types of terminal devices based on their own hardware composition. For example, a device dedicated to network signal detection is installed on the terminal device, and a corresponding network signal detection mechanism is formulated according to the device; and for relatively small terminal devices, due to the limitations of the internal space, a larger network detection device cannot be installed, and a corresponding network detection strategy is generated according to the uplink and download speed of the terminal device. For example, according to different types of services, the corresponding configuration files include task statements for executing instructions such as detecting the target address, detecting interval time, detecting indicators (including delay indicators, packet loss indicators, jitter indicators, connectivity indicators and bandwidth indicators, etc.). For example, the terminal device is a cruise temperature measurement robot, and the service type of the robot terminal is cruise and temperature measurement. Accordingly, it needs to upload face temperature recognition data and travel data in real time. Therefore, it is sensitive to packet loss rate and uplink bandwidth. When performing network signal detection, the packet loss rate and uplink bandwidth have higher scoring weights. For example, the terminal device is a access control robot, and the corresponding business demand pays more attention to network connectivity, and the requirement for uplink bandwidth is not high. Therefore, when performing network signal detection, the weight of network connectivity is higher and the weight of uplink bandwidth is lower.
[0076] This embodiment divides different network signal detection mechanisms according to different device types of terminal devices, and converts the network detection mechanism into different configuration files according to the service type, so that the terminal device can obtain more accurate network signal detection results based on actual application needs when performing network signal detection.
[0077] S12, sending the configuration file to the corresponding terminal device, so that the terminal device feeds back the corresponding network signal detection result.
[0078] It can be understood that in this embodiment, the terminal device is configured with a corresponding network signal detection device to detect the relevant parameters affecting the network signal. The configuration file generated according to the terminal device type is sent to the corresponding terminal device, and the terminal device performs the corresponding network signal detection according to the execution program in the configuration file, detects the relevant parameter data affecting the network signal in the environment, and feeds back the relevant data obtained by the network detection to the server. The server determines the network signal in the environment where the terminal device is located according to the network signal detection result. For example, the terminal device can also directly generate the corresponding network signal detection result according to the relevant parameter data of the network signal, and display the network signal light at the corresponding position of the terminal device while feeding back to the server to prompt the user of the strength of the network signal received in the environment where the terminal device is located. For example, when the network signal is strong, the network signal light on the terminal device can be set to green; when the network signal is general, the network signal light is set to yellow; when the network signal is poor, the network signal light is set to red. Through the color indication of the network signal light, the user is reminded of the network signal situation in the environment, and it is convenient for the user to perform corresponding configuration changes on the connected network of the terminal device based on the network signal situation, so that the terminal device can normally execute the corresponding business data.
[0079] It should be noted that in this embodiment, when the terminal device performs network signal detection according to the configuration file, it is necessary to detect various data in the environment, such as connectivity data, packet loss rate data, uplink data, etc., and make a comprehensive judgment on the network signal based on the transmission speed and amount of each data, thereby effectively avoiding the one-sidedness of judging the strength of the network signal through a single data, such as connectivity data, and making the network signal detection results fed back to the server more accurate.
[0080] S13, when it is determined based on the network detection result that the network signal in the environment of the terminal device does not meet the first preset standard, sending a network switching signal to the terminal device to enable the terminal device to switch the network channel.
[0081] It can be understood that the server determines the network signal situation of the current environment of the terminal device based on the network signal detection result fed back by the terminal device. For example, the network detection result can be various data indicators related to the network signal. The server determines the strength relationship of the network signal based on the data indicator, wherein the judgment standard of the strength relationship can divide different judgment weights for different data indicators according to the business type of the terminal device. For example, for a security patrol robot, when performing network signal detection, the terminal device is more sensitive to packet loss rate and uplink bandwidth data. Therefore, when performing weight division, the scoring weight values of packet loss rate and uplink bandwidth data can be set to 40% and 40%, and the total scoring weight values of other detection data are 20%. For example, the terminal device can directly generate the corresponding network signal strength result according to the transmission speed of the business data and the amount of data transmitted, and directly feed back the network signal detection result to the server, and the server can directly read whether the corresponding network signal reaches the first preset standard. When it is determined according to the network detection result that the network signal corresponding to the environment where the terminal device is located does not reach the first preset standard, a network switching signal is sent to the terminal device, so that the terminal device switches the network channel according to the switching signal.
[0082] Optionally, before the above step S13, the method further includes:
[0083] A first preset standard for evaluating an environmental network signal is obtained, wherein the first preset standard is determined by a packet loss rate.
[0084] It is understandable that the strength relationship of the environmental network signal has different corresponding evaluation criteria in different application scenarios. Therefore, before evaluating the environmental network signal, it is necessary to first determine the first preset standard corresponding to the terminal device. Because the packet loss rate of the terminal device can directly reflect the strength relationship of the environmental network signal, and the packet loss rate of the terminal device can determine whether the corresponding business function of the terminal device can operate normally. Therefore, in this embodiment, the first preset standard for evaluating the environmental network signal is determined by the packet loss rate. When the packet loss rate of the terminal device reaches the packet loss rate corresponding to the first preset standard, it indicates that the environmental network signal does not reach the corresponding first preset standard; when the packet loss rate of the terminal device does not reach the packet loss rate corresponding to the first preset standard, it indicates that the environmental network signal reaches the corresponding first preset standard.
[0085] Optionally, the first preset standard includes a first packet loss rate threshold. Based on the above embodiment, the above step S13 includes:
[0086] Determine the packet loss rate of the terminal device based on the network detection results.
[0087] When the packet loss rate of the terminal device reaches a preset first packet loss rate threshold, it is determined that the network signal corresponding to the environment in which the terminal device is located does not meet the first preset standard.
[0088] In response to a detection result that the network signal does not meet the first preset standard, a network switching signal is generated.
[0089] The network switching signal is sent to the terminal device, so that the terminal device can switch the network channel according to the network switching signal.
[0090] It can be understood that the network detection result fed back by the terminal device includes the packet loss rate data of the terminal device. In this embodiment, the network signal of the environment in which the terminal device is located is judged based on the packet loss rate data. The packet loss rate refers to the ratio of lost data packet data to the sent data group during data transmission. Under normal circumstances, when the flow rate of the gigabit network card is greater than 200Mbps, the packet loss rate is less than 5 / 10,000, and when the flow rate of the 100M network card is greater than 60Mbps, the packet loss rate is less than 1 / 10,000. Therefore, the network signal situation of the environment in which the terminal device is located can be confirmed according to the value of the packet loss rate. When the packet loss rate reaches the preset first packet loss rate threshold, it is determined that the network signal corresponding to the environment in which the terminal device is located does not meet the first preset standard. It is necessary to issue a network switching instruction to the terminal device so that the terminal device switches the network channel. For example, the first packet loss rate threshold can be set to 25%, and the network connection channel of the terminal device in the initial state is a WIFI network. When it is determined through the network signal detection result that the packet loss rate of the terminal device is 30% greater than the first packet loss rate threshold, the server sends a network switching signal, and the network channel of the terminal device is converted from the WIFI network to the mobile network.
[0091] Optionally, the control method of the terminal device may further include:
[0092] Count the number of network switching signals sent to the terminal device within a preset time.
[0093] When the number of times reaches a preset number threshold, a switching inhibition signal is sent to the terminal device, so that the terminal device performs a service network change according to the switching inhibition signal.
[0094] In this embodiment, the terminal device is an Internet of Things terminal device, which needs to interact with network data in real time. Therefore, the terminal device should maintain a networked state in real time, and the network signal corresponding to the environment needs to be detected in real time. In order to ensure the continuous stability of the network signal and that the network detection does not occupy too much bandwidth, the network signal detection interval of the terminal device can be set. For example, the interval can be set to 10S, and the network detection result is reported at 10S intervals. After the terminal device switches the network channel, it still needs to feedback the network signal detection result to the server. If it is determined based on the network signal detection result that the network signal of the terminal device is still poor, the server continues to issue a network channel switching instruction to enable the terminal device to continue to switch the network channel. When the number of network switching signals sent to the terminal device reaches the preset number threshold within the preset time, it indicates that the mobile network and WIFI network corresponding to the environment of the terminal device at this time have not reached the first preset standard, and after the corresponding network channel is switched, the terminal device still cannot perform normal business data transmission. In order to avoid losses caused by invalid network switching, when the number of network switching reaches a preset threshold within a preset time, the server sends a switching inhibition signal to the terminal device, causing the terminal device to stop switching network channels, and perform business network transformation, shutting down some services with large traffic demands to ensure the normal operation of the main business, thereby reducing losses caused by weakened network signals. For example, according to the switching inhibition signal sent by the server, the terminal device can suspend the business action of uploading or downloading video data, and then start the corresponding business action when the network signal in the environment where the terminal device is located reaches the first preset standard based on the network signal detection result.
[0095] Figure 2 is a flow chart of another method for controlling a terminal device according to an exemplary embodiment. Figure 2 , the method is applied to a terminal device, and the control method of the terminal device includes:
[0096] Step S21, obtaining a configuration file sent by the server for performing network signal detection.
[0097] Step S22: Based on the configuration file, the network signal of the environment in which the terminal device is located is detected to generate a network detection result.
[0098] Step S23, sending the network detection result to the server.
[0099] Step S24: When the server determines based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard, a network switching signal sent by the server is received.
[0100] Step S25, switching the network channel in response to the network switching signal.
[0101] It can be understood that this embodiment is applied to a terminal device, and the terminal device receives a configuration file for performing network signal detection sent by a server, and detects the network signal in the environment where the terminal device is located according to the configuration file, and generates a corresponding network detection result. The network detection result is sent to the server, and the server determines the network detection result. When the server determines that the network signal in the environment where the terminal device is located does not meet the first preset standard according to the network detection result, the network channel switching signal is sent to enable the terminal device to switch the network channel based on the network channel switching signal.
[0102] Figure 3 is a flowchart of a method for adjusting a business function according to an exemplary embodiment. Figure 3 , the adjustment method includes:
[0103] Step S31, in response to the switching inhibition signal sent by the server, determining whether the network signal in the environment where the terminal device is located meets the second preset standard according to the network detection result to obtain a determination result, and the second preset standard is determined by the packet loss rate.
[0104] Step S32: Based on the determination result, the service function controlled by the terminal device is adjusted.
[0105] It can be understood that in this embodiment, the terminal device receives the switching inhibition signal sent by the server, indicating that the terminal device has performed a preset number of network channel switching based on the network channel switching signal. For example, the preset number can be set to 4 times, indicating that the terminal device has performed 4 network channel switching between the mobile network and the WIFI network based on the network channel switching signal sent by the server, that is, the mobile network and the WIFI network in the environment of the terminal device do not meet the first preset standard. When the packet loss rate is used as the judgment standard, the packet loss rate of the terminal device in the mobile network and the WIFI network at this time is greater than the first packet loss rate threshold. Therefore, in order to ensure the normal operation of the terminal device, it is necessary to adjust the running business of the terminal device, and send a switching inhibition signal to the terminal device through the server, so that the terminal device closes other businesses with high traffic requirements to ensure the normal operation of the core business, so as to reduce the impact caused by the poor network signal. In this embodiment, when the network signal in the environment of the terminal device does not meet the first preset standard, the service function that the terminal device needs to adjust accordingly is determined by the second preset standard, wherein, in terms of the relationship between the strength of the network signal, the second preset standard is lower than the first preset standard. For example, taking packet loss rate as an example, the first packet loss rate threshold corresponding to the first preset standard can be set to 20%, and the second packet loss rate threshold corresponding to the second preset standard can be set to 40%. When the packet loss rate of the terminal device is 35%, it means that the environmental network signal corresponding to the terminal device has not reached the first preset standard, but has reached the second preset standard.
[0106] Optionally, when the packet loss rate of the terminal device does not reach the first preset standard, a further judgment is made as to whether the packet loss rate reaches the second preset standard. For example, it can be set that when the packet loss rate threshold of the terminal device reaches the second preset standard, some unimportant service functions with large traffic consumption are shut down; when the packet loss rate does not reach the second preset standard, most of the service functions of the terminal device are shut down, and only the core functions are retained to maintain the normal operation of the main services of the terminal device.
[0107] Optionally, the second preset standard includes a second packet loss rate threshold, and the above step S32 includes:
[0108] When the packet loss rate is less than the second packet loss rate threshold, the network signal requirement of the corresponding service function of the terminal device is reduced.
[0109] When the packet loss rate is greater than or equal to the second packet loss rate threshold, the operation of the management and control service function of the terminal device is maintained, and other service functions except the management and control service function are closed.
[0110] It is understandable that in this embodiment, the service functions that need to be enabled by the terminal device in the corresponding situation are divided according to the packet loss rate of the terminal device. When the packet loss rate is less than the second packet loss rate threshold and greater than the first packet loss rate threshold, the network signal requirement of the corresponding service function of the terminal device is reduced.
[0111] For example, the clarity of the transmitted video can be reduced, or the transmission speed of the video data can be reduced. When the packet loss rate is greater than or equal to the second packet loss rate threshold, it means that the network signal in the environment where the terminal device is located is poor. At this time, in order to maintain the normal operation of the corresponding management and control business functions, the terminal device needs to shut down other business functions except the management and control business. For example, using a language robot as a terminal device, the operation of the robot's business type can be controlled according to the following table:
[0112]
[0113] When the network indicator is green, it means that the network signal at this time can ensure the normal operation of the language robot's business; when the network indicator is yellow, it means that the packet loss rate of the language robot is greater than 30% and less than 50%, then the services with large traffic consumption such as audio data and video data transmission are closed, and the automatic language recognition service of the language robot is retained. When the network indicator is red, it means that the network signal is poor at this time, and the language robot needs to start the offline data of local automatic language recognition to ensure the normal operation of the language recognition service.
[0114] Optionally, the above control method further includes:
[0115] In response to a recovery signal sent by the server indicating that a network signal in an environment where the terminal device is located reaches a first preset standard, all service functions corresponding to the terminal device are enabled.
[0116] It can be understood that the switching of the business operation status of the terminal device is an emergency measure taken when the network signal in the current environment is poor. When the network signal in the environment where the terminal device is located is restored and meets the first preset standard, the corresponding business function needs to be turned on again to ensure the normal operation of the terminal device.
[0117] Based on the same inventive concept, the embodiment of the present disclosure also provides a control system for a terminal device, the system comprising: a server and a terminal device;
[0118] The server is used to generate a configuration file for performing network signal detection according to the type of the terminal device, and send the configuration file to the terminal device;
[0119] The terminal device is used to detect the network signal in the environment based on the configuration file to generate a network detection result, and send the network detection result to the server;
[0120] The server is configured to send a network switching signal to the terminal device when it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard;
[0121] The terminal device is used to switch the network channel in response to the network switching signal.
[0122] It can be understood that in this embodiment, the control system of the terminal device includes a server and a terminal device, and the server and the terminal device are connected to each other through wireless Internet. The server transmits corresponding control instructions to the terminal device through the wireless network, and the terminal device performs corresponding control operations based on the control instructions. The server generates a configuration file for network signal detection according to the device type of the terminal device, and sends the configuration file to the terminal device; the terminal device detects the network signal of the environment based on the configuration file, and generates a network detection result and sends it to the server; the server sends a network switching signal to the terminal device when it determines that the network signal of the environment where the terminal device is located does not meet the first preset standard based on the network detection result; the terminal device switches the network channel according to the network switching signal.
[0123] Through the above technical solution, a configuration file for network signal detection is generated according to the type of terminal device, and the configuration file is sent to the corresponding terminal device so that the terminal device can feedback the corresponding network signal detection result. When it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard, a network switching signal is sent to the terminal device so that the terminal device switches the network channel. Thus, a network detection signal is sent to the terminal device, so that the terminal device detects the network signal in the environment, determines whether the network signal meets the transmission conditions of the business data, and feeds back the detection result to the server. When the server determines that the network signal does not meet the first preset standard, a network switching signal is issued, so that the terminal device can freely switch the network channel based on the strength of the network signal in the environment, thereby ensuring the business data transmission of the terminal device and improving the stability of the business operation of the terminal device.
[0124] Figure 4 is a schematic diagram of another method for controlling a terminal device according to an exemplary embodiment. Figure 4 , taking the terminal device as different types of robots as an example, the control method of the terminal device includes the following steps:
[0125] Step 1: The robot management system issues different network detection mechanisms according to different robot types;
[0126] Step 2: The software-defined network controller converts the network detection mechanism into a corresponding configuration file (including target address, detection interval, detection index, etc.) according to the service type of each terminal device;
[0127] Step 3: Through the virtual private network, the corresponding configuration file is sent to the terminal device according to the identification information of each terminal device, so that the terminal device performs network signal detection according to the configuration file;
[0128] Step 4: After the terminal device completes the network signal detection, it feeds back the corresponding detection result to the software-defined network controller for network signal analysis;
[0129] Step 5: If the network signal of the terminal device is determined to be weak, the network signal switching instruction is sent to the corresponding terminal device, so that the terminal device switches the network channel between the mobile network and the WIFI network based on the corresponding network demand strategy. If the network still cannot meet the business needs after the network switch, the business adaptive transformation is triggered; for example, uploading videos is closed, video frequency is reduced, etc., to ensure the normal operation of core businesses.
[0130] Figure 5 is a block diagram of a control device of a terminal device according to an exemplary embodiment. Figure 5 The control device 100 includes a first generating module 110 , a first sending module 120 and a second sending module 130 .
[0131] The first generating module 110 is used to generate a configuration file for performing network signal detection according to the type of terminal equipment.
[0132] The first sending module 120 is used to send the configuration file to the corresponding terminal device, so that the terminal device feeds back the corresponding network signal detection result.
[0133] The second sending module 130 is used to send a network switching signal to the terminal device when it is determined based on the network detection result that the network signal in the environment where the terminal device is located is poor, so that the terminal device switches the network channel.
[0134] Optionally, the control device 100 further includes an acquisition module. The acquisition module is used to:
[0135] A preset standard for evaluating an environmental network signal is obtained, wherein the preset standard is determined by a packet loss rate.
[0136] Optionally, the preset standard includes a first packet loss rate threshold, and the second sending module 130 is configured to:
[0137] Determine the packet loss rate of the terminal device based on the network detection results.
[0138] When the packet loss rate of the terminal device reaches a preset first packet loss rate threshold, it is determined that the network signal corresponding to the environment in which the terminal device is located does not meet the first preset standard.
[0139] In response to a detection result that the network signal does not meet the first preset standard, a network switching signal is generated.
[0140] The network switching signal is sent to the terminal device, so that the terminal device can switch the network channel according to the network switching signal.
[0141] Optionally, the first generating module 110 is used to:
[0142] Get the terminal device type corresponding to the terminal device, the terminal device type includes the device type and service type.
[0143] Generate corresponding network performance detection mechanism according to the device type.
[0144] According to the service type, the network performance detection mechanism is converted into a configuration file for performing network signal detection.
[0145] Optionally, the control device 100 further includes:
[0146] The statistics module is used to count the number of network switching signals sent to the terminal device within a preset time period.
[0147] The execution module is used to send a switching inhibition signal to the terminal device when the number of times reaches a preset number threshold, so that the terminal device performs a service network change according to the switching inhibition signal.
[0148] Figure 6 FIG. 1 is a block diagram of another control device of a terminal device according to an exemplary embodiment. Figure 6 The control device 200 includes an acquisition module 210, a second generation module 220, a third sending module 230 and a switching module 240.
[0149] The acquisition module 210 is used to acquire a configuration file sent by the server for performing network signal detection.
[0150] The second generating module 220 is used to detect the network signal of the environment where the terminal device is located based on the configuration file and generate a network detection result.
[0151] The third sending module 230 is used to send the network detection result to the server, so that the server feeds back a network switching signal when it is determined based on the network detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard.
[0152] The switching module 240 is used to switch the network channel in response to the network switching signal.
[0153] Optionally, the control device 200 further includes an adjustment module, and the adjustment module includes:
[0154] The determination submodule is used to respond to the switching inhibition signal sent by the server and determine whether the network signal in the environment where the terminal device is located meets the second preset standard according to the network detection result to obtain a determination result, and the second preset standard is determined by the packet loss rate.
[0155] The execution submodule is used to adjust the service functions controlled by the terminal device based on the determination result.
[0156] Optionally, the second preset standard includes a second packet loss rate threshold, and the execution submodule may also be used to:
[0157] When the packet loss rate is less than the second packet loss rate threshold, the network signal requirement of the corresponding service function of the terminal device is reduced.
[0158] When the packet loss rate is greater than or equal to the second packet loss rate threshold, the operation of the management and control service function of the terminal device is maintained, and other service functions except the management and control service function are closed.
[0159] Optionally, the control device 200 further includes an opening module, which is used to:
[0160] In response to a recovery signal sent by the server indicating that a network signal in an environment where the terminal device is located reaches a first preset standard, all service functions corresponding to the terminal device are enabled.
[0161] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0162] Figure 7 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Figure 7 As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0163] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the control method of the terminal device described above. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include, for example, instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 4G, 5G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0164] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned terminal device control method.
[0165] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the control method of the terminal device described above are implemented. For example, the computer-readable storage medium may be the memory 702 including the program instructions, and the program instructions may be executed by the processor 701 of the electronic device 700 to complete the control method of the terminal device described above.
[0166] Figure 8 8 is a block diagram of another electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be provided as a server. Figure 8 The electronic device 800 includes a processor 822, which may be one or more, and a memory 832 for storing a computer program executable by the processor 822. The computer program stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 822 may be configured to execute the computer program to perform the above-mentioned control method of the terminal device.
[0167] In addition, the electronic device 800 may further include a power supply component 826 and a communication component 850. The power supply component 826 may be configured to perform power management of the electronic device 800, and the communication component 850 may be configured to implement communication of the electronic device 800, for example, wired or wireless communication. In addition, the electronic device 800 may further include an input / output (I / O) interface 858. The electronic device 800 may operate based on an operating system stored in the memory 832, such as Windows Server 2000. TM , Mac OSX TM , Unix TM , Linux TM etc.
[0168] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by the processor, the steps of the control method of the terminal device described above are implemented. For example, the computer-readable storage medium may be the memory 832 including the program instructions, and the program instructions may be executed by the processor 822 of the electronic device 800 to complete the control method of the terminal device described above.
[0169] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned control method of the terminal device when executed by the programmable device.
[0170] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0171] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0172] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A method for controlling a terminal device, characterized in that: Applicable to servers, including: Generate a configuration file for network signal detection based on the terminal device type; Sending the configuration file to the corresponding terminal device so that the terminal device feeds back the corresponding network signal detection result; When it is determined based on the network signal detection result that the network signal in the environment of the terminal device does not meet a first preset standard, sending a network switching signal to the terminal device to enable the terminal device to switch the network channel; The generating of a configuration file for performing network signal detection according to the terminal device type includes: Obtaining a terminal device type corresponding to the terminal device, the terminal device type including a device type and a service type; Generate a corresponding network signal detection mechanism according to the device type; According to the service type, the network signal detection mechanism is converted into the configuration file for performing network signal detection.
2. The control method according to claim 1, characterized in that: The method further comprises: The first preset standard for evaluating the environmental network signal is obtained, wherein the first preset standard is determined by a packet loss rate.
3. The control method according to claim 2, characterized in that: The first preset standard includes a first packet loss rate threshold, and when it is determined based on the network signal detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard, sending the network switching signal includes: Determining a packet loss rate of the terminal device according to the network signal detection result; When the packet loss rate of the terminal device reaches the first packet loss rate threshold, determining that the network signal corresponding to the environment in which the terminal device is located does not meet the first preset standard; generating the network switching signal in response to a detection result that the network signal does not meet the first preset standard; The network switching signal is sent to the terminal device, so that the terminal device switches the network channel according to the network switching signal.
4. The control method according to claim 1, wherein: The method further comprises: Counting the number of times the network switching signal is sent to the terminal device within a preset time period; When the number of times reaches a preset number threshold, a switching inhibition signal is sent to the terminal device, so that the terminal device performs service network conversion according to the switching inhibition signal.
5. A method for controlling a terminal device, characterized in that: Applied to terminal equipment, including: Obtaining a configuration file for network signal detection sent by the server; the configuration file is generated by the server by converting the network signal detection mechanism according to the service type of the terminal device, and the network signal detection mechanism is generated by the server according to the device type of the terminal device; Based on the configuration file, detecting the network signal of the environment in which the terminal device is located to generate a network signal detection result; Sending the network signal detection result to the server; When the server determines, based on the network signal detection result, that the network signal in the environment where the terminal device is located does not meet a first preset standard, receiving a network switching signal sent by the server; In response to the network switching signal, network channel switching is performed.
6. The control method according to claim 5, characterized in that: The method further comprises: In response to the switching inhibition signal sent by the server, determining, according to the network signal detection result, whether the network signal in the environment in which the terminal device is located meets a second preset standard to obtain a determination result, where the second preset standard is determined by a packet loss rate; Based on the determination result, the service function controlled by the terminal device is adjusted.
7. The control method according to claim 6, characterized in that: The second preset standard includes a second packet loss rate threshold, and adjusting the service function controlled by the terminal device based on the determination result includes: When the packet loss rate of the terminal device is less than the second packet loss rate threshold, reducing the network signal requirement of the terminal device corresponding to the service function; When the packet loss rate of the terminal device is greater than or equal to the second packet loss rate threshold, the operation of the management and control service function of the terminal device is maintained, and other service functions except the management and control service function are closed.
8. The control method according to claim 7, characterized in that: The method further comprises: In response to a recovery signal sent by the server indicating that the network signal in the environment where the terminal device is located reaches the first preset standard, all service functions corresponding to the terminal device are enabled.
9. A control device for a terminal device, characterized in that: Applied to a server, the device includes: A first generating module is configured to generate a configuration file for performing network signal detection based on a terminal device type; the generating of the configuration file for performing network signal detection based on the terminal device type comprises: obtaining a terminal device type corresponding to the terminal device, the terminal device type comprising a device type and a service type; generating a corresponding network signal detection mechanism based on the device type; and converting the network signal detection mechanism into the configuration file for performing network signal detection based on the service type; A first sending module is used to send the configuration file to a corresponding terminal device, so that the terminal device feeds back a corresponding network signal detection result; The second sending module is used to send a network switching signal to the terminal device so that the terminal device switches the network channel when it is determined based on the network signal detection result that the network signal in the environment where the terminal device is located does not meet the first preset standard.
10. A control device for a terminal device, characterized in that: Applied to a terminal device, the device includes: an acquisition module, configured to acquire a configuration file for performing network signal detection sent by a server; the configuration file is generated by the server by converting the network signal detection mechanism according to the service type of the terminal device, and the network signal detection mechanism is generated by the server according to the device type of the terminal device; A second generating module is used to detect the network signal of the environment in which the terminal device is located based on the configuration file and generate a network signal detection result; A third sending module is used to send the network signal detection result to the server, so that the server feeds back a network switching signal when it is determined based on the network signal detection result that the network signal in the environment of the terminal device does not meet the first preset standard; The switching module is used to switch the network channel in response to the network switching signal.
11. A control system for a terminal device, characterized in that: include: Servers and terminal devices; The server is configured to generate a configuration file for performing network signal detection according to the type of the terminal device, and send the configuration file to the terminal device; Generating a configuration file for performing network signal detection according to the terminal device type includes: obtaining a terminal device type corresponding to the terminal device, the terminal device type including a device type and a service type; generating a corresponding network signal detection mechanism according to the device type; and converting the network signal detection mechanism into the configuration file for performing network signal detection according to the service type; The terminal device is configured to detect a network signal in an environment based on the configuration file, generate a network signal detection result, and send the network signal detection result to the server; The server is configured to send a network switching signal to the terminal device when it is determined based on the network signal detection result that the network signal in the environment where the terminal device is located does not meet a first preset standard; The terminal device is used to switch the network channel in response to the network switching signal.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
13. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Continuous service data transmission method and equipment
CN107733742A
Network switching method and device in communication, and mobile terminal
CN107969020A
