Access method and device based on Internet of Things
By introducing packaging technology of edge access points and communication protocol stacks into the Internet of Things, the problems of large workload, large differences and insufficient stability during access to multiple smart terminal devices are solved, and the reliability of simplified access process and data exchange is achieved.
Patent Information
- Application Number
- CN202510151058.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-05-30
AI Technical Summary
When the prior art realizes access to multiple smart terminal devices, there are problems such as large workload, large differences and insufficient stability, resulting in some terminal devices not being able to access normally, resulting in access difficulties.
An access method and device based on the Internet of Things is proposed. A variety of communication protocols are encapsulated by an edge access point using a communication protocol stack, and the initial data is decoded into a standard mode data format using a decoder, and data transmission is carried out through the transmission channel and the encapsulated communication protocol.
This method simplifies the process of interacting with different protocols, provides a consistent interface to the upper layer applications, ensures the correct exchange of data between different devices and levels, and improves the visualization of access and the observability of output.
Smart Images

Figure CN120075305A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of the Internet of Things, and particularly to an access method and device based on the Internet of Things. Background Art
[0002] With the development of technology and the expanding demand for digital intelligence, the diverse changes in intelligent scenarios, the rapid development of the intelligent Internet of Things device industry, the diversification of intelligent devices, and the diversification of device manufacturers. As a result, many device manufacturers have their own self-built vertical platforms to access corresponding intelligent terminal devices.
[0003] Currently, for implementing the integration of various Internet of Things devices in a project, there is a lot of workload and significant differences. And it will also bring the situation of insufficient stability, resulting in difficulties in accessing some terminal devices that are not properly connected. Summary of the Invention
[0004] In view of this, the purpose of the present disclosure is to propose an access method and device based on the Internet of Things, and the present disclosure can specifically solve existing problems.
[0005] Based on the above purpose, in the first aspect, the present disclosure proposes an access method based on the Internet of Things, where the Internet of Things includes a target edge access point; the method includes: the edge access point encapsulates multiple communication protocols through a communication protocol stack; through a decoder, initial data is decoded into a standard mode data format to obtain data to be transmitted in the standard mode data format; the data to be transmitted is transmitted through a transmission channel and the encapsulated communication protocol.
[0006] In the second aspect, there is also provided a data processing device based on the Internet of Things, where the Internet of Things includes a target edge access point; the device includes: an encapsulation unit configured to encapsulate multiple communication protocols by the edge access point through a communication protocol stack; a decoding unit configured to decode initial data into a standard mode data format through a decoder to obtain data to be transmitted in the standard mode data format; a transmission unit configured to transmit the data to be transmitted through a transmission channel and the encapsulated communication protocol.
[0007] In the third aspect, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor runs the computer program to implement the method described in the first aspect.
[0008] In the fourth aspect, there is also provided a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method described in any item of the first aspect.
[0009] In a fifth aspect, a computer program product is also provided, including a computer program which, when executed by a processor, implements the method according to any one of the first aspect.
[0010] Generally speaking, the present disclosure has at least the following beneficial effects: The execution subject of the access method based on the Internet of Things can simplify the process of interacting with different protocols by encapsulating these protocols and provide a consistent interface to the upper-layer applications. Through decoding, it can be ensured that data can be correctly exchanged between different devices and levels. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In the drawings, unless otherwise specified, the same reference numerals throughout the several views denote the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0012] Figure 1 A flowchart of an access method based on the Internet of Things according to an embodiment of the present disclosure is shown;
[0013] Figure 2 A schematic flowchart of data conversion using components according to an embodiment of the present disclosure is shown;
[0014] Figure 3 Another flowchart of an access method based on the Internet of Things according to an embodiment of the present disclosure is shown;
[0015] Figure 4 A schematic diagram of an access device based on the Internet of Things according to an embodiment of the present disclosure is shown;
[0016] Figure 5 A schematic diagram of a structure of an electronic device provided by an embodiment of the present disclosure is shown;
[0017] Figure 6 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] The present disclosure will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention and are not intended to limit the invention. Additionally, it should be noted that for the sake of description, only parts related to the relevant invention are shown in the drawings.
[0019] It should be noted that, without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other. The present disclosure will be described in detail below with reference to the drawings and embodiments.
[0020] Figure 1The IoT-based access method of the present disclosure is shown. In an embodiment of the present disclosure, the method includes:
[0021] Step S101, the edge access point encapsulates multiple communication protocols through a communication protocol stack.
[0022] Step S102, the initial data is processed into a standard mode data format through a decoder or an encoder to obtain the data to be transmitted in the standard mode data format.
[0023] Step S103, the data to be transmitted is transmitted through a transmission channel and the encapsulated communication protocol.
[0024] The execution subject of the IoT-based access method in this embodiment can simplify the process of interacting with different protocols by encapsulating these protocols and provide a consistent interface to the upper-layer application. Moreover, the complex underlying details can be hidden, enabling developers to not need to care about the specific implementation details and only need to call the encapsulated API to complete the operation. Once the encapsulation of a certain function is achieved, it can be reused in multiple projects, reducing repetitive labor. Through encapsulation, direct access to certain sensitive operations can be restricted, and only secure operation interfaces are exposed to the outside. Through decoding, it can be ensured that data can be correctly exchanged between different devices and levels.
[0025] Furthermore, to solve the unified access standard and unified output content, the present disclosure designs the concept of an edge access point for accessing terminal devices, and shields the differences through the design of the edge access point for different protocols, different platforms, different manufacturers, different terminal device processing, etc. This improves the visualization of access and the observability of output.
[0026] In addition, the terminal device access platform in the present disclosure has certain protocol standards. For illegal protocols and illegal data formats, the access platform will process them as illegal data, and the access process can also be docked according to the process specified by the platform side.
[0027] In some optional implementation manners of any embodiment of the present disclosure, the encapsulation of the transport communication protocol in the communication transport protocol stack is divided into the implementation of the communication transport protocol stack, the logic of encoding and decoding, and the establishment of a transmission channel. The communication transport protocol stack implements the encapsulation of the protocols defined in the industry (including MQTT, RestFul, etc.). The encoding and decoding logic is mainly responsible for encoding and decoding the data during transmission. Specifically, it can include: encoding Encode from the standard model data into a format recognizable by the device side, and decoding Decode from the device side into the standard model data format. The transmission channel is specifically to construct and bind to an io input-output buffer space with the access platform to achieve data reception and distribution.
[0028] In some alternative implementation manners of any embodiment of the present disclosure, the Internet of Things further includes a server; the server converts the data transmitted by the edge access point according to the format of the standard object model through a processing chain of standard data to obtain converted data, and the converted data supports the standard point position or the standard model format, and the data supporting the standard point position and the standard model format is used for data storage and disk writing.
[0029] Specifically, the server can be set in the cloud, and in some cases, it can also be set in the terminal device.
[0030] The processing chain of standard data (std-processor-chain) is designed to process the specific service model data reported by various terminal devices according to the format of the standard object model, and convert it into data supporting the standard point position data or the standard model format, so as to facilitate the operations of data storage and disk writing.
[0031] Optionally, the server includes multiple data conversion rules corresponding to multiple Internet of Things application scenarios, and different data conversion rules correspond to different service data requirements; the method further includes: the server determines the corresponding data conversion rule according to the service data requirement of the converted data, and uses the data conversion rule to perform data conversion on the converted data.
[0032] Specifically, the processing of the translate-chain on the server side where the platform is located is designed for scenario-based data standard processing. By receiving the standard service model data, that is, the above-mentioned generation of standard point position data and standard format data content, different conversion rules and logics are set to meet the data requirements of the application service. There is a component transformer in the translate-chain that can implement this data conversion process.
[0033] As Figure 2 shown, it shows a schematic flow diagram of data conversion using the component transformer. Among them, the format of the standard product input can be formulated, and the intermediate converter Transformation can be constructed to support the expansion of data scenarios and data quality. In addition, the format and form of scenario-based output can also be formulated, including subscription and alarm, as well as other scenario-based outputs.
[0034] In some alternative implementation manners of any embodiment of the present disclosure, the Internet of Things includes a terminal device and any edge access point, and the method further includes: the terminal device adds an identifier corresponding to the edge access point to the initial data; the initial data and the data to be transmitted include the identifier of the edge access point; the transmitting the data to be transmitted through the transmission channel and the encapsulated target communication protocol includes: any edge access point distributes the data to be transmitted through the transmission channel to the edge access point corresponding to the identifier according to the identifier of the edge access point in the data to be transmitted; if the edge access point corresponding to the identifier is the target edge access point, the target edge access point receives the data to be transmitted.
[0035] Optionally, the distributing the data to be transmitted through the transmission channel to the edge access point corresponding to the identifier includes: determining the edge access point corresponding to the identifier, determining a target instance for receiving data among the edge access points according to at least one of the source area of the data to be transmitted and the terminal function, and distributing the data to be transmitted to the target instance through the transmission channel; the target edge access point receiving the data to be transmitted includes: the target edge access point receiving the data to be transmitted in the target instance.
[0036] For the distribution processing of edge access point data, the data coming up through the communication transmission protocol stack transmission channel needs to carry the identifier of the corresponding edge access point, and the corresponding data is distributed to the specific implementation instances constructed by the corresponding edge access points through the identifier of the edge access point, so as to provide the edge access points with the data logical processing ability.
[0037] The source area can be, for example, the geographical area where the data comes from. The terminal function refers to the function category implemented by the terminal device, such as robot type, lighting type, switch type, and so on.
[0038] In some cases, the method further includes: the target edge access point determines a unified access protocol according to the product type of the terminal device in the target instance, and the unified access protocol includes a standard access protocol or an extended protocol; processing the data to be transmitted through the unified access protocol to obtain a data structure corresponding to the access protocol, so as to generate the data to be transmitted to be uploaded.
[0039] The standard access protocol and the extended protocol can be respectively understood as a standard product model and other extended formats.
[0040] In some alternative implementation manners of any embodiment of the present disclosure, the method further includes: the server generates operation data of the target edge access point, where the operation data includes the response delay time to the server and the data collection time; monitors the operation of the target edge access point through the operation data, and generates response information according to the monitoring result.
[0041] The response information here can be various information such as alarm information.
[0042] In some alternative implementation manners of any embodiment of the present disclosure, the method further includes: the terminal device, in response to the edge access point having been started and running, reads the configuration information of the transmission capacity of the edge access point, where the transmission capacity includes the reporting capacity and the control capacity; constructs a transmission channel between the server and the communication transmission protocol stack as the first channel, a channel for edge access point data distribution as the second channel, and an Internet of Things access platform on the server as the third channel; the terminal device transmits data to the edge access point through the first channel, the second channel, and the third channel.
[0043] In some alternative implementation manners of any embodiment of the present disclosure, the method further includes: the edge access point coordinates and cascades the upload and download of data through the transmission capacity.
[0044] Definition and implementation of the capabilities (data upload and download) of the edge access point. This module is mainly responsible for the configuration of the access point capabilities (reportAbility capability configuration, ctlAbility capability configuration), mainly including the startup and operation parameters of the capabilities, the communication transmission protocol stack transport communication protocol definition of the capabilities, the channel configuration of the capabilities, and the access product configuration of the capabilities. During the startup and operation of the access point, the configuration content will be read, and then a transmission channel for communicating with the communication transmission protocol stack transport, access point data distribution, and a transmission channel with the access platform will be constructed. By binding these three channels and logics, the original data of the device terminal is transmitted into the capabilities (reportAbility capability, ctlAbility capability) of the specific access point, and then specific business processing is performed. This process is the core of the entire edge access point, and realizes the intermediate coordination and cascading process of data upload and data download by abstracting and constructing the reportAbility capability and ctlAbility capability. It is the transfer module in the entire edge access point.
[0045] Such as Figure 3As shown in the figure, the process of layer-by-layer transmission is shown in the direction from the bottom layer to the application layer during the access of the terminal device. Specifically, the rightmost box represents the operation of the communication layer in the edge access point, the middle box represents the operation of the edge access point in the application layer, and the leftmost box represents the operation of the server.
[0046] Among them, as shown in the rightmost box, the transmission channel buffer space can enhance and improve the problem of insufficient edge device resource processing, integrate the computing power of the edge access point, and the codec plug-in for encoding and decoding can expand and maintain the plug-ins that need to perform data format encoding and decoding, and can expand a variety of newly added protocols at the edge device side, and build in the protocols widely used in the industry.
[0047] As shown in the middle box, in the architecture of the edge access point, the unified access standard protocol for a large number of devices solves the problem of the diversity of communication protocols and data formats of terminal devices through various standard protocols and extended protocols built in the edge access point. For the access of complex and massive scenario devices, through the function and area division function of the edge access point, it can conveniently manage the access of terminal devices.
[0048] As shown in the left box, the cloud architecture can quickly and conveniently integrate various operation data of the edge access point, and through the data processing pipeline of Transformer, monitor the response delay time of the edge access point and edge devices and the collected data to optimize the topology of the terminal device and the edge access point.
[0049] The embodiments of the present disclosure provide an access device based on the Internet of Things. This device is used to execute the access method based on the Internet of Things described in the above embodiments, as Figure 4 shown. The Internet of Things includes a target edge access point; this device includes: an encapsulation unit 401 configured to encapsulate a variety of communication protocols by the edge access point through a communication protocol stack; a decoding unit 402 configured to decode the initial data into a standard mode data format through a decoder to obtain the data to be transmitted in the standard mode data format; a transmission unit 403 configured to transmit the data to be transmitted through a transmission channel and the encapsulated communication protocol.
[0050] The access device based on the Internet of Things provided by the above embodiments of the present disclosure and the access method based on the Internet of Things provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0051] The embodiments of the present disclosure also provide an electronic device corresponding to the access method based on the Internet of Things provided in the foregoing embodiments to execute the above access method based on the Internet of Things. The embodiments of the present disclosure do not make limitations.
[0052] Please refer to Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present disclosure. As Figure 5 shown, the electronic device 50 includes: a processor 500, a memory 501, a bus 502, and a communication interface 503. The processor 500, the communication interface 503, and the memory 501 are connected through the bus 502; a computer program that can run on the processor 500 is stored in the memory 501, and when the processor 500 runs the computer program, it executes the method provided by any of the foregoing embodiments of the present disclosure.
[0053] Among them, the memory 501 may include a high-speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 503 (which can be wired or wireless), a communication connection is established between this system network element and at least one other network element, and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.
[0054] The bus 502 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 501 is used to store programs. After receiving an execution instruction, the processor 500 executes the program, and the access method based on the Internet of Things disclosed in any of the foregoing embodiments of the present disclosure can be applied to the processor 500 or implemented by the processor 500.
[0055] The processor 500 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 500 or the instructions in the form of software. The above-mentioned processor 500 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute each method, step and logic block diagram disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by the combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 501, and the processor 500 reads the information in the memory 501 and combines its hardware to complete the steps of the above method.
[0056] The electronic device provided by the embodiments of the present disclosure and the access method based on the Internet of Things provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by it.
[0057] The embodiments of the present disclosure also provide a computer-readable storage medium corresponding to the access method based on the Internet of Things provided in the foregoing embodiments. Please refer to Figure 6 which shows that the computer-readable storage medium is an optical disc 60, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the access method based on the Internet of Things provided in any of the foregoing embodiments.
[0058] It should be noted that examples of the computer-readable storage medium may also 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 optical and magnetic storage media, which will not be elaborated here one by one.
[0059] The computer-readable storage medium provided by the above embodiments of the present disclosure and the access method based on the Internet of Things provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run, or implemented by the application programs stored therein.
[0060] It should be noted that:
[0061] In the above text, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the presence of additional identical elements in the process, method, article, or device including such element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0062] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
[0063] The embodiments of the present disclosure have been described above in conjunction with the accompanying drawings, which are only specific embodiments of the present disclosure. However, the present disclosure is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present disclosure, those of ordinary skill in the art can also make many forms without departing from the purpose of the present disclosure and the scope protected by the claims, and all of them belong to the protection scope of the present disclosure.
Claims
1. A data processing method based on the Internet of Things, characterized in that: The Internet of Things includes a target edge access point; the method includes: The edge access point encapsulates multiple communication protocols through a communication protocol stack; Decoding the initial data into a standard mode data format through a decoder to obtain data to be transmitted in the standard mode data format; The data to be transmitted is transmitted through the transmission channel and the encapsulated communication protocol.
2. The method according to claim 1, characterized in that The Internet of Things also includes a server; The server converts the data transmitted by the edge access point according to the format of the standard object model through the standard data processing chain to obtain converted data, and the converted data supports standard point positions or standard model formats, and supports data in standard point positions and standard model formats for data storage and disk placement.
3. The method according to claim 2, characterized in that The server includes multiple data conversion rules corresponding to multiple IoT application scenarios, and different data conversion rules correspond to different business data requirements; the method also includes: The server determines corresponding data conversion rules for the business data requirements of the converted data, and performs data conversion on the converted data using the data conversion rules.
4. The method according to claim 1, characterized in that: The Internet of Things includes a terminal device and any edge access point, and the method further includes: the terminal device adds an identifier corresponding to the edge access point to the initial data; The initial data and the data to be transmitted include the identifier of the edge access point; the data to be transmitted is transmitted through the transmission channel and the encapsulated target communication protocol, including: The any edge access point distributes the data to be transmitted to the edge access point corresponding to the identifier through the transmission channel according to the identifier of the edge access point in the data to be transmitted; If the edge access point corresponding to the identifier is the target edge access point, the target edge access point receives the data to be transmitted.
5. The method according to claim 4, characterized in that The distributing the data to be transmitted to the edge access point corresponding to the identifier through the transmission channel includes: Determine an edge access point corresponding to the identifier, determine a target instance for receiving data in the edge access point according to at least one of a source area of the data to be transmitted and a terminal function, and distribute the data to be transmitted to the target instance through the transmission channel; The target edge access point receives data to be transmitted, including: The target edge access point receives the data to be transmitted at the target instance.
6. The method according to claim 5, characterized in that The method further comprises: The target edge access point determines, at the target instance, a unified access protocol according to the product type of the terminal device, where the unified access protocol includes a standard access protocol or an extended protocol; The data to be transmitted is processed through the unified access protocol to obtain a data structure corresponding to the access protocol to generate the data to be transmitted to be uploaded.
7. The method according to claim 1, characterized in that The method further comprises: The server generates operation data of the target edge access point, wherein the operation data includes a response delay time to the server and a data collection time; The operation of the target edge access point is monitored through the operation data, and response information is generated according to the monitoring result.
8. The method according to claim 1, characterized in that The Internet of Things also includes a terminal device, and the method further includes: In response to the edge access point being started, the terminal device reads the configuration information of the edge access point on the transmission capability, where the transmission capability includes a reporting capability and a control capability; Constructing a transmission channel between the server and the communication transmission protocol stack as a first channel, a channel for edge access point data distribution as a second channel, and an Internet of Things access platform on the server as a third channel; The terminal device transmits data to the edge access point through the first channel, the second channel, and the third channel.
9. The method according to claim 1, characterized in that: The method further comprises: The edge access point coordinates and connects data upload and download through transmission capability.
10. A data processing device based on the Internet of Things, characterized in that: The Internet of Things includes a target edge access point; the device includes: An encapsulation unit configured to encapsulate a plurality of communication protocols through a communication protocol stack at the edge access point; A decoding unit is configured to decode the initial data into a standard mode data format through a decoder to obtain data to be transmitted in the standard mode data format; The transmission unit is configured to transmit the data to be transmitted through the transmission channel and the encapsulated communication protocol.