A method, system, device, and storage medium for Internet of Things communication
By setting up a general operating environment and analysis module, the multi-device access and cross-operating system problems of the Internet of Things communication system are solved, flexible data analysis and multi-interface output are realized, breaking data silos, and promoting industry digitalization and intelligence.
Patent Information
- Application Number
- CN202211454439.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-21
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-11-21
AI Technical Summary
Existing IoT communication systems cannot access multiple types of devices at the same time, and cannot run on multiple operating systems. The communication protocol and data resolution configuration are missing, resulting in data island problems and the inability to flexibly configure and output interfaces are single.
It provides an Internet of Things communication method, sets up a general operating environment, and the access module initially converts serial port data, parses and writes it into memory. It supports multiple operating systems and device types according to the destination output, and realizes flexible configuration of data analysis rules and multi-interface output.
It realizes access and analysis of a variety of IoT devices, runs across operating systems, supports flexible analytical rules configuration and multi-interface output, breaks data silos and helps the industry to digital and intelligent transformation.
Smart Images

Figure CN115866083B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and more particularly, to a method, system, device, and storage medium for Internet of Things (IoT) communications. Background Art
[0002] With the development of edge computing technology and the advancement of digital transformation in various industries, edge server products and edge micro-server products have been applied in multiple industries, and the Internet of Everything has gradually become a reality. IoT communication has become a problem that must be solved on the path of transformation. In the digitalization process of major industries, such as transportation, energy, mining, manufacturing, water conservancy and other industries, there are various sensors, instruments, meters and special equipment at the business site, and the communication interfaces, communication protocols, communication methods and data formats used are all different. As a result, it is difficult to access sensors, devices and equipment at the business site, and communication is blocked, further leading to the problem of information islands at the business site, which is a major problem hindering the informatization transformation of the industry.
[0003] To solve the problem of IoT communication, various tools, systems and means have emerged in the industry. In terms of tools, they can be mainly divided into four categories, namely, hardware connection tools such as serial cables, serial converters, and Dupont wires, IO communication hardware interface tools such as DIO and GPIO, wireless communication tools such as LORA, Zigbee, Bluetooth, and Wifi, and the most commonly used Ethernet communication tools. Hardware transmission tools only provide a data communication link and cannot solve problems such as communication protocols, data parsing, and format conversion.
[0004] In existing similar technologies, some software can access different sensors, but there are the following limitations: 1. Access type limitation, unable to access the above four categories of communication devices simultaneously; 2. Application scenario limitation, unable to run on multiple different operating systems; 3. Lack of communication method configuration, when accessing multiple IoT devices, unable to flexibly configure the accessed devices; 4. Lack of data parsing configuration, current software mostly sets fixed parsing methods according to one or several communication methods, unable to flexibly adjust the parsing rules, thus there are limitations in the support for IoT communication; 5. Single data output interface, can only directly send out the parsed data and cannot connect to multiple types of receivers. Summary of the Invention
[0005] In view of this, the purpose of the embodiments of the present invention is to propose a method, system, computer device, and computer-readable storage medium for IoT communication. The present invention can effectively access various types of IoT devices, effectively break the data islands at the business site, effectively solve the data communication difficulties in the realization of the Internet of Everything, and clear the obstacles for the realization of the Internet of Everything; combined with edge computing, it can achieve from interconnection to intelligence, thus helping the digital and intelligent transformation of various industries.
[0006] For the above purposes, one aspect of the embodiments of the present invention provides a method for Internet of Things communication, including the following steps: setting up a general operating environment to interface with various different operating systems; in response to the access of Internet of Things devices, initially converting serial port data under different formats and different calculation rules into first digital or alphabetical information; parsing the first digital or alphabetical information and writing the parsing result into memory; and outputting the parsing result to the corresponding destination using corresponding interfaces according to the different destinations of data transmission.
[0007] In some embodiments, the initially converting serial port data under different formats and different calculation rules into first digital or alphabetical information includes: accessing and outputting data using corresponding interfaces according to the type of the accessed Internet of Things device.
[0008] In some embodiments, the initially converting serial port data under different formats and different calculation rules into first digital or alphabetical information includes: mapping different Internet of Things access devices, automatically numbering and naming the Internet of Things access devices, and forming a mapping table.
[0009] In some embodiments, the initially converting serial port data under different formats and different calculation rules into first digital or alphabetical information includes: detecting the type of the accessed Internet of Things device to obtain the corresponding connection interface; recording the Internet of Things device and the connection interface according to the detection result, and associating the type, name, and number of the Internet of Things device.
[0010] In some embodiments, the parsing the first digital or alphabetical information and writing the parsing result into memory includes: obtaining the content of the mapping table corresponding to the accessed Internet of Things device, configuring corresponding parsing rules according to the content, and processing the first digital or alphabetical information according to the parsing rules.
[0011] In some embodiments, the outputting the parsing result to the corresponding destination using corresponding interfaces according to the different destinations of data transmission includes: determining whether the destination is another application program of the current host or an application program of another host, and determining whether the docking object is a database, a cache, or an application program interface according to the destination.
[0012] In some embodiments, the outputting the parsing result to the corresponding destination using corresponding interfaces according to the different destinations of data transmission includes: in response to the destination being the current host, writing the parsing result into the corresponding database according to the read-write rules of the database, or writing the parsing result into the cache; in response to the destination being another host, encapsulating the parsing result into an application program interface message and pushing it to the corresponding destination through the application program interface.
[0013] On the other hand, an embodiment of the present invention provides a system for Internet of Things communication, including: an operation module configured to set a general operation environment to interface with various different operating systems; an access module configured to, in response to accessing an Internet of Things device, preliminarily convert serial port data under different formats and different calculation rules into first digital or alphabetical information; a processing module configured to parse the first digital or alphabetical information and write the parsing result into a memory; and an output module configured to output the parsing result to a corresponding destination through a corresponding interface according to the difference of the destination of data transmission.
[0014] In yet another aspect of the embodiments of the present invention, a computer device is further provided, including: at least one processor; and a memory storing computer instructions executable on the processor, and when the instructions are executed by the processor, the steps of the above method are implemented.
[0015] In still another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, and the computer-readable storage medium stores a computer program that implements the steps of the above method when executed by a processor.
[0016] The present invention has the following beneficial technical effects:
[0017] (1) It can realize the communication of various mainstream Internet of Things interfaces, devices and protocols, can parse various Internet of Things communication data, and can flexibly configure the parsing rules as needed;
[0018] (2) The cross-operating system runtime module can run on multiple operating systems, eliminate the differences of different operating systems, form a unified software operation platform, and realize the parsing of Internet of Things data. The embodiments of the present invention can be widely applied to cloud platforms, virtualization, Docker, Windows, Linux, and embedded Linux systems;
[0019] (3) Manage all accessed Internet of Things devices through the Internet of Things access mapping function, including classification, naming, numbering, and can detect the running status of the accessed devices in real time;
[0020] (4) Support configuring parsing rules as needed, and can flexibly adjust and update the parsing method of Internet of Things access data;
[0021] (5) It can realize the docking and communication with databases, caches and API interfaces, and can realize the communication with multiple internal and external systems. Description of the Drawings
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other embodiments can be obtained based on these drawings.
[0023] Figure 1 Schematic diagram of an embodiment of the method for Internet of Things communication provided by the present invention;
[0024] Figure 2 Schematic diagram of the architecture of Internet of Things communication provided by the present invention;
[0025] Figure 3 Schematic diagram of the Internet of Things access mapping management unit provided by the present invention;
[0026] Figure 4 Schematic diagram of an embodiment of the system for Internet of Things communication provided by the present invention;
[0027] Figure 5 Schematic diagram of the hardware structure of an embodiment of the computer device for Internet of Things communication provided by the present invention;
[0028] Figure 6 Schematic diagram of an embodiment of the computer storage medium for Internet of Things communication provided by the present invention. Detailed implementation manners
[0029] To make the objectives, technical solutions, and advantages of the present invention clearer and more understandable, the following further elaborates on the embodiments of the present invention in detail with reference to specific embodiments and the accompanying drawings.
[0030] It should be noted that all the expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two entities or parameters with the same name but different, and it can be seen that "first" and "second" are only for the convenience of expression and should not be construed as a limitation on the embodiments of the present invention. This will not be repeated in the subsequent embodiments.
[0031] In the first aspect of the embodiments of the present invention, an embodiment of a method for Internet of Things communication is proposed. Figure 1 Shown is a schematic diagram of an embodiment of the method for Internet of Things communication provided by the present invention. As Figure 1 shown, the embodiments of the present invention include the following steps:
[0032] S1. Set up a general operating environment to interface with various different operating systems;
[0033] S2. In response to the access of the Internet of Things device, preliminarily convert the serial port data under different formats and different calculation rules into the first digital or alphabetic information;
[0034] S3. Analyze the first digital or alphabetic information and write the analysis result into the memory; and
[0035] S4. Output the analysis result to the corresponding destination through the corresponding interface according to the different destinations of data transmission.
[0036] Figure 2 It is a schematic diagram of the architecture of the Internet of Things communication provided by the present invention, combined with Figure 2 to illustrate the embodiments of the present invention. This architecture is mainly software or a system installed on the system host, which accesses the data of the Internet of Things devices connected to the host, flexibly sets the parsing rules and parsing methods according to the Internet of Things type and data format, parses the accessed data, converts it into valuable data that can be read by humans, caches it in the system, and sends the data to the corresponding destinations. As Figure 2 shown, the main components of this architecture include the following major modules: 1. Cross-operating system runtime module; 2. Internet of Things data access module, which is divided into communication units corresponding to four major types of Internet of Things communications and an Internet of Things access mapping management unit; 3. Data analysis and conversion module, which is mainly divided into two major units, one is a data parser and the other is a parsing rule configurator; 4. Data storage module; 5. Data push interface module, which is divided into three categories according to different push destinations, corresponding to the database, cache, and API interface respectively.
[0037] Set a general operating environment to interface with various different operating systems. The cross-operating system runtime module in the embodiments of the present invention is mainly responsible for interfacing with various different operating systems, providing a general operating environment for the upper-layer software and systems, and ensuring that the software can run normally on different operating systems. The operating systems that this module needs to support include Windows (win7 and win10), Centos 7, Centso 8, Ubuntu18, Ubuntu20. Among them, in the Linux operating system, it needs to support both X86 and Arm simultaneously. Compared with other systems, this is a unique function of the embodiments of the present invention.
[0038] In response to the access of the Internet of Things device, preliminarily convert the serial port data under different formats and different calculation rules into the first digital or alphabetic information.
[0039] In some embodiments, the step of preliminarily converting the serial port data under different formats and different calculation rules into the first digital or alphabetic information includes: accessing and outputting data through the corresponding interface according to the type of the accessed Internet of Things device.
[0040] The Internet of Things data access module is the core functional module of the embodiment of the present invention, mainly responsible for the analysis and conversion of various Internet of Things data, and converting serial port data under different formats and different calculation rules into human-readable digital or alphabetical information. This functional module is mainly divided into two major types of functional units, namely the Internet of Things access unit and the Internet of Things access mapping management unit.
[0041] The Internet of Things access unit is mainly responsible for docking various Internet of Things hardware and interfaces, and importing the data accessed through the interfaces into the system. According to the classification of Internet of Things interfaces, it is divided into four major sub-units. The serial port communication unit can handle mainstream serial port communications such as RS485, RS232, and RS422; the IO interface communication unit can handle IO interface communications such as DIO and GPIO, including analog quantities of 4-20mA, 0-10V, and digital input / output interfaces; the wireless communication unit mainly processes wireless Internet of Things communication devices. Among them, the mainstream ones include LORA, Zigbee, UWB, Bluetooth, GPS, etc. These wireless modules generally need to install modules and drivers on the host where they are located. This unit needs to achieve adaptation and docking with the drivers, and be able to receive and send data to the driver layer to complete data interaction; the fourth type is to process Internet of Things communication protocols based on TCP / IP. The hardware layer mainly includes Ethernet, WIFI, etc. Most of this type of Internet of Things communication is achieved through MQTT. Therefore, this unit includes MQTT and MQTT docking software. The above four are the four major sub-units of the serial port communication unit. These units are mainly responsible for data access and output, and do not perform editing, modification, and parsing processing on the data.
[0042] In some embodiments, the preliminary conversion of serial port data under different formats and different calculation rules into first digital or alphabetical information includes: mapping different Internet of Things access devices, automatically numbering and naming the Internet of Things access devices, and forming a mapping table.
[0043] The Internet of Things access mapping management unit is a unique function of the embodiment of the present invention. When different types and different numbers of Internet of Things modules are accessed, this unit can perform mapping on different Internet of Things access devices, automatically number and name the devices, and generate a mapping table.
[0044] In some embodiments, the preliminary conversion of serial port data under different formats and different calculation rules into first digital or alphabetical information includes: detecting the type of the accessed Internet of Things device to obtain the corresponding connection interface; recording the Internet of Things device and the connection interface according to the detection result, and associating the Internet of Things device type, name, and number.
[0045] Figure 3Schematic diagram of the IoT access mapping management unit provided by the present invention, as Figure 3 shown, the IoT access mapping management unit is divided into three functions. The IoT device detection is responsible for detecting the accessed IoT devices and obtaining the connection interfaces of the system; the IoT device mapping table automatically records the corresponding IoT devices and interfaces according to the detection results, and can associate device types, names, and numbers; the IoT device management configuration is for administrators to use to set and update the content of the mapping table. The mapping table is also visible to other units of the system and can cooperate with the parsing rule configurator of the data analysis and conversion module.
[0046] Parse the first digital or alphabetic information and write the parsing result into the memory.
[0047] In some embodiments, the parsing the first digital or alphabetic information and writing the parsing result into the memory includes: obtaining the content of the mapping table corresponding to the accessed IoT device, configuring the corresponding parsing rule according to the content, and processing the first digital or alphabetic information according to the parsing rule.
[0048] The data analysis and conversion module is a functional module responsible for parsing and converting the accessed IoT data. It mainly parses different formats of data, such as data with different encodings like binary, hexadecimal, and ASCII, and different combination rules, into human-readable numbers or letters. Among them, various parsing rules of the accessed devices are stored in the data parser, and the accessed data is parsed and converted according to the parsing rules; the parsing rule configurator is responsible for configuring and generating parsing rules. The configurator obtains the content of the IoT device mapping table, configures the corresponding parsing rules according to the content, and sends them to the data parser for execution. The result parsed by the parser is sent to the data storage module.
[0049] The data storage module mainly receives the analysis results output by the data analysis and conversion module and writes the results into the memory. The data is saved and output in the memory until new data replaces or overwrites the original data.
[0050] Output the parsing result to the corresponding destination using the corresponding interface according to the different destinations of data transmission.
[0051] In some embodiments, the outputting the parsing result to the corresponding destination using the corresponding interface according to the different destinations of data transmission includes: determining whether the destination is another application program of the current host or an application program of another host, and determining the docking object as a database, cache, or application program interface according to the destination.
[0052] In some embodiments, outputting the parsing result to a corresponding destination according to a corresponding interface based on the different destinations of data transmission includes: in response to the destination being the current host, writing the parsing result into a corresponding database according to the read-write rules of the database, or writing the parsing result into a cache; in response to the destination being another host, encapsulating the parsing result into an application programming interface message and pushing it to the corresponding destination through the application programming interface.
[0053] The data interface push module is another unique function of the embodiments of the present invention, which outputs the data in the storage module to corresponding destinations, including other application programs of the local host, or application programs or systems of other hosts. This module can be docked with various target objects, including databases, caches, and API (application) interfaces. The database interface unit is mainly composed of database write and update commands, and writes the data in the database storage module into the corresponding database according to the read-write rules of the database; the cache interface module writes the data into the host cache; the API interface module corresponds to other applications or systems outside the system, encapsulates the data in the data storage module into an API message, and sends it to the corresponding destination through API push.
[0054] The embodiments of the present invention can effectively access various types of Internet of Things devices, support various sensor devices and data including RS232, RS485, RS422, DIO, GPIO, (40 - 20mA, 0 - 10V, digital quantity), Lora, Zigbee, Bluetooth, UWB, Ethernet, and WIFI. One device can access multiple types of Internet of Things devices, effectively breaking the data islands in the business field; the architecture of the embodiments of the present invention can be deployed on various platforms, including cloud platforms, virtualization, cloud computing hosts, edge computing hosts, Windows systems, Linux systems, and Arm-based Linux systems, with strong versatility and wide applicability; the embodiments of the present invention are not restricted by industries and can be widely applied in multiple industries such as mines, manufacturing, oil fields, transportation, water conservancy, meteorology, finance, home, and Internet, solving the problem of Internet of Things access in industry application scenarios; the embodiments of the present invention can effectively solve the data communication difficulties in the implementation of the Internet of Everything, clearing the obstacles for the realization of the Internet of Everything; combined with edge computing, it can achieve from interconnection to intelligence, thus helping the digital and intelligent transformation of various industries.
[0055] It should be particularly noted that each step in each embodiment of the above method for Internet of Things communication can be mutually crossed, replaced, added, or deleted. Therefore, these reasonable permutation and combination transformations for the method for Internet of Things communication should also fall within the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
[0056] For the above purposes, in the second aspect of the embodiments of the present invention, a system for Internet of Things communication is proposed. As Figure 4 shown, the system 200 includes the following modules: an operation module configured to set a general operation environment to interface with various different operating systems; an access module configured to, in response to accessing an Internet of Things device, preliminarily convert serial port data under different formats and different calculation rules into first digital or alphabetical information; a processing module configured to parse the first digital or alphabetical information and write the parsing result into memory; and an output module configured to output the parsing result to a corresponding destination using a corresponding interface according to the different destinations of data transmission.
[0057] In some embodiments, the access module is configured to: access and output data using a corresponding interface according to the type of the Internet of Things device accessed.
[0058] In some embodiments, the access module is configured to: map different Internet of Things access devices, automatically number and name the Internet of Things access devices, and form a mapping table.
[0059] In some embodiments, the access module is configured to: detect the type of the accessed Internet of Things device to obtain a corresponding connection interface; record the Internet of Things device and the connection interface according to the detection result, and associate the Internet of Things device type, name, and number.
[0060] In some embodiments, the processing module is configured to: obtain the content of the mapping table corresponding to the accessed Internet of Things device, configure a corresponding parsing rule according to the content, and process the first digital or alphabetical information according to the parsing rule.
[0061] In some embodiments, the output module is configured to: determine whether the destination is another application program of the current host or an application program of another host, and determine the docking object as a database, a cache, or an application program interface according to the destination.
[0062] In some embodiments, the output module is configured to: in response to the destination being the current host, write the parsing result into the corresponding database according to the read-write rules of the database, or write the parsing result into the cache; in response to the destination being another host, encapsulate the parsing result into an application program interface message and push it to the corresponding destination through the application program interface.
[0063] For the above purposes, in the third aspect of the embodiments of the present invention, a computer device is proposed, including: at least one processor; and a memory storing computer instructions that can run on the processor, and the instructions are executed by the processor to implement the following steps: S1. Set a general operating environment to interface with various different operating systems; S2. In response to the access of Internet of Things devices, preliminarily convert serial port data under different formats and different calculation rules into first digital or alphabetic information; S3. Analyze the first digital or alphabetic information and write the analysis result into the memory; and S4. Output the analysis result to the corresponding destination using the corresponding interface according to the different destinations of data transmission.
[0064] In some embodiments, the preliminary conversion of serial port data under different formats and different calculation rules into first digital or alphabetic information includes: accessing and outputting data using the corresponding interface according to the type of Internet of Things device accessed.
[0065] In some embodiments, the preliminary conversion of serial port data under different formats and different calculation rules into first digital or alphabetic information includes: mapping different Internet of Things access devices, automatically numbering and naming the Internet of Things access devices, and forming a mapping table.
[0066] In some embodiments, the preliminary conversion of serial port data under different formats and different calculation rules into first digital or alphabetic information includes: detecting the type of Internet of Things device accessed to obtain the corresponding connection interface; recording the Internet of Things device and the connection interface according to the detection result, and associating the Internet of Things device type, name and number.
[0067] In some embodiments, the analysis of the first digital or alphabetic information and writing the analysis result into the memory includes: obtaining the content of the mapping table corresponding to the accessed Internet of Things device, configuring the corresponding analysis rule according to the content, and processing the first digital or alphabetic information according to the analysis rule.
[0068] In some embodiments, outputting the analysis result to the corresponding destination using the corresponding interface according to the different destinations of data transmission includes: determining whether the destination is another application program of the current host or an application program of another host, and determining the docking object as a database, cache or application program interface according to the destination.
[0069] In some embodiments, outputting the parsing result to a corresponding destination according to a corresponding interface based on the difference in the destination of data transmission includes: in response to the destination being the current host, writing the parsing result into a corresponding database according to the read and write rules of the database, or writing the parsing result into a cache; in response to the destination being another host, encapsulating the parsing result into an application programming interface message and pushing it to the corresponding destination through the application programming interface.
[0070] As Figure 5 shown, it is a schematic diagram of the hardware structure of an embodiment of the computer device for Internet of Things communication provided by the present invention.
[0071] Taking the device as shown in Figure 5 as an example, in this device, it includes a processor 301 and a memory 302.
[0072] The processor 301 and the memory 302 can be connected through a bus or other means, Figure 5 and taking the connection through the bus as an example.
[0073] The memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the method for Internet of Things communication in the embodiments of the present application. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 302, that is, realizes the method for Internet of Things communication.
[0074] The memory 302 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the method for Internet of Things communication, etc. In addition, the memory 302 can include a high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 302 can optionally include a memory remotely set relative to the processor 301, and these remote memories can be connected to the local module through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0075] One or more computer instructions 303 corresponding to the method for Internet of Things communication are stored in the memory 302, and when executed by the processor 301, execute the method for Internet of Things communication in any of the above method embodiments.
[0076] Any embodiment of a computer device that executes the above-described method for Internet of Things communication can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.
[0077] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, executes a method for Internet of Things communication.
[0078] As Figure 6 shown, it is a schematic diagram of an embodiment of the above-described computer storage medium for Internet of Things communication provided by the present invention. Taking the computer storage medium as shown in Figure 6 shown as an example, the computer-readable storage medium 401 stores a computer program 402 that, when executed by a processor, executes the above method.
[0079] Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the processes of implementing the above-described embodiment methods can be completed by instructing relevant hardware through a computer program. The program for the method of Internet of Things communication can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-described method embodiments. Among them, the storage medium of the program can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc. The embodiments of the above computer program can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.
[0080] The above are exemplary embodiments disclosed by the present invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments disclosed by the present invention as defined by the claims. The functions, steps, and / or actions of the method claims according to the disclosed embodiments herein do not need to be performed in any specific order. In addition, although the elements disclosed in the embodiments of the present invention can be described or claimed in an individual form, they can also be understood as plural unless explicitly limited to the singular.
[0081] It should be understood that, as used herein, unless the context clearly supports an exception, the singular form "a" is also intended to include the plural form. It should also be understood that the "and / or" used herein refers to any and all possible combinations of one or more of the related listed items.
[0082] The serial numbers of the above-disclosed embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0083] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above-described embodiments can be completed by hardware or by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a magnetic disk, or an optical disc, etc.
[0084] Those of ordinary skill in the art should understand that any discussion of the above embodiments is merely exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other variations in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention shall be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for Internet of Things communication, characterized in that, An architecture applied to Internet of Things (IoT) communication, the architecture includes a cross-operating system runtime module and an IoT data access module, and the IoT data access module is mainly divided into an IoT access unit and an IoT access mapping management unit. The method includes the following steps: Set a common operating environment based on the cross-operating system runtime module to interface with various different operating systems; In response to the IoT access unit accessing an IoT device, based on the IoT access mapping management unit, preliminarily convert serial port data under different formats and different calculation rules into first digital or letter information; Parse the first digital or letter information and write the parsing result into memory; And Output the parsing result to the corresponding destination using a corresponding interface according to the different destinations of data transmission.
2. The method according to claim 1, wherein The preliminarily converting serial port data under different formats and different calculation rules into first digital or letter information includes: Access and output data using a corresponding interface according to the type of the accessed IoT device.
3. The method according to claim 1, wherein The preliminarily converting serial port data under different formats and different calculation rules into first digital or letter information includes: Map different IoT access devices, automatically number and name the IoT access devices, and form a mapping table.
4. The method according to claim 3, characterized in that, The preliminarily converting serial port data under different formats and different calculation rules into first digital or letter information includes: Detect the type of the accessed IoT device to obtain the corresponding connection interface; Record the IoT device and the connection interface according to the detection result, and associate the IoT device type, name, and number.
5. The method according to claim 3, characterized in that, The parsing the first digital or letter information and writing the parsing result into memory includes: Obtain the content of the mapping table corresponding to the accessed IoT device, configure a corresponding parsing rule according to the content, and process the first digital or letter information according to the parsing rule.
6. The method according to claim 1, characterized in that, The outputting the parsing result to the corresponding destination using a corresponding interface according to the different destinations of data transmission includes: Determine whether the destination is another application on the current host or an application on another host, and determine the docking object as a database, cache, or application programming interface according to the destination.
7. The method according to claim 6, characterized in that, The outputting the parsing result to the corresponding destination using a corresponding interface according to the different destinations of data transmission includes: In response to the destination being the current host, write the parsing result into the corresponding database according to the read and write rules of the database, or write the parsing result into the cache; In response to the destination being another host, encapsulate the parsing result into an application programming interface message and push it to the corresponding destination through the application programming interface.
8. A system for Internet of Things communication, characterized in that, An architecture applied to IoT communication, the architecture includes a cross-operating system runtime module and an IoT data access module, and the IoT data access module is mainly divided into an IoT access unit and an IoT access mapping management unit. The system includes: A running module configured to set a common operating environment based on the cross-operating system runtime module to interface with various different operating systems; An access module, configured to, in response to the Internet of Things access unit accessing an Internet of Things device, preliminarily convert serial port data under different formats and different calculation rules into first digital or alphabetical information based on the Internet of Things access mapping management unit; A processing module, configured to parse the first digital or alphabetical information and write the parsing result into a memory; and An output module, configured to output the parsing result to a corresponding destination through a corresponding interface according to the difference of the destination of data transmission.
9. A computer device, characterized in that, Comprising: At least one processor; And A memory, the memory stores computer instructions that can run on the processor, and when the instructions are executed by the processor, the steps of the method described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method described in any one of claims 1-7 are implemented.
Citation Information
Patent Citations
Edge computing soft gateway
CN110460521A
Hot repair method and device for embedded Internet of Things equipment vulnerabilities
CN115268983A