Data subscription method for Internet of Things platform and electronic equipment

By providing a data subscription method with customized subscription rules and data format mapping relationships on the Internet of Things platform, the problem of inconsistent subscription scope and data format in the existing technology is solved, and the personalized needs and data uniformity of subscription users are realized, and the user experience is improved.

CN119865519APending Publication Date: 2025-04-22BEIJING CAPITEK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510111265.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

Due to the inconsistent subscription scope and data format of the existing IoT platform, subscribers find it difficult for users to directly understand the data reported by the device, which increases the time cost and difficulty of users.

Method used

Provides a data subscription method that allows subscribers to customize subscription rules, including subscription scope and data format mapping relationships. By reading the pre-processed reported data on the device side in real time, we judge whether the data meets the subscription scope, and process the data according to the mapping relationship to generate unified subscription format data.

Benefits of technology

It realizes that subscribers can flexibly customize the device scope and data format, meet personalized needs, improve data unity and comprehensibility, and enhance user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865519A_ABST
    Figure CN119865519A_ABST
Patent Text Reader

Abstract

The invention discloses a data subscription method for an Internet of Things platform and electronic equipment, and belongs to the technical field of Internet of Things, the method comprises the following steps: a subscription user customizes a subscription rule, and the subscription rule comprises a subscription range and a data format mapping relation; starting a subscription task, and reading the preprocessed reported data corresponding to the plurality of equipment ends in real time; and judging whether the reported data conforms to the subscription range or not, and processing the reported data according to a judgment result. According to the method and the device, the data formats obtained by the subscribing user are uniform, the requirement that the subscribing user decides the wanted data format is met, display and overall planning are more convenient, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of Internet of Things, and in particular, relates to a data subscription method and electronic device for an Internet of Things platform. Background Art

[0002] In similar products of IoT technology, the basic implementation is that subscribers directly obtain the reported data from the device side according to the specified device set. However, this method will result in the acquisition of non-uniform data formats due to factors such as different industries and models of terminals, making it impossible for subscribers to directly and accurately understand the reported data of these devices. In addition, with the increase in device models and device terminals, subscribers have to spend a lot of time to repeatedly integrate these complex data. In the later stage, they may even be unable to integrate them, which does not bring a better experience to users.

[0003] In order to solve the above problems, a data subscription method and electronic device for an Internet of Things platform are proposed in the present application. Summary of the invention

[0004] In order to address the deficiencies of the prior art, the present application provides a data subscription method and electronic device for an Internet of Things platform, which is used to solve technical problems in the prior art such as the subscription scope, the inconsistent data format obtained by the subscribing users, and the difficulty in meeting the needs and experience of the subscribing users.

[0005] The technical effects to be achieved by this application are achieved through the following solutions: In a first aspect, the present application provides a data subscription method for an Internet of Things platform, the method comprising: Subscribers define subscription rules, wherein the subscription rules include a mapping relationship between subscription scope and data format; Start the subscription task to read the pre-processed reporting data corresponding to multiple devices in real time; Determine whether the reported data complies with the subscription scope, and process the reported data according to the determination result.

[0006] In some embodiments, the subscription scope includes: Regional and industry information; Regional information and product information; Project information and industry information; Project information and product information.

[0007] In some embodiments, the regional information is five levels, including: province, city, district, street, and community. The first four levels have corresponding codes, and the community corresponds to the community name; the project information is a specified set of equipment.

[0008] In some embodiments, the data format mapping relationship represents a comparison relationship between unified standard format parameters and user subscription format parameters, wherein the user subscription format parameters are parameters determined by each subscribing user according to personalized needs.

[0009] In some embodiments, the parameters determined by the user according to the personalized needs include at least one of the following methods: Parameter renaming; Parameter position adjustment Set the default value when the parameter has no value Merge parameters with the same meaning across different products.

[0010] In some embodiments, the processing of the reported data according to the judgment result includes: If the judgment result is that the reported data meets the subscription scope, converting the reported data according to the data format mapping relationship to obtain the subscription format data of the subscribing user; When the judgment result is that the reported data does not conform to the subscription scope, the reported data is not processed.

[0011] In some embodiments, the subscription format data is in JSON format.

[0012] In some embodiments, the method further comprises: The subscription format data is sent to the subscription user platform.

[0013] In a second aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods described above when executing the computer program.

[0014] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any of the methods described above.

[0015] Through the data subscription method and electronic device for the Internet of Things platform of the present application, the subscribers of the method can customize the subscription scope, so that they are not limited to a single type of a specified device set, and there are multiple strategies to determine the scope of the subscribed device, and the data format obtained by the subscribers is unified, which satisfies the subscribers to decide the data format they want, is more convenient for display coordination, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the existing technical solutions, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 This is a schematic diagram of data subscription related technology for an Internet of Things platform in an embodiment of the present application; Figure 2 This is a flow chart of a data subscription method for an Internet of Things platform in one embodiment of the present application; Figure 3 A data format mapping relationship diagram of a data subscription method for an Internet of Things platform in an embodiment of the present application; Figure 4 This is a specific example flow chart of a data subscription method for an Internet of Things platform in an embodiment of the present application; Figure 5 It is a schematic block diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0019] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in one or more embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0020] In related technologies, such as Figure 1As shown, the subscribing user obtains reported data from multiple devices, such as type 1 devices, type 2 devices, and type 3 devices.

[0021] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.

[0022] First, refer to Figure 2 , the data subscription method for the Internet of Things platform of this application is described in detail: The present application provides a data subscription method for an Internet of Things platform, the method comprising: S1: Subscribe to a user-defined subscription rule, where the subscription rule includes a mapping relationship between a subscription scope and a data format; S2: Start the subscription task and read the pre-processed reporting data corresponding to multiple devices in real time; S3: Determine whether the reported data conforms to the subscription scope, and process the reported data according to the determination result.

[0023] Through the data subscription method and electronic device for the Internet of Things platform of the present application, the subscribers of the method can customize the subscription scope, so that they are not limited to a single type of a specified device set, and there are multiple strategies to determine the scope of the subscribed device, and the data format obtained by the subscribers is unified, which satisfies the subscribers to decide the data format they want, is more convenient for display coordination, and improves the user experience.

[0024] like Figure 4 The data subscription method for the Internet of Things platform in this application includes: 1) Start; 2) Configure subscription rules for subscribers on the page, including subscription scope, such as region / project (indicating region information or project information), industry / product (indicating industry information or product information), and format mapping relationships under different data types; 3) After completing the configuration of the subscription rules, start the subscription task and start reading the pre-processed reported data from the device in real time (the pre-processed reported data is obtained by dividing the large amount of raw data reported by the device according to the data type and converting its format into the internal standard format; these basic parameters are stored in a fixed location, and data with differences in industry and product are stored independently); 4) Determine whether the reported data complies with the subscription rules. If it complies with the subscription rules, find the format mapping relationship customized by the subscriber according to the data type of the reported data, generate the subscription data corresponding to the subscriber and send it to the user platform. If it does not comply with the subscription rules, end the process without processing (send the obtained subscription data to the subscriber platform via HTTP).

[0025] 5) End.

[0026] In some embodiments, the subscribing user customizes the subscription rules, including: using the "region + industry" strategy setting to: (Jiuxianqiao Street, Wangjing Street) + (smoke sensor), the corresponding code is: (110105011*, 110105026*) + (12), * indicates fuzzy matching.

[0027] The data format mapping relationship for configuring the smoke-heartbeat type is shown in the following table (pj and its predecessors are basic parameters, and pi.cc and its predecessors are parameters that vary depending on the product): Table 1 Smoke sensor industry-heartbeat type format mapping relationship of subscribers

[0028] In some embodiments, the subscription scope includes: Regional and industry information; Regional information and product information; Project information and industry information; Project information and product information.

[0029] In some embodiments, the regional information is five levels, including: province, city, district, street, and community. The first four levels have corresponding codes, and the community corresponds to the community name; the project information is a specified set of equipment.

[0030] Specifically, the customized subscription rule can be: the user sets the subscription rule that meets his / her own needs through the website page, and the subscription rule includes two parts: subscription scope and data format mapping relationship.

[0031] Subscription scope configuration strategy: a combination of regional information / project information and industry information / product information. For example, there are four types of information, which are subdivided into the following four combinations: Regional information + industry information, regional information + product information, project information + industry information, project information + product information; regional information is divided into five levels: province, city, district, street, and community. The first four corresponding codes are defined by the relevant regional codes, which are composed of province (2 digits), city (2 digits), district (2 digits), and street (3 digits). Project information is a specified set of equipment. One industry information can contain multiple product information. In some embodiments, the data format mapping relationship represents a comparison relationship between unified standard format parameters and user subscription format parameters, wherein the user subscription format parameters are parameters determined by each subscribing user according to personalized needs.

[0032] In some embodiments, the parameters determined by the user according to the personalized needs include at least one of the following methods: Parameter renaming; Parameter position adjustment Set the default value when the parameter has no value Merge parameters with the same meaning across different products.

[0033] Specifically, the data format mapping relationship (such as Figure 3 ) defines the correspondence between the internal unified standard format parameters and the user-subscribed format parameters; the internal unified standard format is the device-reported data that has undergone simple preprocessing, the basic parameters are stored in a fixed position, and the parameters that differ by industry, product, etc. are stored independently.

[0034] Start the subscription task and read the pre-processed reported data corresponding to multiple devices in real time; when a heartbeat data is read, the sample data is displayed in JSON format as follows: { "rt": "2024-11-11 13:56:37", "vd": "Type A", "di": "A001", "ft": 12, "st": 1, "hd": "11010501100022", "pj": 0, "pi": { "cc": 0.65, "hm": 20.3 } } Reference Figure 3 The internal unified standard format, for example, key includes key1, key2, key3, and the corresponding user-defined format can be key1, key22, key3.key33. The corresponding different ways of determining parameters include: the key value remains unchanged and the default value is set; the key changes and the level remains unchanged; the key changes and the level changes.

[0035] For example, the parameters corresponding to the internal unified standard format are as follows: { "key1": null, "key2": 2, "key3": 3, … } Accordingly, the parameters corresponding to the user-defined format are as follows: { "key1": 100, "key22": 2, "key3": { "key33": 3 } … } Subscribed users can set parameters as needed on the page. The setting methods include: parameter renaming, parameter position adjustment, default value when parameter has no value, merging parameters with the same meaning of different products, etc.; this is for exemplary purposes only, and other possible technical methods known to those skilled in the art can also be applied here, without limitation.

[0036] In some embodiments, the processing of the reported data according to the judgment result includes: If the judgment result is that the reported data meets the subscription scope, converting the reported data according to the data format mapping relationship to obtain the subscription format data of the subscribing user; When the judgment result is that the reported data does not conform to the subscription scope, the reported data is not processed.

[0037] In some embodiments, determining the subscription scope includes: for example, the area corresponding to the subscription scope: Jiuxianqiao Street, Chaoyang District, Beijing (110105011*), where * is a fuzzy match, and the industry corresponds to the industry code (12).

[0038] Specifically, the reported community code is, for example, 11010501100022, which is consistent with Jiuxianqiao Street (110105011*) in the subscription scope. The reported industry code is 12, which is also consistent with the smoke sensor (12) industry in the subscription scope. The corresponding data format mapping relationship can also be found through the data type (refer to Table 1). According to the data format mapping relationship, the subscription format data of the subscribed user is converted, and the JSON format is shown as follows: { "rt": "2024-11-11 13:56:37", "vd": "Type A", "di": "A001", "ind": 12, "po": { "code": "11010501100022" }, "smoke": 0.65, "hm": 20.3 } In some embodiments, the subscription format data is in JSON format.

[0039] In some embodiments, the method further comprises: The subscription format data is sent to the subscription user platform.

[0040] The data subscription method and electronic device for the Internet of Things platform provided in this application can simultaneously process data reported by devices of different models; subscribers can use four strategies to define the desired device range; and subscribers can flexibly customize the data format they require.

[0041] It should be noted that the method of one or more embodiments of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of one or more embodiments of the present application, and the multiple devices will interact with each other to complete the described method.

[0042] It should be noted that the above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0043] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also discloses an electronic device; Specifically, Figure 5 A hardware structure diagram of an electronic device for a data subscription method for an Internet of Things platform provided in this embodiment is shown, and the device may include: a processor 410, a memory 420, an input / output interface 430, a communication interface 440, and a bus 450. The processor 410, the memory 420, the input / output interface 430, and the communication interface 440 are connected to each other in communication within the device through the bus 450.

[0044] The processor 410 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0045] The memory 420 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 420 and is called and executed by the processor 410.

[0046] The input / output interface 430 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0047] The communication interface 440 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (for example, USB, network cable, etc.) or a wireless mode (for example, mobile network, WIFI, Bluetooth, etc.).

[0048] The bus 450 includes a path that transmits information between the various components of the device (eg, the processor 410 , the memory 420 , the input / output interface 430 , and the communication interface 440 ).

[0049] It should be noted that, although the above device only shows the processor 410, the memory 420, the input / output interface 430, the communication interface 440 and the bus 450, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0050] The electronic device of the above embodiment is used to implement the corresponding data subscription method for the Internet of Things platform in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0051] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, one or more embodiments of the present application also provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the data subscription method for the Internet of Things platform as described in any of the above embodiments.

[0052] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0053] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the data subscription method for the Internet of Things platform as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0054] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0055] In addition, to simplify the description and discussion, and in order not to make one or more embodiments of the present application difficult to understand, the well-known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided figures. In addition, the device may be shown in the form of a block diagram to avoid making one or more embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that one or more embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0056] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.

[0057] One or more embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A data subscription method for an Internet of Things platform, characterized in that: The method comprises: Subscribers define subscription rules, wherein the subscription rules include a mapping relationship between subscription scope and data format; Start the subscription task to read the pre-processed reporting data corresponding to multiple devices in real time; Determine whether the reported data complies with the subscription scope, and process the reported data according to the determination result.

2. The data subscription method for an Internet of Things platform according to claim 1, characterized in that: The subscription scope includes: Regional and industry information; Regional information and product information; Project information and industry information; Project information and product information.

3. The data subscription method for an Internet of Things platform according to claim 2, characterized in that: The regional information is divided into five levels, including province, city, district, street, and community. The first four levels have corresponding codes, and the community corresponds to the community name; the project information is a specified set of equipment.

4. The data subscription method for an Internet of Things platform according to claim 1, characterized in that: The data format mapping relationship represents the comparison relationship between the unified standard format parameters and the user subscription format parameters, wherein the user subscription format parameters are parameters determined by each subscribing user according to personalized needs.

5. The data subscription method for an Internet of Things platform according to claim 4, characterized in that: The parameters determined by the user according to the personalized needs include at least one of the following methods: Parameter renaming; Parameter position adjustment Set the default value when the parameter has no value Merge parameters with the same meaning across different products.

6. The data subscription method for an Internet of Things platform according to claim 5, characterized in that: The processing of the reported data according to the judgment result includes: If the judgment result is that the reported data meets the subscription scope, converting the reported data according to the data format mapping relationship to obtain the subscription format data of the subscribing user; When the judgment result is that the reported data does not conform to the subscription scope, the reported data is not processed.

7. The data subscription method for an Internet of Things platform according to claim 6, characterized in that: The subscription format data is in JSON format.

8. The data subscription method for an Internet of Things platform according to claim 7, characterized in that: The method further comprises: The subscription format data is sent to the subscription user platform.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1 to 8.