CN114024787B - Remote control method, device, equipment and storage medium for smart home - Google Patents

Remote control method, device, equipment and storage medium for smart home Download PDF

Info

Publication number
CN114024787B
CN114024787B CN202111173329.4A CN202111173329A CN114024787B CN 114024787 B CN114024787 B CN 114024787B CN 202111173329 A CN202111173329 A CN 202111173329A CN 114024787 B CN114024787 B CN 114024787B
Authority
CN
China
Prior art keywords
instruction data
information instruction
data packet
data block
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111173329.4A
Other languages
Chinese (zh)
Other versions
CN114024787A (en
Inventor
吴庆航
张叶蒙
许书昱
程宝平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111173329.4A priority Critical patent/CN114024787B/en
Publication of CN114024787A publication Critical patent/CN114024787A/en
Application granted granted Critical
Publication of CN114024787B publication Critical patent/CN114024787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a remote control method, a device, equipment and a storage medium for intelligent home, wherein the method comprises the following steps: receiving a user instruction, wherein the user instruction comprises one or more information instruction data packets; analyzing the information instruction data packet to obtain an information instruction data block; packaging the information instruction data block into a second instruction data packet, and sending the second instruction data packet to an Internet of things terminal; and enabling the terminal of the Internet of things to execute the operation corresponding to the second instruction data packet. The invention can improve the remote control capability based on communication and avoid the loss of control signals.

Description

Remote control method, device, equipment and storage medium for smart home
Technical Field
The invention relates to the technical field of communication, in particular to a remote control method, device, equipment and storage medium for intelligent home.
Background
With the increasing maturity of 5G large-scale commercial and artificial intelligence technologies, the basic communication services open a new round of innovation. The traditional communication represented by fixed phones and mobile phones is gradually evolving to the scene intelligent communication, the basic communication connection is also advancing from 70 hundred million people and people connection to 200 hundred million people and people/object real-time audio and video connection, the characteristics of unified global standard of carrier-grade voice communication protocol, standard interface and the like are fully utilized, the current communication technology and the global unified standard of protocol are multiplexed, and the situations of terminal diversification, operating system fragmentation, intercommunication barrier and the like of the Internet of things can be solved.
Currently, in conventional IMS (IP Multimedia Subsystem, IP multimedia system) communication, a dual tone multi frequency DTMF (Dual Tone Multi Frequency ) mode is adopted for signaling-based control, and DTMF signals are transmitted based on an intranet or a private network, so that reliability can be basically ensured. But today in the development of the internet of things, the terminal of the internet of things basically adopts a WIFI (wireless network) mode for access, the terminal of the internet of things to a platform belong to a public network for access, the network quality cannot be ensured, DTMF signals are easy to lose, and therefore remote control based on communication cannot be realized, and if the remote control fails.
Disclosure of Invention
The invention provides a remote control method, device, equipment and storage medium for intelligent home, and aims to solve the technical problem that remote control based on communication is easy to fail.
In order to achieve the above purpose, the invention provides a remote control method for an intelligent home, which comprises the following steps:
receiving a user instruction, wherein the user instruction comprises one or more information instruction data packets;
analyzing the information instruction data packet to obtain an information instruction data block;
and packaging the information instruction data block into a second instruction data packet, and sending the second instruction data packet to an internet of things terminal, so that the internet of things terminal executes the operation corresponding to the second instruction data packet.
Optionally, unpacking and compressing the information instruction data packet to obtain an information instruction data block.
Optionally, analyzing the mark type of the DTMF stream in the information instruction data packet;
analyzing the RTP stream in the information instruction data packet, and extracting the sub-data packet corresponding to the mark type from the RTP stream;
and extracting a DTMF value from the sub-data packet and encoding the DTMF value to obtain an information instruction data block.
Optionally, acquiring a sequence number value in the user instruction;
and packaging the information instruction data block and the sequence number value into the second instruction data packet.
Optionally, if there are a plurality of information instruction data packets, combining information instruction data blocks corresponding to the information instruction data packets to obtain an information instruction data set;
and packaging the information instruction data set and the sequence number value into the second instruction data packet.
Optionally, copying each information instruction data block according to preset copying times to obtain a copy data block;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as target data blocks;
and determining the information instruction data set according to the target data block.
Optionally, if there are a plurality of information instruction data packets, sequentially extracting a target data block corresponding to each information instruction data packet, and combining the extracted target data blocks to obtain an information instruction data set.
In order to achieve the above purpose, the present application further provides a remote control device for an intelligent home, where the remote control device for an intelligent home includes an instruction receiving module, a unpacking module, and a data packaging module; the instruction receiving module is used for acquiring a plurality of information instruction data packets; the unpacking module is used for respectively analyzing the information instruction data packets to obtain a plurality of information instruction data blocks; the data packaging module is used for packaging the information instruction data blocks into a second instruction data packet and sending the second instruction data packet to the internet of things terminal, so that the internet of things terminal executes the operation corresponding to the second instruction data packet.
In order to achieve the above purpose, the present application further provides a remote control device for an intelligent home, where the remote control device for an intelligent home includes a memory, a processor, and a remote control program for an intelligent home stored in the memory and capable of running on the processor, where the remote control program for an intelligent home is executed by the processor to implement a remote control method for the intelligent home.
In order to achieve the above purpose, the present application further provides a storage medium, where a remote control program of an intelligent home is stored on the storage medium, and when the remote control program of the intelligent home is executed by a processor, the remote control method of the intelligent home is implemented.
In the technical scheme of the invention, after receiving the user instruction, the user instruction comprises one or more information instruction data packets; analyzing the information instruction data packet to obtain an information instruction data block; packaging the information instruction data block into a second instruction data packet, and sending the second instruction data packet to the terminal of the Internet of things; and enabling the terminal of the Internet of things to execute the operation corresponding to the second instruction data packet. Compared with the prior art, the method and the device for analyzing and repackaging the information instruction data packet have the advantages that the information instruction data packet is analyzed and repackaged, the size of the repackaged second instruction data packet is smaller than that of the information instruction data packet, and the probability of packet loss is smaller when the data packet is smaller, so that the method and the device can improve the remote control capacity based on communication, avoid loss of control signals and improve the reliability of data packet transmission.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic block diagram of a remote control method for smart home according to an embodiment of the present invention;
fig. 2 is a flowchart of a remote control method of an intelligent home according to an embodiment of the present invention;
fig. 3 is a specific example diagram of a remote control method for smart home according to an embodiment of the present invention;
fig. 4 is a block diagram of a remote control method for smart home according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic hardware structure diagram of a remote control device for smart home provided in various embodiments of the present invention. The remote control equipment of the intelligent home comprises an execution module 01, a memory 02, a processor 03, a battery system and the like. Those skilled in the art will appreciate that the apparatus shown in fig. 1 may also include more or fewer components than shown, or may combine certain components, or may be arranged in different components. The processor 03 is respectively connected with the memory 02 and the execution module 01, the memory 02 stores a remote control program of the smart home, and the remote control program of the smart home is executed by the processor 03 at the same time.
The execution module 01 can receive the user instruction sent by the user, unpack and repackage the user instruction, then send the repackaged user instruction to the terminal of the internet of things, and send the feedback information to the processor 03.
The memory 02 is used for storing software programs and various data. The memory 02 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data or information created according to the use of the internet of things terminal, and the like. In addition, memory 02 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 03 is a control center of the processing platform, and utilizes various interfaces and lines to connect various parts of the whole internet of things terminal, and executes various functions of the internet of things terminal and processes data by running or executing software programs and/or modules stored in the memory 02 and calling data stored in the memory 02, so that the remote control equipment of the intelligent home is monitored integrally. The processor 03 may include one or more processing units; preferably, the processor 03 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 03.
Those skilled in the art will appreciate that the smart home remote control device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
According to the above hardware structure, various embodiments of the method of the present invention are presented.
Referring to fig. 2, in a first embodiment of the remote control method for smart home of the present invention, the remote control method for smart home includes:
step S100, receiving a user instruction, wherein the user instruction comprises one or more information instruction data packets;
currently, in conventional IMS (IP Multimedia Subsystem, IP multimedia system) communication, a dual tone multi frequency DTMF (Dual Tone Multi Frequency ) mode is adopted for signaling-based control, and DTMF signals are transmitted based on an intranet or a private network, so that reliability can be basically ensured. But today in the development of the internet of things, the terminal of the internet of things basically adopts a WIFI (wireless network) mode for access, the terminal of the internet of things to a platform belong to a public network for access, the network quality cannot be ensured, DTMF signals are easy to lose, and therefore remote control based on communication cannot be realized, and if the remote control fails. The DTMF signal is a user signaling between the telephone and the exchange, and unlike the pulse signal, each key information in the DTMF signal includes two signals of two frequencies transmitted simultaneously, wherein one signal of the two frequencies is a low frequency signal and the other signal of the two frequencies is a high frequency signal.
In order to reduce the possibility of DTMF signals being lost in the public network, the present invention proposes an embodiment. In this embodiment, the remote control method for smart home is applied to a multimedia communication platform, where the multimedia communication platform is in communication connection with a mobile phone of a user, and the multimedia communication platform is also in communication connection with terminals of the internet of things. When the user wants to control the smart home, the user instruction can be sent to the multimedia communication platform by inputting a key on the mobile phone, the user instruction comprises one or more information instruction data packets containing DTMF signals, and the multimedia communication platform can receive the one or more information instruction data packets containing DTMF signals through the public network.
Specifically, the internet of things terminal may include an access control system, an air conditioner, a television, or other internet of things home internet of things terminals. When the terminal of the Internet of things is an access control system, namely the access control system integrates a lightweight control protocol, the access control system is accessed into a communication network through a public network. When a visitor passes through the access control system, the visitor needs to input a room number to be accessed in the access control system, the access control system generates an access request according to the input room number, then the access request is converted into a corresponding owner mobile phone number, and a call is initiated to a user through a software development kit built in the access control system according to the mobile phone number. After the owner receives the call, if the owner considers that the door can be opened, the door opening password can be input through the dial plate, and the door opening password is the information instruction data packet and is transmitted to the multimedia communication platform in a DTMF mode. When the terminal of the Internet of things is an air conditioner, namely the air conditioner integrated lightweight control protocol, the terminal is connected into a communication network through a public network. If the user wants to adjust the switch of the air conditioner or adjust the temperature of the air conditioner, the user can dial a preset intelligent home service number, after the number is connected, the user can interact with the multimedia communication platform in a mode of continuously inputting the mobile phone keys, and an information instruction data packet is sent to the multimedia communication platform in a DTMF mode, so that the control of the air conditioner is realized.
Step S200, analyzing the information instruction data packet to obtain an information instruction data block;
in this embodiment, after the multimedia communication platform receives the information instruction data packet, the information instruction data packet needs to be parsed to obtain the information instruction data block. Each information instruction data packet can obtain an information instruction data block after being analyzed. The number of the information instruction data packets can be one or a plurality of. If there are multiple information instruction data packets, the multiple information instruction data packets together form a complete user instruction. The information instruction data block is obtained by analyzing an information instruction data packet in a preset mode, and at least comprises a DTMF value.
Because the information instruction data packet in the scheme is a DTMF signal input through a mobile phone keyboard, in a transmission mode of the DTMF signal, 8 audio signals are divided into 2 groups, 4 are arranged in each group, one group is a low-frequency group consisting of 4 low-frequency signals, and the other group is a high-frequency group consisting of 4 high-frequency signals. The signals in the low frequency group and the high frequency signals in the high frequency group are combined two by two to generate 16 combination modes, wherein the 16 combination modes represent 16 keys, namely 0-9, #, x and the like on the dial of the mobile phone respectively. For example, "4" is a superposition of 770HZ and 1209HZ signals, and "3" is a superposition of 697HZ and 1477HZ signals, etc. Therefore, each time the user presses a key on the mobile phone dial, a combination of high-frequency and low-frequency sinusoidal signals is sent to the multimedia communication platform, and after receiving the information instruction data packet, the multimedia communication platform parses the information instruction data packet to obtain the keys corresponding to the frequency combinations.
And step S300, packaging the information instruction data block into a second instruction data packet, and sending the second instruction data packet to an Internet of things terminal, so that the Internet of things terminal executes the operation corresponding to the second instruction data packet.
In this embodiment, one user instruction includes one or more information instruction data packets, and after the multimedia communication platform receives and parses the information instruction data packets, an information instruction data block is obtained. If the information instruction data packet contained in the same user instruction is one, an information instruction data block can be obtained through analysis, the information instruction data block is packaged into a second instruction data packet after analysis, and the second instruction data packet is sent to the Internet of things terminal corresponding to the user instruction, so that the Internet of things terminal executes corresponding operation according to the second instruction data packet; if the number of the information instruction data packets contained in the same user instruction is multiple, multiple information instruction data blocks can be obtained through analysis, and because the multiple information instruction data blocks belong to the same user instruction, the multiple information instruction data blocks are required to be combined, then the combined multiple information instruction data blocks are packaged into a second instruction data packet, and the second instruction data packet is sent to the internet of things terminal corresponding to the user instruction, so that the internet of things terminal executes corresponding operation according to the second instruction data packet. The second instruction data packet is a data packet packaged by a packaging mode set in advance by a person skilled in the art according to a preset packaging rule, the specific packaging mode can be changed at any time according to user requirements, and the second instruction data packet can be packaged according to a PPP/HDLC protocol or a LAPS protocol.
In this embodiment, the step of sending the second instruction packet to the terminal of the internet of things includes: judging whether a successful feedback signal is received and sent within a preset time length; if the successful feedback signal is received and sent within the preset time length, the second instruction data packet is not sent to the terminal of the Internet of things any more; if the preset duration does not receive the successful feedback signal, the second instruction data packet is sent to the terminal of the Internet of things again.
In this embodiment, for example, after the terminal of the internet of things receives the second instruction data packet sent by the multimedia communication platform, a feedback signal that the receiving and sending are successful is fed back to the multimedia communication platform. After the first second instruction data packet is successfully sent, the multimedia communication platform can judge whether a sending success feedback signal is received within a preset time period, if the multimedia communication platform receives the sending success feedback signal within the preset time period, the second instruction data packet is not sent to the internet of things terminal any more, and if the multimedia communication platform does not receive the sending success feedback signal within the preset time period, the second instruction data packet is sent to the internet of things terminal any more. The preset time length is a time length set in advance by a person skilled in the art according to the transmission process of the data packet, and can be adjusted at any time according to actual conditions.
In addition, because the user command has timeliness, if the multimedia communication platform does not receive the successful feedback signal, after the preset command effective duration, the second command data packet is stopped to be sent. The time length of the effective preset command is longer than the preset time length, and the time length of the effective preset command is set in advance by a person skilled in the art according to the household use condition and can be adjusted at any time according to the actual condition.
The scheme provides a control method of an intelligent home, and compared with a traditional intelligent home control method, the scheme provides a lightweight multimedia communication scheme for the intelligent home, wherein the scheme comprises a software development kit and a multimedia communication platform, wherein the software development kit is built in the intelligent home and is used for communication. According to the scheme, the remote control capability based on communication is provided, the size of the data packet is smaller than that of the traditional data packet, so that the loss rate of the data packet is reduced, meanwhile, after the data packet is sent, whether the data packet is sent again is judged through feedback of the terminal of the Internet of things, if a successful feedback signal is not received by the multimedia communication platform within a preset time period, the second instruction data packet is sent again, the risk of data loss is further avoided, and the reliability in the instruction transmission process is improved.
Further, according to the first embodiment of the present invention, in another embodiment of the present invention, the step of parsing the information instruction packet includes:
and unpacking and compressing the information instruction data packet to obtain an information instruction data block.
In this embodiment, the multimedia communication platform may perform signal conversion on the user command sent by the user, that is, convert the information command packet into the second command packet. Specifically, in the process of parsing the information instruction data packet, the information instruction data packet needs to be unpacked, and the data packet is compressed while unpacking, so as to obtain the information instruction data block. Through the analysis process, invalid fields in the information instruction data packet can be filtered, the length of the data packet is reduced, the packet loss rate during data packet transmission is reduced, and the data packet can be conveniently recombined and transmitted.
Specifically, the step of unpacking and compressing the information instruction data packet to obtain an information instruction data block includes:
analyzing the mark type of the DTMF stream in the information instruction data packet;
analyzing the RTP stream in the information instruction data packet, and extracting the sub-data packet corresponding to the mark type from the RTP stream;
and extracting a DTMF value from the sub-data packet and encoding the DTMF value to obtain an information instruction data block.
In this embodiment, the information instruction packet includes two data streams, namely a DTMF stream and an RTP (Real-time transport protocol) stream. In some embodiments, in the process of parsing the information instruction packet, firstly, parsing a flag type of a DTMF stream in an SDP in the SIP information instruction packet, then decoding an audio RTP stream, extracting a sub-packet corresponding to the flag type, and then parsing the sub-packet according to RFC2833 protocol, so as to extract an Event ID value and an End of Event identification bit in the sub-packet to obtain a DTMF value in the sub-packet. In some embodiments, the flag type is a number. And coding the obtained DTMF value by an And-SIP protocol to obtain the information instruction data block. In particular, various methods may be applied to obtain DTMF values from SIP information instruction packets, including at least the SIP info method, RFC2833 method, and INBAND method.
In one embodiment, the step of encapsulating the information instruction data block into a second instruction data packet includes:
acquiring a sequence number value in the user instruction;
and packaging the information instruction data block and the sequence number value into the second instruction data packet.
In this embodiment, the different information command data packets include different serial number values besides different DTMF signals, and the different serial number values mean that the user command acts on different smart home. For example, the object with the serial number of 01 time representing the user instruction is an air conditioner, the object with the serial number of 04 time representing the user instruction is a curtain, and the object with the serial number of 21 time representing the user instruction is a desk lamp. The corresponding relation between the serial number value and the terminal of the Internet of things can be set by a user. Before the second instruction packet is packaged, the sequence number value needs to be extracted from the user instruction, and then the number of information instruction data blocks contained in the parsed user instruction is judged. If the analyzed user instruction only comprises one information instruction data block, the extracted sequence number value is added to the information instruction data block, and the information instruction data block is packaged into a second instruction data packet. If the analyzed user instruction contains a plurality of information instruction data blocks, the information instruction data blocks are combined into an information instruction data set, and then the extracted sequence number value is added to the information instruction data set and packaged into a second instruction data packet. The serial number value can help the user to realize accurate control to intelligent house, avoids data transmission to take place the disorder.
In one embodiment, the step of encapsulating the information instruction data block and the sequence number value into a second instruction data packet comprises:
if a plurality of information instruction data packets exist, combining the information instruction data blocks to obtain an information instruction data set;
and packaging the information instruction data set and the sequence number value into the second instruction data packet.
In this embodiment, after the information instruction data packet is unpacked and compressed into the information instruction data block, the information instruction data block needs to be repackaged into the data packet, so that the user instruction can be sent to the corresponding internet of things terminal through the network.
In the user instruction, the same user instruction comprises one or more different information instruction data packets, and because each information instruction data packet can be analyzed to obtain one information instruction data block, the analyzed user instruction comprises one or more information instruction data blocks. If the analyzed user instruction only comprises one information instruction data block, the second instruction data packet can be packaged after the sequence number value is added to the information instruction data block. If the parsed user instruction contains a plurality of information instruction data blocks, the data blocks together form the user instruction, so that the plurality of information instruction data blocks need to be combined into an information instruction data set, and then a sequence number value is added to the information instruction data set and packaged into a second instruction data packet. The second instruction data packet is a data packet set by a person skilled in the art according to a preset rule encapsulation rule, wherein the second instruction data packet is used for transmitting a user instruction sent by a user to the internet of things terminal from the multimedia communication platform through a network so as to assist the user in controlling the internet of things terminal.
In an embodiment, the step of combining the information instruction data blocks to obtain an information instruction data set includes:
copying each information instruction data block according to preset copying times to obtain a copied data block;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as target data blocks; and determining the information instruction data set according to the target data block.
In this embodiment, in order to obtain a plurality of identical second instruction packets, after the information instruction packets are parsed to obtain information instruction data blocks, the information instruction data blocks need to be copied according to a preset number of copying times to obtain duplicate data blocks identical to the information instruction data blocks, then the identical information instruction data blocks and duplicate data blocks are set as target data blocks, and an information instruction data set is determined according to the target data blocks.
In the user instruction, the same user instruction comprises one or more different information instruction data packets, and because each information instruction data packet can be analyzed to obtain one information instruction data block, the analyzed user instruction comprises one or more information instruction data blocks. In some embodiments, the user instruction includes only one block of information instruction data, the block of user instruction data is replicated to obtain one or more duplicate blocks of data that are identical to the block of user instruction data, and the blocks of information instruction data and duplicate blocks of data are set as target blocks of data, where each target block of data can be encapsulated as a second instruction packet. In other embodiments, the user instruction includes a plurality of different information instruction data blocks, and if the user instruction includes the plurality of different information instruction data blocks, the information instruction data blocks are copied the same number of times, and then each information instruction data block obtains one or more corresponding copied data blocks, and each completely same information instruction data block and copied data block are set as a group of target data blocks, and the number of second instruction data packets obtained by encapsulation is the same as the number of target data blocks in each group. The preset copying times are set in advance by a person skilled in the art according to actual rules, and can be adjusted at any time according to specific conditions.
According to the scheme, the information instruction data block is copied, one or more groups of multiple completely identical target data blocks can be generated, and multiple completely identical second instruction data packets are generated, so that the phenomenon of packet loss when only one second instruction data packet exists is avoided, and the stability of signal transmission is enhanced.
In one embodiment, the step of determining the information instruction data set from the target data block comprises:
and sequentially extracting a target data block corresponding to each information instruction data packet, and combining the extracted target data blocks to obtain an information instruction data set.
In this embodiment, if only one information instruction packet exists in the user instruction, it is not necessary to combine the target data blocks; if there are a plurality of information instruction data packets, the target data block needs to be recombined after the information instruction data block is copied. Because the target data block corresponding to the same information instruction data packet is one type, the information instruction data blocks are multiple, and the steps of combining are specifically as follows: one is extracted from each target data block to be combined to obtain an information instruction data set. Thereafter, the specific steps of the combination are repeated until all the target data blocks are combined into the information instruction data set. The process of converting the information instruction packet into the second instruction packet may take a variety of forms, one of which is described below.
In one embodiment, as shown in fig. 3, the user instruction includes two information instruction data packets, named Frame1 And Frame2, respectively, firstly analyzes the flag type of the DTMF stream in Frame1 to obtain flag type 106, then decodes the audio RTP stream in Frame1, extracts the sub-data packet with flag type 106, then analyzes the extracted sub-data packet according to RFC2833 protocol, extracts the Event ID value And the End of Event identification bit to obtain the DTMF value, and then encodes the obtained DTMF value by the add-SIP protocol to obtain the bitsfream 1 data block. And obtaining the Bitstream2 data block by the Frame2 data packet according to the analysis mode of the Frame1 data packet. The preset number of copies in this embodiment is 1. Therefore, the bitsfream 1 data block is copied into a bitsfream 1+ data block, meanwhile, the bitsfream 2 data block is copied into a bitsfream 2+ data block, wherein the bitsfream 1 data block and the bitsfream 1+ data block are a group of target data blocks corresponding to a Frame1 data Packet, the bitsfream 2 data block and the bitsfream 2+ data block are another group of data blocks corresponding to a Frame2 data Packet, then the bitsfream 1 data block and the bitsfream 2 data block are combined, then a sequence number value corresponding to a user instruction is added, packaging is conducted to obtain a second instruction data Packet, the second instruction data Packet is named as Packet1, the bitsfream 1+ data block and the bitsfream 2+ data block are combined, then a sequence number value corresponding to the user instruction is added, and packaging is conducted to obtain a second instruction data Packet2. The Packet1 and the Packet2 contain the same user instruction, so that even if the Packet1 is lost in the process of being sent to the terminal, the terminal can still acquire the user instruction through the Packet2.
By means of copying the original information instruction data blocks and recombining the original information instruction data blocks into a plurality of identical instruction data packets, guarantee can be added for transmission of user instructions, and data loss in the transmission process of the user instructions is reduced.
As shown in fig. 4, the present invention further provides a remote control device for an intelligent home, where the remote control device for an intelligent home includes:
an instruction receiving module a10, configured to receive a user instruction, where the user instruction includes one or more information instruction data packets;
the unpacking module A20 is used for analyzing the information instruction data packet to obtain an information instruction data block;
and the data packaging module A30 is used for packaging the information instruction data block into a second instruction data packet and sending the second instruction data packet to the Internet of things terminal so that the Internet of things terminal executes the operation corresponding to the second instruction data packet.
Optionally, the unpacking module a20 is configured to:
and unpacking and compressing the information instruction data packet to obtain an information instruction data block.
Optionally, the unpacking module a20 is configured to:
analyzing the mark type of the DTMF stream in the information instruction data packet;
analyzing the RTP stream in the information instruction data packet, and extracting the sub-data packet corresponding to the mark type from the RTP stream;
and extracting a DTMF value from the sub-data packet, and encoding the DTMF value to obtain an information instruction data block.
Optionally, the data encapsulation module a30 is configured to:
acquiring a sequence number value in the user instruction;
and packaging the information instruction data block and the sequence number value into the second instruction data packet.
Optionally, the data encapsulation module a30 is configured to:
if a plurality of information instruction data packets exist, combining information instruction data blocks corresponding to the information instruction data packets to obtain an information instruction data set;
and packaging the information instruction data set and the sequence number value into the second instruction data packet.
Optionally, the data encapsulation module a30 is configured to:
copying each information instruction data block according to preset copying times to obtain a copied data block;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as target data blocks;
and determining the information instruction data set according to the target data block.
Optionally, the data encapsulation module a30 is configured to:
and sequentially extracting a target data block corresponding to each information instruction data packet, and combining the extracted target data blocks to obtain an information instruction data set.
The steps of implementing each functional module of the remote control device of the smart home may refer to each embodiment of the remote control method of the smart home according to the present invention, which is not described herein.
The invention also provides equipment, which comprises a memory, a processor and a remote control program of the intelligent home, wherein the remote control program of the intelligent home is stored in the memory and can run on the processor, and the remote control program of the intelligent home is used for executing the method of each embodiment of the invention.
The invention further provides a storage medium, on which a remote control program of the smart home is stored. The storage medium includes a computer readable storage medium, which may be a Memory in fig. 1, or may be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory ), a magnetic disk, and an optical disc, where the computer storage medium includes several instructions to cause an internet of things terminal device (which may be a mobile phone, a computer, a server, an internet of things terminal, or a network device) with a processor to perform the methods described in the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth", "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and the specific meaning of the above terms in the present invention will be understood by those of ordinary skill in the art depending on the specific circumstances.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, the scope of the present invention is not limited thereto, and it should be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications and substitutions of the above embodiments may be made by those skilled in the art within the scope of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. The remote control method for the intelligent home is characterized by comprising the following steps of:
receiving a user instruction, wherein the user instruction comprises one or more information instruction data packets;
analyzing the information instruction data packet to obtain an information instruction data block;
packaging the information instruction data block into a second instruction data packet, and sending the second instruction data packet to an internet of things terminal, so that the internet of things terminal executes an operation corresponding to the second instruction data packet;
wherein the step of encapsulating the information instruction data block into a second instruction data packet includes:
acquiring a sequence number value in the user instruction;
encapsulating the information instruction data block and the sequence number value into the second instruction data packet;
wherein the step of encapsulating the information instruction data block and the sequence number value into a second instruction data packet comprises:
if a plurality of information instruction data packets exist, copying each information instruction data block according to preset copying times to obtain a copy data block;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as target data blocks;
sequentially extracting a target data block corresponding to each information instruction data packet, and combining the extracted target data blocks to obtain an information instruction data set;
and packaging the information instruction data set and the sequence number value into the second instruction data packet.
2. The method for remotely controlling an intelligent home according to claim 1, wherein the step of parsing the information instruction packet to obtain an information instruction data block comprises:
and unpacking and compressing the information instruction data packet to obtain an information instruction data block.
3. The method for remotely controlling an intelligent home according to claim 2, wherein the step of unpacking and compressing the information instruction packet to obtain an information instruction data block comprises:
analyzing the mark type of the DTMF stream in the information instruction data packet;
analyzing the RTP stream in the information instruction data packet, and extracting the sub-data packet corresponding to the mark type from the RTP stream;
and extracting a DTMF value from the sub-data packet, and encoding the DTMF value to obtain an information instruction data block.
4. The utility model provides a remote control device of intelligent house, its characterized in that, the remote control device of intelligent house includes:
the instruction receiving module is used for receiving a user instruction, and the user instruction comprises one or more information instruction data packets;
the unpacking module is used for analyzing the information instruction data packet to obtain an information instruction data block;
the data packaging module is used for packaging the information instruction data block into a second instruction data packet and sending the second instruction data packet to an internet of things terminal so that the internet of things terminal executes the operation corresponding to the second instruction data packet, wherein the data packaging module is specifically used for acquiring a sequence number value in the user instruction; if a plurality of information instruction data packets exist, copying each information instruction data block according to preset copying times to obtain a copy data block; setting the information instruction data block and a copy data block corresponding to the information instruction data block as target data blocks; sequentially extracting a target data block corresponding to each information instruction data packet, and combining the extracted target data blocks to obtain an information instruction data set; and packaging the information instruction data set and the sequence number value into the second instruction data packet.
5. A remote control device for a smart home, comprising a memory, a processor, and a remote control program for a smart home stored on the memory and executable on the processor, the remote control program for a smart home, when executed by the processor, implementing the steps of the remote control method for a smart home as claimed in any one of claims 1 to 4.
6. A storage medium, wherein a remote control program of an intelligent home is stored on the storage medium, and the remote control program of the intelligent home realizes the steps of the remote control method of the intelligent home according to any one of claims 1 to 4 when being executed by a processor.
CN202111173329.4A 2021-10-08 2021-10-08 Remote control method, device, equipment and storage medium for smart home Active CN114024787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111173329.4A CN114024787B (en) 2021-10-08 2021-10-08 Remote control method, device, equipment and storage medium for smart home

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111173329.4A CN114024787B (en) 2021-10-08 2021-10-08 Remote control method, device, equipment and storage medium for smart home

Publications (2)

Publication Number Publication Date
CN114024787A CN114024787A (en) 2022-02-08
CN114024787B true CN114024787B (en) 2023-07-14

Family

ID=80055566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111173329.4A Active CN114024787B (en) 2021-10-08 2021-10-08 Remote control method, device, equipment and storage medium for smart home

Country Status (1)

Country Link
CN (1) CN114024787B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114460855B (en) * 2022-02-10 2022-09-16 深圳信恳智能电子有限公司 AIOT module based on intelligence house

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177557A (en) * 2012-12-28 2013-06-26 吴玉胜 Household appliance control method and system based on intelligent device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1388689A (en) * 2002-06-25 2003-01-01 南京东大移动互联技术有限公司 Comprehensive household radio multimedia access equipment
WO2008128374A1 (en) * 2007-04-18 2008-10-30 Thomson Licensing Method and device for remote control of an appliance
CN102394994B (en) * 2011-11-02 2013-09-25 上海市共进通信技术有限公司 Method for realizing remote simulation key control based on telephone
US9774497B2 (en) * 2015-01-06 2017-09-26 Afero, Inc. System and method for implementing internet of things (IOT) remote control applications
CN105045108B (en) * 2015-05-26 2018-11-20 重庆房慧科技有限公司 Smart home data transmission method in power carrier and ad hoc network radio frequency system
CN104898450A (en) * 2015-06-16 2015-09-09 重庆本原致创科技发展有限公司 Smart home data transmission method in a power line communication and Ad-Hoc network radiofrequency system
CN104936312B (en) * 2015-06-18 2018-04-27 山东建筑大学 The method of work of Internet of Things intelligent node with data prediction and equipment Management Function
CN109656167B (en) * 2018-12-14 2022-02-22 广州河东科技有限公司 Communication control system and method based on intelligent equipment
CN112305928A (en) * 2019-07-31 2021-02-02 广东美的制冷设备有限公司 Household appliance control method, household appliance control device and storage medium
CN112671661A (en) * 2020-12-24 2021-04-16 广州市网优优信息技术开发有限公司 Internet of things data transmission method and system
CN113114927A (en) * 2021-03-10 2021-07-13 视联动力信息技术股份有限公司 Equipment control method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177557A (en) * 2012-12-28 2013-06-26 吴玉胜 Household appliance control method and system based on intelligent device

Also Published As

Publication number Publication date
CN114024787A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN111246033B (en) Data transmission method, device, equipment and readable storage medium
KR101205386B1 (en) Audio processing method, system and control server
CN101237333B (en) An universal service platform for supporting multiple services based on multi-network fusion
CN108932948B (en) Audio data processing method and device, computer equipment and computer readable storage medium
CN105429958A (en) Enterprise application platform system based on Android development
CN101123641A (en) Monitoring method for wireless network call monitoring device based on distributed architecture
CN110650307A (en) QT-based audio and video plug flow method, device, equipment and storage medium
CN104506287A (en) Real-time sound communication method under TD-LTE (time division-long term evolution) emergency communication
CN114024787B (en) Remote control method, device, equipment and storage medium for smart home
CN106817350A (en) Message processing method and device
CN102833436A (en) Method and system for achieving VOIP (Voice over Internet Phone) agency
CN113473395B (en) Message processing method, device, medium and electronic equipment
CN109862386A (en) Live data transmission method and device
CN104509083A (en) Communication system, method, and program
CN103684970A (en) Transmission method and thin terminals for media data streams
CN101959143A (en) Method for selectively recording during group calling of dispatching desk in digital trunking system
CN106973300A (en) A kind of mobile Internet net cast platform
CN107517202B (en) Binary sending and receiving method of SIP signaling
CN102158615A (en) LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server
CN101394407A (en) Video stream media bearing method and video stream media bearing system
CN112887497B (en) Communication method, apparatus and computer storage medium
US7545738B2 (en) Network telephony system with enhanced interconversion of audio signals and IP packets
KR101423143B1 (en) Transmitting and Receiving System of Voice and Method Thereof
CN111092859B (en) Request data processing method and device and storage medium
CN112165636B (en) D2D network multimedia stream code rate adjusting method and multimedia stream real-time transmission system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant