Device remote driving method, device, storage medium and program product
By receiving remote control requests and determining target drivers based on device type information, the problems of low control efficiency and poor security performance in traditional remote control solutions are solved, and more efficient and secure equipment control is achieved.
Patent Information
- Application Number
- CN202411503613.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-25
AI Technical Summary
In traditional remote control solutions, users need to go through tedious steps to establish a connection with remote devices, resulting in low control efficiency and poor security performance.
By receiving the remote control request sent by the first terminal, the target driver is determined based on the device type information, and the target task in the remote control request is performed based on the target driver.
Improve the control efficiency of the device, avoid the unauthorized terminal sending control instructions directly to the device, ensure the safe operation of the device, and improve the user experience.
Smart Images

Figure CN119402530A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote control technology, and in particular to a device remote driving method, device, storage medium and program product. Background Art
[0002] With the rapid development of Internet of Things technology, various remote control systems related to smart home and remote office have gradually entered thousands of households. Through wireless communication technology, various devices are connected, bringing people a variety of different usage experiences.
[0003] In traditional remote control solutions, users may need to manually enter IP addresses, port numbers, verification information and other tedious steps to establish a connection with a remote device.
[0004] This solution is not only time-consuming but also prone to errors. Once the connection is established, if the interface or operation method of the remote device does not match the user's habits, the user will need to spend extra time to adapt and learn, further reducing control efficiency. Summary of the invention
[0005] The present invention provides a device remote driving method to solve the problems of low control efficiency and poor safety performance when a user remotely controls a device through a terminal.
[0006] According to one aspect of the present invention, there is provided a device remote driving method, comprising: receiving a remote control request sent by a first terminal, wherein the remote control request carries device type information of a first device to be controlled;
[0007] If the first terminal is a target terminal, determining a target driver of the first device according to the device type information, wherein the target driver is a device driver of a second device of the same device type as the first device;
[0008] The first device is driven to execute a target task corresponding to the remote control request based on the target driver.
[0009] According to another aspect of the present invention, there is provided a device remote driving apparatus, characterized in that it comprises:
[0010] A remote control request receiving module, configured to receive a remote control request sent by a first terminal, wherein the remote control request carries device type information of a first device to be controlled;
[0011] a target driver determining module, configured to determine a target driver of the first device according to the device type information if the first terminal is a target terminal, wherein the target driver is a device driver of a second device of the same device type as the first device;
[0012] A task execution module is used to drive the first device to execute a target task corresponding to the remote control request based on the target driver.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device remote driving method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the device remote driving method described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the device remote driving method according to any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention receives a remote control request sent by a first terminal, and when the first terminal is a target terminal, determines the target driver of the first device according to the device type information, wherein the target driver is the device driver of the second device of the same device type as the first device. It can ensure the safe operation of the device and avoid the potential safety hazards caused by a terminal other than the target terminal directly sending control instructions to the device. By determining the device driver of the second device of the same device type as the first device as the target driver, the user does not have to repeatedly switch the control interface and update the control driver when controlling the device through the terminal. Finally, the target task carried in the remote control request is executed through the target driver, which can improve the control efficiency of the device while improving the user experience.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a device remote driving method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of another device remote driving method provided according to Embodiment 2 of the present invention;
[0024] Figure 3 is a flowchart of another device remote driving method provided according to Embodiment 3 of the present invention;
[0025] Figure 4 is a structural schematic diagram of a device remote driving apparatus provided according to a fourth embodiment of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the device remote driving method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a device remote driving method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of remotely controlling a device. The method can be executed by a device remote driving device. The device remote driving device can be implemented in the form of hardware and / or software. The device remote driving device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0031] S110: Receive a remote control request sent by a first terminal, wherein the remote control request carries device type information of a first device to be controlled.
[0032] The first terminal may be a device terminal having network communication capability and capable of sending remote control requests, such as a smart phone, tablet computer, personal computer or smart home controller that can send remote control requests via the network in the fields of home automation, industrial automation, remote office and distance education.
[0033] Among them, the remote control request may be a request sent by the first terminal for controlling the first device to be controlled. The remote control request may carry the device type information of the first device to be controlled and the terminal identification information of the first terminal. For example, a remote control request to turn on the bedroom air conditioner or the bathroom water heater may be sent through a mobile phone terminal. The remote control request carries the terminal identification information of the first terminal, and the terminal identification information refers to the identification information of the first terminal that sends the remote control request, which may be a unique identifier for characterizing the first terminal. Through the terminal identification information of the first terminal, information related to the first terminal, such as user information, authority information, and authentication information corresponding to the first terminal, may be obtained.
[0034] The first device to be controlled may be a device controlled by the first terminal through a remote control request. For example, the first device may be an air conditioner in a bedroom or living room, or a water heater in a bathroom, etc.
[0035] The device type information may be specific data or parameters used to characterize the first device type, and the same device type information may include multiple devices of the same type but of different models or brands. For example, the device types of air conditioners of different brands may be classified as air conditioner types, and the device types of water heaters of different brands may be classified as water heater types.
[0036] Exemplarily, a remote control request for controlling a first device sent by a first terminal can be received, and then device type information of the first device carried in the remote control request can be identified. When the first terminal meets a control condition, the first device can be controlled according to the remote control request sent by the first terminal based on the device type information of the first device carried in the remote control request.
[0037] Optionally, after receiving the remote drive request sent by the first terminal, it also includes: querying a registration database according to the terminal identification information of the first terminal carried in the remote drive request, wherein the registration database is at least used to store the terminal identification information of the terminal that has driving authority for the first device; if the terminal identification information of the first terminal is queried in the registration database, the first terminal is determined as the target terminal.
[0038] The registration database may be a database storing terminal identification information corresponding to terminals with driving authority for devices. The registration database may at least be used to store the terminal identification information with driving authority for the first device, and may also store the terminal identification information with driving authority for other devices in addition to the first device.
[0039] Exemplarily, if the first terminal has a need to control the first device, the first terminal can be registered on the driver management platform. After receiving the registration information of the first terminal, the driver management platform can store the terminal identification information of the first terminal in the registration database. By storing the terminal identification information in the database through registration, it is possible to avoid the situation where an unregistered terminal controls the device through the driver management platform, thereby improving the security of device control. Among them, the driver management platform can be a platform for the driver required to be used when managing the terminal to control the device.
[0040] The driving authority may be the authority of whether the terminal can drive the device, for example, the driving authority of the first terminal for the first device. The target terminal may be a terminal that has the authority to control the first device and can control the first device through remote control instructions.
[0041] Exemplarily, after the driver management platform receives the remote control request sent by the first terminal, the registration database can be queried based on the terminal identification information of the first terminal. If the terminal identification information of the first terminal is found in the registration database, it is determined that the first terminal has the authority to control the first device. If the terminal identification information of the first terminal is not found in the registration database, it is determined that the first terminal does not have the authority to control the first device. When the first terminal has the authority to drive the first device, the first terminal can control the first device through the remote control instructions sent; when the first terminal does not have the authority to drive the first device, the first terminal cannot control the first device through the remote control instructions sent.
[0042] By storing the identification information of terminals that have driving authority for the device in the registration database, it is possible to quickly identify the terminal identification information corresponding to the first terminal when a remote driving instruction sent by the first terminal is received, and then determine whether the first terminal has the authority to control the first device. While improving the efficiency of executing control instructions, the first terminal can be quickly identified, further ensuring the safe operation of the device and avoiding safety hazards caused by other terminals without driving authority controlling the first device.
[0043] S120: If the first terminal is a target terminal, determine a target driver of the first device according to the device type information, wherein the target driver is a device driver of a second device of the same device type as that of the first device.
[0044] The target driver may be a device driver of a second device of the same device type as the first device, or a device driver corresponding to the first device itself. For example, if the first terminal is the target terminal, the device driver of the same device type information as the first device may be determined as the target driver based on the device type information of the first device in the remote control request sent by the first terminal. The second device may be a device of the same device type as the first device.
[0045] Exemplarily, if the first terminal is the target terminal, and the first device is an air conditioner of model A, and the second device is an air conditioner of model B. The driver corresponding to the air conditioner can be queried on the driver management platform. If the device driver of model A air conditioner is stored on the driver management platform, the device driver of model A air conditioner can be determined as the target driver. If the device driver of model B air conditioner is stored on the driver management platform, the device driver of model B air conditioner can be determined as the target driver. When the first terminal is the target terminal, the target driver can control the driver of the first device to execute the task in the remote control request according to the remote control instruction sent by the first terminal. By uniformly managing and calling the device drivers through the driver management platform, the convenience of remote control devices can be improved, and the inconvenience caused by repeated switching of control platforms when operating different devices can be avoided.
[0046] S130: Drive the first device to execute a target task corresponding to the remote control request based on the target driver.
[0047] The target task may be a task carried in the remote control request and used to control the first device to perform. For example, if the first device is an air conditioner, the target task may be to turn on the air conditioner, adjust the mode to cooling, adjust the temperature to 26 degrees, and adjust the wind speed to level 2; if the first device is a water heater, the target task may be to turn on the water heater and heat the water to 45 degrees.
[0048] Specifically, after determining the target driver, the target driver can be called to send the target task in the remote control request to the first device. After receiving the target task, the first device executes the target task to complete the remote control request of the first terminal to the first device.
[0049] According to the technical solution of the embodiment of the present invention, a user can send a remote control request to a driver management platform by receiving a first terminal, and can query the terminal identification information corresponding to the first terminal in the registration database to determine the first terminal as a target terminal, which can ensure the safe operation of the device and avoid the potential safety hazards caused by an unauthorized terminal directly sending control instructions to the device. After determining that the first terminal is the target terminal, the device driver of the second device with the same device type as the first device is determined as the target driver according to the device type information carried in the remote control request, so that when the user controls the device through the terminal, there is no need to repeatedly switch the control interface and update the control driver. Finally, the target task carried in the remote control request is executed through the target driver, which can improve the control efficiency of the device while improving the user experience.
[0050] Embodiment 2
[0051] Figure 2FIG. 1 is a flowchart of another device remote driving method provided according to Embodiment 2 of the present invention. Based on the above embodiment, this embodiment further refines the method of determining the target driver of the first device according to the device type information. Figure 2 As shown, the method includes:
[0052] S210: Receive a remote control request sent by a first terminal, wherein the remote control request carries device type information of a first device to be controlled.
[0053] S220: If the first terminal is a target terminal, obtain a first device parameter of the first device, determine a second device of the same device type as the first device according to the device type information, and determine a second device parameter of the second device.
[0054] The first device parameter may be parameter information related to the first device, and the second device parameter may be parameter information related to the first device. The parameter information may include at least one of the brand information, model information, version information, and control parameters of the device.
[0055] Exemplarily, after the driver management platform determines the first terminal as the target terminal, it can query at least one of the brand information, model information, version information, and control parameters of the first device based on the first device to be driven, and then determine at least one of the brand information, model information, version information, and control parameters of a second device of the same device type as the first device that is already on the driver management platform.
[0056] S230: Determine device parameter difference data between the first device parameter and the second device parameter, and if the device parameter difference data satisfies a preset difference condition, determine the device driver of the second device as the target driver of the first device.
[0057] The device parameter difference data may be difference data obtained by comparing the first device parameter with the second device parameter, and the comparison parameters may be pre-set and may include at least one of brand information, model information, version information, and control parameters.
[0058] The preset difference condition may be a standard or threshold used to characterize whether the parameter difference between the first device and the second device is within an acceptable range. The preset difference condition may be a series of standards or thresholds pre-set before performing device parameter difference comparison, and used to determine under what circumstances the difference between the device parameters is determined to meet the condition or not meet the condition.
[0059] Specifically, after determining the device parameter difference data of the first device parameter and the second device parameter, the device parameter difference data can be compared with the preset standard device parameter difference data. If the device parameter difference data and the preset standard device parameter difference data meet the preset difference condition, the device driver of the second device can be determined as the target driver of the first device; if the device parameter difference data and the preset standard device parameter difference data do not meet the preset difference condition, the device driver of the second device cannot be determined as the target driver of the first device. If the device parameter difference data and the preset standard device parameter difference data do not meet the preset difference condition, it is necessary to search for the device driver of the first device from the driver library of the driver management platform, and determine the device driver of the first device as the target driver.
[0060] S240: Drive the first device to execute a target task corresponding to the remote control request based on the target driver.
[0061] The remote drive request also includes a first control parameter for the first device. The first control parameter may be a specific instruction or setting for controlling the first device to follow when executing a target task when an abnormality occurs in the network connection status of the first device.
[0062] Optionally, driving the device to be driven based on the target driver includes: determining the network connection status of the first device, and when the network connection status of the first device is abnormal, determining the target local area network of the first device; driving the first device to perform the target task according to the first control parameter through the target driver and the target local area network.
[0063] Optionally, the driving the device to be driven based on the target driver further includes: determining the network connection status of the first device, and when the network connection status of the first device is abnormal, sending a network reconnection request to the first device through the driver management platform. When the network connection status of the first device returns to normal, the first device is driven based on the target driver to execute the target task corresponding to the remote control request.
[0064] The network connection status may be the network connection status between the first device and the driver management platform. If the network connection status of the first device is normal, the remote terminal can smoothly send control instructions and receive feedback from the device. If the network connection status is abnormal, such as network disconnection, unstable connection or slow speed, the remote terminal may not be able to effectively control the first device, or the transmission of control instructions may be delayed or interrupted. The target local area network may be the local area network where the first terminal is located when the network connection status of the first device is abnormal.
[0065] Exemplarily, after determining the target local area network of the first device, when the network connection status of the first device is abnormal, the network connection of the first device can be restored by reconnecting first. If the network connection of the first device is restored to normal within a set time, the first device is driven to execute the target task corresponding to the remote control request directly based on the target driver. If the network connection of the first device is not restored to normal within the set time, the first device is connected to other terminals in the local area network. For example, when controlling the air conditioner in a smart home, if the network connection of the air conditioner is displayed as abnormal, the first control parameter can be sent to the air conditioner through Bluetooth or a router through other smart homes such as water heaters or refrigerators in the same local area network as the air conditioner, and the air conditioner can execute the target task according to the control parameters forwarded by other smart homes.
[0066] According to the technical solution of the embodiment of the present invention, the user can send a remote control request to the driver management platform by receiving the first terminal, and the terminal identification information corresponding to the first terminal can be queried in the registration database to determine the first terminal as the target terminal, which can ensure the safe operation of the device and avoid the safety hazards caused by the unauthorized terminal directly sending control instructions to the device. After determining that the first terminal is the target terminal, the first device parameter of the first device can be obtained, and the second device of the same device type as the first device can be determined according to the device type information, and the second device parameter of the second device can be determined. The device parameter difference data is determined according to the first device parameter and the second device parameter. When the device parameter difference data meets the preset difference condition, the device driver of the second device is determined as the target driver of the first device, which can ensure the stable operation of the first device and avoid the loss caused by the inability to call the first device due to the large difference in device parameters or the failure of task execution. Finally, the target task carried in the remote control request is executed by the target driver, which can improve the control efficiency of the device while improving the user experience.
[0067] Embodiment 3
[0068] Figure 3 FIG. 1 is a flowchart of another device remote driving method provided according to Embodiment 3 of the present invention. Based on the above embodiments, this embodiment further refines the method of determining the target driver of the first device according to the device type information. Figure 3 As shown, the method includes:
[0069] S310: Receive a remote control request sent by a first terminal, wherein the remote control request carries device type information of a first device to be controlled.
[0070] S320: Determine a target driver for the first device from the commonly used drivers according to the device type information.
[0071] The commonly used driver may be selected from a plurality of device drivers and used to quickly match and control the target driver of the first device. The commonly used driver has high stability and compatibility, and can ensure stable control of the first device by the first terminal.
[0072] Optionally, the commonly used drivers among the device drivers may be determined according to the number of times the target devices driven by the multiple device drivers are remotely driven, the duration of each remote driving of the target devices, and the number of tasks executed each time the target devices are remotely driven.
[0073] The target device may be a remotely controlled device, the number of remotely driven times may be the number of times the target device is remotely controlled, and the number of remotely driven times may be used to characterize the frequency with which the target device is remotely controlled. The duration of each remotely driven time may be the length of time from the start to the end of the remote control operation, and the number of executed tasks may be the number of specific tasks executed by the device during the remote control process.
[0074] Optionally, determining the commonly used drivers among the device drivers based on the number of times the target devices driven by multiple device drivers are remotely driven, the duration of each time the target devices are remotely driven, and the number of tasks executed each time the target devices are remotely driven includes: determining a driver call value corresponding to the device driver based on the number of times the target devices driven by multiple device drivers are remotely driven, the duration of each time the target devices are remotely driven, and the number of tasks executed each time the target devices are remotely driven; determining the device driver as a commonly used driver if the driver call value of the device driver reaches a preset call threshold; and not determining the device driver as a commonly used driver if the driver call value of the device driver does not reach the preset call threshold.
[0075] The driver call value may be a value used to comprehensively evaluate the importance of the device driver in the remote control scenario, and the preset call threshold may be a pre-set value used to determine whether the device driver reaches the limit of the common driver standard. The preset call threshold may be set by the technician according to the needs, and the embodiment of the present invention does not specifically limit the value of the preset call threshold.
[0076] Optionally, the driver call value corresponding to the device driver may be determined according to the following formula according to the number of times the target devices driven by the multiple device drivers are remotely driven, the duration of each time the target device is remotely driven, and the number of tasks executed each time the target device is remotely driven:
[0077]
[0078] Where D is the driver call value corresponding to the device driver, N is the number of times the device driver is remotely driven, T n is the duration of the device driver when it is remotely driven for the nth time, M n is the number of tasks executed by the device driver when it is driven for the nth time, where n is a positive integer.
[0079] S330: Drive the first device to execute a target task corresponding to the remote control request based on the target driver.
[0080] According to the technical solution of the embodiment of the present invention, a user can send a remote control request to the driver management platform by receiving a first terminal, and can query the terminal identification information corresponding to the first terminal in the registration database to determine the first terminal as the target terminal, which can ensure the safe operation of the device and avoid the potential safety hazards caused by unauthorized terminals directly sending control instructions to the device. After determining that the first terminal is the target terminal, the target driver of the first device can be directly determined from the commonly used drivers according to the device type information, and the target task carried in the remote control request can be executed through the target driver, ensuring that the first device successfully executes the target task in the remote control request issued by the first terminal, further improving the control efficiency of the first device.
[0081] Embodiment 4
[0082] Figure 4 This is a schematic diagram of the structure of a remote driving device for a device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a remote control request receiving module 410 , a target drive determining module 420 and a task executing module 430 .
[0083] A remote control request receiving module 410 is used to receive a remote control request sent by a first terminal, wherein the remote control request carries device type information of a first device to be controlled; a target driver determination module 420 is used to determine a target driver for the first device according to the device type information if the first terminal is a target terminal, wherein the target driver is a device driver for a second device of the same device type as the first device; and a task execution module 430 is used to drive the first device to execute a target task corresponding to the remote control request based on the target driver.
[0084] Furthermore, the target driver determination module 420 is specifically used to: obtain the first device parameters of the first device, determine the second device of the same device type as the first device according to the device type information, and determine the second device parameters of the second device; determine the device parameter difference data between the first device parameters and the second device parameters, and when the device parameter difference data meets a preset difference condition, determine the device driver of the second device as the target driver of the first device.
[0085] Furthermore, the device remote driving apparatus also includes: a commonly used driver determination module, which is used to determine the commonly used drivers in the device drivers according to the number of times the target devices driven by the multiple device drivers are remotely driven, the duration of each time the target device is remotely driven, and the number of tasks performed each time the target device is remotely driven.
[0086] Furthermore, the commonly used driver determination module includes a driver call value calculation unit and a commonly used driver determination unit. The driver call value calculation unit is used to determine the driver call value corresponding to the device driver according to the number of times the target device driven by multiple device drivers is remotely driven, the duration of each time the target device is remotely driven, and the number of tasks performed each time the target device is remotely driven; the commonly used driver determination unit is used to: when the driver call value of the device driver reaches a preset call threshold, determine the device driver as a commonly used driver.
[0087] Furthermore, the target driver determination module 420 is specifically configured to determine a target driver of the first device from the common drivers according to the device type information.
[0088] Furthermore, the remote control request also carries the terminal identification information of the first terminal. The device remote driving apparatus also includes a target terminal determination module, which is used to query a registration database according to the terminal identification information of the first terminal carried in the remote driving request after receiving the remote driving request sent by the first terminal, wherein the registration database is at least used to store the identification information of the terminal that has the driving authority for the first device; if the terminal identification information of the first terminal is queried in the registration database, the first terminal is determined as the target terminal.
[0089] The driver call value calculation unit is specifically used to determine the driver call value corresponding to the device driver by the following formula:
[0090]
[0091] Where D is the driver call value corresponding to the device driver, N is the number of times the device driver is remotely driven, T nis the duration of the device driver when it is remotely driven for the nth time, M n is the number of tasks executed by the device driver when it is driven for the nth time, where n is a positive integer.
[0092] Furthermore, the task execution module 430 is specifically used to: determine the network connection status of the first device, and when the network connection status of the first device is abnormal, determine the target local area network of the first device; and drive the first device to execute the target task according to the first control parameters through the target driver and the target local area network.
[0093] The device remote driving apparatus provided in the embodiment of the present invention can execute the device remote driving method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0094] Embodiment 5
[0095] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0096] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0097] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0098] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a device remote driving method.
[0099] In some embodiments, the device remote driving method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the device remote driving method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the device remote driving method in any other appropriate manner (for example, by means of firmware).
[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0102] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0104] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0105] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0106] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0107] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A device remote driving method, characterized in that: include: Receiving a remote control request sent by the first terminal, wherein the remote control request carries device type information of the first device to be controlled; If the first terminal is a target terminal, determining a target driver of the first device according to the device type information, wherein the target driver is a device driver of a second device of the same device type as the first device; The first device is driven to execute a target task corresponding to the remote control request based on the target driver.
2. The method according to claim 1, characterized in that in, The remote control request also carries the terminal identification information of the first terminal; after receiving the remote drive request sent by the first terminal, the method further includes: querying a registration database according to the terminal identification information of the first terminal carried in the remote drive request, wherein the registration database is at least used to store the terminal identification information that has the drive permission for the first device; If the terminal identification information of the first terminal is found in the registration database, the first terminal is determined as a target terminal.
3. The method according to claim 1, characterized in that The determining a target driver of the first device according to the device type information includes: Acquire a first device parameter of the first device, determine a second device of the same device type as the first device according to the device type information, and determine a second device parameter of the second device; Device parameter difference data between the first device parameter and the second device parameter is determined, and when the device parameter difference data satisfies a preset difference condition, a device driver of the second device is determined as a target driver of the first device.
4. The method according to claim 1, characterized in that Also includes: Determining a commonly used driver among the device drivers according to the number of times the target devices driven by the multiple device drivers are remotely driven, the duration of each time the target device is remotely driven, and the number of tasks executed each time the target device is remotely driven; The determining a target driver of the first device according to the device type information includes: A target driver for the first device is determined from the common drivers according to the device type information.
5. The method according to claim 4, characterized in that The determining, according to the number of times the target devices driven by the plurality of device drivers are remotely driven, the duration of each time the target devices are remotely driven, and the number of tasks executed each time the target devices are remotely driven, the commonly used drivers among the device drivers comprises: Determining a driver call value corresponding to the device driver according to the number of times the target devices driven by the multiple device drivers are remotely driven, the duration of each time the target device is remotely driven, and the number of tasks executed each time the target device is remotely driven; When the driver call value of the device driver reaches a preset call threshold, the device driver is determined as a common driver.
6. The method according to claim 5, characterized in that The driver call value corresponding to the device driver is determined by the following formula according to the number of times the target devices driven by the multiple device drivers are remotely driven, the duration of each time the target device is remotely driven, and the number of tasks executed each time the target device is remotely driven: Where D is the driver call value corresponding to the device driver, N is the number of times the device driver is remotely driven, T n is the duration of the device driver when it is remotely driven for the nth time, M n is the number of tasks executed by the device driver when it is driven for the nth time, where n is a positive integer.
7. The method according to claim 1, characterized in that in, The remote drive request further includes a first control parameter for the first device, and the driving the device to be driven based on the target drive includes: determining a network connection state of the first device, and if the network connection state of the first device is abnormal, determining a target local area network of the first device; The first device is driven to perform a target task according to the first control parameter through the target drive and the target local area network.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device remote driving method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the device remote driving method described in any one of claims 1-7 when executed.
10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the device remote driving method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Terminal device driving component configuration method and device
CN106713045A
Program running method and device and storage medium
CN111309445A
Equipment control method, target terminal, cloud, virtual desktop server and medium
CN113448672A
System and method for providing remote device driver
US20130007317A1