CN112689010A - Equipment message transmission method and device, storage medium and electronic device - Google Patents

Equipment message transmission method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112689010A
CN112689010A CN202011548208.9A CN202011548208A CN112689010A CN 112689010 A CN112689010 A CN 112689010A CN 202011548208 A CN202011548208 A CN 202011548208A CN 112689010 A CN112689010 A CN 112689010A
Authority
CN
China
Prior art keywords
target
control data
message
access gateway
determining
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
CN202011548208.9A
Other languages
Chinese (zh)
Other versions
CN112689010B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011548208.9A priority Critical patent/CN112689010B/en
Publication of CN112689010A publication Critical patent/CN112689010A/en
Application granted granted Critical
Publication of CN112689010B publication Critical patent/CN112689010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for transmitting equipment messages, a storage medium and an electronic device, wherein the method comprises the following steps: verifying control data sent to a cloud platform by a terminal, wherein the control data is used for executing control operation on equipment; determining a target connection mode corresponding to the control data under the condition that the control data passes verification; the method and the device for controlling the access of the equipment have the advantages that the access gateway of the target equipment corresponding to the target connection mode is determined, the access gateway of the target equipment is controlled to be connected with the equipment, and control data are sent to the equipment based on the established connection, wherein the access gateway of the target equipment is arranged on the cloud platform.

Description

Equipment message transmission method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for transmitting a device message, a storage medium, and an electronic apparatus.
Background
In the field of the internet of things, particularly in the field of smart homes, with the increase of intelligent devices in a home, the diversification of device connection technology and the wide application of a device gateway, the mode of connecting the device to the internet of things platform is gradually changed from the mode of connecting one device link to the platform into the mode of connecting a plurality of device links to the platform. Because the operation and storage capacity of the device end is limited, the device reports and receives data through a plurality of connections without control, in this case, the same message reaches the platform through a plurality of links, and if the platform does not process the message, the message reaching the service layer is repeated.
Aiming at the problems that the transmission accuracy of the equipment message is too low, repeated equipment messages are easy to occur and the like in the related technology, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for transmitting equipment messages, a storage medium and an electronic device, which are used for at least solving the problems that the transmission accuracy of the equipment messages is too low, repeated equipment messages are easy to occur and the like in the related technology.
According to an embodiment of the present invention, there is provided a method for transmitting a device message, including: verifying control data sent to a cloud platform by a terminal, wherein the control data is used for executing control operation on equipment; determining a target connection mode corresponding to the control data under the condition that the control data passes verification; and determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
In an exemplary embodiment, determining the target connection mode corresponding to the control data includes: extracting target identification information for uniquely identifying a connection mode from the control data; and determining a target connection mode corresponding to the target identification information from the corresponding relation between the identification information and the connection mode.
In an exemplary embodiment, determining the target device access gateway corresponding to the target connection mode includes: extracting at least two identification information for uniquely identifying a connection mode from the control data; determining at least two target connection modes corresponding to the at least two identification information respectively, and determining communication states of at least two devices access gateways corresponding to the at least two target connection modes respectively to obtain at least two communication states; and taking the device access gateway with the optimal communication state in the at least two communication states as the device access gateway.
In an exemplary embodiment, after sending the control data to the device based on the established connection, the method further comprises: analyzing the data transmitted to the cloud platform by the equipment to obtain an analysis result; carrying out duplicate removal processing on the analysis result according to a preset duplicate removal strategy to obtain a target message; and transmitting the target message to the terminal through a user access gateway so as to display the target message on the terminal.
In an exemplary embodiment, before performing deduplication processing on the parsing result according to a preset deduplication policy to obtain a target message, the method further includes: acquiring indication information of a target object; setting a target deduplication strategy according to the indication information, wherein the target deduplication strategy comprises one of the following: deleting repeated target analysis results according to the identification under the condition that the unique identification exists in each analysis result; and setting a repetition threshold according to the byte length of the analysis result, and deleting the analysis result when the repetition byte length in the analysis result is less than the repetition threshold.
In an exemplary embodiment, transmitting the target message to the terminal via a subscriber access gateway includes: acquiring the message type of a target message allowed to be received by the terminal; determining a target preset rule for sending the target message according to the message type, wherein the target preset rule is used for indicating a sending mode of sending the target message by a user access gateway; and sending the target message to the terminal according to the target preset rule.
According to another embodiment of the present invention, there is also provided an apparatus for transmitting a device message, including: the verification module is used for verifying control data sent to the cloud platform by the terminal, wherein the control data is used for executing control operation on equipment; the determining module is used for determining a target connection mode corresponding to the control data under the condition that the control data passes verification; and the connection module is used for determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
In an exemplary embodiment, the determining module is further configured to extract target identification information for uniquely identifying a connection manner from the control data; and determining a target connection mode corresponding to the target identification information from the corresponding relation between the identification information and the connection mode.
In an exemplary embodiment, the connection module is further configured to extract at least two identification information uniquely identifying a connection manner from the control data; determining at least two target connection modes corresponding to the at least two identification information respectively, and determining communication states of at least two devices access gateways corresponding to the at least two target connection modes respectively to obtain at least two communication states; and taking the device access gateway with the optimal communication state in the at least two communication states as the device access gateway.
In an exemplary embodiment, the apparatus further includes: the duplication removing module is used for analyzing the data transmitted to the cloud platform by the equipment to obtain an analysis result; carrying out duplicate removal processing on the analysis result according to a preset duplicate removal strategy to obtain a target message; and transmitting the target message to the terminal through a user access gateway so as to display the target message on the terminal.
In an exemplary embodiment, the duplication elimination module is further configured to obtain indication information of the target object; setting a target deduplication strategy according to the indication information, wherein the target deduplication strategy comprises one of the following: deleting repeated target analysis results according to the identification under the condition that the unique identification exists in each analysis result; and setting a repetition threshold according to the byte length of the analysis result, and deleting the analysis result when the repetition byte length in the analysis result is less than the repetition threshold.
In an exemplary embodiment, the deduplication module is further configured to obtain a message type of a target message that the terminal is allowed to receive; determining a target preset rule for sending the target message according to the message type, wherein the target preset rule is used for indicating a sending mode of sending the target message by a user access gateway; and sending the target message to the terminal according to the target preset rule.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to carry out the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the control data sent to the cloud platform by the terminal is verified, wherein the control data is used for executing control operation on the equipment; determining a target connection mode corresponding to the control data under the condition that the control data passes verification; and determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform, namely, the data sent by the terminal is verified on the cloud platform, and the target device access gateway is selected to establish the connection for sending the data with the device. By adopting the technical scheme, the problems that the transmission accuracy of the equipment message is too low, repeated equipment messages are easy to occur and the like in the related technology are solved, the transmission accuracy of the equipment message is improved, the problems that the messages of multiple connected equipment repeatedly reach the application and trigger multiple services are avoided, and the arrival rate and the timeliness of the equipment message are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a cloud platform of a method for transmitting a device message according to an embodiment of the present invention;
fig. 2 is a flowchart of a transmission method of a device message according to an embodiment of the present invention;
FIG. 3 is a block diagram of a cloud platform data processing system in accordance with an alternative embodiment of the present invention;
fig. 4 is a schematic structural diagram of a single connection device and an internet of things cloud system according to an alternative embodiment of the present invention;
fig. 5 is a schematic structural diagram of a multi-connection device and an internet of things cloud system according to an alternative embodiment of the present invention;
fig. 6 is a block diagram of a cloud system of an internet of things of a multi-connection-path device according to an alternative embodiment of the present invention;
fig. 7 is a block diagram of a device message transmission apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal, a cloud platform or a similar computing device. Taking an operation on a cloud platform as an example, fig. 1 is a hardware structure block diagram of a cloud platform of a device message transmission method according to an embodiment of the present invention. As shown in fig. 1, the cloud platform may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the cloud platform. For example, the cloud platform may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the device message transmission method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the cloud platform via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a cloud platform. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for transmitting a device message is provided, which is applied to the cloud platform, and fig. 2 is a flowchart of a method for transmitting a device message according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, verifying control data sent to a cloud platform by a terminal, wherein the control data is used for executing control operation on equipment;
step S204, determining a target connection mode corresponding to the control data under the condition that the control data passes verification;
step S206, determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
Through the technical scheme, the control data sent to the cloud platform by the terminal is verified, wherein the control data is used for executing control operation on the equipment; determining a target connection mode corresponding to the control data under the condition that the control data passes verification; and determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform, namely, the data sent by the terminal is verified on the cloud platform, and the target device access gateway is selected to establish the connection for sending the data with the device. By adopting the technical scheme, the problems that the transmission accuracy of the equipment message is too low, repeated equipment messages are easy to occur and the like in the related technology are solved, the transmission accuracy of the equipment message is improved, the problems that the messages of multiple connected equipment repeatedly reach the application and trigger multiple services are avoided, and the arrival rate and the timeliness of the equipment message are improved.
In step S202, there are multiple implementation manners for determining the target connection manner corresponding to the control data, and optionally, target identification information for uniquely identifying the connection manner is extracted from the control data; and determining a target connection mode corresponding to the target identification information from the corresponding relation between the identification information and the connection mode.
In short, in order to make the control data sent by the terminal have accuracy, the control data includes target identification information indicating a connection mode, and the target connection mode required by the control data sent by the terminal can be quickly determined from the corresponding relationship between the identification information and the connection mode according to the target identification information, so as to send the control data.
In an exemplary embodiment, determining the target device access gateway corresponding to the target connection mode includes: extracting at least two identification information for uniquely identifying a connection mode from the control data; determining at least two target connection modes corresponding to the at least two identification information respectively, and determining communication states of at least two devices access gateways corresponding to the at least two target connection modes respectively to obtain at least two communication states; and taking the device access gateway with the optimal communication state in the at least two communication states as the device access gateway.
That is, in order to ensure that the control data can be transmitted to the device through the optimal device access gateway, at least two pieces of identification information for uniquely identifying the connection mode are extracted from the control data; and determining at least two target connection modes corresponding to the at least two identification information respectively, determining the communication states of at least two equipment access gateways corresponding to the at least two target connection modes respectively, and further taking the equipment access gateway with the optimal communication state in the at least two communication states as the equipment access gateway, so that the transmission of control data is selective, and the arrival rate and timeliness of the control data are improved.
In an exemplary embodiment, after sending the control data to the device based on the established connection, the method further comprises: analyzing the data transmitted to the cloud platform by the equipment to obtain an analysis result; carrying out duplicate removal processing on the analysis result according to a preset duplicate removal strategy to obtain a target message; and transmitting the target message to the terminal through a user access gateway so as to display the target message on the terminal.
In short, in order to avoid that the device transmits the same service data to the cloud platform for multiple times, and further transmits the service data to the terminal for displaying to inform the terminal of the current state of the device, the cloud platform may analyze the data to be transmitted to the terminal for displaying, perform deduplication processing on the analyzed data according to a preset deduplication strategy, and transmit a target message not containing repeated service data to the terminal for displaying through the user access gateway.
In an exemplary embodiment, before performing deduplication processing on the parsing result according to a preset deduplication policy to obtain a target message, the method further includes: acquiring indication information of a target object; setting a target deduplication strategy according to the indication information, wherein the target deduplication strategy comprises one of the following: deleting repeated target analysis results according to the identification under the condition that the unique identification exists in each analysis result; and setting a repetition threshold according to the byte length of the analysis result, and deleting the analysis result when the repetition byte length in the analysis result is less than the repetition threshold.
For example, each analysis result corresponds to an identifier, such as an identifier SN, and then duplicate removal is performed on repeated analysis results according to the identifier SN, and only one analysis result is reserved for the same identifier SN; the set repeat threshold of the byte length corresponding to the analysis result is 128 bytes, when the analysis result is smaller than 128 bytes, the analysis result is the repeat analysis result, and duplication removal is needed, when the analysis result is larger than 128 bytes, the analysis result is a new analysis result, and the analysis result can be sent after the user is confirmed to access the gateway.
In an exemplary embodiment, transmitting the target message to the terminal via a subscriber access gateway includes: acquiring the message type of a target message allowed to be received by the terminal; determining a target preset rule for sending the target message according to the message type, wherein the target preset rule is used for indicating a sending mode of sending the target message by a user access gateway; and sending the target message to the terminal according to the target preset rule.
In short, according to the different message types received by the terminal, the message type of the target message is needed when the message is sent, and further, the target message is sent according to the sending mode of the target message, which can be executed by the user access gateway.
In order to better understand the process of the transmission method of the device message, the following describes a flow of the transmission method of the device message with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
As shown in fig. 3, in an alternative embodiment, a cloud platform data processing system is provided, where the system mainly processes two types of messages or data, and uplink data from a device to an application and downlink data from the application to the device are sent. The device access gateway analyzes data and sends a message to the message routing module, and the routing module distributes the message according to a configured routing strategy and distributes the message to a corresponding application App or an application system. The downlink data is sent to the device management module by the application app or the application system, the device management module sends the downlink data to the corresponding device access gateway according to the device connection condition, and the device access gateway sends the offline data to the device through network connection according to an agreed protocol. The current system implementation does not process the specific data received by the uplink, and the received message is transmitted to the application side, so that the application side receives a plurality of messages, and if the application side does not perform duplicate removal processing, the service is triggered for many times. One implementation of the system is to send downlink data to the device via multiple connections, which may cause the device to execute instructions multiple times if the device does not handle the downlink data. Another implementation of the system is to randomly select a connection to deliver the quality, and this implementation may randomly select a connection with poor network quality, resulting in failure of delivering the downlink data. Fig. 4 is a schematic structural diagram of a single connection device and an internet of things cloud system, and fig. 5 is a schematic structural diagram of a multi-connection device and an internet of things cloud system.
In an optional implementation manner, an internet of things cloud system suitable for a multi-connection-path device based on network quality is provided, as shown in fig. 6, the system mainly includes a device access gateway 32, a message deduplication module 34, a message routing module 36, a user access gateway 38, a device management module 40, a connection selection module 42, and a policy management module 44; the multi-connection module of the processing equipment mainly comprises a message duplication elimination module, a connection selection module and a strategy configuration module; and then the platform can select the optimal connection to send the control instruction according to the conditions of the connection network quality and the like.
The device access gateway 32 is responsible for keeping connection with a device, receiving data reported by the device, and sending the data reported by the device to the message deduplication module; receiving a device control instruction and other downlink data transmitted from the connection selection module, and transmitting the downlink data to the device through the connection according to a protocol; the message duplication removal module 34 is a module newly introduced by the system for the multi-connection device and is responsible for carrying out duplication removal processing on the message according to a message duplication removal strategy specified by the strategy management module; and the message routing module 36 is configured to send the data processed by the message deduplication module to a corresponding user access gateway according to a routing rule.
A user access gateway 38, which is responsible for sending the message received from the message routing module to an application system or an application app (user) according to an agreed protocol; meanwhile, the user access gateway is responsible for receiving a device control instruction or other downlink data issued by an application system or an application app (user), and sending the issued device control instruction or downlink data to the device management module.
And the device management module 40 is used for being responsible for authority verification and device control instruction and downlink data check, and sending the device control instruction or the downlink data to the connection selection module after the authority verification and the device control instruction and the downlink data check are passed.
And the connection selection module 42 is responsible for selecting connection according to the connection selection policy specified by the policy management module, and sending the selected result to the corresponding device access gateway.
And the policy management module 44 is used for managing the policies used for message deduplication and connection selection.
It should be noted that, because the message deduplication module is added in the platform system, the module can perform message deduplication according to the ID of the message and other message identifiers, and repeated messages are not delivered to the message routing module for data distribution, thereby solving the problem that messages of multiple connection devices repeatedly reach the application and trigger multiple services. In addition, the platform formulates a corresponding connection selection strategy according to the acquired information such as the network quality of the equipment, so that the most stable and reliable connection can be selected to issue the equipment control instruction and the downlink data, and the arrival rate and the timeliness of the downlink data are improved.
Optionally, the platform is not limited to a cloud platform, and other platforms may also implement alternative embodiments of the present invention, which is not limited to this invention.
As an optional implementation manner, the system in the optional embodiment of the present invention may be an internet of things cloud system suitable for a multi-connection-path device based on network quality, and is responsible for completing interconnection and intercommunication among devices, apps, and service systems, including reporting of device messages, issuing control instructions to the devices, and the like, thereby solving the problem of message duplication elimination and utilizing the multi-connection capability of the devices.
According to the optional embodiment of the invention, the problem of message repetition of the multi-connection device is solved by the Internet of things cloud system which is based on the network quality and is suitable for the multi-connection channel device, the platform can utilize the multi-connection characteristic of the device, the optimal connection strategy can be flexibly configured and selected according to the network quality and the like, and the arrival rate of downlink data of the device is improved. Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for transmitting a device message is further provided, where the device is used to implement the foregoing embodiment and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a device for transmitting a device message according to an embodiment of the present invention; as shown in fig. 7, includes:
the verification module 72 is configured to verify control data sent by the terminal to the cloud platform, where the control data is used to perform a control operation on the device;
a determining module 74, configured to determine, when the control data passes verification, a target connection manner corresponding to the control data;
and a connection module 76, configured to determine a target device access gateway corresponding to the target connection mode, control the target device access gateway to connect with the device, and send the control data to the device based on the established connection, where the target device access gateway is disposed in the cloud platform.
Through the technical scheme, the control data sent to the cloud platform by the terminal is verified, wherein the control data is used for executing control operation on the equipment; determining a target connection mode corresponding to the control data under the condition that the control data passes verification; and determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform, namely, the data sent by the terminal is verified on the cloud platform, and the target device access gateway is selected to establish the connection for sending the data with the device. By adopting the technical scheme, the problems that the transmission accuracy of the equipment message is too low, repeated equipment messages are easy to occur and the like in the related technology are solved, the transmission accuracy of the equipment message is improved, the problems that the messages of multiple connected equipment repeatedly reach the application and trigger multiple services are avoided, and the arrival rate and the timeliness of the equipment message are improved.
In an exemplary embodiment, the determining module is further configured to extract target identification information for uniquely identifying a connection manner from the control data; and determining a target connection mode corresponding to the target identification information from the corresponding relation between the identification information and the connection mode. In short, in order to make the control data sent by the terminal have accuracy, the control data includes target identification information indicating a connection mode, and the target connection mode required by the control data sent by the terminal can be quickly determined from the corresponding relationship between the identification information and the connection mode according to the target identification information, so as to send the control data.
In an exemplary embodiment, the connection module is further configured to extract at least two identification information uniquely identifying a connection manner from the control data; determining at least two target connection modes corresponding to the at least two identification information respectively, and determining communication states of at least two devices access gateways corresponding to the at least two target connection modes respectively to obtain at least two communication states; and taking the device access gateway with the optimal communication state in the at least two communication states as the device access gateway.
That is, in order to ensure that the control data can be transmitted to the device through the optimal device access gateway, at least two pieces of identification information for uniquely identifying the connection mode are extracted from the control data; and determining at least two target connection modes corresponding to the at least two identification information respectively, determining the communication states of at least two equipment access gateways corresponding to the at least two target connection modes respectively, and further taking the equipment access gateway with the optimal communication state in the at least two communication states as the equipment access gateway, so that the transmission of control data is selective, and the arrival rate and timeliness of the control data are improved.
In an exemplary embodiment, the apparatus further includes: the duplication removing module is used for analyzing the data transmitted to the cloud platform by the equipment to obtain an analysis result; carrying out duplicate removal processing on the analysis result according to a preset duplicate removal strategy to obtain a target message; and transmitting the target message to the terminal through a user access gateway so as to display the target message on the terminal.
In short, in order to avoid that the device transmits the same service data to the cloud platform for multiple times, and further transmits the service data to the terminal for displaying to inform the terminal of the current state of the device, the cloud platform may analyze the data to be transmitted to the terminal for displaying, perform deduplication processing on the analyzed data according to a preset deduplication strategy, and transmit a target message not containing repeated service data to the terminal for displaying through the user access gateway.
In an exemplary embodiment, the duplication elimination module is further configured to obtain indication information of the target object; setting a target deduplication strategy according to the indication information, wherein the target deduplication strategy comprises one of the following: deleting repeated target analysis results according to the identification under the condition that the unique identification exists in each analysis result; and setting a repetition threshold according to the byte length of the analysis result, and deleting the analysis result when the repetition byte length in the analysis result is less than the repetition threshold.
For example, each analysis result corresponds to an identifier, such as an identifier SN, and then duplicate removal is performed on repeated analysis results according to the identifier SN, and only one analysis result is reserved for the same identifier SN; the set repeat threshold of the byte length corresponding to the analysis result is 128 bytes, when the analysis result is smaller than 128 bytes, the analysis result is the repeat analysis result, and duplication removal is needed, when the analysis result is larger than 128 bytes, the analysis result is a new analysis result, and the analysis result can be sent after the user is confirmed to access the gateway.
In an exemplary embodiment, the deduplication module is further configured to obtain a message type of a target message that the terminal is allowed to receive; determining a target preset rule for sending the target message according to the message type, wherein the target preset rule is used for indicating a sending mode of sending the target message by a user access gateway; and sending the target message to the terminal according to the target preset rule.
In short, according to the different message types received by the terminal, the message type of the target message is needed when the message is sent, and further, the target message is sent according to the sending mode of the target message, which can be executed by the user access gateway.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, verifying control data sent by the terminal to the cloud platform, wherein the control data is used for executing control operation on the equipment;
s2, determining a target connection mode corresponding to the control data under the condition that the control data passes verification;
s3, determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, verifying control data sent by the terminal to the cloud platform, wherein the control data is used for executing control operation on the equipment;
s2, determining a target connection mode corresponding to the control data under the condition that the control data passes verification;
s3, determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for transmitting a device message, comprising:
verifying control data sent to a cloud platform by a terminal, wherein the control data is used for executing control operation on equipment;
determining a target connection mode corresponding to the control data under the condition that the control data passes verification;
and determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
2. The method of claim 1, wherein determining the target connection mode corresponding to the control data comprises:
extracting target identification information for uniquely identifying a connection mode from the control data;
and determining a target connection mode corresponding to the target identification information from the corresponding relation between the identification information and the connection mode.
3. The method of claim 1, wherein determining the target device access gateway corresponding to the target connection mode comprises:
extracting at least two identification information for uniquely identifying a connection mode from the control data;
determining at least two target connection modes corresponding to the at least two identification information respectively, and determining communication states of at least two devices access gateways corresponding to the at least two target connection modes respectively to obtain at least two communication states;
and taking the device access gateway with the optimal communication state in the at least two communication states as the device access gateway.
4. The method of claim 1, wherein after sending the control data to the device based on the established connection, the method further comprises:
analyzing the data transmitted to the cloud platform by the equipment to obtain an analysis result;
carrying out duplicate removal processing on the analysis result according to a preset duplicate removal strategy to obtain a target message;
and transmitting the target message to the terminal through a user access gateway so as to display the target message on the terminal.
5. The method according to claim 4, wherein before performing deduplication processing on the parsing result according to a preset deduplication policy to obtain the target message, the method further comprises:
acquiring indication information of a target object;
setting a target deduplication strategy according to the indication information, wherein the target deduplication strategy comprises one of the following: deleting repeated target analysis results according to the identification under the condition that the unique identification exists in each analysis result; and setting a repetition threshold according to the byte length of the analysis result, and deleting the analysis result when the repetition byte length in the analysis result is less than the repetition threshold.
6. The method of claim 4, wherein transmitting the target message to the terminal via a subscriber access gateway comprises:
acquiring the message type of a target message allowed to be received by the terminal;
determining a target preset rule for sending the target message according to the message type, wherein the target preset rule is used for indicating a sending mode of sending the target message by a user access gateway;
and sending the target message to the terminal according to the target preset rule.
7. An apparatus for transmitting a device message, comprising:
the verification module is used for verifying control data sent to the cloud platform by the terminal, wherein the control data is used for executing control operation on equipment;
the determining module is used for determining a target connection mode corresponding to the control data under the condition that the control data passes verification;
and the connection module is used for determining a target device access gateway corresponding to the target connection mode, controlling the target device access gateway to be connected with the device, and sending the control data to the device based on the established connection, wherein the target device access gateway is arranged on the cloud platform.
8. The apparatus of claim 7, wherein the determining module is further configured to extract target identification information for uniquely identifying a connection type from the control data; and determining a target connection mode corresponding to the target identification information from the corresponding relation between the identification information and the connection mode.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202011548208.9A 2020-12-23 2020-12-23 Equipment message transmission method and device, storage medium and electronic device Active CN112689010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011548208.9A CN112689010B (en) 2020-12-23 2020-12-23 Equipment message transmission method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011548208.9A CN112689010B (en) 2020-12-23 2020-12-23 Equipment message transmission method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112689010A true CN112689010A (en) 2021-04-20
CN112689010B CN112689010B (en) 2023-03-28

Family

ID=75451919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011548208.9A Active CN112689010B (en) 2020-12-23 2020-12-23 Equipment message transmission method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112689010B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754277A (en) * 2008-12-19 2010-06-23 Ut斯达康通讯有限公司 Method for selecting access gateway and control node of access gateway
CN103108375A (en) * 2011-11-14 2013-05-15 中兴通讯股份有限公司 Route optimizing method, system and access network unit in switching process
CN110351385A (en) * 2019-07-11 2019-10-18 苏州高博软件技术职业学院 A kind of home gateway system and data forwarding method
CN110856126A (en) * 2019-10-24 2020-02-28 深圳市梦网科技发展有限公司 Information reporting and receiving method, terminal equipment and storage medium
CN110995513A (en) * 2019-12-27 2020-04-10 远景智能国际私人投资有限公司 Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN112071320A (en) * 2020-09-01 2020-12-11 合肥飞尔智能科技有限公司 Intelligent equipment voice control system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754277A (en) * 2008-12-19 2010-06-23 Ut斯达康通讯有限公司 Method for selecting access gateway and control node of access gateway
CN103108375A (en) * 2011-11-14 2013-05-15 中兴通讯股份有限公司 Route optimizing method, system and access network unit in switching process
CN110351385A (en) * 2019-07-11 2019-10-18 苏州高博软件技术职业学院 A kind of home gateway system and data forwarding method
CN110856126A (en) * 2019-10-24 2020-02-28 深圳市梦网科技发展有限公司 Information reporting and receiving method, terminal equipment and storage medium
CN110995513A (en) * 2019-12-27 2020-04-10 远景智能国际私人投资有限公司 Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN112071320A (en) * 2020-09-01 2020-12-11 合肥飞尔智能科技有限公司 Intelligent equipment voice control system and method

Also Published As

Publication number Publication date
CN112689010B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN110808948B (en) Remote procedure calling method, device and system
CN111885115B (en) Device binding changing method and device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN111542081A (en) Communication switching method and device and Internet of things communication module
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN111491036A (en) Internet of things equipment and communication method thereof
CN105554099A (en) Method and device for balancing load of acquisition servers
KR20180047172A (en) Method and Apparatus for Controlling Congestion in Communication Systems with Services
CN112437454A (en) Data transmission method and device, storage medium and electronic device
CN112637931A (en) Method and device for establishing network connection
CN112422684A (en) Target message processing method and device, storage medium and electronic device
CN111884875A (en) Offline device determination method and device
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN110087226B (en) Flow statistical method and device, storage medium and electronic device
CN113259918A (en) Equipment binding method and system
CN112737849B (en) Equipment information processing method and device
CN112689010B (en) Equipment message transmission method and device, storage medium and electronic device
CN113613251A (en) Information synchronization method and system, storage medium and electronic device
CN112738785A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN108011870A (en) A kind of remote software online upgrading information automatic identification management method
CN111884938A (en) Router information acquisition method and device
CN109547287B (en) Bandwidth testing method and device and storage medium
CN116614172A (en) Satellite communication method, nonvolatile storage medium, and electronic device
CN107547444B (en) Traffic statistical method and switching equipment
CN114125052A (en) Target operation execution method and device, storage medium and electronic device

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