An Internet of Things system and control method
By leveraging the synergy of IoT controllers and data relays, sensor data is converted into standard data and encapsulated for transmission, solving the problems of data fragmentation and communication barriers in IoT servers, and achieving lightweight and scalable IoT servers.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2026-04-03
AI Technical Summary
The lack of standardized data information from different sensing devices in IoT servers leads to data fragmentation and communication barriers, affecting data mining and user experience. Furthermore, the different protocols and methods used during transmission hinder server expansion.
The IoT controller acquires the attributes of the sensor data, determines its type, processes and converts it into standard data, and uses a data transfer device to encapsulate and transmit it to the IoT server, thereby achieving data standardization and lightweight expansion.
It solves the problems of data fragmentation and communication barriers, provides good support for data mining of IoT servers, and realizes the lightweight and easy expansion of IoT servers.
Smart Images

Figure CN116582562B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to an IoT system and control method. Background Technology
[0002] In today's IoT field, due to the different uses and functions of various sensing devices and the diversity of the data they collect, the data uploaded to IoT servers is inconsistent in standardization and fragmented. This results in mixed data collected by IoT servers, hindering in-depth analysis of user pain points and ultimately reducing user experience. Furthermore, the communication protocols and methods between sensing devices and IoT servers during the data transmission process significantly impede the scalability of IoT servers. Summary of the Invention
[0003] The main objective of this application is to provide a control method that addresses the data fragmentation and communication barriers encountered by sensing devices in IoT servers, thereby providing robust support for data mining and analysis. Furthermore, the use of a data relay device enables the IoT server to be lightweight, facilitating its expansion.
[0004] In a first aspect, embodiments of this application provide a control method applied to an Internet of Things (IoT) system, comprising an IoT controller, a data relay, and an IoT server, wherein the IoT server is communicatively connected to the IoT controller via the data relay, and the method includes:
[0005] When the IoT controller receives sensing data sent by the sensing device, it acquires the data attributes of the sensing data and determines whether the sensing data is a preset type of data based on the data attributes.
[0006] When the sensing data is a preset type of data, the IoT controller determines the data processing strategy corresponding to the sensing data based on the data attributes, and uses the data processing strategy to convert the sensing data into standard sensing data and send the standard sensing data to the data relay.
[0007] After receiving the standard sensor data, the data relay encapsulates the standard sensor data to obtain encapsulated sensor data, determines the data transmission method according to the data attributes of the standard sensor data, and transmits the encapsulated sensor data to the IoT server according to the data transmission method.
[0008] Secondly, embodiments of this application also provide an Internet of Things (IoT) system, which includes an IoT controller, a data relay, and an IoT server. The IoT server is communicatively connected to the IoT controller through the data relay, and includes:
[0009] When the IoT controller receives sensing data sent by the sensing device, it acquires the data attributes of the sensing data and determines whether the sensing data is a preset type of data based on the data attributes.
[0010] When the sensing data is a preset type of data, the IoT controller determines the data processing strategy corresponding to the sensing data based on the data attributes, and uses the data processing strategy to convert the sensing data into standard sensing data and send the standard sensing data to the data relay.
[0011] After receiving the standard sensor data, the data relay encapsulates the standard sensor data to obtain encapsulated sensor data, determines the data transmission method according to the data attributes of the standard sensor data, and transmits the encapsulated sensor data to the IoT server according to the data transmission method.
[0012] This application provides an IoT system and control method. The control method involves an IoT controller receiving sensor data from various sensing devices. When the IoT controller receives sensor data, it acquires the data attributes of the data and determines whether the data is of a preset type. If the data is of a preset type, the IoT controller determines a data processing strategy based on the data attributes, converts the sensor data into standard sensor data using the data processing strategy, and sends the standard sensor data to a data relay. Upon receiving the standard sensor data, the data relay encapsulates it to obtain encapsulated sensor data, determines the data transmission method based on the data attributes of the standard sensor data, and transmits the encapsulated sensor data to an IoT server according to the data transmission method. This solves the problems of data fragmentation and communication barriers in IoT server data acquisition from sensing devices, thus providing strong support for data mining and analysis on the IoT server. Furthermore, the data relay enables lightweighting of the IoT server, making it easy to expand. Attached Figure Description
[0013] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This application provides a block diagram of an Internet of Things (IoT) system as an embodiment of the present application.
[0015] Figure 2 A flowchart illustrating the steps of a control method provided in an embodiment of this application;
[0016] Figure 3 for Figure 2 A flowchart of a specific implementation of step S1;
[0017] Figure 4 A schematic diagram illustrating communication between an IoT controller and a sensing device provided in an embodiment of this application;
[0018] Figure 5 This is a schematic diagram illustrating an application scenario of a control method provided in an embodiment of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0021] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0022] This application provides an IoT system and control method. The control method involves an IoT controller receiving sensor data from various sensing devices. When the IoT controller receives sensor data, it acquires the data attributes of the data and determines whether the data is of a preset type. If the data is of a preset type, the IoT controller determines a data processing strategy based on the data attributes, converts the sensor data into standard sensor data using the data processing strategy, and sends the standard sensor data to a data relay. Upon receiving the standard sensor data, the data relay encapsulates it to obtain encapsulated sensor data, determines the data transmission method based on the data attributes of the standard sensor data, and transmits the encapsulated sensor data to an IoT server according to the data transmission method. This solves the problems of data fragmentation and communication barriers in IoT server data acquisition from sensing devices, thus providing strong support for data mining and analysis on the IoT server. Furthermore, the data relay enables lightweighting of the IoT server, making it easy to expand.
[0023] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0024] Please refer to Figure 1 , Figure 1 This is a block diagram of an Internet of Things (IoT) system provided in an embodiment of this application.
[0025] like Figure 1 As shown, the IoT system 100 provided by the present invention includes an IoT controller 10, a data relay 20, and an IoT server 30. The IoT controller 10 can be a mobile terminal, such as a computer, a server, or a server cluster. The data relay 20 can be a device with a software development kit installed, used to realize data interaction between the IoT controller 10 and the IoT server 30. The IoT server 30 can be a cloud server, a server, or a server cluster.
[0026] For example, the sensing device sends data to the IoT controller 10. After receiving the sensing data from the sensing device, the IoT controller 10 obtains the data attributes of the sensing data, and then converts the data attributes of the sensing device into standard sensing data according to the data processing strategy, and sends the standard sensing data to the data relay 20. After receiving the standard sensing data, the data relay 20 encapsulates the standard sensing data to obtain encapsulated sensing data, and sends the encapsulated sensing data to the IoT server 30, so that the IoT server 30 receives the standard sensing data and solves the data fragmentation problem.
[0027] Please see Figure 2 , Figure 2This application provides a control method for its embodiments.
[0028] like Figure 2 As shown, the control method is applied to the aforementioned Internet of Things system 100, and the control method includes steps S1 to S3.
[0029] Step S1: When the IoT controller 10 receives the sensing data sent by the sensing device, it obtains the data attributes of the sensing data and determines whether the sensing data is a preset type of data based on the data attributes.
[0030] For example, such as Figure 3 As shown, in the IoT system 100, the IoT controller 10 receives sensing data sent by a sensing device. This sensing data includes user-related data attributes obtained by the sensing device, allowing the IoT controller 10 to determine whether the sensing data sent by the sensing device meets a preset data type based on these data attributes. Alternatively, the sensing data may also include the device type or model of the sensing device, allowing the IoT controller 10 to determine whether the sensing data meets a preset data type based on the device type or model of the sensing device.
[0031] For example, the sensing device might be a fitness tracker, which can come from different manufacturers. The default data type is the fitness tracker's motion parameters and a unified method for setting these parameters. Different fitness tracker manufacturers may have different rules for setting these parameters, such as parameter names and value ranges. Therefore, when the IoT controller 10 receives sensor data, it can compare the data attributes of the sensor data with the default data type to determine if the data is of the default type. For instance, if the fitness tracker's motion parameters include heart rate, and the default data type represents heart rate as XL, and fitness trackers from manufacturer A have their heart rate set to xinlv while fitness trackers from manufacturer B have theirs set to XL, then when the fitness tracker from manufacturer A sends sensor data to the IoT controller 10, it is determined that the data does not meet the default data type, while when the fitness tracker from manufacturer B sends sensor data to the IoT controller 10, it is determined that the data meets the default data type.
[0032] In some implementations, the IoT controller 10 includes a protocol adaptation component. Before the IoT controller receives sensing data sent by the sensing device, the component includes: the IoT controller 10 receiving a communication protocol sent by the sensing device; the IoT controller 10 determining a gateway adapted to the sensing device in the protocol adaptation component according to the communication protocol, and determining the communication between the IoT controller and the sensing device through the gateway.
[0033] For example, such as Figure 4As shown, the IoT controller 10 includes a protocol adapter component. This component enables the IoT controller 10 to establish communication connections with sensing devices using different protocols. The protocol adapter component is configured with different data transmission protocols such as MQTT, HTTP, Bluetooth, and Wi-Fi. When a sensing device sends a connection request to the IoT controller 10, the IoT controller 10 determines the appropriate gateway for the sensing device based on the communication protocol supported by the sensing device within the protocol adapter component. This allows the IoT controller 10 to determine the communication between itself and the sensing device based on the corresponding gateway. The IoT controller 10 also saves detailed information about the sensing devices with which it establishes connections.
[0034] Optionally, the data transmission protocol set in the protocol adapter component can be determined based on the type of sensor data that needs to be obtained in the IoT server 30.
[0035] Optionally, during the process of establishing a communication connection between the sensing device and the IoT controller 10, the IoT controller 10 can also perform device authentication on the sensing device.
[0036] Step S2: When the sensing data is a preset type of data, the IoT controller 10 determines the data processing strategy corresponding to the sensing data based on the data attributes, and uses the data processing strategy to convert the sensing data into standard sensing data and send the standard sensing data to the data relay 20.
[0037] For example, when the format of the sensor data needs to be converted to standard sensor data, the sensor data is of a preset type. The IoT controller 10 can determine the data processing strategy corresponding to the sensor data based on the data attributes. The IoT controller 10 can also determine the data processing strategy corresponding to the sensor data based on the data attributes and the data attribute category.
[0038] For example, the data attributes included in the sensing devices may differ, but the setting range of the data attribute values may be the same. If the data processing strategy corresponding to the data attributes in the sensing data is the same in the IoT controller 10, then the IoT controller 10 only needs to determine the corresponding data processing strategy based on the data attributes. However, when the data attributes included in the sensing devices are different, and the setting range of the data attribute values is also different, the data processing strategies corresponding to different data attributes in the sensing data will be different in the IoT controller 10. In this case, it is necessary to determine the corresponding data processing strategy based on the data attributes and data attribute categories.
[0039] For example, in the IoT controller 10, the sensor data is converted into standard sensor data according to the data processing strategy, and the standard sensor data is sent to the data relay 20.
[0040] For example, the sensing data from a sensor device includes the device's attribute information, functional information, and event information. Attribute information describes the specific information and state measured by the sensor during operation; it can be read and configured via the IoT server 30. Functional information indicates the functions or methods that the sensor device can call externally; it can set input and output parameters, which must be content from the attribute information. Event information describes events reported by the sensor device to the IoT server 30; it can contain multiple input parameters, which must also be content from the attribute information.
[0041] The IoT controller 10 is configured with data naming conventions for the sensor data, including the sensor device's attribute information, function information, and event information. The naming conventions for attribute information parameters are shown in Table 1, and the naming conventions for function information parameters are shown in Table 2.
[0042] Table 1. Naming Conventions for Attribute Information Parameters
[0043]
[0044]
[0045] Table 2. Naming Conventions for Functional Information Parameters
[0046]
[0047] The IoT controller 10 sets the corresponding data processing strategy according to the parameter naming rules in Tables 1 and 2, and then converts the sensor data into standard sensor data according to the data processing strategy, and sends the standard sensor data to the data relay 20.
[0048] In some implementations, the IoT controller 10 determines the data processing strategy corresponding to the sensor data based at least on the data attributes, including: the IoT controller 10 determining the device type of the sensor device based on the sensor device; and the IoT controller 10 determining the data processing strategy corresponding to the sensor data based on the device type and the data attributes.
[0049] For example, the IoT controller 10 sets the corresponding data processing strategy according to Table 1 and Table 2. However, different sensing devices need to convert different data attributes. Therefore, the data processing strategy corresponding to the sensing data can be further determined according to the device type and data attributes of the sensing device to improve the efficiency and accuracy of data conversion.
[0050] For example, the data processing strategy may have 10 data processing strategies for sensor data, but the sensor device only needs 3 data processing strategies. Therefore, the corresponding 3 data processing strategies can be obtained more precisely by identifying the device type of the sensor device.
[0051] In some implementations, the IoT controller 10 determines the data processing strategy corresponding to the sensor data based on the device type and data attributes, including: the IoT controller 10 determines a data policy request command based on the device type and sends the data policy request command to the IoT server 30; the IoT server 30 determines an initial data processing strategy corresponding to the data policy request command based on the data policy request command and sends the initial data processing strategy to the IoT controller 10; after receiving the initial data processing strategy, the IoT controller 10 determines the data processing strategy corresponding to the sensor data based on the initial data processing strategy and the data attributes.
[0052] For example, the IoT server 30 is configured with a data processing strategy for the sensing devices, so that the IoT controller 10 performs data conversion according to the data processing strategy for the sensing devices configured in the IoT server 30.
[0053] For example, the IoT server 30 sets a data processing strategy related to sensor device A. When the IoT controller 10 receives sensor data sent by sensor device A, it determines the device type of sensor device A based on the sensor data. When the device type meets preset conditions, it sends a data strategy request command to the IoT server 30. The IoT server 30 obtains the data processing strategy related to sensor device A, i.e., the initial data processing strategy, based on the data strategy request command. After receiving the initial data processing strategy, the IoT controller 10 determines the data processing strategy corresponding to each data attribute in the sensor data based on the initial data processing strategy and the data attributes.
[0054] In some implementations, the sensing data includes a first attribute and a first attribute result corresponding to the first attribute. The sensing data is converted into standard sensing data using a data processing strategy, including: the IoT controller 10 unifies the attribute name of the first attribute using the data processing strategy to obtain a second attribute; the IoT controller 10 unifies the attribute value of the first attribute result according to the data processing strategy to obtain a second attribute result; and the IoT controller 10 obtains standard sensing data based on the second attribute and the second attribute result.
[0055] For example, the sensor data includes a first attribute and the corresponding first attribute result. For the same attribute, different manufacturers may name it differently when setting the attribute in the sensor data, and the units corresponding to the attribute result in the sensor data may be different, which results in different measurement methods for the attribute result. Therefore, data processing strategies can be used to convert the attribute in the sensor data into the attribute in standard sensor data, and to convert the attribute result in the sensor data into the attribute result in standard sensor data.
[0056] For example, based on the attribute naming conventions defined in Table 1, regular expression rules are set in the data processing strategy. Taking the attribute name as "identifier" as an example, a regular expression is established. When the attribute name corresponding to the identifier meets the regular expression, it means that the "identifier" attribute in the sensor data meets the requirements. If the name does not meet the regular expression, it means that the "name" attribute in the sensor data does not meet the requirements and the "name" attribute needs to be modified according to the rules of the regular expression until the "name" attribute meets the requirements.
[0057] For example, the attribute name of the "identifier" in sensor device A is "BSF", and the attribute name of the "identifier" in sensor device B is "bsf". The regular expression requires that the attribute name of the "identifier" be all uppercase. The attribute name in sensor device A meets the requirement, but the attribute name in sensor device B does not meet the requirement. Therefore, the attribute name in sensor device B can be changed to all uppercase according to the regular expression.
[0058] For example, rules for attribute value transformation between different units can be established to determine the method of attribute value unification in the data processing strategy. This enables the IoT controller 10 to unify attribute values according to the rules for attribute value transformation between different units, thereby obtaining the corresponding attribute results.
[0059] For example, when setting the conversion method between meters per second and kilometers per hour, the unit is set to kilometers per hour when the attribute value is unified. Therefore, when the attribute value under the same attribute does not meet the unit requirement, the attribute value can be unified by using its conversion relationship with kilometers per hour.
[0060] In some implementations, the data processing strategy includes an attribute name mapping table. The IoT controller 10 uses the data processing strategy to unify the attribute names of the first attribute and obtain the second attribute. This includes: the IoT controller 10 performs attribute preprocessing on the first attribute to obtain the preprocessed attribute corresponding to the first attribute; and the IoT controller 10 unifies the attribute names of the preprocessed attribute according to the attribute name mapping table to obtain the second attribute.
[0061] For example, to further ensure the accuracy of consistent attribute names, an attribute name mapping table can be set in the data processing strategy. By establishing the attribute name mapping table, a consistent name can be determined for each attribute.
[0062] For example, the attribute name of an "identifier" might be "BSF", "bsf", "Bsf", etc. To unify the attribute names, a mapping table can be created to unify the attribute names of all "identifiers" to "BSF". The mapping table is shown as {"BSF":"BSF","bsf":"BSF","Bsf":"BSF"}.
[0063] For example, the IoT controller 10 performs attribute preprocessing on the first attribute, including case conversion, removal of redundant characters, etc., to obtain the preprocessed attribute. Then, the IoT controller 10 unifies the attribute name of the preprocessed attribute according to the attribute name mapping table to obtain the second attribute.
[0064] For example, an attribute name mapping table like {"BSF":"BSF","bsf":"BSF","Bsf":"BSF"} can be preprocessed to ensure that the attribute name mapping table can play its maximum role. For example, the attribute name of "identifier" is "bSf", "BSF", etc. The preprocessing can remove the interfering factors in the attribute name of "identifier" and thus obtain a better result of attribute name uniformity.
[0065] In some implementations, the data processing strategy further includes an attribute processing strategy mapping table. The IoT controller 10 unifies the attribute values of the first attribute result according to the data processing strategy to obtain the second attribute result. This includes: the IoT controller 10 determining the attribute value unification strategy corresponding to the first attribute result in the attribute processing strategy mapping table according to the first attribute; and the IoT controller 10 unifying the attribute values of the first attribute result according to the attribute value unification strategy to obtain the second attribute result.
[0066] For example, different attributes correspond to different attribute value unification strategies. An attribute processing strategy mapping table is established in the data processing strategy, so that different attributes can be unified according to the corresponding attribute strategy.
[0067] For example, sensor A's heart rate "xinlv" is measured in "seconds per second," while sensor B's heart rate "XL" is measured in "minutes per second." Standard sensor data sets the heart rate to "minutes per second." Therefore, the attribute value of sensor A's heart rate does not meet the requirements. The attribute value corresponding to sensor A's heart rate "xinlv" needs to be multiplied by 60 to obtain the attribute value in "minutes per second." The attribute processing strategy corresponding to "xinlv" can be set to Rule 1. Therefore, in the attribute processing strategy mapping table, it is set to {"xinlv": "Rule 1"}. Thus, when the attribute name is "xinlv," its attribute processing strategy can be obtained from the attribute processing strategy mapping table as Rule 1, and the attribute value can be unified according to the program corresponding to Rule 1.
[0068] Step S3: After receiving the standard sensor data, the data relay 20 encapsulates the standard sensor data to obtain encapsulated sensor data, determines the data transmission method according to the data attributes of the standard sensor data, and transmits the encapsulated sensor data to the IoT server 30 according to the data transmission method.
[0069] For example, after receiving standard sensor data, the data relay 20 encapsulates the standard sensor data and determines the data transmission method based on the data attributes of the standard sensor data, that is, determines the data transmission interface of the encapsulated sensor data, and then transmits it to the IoT server 30 according to the corresponding data transmission interface.
[0070] For example, the data attributes of standard sensor data have different functions and need to be stored in databases with different functions. Therefore, the corresponding data transmission method can be determined according to the data attributes, and different data transmission interfaces can be called to transmit the corresponding data attributes to the corresponding database in the IoT server 30 according to the data transmission interface.
[0071] In some implementations, after receiving standard sensing data, the data relay 20 encapsulates the standard sensing data to obtain encapsulated sensing data, including: the data relay 20 encapsulates the standard sensing data to obtain an encapsulation result; the data relay 20 serializes the encapsulation result to obtain a serialization result corresponding to the encapsulation result, and obtains the encapsulated sensing data based on the serialization result.
[0072] For example, when the data relay 20 transmits encapsulated sensor data to the IoT server 30, it needs to encapsulate the standard sensor data according to the interface requirements set by the IoT server 30 to obtain the encapsulation result, satisfy the data transmission interface requirements corresponding to the corresponding sensor device type in the IoT server 30, and serialize the encapsulation result to enable data transmission, obtain the serialization result corresponding to the encapsulation result, and then obtain the encapsulated sensor data based on the serialization result.
[0073] For example, when standard sensor data corresponding to sensor device A is uploaded to IoT server 30, the standard sensor data needs to be encapsulated twice. For instance, if the standard sensor data is {"xinlv":300}, and the encapsulation result requirement for sensor device A is {"name": "sensor device A", "answer": {"xinlv":300}}, then when the standard sensor data received from sensor device B is {"xinlv":200}, the standard sensor data needs to be encapsulated twice to obtain {"name": "sensor device B", "answer": {"xinlv":200}}.
[0074] In some implementations, the data transmission method is determined based on the data attributes of the standard sensor data, including: the data relay 20 determines the sensor device type corresponding to the standard sensor data based on the data attributes of the standard sensor data, and then determines the data transmission method of the standard sensor data based on the sensor device type.
[0075] For example, sensor device A and sensor device B are two different types of sensor devices and are stored in different databases in IoT server 30. Therefore, when data relay 20 transmits encapsulated sensor data to IoT server 30, the interfaces called are different. Therefore, it is necessary to determine the data transmission method according to the data attributes of standard sensor data, and then transmit the sensor data of the corresponding sensor device type to IoT server 30 according to the corresponding data transmission interface.
[0076] When the sensing data from the sensing device is reported to the IoT server 30, the IoT controller 10 receives the sensing data and standardizes it to obtain standard sensing data. The IoT controller 10 then sends the standard sensing data to the data relay 20, which in turn synchronously uploads the sensing data from the sensing device to the IoT server 30. The IoT server 30 can analyze the received sensing data and issue corresponding control commands to the sensing device, thereby enabling the sensing device to operate normally.
[0077] In some embodiments, the method further includes: the data relay 20 receiving control commands sent by the IoT server 30, and responding to the control commands to obtain control data information, using the control data information to perform information parsing to obtain parsed data information, and sending the parsed data information to the IoT controller 10; after receiving the parsed data information, the IoT controller 10 obtains the target sensing device based on the parsed data information, and sends the parsed data information to the target sensing device, so that the target sensing device operates according to the control commands sent by the IoT server 30.
[0078] For example, when the IoT server 30 sends a control command to the sensing device, the data relay 20 first receives the control command sent by the IoT server 30 and responds to the control command to obtain the control data information contained in the control command. The data relay 20 uses the control data information to parse the information and obtain parsed data information, and sends the parsed data information to the IoT controller 10. After receiving the parsed data information, the IoT controller 10 obtains the target sensing device according to the target sensing device field or the type of the target sensing device contained in the parsed data information, and sends the parsed data information to the target sensing device so that the target sensing device operates according to the control command sent by the IoT server 30.
[0079] For example, a ventilation sensor is installed in the tunnel. This ventilation sensor can obtain air quality based on its own sensors. Therefore, when the ventilation sensor uploads its own operating parameters to the IoT server 30, it also uploads the air quality as sensor data. Thus, when the IoT server 30 receives the sensor data from the ventilation sensor—its own operating parameters and air quality—it can determine that the air quality in the tunnel is poor. It can then adjust the operating parameters of the ventilation sensor and issue corresponding control commands, causing the target sensor, i.e., the ventilation sensor in the tunnel, to operate according to the control commands sent by the IoT server 30.
[0080] In some implementations, information parsing is performed using control data information to obtain parsed data information, including: the data transfer unit 20 deserializes the control data information to obtain a deserialization result; the data transfer unit 20 parses the deserialization result to obtain the parsed data information corresponding to the control data information.
[0081] For example, when control command data is sent from IoT server 30, data relay 20 will deserialize the control command into processable parsed data information for the next step of data transmission between IoT controller 10 and sensing device.
[0082] The data relay 20 acts as a bridge between the IoT controller 10 and the IoT server 30. It provides data encapsulation and parsing, data forwarding interfaces, and data control distribution functions to process the sensor data converted by the IoT controller 10. Furthermore, during data flow with the IoT server 30, it provides data attribute hosting, event subscription notifications, and a remote encryption module to centrally process data uploaded to the IoT server 30 and commands issued by the IoT server 30. The overall business framework of this application embodiment is as follows: Figure 5 As shown.
[0083] refer to Figure 1 This application embodiment also provides an Internet of Things (IoT) system 100, which includes an IoT controller 10, a data relay 20, and an IoT server 30. The IoT server 30 is communicatively connected to the IoT controller 10 through the data relay 20, and includes:
[0084] When the IoT controller 10 receives sensing data sent by the sensing device, it obtains the data attributes of the sensing data and determines whether the sensing data is a preset type of data based on the data attributes.
[0085] When the sensing data is a preset type of data, the IoT controller 10 determines the data processing strategy corresponding to the sensing data based on the data attributes, and uses the data processing strategy to convert the sensing data into standard sensing data and send the standard sensing data to the data relay 20.
[0086] After receiving the standard sensor data, the data relay 20 encapsulates the standard sensor data to obtain encapsulated sensor data, determines the data transmission method according to the data attributes of the standard sensor data, and transmits the encapsulated sensor data to the IoT server 30 according to the data transmission method.
[0087] In some implementations, the IoT controller 10 includes a protocol adaptation component that performs the following before receiving sensing data from the sensing device:
[0088] The IoT controller 10 receives the communication protocol sent by the sensing device;
[0089] The IoT controller 10 determines the gateway that is compatible with the sensing device in the protocol adapter component according to the communication protocol, and determines the communication between the IoT controller 10 and the sensing device through the gateway.
[0090] In some implementations, the IoT controller 10 determines, at least based on the data attributes, the data processing strategy corresponding to the sensor data and executes it:
[0091] The IoT controller 10 determines the device type of the sensing device based on the sensing device;
[0092] The IoT controller 10 determines the data processing strategy corresponding to the sensor data based on the device type and data attributes.
[0093] In some implementations, the IoT controller 10 determines the data processing strategy corresponding to the sensor data based on the device type and data attributes, and executes it as follows:
[0094] The IoT controller 10 determines the data policy request command based on the device type and sends the data policy request command to the IoT server 30;
[0095] The IoT server 30 determines the initial data processing strategy corresponding to the data policy request command based on the data policy request command, and sends the initial data processing strategy to the IoT controller 10.
[0096] After receiving the initial data processing strategy, the IoT controller 10 determines the data processing strategy corresponding to the sensor data based on the initial data processing strategy and the data attributes.
[0097] In some implementations, the sensing data includes a first attribute and the corresponding first attribute result. The sensing data is then converted into standard sensing data using a data processing strategy, and the following steps are performed:
[0098] The IoT controller 10 uses a data processing strategy to unify the attribute names of the first attribute and obtain the second attribute;
[0099] The IoT controller 10 unifies the attribute values of the first attribute result according to the data processing strategy to obtain the second attribute result;
[0100] The IoT controller 10 obtains standard sensing data based on the second attribute and the result of the second attribute.
[0101] In some implementations, the data processing strategy includes an attribute name mapping table. The IoT controller 10 uses the data processing strategy to unify the attribute names of the first attribute, obtain the second attribute, and executes:
[0102] The IoT controller 10 performs attribute preprocessing on the first attribute to obtain the preprocessed attribute corresponding to the first attribute;
[0103] The IoT controller 10 unifies the attribute names of the preprocessed attributes according to the attribute name mapping table to obtain the second attribute.
[0104] In some implementations, the data processing strategy also includes an attribute processing strategy mapping table. The IoT controller 10 unifies the attribute values of the first attribute result according to the data processing strategy to obtain the second attribute result, and then executes:
[0105] The IoT controller 10 determines the unified strategy for the attribute value corresponding to the result of the first attribute in the attribute processing strategy mapping table based on the first attribute.
[0106] The IoT controller 10 unifies the attribute values of the first attribute result according to the attribute value unification strategy to obtain the second attribute result.
[0107] In some implementations, after receiving standard sensor data, the data relay 20 encapsulates the standard sensor data to obtain encapsulated sensor data, and then performs the following:
[0108] Data transceiver 20 encapsulates standard sensor data to obtain the encapsulation result;
[0109] The data transceiver 20 serializes the encapsulation result to obtain the serialization result corresponding to the encapsulation result, and obtains the encapsulated sensing data based on the serialization result.
[0110] In some implementations, the data transmission method is determined based on the data attributes of the standard sensor data, including: the data relay 20 determines the sensor device type corresponding to the standard sensor data based on the data attributes of the standard sensor data, and then determines the data transmission method of the standard sensor data based on the sensor device type.
[0111] In some implementations, the following is also performed:
[0112] The data relay 20 receives control commands sent by the IoT server 30, responds to the control commands to obtain control data information, uses the control data information to perform information parsing to obtain parsed data information, and sends the parsed data information to the IoT controller 10.
[0113] After receiving and parsing the data information, the IoT controller 10 obtains the target sensing device based on the parsed data information and sends the parsed data information to the target sensing device so that the target sensing device can operate according to the control commands sent by the IoT server 30.
[0114] In some implementations, the data transfer unit 20 is used to parse control data information to obtain parsed data information and perform the following:
[0115] Data transfer unit 20 deserializes the control data information to obtain the deserialization result;
[0116] The data transfer unit 20 parses the deserialization result to obtain the parsed data information corresponding to the control data information.
[0117] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the IoT system 100 described above can be referred to the corresponding process in the aforementioned control method embodiments, and will not be repeated here.
[0118] It should be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0119] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method applied to an Internet of Things (IoT) system, the IoT system comprising an IoT controller, a data relay, and an IoT server, wherein the IoT server is communicatively connected to the IoT controller via the data relay, characterized in that, The method includes: When the IoT controller receives sensing data sent by the sensing device, it acquires the data attributes of the sensing data and determines whether the sensing data is a preset type of data based on the data attributes. When the sensing data is a preset type of data, the IoT controller determines the data processing strategy corresponding to the sensing data based on the data attributes, and uses the data processing strategy to convert the sensing data into standard sensing data and send the standard sensing data to the data relay. After receiving the standard sensor data, the data relay encapsulates the standard sensor data to obtain encapsulated sensor data, determines the data transmission method according to the data attributes of the standard sensor data, and transmits the encapsulated sensor data to the IoT server according to the data transmission method. The IoT controller determines the data processing strategy corresponding to the sensor data based at least on the data attributes, including: The IoT controller determines the device type of the sensing device based on the sensing device; The IoT controller determines the data processing strategy corresponding to the sensor data based on the device type and the data attributes. The IoT controller determines the data processing strategy corresponding to the sensor data based on the device type and the data attributes, including: The IoT controller determines the data policy request command based on the device type and sends the data policy request command to the IoT server; The IoT server determines the initial data processing strategy corresponding to the data policy request command based on the data policy request command, and sends the initial data processing strategy to the IoT controller; After receiving the initial data processing strategy, the IoT controller determines the data processing strategy corresponding to the sensor data based on the initial data processing strategy and the data attributes.
2. The method according to claim 1, characterized in that, The IoT controller includes a protocol adaptation component, and the process before the IoT controller receives sensing data sent by the sensing device includes: The IoT controller receives the communication protocol sent by the sensing device; The IoT controller determines a gateway compatible with the sensing device in the protocol adaptation component according to the communication protocol, and determines the communication between the IoT controller and the sensing device through the gateway.
3. The method according to claim 1, characterized in that, The sensing data includes a first attribute and a corresponding first attribute result. The step of converting the sensing data into standard sensing data using the data processing strategy includes: The IoT controller uses the data processing strategy to unify the attribute name of the first attribute to obtain the second attribute; The IoT controller unifies the attribute values of the first attribute result according to the data processing strategy to obtain the second attribute result. The IoT controller obtains the standard sensing data based on the second attribute and the result of the second attribute.
4. The method according to claim 3, characterized in that, The data processing strategy includes an attribute name mapping table. The IoT controller uses the data processing strategy to unify the attribute names of the first attribute to obtain the second attribute, including: The IoT controller performs attribute preprocessing on the first attribute to obtain the preprocessed attribute corresponding to the first attribute. The IoT controller unifies the attribute names of the preprocessed attributes according to the attribute name mapping table to obtain the second attribute.
5. The method according to claim 4, characterized in that, The data processing strategy further includes an attribute processing strategy mapping table. The IoT controller unifies the attribute values of the first attribute result according to the data processing strategy to obtain the second attribute result, including: The IoT controller determines the unified strategy for the attribute value corresponding to the result of the first attribute in the attribute processing strategy mapping table based on the first attribute. The IoT controller unifies the attribute values of the first attribute result according to the attribute value unification strategy to obtain the second attribute result.
6. The method according to claim 1, characterized in that, After receiving the standard sensing data, the data relay encapsulates the standard sensing data to obtain encapsulated sensing data, including: The data transceiver encapsulates the standard sensor data to obtain the encapsulation result. The data relay serializes the encapsulation result to obtain the serialization result corresponding to the encapsulation result, and obtains the encapsulated sensing data based on the serialization result.
7. The method according to claim 1, characterized in that, The step of determining the data transmission method based on the data attributes of the standard sensor data includes: the data relay determining the sensor device type corresponding to the standard sensor data based on the data attributes of the standard sensor data, and then determining the data transmission method of the standard sensor data based on the sensor device type.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: The data relay receives control commands sent by the IoT server, responds to the control commands to obtain control data information, uses the control data information to parse information to obtain parsed data information, and sends the parsed data information to the IoT controller. After receiving the parsed data information, the IoT controller obtains the target sensing device based on the parsed data information and sends the parsed data information to the target sensing device so that the target sensing device operates according to the control instructions sent by the IoT server.
9. The method according to claim 8, wherein the step of using the control data information to perform information parsing to obtain parsed data information includes: The data relay deserializes the control data information to obtain the deserialization result; The data relay parses the deserialization result to obtain the parsed data information corresponding to the control data information.
10. An Internet of Things (IoT) system, comprising an IoT controller, a data relay, and an IoT server, wherein the IoT server is communicatively connected to the IoT controller via the data relay, characterized in that, include: When the IoT controller receives sensing data sent by the sensing device, it acquires the data attributes of the sensing data and determines whether the sensing data is a preset type of data based on the data attributes. When the sensing data is a preset type of data, the IoT controller determines the data processing strategy corresponding to the sensing data based on the data attributes, and uses the data processing strategy to convert the sensing data into standard sensing data and send the standard sensing data to the data relay. After receiving the standard sensor data, the data relay encapsulates the standard sensor data to obtain encapsulated sensor data, determines the data transmission method according to the data attributes of the standard sensor data, and transmits the encapsulated sensor data to the IoT server according to the data transmission method.
Citation Information
Patent Citations
Internet of Things equipment and Internet of Things server communicating method and device
CN104394143A