CN114024787A - 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
CN114024787A
CN114024787A CN202111173329.4A CN202111173329A CN114024787A CN 114024787 A CN114024787 A CN 114024787A CN 202111173329 A CN202111173329 A CN 202111173329A CN 114024787 A CN114024787 A CN 114024787A
Authority
CN
China
Prior art keywords
instruction data
information instruction
data packet
remote control
data block
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.)
Granted
Application number
CN202111173329.4A
Other languages
Chinese (zh)
Other versions
CN114024787B (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 remote control device, equipment and a storage medium for smart 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 the terminal of the Internet of things; and the terminal of the Internet of things executes 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, a remote control device, remote control equipment and a storage medium for smart home.
Background
With the increasing maturity of 5G large-scale commercial and artificial intelligence technologies, a new revolution of innovation is started by basic communication services. Traditional communication represented by fixed phones and mobile phones is gradually evolving to scene intelligent communication, basic communication connection is also advancing from connection of 70 hundred million people to real-time audio and video connection of 200 hundred million people and people/objects, characteristics of telecommunication level voice communication protocol global standard unification, interface specification and the like are fully utilized, existing communication technology and protocol global unified standard are multiplexed, and conditions of terminal diversification, operating system fragmentation, intercommunication barrier and the like of the internet of things can be solved.
At present, in a conventional IMS (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 guaranteed. However, in the development of the internet of things today, the internet of things terminal basically adopts a WIFI (wireless network) mode for access, the internet of things terminal is accessed to a platform from a public network, network quality cannot be guaranteed, DTMF signals are easily lost, and therefore remote control based on communication cannot be achieved, and if the remote control fails.
Disclosure of Invention
The invention provides a remote control method, a remote control device, equipment and a storage medium for smart home, and aims to solve the technical problem that remote control based on communication is easy to fail.
In order to achieve the purpose, the invention provides a remote control method of smart 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 the Internet of things terminal, so that the Internet of things terminal executes the operation corresponding to the second instruction data packet.
Optionally, the information instruction data packet is unpacked and compressed to obtain an information instruction data block.
Optionally, parsing a flag type of the DTMF stream in the information instruction data packet;
analyzing an RTP stream in the information instruction data packet, and extracting a sub-data packet corresponding to the mark type from the RTP stream;
extracting DTMF values from the sub data packets and coding the DTMF values to obtain information instruction data blocks.
Optionally, a sequence number value in the user instruction is acquired;
and packaging the information instruction data block and the sequence number value into the second instruction data packet.
Optionally, 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 group;
and packaging the information instruction data group and the sequence number value into the second instruction data packet.
Optionally, copying each information instruction data block according to a preset copying number 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 a target data block;
and determining the information instruction data group 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 group.
In order to achieve the above object, 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, an unpacking module, and a data encapsulation 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 plurality of 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 object, the present application further provides a remote control device for a smart home, where the remote control device for a smart home includes a memory, a processor, and a remote control program stored in the memory and running on the processor, and the remote control program for a smart home is executed by the processor to implement the remote control method for a smart home.
In order to achieve the above object, the present application further provides a storage medium, where a remote control program of a smart home is stored on the storage medium, and the remote control program of the smart home is executed by a processor to implement the remote control method of the smart home.
In the technical scheme of the invention, after receiving a 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 the terminal of the Internet of things executes the operation corresponding to the second instruction data packet. The invention has the advantages that the user instruction is directly sent to the terminal of the internet of things, so compared with the prior art, the invention has an additional process of analyzing and repackaging the information instruction data packet, the size of the repackaged second instruction data packet is smaller than that of the information instruction data packet by analyzing and repackaging the information instruction data packet, and the possibility of packet loss is smaller as the data packet is smaller, so the invention can improve the remote control capability based on communication, avoid the 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic block structure 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 for smart home according to an embodiment of the present invention;
fig. 3 is a diagram illustrating an embodiment of a remote control method for a smart home;
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 merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a remote control device of an intelligent home provided in each embodiment 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 those shown, or combine certain components, or a different arrangement of components. The processor 03 is connected to 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 may unpack and repackage the user instruction sent by the receiving user, send the repackaged user instruction to the internet of things terminal, and simultaneously feed back the information to the processor 03.
The memory 02 may be used to store 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, or the like. Further, the 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, is connected with each part of the whole internet of things terminal by using various interfaces and lines, and executes various functions and processing data of the internet of things terminal by running or executing software programs and/or modules stored in the memory 02 and calling data stored in the memory 02, so as to perform overall monitoring on the remote control device of the smart home. Processor 03 may include one or more processing units; preferably, the processor 03 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. 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 remote control device configuration of the smart home illustrated in fig. 1 does not constitute a limitation of the device and may include more or fewer components than those illustrated, or some components in combination, or a different arrangement of components.
Various embodiments of the method of the present invention are presented in terms of the above-described hardware architecture.
Referring to fig. 2, in a first embodiment of the remote control method for smart homes of the present invention, the remote control method for smart homes includes:
step S100, receiving a user instruction, wherein the user instruction comprises one or more information instruction data packets;
at present, in a conventional IMS (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 guaranteed. However, in the development of the internet of things today, the internet of things terminal basically adopts a WIFI (wireless network) mode for access, the internet of things terminal is accessed to a platform from a public network, network quality cannot be guaranteed, DTMF signals are easily lost, and therefore remote control based on communication cannot be achieved, and if the remote control fails. The DTMF signal is a user signaling between a telephone and an exchange, and is different from a pulse signal in that each key information in the DTMF signal comprises two frequency signals which are simultaneously transmitted, wherein one frequency signal is a low-frequency signal, and the other frequency signal is a high-frequency signal.
In order to reduce the possibility of losing DTMF signals in the public network, the invention provides an embodiment. In this embodiment, the remote control method for the smart home is applied to a multimedia communication platform, 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 a user wants to control the smart home, a user instruction can be sent to the multimedia communication platform in a mode of inputting keys 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 the DTMF signals through the public network.
Specifically, the internet of things terminal can comprise an access control system, an air conditioner, a television or other internet of things home internet of things terminals. When the internet of things terminal is an access control system, the access control system integrates a lightweight control protocol and accesses 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 into the access control system, the access control system generates an access request according to the input room number, then converts the access request into a corresponding mobile phone number of an owner, and calls 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, the door opening password is an information instruction data packet, and the information instruction data packet is transmitted to the multimedia communication platform in a DTMF mode. When the internet of things terminal is an air conditioner, the air conditioner integrates a lightweight control protocol and 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 keys of the mobile phone, 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 analyzed to obtain an information instruction data block. And each information instruction data packet is analyzed to obtain an information instruction data block. The number of the information instruction packets may be one or more. If the number of the information instruction data packets is multiple, the multiple information instruction data packets jointly form a complete user instruction. The information instruction data block is obtained by analyzing an information instruction data packet in a preset mode, wherein the information instruction data block 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 the transmission mode of the DTMF signal, audio signals with 8 frequencies are divided into 2 groups, each group is 4, 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 pairwise to generate 16 combination modes, and the 16 combination modes represent 16 keys, namely represent keys 0-9, #, #andthe like on a mobile phone dial respectively. For example, "4" is a superposition of 770HZ and 1209HZ signals, "3" is a superposition of 697HZ and 1477HZ signals, and so on. Therefore, each time a user presses a key on the dial plate of the mobile phone, a high-frequency and low-frequency sinusoidal signal combination is sent to the multimedia communication platform, and after receiving the information instruction data packet, the multimedia communication platform analyzes the information instruction data packet to obtain keys corresponding to the frequency combinations.
Step S300, 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.
In this embodiment, one user command includes one or more information command data packets, and after receiving and analyzing the information command data packets, the multimedia communication platform obtains information command data blocks. If the number of the information instruction data packets 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 information instruction data packets contained in the same user instruction are multiple, multiple information instruction data blocks can be obtained through analysis, the multiple information instruction data blocks all belong to the same user instruction, and therefore the multiple information instruction data blocks need to be combined, the multiple combined 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 can execute corresponding operation according to the second instruction data packet. The second instruction data packet is a data packet which is encapsulated in an encapsulation mode set in advance by a person skilled in the art according to a preset encapsulation rule, the specific encapsulation mode can be changed at any time according to user requirements, and the second instruction data packet can be encapsulated according to a PPP/HDLC protocol or an LAPS protocol.
In this embodiment, the step of sending the second instruction packet to the internet of things terminal includes: judging whether a successful sending feedback signal is received or not within a preset time length; if the successful sending 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; and if the preset duration does not receive the feedback signal which is successfully sent, sending the second instruction data packet to the Internet of things terminal again.
In this embodiment, after the terminal of the internet of things receives the second instruction data packet sent by the multimedia communication platform, a feedback signal of successful sending and receiving is fed back to the multimedia communication platform. After the first second instruction data packet is successfully sent, the multimedia communication platform judges whether a feedback signal of successful sending is received within a preset time length, if the multimedia communication platform receives the feedback signal of successful sending within the preset time length, the multimedia communication platform does not send the second instruction data packet to the internet of things terminal any more, and if the multimedia communication platform does not receive the feedback signal of successful sending within the preset time length, the multimedia communication platform sends the second instruction data packet to the internet of things terminal again. The preset time length is a time length preset 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 instruction has timeliness, if the multimedia communication platform does not receive the feedback signal of successful sending all the time, after the instruction effective duration is preset, the sending of the second instruction data packet is also stopped. The preset instruction effective duration is longer than the preset duration, is a time length preset 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.
Compared with the traditional intelligent home control method, the scheme provides a lightweight multimedia communication scheme oriented to the intelligent home, and the scheme comprises a software development kit and a multimedia communication platform which are built in the intelligent home and used for communication. The scheme provides a remote control capability based on communication, the size of a data packet in the scheme is smaller than that of a 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 the feedback of the Internet of things terminal, if the multimedia communication platform does not receive a feedback signal of successful sending within a preset time length, a 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, based on the first embodiment of the present solution, in another embodiment of the present solution, 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 a user instruction sent by a user, that is, convert the information instruction data packet into a second instruction data 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 being unpacked, 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 when the data packet is sent is reduced, and the data packet is conveniently recombined and sent.
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 an RTP stream in the information instruction data packet, and extracting a sub-data packet corresponding to the mark type from the RTP stream;
extracting DTMF values from the sub data packets and coding the DTMF values to obtain information instruction data blocks.
In this embodiment, the information instruction packet includes two data streams, i.e., a DTMF stream and an RTP (Real-time Transport Protocol) stream. In some embodiments, in the process of parsing the information instruction packet, the flag type of the DTMF stream in the SDP in the SIP information instruction packet is parsed first, then the audio RTP stream is decoded, the sub-packet corresponding to the flag type is extracted, and then the sub-packet is parsed according to the RFC2833 protocol, so as to extract the Event ID value and the End of Event identification bit in the sub-packet to obtain the DTMF value in the sub-packet. In some embodiments, the flag type is a number. And carrying out the encoding of the Add-SIP protocol on the acquired DTMF value to obtain an information instruction data block. Specifically, obtaining DTMF values from the SIP information instruction packet may apply various methods including at least the SIP info method, the RFC2833 method, and the inbound method.
In one embodiment, the step of encapsulating the information instruction data block into a second instruction data packet includes:
acquiring a serial 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, different information instruction data packets include different sequence number values in addition to different DTMF signals, and the different sequence number values mean that a user instruction acts on different smart homes. For example, the object representing the action of the user instruction is an air conditioner when the serial number value is 01, the object representing the action of the user instruction when the serial number value is 04 is a curtain, and the object representing the action of the user instruction when the serial number value is 21 is a table lamp. The corresponding relation between the serial number value and the internet of things terminal can be set by a user. Before the second instruction data packet is encapsulated, the sequence number value needs to be extracted from the user instruction, and then the number of information instruction data blocks contained in the analyzed user instruction is judged. And if the analyzed user instruction only contains one information instruction data block, adding the extracted sequence number value to the information instruction data block, and packaging the information instruction data block into a second instruction data packet. If the analyzed user command contains a plurality of information command data blocks, combining the plurality of information command data blocks into an information command data group, then adding the extracted sequence number value to the information command data group, and packaging the information command data group into a second command data packet. The serial number value can help a user to accurately control the smart home, and disorder of data transmission is avoided.
In one embodiment, the step of encapsulating the information instruction data block and the sequence number value into a second instruction data packet includes:
if a plurality of information instruction data packets exist, combining the information instruction data blocks to obtain an information instruction data group;
and packaging the information instruction data group 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 a data packet, and the user instruction can be sent to the corresponding internet of things terminal through the network.
In the user instruction, the same user instruction contains one or more different information instruction data packets, and each information instruction data packet can be analyzed to obtain one information instruction data block, so that the analyzed user instruction contains one or more information instruction data blocks. If the analyzed user command only contains one information command data block, the information command data block can be packaged into a second command data packet after a serial number value is added to the information command data block. If the analyzed user command contains a plurality of information command data blocks, the data blocks jointly form the user command, so that the plurality of information command data blocks need to be combined into an information command data group, and then the information command data group is added with a serial number value and packaged into a second command data packet. The second instruction data packet is set by a technical person in the field according to a preset rule, and is used for transmitting a user instruction sent by a user from the multimedia communication platform to the internet of things terminal 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 group includes:
copying each information instruction data block according to preset copying times to obtain copied data blocks;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as a target data block; and determining the information instruction data group according to the target data block.
In this embodiment, in order to obtain a plurality of identical second instruction data packets, after the information instruction data packet is analyzed to obtain an information instruction data block, the information instruction data block needs to be copied according to a preset number of copies to obtain a copied data block identical to the information instruction data block, then the identical information instruction data block and copied data block are set as target data blocks, and an information instruction data group is determined according to the target data blocks.
In the user instruction, the same user instruction contains one or more different information instruction data packets, and each information instruction data packet can be analyzed to obtain one information instruction data block, so that the analyzed user instruction contains one or more information instruction data blocks. In some embodiments, if the user command includes only one information command data block, the user command data block is copied to obtain one or more copied data blocks identical to the user command data block, and the information command data block and the copied data blocks are set as target data blocks, where each target data block can be encapsulated into a second command packet. In other embodiments, the user instruction includes a plurality of different information instruction data blocks, and each information instruction data block is copied the same number of times, so that each information instruction data block obtains one or more corresponding copied data blocks, each completely same information instruction data block and copied data block are set as a group of target data blocks, and the number of the second instruction data packets obtained by encapsulation is the same as the number of each group of target data blocks. The preset copying times are set in advance according to actual rules by technicians in the field and can be adjusted at any time according to specific conditions.
According to the scheme, the information instruction data blocks are copied, one group or a plurality of groups of multiple completely consistent 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 set of information instruction data 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 group.
In this embodiment, if only one information instruction data packet exists in the user instruction, the target data block does not need to be combined; if a plurality of information instruction data packets exist, after the information instruction data blocks are copied, the target data blocks need to be recombined. Because the target data block corresponding to the same information instruction data packet is one, the information instruction data blocks are multiple, and the combination steps are as follows: one of each kind of target data block is extracted and combined to obtain an information instruction data group. Thereafter, the specific steps of the combination are repeated until all the target data blocks are combined into the information instruction data group. The process of converting the information instruction packet into the second instruction packet may take various forms, one of which is described below.
In an embodiment, as shown in fig. 3, the user instruction includes two information instruction data packets, which are named as Frame1 And Frame2, And the flag type of the DTMF stream in Frame1 is first parsed to obtain a flag type of 106, then the audio RTP stream in Frame1 is decoded, the sub packet with the flag type of 106 is extracted, then the extracted sub packet is parsed according to the RFC2833 protocol, And an Event ID value And an End of Event identification bit are extracted to obtain a DTMF value, And then the obtained DTMF value is encoded according to the And-SIP protocol to obtain a Bitstream1 data block. And (5) obtaining the Bitstream2 data block by the Frame2 data packet according to the analysis mode of the Frame1 data packet. The preset number of times of copying in this embodiment is 1. Thus, the Bitstream1 data block is copied into a Bitstream1+ data block, and the Bitstream2 data block is copied into a Bitstream2+ data block, where the Bitstream1 data block and the Bitstream1+ data block are a set of target data blocks corresponding to the Frame1 data Packet, and the Bitstream2 data block and the Bitstream2+ data block are another set of data blocks corresponding to the Frame2 data Packet, and then the Bitstream1 data block is combined with the Bitstream2 data block, and then the sequence number value corresponding to the user command is added and packed to obtain a second command data Packet, which is named Packet1, and the Bitstream1+ data block is combined with the Bitstream2+ data block, and then the sequence number value corresponding to the user command is added and then the sequence number value corresponding to the user command Packet is packed to obtain a second command Packet pad 2. The Packet1 and the Packet2 contain the same user command, so that even if the Packet1 is lost in the process of being sent to the terminal, the terminal can still obtain the user command through the Packet 2.
By means of copying the original information instruction data block and recombining the original information instruction data block into a plurality of same instruction data packets, guarantee can be added to the transmission of the user instruction, and the data loss in the user instruction transmission process is reduced.
As shown in fig. 4, the present invention further provides a remote control device for smart home, where the remote control device for smart home includes:
an instruction receiving module A10, configured to receive a user instruction, where the user instruction includes one or more information instruction 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 configured to package the information instruction data block into a second instruction data packet, and send the second instruction data packet to the Internet of things terminal, so that the Internet of things terminal executes an 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 an RTP stream in the information instruction data packet, and extracting a sub-data packet corresponding to the mark type from the RTP stream;
extracting DTMF values from the sub data packets, and coding the DTMF values to obtain information instruction data blocks.
Optionally, the data encapsulation module a30 is configured to:
acquiring a serial 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 group;
and packaging the information instruction data group 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 copied data blocks;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as a target data block;
and determining the information instruction data group 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 group.
The steps implemented by each functional module of the remote control device of the smart home can refer to each embodiment of the remote control method of the smart home, and are not described herein again.
The invention also provides equipment which comprises a memory, a processor and a remote control program of the smart home, wherein the remote control program of the smart home is stored on the memory and can run on the processor, and the remote control program of the smart home is used for executing the method in each embodiment of the invention.
The invention also provides a storage medium on which the remote control program of the smart home is stored. The storage medium includes a computer-readable storage medium, which may be the Memory in fig. 1, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, where the computer-readable storage medium includes several instructions to enable 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) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A remote control method for smart home is characterized by comprising 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 the Internet of things terminal, so that the Internet of things terminal executes the operation corresponding to the second instruction data packet.
2. The remote control method for smart home as claimed in claim 1, wherein the step of parsing the information instruction data 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 remote control method for smart home as claimed in claim 2, wherein the step of unpacking and compressing the information instruction data packet to obtain an information instruction data block comprises:
analyzing the mark type of the DTMF stream in the information instruction data packet;
analyzing an RTP stream in the information instruction data packet, and extracting a sub-data packet corresponding to the mark type from the RTP stream;
extracting DTMF values from the sub data packets, and coding the DTMF values to obtain information instruction data blocks.
4. The remote control method for smart home as claimed in any one of claims 1 to 3, wherein the step of encapsulating the information instruction data block into a second instruction data packet comprises:
acquiring a serial number value in the user instruction;
and packaging the information instruction data block and the sequence number value into the second instruction data packet.
5. The remote control method for smart home as claimed in claim 4, wherein said step of encapsulating said information instruction data block and said sequence number value into a second instruction data packet comprises:
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 group;
and packaging the information instruction data group and the sequence number value into the second instruction data packet.
6. The remote control method for smart home as claimed in claim 5, wherein the step of combining the information instruction data blocks to obtain an information instruction data set comprises:
copying each information instruction data block according to preset copying times to obtain copied data blocks;
setting the information instruction data block and a copy data block corresponding to the information instruction data block as a target data block;
and determining the information instruction data group according to the target data block.
7. The remote control method for smart home as claimed in claim 6, wherein the step of determining the information instruction data set according to 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 group.
8. The utility model provides a remote control device of intelligence house which characterized in that, remote control device of intelligence 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;
and 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 the Internet of things terminal, so that the Internet of things terminal executes the operation corresponding to the second instruction data packet.
9. A remote control device for smart home, comprising a memory, a processor, and a remote control program for smart home stored in the memory and executable on the processor, wherein the remote control program for smart home when executed by the processor implements the steps of the remote control method for smart home according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores a remote control program for a smart home, and the remote control program for the smart home, when executed by a processor, implements the steps of the remote control method for the smart home according to any one of claims 1 to 7.
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 true CN114024787A (en) 2022-02-08
CN114024787B 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)

Cited By (1)

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

Citations (12)

* 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
CN102394994A (en) * 2011-11-02 2012-03-28 上海市共进通信技术有限公司 Method for realizing remote simulation key control based on telephone
CN103177557A (en) * 2012-12-28 2013-06-26 吴玉胜 Household appliance control method and system based on intelligent device
CN104898450A (en) * 2015-06-16 2015-09-09 重庆本原致创科技发展有限公司 Smart home data transmission method in a power line communication and Ad-Hoc network radiofrequency system
CN104936312A (en) * 2015-06-18 2015-09-23 山东建筑大学 Internet of things intelligent node with functions of data preprocessing and equipment management, and method thereof
CN105045108A (en) * 2015-05-26 2015-11-11 重庆房慧科技有限公司 Intelligent household data transmission method in power carrier and Ad-Hoc network radio frequency system
US20160197772A1 (en) * 2015-01-06 2016-07-07 Kiban Labs, Inc. System and method for implementing internet of things (iot) remote control applications
CN109656167A (en) * 2018-12-14 2019-04-19 广州河东科技有限公司 A kind of communication control system and method based on smart machine
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 (12)

* 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
CN102394994A (en) * 2011-11-02 2012-03-28 上海市共进通信技术有限公司 Method for realizing remote simulation key control based on telephone
CN103177557A (en) * 2012-12-28 2013-06-26 吴玉胜 Household appliance control method and system based on intelligent device
US20160197772A1 (en) * 2015-01-06 2016-07-07 Kiban Labs, Inc. System and method for implementing internet of things (iot) remote control applications
CN105045108A (en) * 2015-05-26 2015-11-11 重庆房慧科技有限公司 Intelligent household 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
CN104936312A (en) * 2015-06-18 2015-09-23 山东建筑大学 Internet of things intelligent node with functions of data preprocessing and equipment management, and method thereof
CN109656167A (en) * 2018-12-14 2019-04-19 广州河东科技有限公司 A kind of communication control system and method based on smart machine
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

Cited By (1)

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

Also Published As

Publication number Publication date
CN114024787B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN111246033B (en) Data transmission method, device, equipment and readable storage medium
US6411705B2 (en) Signaling state management system for packet network gateways
CN101237333B (en) An universal service platform for supporting multiple services based on multi-network fusion
CN105472430B (en) Method, equipment and the system of mobile terminal jingle bell are controlled by smart television
US20080025414A1 (en) Apparatus and method for transmitting moving picture stream using bluetooth
MXPA01004103A (en) Telecommunication services.
JPH10336325A (en) Network independent communication system
RU2648968C2 (en) Method and system making use of a home gateway and a smartphone to make a cordless telephone call
CN104506287A (en) Real-time sound communication method under TD-LTE (time division-long term evolution) emergency communication
CN114979133B (en) Deployment method and device for converged communication cloud platform
CN102833436A (en) Method and system for achieving VOIP (Voice over Internet Phone) agency
CN112953925A (en) Real-time audio and video communication system and method based on SIP (Session initiation protocol) and RTC (real time communication) network
CN114024787B (en) Remote control method, device, equipment and storage medium for smart home
CN114221909B (en) Data transmission method, device, terminal and storage medium
CN113473395B (en) Message processing method, device, medium and electronic equipment
CN104509083A (en) Communication system, method, and program
CN109862386A (en) Live data transmission method and device
CN104685841A (en) Method for transmitting audio information and packet communication system
CN106791992A (en) Signal source method for pushing and system
CN106653034A (en) Voice communication system and method used for mobile terminal
CN112311726B (en) Communication service processing method and device for VOIP (voice over internet protocol)
US7545738B2 (en) Network telephony system with enhanced interconversion of audio signals and IP packets
CN108737671B (en) VOIP communication method, device, equipment and home gateway system
CN108989353B (en) Soft switch calling method and system
CN105407243B (en) The echo cancellor VOIP system for improving affine projection algorithm is used in a kind of Android platform

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