CN117591580A - Method and system for realizing edge Internet of things platform based on Go and Python - Google Patents

Method and system for realizing edge Internet of things platform based on Go and Python Download PDF

Info

Publication number
CN117591580A
CN117591580A CN202311292415.6A CN202311292415A CN117591580A CN 117591580 A CN117591580 A CN 117591580A CN 202311292415 A CN202311292415 A CN 202311292415A CN 117591580 A CN117591580 A CN 117591580A
Authority
CN
China
Prior art keywords
equipment
edge
data
internet
edge equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311292415.6A
Other languages
Chinese (zh)
Inventor
董朝晖
邹胜
汪丛军
沈盛男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongyifeng Digital Technology Group Co ltd
Original Assignee
Zhongyifeng Digital Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongyifeng Digital Technology Group Co ltd filed Critical Zhongyifeng Digital Technology Group Co ltd
Priority to CN202311292415.6A priority Critical patent/CN117591580A/en
Publication of CN117591580A publication Critical patent/CN117591580A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of the Internet of things, in particular to a method and a system for realizing an edge Internet of things platform based on Go and Python, comprising the steps of adopting Go language to carry out platform construction of the edge Internet of things platform and adopting Python equipment simulation tools to carry out test; sinking a computing task to edge equipment in an edge internet of things platform, and locally processing data through the edge equipment; and designing a unified interface and a database to complete the integration and management of the multi-device data. According to the method provided by the invention, the Internet of things platform is optimized from the aspect of language development, the problem of complex technical redundancy of the existing Internet of things platform is solved, the use function of a general Internet of things is optimized, and the practicability and usability of the Internet of things platform are improved.

Description

Method and system for realizing edge Internet of things platform based on Go and Python
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a system for realizing an edge Internet of things platform based on Go and Python.
Background
Background technology of the internet of things platform covers a plurality of fields such as sensor technology, communication technology, cloud computing, big data analysis, artificial intelligence and the like. The sensor technology gives the perception capability to the equipment of the Internet of things, the communication technology realizes the data transmission between the equipment and the cloud platform, the cloud computing provides storage and computing resources, the big data analysis reveals the data value, the edge computing reduces delay, the security technology protects the equipment and the data, the artificial intelligence gives the intelligent decision capability, and the standard and the protocol ensure the interoperability. However, the existing internet of things platform technology is complex in functional redundancy, low in practicality and usability and high in operation and maintenance cost under the general use scene.
Disclosure of Invention
The present invention has been made in view of the above-described problems.
Therefore, the technical problems solved by the invention are as follows: the internet of things platform is optimized from the angle of development language, the weight reduction of the internet of things platform is realized, and the problem that the practicality of the existing internet of things platform is not high is solved.
In order to solve the technical problems, the invention provides the following technical scheme: building an edge Internet of things platform by adopting a Go language and testing by adopting a Python equipment simulation tool; sinking the work task to the edge equipment, and carrying out local processing on the data through the edge equipment; and designing a unified interface and a database to complete the integration and management of the multi-device data.
As a preferred scheme of the method for realizing the edge Internet of things platform based on Go and Python, the invention comprises the following steps: the method comprises the steps of performing platform construction by adopting a Go language, wherein the platform construction comprises demand analysis planning, data model and communication protocol design, edge equipment data processing, data compression and local storage;
the design data model and the communication protocol comprise the steps of designing a data communication protocol between edge equipment and a platform, defining formats and fields of sensor data, and making a data model of an appropriate edge node;
The data processing of the edge equipment comprises the steps of developing a data processing function on the edge equipment by using a Go language, and processing data by adopting a data filtering and cleaning algorithm; the data filtering and cleaning algorithm is used for removing abnormal data points and noise, firstly traversing the collected data points, checking whether each data point is in a preset range, and removing abnormal values out of the range by adopting a Z-score algorithm, wherein the specific formula is as follows:
Z=(x-μ)/σ
wherein x is data acquired by an edge equipment sensor at a time point, mu is an average value of the data, sigma is a standard deviation, and if the absolute value of Z exceeds a set range based on an actually set threshold range, judging the data point as abnormal data, and discarding the abnormal data;
smoothing the data in the preset range value, and smoothing the data by adopting a moving average filter algorithm for the data acquired by single edge equipment according to the time sequence, wherein the specific formula is as follows:
y[n]=(x[n]+x[n-1]+...+x[n-N+1])/N
wherein x N is the original data collected by the edge equipment sensor at the time point, N is the size of the time window, and y N is the smoothed data;
for data collected by a plurality of edge equipment sensors, a weighted average algorithm is adopted, different weight is given to different edge equipment, and smoothing processing is carried out on the multi-equipment data, wherein the specific formula is as follows:
y=(w 1 *x 1 +w 2 *x 2 +…+w n *x n )/(w 1 +w 2 +…w n )
Wherein x is i Is the data collected by the ith edge device, w i Is the weight corresponding to the edge device, y is the aggregated data;
for data acquired and processed by a single plurality of edge devices, storing the data after denoising processing in the edge devices and transmitting the data, responding by the edge devices according to instructions generated by the data of the result of storing and recording, feeding back to an Internet of things platform at regular intervals and according to set triggering transmission conditions, and compressing the data firstly and reducing the data transmission quantity when feeding back to the Internet of things platform;
the data compression comprises the steps of compressing data results acquired and processed by edge equipment, reducing data transmission quantity, and compressing the result data by adopting a wavelet transformation algorithm, wherein the specific formula is as follows:
W(a,b)=∫f(t)×Ψ((t-b)/a)dt
f (t) is result data acquired and processed by an edge equipment sensor, ψ is a wavelet function, and a Harr wavelet function and a multi-scale wavelet function are selected based on actual requirements;
the local storage comprises the steps of developing a local data storage and cache function by using a Go language, reserving result data by edge equipment when a network is interrupted and the network connection is unstable, and uploading the data to an Internet of things platform when the network is recovered.
As a preferred scheme of the method for realizing the edge Internet of things platform based on Go and Python, the invention comprises the following steps: the testing by adopting the Python equipment simulation tool comprises equipment simulation script writing, connecting to an edge network platform, running simulation test, and test verification and analysis; the equipment simulation script is compiled by using a Python language, a test script is compiled, the test script is used for simulating equipment behaviors and data generation, and the simulated edge equipment sends data to the platform and receives instructions from the platform through the script; the connecting to the edge internet of things platform comprises the steps of ensuring that the equipment simulation tool is communicated with the edge internet of things equipment, and configuring connection parameters in a simulation script according to a protocol and an interface of the edge internet of things; the operation simulation test comprises the steps of generating simulation data, simulating equipment behaviors, operating a simulation script, simulating communication between equipment and an edge Internet of things platform, and verifying the communication between the simulation equipment and the platform; the test verification and analysis comprises the steps of collecting and analyzing response data from the edge internet of things platform and checking the processing result of the internet of things platform.
As a preferred scheme of the method for realizing the edge Internet of things platform based on Go and Python, the invention comprises the following steps: the local processing comprises real-time data processing analysis and edge intelligence and decision making; the real-time data processing analysis comprises the steps that when the edge equipment generates and collects data, the data collected by the equipment are analyzed and processed in real time based on an algorithm and an application program embedded in the edge equipment; the edge intelligence and decision comprises the steps that an internet of things platform packages a decision mechanism and puts the decision mechanism into an application program, when the edge equipment is registered by the internet of things platform, the internet of things platform transmits the application program to the edge equipment, after the edge equipment processes generated and collected data, a model and an inference result are directly generated in the application program of the edge equipment according to a processing result, and the edge equipment responds quickly according to the inference result; based on business demand analysis, when the edge equipment processes multiple equipment and complex computing tasks, firstly transmitting a computing task summary to an Internet of things platform, and when the computing power is ready to be completed, feeding back an instruction for transmitting a complete computing task to the edge equipment, wherein the edge equipment transmits the complete computing task to the Internet of things platform, and the Internet of things platform receives the complete computing task and completes the computing task; setting a calculation force trigger mechanism of the calculation tasks of the edge Internet of things platform and the edge equipment, processing the calculation tasks at the edge equipment when the calculation force required by the calculation tasks does not exceed the calculation force upper limit and the residual calculation force of the edge equipment, and responding by the edge equipment according to the processing result; if the calculation force required by the calculation task is larger than that of the edge equipment, transmitting result data of the edge equipment to the Internet of things platform, calculating at the Internet of things platform, after obtaining a calculation result, conveying a platform instruction by the Internet of things platform, conveying the instruction to the edge equipment, and responding by the edge equipment according to the instruction.
As a preferred scheme of the method for realizing the edge Internet of things platform based on Go and Python, the invention comprises the following steps: the local processing further comprises, for an item of combined work of a plurality of edge devices, performing classification work in the item, wherein the item comprises a first type of edge device, a second type of edge device and a third type of edge device; the first type edge equipment is sensor type edge equipment, data in a working environment is acquired through a sensor function of the first type edge equipment, abnormal data values are filtered according to a program and an algorithm stored in the first type edge equipment, the filtered data values are transmitted to the second type edge equipment in real time, the second type edge equipment is scheduling type edge equipment, the data values transmitted by the first type edge equipment are received in real time, the data values are stored, scheduling instructions corresponding to the data values are transmitted to third type edge equipment through a preset program and an algorithm, the third type edge equipment is corresponding type edge equipment, after receiving the instructions transmitted by the second type edge equipment, corresponding working response and adjustment are carried out according to the functionality of the second type edge equipment, and response and adjustment results are fed back to the second type edge equipment; if the data transmitted by the first type edge received by the second type edge device exceeds the calculation upper limit of the first type edge, transmitting the data value to an Internet of things platform in real time, enabling the Internet of things platform to calculate and process the data, generating an instruction in the Internet of things platform, transmitting feedback to the second type edge device, transmitting the instruction to a third type device by the second type device, and performing work response and adjustment by the third type device; if the third type edge equipment cannot respond and work the adjustment when receiving the instruction of the second type edge equipment, the second type edge equipment feeds back the result of the response and adjustment to the second type edge equipment, the second type edge equipment feeds back the result to the internet of things platform, the internet of things platform calculates the result, the work instruction of the third type edge equipment is re-issued and transmitted to the second type edge equipment, the second type edge equipment conveys the instruction to the third type equipment, and the third type edge equipment carries out work response and adjustment again; if the third type edge equipment still cannot respond and adjust the work of the re-issued instruction, the result is fed back to the second type edge equipment again, the second type edge equipment feeds back the result to the Internet of things platform, the Internet of things platform carries out calculation again and issues a new instruction until the third type edge equipment responds and adjusts the work according to the instruction.
As a preferred scheme of the method for realizing the edge Internet of things platform based on Go and Python, the invention comprises the following steps: the unified interface comprises a unified external equipment control interface, and the control and management of the Internet of things platform and the edge equipment are carried out through the unified external equipment control interface; the unified external equipment control interface comprises an equipment authentication mechanism, a preset equipment control instruction, a unified API interface and an equipment control mode; the equipment authentication mechanism comprises a strict equipment authentication mechanism and a strict flow are provided when the Go language develops the internet of things platform, and project authentication, product authentication and equipment authentication are carried out; in the project authentication stage, a user logs in an Internet of things platform to register and bind edge equipment in a project under the name, if the equipment types of the registered and bound equipment are not matched, the registration is prompted to fail and the project authentication stage is returned, if the user has project manager authority, the user adds the registration authority of the edge equipment to be registered in the project by himself and carries out registration again, and if the user does not have the project manager authority, the user contacts the Internet of things platform manager to add the edge equipment registration authority; if the type of the edge equipment is not consistent with the type of the item, the administrator is not allowed to add the registration authority, the registration flow is terminated, if the type of the edge equipment is matched with the type of the item, the item authentication is completed, and the product authentication is performed; in the product authentication stage, the Internet of things sends an instruction for reading the information of the equipment to the edge equipment by virtue of the platform, the edge equipment feeds back the equipment information to the Internet of things platform after receiving the instruction, and the Internet of things platform verifies compliance and functional integrity of an edge equipment product, if the verification fails, prompts the user that the edge equipment product is not compliant, prompts the user that the edge equipment attribute is compliant, and prompts the user that the registration fails; if the verification is successful, entering an equipment authentication stage; in the equipment authentication stage, the internet of things platform sends an information binding instruction to the edge equipment, after receiving the instruction, the edge equipment carries out registration binding with the internet of things platform, carries out registration locking on the edge equipment, does not pair with other internet of things platforms any more, and after finishing the equipment registration binding, the internet of things platform opens the operation authority of registering the edge equipment to a user and records and stores data transmitted by the internet of things edge equipment in the internet of things platform; the preset equipment control instruction comprises that when the Internet of things platform developed based on the Go language is used for registering equipment, after registering and binding of the edge equipment and the Internet of things platform are completed, the Internet of things platform automatically embeds the corresponding control instruction into the edge equipment according to the product attribute of the edge equipment, and construction of an application algorithm and installation of an application program are completed in the edge equipment; the unified API interface comprises a unified API interface which is built when the Internet of things platform is developed, the secondary call of the third party platform is simplified by calling the Internet of things platform data from the API interface and completing the control of the edge equipment, and if the third party platform inputs a secret key when calling the core data of the Internet of things platform, the authority of calling the core data in the Internet of things platform is obtained, and the complete data of the Internet of things platform and the project equipment are called; and if the third party platform does not input the secret key in the unified API interface, calling the public data of the networking platform and the project equipment.
As a preferred scheme of the method for realizing the edge Internet of things platform based on Go and Python, the invention comprises the following steps: the edge internet of things platform comprises a platform and edge equipment, and is based on the modern electronic information technology, so that information transmission and communication between the platform and the edge equipment are realized; the edge equipment is electronic equipment with an embedded system and has the functions of collecting data, storing data, processing data and transmitting data.
Another object of the present invention is to provide a system for implementing an edge internet of things platform based on Go and Python, which can improve the practicality and usability of the internet of things platform by constructing the edge internet of things platform system.
A system for implementing an edge internet of things platform based on Go and Python, comprising: the system comprises an Internet of things platform module and an edge equipment module; the internet of things platform module is used for completing development and construction based on the Go language, is used for managing the edge equipment module, is integrated with an external control interface, registers new edge equipment, and transmits embedded instructions and working programs to the newly registered edge equipment; the edge internet of things platform processes data transmitted by the edge equipment in operation and issues a response instruction, and the internet of things platform module is also integrated with a unified API interface and a database for providing users with data calling and operating the edge equipment; the edge equipment module is electronic equipment with an embedded system, has the functions of collecting data, storing data, processing data and transmitting data, and responds to operation according to the instruction of the platform of the Internet of things.
The invention also provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is characterized in that the processor realizes the steps of the method for realizing the edge internet of things platform based on Go and Python when executing the computer program.
The invention also provides a computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method for implementing the edge internet of things platform based on Go and Python.
The invention has the beneficial effects that: according to the method provided by the invention, the Internet of things platform is optimized from the angle of language development, the problem of complex technical redundancy of the existing Internet of things platform is solved, the use function of the general Internet of things is optimized, and the practicability and usability of the Internet of things platform are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
Fig. 1 is a flow chart of a method for realizing an edge internet of things platform based on Go and Python.
Fig. 2 is a system structure diagram of an edge internet of things platform based on Go and Python.
Fig. 3 is a link diagram of an internet of things platform and edge equipment of the method for realizing the edge internet of things platform based on Go and Python.
Fig. 4 is a workflow diagram of a multi-type edge device for implementing an edge internet of things platform based on Go and Python according to the present invention.
Fig. 5 is an operation flow chart of a method for implementing an edge internet of things platform based on Go and Python.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present invention is not limited to the specific embodiments disclosed below.
Further, reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic can be included in at least one implementation of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
Example 1
Referring to fig. 1 to 4, for a first embodiment of the present invention, a method for implementing an edge internet of things platform based on Go and Python is provided.
S1: and building an edge Internet of things platform by adopting a Go language and testing by adopting a Python equipment simulation tool.
Specifically, the platform construction by adopting the Go language comprises demand analysis planning, data model and communication protocol design, edge equipment data processing, data compression and local storage.
The demand analysis planning comprises the step of developing a corresponding internet of things platform according to the working demand of the edge internet of things based on the functions and targets of the edge internet of things platform.
The design data model and the communication protocol comprise the steps of designing a data communication protocol between the edge equipment and the platform, defining the format and the field of sensor data, and making a data model of a proper edge node.
The data processing of the edge equipment comprises the steps of developing a data processing function on the edge equipment by using a Go language, and processing data by adopting a data filtering and cleaning algorithm; the data filtering and cleaning algorithm is used for removing abnormal data points and noise, firstly traversing the collected data points, checking whether each data point is in a preset range, and removing abnormal values out of the range by adopting a Z-score algorithm, wherein the specific formula is as follows:
Z=(x-μ)/σ
where x is data collected at a time point, μ is an average value of the data, σ is a standard deviation, and if the absolute value of Z exceeds a set range based on an actually set threshold range, the data point is determined to be abnormal data, and discarded.
It should be noted that, the data collected by the edge device is a specific numerical value, and different types of denoising processing are performed on the collected data according to the specific type of the edge device.
Smoothing the data in the preset range value, and smoothing the data by adopting a moving average filter algorithm for the data acquired by single edge equipment according to the time sequence, wherein the specific formula is as follows:
y[n]=(x[n]+x[n-1]+...+x[n-N+1])/N
where x N is the raw data collected at the time point, N is the time window size, and y N is the smoothed data.
And (3) for data collected by a plurality of edge devices, adopting a weighted average algorithm, endowing different edge devices with different weights, and carrying out smoothing treatment on the data, wherein the specific formula is as follows:
y=(w 1 *x 1 +w 2 *x 2 +…+w n *x n )/(w 1 +w 2 +…w n )
wherein x is i Is the data collected by the ith edge device, w i Is the weight corresponding to the edge device, and y is the aggregated data.
Further, for data collected and processed by a plurality of edge devices, the data after denoising is stored in the edge devices and transmitted, the edge devices respond according to instructions generated by the data of the stored and recorded results, and feedback is carried out to the platform of the Internet of things at regular intervals and according to set triggering transmission conditions.
The data compression comprises the steps of compressing data results acquired and processed by edge equipment, reducing data transmission quantity, and compressing the result data by adopting a wavelet transformation algorithm, wherein the specific formula is as follows:
W(a,b)=∫f(t)×Ψ((t-b)/a)dt
f (t) is result data acquired and processed by the edge equipment, ψ is a wavelet function, and a Harr wavelet function and a multi-scale wavelet function are selected based on actual requirements.
The local storage includes developing a local data storage and cache function using Go language, retaining result data by the edge device when the network is interrupted and the network connection is unstable, and uploading the data when the network is recovered.
Further, the testing with the Python device simulation tool includes writing device simulation scripts, connecting to an edge network platform, running simulation tests, and test verification and analysis.
The equipment simulation script is compiled by using a Python language, a test script is compiled, the test script is used for simulating equipment behaviors and data generation, and the simulated edge equipment sends data to the platform and receives instructions from the platform through the script; the connecting to the edge internet of things platform comprises the steps of ensuring that the equipment simulation tool is communicated with the edge internet of things equipment, and configuring connection parameters in a simulation script according to a protocol and an interface of the edge internet of things; the operation simulation test comprises the steps of generating simulation data, simulating equipment behaviors, operating a simulation script, simulating communication between equipment and an edge Internet of things platform, and verifying the communication between the simulation equipment and the platform; the test verification and analysis comprises the steps of collecting and analyzing response data from the edge internet of things platform and checking the processing result of the internet of things platform.
S2: and sinking the work task to the edge equipment, and carrying out local processing on the data through the edge equipment.
Specifically, the local processing comprises real-time data processing analysis and edge intelligence and decision making; the real-time data processing analysis comprises the steps that when the edge equipment generates and collects data, the data collected by the equipment are analyzed and processed in real time based on an algorithm and an application program embedded in the edge equipment;
the edge intelligence and decision comprises the steps that the decision mechanism is packed and placed in an application program by the internet of things platform, the application program is transmitted to the edge equipment by the internet of things platform when the edge equipment is registered by the internet of things platform, after the generated and collected data are processed by the edge equipment, a model and an inference result are directly generated in the application program of the edge equipment according to the processing result, the edge equipment responds quickly according to the inference result, and the intellectualization of the edge computing application is improved.
Based on business demand analysis, when the edge equipment processes multiple equipment and complex computing tasks, the computing task outline is firstly transmitted to the Internet of things platform, the Internet of things platform reserves required computing power in advance according to a preset processing model, when computing power is ready to be completed, an instruction for transmitting complete computing tasks is fed back to the edge equipment, the edge equipment transmits the complete computing tasks to the Internet of things platform, and the Internet of things platform receives the complete computing tasks and completes the computing tasks.
Setting a calculation force trigger mechanism of the calculation tasks of the edge Internet of things platform and the edge equipment, processing the calculation tasks at the edge equipment when the calculation force required by the calculation tasks does not exceed the calculation force upper limit and the residual calculation force of the edge equipment, and responding by the edge equipment according to the processing result; if the calculation force required by the calculation task is larger than that of the edge equipment, transmitting result data of the edge equipment to the Internet of things platform, calculating at the Internet of things platform, transmitting a cloud instruction after the Internet of things platform obtains a calculation result, transmitting the instruction to the edge equipment, and responding according to the instruction by the edge equipment.
Still further, referring to fig. 4, the local process further includes, for an item in which a plurality of edge devices work in combination, performing a classification work in the item, where the item includes a first type of edge device, a second type of edge device, and a third type of edge device.
The first type edge equipment is sensor type edge equipment, data in a working environment are collected through a sensor function of the first type edge equipment, abnormal data values are filtered according to a program and an algorithm stored in the first type edge equipment, the filtered data values are transmitted to the second type edge equipment in real time, the second type edge equipment is scheduling type edge equipment, the data values transmitted by the first type edge equipment are received in real time, the data values are stored, scheduling instructions corresponding to the data values are transmitted to third type edge equipment through a preset program and an algorithm, the third type edge equipment is corresponding type edge equipment, after receiving the instructions transmitted by the second type edge equipment, corresponding working response and adjustment are carried out according to the functionality of the second type edge equipment, and response and adjustment results are fed back to the second type edge equipment.
If the data transmitted by the first type edge received by the second type edge device exceeds the calculation upper limit of the first type edge, the data value is transmitted to the internet of things platform in real time, the internet of things platform calculates and processes the data, an instruction is generated in the internet of things platform, the instruction is transmitted and fed back to the second type edge device, the second type device transmits the instruction to the third type device, and the third type device responds and adjusts the work.
If the third type edge equipment cannot respond and work adjustment correspondingly when receiving the instruction of the second type edge equipment, the second type edge equipment feeds back the results of the response and adjustment to the second type edge equipment, the second type edge equipment feeds back the results to the internet of things platform, the internet of things platform calculates the results, the work instruction of the third type edge equipment is re-issued and transmitted to the second type edge equipment, the second type edge equipment transmits the instruction to the third type equipment, and the third type edge equipment re-responds and adjusts the work.
If the third type edge equipment still cannot respond and adjust the work of the re-issued instruction, the result is fed back to the second type edge equipment again, the second type edge equipment feeds back the result to the Internet of things platform, the Internet of things platform carries out calculation again and issues a new instruction until the third type edge equipment responds and adjusts the work according to the instruction.
S3: and designing a unified interface and a database to complete the integration and management of the multi-device data.
Specifically, the design unified interface comprises data screening and selecting, custom configuration distribution and data transmission optimization, wherein the data transmission screening and selecting comprises that a platform screens and selects real-time result data acquired and processed by equipment according to predefined attributes and rules, distributes data conforming to the predefined, and reduces unnecessary data transmission and processing; the custom configuration distribution comprises a data structure supporting custom configuration distribution of an Internet of things platform developed based on a Go language, data formats, contents and configuration are carried out according to self requirements and application scenes of users, and the number and the use time of edge devices are distributed for the users according to the requirements of the users; the data transmission and optimization comprises the steps that the Internet of things platform adopts a data transmission protocol and mechanism of Go language during development, uses a lightweight transmission protocol, adopts an asynchronous data transmission mode to carry out multi-thread transmission, and improves data distribution efficiency and concurrent processing capacity.
Further, the unified interface comprises a unified external equipment control interface, and the control and management of the Internet of things platform and the edge equipment are performed through the unified external equipment control interface; the unified external equipment control interface comprises an equipment authentication mechanism, a preset equipment control instruction, a unified API interface and an equipment control mode.
The device authentication mechanism comprises a strict device authentication mechanism and a strict device authentication flow are provided when the Go language develops the internet of things platform, and project authentication, product authentication and device authentication are carried out.
In the project authentication stage, a user logs in an Internet of things platform to register and bind edge equipment in a project under the name, if the equipment types of the registered and bound equipment are not matched, the registration is prompted to fail and the project authentication stage is returned, if the user has project manager authority, the user adds the registration authority of the edge equipment to be registered in the project by himself and carries out registration again, and if the user does not have the project manager authority, the user contacts the Internet of things platform manager to add the edge equipment registration authority; if the type of the edge equipment is not consistent with the type of the item, the administrator is not allowed to add the registration authority, the registration flow is terminated, if the type of the edge equipment is matched with the type of the item, the item authentication is completed, and the product authentication is performed.
In the product authentication stage, the Internet of things sends an instruction for reading the information of the equipment to the edge equipment by virtue of the platform, the edge equipment feeds back the equipment information to the Internet of things platform after receiving the instruction, and the Internet of things platform verifies compliance and functional integrity of an edge equipment product, if the verification fails, prompts the user that the edge equipment product is not compliant, prompts the user that the edge equipment attribute is compliant, and prompts the user that the registration fails; if the verification is successful, the device authentication stage is entered.
In the equipment authentication stage, the internet of things platform sends an information binding instruction to the edge equipment, after receiving the instruction, the edge equipment carries out registration binding with the internet of things platform and carries out registration locking on the edge equipment, no longer pairs with other internet of things platforms, after the equipment registration binding is completed, the internet of things platform opens the operation authority of registering the edge equipment to a user, and data transmitted by the internet of things edge equipment are recorded and stored in the internet of things platform.
The preset device control instruction comprises that when the Internet of things platform developed based on the Go language is used for registering devices, after registering and binding of the edge device and the Internet of things platform are completed, the Internet of things platform automatically embeds the corresponding control instruction into the edge device according to the product attribute of the edge device, and construction of an application algorithm and installation of an application program are completed in the edge device.
The preset device control instruction comprises that when the Internet of things platform developed based on the Go language is used for registering devices, after registering and binding of the edge device and the Internet of things platform are completed, the Internet of things platform automatically embeds the corresponding control instruction into the edge device according to the product attribute of the edge device, and construction of an application algorithm and installation of an application program are completed in the edge device.
The unified API interface comprises a unified API interface built when the Internet of things platform is developed, and secondary calling of the third party platform is simplified by calling the Internet of things platform data from the API interface and completing control of the edge equipment.
And if the third party platform inputs a key at the unified API interface when calling the core data of the Internet of things platform, acquiring the authority of calling the core data in the Internet of things platform, and calling the complete data of the Internet of things platform and the project equipment.
And if the third party platform does not input the secret key in the unified API interface, calling the public data of the networking platform and the project equipment.
Based on the unified API interface design, the functions of equipment management, data reading and writing and control instructions are packaged into a unified API interface and provided for a third party platform to use, and the third party platform realizes the butt joint with the platform of the Internet of things through the API interface, so that the rapid expansion is realized.
Example 2
Referring to fig. 2, for a second embodiment of the present invention, a system for implementing an edge internet of things platform based on Go and Python is provided.
Specifically, the system comprises an internet of things platform module and an edge equipment module.
The internet of things platform module is used for completing development and construction based on the Go language, is used for managing the edge equipment module, is integrated with an external control interface, registers new edge equipment, and transmits embedded instructions and working programs to the newly registered edge equipment; the edge internet of things platform processes data transmitted by the edge equipment in operation and issues a response instruction, and the internet of things platform module is also integrated with a unified API interface and a database for providing users with data calling and operating the edge equipment;
Further, a Python language is adopted to develop a test script, the functions in the platform module of the Internet of things are tested, and the tested platform of the Internet of things is connected with the edge equipment to realize the functions of the platform of the Internet of things at the edge.
The edge equipment module is electronic equipment with an embedded system, has the functions of collecting data, storing data, processing data and transmitting data, and responds to operation according to the instruction of the platform of the Internet of things;
the user can directly control the edge equipment module based on the function provided by the edge internet of things platform module.
Example 3
Referring to fig. 3, a third embodiment of the present invention provides a specific implementation flow of a method for implementing an edge internet of things platform based on Go and Python.
Specifically, firstly, constructing a hardware configuration required by the internet of things platform, in the embodiment, firstly, configuring a computer, virtually constructing the internet of things platform in the computer, and in the embodiment, configuring a main computer into an Intel Xeon E-2278G processor, a 64GB ECC DDR4 memory, a 2 1TB high-speed solid-state memory and a network card supporting wires and wireless; the method comprises the steps of installing a Linus operating system of Ubuntu Server 20.04 LTS in a computer, and building a virtual environment by adopting a virtual box virtual machine in the operating system.
Further, in the virtual environment, an Internet of things platform developed based on the Go language is imported, a virtual database, a device controller and a device control interface are configured for the Internet of things platform, and a simulated edge device is imported in the device controller, wherein the simulated edge device comprises an optical fiber sensor, an intelligent socket and an intelligent lamp.
Based on Python language development test script, data collected by the simulated optical fiber sensor, the intelligent socket and the intelligent lamp are generated, the generated data are processed according to an embedded algorithm in the edge equipment, the processed data are transmitted to the virtual Internet of things platform, the Internet of things platform gives instructions to the virtual edge equipment based on the received data, the Python script calls communication records between the virtual edge equipment and the Internet of things platform from an API interface, the response of the Internet of things and the edge equipment is analyzed, and the test is ended when the normal response is ensured.
Furthermore, the virtual internet of things platform after the test is completed is connected to real edge equipment, the real edge equipment comprises 2 optical fiber sensors, 2 intelligent sockets and 2 intelligent lamps, and the real edge equipment is interconnected with the internet of things platform and the equipment through Wi-Fi technology.
The user registers the equipment in the internet of things platform, acquires the equipment ID and the authentication key, and transmits a required algorithm and an application program to the equipment when the equipment is registered based on the user demand.
When the optical fiber sensor detects that the optical fiber has large variation amplitude and the light variation speed is high, the optical fiber sensor feeds back the acquired data to the Internet of things platform, and the Internet of things platform sends an intelligent lamp adjusting instruction according to an algorithm and user control to stabilize the illumination of the intelligent lamp.
When the intelligent socket is connected with the electric appliance, the intelligent socket collects the power of the electric appliance in real time, when the instantaneous power is recorded, the intelligent socket removes the recorded electric data noise value of the instantaneous mutation of the electric appliance through noise removal, the denoised data is transmitted to an Internet of things platform in real time, and the Internet of things platform stores the data in a database.
In the control of the edge device, the method is used for acquiring the data of the edge device in real time through the visual device and the API interface, and simultaneously controlling and adjusting the edge device.
Example 4
A fourth embodiment of the present invention, which is different from the previous embodiment, is:
the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Furthermore, in an effort to provide a concise description of the exemplary embodiments, all features of an actual implementation may not be described (i.e., those not associated with the best mode presently contemplated for carrying out the invention, or those not associated with practicing the invention).
It should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions may be made. Such a development effort might be complex and time consuming, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill having the benefit of this disclosure.
It should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention may be modified or substituted without departing from the spirit and scope of the technical solution of the present invention, which is intended to be covered in the scope of the claims of the present invention.

Claims (10)

1. A method for realizing an edge internet of things platform based on Go and Python is characterized by comprising the following steps: comprising the steps of (a) a step of,
Building an edge Internet of things platform by adopting a Go language and testing by adopting a Python equipment simulation tool;
sinking the work task to the edge equipment, and carrying out local processing on the data through the edge equipment;
and designing a unified interface and a database to complete the integration and management of the multi-device data.
2. The method for realizing the edge internet of things platform based on Go and Python as claimed in claim 1, wherein the method comprises the following steps: the method comprises the steps of performing platform construction by adopting a Go language, wherein the platform construction comprises demand analysis planning, data model and communication protocol design, edge equipment data processing, data compression and local storage;
the design data model and the communication protocol comprise the steps of designing a data communication protocol between edge equipment and a platform, defining formats and fields of sensor data, and making a data model of an appropriate edge node;
the data processing of the edge equipment comprises the steps of developing a data processing function on the edge equipment by using a Go language, and processing data by adopting a data filtering and cleaning algorithm; the data filtering and cleaning algorithm is used for removing abnormal data points and noise, firstly traversing the collected data points, checking whether each data point is in a preset range, and removing abnormal values out of the range by adopting a Z-score algorithm, wherein the specific formula is as follows:
Z=(x-μ)/σ
Wherein x is data acquired by an edge equipment sensor at a time point, mu is an average value of the data, sigma is a standard deviation, and if the absolute value of Z exceeds a set range based on an actually set threshold range, judging the data point as abnormal data, and discarding the abnormal data;
smoothing the data in the preset range value, and smoothing the data by adopting a moving average filter algorithm for the data acquired by single edge equipment according to the time sequence, wherein the specific formula is as follows:
y[n]=(x[n]+x[n-1]+...+x[n-N+1])/N
wherein x N is the original data collected by the edge equipment sensor at the time point, N is the size of the time window, and y N is the smoothed data;
for data collected by a plurality of edge equipment sensors, a weighted average algorithm is adopted, different weight is given to different edge equipment, and smoothing processing is carried out on the multi-equipment data, wherein the specific formula is as follows:
y=(w 1 *x 1 +w 2 *x 2 +…+w n *x n )/(w 1 +w 2 +…w n )
wherein x is i Is the data collected by the ith edge device, w i Is the weight corresponding to the edge device, y is the aggregated data;
for data acquired and processed by a single plurality of edge devices, storing the data after denoising processing in the edge devices and transmitting the data, responding by the edge devices according to instructions generated by the data of the result of storing and recording, feeding back to an Internet of things platform at regular intervals and according to set triggering transmission conditions, and compressing the data firstly and reducing the data transmission quantity when feeding back to the Internet of things platform;
The data compression comprises the steps of compressing data results acquired and processed by edge equipment, reducing data transmission quantity, and compressing the result data by adopting a wavelet transformation algorithm, wherein the specific formula is as follows:
W(a,b)=∫f(t)×Ψ((t-b)/a)dt
f (t) is result data acquired and processed by an edge equipment sensor, ψ is a wavelet function, and a Harr wavelet function and a multi-scale wavelet function are selected based on actual requirements;
the local storage comprises the steps of developing a local data storage and cache function by using a Go language, reserving result data by edge equipment when a network is interrupted and the network connection is unstable, and uploading the data to an Internet of things platform when the network is recovered.
3. The method for realizing the edge internet of things platform based on Go and Python as claimed in claim 2, wherein the method comprises the following steps: the testing by adopting the Python equipment simulation tool comprises equipment simulation script writing, connecting to an edge network platform, running simulation test, and test verification and analysis;
the equipment simulation script is compiled by using a Python language, a test script is compiled, the test script is used for simulating equipment behaviors and data generation, and the simulated edge equipment sends data to the platform and receives instructions from the platform through the script; the connecting to the edge internet of things platform comprises the steps of ensuring that the equipment simulation tool is communicated with the edge internet of things equipment, and configuring connection parameters in a simulation script according to a protocol and an interface of the edge internet of things; the operation simulation test comprises the steps of generating simulation data, simulating equipment behaviors, operating a simulation script, simulating communication between equipment and an edge Internet of things platform, and verifying the communication between the simulation equipment and the platform; the test verification and analysis comprises the steps of collecting and analyzing response data from the edge internet of things platform and checking the processing result of the internet of things platform.
4. The method for implementing the edge internet of things platform based on Go and Python as claimed in claim 3, wherein: the local processing comprises real-time data processing analysis and edge intelligence and decision making; the real-time data processing analysis comprises the steps that when the edge equipment generates and collects data, the data collected by the equipment are analyzed and processed in real time based on an algorithm and an application program embedded in the edge equipment;
the edge intelligence and decision comprises the steps that an internet of things platform packages a decision mechanism and puts the decision mechanism into an application program, when the edge equipment is registered by the internet of things platform, the internet of things platform transmits the application program to the edge equipment, after the edge equipment processes generated and collected data, a model and an inference result are directly generated in the application program of the edge equipment according to a processing result, and the edge equipment responds quickly according to the inference result;
based on business demand analysis, when the edge equipment processes multiple equipment and complex computing tasks, firstly transmitting a computing task summary to an Internet of things platform, and when the computing power is ready to be completed, feeding back an instruction for transmitting a complete computing task to the edge equipment, wherein the edge equipment transmits the complete computing task to the Internet of things platform, and the Internet of things platform receives the complete computing task and completes the computing task;
Setting a calculation force trigger mechanism of the calculation tasks of the edge Internet of things platform and the edge equipment, processing the calculation tasks at the edge equipment when the calculation force required by the calculation tasks does not exceed the calculation force upper limit and the residual calculation force of the edge equipment, and responding by the edge equipment according to the processing result; if the calculation force required by the calculation task is larger than that of the edge equipment, transmitting result data of the edge equipment to the Internet of things platform, calculating at the Internet of things platform, after obtaining a calculation result, conveying a platform instruction by the Internet of things platform, conveying the instruction to the edge equipment, and responding by the edge equipment according to the instruction.
5. The method for implementing the edge internet of things platform based on Go and Python according to claim 4, wherein the method comprises the following steps: the local processing comprises the steps of carrying out classification work in items for a plurality of edge equipment combined works, wherein the items comprise a first type of edge equipment, a second type of edge equipment and a third type of edge equipment;
the first type edge equipment is sensor type edge equipment, data in a working environment is acquired through a sensor function of the first type edge equipment, abnormal data values are filtered according to a program and an algorithm stored in the first type edge equipment, the filtered data values are transmitted to the second type edge equipment in real time, the second type edge equipment is scheduling type edge equipment, the data values transmitted by the first type edge equipment are received in real time, the data values are stored, scheduling instructions corresponding to the data values are transmitted to third type edge equipment through a preset program and an algorithm, the third type edge equipment is corresponding type edge equipment, after receiving the instructions transmitted by the second type edge equipment, corresponding working response and adjustment are carried out according to the functionality of the second type edge equipment, and response and adjustment results are fed back to the second type edge equipment;
If the data transmitted by the first type edge received by the second type edge device exceeds the calculation upper limit of the first type edge, transmitting the data value to an Internet of things platform in real time, enabling the Internet of things platform to calculate and process the data, generating an instruction in the Internet of things platform, transmitting feedback to the second type edge device, transmitting the instruction to a third type device by the second type device, and performing work response and adjustment by the third type device;
if the third type edge equipment cannot respond and work the adjustment when receiving the instruction of the second type edge equipment, the second type edge equipment feeds back the result of the response and adjustment to the second type edge equipment, the second type edge equipment feeds back the result to the internet of things platform, the internet of things platform calculates the result, the work instruction of the third type edge equipment is re-issued and transmitted to the second type edge equipment, the second type edge equipment conveys the instruction to the third type equipment, and the third type edge equipment carries out work response and adjustment again;
if the third type edge equipment still cannot respond and adjust the work of the re-issued instruction, the result is fed back to the second type edge equipment again, the second type edge equipment feeds back the result to the Internet of things platform, the Internet of things platform carries out calculation again and issues a new instruction until the third type edge equipment responds and adjusts the work according to the instruction.
6. The method for implementing the edge internet of things platform based on Go and Python according to claim 5, wherein the method comprises the following steps: the unified interface comprises a unified external equipment control interface, and the control and management of the Internet of things platform and the edge equipment are carried out through the unified external equipment control interface; the unified external equipment control interface comprises an equipment authentication mechanism, a preset equipment control instruction, a unified API interface and an equipment control mode;
the equipment authentication mechanism comprises a strict equipment authentication mechanism and a strict flow are provided when the Go language develops the internet of things platform, and project authentication, product authentication and equipment authentication are carried out;
in the project authentication stage, a user logs in an Internet of things platform to register and bind edge equipment in a project under the name, if the equipment types of the registered and bound equipment are not matched, the registration is prompted to fail and the project authentication stage is returned, if the user has project manager authority, the user adds the registration authority of the edge equipment to be registered in the project by himself and carries out registration again, and if the user does not have the project manager authority, the user contacts the Internet of things platform manager to add the edge equipment registration authority; if the type of the edge equipment is not consistent with the type of the item, the administrator is not allowed to add the registration authority, the registration flow is terminated, if the type of the edge equipment is matched with the type of the item, the item authentication is completed, and the product authentication is performed;
In the product authentication stage, the Internet of things sends an instruction for reading the information of the equipment to the edge equipment by virtue of the platform, the edge equipment feeds back the equipment information to the Internet of things platform after receiving the instruction, and the Internet of things platform verifies compliance and functional integrity of an edge equipment product, if the verification fails, prompts the user that the edge equipment product is not compliant, prompts the user that the edge equipment attribute is compliant, and prompts the user that the registration fails; if the verification is successful, entering an equipment authentication stage;
in the equipment authentication stage, the internet of things platform sends an information binding instruction to the edge equipment, after receiving the instruction, the edge equipment carries out registration binding with the internet of things platform, carries out registration locking on the edge equipment, does not pair with other internet of things platforms any more, and after finishing the equipment registration binding, the internet of things platform opens the operation authority of registering the edge equipment to a user and records and stores data transmitted by the internet of things edge equipment in the internet of things platform;
the preset equipment control instruction comprises that when the Internet of things platform developed based on the Go language is used for registering equipment, after registering and binding of the edge equipment and the Internet of things platform are completed, the Internet of things platform automatically embeds the corresponding control instruction into the edge equipment according to the product attribute of the edge equipment, and construction of an application algorithm and installation of an application program are completed in the edge equipment;
The unified API interface comprises a unified API interface built when the Internet of things platform is developed, the secondary call of the third party platform is simplified by calling the Internet of things platform data from the API interface and completing the control of the edge equipment,
if the third party platform inputs a key at a unified API interface when calling the core data of the Internet of things platform, acquiring the authority of calling the core data in the Internet of things platform, and calling the complete data of the Internet of things platform and the project equipment;
and if the third party platform does not input the secret key in the unified API interface, calling the public data of the networking platform and the project equipment.
7. The method for implementing the edge internet of things platform based on Go and Python as claimed in claim 6, wherein: the edge internet of things platform comprises a platform and edge equipment, and is based on the modern electronic information technology, so that information transmission and communication between the platform and the edge equipment are realized;
the edge equipment is electronic equipment with an embedded system and has the functions of collecting data, storing data, processing data and transmitting data.
8. A system for implementing a method for implementing an edge internet of things platform based on Go and Python according to any one of claims 1 to 7, wherein: the system comprises an Internet of things platform module and an edge equipment module;
The internet of things platform module is used for completing development and construction based on the Go language, is used for managing the edge equipment module, is integrated with an external control interface, registers new edge equipment, and transmits embedded instructions and working programs to the newly registered edge equipment; the edge internet of things platform processes data transmitted by the edge equipment in operation and issues a response instruction, and the internet of things platform module is also integrated with a unified API interface and a database for providing users with data calling and operating the edge equipment;
the edge equipment module is electronic equipment with an embedded system, has the functions of collecting data, storing data, processing data and transmitting data, and responds to operation according to the instruction of the platform of the Internet of things.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of a method of implementing an edge internet of things platform based on Go and Python as claimed in any one of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of a method of implementing an edge internet of things platform based on Go and Python as claimed in any one of claims 1 to 7.
CN202311292415.6A 2023-10-08 2023-10-08 Method and system for realizing edge Internet of things platform based on Go and Python Pending CN117591580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311292415.6A CN117591580A (en) 2023-10-08 2023-10-08 Method and system for realizing edge Internet of things platform based on Go and Python

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311292415.6A CN117591580A (en) 2023-10-08 2023-10-08 Method and system for realizing edge Internet of things platform based on Go and Python

Publications (1)

Publication Number Publication Date
CN117591580A true CN117591580A (en) 2024-02-23

Family

ID=89920753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311292415.6A Pending CN117591580A (en) 2023-10-08 2023-10-08 Method and system for realizing edge Internet of things platform based on Go and Python

Country Status (1)

Country Link
CN (1) CN117591580A (en)

Similar Documents

Publication Publication Date Title
CN110378487B (en) Method, device, equipment and medium for verifying model parameters in horizontal federal learning
US10943186B2 (en) Machine learning model training method and device, and electronic device
CN110428127B (en) Automatic analysis method, user equipment, storage medium and device
CN109543891B (en) Method and apparatus for establishing capacity prediction model, and computer-readable storage medium
Smelyakov et al. Investigation of network infrastructure control parameters for effective intellectual analysis
CN114546975B (en) Business risk processing method and server combining artificial intelligence
CN116561542B (en) Model optimization training system, method and related device
CN108921111A (en) Object detection post-processing approach and corresponding intrument
CN109743286A (en) A kind of IP type mark method and apparatus based on figure convolutional neural networks
CN105930226A (en) Data processing method and apparatus
CN113726890A (en) Block chain data service-oriented federal prediction method and system
CN109376981B (en) Data processing mode determining method and device, server and data processing method
CN117056172B (en) Data integration method and system for system integration middle station
CN117591580A (en) Method and system for realizing edge Internet of things platform based on Go and Python
CN110380411A (en) A kind of distribution network restoration power quantitative evaluating method for considering communication and influencing
CN115328786A (en) Automatic testing method and device based on block chain and storage medium
CN113505064B (en) Heterogeneous information flow-based electric power big data service system testing method
CN115712571A (en) Interactive service test device, interactive service test device, computer equipment and storage medium
CN115906028A (en) User identity verification method and device and self-service terminal
CN111651652B (en) Emotion tendency identification method, device, equipment and medium based on artificial intelligence
CN111159714B (en) Method and system for verifying credibility of main body in operation in access control
CN113986495A (en) Task execution method, device, equipment and storage medium
EP3970043A1 (en) Apparatuses and methods for detecting malware
CN112307271A (en) Safety monitoring method and device for remote control service of power distribution automation system
CN105809074B (en) USB data transmission control method, device, control assembly and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination