Internet of Things equipment control method, Internet of Things system, electronic equipment and readable storage medium
By realizing communication connection between the first device and the second device in the Internet of Things system and forwarding control commands, the problem of poor interoperability between intelligent connected vehicles and smart homes is solved, and the control convenience and universality of Internet of Things devices are improved. sex.
Patent Information
- Application Number
- CN202310960678.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2025-02-14
AI Technical Summary
The interaction between control terminals such as smart connected cars and Internet of Things devices such as smart homes is poor, resulting in complex and inconvenient control.
By introducing a control method in the Internet of Things system, the first device establishes a communication connection with the second device, the second device sends control instructions to the first device, the first device parses and sends corresponding to the Internet of Things terminal through the target application. Control command.
It improves the control convenience of the second device to the Internet of Things device and enhances the control universality between the terminal device and the Internet of Things device.
Smart Images

Figure CN119449861A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of Internet of Things, and in particular to an Internet of Things device control method, an Internet of Things system, an electronic device and a readable storage medium. Background Art
[0002] In existing IoT systems, for example, IoT systems for controlling IoT devices such as smart homes, it is usually necessary to install an application for controlling the smart home on a terminal device such as a mobile phone, and then control the corresponding IoT devices through the application on the mobile phone.
[0003] With the development of IoT technology, users have more extensive control demands for IoT devices, that is, they are not limited to controlling IoT devices through terminal devices such as mobile phones, but hope to access and manage smart homes in a wider range of scenarios, such as through smart connected cars. However, IoT devices provided by different manufacturers usually need to be controlled through different applications, and there is no uniformity between vehicle service providers and IoT device providers. Therefore, the universality of the interaction between control terminals such as smart connected cars and IoT devices such as smart homes is poor. Summary of the invention
[0004] Embodiments of the present invention provide an Internet of Things device control method, an Internet of Things system, an electronic device and a readable storage medium to solve the problem of poor universality in the interaction between control terminals such as smart connected cars and Internet of Things devices such as smart homes.
[0005] To solve the above problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides an Internet of Things device control method, which is applied to an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the method includes:
[0007] The first device and the second device establish a communication connection;
[0008] The second device sends a control instruction to the first device;
[0009] The first device parses the control instruction and sends a control command corresponding to the control instruction to the Internet of Things terminal through the target application.
[0010] In some embodiments, after the first device and the second device establish a communication connection, the method further includes:
[0011] The second device obtains information about the target application and information about the Internet of Things terminal corresponding to the target application.
[0012] In some embodiments, the second device obtains information about the target application and information about the IoT terminal corresponding to the target application, including:
[0013] A capability detection device detects whether the first device and the second device have control capabilities of an Internet of Things terminal, wherein the capability detection device is one of the first device and the second device;
[0014] In a case where at least one of the first device and the second device has a control capability of controlling an IoT terminal, the first device sends a trigger control message to the target application;
[0015] The target application registers with the second device through the first device according to the trigger control message.
[0016] In some embodiments, the capability detection device detects whether the first device and the second device have the control capability of the Internet of Things terminal, including:
[0017] The capability detection device sends a protocol broadcast based on a preset protocol;
[0018] The detected device feeds back service information in response to the protocol broadcast, wherein the detected device is a device other than the capability detection device in the first device and the second device;
[0019] The capability monitoring device confirms the control capability of the Internet of Things terminal of the detected device based on the service information.
[0020] In some embodiments, the capability detection device detects whether the first device and the second device have the control capability of the Internet of Things terminal, including:
[0021] The first device obtains information of a target application with a smart home control function, wherein the information of the target application includes a package name and an application registration number of the target application, the package name is collected by the first device, the application registration number is allocated by the first device to the target application, or the application registration number is generated when the target application is registered with the first device;
[0022] The first device sends information of the target application to the second device;
[0023] The detection device determines whether the first device and the second device have the control capability of the Internet of Things terminal according to the information of the target application.
[0024] In some embodiments, the second device sending a control instruction to the first device includes:
[0025] The second device sends a control instruction to a target application installed in the first device and registered in the second device.
[0026] In some embodiments, after the first device sends a control command corresponding to the control instruction to the IoT terminal through the target application, the method further includes:
[0027] The first device feeds back an execution result to the second device, wherein the execution result is fed back by the IoT terminal to a target application installed in the first device after executing the control command.
[0028] In some embodiments, after the target application registers with the second device through the first device according to the trigger control message, the method further includes:
[0029] The second device displays the mirroring control corresponding to the registered target application; or
[0030] The second device displays a mapping control corresponding to the function of the target application; or:
[0031] The second device displays the screen projection interface of the first device; or
[0032] The second device displays a preset page, the preset page includes a control widget, and the control widget is associated with a function of the target application.
[0033] In some embodiments, the first device parses the control instruction, including:
[0034] The first device analyzes the control instruction sent by the second device according to a preset rule;
[0035] The first device parses the control instruction according to the rule corresponding to the target application and sends the control instruction to the target application;
[0036] The target application sends a control command to the Internet of Things device according to the parsed control instruction.
[0037] In some embodiments, after the target application sends a control command to the IoT device according to the parsed control instruction, the method further includes:
[0038] The first device receives the execution result fed back by the IoT device according to the control command;
[0039] The first device sends the execution result to the second device according to the preset rule.
[0040] In some embodiments, the first device parses the control instruction and sends a control command corresponding to the control instruction to the IoT terminal through the target application, including:
[0041] The first device parses the control instruction to obtain a control operation corresponding to the control instruction;
[0042] The first device determines a target application matching the control operation according to the type of the control operation;
[0043] The first device controls the target application to send a control command corresponding to the control instruction to the Internet of Things device.
[0044] In some embodiments, the first device parses the control instruction and sends a control command corresponding to the control instruction to the IoT terminal through the target application, including:
[0045] The second device sends a control instruction to the first device, wherein the control instruction includes a voice instruction;
[0046] The first device sends the voice command to the target application;
[0047] The target application parses the voice command to obtain a control command.
[0048] In some embodiments, the first device is a mobile terminal, and the second device is a vehicle-mounted terminal or a vehicle terminal.
[0049] In a second aspect, an embodiment of the present invention further provides an Internet of Things device control method, which is applied to a first device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, and the first device is installed with a target application for controlling the Internet of Things terminal, and the method includes:
[0050] establishing a communication connection with the second device;
[0051] receiving a control instruction sent by the second device;
[0052] The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0053] In a third aspect, an embodiment of the present invention further provides an Internet of Things device control method, which is applied to a second device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the method includes:
[0054] Establishing a communication connection with the first device;
[0055] A control instruction is sent to the first device so that the first device can parse the control instruction, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0056] In a fourth aspect, an embodiment of the present invention further provides an Internet of Things system, the Internet of Things system comprising a first device, a second device and an Internet of Things terminal, the first device being installed with a target application for controlling the Internet of Things terminal, the Internet of Things system being configured as follows:
[0057] The first device and the second device are configured as follows:
[0058] establishing a communication connection between the first device and the second device;
[0059] The second device is configured as follows:
[0060] Sending a control instruction to the first device;
[0061] The first device is configured as follows:
[0062] The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0063] In a fifth aspect, an embodiment of the present invention further provides an electronic device, wherein the electronic device is a first device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the first device is configured as follows:
[0064] establishing a communication connection with the second device;
[0065] receiving a control instruction sent by the second device;
[0066] The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0067] In a sixth aspect, an embodiment of the present invention further provides an electronic device, wherein the electronic device is a second device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the second device is configured as follows:
[0068] Establishing a communication connection with the first device;
[0069] A control instruction is sent to the first device so that the first device can parse the control instruction, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0070] In the seventh aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in any of the methods described above.
[0071] In an eighth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein the program, when executed by a processor, implements the steps in any of the methods described above.
[0072] The second device in the embodiment of the present invention can send control instructions through the first device to improve the convenience of the second device controlling the Internet of Things device and improve the versatility of control between the terminal device and the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0074] Figure 1A is an architecture diagram of an Internet of Things system provided by an embodiment of the present invention;
[0075] Figure 1B is a schematic diagram of the correspondence between the target application and the IoT device in the first device in an embodiment of the present invention;
[0076] Figure 2 It is a flowchart of an Internet of Things device control method provided by an embodiment of the present invention;
[0077] Figure 3 is a schematic diagram of the connection between the first device and the second device in an embodiment of the present invention;
[0078] Figure 4 is another connection diagram of the first device and the second device in an embodiment of the present invention;
[0079] Figure 5 is a communication diagram between a mobile phone and a vehicle computer in an embodiment of the present invention;
[0080] Figure 6 is another communication schematic diagram between a mobile phone and a vehicle computer in an embodiment of the present invention;
[0081] Figure 7 is a schematic diagram of the structure of a data packet in one embodiment of the present invention;
[0082] Figure 8 is a schematic diagram of the structure of a data packet in another embodiment of the present invention;
[0083] Fig. 9 is another communication schematic diagram between a mobile phone and a vehicle computer in an embodiment of the present invention;
[0084] Fig.10 is another communication schematic diagram between a mobile phone and a vehicle computer in an embodiment of the present invention;
[0085] Fig.11 It is a schematic diagram of the structure of an electronic device provided by the implementation of the present invention. DETAILED DESCRIPTION
[0086] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0087] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, which represents 7 situations including single A, single B, single C, and A and B all exist, B and C all exist, A and C all exist, and A, B and C all exist.
[0088] With the development of 5G (5th generation mobile networks or 5th generation wireless systems, 5th-Generation, the fifth generation of mobile communication technology) technology, the Internet of Things technology is also constantly developing and improving.
[0089] An embodiment of the present invention provides an Internet of Things device control method, which is applied to an Internet of Things system. The Internet of Things system includes a first device, a second device and an Internet of Things terminal.
[0090] like Figure 1A As shown, in some embodiments, the first device can be a mobile terminal such as a mobile phone or a tablet computer, and the second device can be a vehicle-mounted terminal or a vehicle-mounted terminal. That is to say, the second device can be based on vehicle settings. In this way, the Internet of Things terminal can be a smart Internet of Things (IOT) home. For example, it can be various smart Internet of Things homes such as Internet of Things refrigerators, Internet of Things air conditioners, and Internet of Things curtain control devices.
[0091] It can be understood that the existing IOT ecosystem usually controls the IOT ecological devices in the home through mobile terminals such as mobile phones, and the cloud-based IOT cloud server controls the IOT ecological devices in the home. In the technical solution of this embodiment, the car computer and other devices can be used to use mobile terminals such as mobile phones as IoT proxy devices, based on mobile phones and the existing IOT ecosystem, to achieve the control of the IOT ecological devices in the home by using the car, which is referred to as car-controlled home.
[0092] like Figure 1B As shown, a target application (APP) for controlling the IoT terminal is installed on the first device (for example, a mobile phone). It is understandable that different smart IoT home providers usually provide corresponding applications. Figure 1B In the figure, three target applications APP1 to APP3 are shown, among which APP1 and APP2 can each control one IoT device (home 1 and home 2), and APP3 can control multiple IoT devices (home 3 to home 5), so that users can control the corresponding smart IoT homes through the application. Users can usually install the application on mobile terminals such as mobile phones to perform control operations on smart IoT homes.
[0093] In this embodiment, only an example is given in which the first device is a mobile phone and the second device is a vehicle-mounted system of an intelligent network-connected vehicle.
[0094] like Figure 2 As shown, in one embodiment, the IoT device control includes:
[0095] Step 101: The first device and the second device establish a communication connection.
[0096] like Figure 3 As shown, in this embodiment, a communication connection is first established between the first device and the second device. The communication connection can be established between the first device and the second device in different ways.
[0097] Mobile phones and in-vehicle terminals can be connected through wired methods such as USB or wireless methods such as WIFI hotspots and Bluetooth to achieve interconnection between mobile phones and in-vehicle terminals. On the basis of communication interconnection, voice interaction functions, navigation functions, infotainment functions, application service functions, etc. can be realized.
[0098] Exemplarily, the communication connection can be established through a wireless local area network (such as WIFI). Specifically, the communication connection can be established by the first device and the second device accessing the same wireless local area network, or one of the first device or the second device can establish a wireless hotspot, and then the other device accesses the wireless hotspot to achieve the communication connection between the first device and the second device. For another example, the first device and the second device can also achieve wireless connection through a short-distance transmission mode such as Bluetooth or achieve wired connection through a data cable (such as a USB data cable).
[0099] In one embodiment, WIFI can realize data transmission based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol). For example, UDP protocol can be used to publish and receive broadcast messages to realize device discovery, and TCP protocol can be used to send and receive files and information.
[0100] Bluetooth communication can provide SPP (Serial Port Profile) and Gatt (Generic Attribute Profile) protocols, and is responsible for the construction of slave and host devices of the Bluetooth Gatt protocol, distribution and search of service functions, device discovery, reading and writing simple messages, and the construction of the server and client of the Bluetooth SPP protocol to realize the sending and receiving of files and information.
[0101] USB communication provides AOA (Android Open Accessory Protocol) protocol, which is responsible for the construction of Accessory (slave) and Host (host) to realize the sending and receiving of files and information.
[0102] like Figure 4 As shown, the first device and the second device act as discovery devices to send their own characteristics and capability information in the form of broadcast information, and also act as discovered devices to receive discovery broadcast information.
[0103] In this process, the discovery end device creates a client and publishes a protocol broadcast through different communication methods. The discovery end responds to the protocol broadcast, creates a server, and publishes service information to establish a communication connection between the first device and the second device.
[0104] Generally speaking, when a user uses the first device and the second device for the first time, the user can manually operate to realize the wireless communication connection between the first device and the second device. Later, when the first device and the second device enter the communication distance, for example, when the user carries a mobile phone into a vehicle, the first device and the second device can automatically establish a wireless communication connection based on the above method. Obviously, the first device and the second device can also establish a communication connection when connected in a limited mode such as a USB data cable.
[0105] In some embodiments, after step 101, the method further includes:
[0106] The second device obtains information about the target application and information about the Internet of Things terminal corresponding to the target application.
[0107] In order to facilitate the control of the IoT terminal through the second device, after the first device and the second device establish a communication connection, the information of the target application installed on the first device and the information of the IoT terminal that can be controlled are obtained.
[0108] In one embodiment, the vehicle system obtains a list of target applications installed on the mobile phone, and further determines a list of IoT terminals that can be controlled by each target application. In this way, the vehicle system can determine the IoT terminals that can be managed in order to perform control operations on these IoT terminals.
[0109] In some embodiments, the second device obtains information about the target application and information about the IoT terminal corresponding to the target application, including:
[0110] A capability detection device detects whether the first device and the second device have control capabilities of an Internet of Things terminal, wherein the capability detection device is one of the first device and the second device;
[0111] In a case where at least one of the first device and the second device has a control capability of controlling an IoT terminal, the first device sends a trigger control message to the target application;
[0112] The target application registers with the second device through the first device according to the trigger control message.
[0113] In this embodiment, at least one of the mobile phone and the vehicle computer performs capability detection to ensure that the mobile phone and the vehicle computer can establish an Internet of Things system and enable the vehicle computer to control the Internet of Things terminal through the mobile phone.
[0114] In some embodiments, the capability detection device detects whether the first device and the second device have the control capability of the Internet of Things terminal, including:
[0115] The capability detection device sends a protocol broadcast based on a preset protocol;
[0116] The detected device feeds back service information in response to the protocol broadcast, wherein the detected device is a device other than the capability detection device in the first device and the second device;
[0117] The capability monitoring device confirms the control capability of the Internet of Things terminal of the detected device based on the service information.
[0118] See also Figure 4 One of the first device and the second device serves as a capability detection device, and the other serves as a detected device. In this embodiment, only the first device is used as a capability detection device and the second device is used as a detected device for exemplary explanation. It can be understood that during implementation, either one can serve as a capability detection device and the other device can serve as a detected device.
[0119] In this embodiment, specific software can be installed in both the first device and the second device. For example, it can be a plug-in, a control or an application. The software communicates with an agreed communication protocol. During implementation, the capability monitoring device sends a protocol broadcast according to the agreed communication protocol. The detected device responds to the protocol broadcast and feeds back corresponding service information. After receiving the service information, the capability detection device verifies the service information to determine whether the detected device feeds back the service information based on the agreed communication protocol. If the verification is passed, it means that specific software is installed in the detected device. At this time, it is confirmed that the detected device has the required control capability of the Internet of Things terminal. If the service information cannot be received, or the received service information cannot pass the verification, it is confirmed that the detected device does not have the control capability of the Internet of Things terminal that meets the requirements.
[0120] In one embodiment, the step of performing capability detection includes:
[0121] The first device obtains information of a target application having a smart home control function;
[0122] The first device sends information of the target application to the second device;
[0123] The detection device determines whether the first device and the second device have the control capability of the Internet of Things terminal according to the information of the target application.
[0124] In this embodiment, the information of the target application includes the package name and application registration number of the target application, wherein the package name is collected by the first device, the application registration number is assigned by the first device to the target application, or the application registration number is generated when the target application registers with the first device. In this way, based on the obtained registration number and application registration number, a list of target applications with IoT terminal control capabilities can be determined.
[0125] During implementation, the staff can manually maintain the list of target applications that have the ability to control IoT terminals. In this way, after the first device and the second device establish a communication connection, the first device sends the information of the target application to the second device, and further, the detection device detects the control ability of the other. Specifically, when the detection device is the second device, the detection device determines whether the first device has the ability to control the smart home based on whether it can obtain valid information about the target application; when the detection device is the first device, after the first device as the detection device sends the information of the target application to the second device, it determines whether the second device supports the interaction of sending the target application to the corresponding second device to achieve control of the smart home.
[0126] like Figure 5 As shown, after determining that it has the ability to control the Internet of Things terminal, the operating system of the first device sends a trigger control message to the target application to start each target application. After each target application is started, it registers with the second device through the operating system of the first device.
[0127] Step 102: The second device sends a control instruction to the first device.
[0128] After each target application is registered with the second device, the second device can determine the IoT terminals that each target application can manage based on the registration information. If the IoT terminals need to be managed, the second device can control them based on the determined IoT terminals that can be managed.
[0129] During implementation, the second device may send a control instruction to the first device. More specifically, when executing step 102, the second device sends a control instruction to a target application installed in the first device and registered in the second device to control the IoT terminal to execute a corresponding command.
[0130] Here, the control instructions can be sent in different ways. For example, they can be sent through the touch module of the touch screen of the vehicle computer, or through button control, voice control, etc. This embodiment does not specifically limit the specific sending method of the control instructions.
[0131] In this embodiment, in order to ensure that the second device can normally control the Internet of Things terminal, the second device and the Internet of Things terminal can communicate by defining a specific application layer protocol.
[0132] In this embodiment, the control command can be issued by the user. For example, the user can issue a control command through the vehicle computer to control the air conditioner at home to turn on and adjust the temperature to 25 degrees Celsius. The control command can also be automatically issued under specific conditions. For example, when the vehicle computer detects that the user drives the vehicle home along the usual route, it can automatically issue a control command to control the air conditioner at home to turn on and adjust the temperature to 25 degrees Celsius according to the user's pre-set settings.
[0133] Step 103: The first device parses the control instruction, and sends a control command corresponding to the control instruction to the IoT terminal through the target application.
[0134] After receiving the control instruction sent by the second device, the first device parses the control instruction and sends a corresponding control command to the Internet of Things terminal according to the parsing result, thereby achieving control over the corresponding Internet of Things terminal.
[0135] In some embodiments, after the first device sends a control command corresponding to the control instruction to the IoT terminal through the target application, the method further includes:
[0136] The first device feeds back an execution result to the second device, wherein the execution result is fed back by the IoT terminal to a target application installed in the first device after executing the control command.
[0137] In this embodiment, after completing the control of the Internet of Things terminal, the first device receives the execution result fed back by the Internet of Things terminal, and feeds back the execution result to the second device.
[0138] For example, after the mobile phone controls the air conditioner to turn on according to the command sent by the vehicle computer, the air conditioner feeds back the execution result to the mobile phone, for example, it can feed back that the air conditioner has been turned on and the temperature is set to 25 degrees Celsius. After receiving the execution result, the mobile phone further sends the execution result to the vehicle computer, and displays it on the vehicle computer in a predetermined manner, so that the user does not need to check the mobile phone, but can directly learn the execution status from the vehicle computer.
[0139] In some embodiments, after the target application registers with the second device through the first device according to the trigger control message, the method further includes:
[0140] The second device displays the mirroring control corresponding to the registered target application; or
[0141] The second device displays a mapping control corresponding to the function of the target application; or:
[0142] The second device displays the screen projection interface of the first device; or
[0143] The second device displays a preset page, the preset page includes a control widget, and the control widget is associated with a function of the target application.
[0144] In some of the embodiments, having the control capability of an IoT terminal can be understood as installing a corresponding software application that can perform control functions, wherein the control capability of the first device can be achieved by installing a target application, and the control capability of the second device can be achieved by setting a corresponding IoT device control software module, that is, it is necessary to provide corresponding support functions during the development of the vehicle computer so that the vehicle computer as the second device can support the control of the smart home as an IoT terminal.
[0145] In this embodiment, the Internet of Things device control software module of the second device can be implemented based on the underlying service or application layer of the second device. It can be understood that if the system of the second device supports secondary development and has a system signature, the Internet of Things device control software module can be provided based on the underlying service of the second device. If the system of the second device does not support secondary development, the provider of the second device can provide the Internet of Things device control software module in the background application layer service of the system of the second device.
[0146] In this embodiment, the control of each target application on the second device side can be implemented based on a mirror control or a mapping control.
[0147] In this embodiment, the mirror control can be understood as the target application provided by the first device being displayed in a mirrored manner on the second device, and the two are identical. During implementation, after the target application in the first device is registered in the second device, the corresponding mirror control is displayed on the UI interface of the second device. Specifically, the control image of each target application can be sent to the second device through the first device, so that the second device can display the corresponding mirror control.
[0148] During implementation, these mirror controls can be displayed together with icons of other applications installed on the second device, or they can be displayed in a separate interface. For example, a separate window for displaying connected car home controls can be provided, and the mirror controls of each target application can be displayed in the window.
[0149] In some other embodiments, when a control operation is performed, the first device projects the interface of the target application to the second device, and reverse control can be implemented at the second device, for example, using a touch module to generate home control instructions.
[0150] The mapping control in this embodiment refers to mapping each control function of the target application of the first device to the second device in a mapping manner.
[0151] Exemplarily, the second device may provide certain standard mapping controls. Exemplarily, for air conditioning control, various standard controls related to air conditioning functions such as temperature, wind speed, mode, etc. may be provided. The control controls may be provided with corresponding text descriptions or images.
[0152] During implementation, the second device does not display controls in the specifications or style of the target application, but only displays the standard control. When the user controls the standard control, the standard control and the corresponding functions of the target application are mapped according to the correspondence between the control functions of the standard control and the control functions of the target application, so that the IoT terminal corresponding to the target application is controlled through the mapped control.
[0153] It should be understood that in this embodiment, each target application can correspond to multiple mapping controls. For example, if a target application can control a pet water dispenser and a pet feeder, two mapping controls corresponding to the two functions of the target application can be generated. For another example, if a certain brand of air conditioner and refrigerator purchased by the user are controlled by the same target application, two mapping controls corresponding to the air conditioner and refrigerator can be displayed to control the air conditioner and refrigerator respectively.
[0154] Each mapping control can be displayed on the display interface of the second device in a manner similar to an application icon, or can be displayed on the interface of the second device in a specific manner. For example, on the mobile phone side, it can be small icons arranged evenly, and on the vehicle side, the mapping icons can be in a list format, etc. This embodiment is not further limited.
[0155] In some other embodiments, control pages corresponding to different types of smart homes can also be set up. For example, they can include air conditioning control pages, refrigerator control pages, etc., and then display corresponding control controls in the corresponding control pages to control the corresponding smart homes.
[0156] Furthermore, in the embodiment of the present invention, the first device may parse the control instruction and issue the control command in different ways.
[0157] In some embodiments, the step of parsing the control instruction by the first device includes:
[0158] The first device analyzes the control instruction sent by the second device according to a preset rule;
[0159] The first device parses the control instruction according to the rule corresponding to the target application and sends the control instruction to the target application;
[0160] The target application sends a control command to the Internet of Things device according to the parsed control instruction.
[0161] The technical solution of this embodiment is different from that of the above embodiment in that, in the above embodiment, the format of the control instructions transmitted between the first device and the second device may not be fixed. It can be understood that the second device sends corresponding control instructions according to the format that can be received by the target application installed on the first device, and the control instructions are parsed by the target application.
[0162] like Figure 6 As shown, in the technical solution of this embodiment, the first device and the second device can transmit data in a fixed format. After the transmitted data is parsed in the command parsing module of the first device, the first device sends it to each target application according to the parsing result, and the target application performs corresponding control operations.
[0163] Specifically, in this embodiment, an independent control application can be installed as a command parsing module to parse the control instruction. It can be understood that the second device directly transmits data with the control application in the first device, and after the transmitted control instruction is parsed by the control application, the control application further controls each target application to perform control operations on the IoT terminal according to the parsing result.
[0164] In another embodiment, during the system development process of the second device, the corresponding control function can be integrated into the system layer of the second device as a command parsing module, that is, the system layer of the second device executes the functions implemented by the above control application.
[0165] In an exemplary embodiment, the parsing operation of the control instruction may be performed by a distributed operation module integrated in the system layer of the second device. Figure 7As shown, during implementation, the distributed operation module encapsulates local original data into transmission data according to certain protocol rules, and further transmits the transmission data to the remote device. After the remote device receives the transmission data, it unpacks it according to the protocol rules to obtain the original data, completing the command data protocol packet grouping and unpacking process.
[0166] When the corresponding IoT terminal needs to be controlled, the first device and the second device first start the communication channel to establish a communication connection. Specifically, when the communication channel includes a WIFI channel, the WIFI service is initialized, and the user datagram protocol UDP server is started to send broadcast information and start the broadcast receipt receiving service; when the communication channel includes a USB channel, the USB service is initialized and enters the host mode to wait for a control request; when the communication channel includes a Bluetooth channel, the Bluetooth service is initialized, and the Gatt host service is started to send advertising information.
[0167] The first device and the second device collect information of the local device and peripheral devices. The local device information is collected during the initialization phase of the communication channel, and the local device information includes one or more of the following: WIFI ssid (Service Set Identifier), WIFI mac (physical address), IP address (Internet Protocol), Bluetooth name, Bluetooth mac, USB manufacturer name, mac address.
[0168] The peripheral device information includes one or more of the following:
[0169] The WiFi ssid and WiFi mac of the surrounding devices obtained through the WiFi scanning function;
[0170] The Bluetooth name, Bluetooth MAC and Bluetooth service universal unique identifier UUID (Universally Unique Identifier) of the peripheral device obtained through Bluetooth scanning;
[0171] Send the connection control code through the USB channel to obtain the connection host name.
[0172] After the first device and the second device obtain local information and peripheral device information, they integrate the local and peripheral information, update the information in the communication device group according to the channel status change, establish a channel connection, and add the channel information to the shared group information. When the channel name changes or the connection status changes, the information must be updated to the latest one, and the old information in the group must be corrected, so that the devices in the group form a virtual group, share the group information, and complete the synchronization of information and commands between the first device and the second device.
[0173] Next, the control application or distributed operation module monitors whether the second device has the control capability of the IoT device, and synchronizes the information of each target application if the second device has the control capability of the IoT device.
[0174] When the control instruction is transmitted, the control application or the distributed operation module parses the control instruction from the second device, and sends the control result to each target application, and controls the Internet of Things device through the corresponding target application.
[0175] In some embodiments, after the target application sends a control command to the IoT device according to the parsed control instruction, the method further includes:
[0176] The first device receives the execution result fed back by the IoT device according to the control command;
[0177] The first device sends the execution result to the second device according to the preset rule.
[0178] When the IoT device feeds back the execution result, the control application or distributed operation module receives the control result fed back by each target application, and sends the fed back control result to the second device in accordance with the reverse process of receiving and parsing the control instruction, so that the second device can display it to the user.
[0179] It is understandable that in the above process, the preset rule for information transmission between the first device and the second device is certain. In an exemplary embodiment, the data format transmitted between the first device and the second device can be defined as follows.
[0180] like Figure 8 As shown, in one embodiment, the command protocol composition is shown in the following table, and the specific description is:
[0181] Message type (1 byte);
[0182] Byte0: 0x01;
[0183] Data type (1 byte);
[0184] Byte1: includes 3 types, 0x01: text, 0x02: binary, 0x03: json;
[0185] Data length (2 bytes);
[0186] Byte2-Byte3: = bytes occupied by data type + bytes occupied by data length + bytes occupied by App registration number + bytes occupied by data;
[0187] App registration number (2 bytes);
[0188] Byte4-Byte5: = accumulated integer number;
[0189] Data (N-6 bytes);
[0190] Byte6-ByteN: Only single packet form: Byte6: command type; Byte7: command parameter length M; Byte8-Byte8+M: command parameter; Byte8+M+1: command content length L; Byte8+M+1+1-Byte8+M+1+1+L: command content;
[0191] During implementation, the command content can be packaged according to the definition of the target application corresponding to different IoT devices. In this way, when the first device receives the control command protocol packet and parses it, it directly sends the command content to the corresponding target application according to the parsed application registration number to perform the control operation.
[0192] In some embodiments, the first device parses the control instruction and sends a control command corresponding to the control instruction to the IoT terminal through the target application, including:
[0193] The first device parses the control instruction to obtain a control operation corresponding to the control instruction;
[0194] The first device determines a target application matching the control operation according to the type of the control operation;
[0195] The first device controls the target application to send a control command corresponding to the control instruction to the Internet of Things device.
[0196] like Fig. 9 As shown, in another embodiment, a control control may be added to the second device, and the second device sends a control instruction to the first device through the control control. After the first device receives the control instruction, the control instruction is parsed, and then the first device is analyzed to see whether there is a target application that can execute the control instruction. If so, the corresponding target application is controlled to perform the corresponding control operation.
[0197] For example, in this embodiment, the air conditioner is manually added to the vehicle computer first. After the user clicks the air conditioner control, the air conditioner control interface is opened. During this process, the mobile phone does not need to synchronize the information of the relevant target application to the vehicle computer, but only establishes an air conditioner control port on the vehicle computer.
[0198] The user can send control instructions to the mobile phone through the air conditioning control interface on the vehicle side. The mobile phone performs semantic analysis on the received control instructions through the above control application or distributed operation module. Specifically, for example, it can be to turn on the air conditioning and set the temperature to 25 degrees.
[0199] After determining the device type, the mobile phone performs an IoT device search to check whether there is a target application for controlling the air conditioner among the target applications installed by the mobile phone. For example, the mobile phone search finds that the information registered by a target application to the control application or the distributed operation module includes an air conditioner. At this time, the target application corresponding to the air conditioner is determined, and the parsed control instructions are sent to the target application in accordance with the agreed application layer protocol, and the air conditioner is controlled through the target application.
[0200] In some embodiments, the first device parses the control instruction and sends a control command corresponding to the control instruction to the IoT terminal through the target application, including:
[0201] The second device sends a control instruction to the first device, wherein the control instruction includes a voice instruction;
[0202] The first device sends the voice command to the target application;
[0203] The target application parses the voice command to obtain a control command.
[0204] like Fig.10 As shown, in some other embodiments, the target application can also be controlled by voice control. In this embodiment, the second device forwards the voice command to the first device.
[0205] Voice instructions can be parsed in different ways. In one embodiment, the control application or distributed operation module of the first device can parse the voice instructions and send the parsed control instructions to the corresponding target application. In another embodiment, the voice instructions are parsed by each target application itself. Specifically, the first device directly sends the received voice instructions to each target application, and each target application parses the voice instructions by itself. If the parsing is successful, the target application sends the corresponding control command to the IoT device. In this way, the IoT terminal can be controlled by voice instructions.
[0206] An embodiment of the present invention further provides an Internet of Things device control method, which is applied to a first device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, and the first device is installed with a target application for controlling the Internet of Things terminal, and the method includes:
[0207] establishing a communication connection with the second device;
[0208] receiving a control instruction sent by the second device;
[0209] The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0210] The first device in the embodiment of the present invention can implement each step executed by the first device in the above-mentioned Internet of Things device control method embodiment, which will not be repeated here.
[0211] An embodiment of the present invention further provides an Internet of Things device control method, which is applied to a second device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the method includes:
[0212] Establishing a communication connection with the first device;
[0213] A control instruction is sent to the first device so that the first device can parse the control instruction, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0214] The first device in the embodiment of the present invention can implement each step executed by the first device in the above-mentioned Internet of Things device control method embodiment, which will not be repeated here.
[0215] An embodiment of the present invention further provides an Internet of Things system, the Internet of Things system comprising a first device, a second device and an Internet of Things terminal, the first device being installed with a target application for controlling the Internet of Things terminal, and the Internet of Things system being configured as follows:
[0216] The first device and the second device are configured as follows:
[0217] establishing a communication connection between the first device and the second device;
[0218] The second device is configured as follows:
[0219] Sending a control instruction to the first device;
[0220] The first device is configured as follows:
[0221] The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0222] In some embodiments, after the first device and the second device establish a communication connection, the method further includes:
[0223] The second device obtains information about the target application and information about the Internet of Things terminal corresponding to the target application.
[0224] In some embodiments, the first device and / or the second device is configured as:
[0225] A capability detection device detects whether the first device and the second device have control capabilities of an Internet of Things terminal, wherein the capability detection device is one of the first device and the second device;
[0226] In a case where at least one of the first device and the second device has a control capability of controlling an IoT terminal, the first device sends a trigger control message to the target application;
[0227] The target application registers with the second device through the first device according to the trigger control message.
[0228] In some embodiments, the capability monitoring device is configured to:
[0229] Send protocol broadcast based on preset protocol;
[0230] The detected device is configured as:
[0231] In response to the protocol broadcast, the service information is fed back, wherein the detected device is a device other than the capability detection device in the first device and the second device;
[0232] The capability monitoring device is configured as follows:
[0233] The control capability of the Internet of Things terminal of the detected device is confirmed based on the service information.
[0234] In some embodiments, the first device is configured as:
[0235] Acquire information of a target application with a smart home control function, wherein the information of the target application includes a package name and an application registration number of the target application, the package name is collected by the first device, the application registration number is allocated by the first device to the target application, or the application registration number is generated when the target application is registered with the first device;
[0236] Sending information of the target application to the second device;
[0237] The first device and / or the second device is configured as:
[0238] The detection device determines whether the first device and the second device have the control capability of the Internet of Things terminal according to the information of the target application.
[0239] In some embodiments, the second device is configured as:
[0240] A control instruction is sent to a target application installed in the first device and registered in the second device.
[0241] In some embodiments, the first device is configured as:
[0242] Feedback the execution result to the second device, wherein the execution result is fed back by the IoT terminal to the target application installed in the first device after executing the control command.
[0243] In some embodiments, the second device is configured as:
[0244] Displaying the mirror control corresponding to the registered target application; or
[0245] Display a map control corresponding to the functionality of the target application; or:
[0246] The second device displays the screen projection interface of the first device; or
[0247] The second device displays a preset page, the preset page includes a control widget, and the control widget is associated with a function of the target application.
[0248] In some embodiments, the first device is configured as:
[0249] parsing the control instruction sent by the second device according to a preset rule;
[0250] Parsing the control instruction according to the rules corresponding to the target application and sending it to the target application;
[0251] The target application sends a control command to the Internet of Things device according to the parsed control instruction.
[0252] In some embodiments, the first device is configured as:
[0253] Receiving the execution result fed back by the IoT device according to the control command;
[0254] The execution result is sent to the second device according to the preset rule.
[0255] In some embodiments, the first device is configured as:
[0256] Parsing the control instruction to obtain a control operation corresponding to the control instruction;
[0257] Determining a target application matching the control operation according to the type of the control operation;
[0258] Control the target application to send a control command corresponding to the control instruction to the Internet of Things device.
[0259] In some embodiments, the second device is configured as:
[0260] Sending a control instruction to the first device, wherein the control instruction includes a voice instruction;
[0261] The first device is configured as follows:
[0262] sending the voice command to the target application;
[0263] The target application parses the voice command to obtain a control command.
[0264] In some embodiments, the first device is a mobile terminal, and the second device is a vehicle-mounted terminal or a vehicle terminal.
[0265] The Internet of Things system of the embodiment of the present invention is configured to implement the various steps of the above-mentioned Internet of Things device control method embodiment, which will not be repeated here.
[0266] An embodiment of the present invention further provides an electronic device, wherein the electronic device is a first device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the first device is configured as follows:
[0267] establishing a communication connection with the second device;
[0268] receiving a control instruction sent by the second device;
[0269] The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0270] An embodiment of the present invention further provides an electronic device, which is a second device in an Internet of Things system, wherein the Internet of Things system includes a first device, a second device, and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the second device is configured as follows:
[0271] Establishing a communication connection with the first device;
[0272] A control instruction is sent to the first device so that the first device can parse the control instruction, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
[0273] The electronic device of this embodiment can implement the functions implemented by the first device or the second device in the above-mentioned Internet of Things system, which will not be repeated here.
[0274] The embodiment of the present invention also provides an electronic device. Fig.11 , the electronic device may include a processor 1101, a memory 1102, and a program 11021 stored in the memory 1102 and executable on the processor 1101.
[0275] When program 11021 is executed by processor 1101, any steps in the above method embodiment can be implemented and the same beneficial effects can be achieved, which will not be described in detail here.
[0276] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware associated with program instructions, and the program can be stored in a readable medium.
[0277] An embodiment of the present invention further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any step in the above method embodiment can be implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0278] The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0279] It should be noted that it should be understood that the division of the above modules is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the determination module can be a separately established processing element, or it can be integrated in a chip of the above-mentioned device for implementation. In addition, it can also be stored in the memory of the above-mentioned device in the form of program code, and called and executed by a processing element of the above-mentioned device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0280] For example, each module, unit, sub-unit or sub-module may be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0281] The above is a preferred implementation of the embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for controlling an Internet of Things device, characterized in that: Applied to an Internet of Things system, the Internet of Things system includes a first device, a second device and an Internet of Things terminal, the first device is installed with a target application for controlling the Internet of Things terminal, and the method includes: The first device and the second device establish a communication connection; The second device sends a control instruction to the first device; The first device parses the control instruction and sends a control command corresponding to the control instruction to the Internet of Things terminal through the target application.
2. The method according to claim 1, characterized in that After the first device and the second device establish a communication connection, the method further includes: The second device obtains information about the target application and information about the Internet of Things terminal corresponding to the target application.
3. The method according to claim 2, characterized in that The second device obtains information about the target application and information about the Internet of Things terminal corresponding to the target application, including: A capability detection device detects whether the first device and the second device have control capabilities of an Internet of Things terminal, wherein the capability detection device is one of the first device and the second device; In a case where at least one of the first device and the second device has a control capability of controlling an IoT terminal, the first device sends a trigger control message to the target application; The target application registers with the second device through the first device according to the trigger control message.
4. The method according to claim 3, characterized in that The capability detection device detects whether the first device and the second device have the control capability of the Internet of Things terminal, including: The capability detection device sends a protocol broadcast based on a preset protocol; The detected device feeds back service information in response to the protocol broadcast, wherein the detected device is a device other than the capability detection device in the first device and the second device; The capability monitoring device confirms the control capability of the Internet of Things terminal of the detected device based on the service information.
5. The method according to claim 3, characterized in that The capability detection device detects whether the first device and the second device have the control capability of the Internet of Things terminal, including: The first device obtains information of a target application with a smart home control function, wherein the information of the target application includes a package name and an application registration number of the target application, the package name is collected by the first device, the application registration number is allocated by the first device to the target application, or the application registration number is generated when the target application is registered with the first device; The first device sends the information of the target application to the second device; The detection device determines whether the first device and the second device have the control capability of the Internet of Things terminal according to the information of the target application.
6. The method according to claim 3, characterized in that The second device sending a control instruction to the first device includes: The second device sends a control instruction to a target application installed in the first device and registered in the second device.
7. The method according to any one of claims 1 to 6, characterized in that After the first device sends a control command corresponding to the control instruction to the Internet of Things terminal through the target application, the method further includes: The first device feeds back an execution result to the second device, wherein the execution result is fed back by the IoT terminal to a target application installed in the first device after executing the control command.
8. The method according to claim 3, characterized in that After the target application registers with the second device through the first device according to the trigger control message, the method further includes: The second device displays the mirroring control corresponding to the registered target application; or The second device displays a mapping control corresponding to the function of the target application; or: The second device displays the screen projection interface of the first device; or The second device displays a preset page, the preset page includes a control widget, and the control widget is associated with a function of the target application.
9. The method according to claim 3, characterized in that The first device parsing the control instruction includes: The first device analyzes the control instruction sent by the second device according to a preset rule; The first device parses the control instruction according to the rule corresponding to the target application and sends the control instruction to the target application; The target application sends a control command to the Internet of Things device according to the parsed control instruction.
10. The method according to claim 9, characterized in that After the target application sends a control command to the IoT device according to the parsed control instruction, the method further includes: The first device receives the execution result fed back by the IoT device according to the control command; The first device sends the execution result to the second device according to the preset rule.
11. The method according to claim 1, characterized in that The first device parses the control instruction, and sends a control command corresponding to the control instruction to the Internet of Things terminal through the target application, including: The first device parses the control instruction to obtain a control operation corresponding to the control instruction; The first device determines a target application matching the control operation according to the type of the control operation; The first device controls the target application to send a control command corresponding to the control instruction to the Internet of Things device.
12. The method according to claim 1, characterized in that The first device parses the control instruction, and sends a control command corresponding to the control instruction to the Internet of Things terminal through the target application, including: The second device sends a control instruction to the first device, wherein the control instruction includes a voice instruction; The first device sends the voice command to the target application; The target application parses the voice command to obtain a control command.
13. The method according to any one of claims 1 to 6 and 8 to 12, characterized in that The first device is a mobile terminal, and the second device is a vehicle-mounted terminal or a vehicle terminal.
14. A method for controlling an Internet of Things device, characterized in that: A first device applied to an Internet of Things system, the Internet of Things system comprising a first device, a second device and an Internet of Things terminal, the first device being installed with a target application for controlling the Internet of Things terminal, the method comprising: establishing a communication connection with the second device; receiving a control instruction sent by the second device; The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
15. A method for controlling an Internet of Things device, characterized in that: A second device applied to an Internet of Things system, the Internet of Things system comprising a first device, a second device and an Internet of Things terminal, the first device being installed with a target application for controlling the Internet of Things terminal, the method comprising: Establishing a communication connection with the first device; A control instruction is sent to the first device so that the first device can parse the control instruction, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
16. An Internet of Things system, characterized in that: The Internet of Things system comprises a first device, a second device and an Internet of Things terminal, wherein the first device is installed with a target application for controlling the Internet of Things terminal, and the Internet of Things system is configured as follows: The first device and the second device are configured as follows: establishing a communication connection between the first device and the second device; The second device is configured as follows: Sending a control instruction to the first device; The first device is configured as follows: The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
17. An electronic device, characterized in that: The electronic device is a first device in an Internet of Things system, the Internet of Things system includes a first device, a second device and an Internet of Things terminal, the first device is installed with a target application for controlling the Internet of Things terminal, and the first device is configured as follows: establishing a communication connection with the second device; receiving a control instruction sent by the second device; The control instruction is parsed, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
18. An electronic device, characterized in that: The electronic device is a second device in an Internet of Things system, the Internet of Things system includes a first device, a second device and an Internet of Things terminal, the first device is installed with a target application for controlling the Internet of Things terminal, and the second device is configured as follows: Establishing a communication connection with the first device; A control instruction is sent to the first device so that the first device can parse the control instruction, and a control command corresponding to the control instruction is sent to the Internet of Things terminal through the target application.
19. An electronic device comprising: A memory, a processor, and a program stored in the memory and executable on the processor; wherein the processor is configured to read the program in the memory to implement the steps of the method according to any one of claims 1 to 13; or Implementing the steps in the method of claim 14; or Implement the steps in the method of claim 15.
20. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the method according to any one of claims 1 to 13 are implemented; or Implementing the steps in the method of claim 14; or Implement the steps in the method of claim 15.