Message transmission configuration method and device based on Internet of Things technology, equipment and medium

By building and managing multiple message transmission channels on the Internet of Things platform, combining channel selection, rate control and backlog strategies, the real-time and efficiency of message transmission in IoT devices are solved, and more efficient message transmission management is achieved.

CN119892861APending Publication Date: 2025-04-25HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410288628.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-24
Filing Date
2024-03-13
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the process of transmitting messages to application systems by IoT devices, it is difficult to meet the needs of message transmission, especially in terms of message real-time and transmission efficiency.

Method used

By implementing the message transmission configuration method on the Internet of Things platform, obtaining channel selection strategies, building multiple message transmission channels, and selecting the appropriate channel for message transmission based on the real-time requirements and types of messages. In addition, through channel rate control strategy and message backlog strategy, the rate and backlog mode of message transmission are optimized.

Benefits of technology

It realizes dynamic adjustment of message transmission channels according to the needs of the Internet of Things business, improves the real-time and efficiency of message transmission, reduces the management cost of application-side equipment, and reduces business losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892861A_ABST
    Figure CN119892861A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a message transmission configuration method based on the Internet of Things technology, which is applied to the technical field of Internet of Things. The method is applied to an Internet of Things platform running on an infrastructure. And the Internet of Things platform obtains message transmission configuration information including the channel selection strategy. And the Internet of Things platform constructs a plurality of message transmission channels based on the channel identifier and the message transmission condition of each message transmission channel in the plurality of message transmission channels included in the channel selection strategy. And the Internet of Things platform receives the obtained message sent by the Internet of Things equipment, determines a target message transmission channel of the message meeting the message transmission condition, and transmits the message to the Internet of Things application through the target message transmission channel. Therefore, the message transmission channel can be constructed and the message can be transmitted based on the message transmission requirement of the Internet of Things service. The Internet of Things platform manages transmission of messages in a centralized manner, so that the management efficiency can be improved, and the message management cost of the application side is reduced. The invention further provides a corresponding device and related equipment.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on October 24, 2023, with application number 2023113912955 and invention name “Method, device and related equipment for dynamic adaptation of real-time device messages”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of Internet of Things technology, and in particular to a message transmission configuration method, device, equipment and medium based on Internet of Things technology. Background Art

[0003] The Internet of Things (IoT) is a network that connects all common objects that can perform independent functions, such as the Internet and traditional telecommunications networks. In the business scenarios of the IoT, IoT devices need to collect information and send messages containing information to the application systems of the IoT. The application systems implement business processing based on the acquired messages. However, in the process of transmitting messages from IoT devices to application systems, it is difficult to meet the needs of message transmission. Summary of the invention

[0004] In view of this, the present application provides a message transmission configuration method, device, equipment and medium based on Internet of Things technology, which aims to control message transmission by the Internet of Things platform to meet the message transmission needs of Internet of Things services.

[0005] In the first aspect, the present application provides a message transmission configuration method based on the Internet of Things technology. The method is applied to the Internet of Things platform. The Internet of Things platform runs on the infrastructure. The infrastructure is connected to the Internet of Things device and the application side device respectively. The Internet of Things device is used to transmit messages to the Internet of Things platform. The application side device runs an Internet of Things application. The Internet of Things platform obtains message transmission configuration information including a channel selection strategy. The channel selection strategy includes a channel identifier of each message transmission channel in multiple message transmission channels and a transmission message condition. Each message transmission channel is used to transmit a message that meets the transmission message condition to the Internet of Things application. Based on the channel selection strategy, the Internet of Things platform constructs multiple message transmission channels between the Internet of Things platform and the application side device. In this way, a message transmission channel that meets the message transmission requirements of the Internet of Things business can be constructed between the Internet of Things platform and the application side device. In addition, it is convenient for the message transmission channel to transmit messages that meet the message transmission requirements of the Internet of Things business. By constructing the message transmission channel by the Internet of Things platform, the messages sent by the Internet of Things devices can be centrally managed to improve management efficiency. The Internet of Things platform receives the message sent by the Internet of Things device, determines the target message transmission channel whose message meets the transmission message condition from the message transmission channel, and transmits the message to the Internet of Things application through the target message transmission channel. In this way, the message transmission channel that meets the message transmission condition can be selected to transmit the message, and a better message transmission effect can be obtained.

[0006] In a possible implementation, the message includes a first timestamp when the IoT device generates the message. The IoT platform obtains a second timestamp of the message. The second timestamp is the time when the IoT platform receives the message. The message transmission delay of the message can be determined using the second timestamp and the first timestamp.

[0007] Furthermore, the message transmission condition includes the target message transmission delay. In other words, the message transmission channel is divided according to the message transmission delay. The IoT platform determines the target message transmission channel whose message transmission delay meets the target message transmission delay based on the message sent by the IoT device. In this way, the message transmission channel used to transmit the message can be determined based on the message transmission delay, which is convenient for transmitting messages with different real-time transmission requirements, meeting the application-side device's processing requirements for messages with higher real-time requirements, and reducing business losses.

[0008] In a possible implementation, the message transmission condition includes a target message type. That is, the message transmission channel is divided according to the message type. The IoT platform determines the message type of the message according to the message sent by the IoT device.

[0009] Furthermore, the IoT platform determines the target message transmission channel whose message type meets the target message type according to the message type, so that messages can be transmitted according to the transmission requirements of messages of different message types.

[0010] In a possible implementation, the message transmission configuration information also includes a channel rate control strategy, and the channel rate control strategy is used to indicate the flow transmission rate of at least one of the message transmission channels. The IoT platform configures the flow transmission rate of the message transmission channel based on the channel rate control strategy. Configuring the channel rate control strategy can ensure the transmission rate control of different message transmission channels, thereby protecting the application side devices from impact and avoiding the backlog of messages from overwhelming the application side devices. In addition, it can meet the real-time transmission of some messages and reduce business losses.

[0011] In a possible implementation, the message transmission configuration information also includes a message backlog strategy. The message backlog strategy is used to configure the message backlog parameters of at least one of the message transmission channels. The message backlog parameters are used to indicate the message backlog method. The Internet of Things platform configures the message backlog parameters of the message transmission channel based on the message backlog strategy. Configuring the message backlog strategy can ensure that when a message surge occurs, the messages are stored on the Internet of Things platform based on the message backlog method indicated by the message backlog strategy, thereby protecting the application-side devices from being impacted and preventing message loss.

[0012] In a possible implementation, the message backlog parameter includes one or more of the backlog time and the backlog data volume, so as to facilitate configuration of the backlog mode according to different dimensions of time and data volume.

[0013] In a possible implementation, if it is determined that the message does not meet the message transmission conditions of each message transmission channel, the IoT platform discards the message. This can reduce the reception and processing of useless messages by the application side device and save the resources of the application side device for processing messages.

[0014] In a second aspect, the present application provides a message transmission configuration device based on Internet of Things technology, the device is applied to an Internet of Things platform, the Internet of Things platform runs on an infrastructure, the infrastructure is connected to an Internet of Things device and an application side device respectively, the Internet of Things device is used to transmit a message to the Internet of Things platform, and an Internet of Things application runs on the application side device, the device includes:

[0015] An acquisition module, used to acquire message transmission configuration information, wherein the message transmission configuration information includes a channel selection strategy, wherein the channel selection strategy includes a channel identifier of each message transmission channel in a plurality of message transmission channels and a transmission message condition, wherein each message transmission channel is used to transmit a message that meets the transmission message condition to the Internet of Things application;

[0016] A construction module, configured to construct the plurality of message transmission channels based on the channel selection strategy;

[0017] A receiving module, used to receive a message sent by the IoT device;

[0018] A determination module, used to determine a target message transmission channel for transmitting the message, wherein the message satisfies a transmission message condition of the target message transmission channel;

[0019] A sending module is used to transmit the message to the Internet of Things application through the target message transmission channel.

[0020] In a possible implementation manner, the message includes a first timestamp when the IoT device generates the message, and the determining module is further configured to:

[0021] Obtain a second timestamp of the message, where the second timestamp is the time when the message sent by the IoT device is received;

[0022] A message transmission delay of the message is determined according to the second timestamp and the first timestamp.

[0023] In a possible implementation, the message transmission condition includes a target message transmission delay, and the determination module is specifically configured to determine a target message transmission channel in which the message transmission delay satisfies the target message transmission delay.

[0024] In a possible implementation manner, the message transmission condition further includes a target message type, and the determination module is further configured to:

[0025] A message type of the message is determined.

[0026] In a possible implementation, the determination module is specifically configured to determine, according to a message type of the message sent by the IoT device, a target message transmission channel whose message type satisfies the target message type.

[0027] In a possible implementation manner, the message transmission configuration information further includes a channel rate control strategy, where the channel rate control strategy is used to indicate a flow transmission rate of at least one of the message transmission channels;

[0028] The device also includes:

[0029] The first configuration module is used to configure the traffic transmission rate of the message transmission channel based on the channel rate control strategy.

[0030] In a possible implementation, the message transmission configuration information further includes a message backlog strategy, where the message backlog strategy is used to configure a message backlog parameter of at least one of the message transmission channels; the message backlog parameter is used to indicate a message backlog mode;

[0031] The device also includes:

[0032] The second configuration module is used to configure the message backlog parameters of the message transmission channel based on the message backlog strategy.

[0033] In a possible implementation manner, the message backlog parameter includes one or more of backlog time and backlog data volume.

[0034] In a possible implementation manner, the device further includes:

[0035] The discarding module is used to discard the message if it is determined that the message does not meet the message transmission conditions of each message transmission channel.

[0036] In a third aspect, the present application provides a computing device cluster, the computing device cluster includes at least one computing device, each computing device includes a processor and a memory; the memory is used to store instructions, and when the computing device cluster is running, the processor in each computing device executes the instructions stored in the memory, so that the computing device cluster executes the message transmission configuration method based on the Internet of Things technology in the above-mentioned first aspect or any possible implementation of the first aspect. It should be noted that the memory can be integrated into the processor or can be independent of the processor. Each computing device may also include a bus. The processor is connected to the memory via a bus. The memory may include a readable memory and a random access memory.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computing device cluster (the computing device cluster includes at least one computing device), the computing device cluster executes the message transmission configuration method based on the Internet of Things technology described in the above-mentioned first aspect or any one of the implementation methods of the first aspect.

[0038] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computing device cluster (the computing device cluster includes at least one computing device), enables the computing device cluster to execute the message transmission configuration method based on the Internet of Things technology as described in the above-mentioned first aspect or any one of the implementations of the first aspect.

[0039] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of an Internet of Things platform architecture is provided for an embodiment of the present application;

[0041] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0042] Figure 3 A flowchart of a message transmission configuration method based on Internet of Things technology provided in an embodiment of the present application;

[0043] Figure 4 A flowchart of another message transmission configuration method based on Internet of Things technology provided in an embodiment of the present application;

[0044] Figure 5 A flowchart of another message transmission configuration method based on Internet of Things technology provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of an Internet of Things platform transmitting messages provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of a message transmission configuration device based on Internet of Things technology provided in an embodiment of the present application;

[0047] Figure 8 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0048] Fig. 9 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0049] Fig.10 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.

[0051] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is just a way of distinguishing objects with the same attributes when describing the embodiments of this application.

[0052] First, some technical terms involved in the embodiments of the present application are introduced.

[0053] IoT devices: Any terminal that accesses the IoT platform through the IoT protocol for uplink and downlink communications is called an IoT device. As an example, an IoT device can be a business device directly connected to the IoT platform, a gateway that connects to the IoT platform through a proxy sub-device, or a server that accesses the IoT platform through the IoT protocol.

[0054] Device Gateway: A device that has sub-device management capabilities and acts as a proxy for sub-devices to directly connect to the IoT platform.

[0055] Edge: An open platform that integrates network, computing, storage, and application core capabilities at the edge, close to objects or data sources, provides computing and intelligent services nearby to meet the basic needs of the industry in real-time business, application intelligence, security, and privacy protection.

[0056] Internet of Things (IoT) platform: used to receive messages collected and reported by IoT devices and allow IoT applications running on application-side devices to call them.

[0057] Application-side devices: In some scenarios, application-side devices are devices that run business systems or IoT applications that users build based on their business and connect to the IoT platform. In other scenarios, application-side devices are devices provided by the cloud platform and run on cloud infrastructure. Users can access the IoT platform through application-side devices, and then control IoT devices and obtain relevant information about IoT devices. IoT applications run on application-side devices.

[0058] Data flow: The data flow function serves as a channel between the IoT platform and IoT applications, enabling device data to be sent to IoT applications.

[0059] Message backlog: refers to when messages are not received by application-side devices, they are stored in the IoT platform.

[0060] Flow control: It is used to prevent a large amount of data from impacting the network, application servers, etc. at the moment of network interruption, thereby ensuring that the user network or service can run efficiently and stably.

[0061] In the IoT scenario, see Figure 1 As shown, this figure is a schematic diagram of an Internet of Things platform architecture provided by an embodiment of the present application. The Internet of Things platform architecture includes business devices, device gateways, infrastructure and application-side devices. The Internet of Things platform is built on basic devices. Among them, business devices and device gateways can be used as Internet of Things devices. Business devices are used to collect Internet of Things data and process Internet of Things services. Business devices are, for example, sensors. Application-side devices can be devices created by users or run on infrastructure.

[0062] In one possible implementation, the basic device is an edge device. The business device is connected to the device gateway, and the device gateway is connected to the basic device to implement message interaction between the IoT device and the IoT platform running on the basic device. In another possible implementation, the IoT platform architecture also includes an edge device. The basic device is independent of the edge device. The device gateway is connected to the edge device, and the edge device is connected to the basic device to implement message interaction between the IoT device and the IoT platform running on the basic device.

[0063] The infrastructure running the IoT platform is also connected to the application-side devices to interact with them. The IoT platform can send messages to the IoT applications running on the application-side devices so that the IoT applications can process IoT services. Users can also access the IoT platform through the application-side devices to configure the IoT platform.

[0064] Business devices collect information about the surrounding environment and generate device data. Business devices send messages including device data to the IoT platform running on the basic device through the transmission link formed by the device gateway and edge device. The basic device is connected to the application-side device. The IoT platform running on the basic device transmits messages to the IoT application so that the IoT application processes the IoT business based on the message.

[0065] Messages are generally transmitted on the transmission link and the IoT platform according to the first-in-first-out strategy, and finally reach the IoT application running on the application side device. The IoT application processes the IoT service based on the device data included in the acquired message. With the increase of messages that need to be transmitted, it is difficult to meet the demand of IoT services for message transmission under the condition of limited transmission resources. For example, in the process of transmitting messages, there may be scenarios such as large changes or interruptions in network delay, and restart of IoT device due to machine failure, which may cause messages to be accumulated on the IoT device side. After the network or device failure is restored, the IoT application receives the accumulated messages first and cannot quickly receive real-time messages, which may affect the processing of some IoT services with high real-time requirements. IoT services with high real-time requirements include Internet of Vehicles services, traffic control services, industrial tunnel services, medical services, etc. For another example, in the process of transmitting messages, message surges may occur, causing impact on IoT applications, application device overload or message loss.

[0066] Currently, sufficient transmission resources are reserved between the infrastructure running the IoT platform and the application-side devices running the IoT applications to alleviate the message surge caused by the backlog of messages. However, the resource utilization rate is not high and the transmission cost is increased. The application-side devices can perform simple flow control processing, but it consumes the processing resources of the application-side devices and the processing effect is not good, which may result in a longer time to obtain valid messages. In this way, it is difficult to meet the message transmission needs of IoT services.

[0067] Based on this, an embodiment of the present application provides a message transmission configuration method based on Internet of Things technology. The method is applied to an Internet of Things platform running on an infrastructure. The infrastructure is connected to an Internet of Things device and an application-side device running an Internet of Things application respectively. The Internet of Things platform is used to receive messages sent by the Internet of Things device and transmit messages to the application-side device. In the method, the Internet of Things platform obtains message transmission configuration information. The message transmission configuration information includes a channel selection strategy. The channel selection strategy includes a channel identifier of each message transmission channel in multiple message transmission channels and a message transmission condition. The Internet of Things platform constructs multiple message transmission channels based on the channel selection strategy. The message transmission channel is a channel between the Internet of Things platform and the Internet of Things application. The constructed message transmission channel is used to transmit messages that meet the message transmission conditions to the Internet of Things application. In this way, the message transmission channel between the Internet of Things platform and the Internet of Things application running on the application-side device can be configured based on the message transmission requirements of the Internet of Things business, so that the corresponding message transmission channel can be selected to transmit messages based on the message transmission conditions, and the message transmission requirements of the Internet of Things business can be met. The Internet of Things platform receives the message sent by the Internet of Things device, determines the target message transmission channel for transmitting the message, and transmits the message to the Internet of Things application through the target message transmission channel. The message meets the message transmission conditions of the target message transmission channel. The IoT platform centrally manages message transmission and selects the message transmission channel according to the message transmission conditions. On the one hand, it can meet the needs of message transmission, and on the other hand, it can reduce the cost required for application-side device control message transmission.

[0068] The embodiments of the present application do not limit the application scenarios of the message transmission configuration method based on the Internet of Things technology. As some examples, Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application.

[0069] The infrastructure running the IoT platform is connected to IoT devices and application-side devices. IoT devices are devices that access the IoT platform for uplink and downlink communications using IoT protocols. IoT devices are, for example, sensors, device gateways, or edge devices. Application-side devices run IoT applications, such as business platforms, application systems, or application servers.

[0070] The IoT platform obtains message transmission configuration information. The message transmission configuration information is configured by the user through the application side device, for example. The message transmission configuration information includes a channel selection strategy. The channel selection strategy includes a channel identifier and a transmission message condition for each message transmission channel in multiple message transmission channels. In some possible implementations, the channel selection strategy is determined by the user based on the message transmission requirements of the IoT service. As an example, the channel selection strategy includes transmitting the message through message transmission channel 1 when transmission message condition 1 is met, and transmitting the message through message transmission channel 2 when transmission message condition 2 is met. According to the channel selection strategy, the IoT platform constructs a message transmission channel. For example, according to the above channel selection strategy, two message transmission channels are constructed. Channel identifiers and transmission message conditions are configured for the two message transmission channels. For example, the channel identifier of message transmission channel 1 and the transmission message condition of transmission message condition 1 are configured for one of the two message transmission channels, and the channel identifier of message transmission channel 2 and the transmission message condition of transmission message condition 2 are configured for the other message transmission channel in the two message transmission channels. In this way, after the IoT platform obtains the message, the target message transmission channel for transmitting the message is determined. The message is transmitted through the target message transmission channel.

[0071] It should be noted that the above Figure 2 The application scenarios shown are only examples. The message transmission configuration method based on the Internet of Things technology provided in this application can be applied to other data flow scenarios. The application scenarios of the message transmission configuration method based on the Internet of Things technology provided in the embodiments of this application are not limited to Figure 2 Limitations of the application scenarios shown.

[0072] Next, various non-limiting specific implementations of the message transmission configuration method based on the Internet of Things technology provided by this application are described in detail. Figure 3 As shown in the figure, this figure is a flow chart of a message transmission configuration method based on Internet of Things technology provided by an embodiment of the present application. This method can be applied to, for example, the above Figure 2 The Internet of Things platform in the scenario shown. The method includes S301-S305.

[0073] S301: The Internet of Things platform obtains message transmission configuration information, where the message transmission configuration information includes a channel selection strategy, where the channel selection strategy includes a channel identifier of each message transmission channel in a plurality of message transmission channels and a message transmission condition.

[0074] Message transmission configuration information is used to build a message transmission channel between the IoT platform and IoT applications.

[0075] The embodiments of the present application do not limit the manner in which the IoT platform obtains message transmission configuration information. As an example, the application-side device provides the user with a configuration interface and an application programming interface (API) of the IoT platform. The user triggers the generation of message transmission configuration information through the configuration interface and API provided by the application-side device to configure the IoT platform. As another example, the IoT platform is connected to a management device. The user configures the message transmission configuration information through the management device. The management device sends the message transmission configuration information to the IoT platform.

[0076] The message transmission configuration information includes a channel selection strategy. The channel selection strategy is used to determine the message transmission channel used to transmit the message. In some possible implementations, the channel selection strategy is determined based on the message transmission requirements of the IoT service. In the process of processing IoT services, the message transmission requirements are different for different messages. Based on the transmission requirements of different messages, the channel selection strategy is determined. The channel selection strategy can be generated by user configuration or by a strategy generation algorithm.

[0077] The embodiments of the present application do not limit the content of the message transmission conditions in the channel selection strategy.

[0078] In a possible implementation, the IoT service has a message real-time transmission requirement. The message real-time transmission requirement is a requirement for the real-time nature of message transmission. The real-time nature of message transmission can be measured by message transmission delay. As an example, the message transmission condition includes a target message transmission delay.

[0079] In another possible implementation, in an IoT business, messages of different message types have different transmission requirements. For example, the transmission priority of a business message is higher than the transmission priority of an operation and maintenance message. The message transmission condition includes the target message type. The channel selection strategy includes a channel identifier and a message transmission condition for each message transmission channel in a plurality of message transmission channels. The channel identifier of a message transmission channel is used to distinguish different message transmission channels. As an example, the channel identifier of a message transmission channel is the name of the message transmission channel, or is the sequence number of the message transmission channel. The message transmission condition is a condition that a message transmitted by a message transmission channel needs to meet.

[0080] As an example, the situation of real-time message transmission requirements is introduced below.

[0081] The channel selection strategy can be represented by function (device_timestamp, platform_timestamp), for example. device_timestamp is the first timestamp of the IoT device generating the message. platform_timestamp is the second timestamp of the IoT platform obtaining the message sent by the IoT device. The message transmission delay is determined based on platform_timestamp and device_timestamp. Specifically, as an example, the difference between platform_timestamp and device_timestamp is calculated to obtain the message transmission delay. As another example, platform_timesta mp and device_timestamp are input into a pre-trained message transmission delay determination model to obtain the message transmission delay output by the message transmission delay determination model.

[0082] For example, the channel selection strategy determined based on the real-time transmission requirements of messages is: messages with a message transmission delay less than or equal to the first delay threshold and greater than the second delay threshold are transmitted through the cold data channel, messages with a message transmission delay less than or equal to the second delay threshold and greater than the third delay threshold are transmitted through the hot data channel, and messages with a message transmission delay less than or equal to the third delay threshold are transmitted through the real-time data channel. Among them, the channel selection strategy involves three message transmission channels. The channel identifiers of the three message transmission channels are channel names, namely, cold data channel, hot data channel, and real-time data channel. The message transmission conditions are: the message transmission delay of the message is less than or equal to the first delay threshold and greater than the second delay threshold; the message transmission delay of the message is less than or equal to the second delay threshold and greater than the third delay threshold; the message transmission delay of the message is less than or equal to the third delay threshold.

[0083] It should be noted that the embodiment of the present application does not limit the specific value of the delay threshold, and the delay threshold can be configured based on the needs of message transmission channel division. As an example, the first delay threshold is 10 seconds, the second delay threshold is 1 second, and the third delay threshold is 50 milliseconds.

[0084] In this way, after the IoT device recovers from failure, restarts, or network interruption, the surge messages pushed by the IoT device can be transmitted using different message transmission channels according to different message transmission delays, reducing the impact of the failure on the transmission of messages with higher real-time requirements and ensuring the continuity of IoT business processing.

[0085] The above channel selection strategy is only used as an example. The embodiment of the present application does not limit the specific number of multiple message transmission channels included in the channel selection strategy determined based on the real-time transmission requirement of the message and the transmission message conditions of each message transmission channel. As other examples, the channel selection strategy determined based on the real-time transmission requirement of the message includes two message transmission channels. The channel selection strategy is, for example, that a message whose message transmission delay is greater than the fourth delay threshold is transmitted through the first channel, and a message whose message transmission delay is less than or equal to the fourth delay threshold is transmitted through the second channel. The channel identifiers of the first channel and the second channel are channel names. For example, the channel names of the first channel and the second channel are, for example, cold data channels and hot data channels, respectively. The fourth delay threshold is, for example, 2 seconds. For another example, the channel names of the first channel and the second channel are, for example, hot data channels and real-time data channels, respectively. The fourth delay threshold is, for example, 50 milliseconds. For another example, the channel names of the first channel and the second channel are, for example, cold data channels and real-time data channels, respectively. The fourth delay threshold is, for example, 1 second.

[0086] As another example, the transmission requirements for different message types are introduced below.

[0087] For example, the channel selection strategy determined based on the transmission requirements of the message type is: business messages are transmitted through the business message transmission channel, and operation and maintenance messages are transmitted through the operation and maintenance message transmission channel. The channel selection strategy includes two message transmission channels. The channel identifiers of the two message transmission channels are channel names, namely, the business message transmission channel and the operation and maintenance message transmission channel. The message transmission conditions are: the message type is a business message; the message type is an operation and maintenance message.

[0088] The channel selection strategy indicates the number of message transmission channels, channel identifiers, and message transmission conditions. Based on the channel selection strategy included in the message transmission configuration information, a message transmission channel between the IoT platform and the application side device can be constructed.

[0089] In addition, the message transmission configuration information can also include one or more of a channel rate control strategy and a message backlog strategy. The channel rate control strategy is used to configure the rate at which the message transmission channel transmits messages. The message backlog strategy is used to configure the way in which the message transmission channel backlogs messages. For an introduction to the channel rate control strategy and the message backlog strategy and the specific process of configuring the message transmission channel, please refer to the following description.

[0090] S302: The IoT platform constructs multiple message transmission channels based on the channel selection strategy included in the message transmission configuration information.

[0091] The IoT platform builds multiple message transmission channels based on the acquired channel selection strategy.

[0092] The number of message transmission channels constructed is related to the number of message transmission channels to be configured by the channel selection strategy. The number of message transmission channels can be greater than or equal to the number of message transmission channels involved in the channel selection strategy.

[0093] It should be noted that the embodiments of the present application do not limit the possible implementation methods of the IoT platform to construct a message transmission channel. In one possible implementation method, the IoT platform constructs a new message transmission channel based on message transmission resources. In another possible implementation method, the IoT platform uses an established and usable transmission channel to construct a message transmission channel. As an example, the IoT platform uses an established and usable transmission channel as a message transmission channel.

[0094] The Internet of Things platform constructs the channel identification of each message transmission channel according to the channel identification of each message transmission channel included in the channel selection strategy, and constructs the conditions that each message transmission channel must meet for transmitting messages according to the transmission message conditions of each message transmission channel included in the channel selection strategy.

[0095] Taking the above channel selection strategy as an example, the channel selection strategy is: messages with a message transmission delay less than or equal to the first delay threshold and greater than the second delay threshold are transmitted through the cold data channel, messages with a message transmission delay less than or equal to the second delay threshold and greater than the third delay threshold are transmitted through the hot data channel, and messages with a message transmission delay less than or equal to the third delay threshold are transmitted through the real-time data channel. The Internet of Things platform builds three message transmission channels between the Internet of Things platform and the Internet of Things application according to the acquired channel selection strategy. In addition, the channel identifiers and message transmission conditions of the three message transmission channels are configured respectively. A channel identifier of "cold data channel" is configured for one message transmission channel, and the message transmission condition is configured as follows: the message transmission delay of the message is less than or equal to the first delay threshold and greater than the second delay threshold. A channel identifier of "hot data channel" is configured for another message transmission channel, and the message transmission condition is configured as follows: the message transmission delay of the message is less than or equal to the first delay threshold and greater than the second delay threshold. A channel identifier of "real-time data channel" is configured for another message transmission channel, and the message transmission condition is configured as follows: the message transmission delay of the message is less than or equal to the first delay threshold and greater than the second delay threshold. A channel identifier of "real-time data channel" is configured for another message transmission channel, and the message transmission condition is configured as follows: the message transmission delay of the message is less than or equal to the third delay threshold.

[0096] S303: The IoT platform receives a message sent by the IoT device.

[0097] The messages sent by IoT devices include data related to IoT services that need to be transmitted to application-side devices.

[0098] S304: The IoT platform determines a target message transmission channel for transmitting the message.

[0099] The IoT platform determines the message transmission conditions satisfied by the message, and determines the target message transmission channel for the message transmission conditions satisfied by the message.

[0100] Taking the above-mentioned message transmission condition including the target message transmission delay as an example, based on the message transmission delay of the message, it is determined whether the message meets the transmission message condition of the message transmission channel.

[0101] For example, the message includes a first timestamp when the IoT device generates the message. The IoT platform obtains a second timestamp of the message, that is, a timestamp indicating the time when the IoT platform receives the message. The IoT platform obtains the message transmission delay of the message based on the time difference between the second timestamp and the first timestamp. The IoT platform determines the message transmission condition satisfied by the message transmission delay of the message, and then determines the target message transmission channel for transmitting the message, that is, the message transmission channel for the message transmission condition satisfied by the message transmission delay of the message.

[0102] Taking the above message transmission condition including the target message type as an example, based on the message type of the message, it is determined whether the message meets the transmission message condition of the message transmission channel.

[0103] For example, the IoT platform determines the message type of the message according to the message sent by the IoT device. The IoT platform determines the transmission message conditions satisfied by the message type of the message, and then determines the target message transmission channel whose message type satisfies the target message type.

[0104] S305: The IoT platform transmits the message to the IoT application through the target message transmission channel.

[0105] If the message meets the transmission message condition of the target message transmission channel, the target message transmission channel is used to transmit the message to the IoT application running on the application side device. The target message transmission channel is one of the multiple message transmission channels between the IoT platform and the application side device.

[0106] It should be noted that, when the target message transmission channel configures the traffic transmission rate based on the channel rate control policy, the message is transmitted according to the configured traffic transmission rate. When the target message transmission channel configures the message backlog parameter based on the message backlog policy, if the message fails to be sent, the message is saved according to the message backlog method indicated by the message backlog parameter. For the method of configuring the traffic transmission rate and message backlog parameters, please refer to the following.

[0107] The embodiments of the present application do not limit the processing method when the message does not meet the transmission message conditions of each message transmission channel. In one possible implementation, if it is determined that the message does not meet the transmission message conditions of each message transmission channel, it means that the message is invalid for IoT business processing and the message is discarded. This can reduce the reception and processing of useless messages by the application-side device and save the resources of the application-side device to process messages. In another possible implementation, if it is determined that the message does not meet the transmission message conditions of each message transmission channel, the message is backlogged, and when the message transmission channel is in an idle state, the message is transmitted to the application-side device using the idle message transmission channel.

[0108] The configured message transmission channel is used to transmit messages that meet the message transmission conditions. In this way, the message transmission requirements based on the IoT business can be met, and the message transmission channel between the IoT platform and the application-side devices can be constructed, so as to facilitate the transmission of messages based on the message transmission channel to meet the message transmission requirements of the IoT business. Compared with the IoT devices controlling the message transmission, the IoT platform centrally manages the transmission of messages that need to be sent to the application-side devices, improves the management efficiency, and obtains a better message transmission effect. In addition, the IoT platform manages the transmission of messages, which can reduce the cost of the application-side devices managing message transmission.

[0109] In some possible implementations, the rate at which the message transmission channel transmits messages can also be configured.

[0110] The message transmission configuration information also includes a channel rate control strategy. The channel rate control strategy is used to configure the rate at which the message transmission channel transmits messages. As an example, the channel rate control strategy is used to configure the traffic transmission rate of at least one message transmission channel. The traffic transmission rate can be measured by the query rate per second (QPS).

[0111] The number of message transmission channels targeted by the channel rate control strategy is less than or equal to the number of message transmission channels involved in the channel selection strategy. The embodiments of the present application do not limit the specific number of message transmission channels targeted by the channel rate control strategy. The channel rate control strategy can be configured only for one message transmission channel among the multiple message transmission channels involved in the channel selection strategy, or for some of the multiple message transmission channels involved in the channel selection strategy, or for all of the multiple message transmission channels involved in the channel selection strategy.

[0112] The embodiments of the present application do not limit the specific content included in the channel rate control strategy. As an example, the channel rate control strategy can include the flow transmission rate corresponding to the channel identifier of the message transmission channel. The channel identifier of the message transmission channel is used to indicate the message transmission channel for which the flow transmission rate needs to be configured. The flow transmission rate corresponding to the channel identifier can be set based on the transmission message demand and the transmission resource settings of the IoT platform and the application side device.

[0113] Taking the above construction of cold data channel, hot data channel and real-time data channel as an example, the real-time requirement of message transmission of cold data channel is lower than that of hot data channel, and the real-time requirement of message transmission of hot data channel is lower than that of real-time data channel. Channel rate control strategies include: the QPS corresponding to cold data channel is 20 / second, the QPS corresponding to hot data channel is 100 / second, and the QPS corresponding to real-time data channel is 200 / second.

[0114] Taking the above construction of the business message transmission channel and the operation and maintenance message transmission channel as an example, the channel rate control strategy includes: the QPS corresponding to the operation and maintenance message transmission channel is 20 messages / second, and the QPS corresponding to the business message transmission channel is 200 messages / second.

[0115] For a message transmission channel for which a traffic transmission rate is not configured, the default traffic transmission rate can be used to transmit messages.

[0116] In addition, the channel rate control strategy also includes rate adjustment conditions corresponding to the traffic transmission rate and the channel identifier of the message transmission channel. The rate adjustment conditions are the conditions that must be met to adopt the traffic transmission rate. This makes it easy to configure the traffic transmission rate of the message transmission channel according to the transmission message requirements of the IoT business in different message transmission scenarios, and realize adaptive adjustment of the traffic transmission rate of the message transmission channel according to different message transmission scenarios.

[0117] As an example, the channel rate control policy can be represented by function_flow_policy(qps, channel, rule), where qps represents the flow transmission rate, channel is the channel identifier of the message transmission channel, and rule is the rate adjustment condition.

[0118] The channel rate control strategies include: when a message surge is detected, the QPS corresponding to the cold data channel is 20 messages / second; when a message surge is detected, the QPS corresponding to the hot data channel is 100 messages / second; when a message surge is detected, the QPS corresponding to the real-time data channel is 200 messages / second.

[0119] In addition to the above S301-S305, see Figure 4As shown, the message transmission method provided in the embodiment of the present application also includes the following steps:

[0120] S306: The IoT platform configures the traffic transmission rate of the message transmission channel based on the channel rate control strategy included in the message transmission configuration information.

[0121] The IoT platform configures the traffic transmission rate for the message transmission channel targeted by the channel rate control strategy.

[0122] Taking the above-mentioned channel rate control strategy including the traffic transmission rate corresponding to the channel identifier of the message transmission channel as an example, the Internet of Things platform determines the message transmission channel that needs to be configured according to the channel identifier included in the channel rate control strategy, and configures the message transmission channel identified by the channel identifier according to the traffic transmission rate corresponding to the channel identifier included in the channel rate control strategy.

[0123] Taking the channel rate control strategy that also includes rate adjustment conditions as an example, the Internet of Things platform determines the message transmission channel that needs to be configured based on the channel identifier included in the channel rate control strategy, and configures the message transmission channel identified by the channel identifier according to the traffic transmission rate corresponding to the channel identifier included in the channel rate control strategy and the rate adjustment condition corresponding to the traffic transmission rate.

[0124] The embodiment of the present application does not limit the execution order of S306. In a possible implementation, after executing S302 to build the message transmission channel, S306 is executed simultaneously.

[0125] Configuring the channel rate control strategy can ensure the transmission rate control of different message transmission channels, thereby protecting the application-side devices from impact and preventing the backlog of messages from overwhelming the application-side devices. In addition, it can meet the real-time transmission of some messages and reduce business losses.

[0126] In some other possible implementations, the message backlog method of the message transmission channel can also be configured.

[0127] The message transmission configuration information also includes a message backlog strategy. The message backlog strategy is used to configure the message backlog parameters of at least one message transmission channel. The message backlog parameters are used to indicate the message backlog mode.

[0128] The embodiment of the present application does not limit the parameter type of the message backlog parameter. As an example, the message backlog parameter is the backlog time. The backlog time is the maximum time of the message backlog. As another example, the message backlog parameter is the backlog data volume. The backlog data volume is the maximum data volume of the backlogged messages. As another example, the message backlog parameter includes the backlog time and the backlog data volume.

[0129] The number of message transmission channels targeted by the message backlog strategy is less than or equal to the number of message transmission channels involved in the channel selection strategy. The embodiments of the present application do not limit the specific number of message transmission channels targeted by the message backlog strategy. The message backlog strategy can be configured only for one message transmission channel among the multiple message transmission channels involved in the channel selection strategy, or for some of the multiple message transmission channels involved in the channel selection strategy, or for all of the multiple message transmission channels involved in the channel selection strategy.

[0130] The embodiments of the present application do not limit the specific content included in the message backlog strategy. As an example, the message backlog strategy can include a message backlog parameter corresponding to a channel identifier of a message transmission channel. The channel identifier of a message transmission channel is used to indicate a message transmission channel for which a message backlog parameter needs to be configured. The message backlog parameter corresponding to the channel identifier can be set based on the message transmission requirements and the storage resources of the Internet of Things platform.

[0131] As an example, the message backlog policy can be represented by function_backlog_policy(backlog_size, backlog_time, channel). backlog_size is the amount of backlog data. backlog_time is the backlog time. channel is the channel identifier of the message transmission channel.

[0132] Taking the above construction of cold data channel, hot data channel and real-time data channel as an example, the message backlog strategy includes: the backlog time corresponding to the cold data channel is 24 hours, the backlog time corresponding to the hot data channel is 6 hours, and the backlog time corresponding to the real-time data channel is 1 hour.

[0133] For a message transmission channel that is not configured with message backlog parameters, the default message backlog parameters can be used, or messages can be processed without using message backlog.

[0134] In addition to the above S301-S305, see Figure 5 As shown, the message transmission method provided in the embodiment of the present application also includes the following steps:

[0135] S307: The Internet of Things platform configures message backlog parameters of the message transmission channel based on the message backlog strategy included in the message transmission configuration information.

[0136] The IoT platform configures message backlog parameters for the message transmission channel targeted by the message backlog strategy.

[0137] Taking the message backlog parameters corresponding to the channel identifier of the message transmission channel included in the above-mentioned message backlog strategy as an example, the Internet of Things platform determines the message transmission channel that needs to be configured according to the channel identifier included in the message backlog strategy, and configures the message transmission channel identified by the channel identifier according to the message backlog parameters corresponding to the channel identifier included in the message backlog strategy.

[0138] The embodiment of the present application does not limit the execution order of S307. In a possible implementation, S307 is executed after S307 is executed to build a message transmission channel.

[0139] Configuring a message backlog strategy can ensure that when a message surge occurs, the messages are stored on the IoT platform based on the message backlog method indicated by the message backlog strategy, thereby protecting the application-side devices from being impacted and preventing message loss.

[0140] In addition, the channel rate control strategy and the message backlog strategy can be configured independently or jointly, and the embodiments of the present application do not limit this. In the case where the message transmission configuration information also includes the channel rate control strategy and the message backlog strategy, the embodiments of the present application do not limit the order in which the Internet of Things platform configures the flow transmission rate of the message transmission channel based on the channel rate control strategy included in the message transmission configuration information, and executes the Internet of Things platform based on the message backlog strategy included in the message transmission configuration information to configure the message backlog parameters of the message transmission channel. The Internet of Things platform can first configure the flow transmission rate of the message transmission channel based on the channel rate control strategy, and then configure the message backlog parameters of the message transmission channel based on the message backlog strategy. Alternatively, the Internet of Things platform can first configure the message backlog parameters of the message transmission channel based on the message backlog strategy, and then configure the flow transmission rate of the message transmission channel based on the channel rate control strategy. Alternatively, the Internet of Things platform simultaneously configures the flow transmission rate of the message transmission channel based on the channel rate control strategy, and configures the message backlog parameters of the message transmission channel based on the message backlog strategy.

[0141] As an example, see Figure 6 As shown, this figure is a schematic diagram of an Internet of Things platform transmitting messages provided in an embodiment of the present application.

[0142] The IoT platform obtains message transmission configuration information, which includes channel selection strategy, channel rate control strategy, and message backlog strategy.

[0143] The channel selection strategy is: messages with a transmission delay less than or equal to 10 seconds and greater than 1 second are transmitted through the cold data channel, messages with a transmission delay less than or equal to 1 second and greater than 50 milliseconds are transmitted through the hot data channel, and messages with a transmission delay less than or equal to 50 milliseconds are transmitted through the real-time data channel.

[0144] The channel rate control strategies include: the QPS corresponding to the cold data channel is 20 records / second, the QPS corresponding to the hot data channel is 100 records / second, and the QPS corresponding to the real-time data channel is 200 records / second.

[0145] The message backlog strategy includes: the backlog time for the cold data channel is 24 hours, the backlog time for the hot data channel is 6 hours, and the backlog time for the real-time data channel is 1 hour.

[0146] The IoT platform builds and configures the message transmission channel based on the message transmission configuration information.

[0147] The transmission conditions of cold data channels are: the message transmission delay is less than or equal to 10 seconds and greater than 1 second. Cold data channels transmit messages at a QPS of 20 messages per second. If the message cannot be transmitted, it will be stored. The maximum storage time of the message is the backlog time, which is 24 hours.

[0148] The transmission conditions of the hot data channel are: the message transmission delay is less than or equal to 1 second and greater than 50 milliseconds. The hot data channel transmits messages at a QPS of 100 messages / second. If the message cannot be transmitted, it will be stored. The maximum storage time of the message is the backlog time, which is 6 hours.

[0149] The transmission condition of the real-time data channel is: the message transmission delay is less than or equal to 50 milliseconds, and the target message transmission channel is the real-time data channel. The real-time data channel transmits messages at a transmission rate of 200 messages per second. If the message cannot be transmitted, it will be stored. The maximum storage time of the message is the backlog time, which is 1 hour.

[0150] If the message transmission delay of the message is greater than 10 seconds, that is, the message transmission conditions of the three message transmission channels are not met, the message is discarded.

[0151] For example, the IoT platform obtains message 1. The first timestamp of message 1 is: 1658976485003, and the second timestamp of message 1 is: 1658976487015. Both the first timestamp and the second timestamp are timestamps in milliseconds. The difference between the second timestamp and the first timestamp is calculated to obtain the message transmission delay of message 1: 2 seconds and 12 milliseconds. Based on the transmission message conditions of the above three data transmission channels, it is determined that the message transmission delay of message 1 meets the transmission message conditions of the cold data channel. Through the cold data channel, message 1 is transmitted at a transmission rate of 20 messages / second. If message 1 cannot be transmitted in real time, message 1 is stored first, and message 1 is transmitted through the cold data channel when it can be transmitted. The maximum storage time of message 1 is 24 hours. For another example, the IoT platform obtains message 2. The first timestamp of message 2 is: 1658976485003, and the second timestamp of message 2 is: 1658976485035. The difference between the second timestamp and the first timestamp is calculated to obtain the message transmission delay of message 2: 32 milliseconds. Based on the transmission message conditions of the above three data transmission channels, it is determined that the message transmission delay of message 2 meets the transmission message conditions of the real-time data channel. Message 2 is transmitted through the real-time data channel at a transmission rate of 200 QPS / second. If message 2 cannot be transmitted in real time, message 2 is stored first, and message 2 is transmitted through the real-time data channel when it can be transmitted. The maximum storage time of message 2 is 1 hour.

[0152] For another example, the IoT platform obtains message 3. The first timestamp of message 3 is: 1658976485003, and the second timestamp of message 3 is: 1658976485055. The difference between the second timestamp and the first timestamp is calculated to obtain the message transmission delay of message 3: 52 milliseconds. Based on the transmission message conditions of the above three data transmission channels, it is determined that the message transmission delay of message 3 meets the transmission message conditions of the hot data channel. Message 3 is transmitted through the hot data channel at a transmission rate of 100 messages per second. If message 3 cannot be transmitted in real time, message 3 is stored first, and message 3 is transmitted through the hot data channel when it can be transmitted. The maximum storage time of message 3 is 6 hours.

[0153] For another example, the IoT platform obtains message 4. The first timestamp of message 4 is: 1658976485003, and the second timestamp of message 4 is: 1658976500158. The difference between the second timestamp and the first timestamp is calculated to obtain the message transmission delay of message 4: 15 seconds 155 milliseconds. Based on the transmission message conditions of the above three data transmission channels, it is determined that the message transmission delay of message 4 does not meet the transmission message conditions of the three data transmission channels, and message 4 is discarded.

[0154] The present application also provides a message transmission configuration device based on the Internet of Things technology. The message transmission configuration device based on the Internet of Things technology is applied to an Internet of Things platform running on an infrastructure. The infrastructure is connected to the Internet of Things device and the application side device respectively. The Internet of Things platform is used to receive messages sent by the Internet of Things device and transmit messages to the Internet of Things application running on the application side device. Figure 7 As shown, including:

[0155] An acquisition module 701 is used to acquire message transmission configuration information, wherein the message transmission configuration information includes a channel selection strategy, and the channel selection strategy includes a channel identifier of each message transmission channel in a plurality of message transmission channels and a transmission message condition, wherein each message transmission channel is used to transmit a message that meets the transmission message condition to the Internet of Things application;

[0156] A construction module 702 is used to construct the multiple message transmission channels based on the channel selection strategy;

[0157] The receiving module 703 is used to receive the message sent by the IoT device;

[0158] A determination module 704 is used to determine a target message transmission channel for transmitting the message, and the message meets the message transmission condition of the target message transmission channel;

[0159] The sending module 705 is used to transmit the message to the Internet of Things application through the target message transmission channel.

[0160] In a possible implementation, the message includes a first timestamp when the IoT device generates the message, and the determining module 704 is further configured to:

[0161] Obtain a second timestamp of the message, where the second timestamp is the time when the message sent by the IoT device is received;

[0162] A message transmission delay of the message is determined according to the second timestamp and the first timestamp.

[0163] In a possible implementation, the message transmission condition includes a target message transmission delay, and the determination module 704 is specifically configured to determine a target message transmission channel in which the message transmission delay satisfies the target message transmission delay.

[0164] In a possible implementation, the message transmission condition further includes a target message type, and the determination module 704 is further configured to:

[0165] A message type of the message is determined.

[0166] In a possible implementation, the determination module 704 is specifically configured to determine, according to the message type of the message sent by the IoT device, a target message transmission channel whose message type satisfies the target message type.

[0167] In a possible implementation manner, the message transmission configuration information further includes a channel rate control strategy, where the channel rate control strategy is used to indicate a flow transmission rate of at least one of the message transmission channels;

[0168] The device also includes:

[0169] The first configuration module 706 is used to configure the traffic transmission rate of the message transmission channel based on the channel rate control strategy.

[0170] In a possible implementation, the message transmission configuration information further includes a message backlog strategy, where the message backlog strategy is used to configure a message backlog parameter of at least one of the message transmission channels; the message backlog parameter is used to indicate a message backlog mode;

[0171] The device also includes:

[0172] The second configuration module 707 is used to configure the message backlog parameters of the message transmission channel based on the message backlog strategy.

[0173] In a possible implementation manner, the message backlog parameter includes one or more of backlog time and backlog data volume.

[0174] In a possible implementation manner, the device further includes:

[0175] The discarding module 708 is configured to discard the message if it is determined that the message does not meet the message transmission conditions of each of the message transmission channels.

[0176] Among them, the acquisition module 701, the construction module 702, the receiving module 703, the determination module 704, the sending module 705, the first configuration module 706, the second configuration module 707 and the discarding module 708 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the acquisition module 701 is introduced below by taking the acquisition module 701 as an example. Similarly, the implementation of the construction module 702, the receiving module 703, the determination module 704, the sending module 705, the first configuration module 706, the second configuration module 707 and the discarding module 708 can refer to the implementation of the acquisition module 701.

[0177] As an example of a software functional unit, the acquisition module 701 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the acquisition module 701 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.

[0178] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0179] As an example of a hardware functional unit, the acquisition module 701 may include at least one computing device, such as a server, etc. Alternatively, the acquisition module 701 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0180] The multiple computing devices included in the acquisition module 701 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 701 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 701 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0181] It should be noted that, in other embodiments, the acquisition module 701 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology, the construction module 702 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology, the receiving module 703 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology, the determination module 704 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology, the sending module 705 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology, the first configuration module 706 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology, and the second configuration module 707 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology. The discarding module 708 can be used to execute any step in the message transmission configuration method based on the Internet of Things technology. The steps implemented by the acquisition module 701, the construction module 702, the receiving module 703, the determination module 704, the sending module 705, the first configuration module 706, the second configuration module 707 and the discarding module 708 can be specified as needed. The acquisition module 701, the construction module 702, the receiving module 703, the determination module 704, the sending module 705, the first configuration module 706, the second configuration module 707 and the discarding module 708 respectively implement different steps in the message transmission configuration method based on the Internet of Things technology to realize all the functions of the message transmission configuration device based on the Internet of Things technology.

[0182] The present application also provides a computing device 800. Figure 8 As shown, the computing device 800 includes: a bus 802, a processor 804, a memory 806, and a communication interface 808. The processor 804, the memory 806, and the communication interface 808 communicate through the bus 802. The computing device 800 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 800.

[0183] The bus 802 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus 802 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 802 may include a path for transmitting information between various components of the computing device 800 (eg, the memory 806, the processor 804, and the communication interface 808).

[0184] The processor 804 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0185] The memory 806 may include a volatile memory, such as a random access memory (RAM). The processor 804 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0186] The memory 806 stores executable program codes, and the processor 804 executes the executable program codes to respectively implement the functions of the aforementioned acquisition module 701, construction module 702, receiving module 703, determination module 704, sending module 705, first configuration module 706, second configuration module 707, and discarding module 708, thereby implementing the message transmission configuration method based on the Internet of Things technology. That is, the memory 806 stores instructions for executing the message transmission configuration method based on the Internet of Things technology.

[0187] The communication interface 808 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 800 and other devices or communication networks.

[0188] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0189] like Fig. 9 As shown, the computing device cluster includes at least one computing device 800. The memory 806 in one or more computing devices 800 in the computing device cluster may store the same instructions for executing the message transmission configuration method based on the Internet of Things technology.

[0190] In some possible implementations, the memory 806 of one or more computing devices 800 in the computing device cluster may also respectively store some instructions for executing the message transmission configuration method based on the Internet of Things technology. In other words, the combination of one or more computing devices 800 can jointly execute the instructions for executing the message transmission configuration method based on the Internet of Things technology.

[0191] It should be noted that the memory 806 in different computing devices 800 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the message transmission configuration device based on the Internet of Things technology. That is, the instructions stored in the memory 806 in different computing devices 800 can implement the functions of one or more modules of the acquisition module 701, the construction module 702, the receiving module 703, the determination module 704, the sending module 705, the first configuration module 706, the second configuration module 707 and the discarding module 708.

[0192] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.10 A possible implementation is shown. Fig.10 As shown, two computing devices 800A and 800B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 806 in the computing device 800A stores instructions for executing the functions of the acquisition module 701, the construction module 702, the first configuration module 706, and the second configuration module 707. At the same time, the memory 806 in the computing device 800B stores instructions for executing the functions of the receiving module 703, the determining module 704, the sending module 705, and the discarding module 708.

[0193] Fig.10The connection method between the computing device clusters shown can be based on the message transmission configuration method based on the Internet of Things technology provided in this application. Therefore, it is considered that the functions implemented by the receiving module 703, the determining module 704, the sending module 705 and the discarding module 708 are handed over to the computing device 800B for execution.

[0194] It should be understood that Fig.10 The functions of the computing device 800A shown in FIG. 8 may also be completed by multiple computing devices 800. Similarly, the functions of the computing device 800B may also be completed by multiple computing devices 800.

[0195] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a message transmission configuration method based on the Internet of Things technology.

[0196] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute a message transmission configuration method based on the Internet of Things technology.

[0197] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A message transmission configuration method based on Internet of Things technology, characterized in that: The method is applied to an Internet of Things platform, the Internet of Things platform runs on an infrastructure, the infrastructure is connected to an Internet of Things device and an application-side device respectively, the Internet of Things device is used to transmit a message to the Internet of Things platform, and an Internet of Things application runs on the application-side device, the method includes: Acquire message transmission configuration information, wherein the message transmission configuration information includes a channel selection strategy, wherein the channel selection strategy includes a channel identifier of each message transmission channel in a plurality of message transmission channels and a transmission message condition, wherein each message transmission channel is used to transmit a message that meets the transmission message condition to the Internet of Things application; Based on the channel selection strategy, construct the multiple message transmission channels; Receiving a message sent by the IoT device; Determine a target message transmission channel for transmitting the message, wherein the message satisfies a transmission message condition of the target message transmission channel; The message is transmitted to the Internet of Things application through the target message transmission channel.

2. The method according to claim 1, characterized in that The message includes a first timestamp of the IoT device generating the message, and the method further includes: Obtain a second timestamp of the message, where the second timestamp is the time when the message sent by the IoT device is received; A message transmission delay of the message is determined according to the second timestamp and the first timestamp.

3. The method according to claim 2, characterized in that The message transmission condition includes a target message transmission delay, and the root determines a target message transmission channel for transmitting the message, including: According to the message sent by the Internet of Things device, a target message transmission channel in which the message transmission delay satisfies the target message transmission delay is determined.

4. The method according to any one of claims 1 to 3, characterized in that: The transmission message condition also includes a target message type, and the method further includes: Determine the message type of the message according to the message sent by the IoT device.

5. The method according to claim 4, characterized in that The determining a target message transmission channel for transmitting the message includes: According to the message type of the message sent by the IoT device, a target message transmission channel whose message type satisfies the target message type is determined.

6. The method according to any one of claims 1 to 5, characterized in that: The message transmission configuration information further includes a channel rate control strategy, where the channel rate control strategy is used to indicate a flow transmission rate of at least one of the message transmission channels; The method further comprises: Based on the channel rate control strategy, the traffic transmission rate of the message transmission channel is configured.

7. The method according to any one of claims 1 to 6, characterized in that: The message transmission configuration information further includes a message backlog strategy, wherein the message backlog strategy is used to configure a message backlog parameter of at least one of the message transmission channels; the message backlog parameter is used to indicate a message backlog mode; The method further comprises: Based on the message backlog strategy, configure the message backlog parameters of the message transmission channel.

8. The method according to claim 7, characterized in that The message backlog parameter includes one or more of backlog time and backlog data volume.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: If it is determined that the message does not meet the message transmission conditions of each of the message transmission channels, the message is discarded.

10. A message transmission configuration device based on Internet of Things technology, characterized in that: The device is applied to an Internet of Things platform, the Internet of Things platform runs on an infrastructure, the infrastructure is connected to an Internet of Things device and an application-side device respectively, the Internet of Things device is used to transmit messages to the Internet of Things platform, and an Internet of Things application runs on the application-side device, and the device includes: An acquisition module, used to acquire message transmission configuration information, wherein the message transmission configuration information includes a channel selection strategy, wherein the channel selection strategy includes a channel identifier of each message transmission channel in a plurality of message transmission channels and a transmission message condition, wherein each message transmission channel is used to transmit a message that meets the transmission message condition to the Internet of Things application; A construction module, configured to construct the plurality of message transmission channels based on the channel selection strategy; A receiving module, used to receive a message sent by the IoT device; A determination module, used to determine a target message transmission channel for transmitting the message, wherein the message satisfies a transmission message condition of the target message transmission channel; A sending module is used to transmit the message to the Internet of Things application through the target message transmission channel.

11. The device according to claim 10, characterized in that The message includes a first timestamp of the IoT device generating the message, and the determination module is further used to: Obtain a second timestamp of the message, where the second timestamp is the time when the message sent by the IoT device is received; A message transmission delay of the message is determined according to the second timestamp and the first timestamp.

12. The device according to claim 11, characterized in that The message transmission condition includes a target message transmission delay, and the determination module is specifically used to determine a target message transmission channel whose message transmission delay satisfies the target message transmission delay according to the message sent by the IoT device.

13. The device according to any one of claims 10 to 12, characterized in that The transmission message condition also includes a target message type, and the determination module is further used to: Determine the message type of the message according to the message sent by the IoT device.

14. The device according to claim 13, characterized in that The determination module is specifically configured to determine, according to the message type of the message sent by the IoT device, a target message transmission channel whose message type satisfies the target message type.

15. The device according to any one of claims 10 to 14, characterized in that: The message transmission configuration information further includes a channel rate control strategy, where the channel rate control strategy is used to indicate a flow transmission rate of at least one of the message transmission channels; The device also includes: The first configuration module is used to configure the traffic transmission rate of the message transmission channel based on the channel rate control strategy.

16. The device according to any one of claims 10 to 15, characterized in that: The message transmission configuration information further includes a message backlog strategy, wherein the message backlog strategy is used to configure a message backlog parameter of at least one of the message transmission channels; the message backlog parameter is used to indicate a message backlog mode; The device also includes: The second configuration module is used to configure the message backlog parameters of the message transmission channel based on the message backlog strategy.

17. The device according to claim 16, characterized in that The message backlog parameter includes one or more of backlog time and backlog data volume.

18. The device according to any one of claims 10 to 17, characterized in that: The device also includes: The discarding module is used to discard the message if it is determined that the message does not meet the message transmission conditions of each message transmission channel.

19. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 9.

20. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 9.

21. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Message transmission configuration method based on internet of things technology, apparatus, device, and medium

    WO2025086632A1