CN115134391A - Equipment control method and device of non-Internet-of-things equipment - Google Patents
Equipment control method and device of non-Internet-of-things equipment Download PDFInfo
- Publication number
- CN115134391A CN115134391A CN202210602091.0A CN202210602091A CN115134391A CN 115134391 A CN115134391 A CN 115134391A CN 202210602091 A CN202210602091 A CN 202210602091A CN 115134391 A CN115134391 A CN 115134391A
- Authority
- CN
- China
- Prior art keywords
- target
- control instruction
- equipment
- control
- internet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000004891 communication Methods 0.000 claims description 28
- 238000013507 mapping Methods 0.000 claims description 15
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 238000013475 authorization Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004297 night vision Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/30—Control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Selective Calling Equipment (AREA)
Abstract
The application provides a device control method and a device of non-Internet-of-things equipment, wherein the method comprises the following steps: receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device. The device control method and device of the non-Internet-of-things device are used for enabling the non-Internet-of-things device to be connected into the Internet of things in a bridging mode, and further achieving remote control of the non-Internet-of-things device.
Description
Technical Field
The application relates to the field of control of non-internet-of-things equipment, in particular to an equipment control method and device of non-internet-of-things equipment.
Background
With the development of the Internet of Things (IOT), users can implement Internet of everything interconnection through the network. Meanwhile, as a new family life style, smart homes attract a plurality of equipment manufacturers to develop equipment capable of being remotely controlled. The intelligent household equipment can be accessed to the Internet of things platform through wireless transmission protocols such as wireless network WIFI, Bluetooth, Zigbee protocol and the like, and a home gateway, a smart phone and a tablet computer are used as information exchange nodes.
However, for a non-internet-of-things device with low cost, that is, a Universal Serial Bus (USB) device, the internet-of-things platform cannot be accessed through the above wireless transmission protocol. Therefore, in order to enable the USB device to access the internet of things platform and achieve interconnection between devices, a remote control method for the USB device is urgently needed.
Disclosure of Invention
The application aims to provide a device control method and device of non-Internet-of-things equipment, which are used for accessing the non-Internet-of-things equipment into the Internet of things in a bridging mode so as to further realize remote control of the non-Internet-of-things equipment.
The application provides an equipment control method of non-Internet-of-things equipment, which comprises the following steps:
receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
Optionally, before obtaining a target model corresponding to the target device and generating a second control instruction according to the first control instruction and the target model, the method further includes: receiving device parameters uploaded by the target device under the condition of establishing communication connection with the target device; and generating the target model according to the equipment parameters.
Optionally, before receiving the first control instruction sent by the target platform, the method further includes:
displaying a selection list containing at least one Internet of things platform; responding to the selection operation of a user on the target platform, and establishing communication connection with the target platform; the target platform is any one of the at least one Internet of things platform.
Optionally, the establishing a communication connection with the target platform includes: obtaining the authorization of the target platform through a target account registered on the target platform by a user, and establishing a mapping relation between the target equipment and the target platform; wherein the mapping relationship is established based on the target model and the target account; the mapping relation is used for realizing the control of the target platform on the target equipment.
Optionally, the generating a second control instruction according to the first control instruction and the target model includes: and carrying out protocol conversion on the first control instruction, converting the first control instruction into a simple network management protocol, and generating the second control instruction according to the target model and the first control instruction after the protocol conversion.
Optionally, the controlling the target device according to the control mode corresponding to the second control instruction includes: sending the second control instruction to the target equipment through target communication connection established between the target equipment and the target equipment, and controlling the target equipment to execute corresponding operation according to the instruction of the second control instruction; wherein the target communication connection is a universal serial bus connection.
The application also provides a device control apparatus of a non-internet-of-things device, including:
the receiving module is used for receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; the instruction generation module is used for acquiring a target model corresponding to the target equipment and generating a second control instruction according to the first control instruction and the target model; the control module is used for controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
Optionally, the apparatus further comprises: a model generation module; the receiving module is further configured to receive the device parameters uploaded by the target device under the condition that the communication connection with the target device is established; and the model generation module is used for generating the target model according to the equipment parameters.
Optionally, the apparatus further comprises: a display module and a connection module; the display module is used for displaying a selection list containing at least one Internet of things platform; the connection module is used for responding to the selection operation of a user on the target platform and establishing communication connection with the target platform; the target platform is any one of the at least one Internet of things platform.
Optionally, the connection module is specifically configured to obtain authorization of the target platform through a target account registered by a user on the target platform, and establish a mapping relationship between the target device and the target platform; wherein the mapping relationship is established based on the target model and the target account; the mapping relation is used for realizing the control of the target platform on the target equipment.
Optionally, the instruction generating module is specifically configured to perform protocol conversion on the first control instruction, convert the first control instruction into a simple network management protocol, and generate the second control instruction according to the target model and the first control instruction after the protocol conversion.
Optionally, the control module is specifically configured to send the second control instruction to the target device through a target communication connection established with the target device, and control the target device to execute a corresponding operation according to an instruction of the second control instruction; wherein the target communication connection is a universal serial bus connection.
The present application also provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the device control method for a non-internet-of-things device as described in any of the above.
The application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, the steps of the device control method of the non-internet-of-things device are realized.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the device control method for a non-internet-of-things device as described in any one of the above.
The device control method and device of the non-Internet-of-things device receive a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device. Therefore, the non-Internet of things equipment is connected into the Internet of things in a bridging mode, and then remote control of the non-Internet of things equipment is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or prior art, the drawings required for the embodiments or the prior art descriptions will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a device control method of a non-internet-of-things device provided in the present application;
fig. 2 is a second flowchart of a device control method of a non-internet-of-things device provided in the present application;
fig. 3 is a schematic structural diagram of a device control apparatus of a non-internet-of-things device provided in the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The USB standard is an external bus standard for standardizing the connection and communication between a computer and external devices. The USB interface supports plug and play and hot plug functions. The USB interface can be connected with 127 kinds of peripheral equipment, such as a mouse, a keyboard and the like. USB was introduced by a consortium of companies such as intel, in the end of 1994. After 1996, the USB interface has successfully replaced serial and parallel ports, and becomes a necessary interface for computers and a large number of intelligent devices. The USB version has evolved over the years to the 3.0 version today. Through the USB interface, external devices such as a printer, an external modem, a scanner, a flash disk, an MP3 player, a digital camera, a digital video camera, a mobile hard disk, a mobile phone, a tablet, an internet banking shield and the like can be connected to the computer.
Because the cost of the USB interface is low, the USB interface is generally used for low-cost devices to collect device information and control the devices. However, the USB devices are various in types and different in control modes, and are difficult to directly access to the Internet of things platform to realize remote control of the devices.
Aiming at the technical problems in the related art, the embodiment of the application provides an equipment control method of non-internet-of-things equipment, which is used for accessing USB equipment into the internet of things in a bridging mode so as to realize remote control of the USB equipment.
The device control method of the non-internet-of-things device provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, a device control method for a non-internet-of-things device according to an embodiment of the present application may include the following steps 101 to 103:
The first control instruction is used for controlling target equipment, and the target equipment is equipment provided with a universal serial bus interface.
For example, the target platform is an internet of things platform, and the first control instruction sent by the target platform may be a control instruction sent by the target platform when a user uses an Application (APP) of the target platform to control the target device on the mobile device.
It should be noted that the device control method for the non-internet-of-things device provided by the embodiment of the application can be applied to an electronic device. The electronic equipment can be equipment such as a home intelligent network manager, a smart phone and a tablet computer. The target device is a non-internet-of-things device and is a device provided with a Universal Serial Bus (USB) interface. The target device can be connected with the electronic device through a USB interface on the target device, and exchange data is carried out.
And 102, acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model.
Wherein the target model is a model generated according to device parameters of the target device.
For example, after receiving the first control instruction, in order to implement control on the target device, it is further required to obtain a target model corresponding to the target device, determine a control method and control parameters of the target device according to the target model, and further implement remote control on the target device.
For example, the target model corresponding to the target device is generated according to device parameters of the target device, and the device parameters may include functions of the target device, and information such as a control mode and a control parameter corresponding to the functions. For example, taking the target device as a camera as an example, the device parameters of the camera may include: the rotation angle of the camera, whether the camera has a night vision function, a starting method of a night market function (parameters required to be set), an Application Programming Interface (API) for controlling the rotation of the camera, and the like.
For example, after the device parameters of the target device are obtained, a target model corresponding to the target device may be generated according to the device parameters of the target device. And the control of the target equipment is realized through a target model corresponding to the target equipment.
It can be understood that, because the first control instruction sent by the target platform cannot directly act on the target device, the first control instruction sent by the target platform needs to be converted into a second control instruction that can be executed by the target device according to a target model corresponding to the target device.
Specifically, the step 102 may include the following steps 102 a:
and 102a, performing protocol conversion on the first control instruction, converting the first control instruction into a simple network management protocol, and generating the second control instruction according to the target model and the first control instruction after the protocol conversion.
Illustratively, the target device supports a Simple Network Management Protocol (SNMP), and after receiving a first control instruction sent by the target platform, the electronic device needs to perform Protocol conversion on the first control instruction, and converts the first control instruction into a second control instruction according to a target model corresponding to the target device.
It should be noted that, in order to improve the compatibility of the electronic device with the USB device, when any USB device accesses the electronic device, the device parameter needs to be reported, and the electronic device generates a corresponding device model according to the device parameter reported by the USB device.
And 103, controlling the target equipment according to a control mode corresponding to the second control instruction.
For example, after a first control instruction sent by the target platform is converted into a second control instruction, the target device may be controlled by the second control instruction.
Specifically, the step 103 may include the following steps 103 a:
step 103a, sending the second control instruction to the target device through the target communication connection established between the target device and the target device, and controlling the target device to execute corresponding operation according to the instruction of the second control instruction.
Wherein the target communication connection is a universal serial bus connection, i.e. a USB connection.
For example, as shown in fig. 2, which is a schematic control flow diagram of the device control method provided in the embodiment of the present application, after a user performs a control operation on a target device on an application program provided by an internet of things platform (that is, the target platform), the application program sends control information to the internet of things platform through the internet. The internet of things platform generates a control instruction 1 (i.e. the first control instruction) based on the control information, and sends the control instruction 1 to the device 1 (i.e. the electronic device) through the internet. The device 1 is provided with a monitoring program, and the monitoring program performs protocol conversion on the control instruction 1 after receiving the control instruction, and generates a control instruction 2 (i.e., the second control instruction) according to a target model corresponding to the device 2 (i.e., the target device). Then, the device 1 sends the control instruction 2 to the device 2 through the USB data line, the device 2 executes the control instruction 2, and sends the control result to the internet of things platform through the device 1, and the internet of things platform displays the control result to the user through the application program.
It should be noted that, a user may control a target device on any device through an application program provided by the third-party internet of things platform.
Optionally, in this embodiment of the application, after the USB device is connected to the electronic device, the device parameter needs to be reported in time, so that the electronic device can generate the corresponding device model according to the device parameter of the USB device.
For example, before the step 102, the method for controlling a device of a non-internet-of-things device provided in the embodiment of the present application may further include the following steps 104 and 105:
and 104, receiving the equipment parameters uploaded by the target equipment under the condition of establishing communication connection with the target equipment.
And 105, generating the target model according to the equipment parameters.
For example, after any USB device accesses the electronic device through the USB interface, the device parameter of the USB device needs to be reported. Meanwhile, after receiving the device parameters reported by the USB device, the electronic device needs to generate a corresponding device model according to the device parameters of the USB device.
For example, as shown in fig. 2, the device 2 (i.e., the target device) is provided with an electronic control board, a USB device interface, a USB driver, and an SNMP protocol. The electric control board is used for controlling the equipment, and the USB interface is used for being connected with the equipment 1 through a USB data line. The SNMP protocol is used for realizing the control of the equipment, the configuration of the equipment parameters and the report of the equipment parameters and the running state of the equipment.
After receiving the device parameters reported by the device 1, the device 2 generates a corresponding device model from the device parameters of the device 1. And the device information module on the device 2 is used for storing the device model of each access device.
Optionally, in this embodiment of the application, the user may select an internet of things platform to which the target device is accessed from among the multiple internet of things platforms.
For example, before the step 101, the device control method for a non-internet-of-things device provided in the embodiment of the present application may further include the following steps 106 and 107:
and 106, displaying a selection list containing at least one Internet of things platform.
And 107, responding to the selection operation of the target platform by the user, and establishing communication connection with the target platform.
The target platform is any one of the at least one Internet of things platform.
For example, after the target device is accessed, the electronic device may present a platform selection interface including at least one internet of things platform to the user, and after the user selects a target platform to which the target device needs to be accessed, the electronic device accesses the target device to the target platform through a Software Development Kit (SDK) of the target platform.
For example, in order to manage the target device on the target platform, the account is logged on the target platform, and the target device is bound to the account.
Illustratively, the step 107 may include the following steps 107 a:
step 107a, obtaining authorization of the target platform through a target account registered on the target platform by a user, and establishing a mapping relation between the target device and the target platform.
Wherein the mapping relationship is established based on the target model and the target account; the mapping relation is used for realizing the control of the target platform on the target equipment.
For example, as shown in fig. 2, the device 2 is further provided with a device management module, configured to manage the accessed USB device according to the device identifier of the device. The access guiding module is used for accessing the device 1 to the internet of things platform according to the SDK provided by the internet of things platform selected by the user. The account authorization module is configured to log in the internet of things platform through a user account (i.e., the target account), and acquire authorization of the internet of things platform, so that the message notification module can receive the control instruction sent by the internet of things platform.
After the user logs into the user account on any device, the device parameters of the device 2 can be viewed on the application program, and the device 2 can be controlled.
The device control method of the non-internet-of-things device, provided by the embodiment of the application, receives a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device. Therefore, the non-Internet of things equipment is connected into the Internet of things in a bridging mode, and then remote control of the non-Internet of things equipment is achieved.
It should be noted that, in the device control method of a non-internet-of-things device provided in the embodiment of the present application, the execution subject may be a device control apparatus of the non-internet-of-things device, or a control module in the device control apparatus of the non-internet-of-things device, which is used for executing the device control method of the non-internet-of-things device. In the embodiment of the present application, an example in which an apparatus control device of a non-internet-of-things device executes an apparatus control method of a non-internet-of-things device is taken as an example, to describe the apparatus control device of a non-internet-of-things device provided in the embodiment of the present application.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The device control method of the non-internet-of-things device is exemplarily described by referring to one drawing in the embodiment of the application as an example. In specific implementation, the device control method of the non-internet-of-things device shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not repeated here.
The device control apparatus of the non-internet-of-things device provided in the present application is described below, and the device control methods of the non-internet-of-things device described below and described above may be referred to in correspondence with each other.
Fig. 3 is a schematic structural diagram of an apparatus control device of a non-internet-of-things device according to an embodiment of the present application, and as shown in fig. 3, the apparatus control device specifically includes:
a receiving module 301, configured to receive a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; an instruction generating module 302, configured to obtain a target model corresponding to the target device, and generate a second control instruction according to the first control instruction and the target model; the control module 303 is configured to control the target device according to a control manner corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
Optionally, the apparatus further comprises: a model generation module; the receiving module 301 is further configured to receive a device parameter uploaded by the target device when a communication connection is established with the target device; and the model generation module is used for generating the target model according to the equipment parameters.
Optionally, the apparatus further comprises: the display module and the connecting module; the display module is used for displaying a selection list containing at least one Internet of things platform; the connection module is used for responding to the selection operation of a user on the target platform and establishing communication connection with the target platform; the target platform is any one of the at least one Internet of things platform.
Optionally, the connection module is specifically configured to obtain authorization of the target platform through a target account registered by a user on the target platform, and establish a mapping relationship between the target device and the target platform; wherein the mapping relationship is established based on the target model and the target account; the mapping relation is used for realizing the control of the target platform on the target equipment.
Optionally, the instruction generating module 302 is specifically configured to perform protocol conversion on the first control instruction, convert the first control instruction into a simple network management protocol, and generate the second control instruction according to the target model and the first control instruction after the protocol conversion.
Optionally, the control module 303 is specifically configured to send the second control instruction to the target device through a target communication connection established with the target device, and control the target device to execute a corresponding operation according to an instruction of the second control instruction; wherein the target communication connection is a universal serial bus connection.
The device control device of the non-Internet-of-things device receives a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device. Therefore, the non-Internet of things equipment is connected into the Internet of things in a bridging mode, and then remote control of the non-Internet of things equipment is achieved.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform a method of device control for a non-internet-of-things device, the method comprising: receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product, including a computer program stored on a computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the method for controlling a device of a non-internet-of-things device provided by the above methods, the method including: receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
In yet another aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is implemented by a processor to execute the device control method of the non-internet-of-things device provided in the foregoing aspects, the method including: receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment; acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model; controlling the target equipment according to the control mode corresponding to the second control instruction; the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (10)
1. An equipment control method of non-Internet-of-things equipment is characterized by comprising the following steps:
receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment;
acquiring a target model corresponding to the target equipment, and generating a second control instruction according to the first control instruction and the target model;
controlling the target equipment according to the control mode corresponding to the second control instruction;
the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
2. The method according to claim 1, wherein before the obtaining of the target model corresponding to the target device and the generating of the second control instruction according to the first control instruction and the target model, the method further comprises:
receiving device parameters uploaded by the target device under the condition of establishing communication connection with the target device;
and generating the target model according to the equipment parameters.
3. The method of claim 1, wherein before receiving the first control instruction sent by the target platform, the method further comprises:
displaying a selection list containing at least one Internet of things platform;
responding to the selection operation of a user on the target platform, and establishing communication connection with the target platform;
the target platform is any one of the at least one Internet of things platform.
4. The method of claim 3, wherein establishing the communication connection with the target platform comprises:
obtaining the authorization of the target platform through a target account registered on the target platform by a user, and establishing a mapping relation between the target equipment and the target platform;
wherein the mapping relationship is established based on the target model and the target account; the mapping relation is used for realizing the control of the target platform on the target equipment.
5. The method of claim 1, wherein generating a second control command from the first control command and the target model comprises:
and carrying out protocol conversion on the first control instruction, converting the first control instruction into a simple network management protocol, and generating the second control instruction according to the target model and the first control instruction after the protocol conversion.
6. The method according to claim 1 or 5, wherein the controlling the target device according to the control mode corresponding to the second control instruction comprises:
sending the second control instruction to the target equipment through target communication connection established between the target equipment and the target equipment, and controlling the target equipment to execute corresponding operation according to the instruction of the second control instruction;
wherein the target communication connection is a universal serial bus connection.
7. An apparatus control device for a non-internet-of-things device, the apparatus comprising:
the receiving module is used for receiving a first control instruction sent by a target platform; the first control instruction is used for controlling target equipment;
the instruction generation module is used for acquiring a target model corresponding to the target equipment and generating a second control instruction according to the first control instruction and the target model;
the control module is used for controlling the target equipment according to the control mode corresponding to the second control instruction;
the target equipment is equipment provided with a universal serial bus interface; the target model is a model generated according to the device parameters of the target device.
8. The apparatus of claim 7, further comprising: a model generation module;
the receiving module is further configured to receive the device parameters uploaded by the target device under the condition that the communication connection with the target device is established;
and the model generation module is used for generating the target model according to the equipment parameters.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the device control method of the non-internet-of-things device as claimed in any one of claims 1 to 6 when executing the program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the device control method of a non-internet-of-things device according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210602091.0A CN115134391A (en) | 2022-05-30 | 2022-05-30 | Equipment control method and device of non-Internet-of-things equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210602091.0A CN115134391A (en) | 2022-05-30 | 2022-05-30 | Equipment control method and device of non-Internet-of-things equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115134391A true CN115134391A (en) | 2022-09-30 |
Family
ID=83377195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210602091.0A Pending CN115134391A (en) | 2022-05-30 | 2022-05-30 | Equipment control method and device of non-Internet-of-things equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115134391A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103108294A (en) * | 2011-11-10 | 2013-05-15 | 中国电信股份有限公司 | Data forwarding processing method and gateway equipment and communication system |
US20160300483A1 (en) * | 2013-12-12 | 2016-10-13 | Zte Corporation | Device Control Method, Server, System and Computer Storage Medium |
US20170346654A1 (en) * | 2015-07-15 | 2017-11-30 | Tencent Technology (Shenzhen) Company Limited | Method, intelligent device, and system for controlling terminal device |
US20180332370A1 (en) * | 2015-11-18 | 2018-11-15 | Chengdu Qinchuan Iot Technology Co., Ltd. | Internet of things system used for intelligent gas meter and information transmission method for internet of things system |
CN111432000A (en) * | 2020-03-24 | 2020-07-17 | 中国建设银行股份有限公司 | Control method, device, equipment and storage medium of Internet of things equipment |
CN112882969A (en) * | 2021-03-16 | 2021-06-01 | 上海电气集团股份有限公司 | Data connection interface and data transmission device, system and method |
CN113114753A (en) * | 2021-04-07 | 2021-07-13 | 北京金山云网络技术有限公司 | Equipment control method, device and system, storage medium and electronic device |
CN114019821A (en) * | 2021-12-16 | 2022-02-08 | 珠海格力电器股份有限公司 | Smart home control method, device and system |
CN114374602A (en) * | 2021-12-30 | 2022-04-19 | 河南紫联物联网技术有限公司 | Master control equipment configuration method and device, cloud server and storage medium |
-
2022
- 2022-05-30 CN CN202210602091.0A patent/CN115134391A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103108294A (en) * | 2011-11-10 | 2013-05-15 | 中国电信股份有限公司 | Data forwarding processing method and gateway equipment and communication system |
US20160300483A1 (en) * | 2013-12-12 | 2016-10-13 | Zte Corporation | Device Control Method, Server, System and Computer Storage Medium |
US20170346654A1 (en) * | 2015-07-15 | 2017-11-30 | Tencent Technology (Shenzhen) Company Limited | Method, intelligent device, and system for controlling terminal device |
US20180332370A1 (en) * | 2015-11-18 | 2018-11-15 | Chengdu Qinchuan Iot Technology Co., Ltd. | Internet of things system used for intelligent gas meter and information transmission method for internet of things system |
CN111432000A (en) * | 2020-03-24 | 2020-07-17 | 中国建设银行股份有限公司 | Control method, device, equipment and storage medium of Internet of things equipment |
CN112882969A (en) * | 2021-03-16 | 2021-06-01 | 上海电气集团股份有限公司 | Data connection interface and data transmission device, system and method |
CN113114753A (en) * | 2021-04-07 | 2021-07-13 | 北京金山云网络技术有限公司 | Equipment control method, device and system, storage medium and electronic device |
CN114019821A (en) * | 2021-12-16 | 2022-02-08 | 珠海格力电器股份有限公司 | Smart home control method, device and system |
CN114374602A (en) * | 2021-12-30 | 2022-04-19 | 河南紫联物联网技术有限公司 | Master control equipment configuration method and device, cloud server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105471686B (en) | Terminal control method, device and system | |
CN102891890B (en) | Exchange method between a kind of terminal and relevant device, system | |
KR20050032313A (en) | Home network system | |
CN104486747A (en) | Method and device for cross-terminal account login | |
CN111556158B (en) | Access method, access device, access equipment and storage medium of Internet of things platform | |
US10908889B2 (en) | Method, user equipment, and application server for downloading application | |
CN102597974B (en) | Control devices, client device, apparatus control method and apparatus control system | |
JP6347813B2 (en) | Network switch, device management system, and device management method thereof | |
US20140195582A1 (en) | System and method for providing an inter-application communication framework | |
CN103152392A (en) | Providing method, acquisition method, equipment and system of installation package | |
CN103856374A (en) | Data transmission method, terminal and home interconnected system | |
CN112346751B (en) | Application program installation method and device, electronic equipment and storage medium | |
US8005915B2 (en) | Method for providing download and upload service in network control system | |
CN112566113A (en) | Key generation and terminal network distribution method, device and equipment | |
WO2016119623A1 (en) | Method and device for realizing network sharing | |
EP2670107B1 (en) | Communication method for wireless terminal and host device, and wireless terminal and host device | |
CN112817248B (en) | Shared equipment management method and device, storage medium and electronic device | |
CN102918512A (en) | Information appliance data connection system, authentication device, client appliance, information appliance data connection method and storage medium | |
CN113965904A (en) | Device registration method, device and storage medium | |
CN113709239A (en) | Intelligent household equipment communication method, equipment and medium | |
CN110418092B (en) | Video recording management system, method, control management node and recording node | |
CN112333062A (en) | Control method and control device for household equipment and computer readable storage medium | |
CN115134391A (en) | Equipment control method and device of non-Internet-of-things equipment | |
CN106648805A (en) | Intelligent device, intelligent system, and method for intelligently installing application | |
CN114827967B (en) | Software updating method, bluetooth device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |