Remote control method, device, equipment and medium
Through the collaborative work of the smart home debugging end and gateway equipment, the large development workload caused by the differences in device protocols in the smart home system is solved, efficient remote control is achieved, continuous development needs are reduced, and the overall efficiency of the system is improved.
Patent Information
- Application Number
- CN202410923490.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
AI Technical Summary
The existing smart home system adapts to the control protocol needs of different smart home devices on the debugging end, resulting in the problem of large development workload and high continuous development demand.
The smart home debugging end confirms the device's instruction protocol type, generates corresponding instruction data, and encapsulates it into a network data packet to send it to the smart home gateway device. The gateway device sends data to the target device according to the protocol type, simplifying the data on the debugging end The transmission process reduces the need for adaptive development of each protocol.
It reduces the adaptive development workload of the smart home debugging end, avoids the continuous development needs caused by device updates, and improves the overall efficiency and flexibility of the smart home system.
Smart Images

Figure CN118890231A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of smart homes, and in particular to remote control methods, devices, equipment and media. Background Art
[0002] With the development of computer networks and electronic technology, the application of smart home is becoming more and more widespread. Under the concept of smart home, users can send control instructions to electronic devices in the target house through various control terminals, such as turning on the air conditioner remotely before arriving home to have the most comfortable temperature when arriving home; remotely check the indoor status through indoor monitoring, etc.
[0003] However, the inventor studied the construction process of the existing smart home system and found that during the existing smart home construction process, when the smart home debugging end is used to control the smart home devices built into the same smart home system, different smart home devices may have different control protocols. When the smart home debugging end sends control instructions to different smart home devices, it is necessary to adapt to various control protocols to send control instructions. Faced with the possible and increasing number of smart home devices, the workload of adaptively developing control software functions at the smart home debugging end is large, and the demand for continuous development is high. Summary of the invention
[0004] The present application provides a remote control method, apparatus, device and medium to solve the technical problems that the workload of adaptively developing control software functions at the existing smart home debugging end is large and the demand for continuous development is high.
[0005] In a first aspect, a remote control method is provided for a smart home debugging terminal of a smart home system, wherein the smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control method includes:
[0006] The smart home debugging end confirms the instruction protocol type corresponding to the current debugging control object;
[0007] The smart home debugging terminal generates instruction data corresponding to the instruction protocol type according to the received debugging instruction;
[0008] The smart home debugging terminal generates a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data is used as entity data of the network data packet;
[0009] The smart home debugging end sends the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
[0010] The instruction data includes an instruction number, the instruction number is confirmed according to the number of generated debugging instructions, and the reply of the debugging control object corresponding to the debugging instruction uses the same instruction number.
[0011] The network data packet also includes length information of the instruction data, so that the smart home gateway device can extract the entity data according to the length information.
[0012] The instruction protocol type is recorded in the subject information in the form of a storage path of instruction sets corresponding to all instruction protocol types.
[0013] In a second aspect, a remote control method is provided for a smart home gateway device of a smart home system, wherein the smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control method includes:
[0014] The smart home gateway device receives a network data packet sent by the smart home debugging terminal, the subject information of the network data packet includes an instruction protocol type, and the entity data of the network data packet is instruction data generated by the smart home debugging terminal according to a debugging instruction for a debugging control object;
[0015] The smart home gateway device extracts the subject information and entity data of the network data packet;
[0016] The smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0017] Wherein, the network data packet also includes the length information of the instruction data;
[0018] Correspondingly, the smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data, including:
[0019] The smart home gateway device reads the length information of the instruction data at a preset length record position of the network data packet;
[0020] The smart home gateway device reads entity data of corresponding length from the network data packet according to the length information;
[0021] The smart home gateway device sends the read entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0022] In a third aspect, a remote control device is provided, which is used for a smart home debugging end of a smart home system, wherein the smart home system includes a smart home debugging end and a smart home gateway device, and the remote control device includes:
[0023] A type confirmation unit, used by the smart home debugging terminal to confirm the instruction protocol type corresponding to the current debugging control object;
[0024] An instruction receiving unit, configured for the smart home debugging terminal to generate instruction data corresponding to the instruction protocol type according to the received debugging instruction;
[0025] A data packet generating unit, used for the smart home debugging terminal to generate a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data is used as the entity data of the network data packet;
[0026] The data packet sending unit is used for the smart home debugging end to send the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
[0027] The instruction data includes an instruction number, the instruction number is confirmed according to the number of generated debugging instructions, and the reply of the debugging control object corresponding to the debugging instruction uses the same instruction number.
[0028] The network data packet also includes length information of the instruction data, so that the smart home gateway device can extract the entity data according to the length information.
[0029] The instruction protocol type is recorded in the subject information in the form of a storage path of instruction sets corresponding to all instruction protocol types.
[0030] In a fourth aspect, a remote control device is provided, which is used for a smart home gateway device of a smart home system, wherein the smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control device includes:
[0031] A data packet receiving unit, used for the smart home gateway device to receive a network data packet sent by the smart home debugging end, wherein the subject information of the network data packet includes an instruction protocol type, and the entity data of the network data packet is instruction data generated by the smart home debugging end according to a debugging instruction for a debugging control object;
[0032] A data extraction unit, used for the smart home gateway device to extract subject information and entity data of the network data packet;
[0033] The instruction sending unit is used for the smart home gateway device to send the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0034] Wherein, the network data packet also includes the length information of the instruction data;
[0035] The instruction sending unit comprises:
[0036] A length reading module, used for the smart home gateway device to read the length information of the instruction data at a preset length record position of the network data packet;
[0037] A data reading module, used for the smart home gateway device to read entity data of corresponding length from the network data packet according to the length information;
[0038] The entity data sending module is used for the smart home gateway device to send the read entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0039] In a fifth aspect, an electronic device is provided, the electronic device comprising:
[0040] one or more processors;
[0041] A memory for storing one or more programs;
[0042] When the one or more programs are executed by the one or more processors, the electronic device cooperates with other electronic devices to implement the remote control method as described in any one of the first aspects.
[0043] In a sixth aspect, a non-volatile storage medium storing computer executable instructions is provided, wherein the computer executable instructions are used to execute the remote control method described in any one of the first aspects when executed by a computer processor.
[0044] The remote control method in the embodiment of the present application is used for a smart home system, wherein the smart home system includes a smart home debugging terminal and a smart home gateway device, wherein the smart home debugging terminal confirms the instruction protocol type corresponding to the current debugging control object; the smart home debugging terminal generates instruction data corresponding to the instruction protocol type according to the received debugging instruction; the smart home debugging terminal generates a network data packet, wherein the subject information of the network data packet includes the instruction protocol type, and the instruction data is used as the entity data of the network data packet; the smart home debugging terminal sends the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response. Accordingly, the smart home gateway device receives the network data packet sent by the smart home debugging terminal, wherein the subject information of the network data packet includes the instruction protocol type, and the entity data of the network data packet is the instruction data generated by the smart home debugging terminal according to the debugging instruction for the debugging control object; the smart home gateway device extracts the subject information and entity data of the network data packet; the smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data. By generating instruction data according to the corresponding instruction protocol type based on the specific debugging instructions during the debugging process, and treating the instruction data as entity data as a whole, and transmitting data in a unified network data packet structure, the data sending process at the smart home debugging end does not need to consider the data encoding method corresponding to each instruction protocol type. The distribution of specific control instructions is completed by the smart home gateway device that has the instruction processing capability itself, reducing the workload of adaptive control software function development at the smart home debugging end, and avoiding continuous development at the smart home debugging end based on the update of smart home devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0046] Figure 1 is a method flow chart of a remote control method provided by an embodiment of the present application;
[0047] Figure 2 is a method flow chart of another remote control method provided by an embodiment of the present application;
[0048] Figure 3 is a method flow chart of another remote control method provided by an embodiment of the present application;
[0049] Figure 4 is a structural schematic diagram of a remote control device provided in an embodiment of the present application;
[0050] Figure 5 is a structural schematic diagram of another remote control device provided in an embodiment of the present application;
[0051] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0053] Figure 1 This is a method flow chart of a remote control method provided in an embodiment of the present application. The remote control method provided in this embodiment can be executed by a remote control device, which can be implemented by hardware and / or software and integrated in an electronic device. In a general smart home system, the electronic device includes a smart home debugging terminal, a smart home client, a smart home server and a smart home gateway device. This embodiment specifically involves a smart home debugging terminal and a smart home gateway device. The smart home debugging terminal is a terminal device dedicated to the construction and control of the smart home system. It can also be a mobile phone, tablet computer, laptop computer, etc. installed with a smart home configuration application. It is usually used by professional engineers when building a smart home system. The smart home gateway device is set in the target residence to realize the data transmission between the smart home devices in the target residence and the outside. In the embodiment of the present application, the data transmission process between the smart home debugging terminal and the smart home gateway device in the remote control process is comprehensively described. Please refer to Figure 1 , the remote control method specifically includes:
[0054] Step S110: the smart home debugging end confirms the instruction protocol type corresponding to the current debugging control object.
[0055] In the embodiment of the present application, the smart home debugging terminal has been authenticated by the smart home server and can debug the smart home devices to complete the construction of the smart home system. The authenticated smart home debugging terminal accesses (via wireless or wired access) the smart home gateway device and connects and controls the smart home devices directly connected to the smart home gateway device.
[0056] For the smart home debugging terminal, the command protocol types of various known smart home control commands can be recorded in the debugging software, including the command structure, and which models of smart home devices on the market use these command protocol types. In the embodiment of the present application, after the smart home debugging terminal, the smart home gateway device and the smart home devices are connected to the same local area network, the smart home debugging terminal can obtain the basic device information of all smart home devices currently connected to the smart home gateway device through basic information collection methods.
[0057] On the basis of having obtained the basic device information of the smart home devices, one or more smart home devices can be selected as specific debugging and control objects, and the command protocol types corresponding to the one or more smart home devices can be obtained from the relevant information of the pre-recorded command protocol types.
[0058] Step S120: the smart home debugging terminal generates instruction data corresponding to the instruction protocol type according to the received debugging instruction.
[0059] In the specific debugging process, there may be multiple debugging targets for each smart home device, and each debugging target actually has a specific debugging instruction. These debugging instructions at least include instruction type and instruction content. For example, the instruction type is to increase the temperature, and the instruction content is the specific target temperature value. Based on the comprehensive information of each instruction laundry type, the instruction data can be directly generated according to the structure of the corresponding instruction protocol type.
[0060] In an optional implementation, the instruction data may include an instruction number, which is confirmed according to the number of generated debug instructions, and the debug control object uses the same instruction number in its reply to the debug instruction. The instruction number can be used to trace the entire sending process of the debug instruction to avoid disordered sending of the debug instruction. The smart home device can also use the same instruction number in its reply to the debug instruction, thereby performing targeted analysis on the sending and response process of the debug instruction.
[0061] Step S130: the smart home debugging terminal generates a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data serves as entity data of the network data packet.
[0062] For the smart home debugging end and the smart home gateway device connected through the network, the basic data transmission form is the network data packet. In the embodiment of the present application, the type of specific debugging instruction is directly ignored, and the instruction data corresponding to the debugging instruction is directly encapsulated as the entity data of the network data packet. The header of the network data packet can be used for custom data bits to record the instruction protocol type corresponding to the instruction data. The actual sending process of the instruction data is processed as a regular network data packet sending process, thereby eliminating the control of the sending and receiving details of various instruction data adapted to various instruction protocol types at the smart home debugging end.
[0063] In order to improve the processing efficiency of the smart home gateway device, the network data packet may also include the length information of the instruction data, so that the smart home gateway device can extract the entity data according to the length information. Of course, the network data packet also carries the network information of the debugging control object, thereby realizing the sending of the network data packet to the target network node (ie, the debugging control object).
[0064] In an optional implementation, the instruction protocol type is recorded in the subject information in the form of a storage path of instruction sets corresponding to all instruction protocol types.
[0065] For example, the general structure of a network data packet is:
[0066] Topic: xxxxx
[0067] Length:xxx (length of the body byte stream, excluding \r\n and other data)\r\n
[0068] {
[0069] }
[0070] The above structure is applied to a specific debugging instruction, for example:
[0071] Topic: / user / ${gateway_mac} / custom / scene / get
[0072] Length:100
[0073] {
[0074] "id":"123",
[0075] "time_stamp":"1603281282000",
[0076] "objects":[{
[0077] "sid":
[0078] "0001001910120900002567010A0100010001"
[0079] }]
[0080] }
[0081] In a specific implementation, in addition to the instruction protocol type, the subject information may also include information about specific instructions. For example, for a network data packet with an instruction protocol type of buspro, for a sending instruction, the subject information may be / user / %s / custom / native / buspro / down; for a reply instruction, the subject information may be / user / %s / custom / native / buspro / down_reply; for an uploading instruction, the subject information may be / user / %s / custom / native / buspro / up.
[0082] Step S140: the smart home debugging end sends the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
[0083] On the basis of having completed the encapsulation of the network data packet, the smart home debugging end can directly send the network data packet to the smart home gateway device through the network.
[0084] Step S150: the smart home gateway device receives a network data packet sent by the smart home debugging end, the subject information of the network data packet includes an instruction protocol type, and the entity data of the network data packet is instruction data generated by the smart home debugging end according to the debugging instruction for the debugging control object.
[0085] Step S160: The smart home gateway device extracts the subject information and entity data of the network data packet.
[0086] Step S170: The smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0087] Step S150 to step S160 are the process of the smart home gateway device processing and distributing the received network data packets. In the specific processing process, the setting logic of the corresponding smart home debugging terminal can be processed.
[0088] For example, when the network data packet also includes the length information of the instruction data, the process of sending the physical data to the debugging control object in step S170 includes: the smart home gateway device reads the length information of the instruction data at a preset length record position of the network data packet; the smart home gateway device reads physical data of corresponding length from the network data packet according to the length information; the smart home gateway device sends the read physical data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0089] In a specific implementation process, the smart home gateway device may also receive feedback data sent by the debugging control object, and send the feedback data to the smart home debugging terminal.
[0090] In general, the smart home debugging end of the smart home system confirms the instruction protocol type corresponding to the current debugging control object; the smart home debugging end generates instruction data corresponding to the instruction protocol type according to the received debugging instruction; the smart home debugging end generates a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data is the entity data of the network data packet; the smart home debugging end sends the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response. Correspondingly, the smart home gateway device of the smart home system receives the network data packet sent by the smart home debugging end, the subject information of the network data packet includes the instruction protocol type, and the entity data of the network data packet is the instruction data generated by the smart home debugging end according to the debugging instruction for the debugging control object; the smart home gateway device extracts the subject information and entity data of the network data packet; the smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data. By generating instruction data according to the corresponding instruction protocol type based on the specific debugging instructions during the debugging process, and treating the instruction data as entity data as a whole, and transmitting data in a unified network data packet structure, the data sending process at the smart home debugging end does not need to consider the data encoding method corresponding to each instruction protocol type. The distribution of specific control instructions is completed by the smart home gateway device that has the instruction processing capability itself, reducing the workload of adaptive control software function development at the smart home debugging end, and avoiding continuous development at the smart home debugging end based on the update of smart home devices.
[0091] Please refer to Figure 2, which is a method flow chart of another remote control method provided in an embodiment of the present application, the remote control method is used for a smart home debugging end of a smart home system, wherein the smart home system includes a smart home debugging end and a smart home gateway device, such as Figure 2 As shown, the remote control method comprises:
[0092] Step S210: The smart home debugging end confirms the instruction protocol type corresponding to the current debugging control object.
[0093] Step S220: The smart home debugging terminal generates instruction data corresponding to the instruction protocol type according to the received debugging instruction.
[0094] Step S230: the smart home debugging terminal generates a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data serves as entity data of the network data packet.
[0095] Step S240: the smart home debugging end sends the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
[0096] Based on the above embodiment, the instruction data includes an instruction number, the instruction number is confirmed according to the number of generated debug instructions, and the debug control object uses the same instruction number in response to the debug instruction.
[0097] Based on the above embodiment, the network data packet also includes the length information of the instruction data, so that the smart home gateway device can extract the entity data according to the length information.
[0098] Based on the above embodiment, the instruction protocol type is recorded in the subject information in the form of a storage path of the instruction set corresponding to all instruction protocol types.
[0099] The embodiment of the present application describes the remote control process from the perspective of the smart home debugging end. For any incomplete description in the embodiment of the present application, please refer to the overall description of the remote control process in the previous embodiment.
[0100] Please refer to Figure 3 , which is a method flow chart of another remote control method provided in an embodiment of the present application, the remote control method is used for a smart home gateway device of a smart home system, the smart home system includes a smart home debugging terminal and a smart home gateway device, such as Figure 3 As shown, the remote control method comprises:
[0101] Step S310: the smart home gateway device receives a network data packet sent by the smart home debugging end, the subject information of the network data packet includes an instruction protocol type, and the entity data of the network data packet is instruction data generated by the smart home debugging end according to the debugging instruction for the debugging control object.
[0102] Step S320: The smart home gateway device extracts the subject information and entity data of the network data packet.
[0103] Step S330: The smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0104] Based on the above embodiment, the network data packet further includes the length information of the instruction data;
[0105] Correspondingly, the smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data, including:
[0106] The smart home gateway device reads the length information of the instruction data at a preset length record position of the network data packet;
[0107] The smart home gateway device reads entity data of corresponding length from the network data packet according to the length information;
[0108] The smart home gateway device sends the read entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0109] The embodiment of the present application describes the remote control process from the perspective of a smart home gateway device. For any incomplete description in the embodiment of the present application, please refer to the overall description of the remote control process in the previous embodiment.
[0110] Please refer to Figure 4 , please provide a structural diagram of a remote control device provided in the embodiment of the present application. The remote control device in the embodiment of the present application is used for the smart home debugging end of the smart home system, and the smart home system includes a smart home debugging end and a smart home gateway device. Figure 4 As shown, the remote control device includes a type confirmation unit 410 , a command receiving unit 420 , a data packet generating unit 430 and a data packet sending unit 440 .
[0111] Among them, the type confirmation unit 410 is used by the smart home debugging end to confirm the instruction protocol type corresponding to the current debugging control object; the instruction receiving unit 420 is used by the smart home debugging end to generate instruction data corresponding to the instruction protocol type according to the received debugging instruction; the data packet generation unit 430 is used by the smart home debugging end to generate a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data is used as the entity data of the network data packet; the data packet sending unit 440 is used by the smart home debugging end to send the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
[0112] Based on the above embodiment, the instruction data includes an instruction number, the instruction number is confirmed according to the number of generated debug instructions, and the debug control object uses the same instruction number in response to the debug instruction.
[0113] Based on the above embodiment, the network data packet also includes the length information of the instruction data, so that the smart home gateway device can extract the entity data according to the length information.
[0114] Based on the above embodiment, the instruction protocol type is recorded in the subject information in the form of a storage path of the instruction set corresponding to all instruction protocol types.
[0115] The remote control device in the embodiment of the present application is used to implement the remote control method for the smart home debugging end in the aforementioned embodiment, and has corresponding technical effects. For any incomplete description in the embodiment of the present application, please refer to the relevant description of the remote control method in the previous text.
[0116] Please refer to Figure 5 , please provide a structural diagram of another remote control device provided in the embodiment of the present application. The remote control device in the embodiment of the present application is a smart home gateway device for a smart home system, wherein the smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control device includes a data packet receiving unit 510, a data extraction unit 520 and an instruction sending unit 530.
[0117] Among them, the data packet receiving unit 510 is used for the smart home gateway device to receive the network data packet sent by the smart home debugging end, the subject information of the network data packet includes the instruction protocol type, and the entity data of the network data packet is the instruction data generated by the smart home debugging end according to the debugging instruction of the debugging control object; the data extraction unit 520 is used for the smart home gateway device to extract the subject information and entity data of the network data packet; the instruction sending unit 530 is used for the smart home gateway device to send the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0118] Based on the above embodiment, the network data packet further includes the length information of the instruction data;
[0119] The instruction sending unit 530 includes:
[0120] A length reading module, used for the smart home gateway device to read the length information of the instruction data at a preset length record position of the network data packet;
[0121] A data reading module, used for the smart home gateway device to read entity data of corresponding length from the network data packet according to the length information;
[0122] The entity data sending module is used for the smart home gateway device to send the read entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
[0123] The remote control device in the embodiment of the present application is used to implement the remote control method for the smart home gateway device in the aforementioned embodiment, and has the corresponding technical effect. For any incomplete description in the embodiment of the present application, please refer to the relevant description of the remote control method in the previous text.
[0124] It is worth noting that in the embodiment of the above-mentioned remote control device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0125] An embodiment of the present application provides an electronic device, in which the remote control device provided by the embodiment of the present application can be integrated, and the remote control method provided by the embodiment of the present application can be implemented. Figure 6 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6The electronic device includes: a processor 610, a memory 620, an input device 630, an output device 640 and a communication device 650. The number of processors 610 in the device can be one or more. Figure 6 In the example, a processor 610 is used. The number of memories 620 in the device may be one or more. Figure 6 A memory 620 is taken as an example. The processor 610, memory 620, input device 630, output device 640 and communication device 650 of the electronic device can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0126] The memory 620, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the remote control method described in any embodiment of the present application. The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 620 may further include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0127] The communication device 650 is used for network connection and data transmission with other smart home devices in any data communication mode (e.g., wirelessly). The communication device 650 does not specifically refer to a hardware module and its driver corresponding to a communication mode, but includes multiple communication modes that can be arranged on the device, such as a WiFi module, a Bluetooth module, and an infrared module.
[0128] The input device 630 can be used to receive input digital or character information, or operation commands. The output device 640 may include a speaker, a display screen, etc. It should be noted that the specific composition of the input device 630 and the output device 640 can be set according to actual conditions, for example, they can be set as a keyboard and a display screen respectively, or as a touch display screen in one body. It is understandable that in actual applications, the device also has other conventional components required to realize normal functions, such as a power module, etc.
[0129] The processor 610 executes the software programs, instructions and modules stored in the memory 620 to execute various functional applications and data processing of the device, that is, to implement the above-mentioned remote control method.
[0130] The electronic device provided above can be used to cooperate with other electronic devices to execute the remote control method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0131] An embodiment of the present application also provides a storage medium containing computer executable instructions, and the computer executable instructions are used to execute the remote control method of any of the above embodiments when executed by a computer processor.
[0132] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0133] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the remote control method described above, can also execute related operations in the remote control method provided in any embodiment of the present application, and have corresponding functions and beneficial effects.
[0134] The remote control apparatus, storage medium and device provided in the above embodiments can execute the remote control method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the remote control method provided in any embodiment of the present application.
[0135] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0136] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0137] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0138] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0139] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0140] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A remote control method for a smart home debugging terminal of a smart home system, characterized in that: The smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control method includes: The smart home debugging end confirms the instruction protocol type corresponding to the current debugging control object; The smart home debugging terminal generates instruction data corresponding to the instruction protocol type according to the received debugging instruction; The smart home debugging terminal generates a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data is used as entity data of the network data packet; The smart home debugging end sends the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
2. The remote control method according to claim 1, characterized in that: The instruction data includes an instruction number, the instruction number is confirmed according to the number of generated debug instructions, and the debug control object uses the same instruction number in a reply corresponding to the debug instruction.
3. The remote control method according to claim 1, characterized in that: The network data packet also includes length information of the instruction data, so that the smart home gateway device can extract the entity data according to the length information.
4. The remote control method according to claim 1, characterized in that: The instruction protocol type is recorded in the subject information in the form of a storage path of instruction sets corresponding to all instruction protocol types.
5. A remote control method for a smart home gateway device of a smart home system, characterized in that: The smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control method includes: The smart home gateway device receives a network data packet sent by the smart home debugging terminal, the subject information of the network data packet includes an instruction protocol type, and the entity data of the network data packet is instruction data generated by the smart home debugging terminal according to a debugging instruction for a debugging control object; The smart home gateway device extracts the subject information and entity data of the network data packet; The smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
6. The remote control method according to claim 5, characterized in that: The network data packet also includes length information of the instruction data; Correspondingly, the smart home gateway device sends the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data, including: The smart home gateway device reads the length information of the instruction data at a preset length record position of the network data packet; The smart home gateway device reads entity data of corresponding length from the network data packet according to the length information; The smart home gateway device sends the read entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
7. A remote control device, used for a smart home debugging terminal of a smart home system, characterized in that: The smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control device includes: A type confirmation unit, used by the smart home debugging terminal to confirm the instruction protocol type corresponding to the current debugging control object; An instruction receiving unit, configured for the smart home debugging terminal to generate instruction data corresponding to the instruction protocol type according to the received debugging instruction; A data packet generating unit, used for the smart home debugging terminal to generate a network data packet, the subject information of the network data packet includes the instruction protocol type, and the instruction data is used as the entity data of the network data packet; The data packet sending unit is used for the smart home debugging end to send the network data packet to the smart home gateway device, so that the smart home gateway device sends the entity data in the network data packet to the debugging control object for response.
8. A remote control device, a smart home gateway device for a smart home system, characterized in that: The smart home system includes a smart home debugging terminal and a smart home gateway device, and the remote control device includes: A data packet receiving unit, used for the smart home gateway device to receive a network data packet sent by the smart home debugging end, wherein the subject information of the network data packet includes an instruction protocol type, and the entity data of the network data packet is instruction data generated by the smart home debugging end according to a debugging instruction for a debugging control object; A data extraction unit, used for the smart home gateway device to extract subject information and entity data of the network data packet; The instruction sending unit is used for the smart home gateway device to send the entity data to the debugging control object according to the instruction protocol type, so that the debugging control object responds according to the instruction data.
9. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the electronic device cooperates with other electronic devices to implement the remote control method as described in any one of claims 1-6.
10. A non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the remote control method according to any one of claims 1 to 6 when executed by a computer processor.
