CN114466044A - Data processing system, data processing method and device, equipment and medium - Google Patents

Data processing system, data processing method and device, equipment and medium Download PDF

Info

Publication number
CN114466044A
CN114466044A CN202210093103.1A CN202210093103A CN114466044A CN 114466044 A CN114466044 A CN 114466044A CN 202210093103 A CN202210093103 A CN 202210093103A CN 114466044 A CN114466044 A CN 114466044A
Authority
CN
China
Prior art keywords
data
layer
identifier
notification message
control
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
CN202210093103.1A
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.)
Wuhan Easylinkin Technology Co ltd
Original Assignee
Wuhan Easylinkin Technology 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 Wuhan Easylinkin Technology Co ltd filed Critical Wuhan Easylinkin Technology Co ltd
Priority to CN202210093103.1A priority Critical patent/CN114466044A/en
Publication of CN114466044A publication Critical patent/CN114466044A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a data processing system, a data processing method, a data processing device, equipment and a medium, wherein the data processing system comprises a sensing layer, a platform layer and an application layer; the sensing layer is used for acquiring first operating data of equipment and sending the first operating data to the platform layer; the first operation data has a first data identifier, and the first data identifier at least comprises a device type identifier; the platform layer is used for analyzing the first running data at least according to the equipment type identifier to obtain second running data in a first preset format and sending the second running data to the application layer; and the application layer is used for outputting the second operation data.

Description

Data processing system, data processing method and device, equipment and medium
Technical Field
The invention relates to the technical field of internet of things, in particular to a data processing system, a data processing method and device, equipment and a medium.
Background
The Internet of Things equipment has a plurality of communication modes, common Wireless communication modes include Wireless Fidelity (WIFI), Low-Power Wide Area network (LPWA), narrowband Band Internet of Things (NB-IoT) and the like, different communication modes have different communication characteristics, and meanwhile, due to different data processing schemes of hardware manufacturers on hardware, the reporting and downlink control of the equipment are greatly different. In downlink control, generally, Application layer software is used for initiating, for example, a mobile phone Application program (APP) or an industry Application management platform, for a user, when the user issues control to the internet of things device, real-time feedback must be provided to tell whether the Application layer control is successful or not, the user needs to prompt that the issuance is successful, and simultaneously, the device state is updated, and if the issuance is failed, the user needs to perform repeated retransmission for many times.
Because the communication characteristics and processing logic of different devices are different, the device data returned after receiving the control command are also different, the application layer is biased to develop the business function related to the application, and a great deal of energy is not spent on processing the data processing work related to the device, and moreover, the updating of the device data after control is issued is a problem encountered by all the application development of the internet of things.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a data processing system, a data processing method and apparatus, a device, and a medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a data processing system, which comprises a sensing layer, a platform layer and an application layer;
the sensing layer is used for acquiring first operating data of equipment and sending the first operating data to the platform layer; the first operation data has a first data identifier, and the first data identifier at least comprises a device type identifier;
the platform layer is used for analyzing the first running data at least according to the equipment type identifier to obtain second running data in a first preset format and sending the second running data to the application layer;
and the application layer is used for outputting the second operation data.
In the above scheme, the platform layer is further configured to call a script file according to the device type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
In the above solution, the first data identifier further includes a device identifier for identifying the device;
and the platform layer is further used for determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
In the above scheme, the application layer is further configured to receive a control instruction for at least one of the devices, and send the control instruction to the platform layer;
the platform layer is further configured to format the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to the sensing layer after the control data is packaged according to a preset communication protocol;
and the sensing layer is also used for controlling the equipment to execute operation according to the control data in the second preset format.
In the above scheme, the sensing layer is further configured to send, to the platform layer, a first notification message that identifies that the device is successfully executed when receiving, within a first preset time period, a response message after the device executes the operation;
the platform layer is further configured to generate a data pipeline including at least the device identifier and control data of the control instruction according to the first notification message, and send the data pipeline to the application layer;
the application layer is also used for outputting the data stream.
In the foregoing solution, the platform layer is further configured to, when the script file is called according to the first notification message to determine that the first notification message is of a type associated with the control instruction, determine, according to an identifier of the first notification message, a control instruction of a target device corresponding to the first notification message, and generate the data pipeline according to control data of the control instruction of the target device and the identifier of the target device.
In the foregoing scheme, the sensing layer is further configured to send, to the platform layer, a second notification message that identifies that the target device fails to execute when the response message after the target device executes the operation is not received within the first preset time period;
the platform layer is further used for generating first prompt information for indicating that the target device fails to execute according to the second notification message;
the application layer is further configured to output the first prompt message.
In the above scheme, the platform layer is further configured to generate second prompt information for indicating a fault when the first notification message or the second notification message is not received within a second preset time period; wherein the fault comprises: the sensing layer failure and/or a network failure between the sensing layer and the platform layer;
the application layer is further configured to output the second prompt message.
The embodiment of the invention also provides a data processing method which is applied to a platform layer and comprises the following steps:
acquiring first operating data of equipment; wherein the first operating data has a first data identifier, the first data identifier including at least a device type;
and analyzing the first running data according to the equipment type identifier to obtain second running data in a first preset format, wherein the second running data is used for outputting by an application layer connected with the platform layer.
In the foregoing solution, the analyzing the first operation data according to the device type identifier to obtain second operation data in a first preset format includes:
calling a script file according to the equipment type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
In the above scheme, the method further comprises:
receiving a control instruction for at least one of the devices;
formatting the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to a sensing layer connected with the platform layer after the control data is packaged according to a preset communication protocol; the control data in the second preset format is used for the sensing layer to control the equipment to execute the operation.
In the above scheme, the method further comprises:
receiving a first notification message identifying successful execution of the device;
and generating a data pipelining of control data at least comprising the equipment identification and the control instruction according to the first notification message, wherein the pipelining is used for the output of the application layer.
In the foregoing solution, the generating a data flow including at least the device identifier and the control data of the control instruction according to the first notification message includes:
and when the script file is called to determine that the first notification message is the type associated with the control instruction according to the first notification message, determining the control instruction of the target device corresponding to the first notification message according to the identifier of the first notification message, and generating the data stream according to the control data of the control instruction of the target device and the identifier of the target device.
An embodiment of the present invention further provides a data processing apparatus, where the apparatus includes:
the acquisition module is used for acquiring first operating data of the equipment; wherein the first operating data has a first data identifier, the first data identifier including at least a device type;
and the analysis module is used for analyzing the first running data according to the equipment type identifier to obtain second running data in a first preset format, and the second running data is used for outputting by an application layer connected with the platform layer.
In the above apparatus, the analysis module is further configured to call a script file according to the device type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
In the above apparatus, the apparatus further comprises:
the first receiving module is used for receiving a control instruction of at least one device;
the first processing module is used for formatting the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to a sensing layer connected with the platform layer after the control data is packaged according to a preset communication protocol; the control data in the second preset format is used for the sensing layer to control the equipment to execute the operation.
In the above apparatus, the apparatus further comprises:
a second receiving module, configured to receive a first notification message that identifies that the device is successfully executed;
and a second processing module, configured to generate, according to the first notification message, a data pipeline including at least the device identifier and control data of the control instruction, where the data pipeline is used for the application layer output.
In the above apparatus, the second processing module is further configured to, when the script file is called according to the first notification message to determine that the first notification message is of a type associated with the control instruction, determine, according to an identifier of the first notification message, a control instruction of a target device corresponding to the first notification message, and generate the data stream according to control data of the control instruction of the target device and the identifier of the target device.
An embodiment of the present invention further provides an electronic device, which includes: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute the steps of the method according to the embodiment of the present invention when the processor runs the computer program.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method according to the embodiments of the present invention.
By adopting the technical scheme of the embodiment of the invention, the platform layer analyzes and processes the first running data according to the equipment type identification of the first running data after receiving the first running data of the equipment to obtain the second running data in the first preset format, so that the application layer can directly output the second running data without data processing. The data processing function is completely completed on the platform layer, one-time processing and multiple applications are realized, and the application layer only needs to update the state and display the data back according to the received data. The data processing speed and efficiency are greatly improved, the data butt joint work of an application layer is reduced, and the application layer can better develop the business process.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of an architecture of an internet of things of a data processing system according to an embodiment of the present invention;
FIG. 2 is a first block diagram illustrating a data processing system according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating a second exemplary embodiment of a data processing system;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Fig. 1 is a schematic diagram of an internet of things architecture of a data processing system according to an embodiment of the present invention, as shown in fig. 1, a platform layer 102 may access devices in multiple communication modes and protocols through a device access system, and support both standard LPWA, NB-IoT, HTTP transport protocol plug-ins, and the like, and support cloud docking with a third party platform, and also support the devices to push data to the platform layer 102 by themselves according to an access specification customized by the platform layer 102. The various sensor hardware included in the sensing layer 101 first requires development and debugging of the device before accessing the platform layer 102. The device development comprises data model definition of the device, development and debugging of the device and post management of the device. The data format and the API interface of the equipment can be specified through the definition of the equipment data model; the development and debugging of the equipment are to carry out secondary development and debugging on the equipment, so that the equipment can be accessed to the platform layer 102, and the analysis of equipment data and the like can be realized on the platform layer 102; the device management is to realize the management of the flow water, the on-line management, the off-line management and the whole life cycle management of the device. After one device is developed, debugged and verified, a standard data interface can be formed to support the pushing of the device data to a third-party platform, so that the separation of the device and the application can be realized.
It should be noted that, whenever there is a new device type, the new device type needs to be added in the platform layer 102, and the added content may include a name of the device type, a model of the device type, an encoding of the device type, a transmission protocol applicable to the device, a name of a provider of the device, and the like.
The application layer 103 realizes equipment monitoring, data display and control are carried out on the Internet of things equipment in an imaging mode, all basic service function modules support flexible construction, selection can be carried out according to actual scene requirements, and construction is carried out, so that service functions can be known more deeply, and functions of the application layer 103 are deepened.
Fig. 2 is a schematic structural diagram of a data processing system according to an embodiment of the present invention; as shown in fig. 2, the data processing system 10 includes a sensing layer 101, a platform layer 102, and an application layer 103; the sensing layer 101 is configured to acquire first operating data of a device and send the first operating data to the platform layer 102; the first operation data has a first data identifier, and the first data identifier at least comprises a device type identifier;
the platform layer 102 is configured to analyze the first operation data at least according to the device type identifier to obtain second operation data in a first preset format, and send the second operation data to the application layer 103;
the application layer 103 is configured to output the second operation data.
It should be noted that the data processing system 10 of the present embodiment may be applied to any system including the sensing layer 101, the platform layer 102, and the application layer 103, which is not limited herein, and as an example, the data processing system 10 may be applied to the internet of things architecture shown in fig. 1.
In this embodiment, the sensing layer 101 acquires first operating data of the device, where the identifier of the first operating data at least includes a type identifier of the device; it should be noted that the first operation data of the device may be operation data sent to the device of the sensing layer at preset intervals by the device; the type identification of the device may include a type name, a type model, a type code, etc. of the device. The sensing layer 102 sends first operational data of the device, including the type identification of the device, to the platform layer 102. After receiving the first running data of the device, the platform layer 102 analyzes the first running data according to the device type identifier of the first running data to obtain second running data in a first preset format, and sends the second running data to the application layer 103.
In this embodiment of the present invention, the application layer 103 may be any electronic device with a display function, and is not limited herein, and as an example, the application layer 103 may be a computer, a tablet, or the like. It should be noted that, in the embodiment of the present invention, the application layer 103 may output the data in the first preset format through a dialog box, a popup screen, a voice, and the like, which is not limited herein.
In this embodiment, the first preset format is a data format that the application layer 103 can directly output. The application layer 103 may output the second running data according to the received second running data in the first preset format, so as to update the device state, and the output mode may be different according to different actual usage scenarios.
In this embodiment, after receiving the first operation data of the device, the platform layer 102 analyzes the first operation data according to the device type identifier of the first operation data to obtain the second operation data in the first preset format, so that the application layer 103 can directly output the second operation data without performing data processing. The data processing function is completely completed in the platform layer 102, and multiple applications can be processed once. The application layer 103 only needs to update the state and display back the data according to the received data. The data processing speed and efficiency are greatly improved, the data butt joint work of the application layer 103 is reduced, and the application layer 103 can better develop the business process.
In an alternative embodiment of the present invention, fig. 3 is a schematic structural diagram of a data processing system according to an embodiment of the present invention; as shown in fig. 3, the platform layer 102 is further configured to call a script file according to the device type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
It should be noted that the operation data of the devices of the same device type are processed by the same script. The script mainly processes the related content of the communication layer, and can process different data frames. Illustratively, the device connected to the third-party system transmits data by using an HTTP protocol, and when reporting, the script is required to remove content related to communication from the data packet, find the device identifier, and forward the core application data to the device corresponding to the device identifier.
The data model composition of a device may include 3 parts for attributes, events and services, through which 3 parts the functionality of the device may be fully described. An attribute refers to a functional parameter of a device, the value of which is indicative of the state or data of the device. Events are reported only when the conditions meet triggering conditions, and are mainly used for fault monitoring and alarming of equipment. The service is setting of the attribute of the device, which is used by the platform layer 102 to control the device included in the sensing layer 101. For example, the data model of the device may be as shown in table 1 below:
TABLE 1 data model composition description
Figure BDA0003489963090000091
In this embodiment, the platform layer 102 receives first operation data which is sent by the sensing layer 101 and at least has a device type identifier, calls a script file corresponding to the device type according to the device type identifier, and then determines the identifier from the first operation data through the script file; and determining a corresponding data model according to the equipment identifier, and then analyzing the first operation data according to the data model to obtain second operation data, wherein the second operation data is data to be reported by the equipment, and exemplarily, the data reported by the air conditioner at regular time comprises an on-off state, an operation mode, a wind speed, a temperature, a fault code and the like of the air conditioner. The second run is then sent to the application layer 103. The application layer 103 may output the second running data according to the received second running data in the first preset format, so as to update the device state, and the output mode may be different according to different actual usage scenarios.
In this embodiment, the scripts and the data models in the platform layer 102 are used to unify devices in different communication modes, so as to update the state, reduce data docking work of the application layer 103, and enable the application layer 103 to better perform business process development.
In an optional embodiment of the invention, the first data identity further comprises a device identity for identifying the device;
the platform layer 102 is further configured to determine a data model according to the device identifier, and perform analysis processing on the first operation data according to the data model to obtain the second operation data.
In this embodiment, when the device is a device that performs communication using a standard communication protocol, for example, when the device is an NB-IOT device, the first operation data further includes a device identifier of the device, and the platform layer 102 may determine a corresponding data model according to the device identifier, and then analyze the first operation data according to the data model to obtain the second operation data. The second run is then sent to the application layer 103. The application layer 103 may output the second running data according to the received second running data in the first preset format, so as to update the device state, and the output mode may be different according to different actual usage scenarios.
In this embodiment, when the first data identifier includes the device identifier of the device, the corresponding data model may be directly determined by the device identifier, so that the data processing process is simpler and more convenient, and the data processing speed of the data processing system 10 is greatly increased.
In an optional embodiment of the present invention, the application layer 103 is further configured to receive a control instruction for at least one of the devices, and send the control instruction to the platform layer 102;
the platform layer 102 is further configured to format the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to the sensing layer 101 after the control data is packaged according to a preset communication protocol;
the sensing layer 101 is further configured to control the device to execute an operation according to the control data in the second preset format.
It should be noted that the control command in this embodiment may be a control command for changing operation data of any device displayed in the application layer 103, and is not limited herein. As an example, receiving a control instruction for an air conditioning device, wherein the control instruction comprises a switch, a mode, a temperature and a wind speed of an air conditioner, and setting the air conditioner as core data of starting, refrigeration, grade 1 wind and 24-degree temperature; for example, the control instruction data composition may be as shown in table 2 below:
table 2 control instruction data composition description
Figure BDA0003489963090000101
In this embodiment, after receiving the control instruction for the device, the application layer 103 sends the control instruction to the platform layer 102, and the platform layer 102 performs formatting processing on the control data carried in the control instruction according to the data model corresponding to the device to obtain the control data in the second preset format. It should be noted that the second preset format may be set according to an actual usage scenario of the data processing system 10, which is not limited herein, and as an example, the second preset format may be a hexadecimal format, and may convert the JSON-format control data sent by the application layer 103 into hexadecimal.
The script adds network related contents including IP address, request method (post), request header and the like to hexadecimal control data, and encapsulates the equipment identifier into the issued data to ensure that the equipment data can be sent to a correct address and can be identified.
And the sensing layer 101 controls the device corresponding to the device identifier to execute the operation according to the control data in the second preset format.
In this embodiment, the control instruction sent by the application layer 103 is processed by the data model and the script in the platform layer 102 to obtain control data in the second preset format, and the sensing layer 101 can directly control the device to operate according to the data in the second preset format. The processing process of the data is completely completed by the platform layer 102, so that the data docking and processing work of the sensing layer 101 is reduced, the sensing layer 101 can perform the execution operation well, and the working efficiency of the data processing system 10 is improved.
In an optional embodiment of the present invention, the sensing layer 101 is further configured to send, when receiving a response message after at least one of the devices executes the operation within a first preset time period, a first notification message identifying that the device is successfully executed to the platform layer 102;
the platform layer 102 is further configured to generate a data pipeline including at least the device identifier and control data of the control instruction according to the first notification message, and send the data pipeline to the application layer;
the application layer 103 is further configured to output the data stream.
It should be noted that the first preset time period may be set according to an actual usage scenario of the data processing system 10, and is not limited herein.
In this embodiment, the first notification message indicates that the control instruction is successfully issued, and the device corresponding to the control instruction has already executed the control instruction.
The sensing layer 101 sends a first notification message that the device successfully executes the operation to the platform layer 102 when receiving a response message after the device executes the operation within a first preset time period, the platform layer 102 generates a data stream of control data including a device identifier and a control instruction according to the first notification message, and sends the data stream to the application layer 103, and the application layer 103 updates the running state of the device according to the data stream of the control data including the device identifier and the control instruction.
In this embodiment, the platform layer 102 can determine whether the control of the device is successful according to the notification message, and generate the data pipeline after the control is successful, and the application layer 103 can output the post-control state of the device according to the received data pipeline, thereby implementing the instant update. The processing of the application layer 103 on the device data can be reduced, the workload of the application layer 103 can be greatly reduced, and the application layer 103 can pay more attention to the development of the service function.
In an optional embodiment of the present invention, the platform layer 102 is further configured to, when calling the script file according to the first notification message and determining that the first notification message is of a type associated with the control instruction, determine, according to an identifier of the first notification message, the control instruction of the target device corresponding to the first notification message, and generate the data stream according to control data of the control instruction of the target device and the identifier of the target device.
In this embodiment, the platform layer 102 calls the script file according to the device type identifier carried in the first notification message, and determines the type of the data of the first notification message according to the script file; when the first notification message is determined to be the notification message of the associated control instruction, comparing the identifier of the first notification message with the identifier of the control instruction, and establishing a mapping relation between the first notification message and the control instruction of the target device through the identifiers; and then generating the data stream according to the control data of the control instruction of the target equipment and the identification of the target equipment.
In this embodiment, the data processing process for generating the data pipeline based on the notification message is entirely applied to the platform layer 102, and all the application layers 103 can be used in common without being separately developed, thereby providing a more convenient way for docking of each third-party application platform.
In an optional embodiment of the present invention, the sensing layer 101 is further configured to send, to the platform layer 102, a second notification message for identifying that the target device fails to execute when the response message after the target device executes the operation is not received within the first preset time period;
the platform layer 102 is further configured to generate, according to the second notification message, first prompt information for indicating that the target device fails to execute;
the application layer 103 is further configured to output the first prompt message.
In this embodiment, the second notification message indicates that the control instruction fails to be issued. The first prompt information may include a message that the control instruction fails to be issued, and when the platform layer 101 may analyze the reason for the control instruction failing to be issued, the first prompt information may also include the reason for the control instruction failing to be issued.
The sensing layer 101 sends a second notification message indicating that the target device fails to execute the operation to the platform layer 102 when a response message after the device executes the operation is not received within a first preset time period, the platform layer 102 generates first prompt information indicating that the target device fails to execute according to the second notification message, and sends the first prompt information to the application layer 103, and the application layer 103 outputs the first prompt information.
In this embodiment, the platform layer 102 sets the first preset duration, and when the platform layer 102 does not receive the data returned by the sensing layer 101 after exceeding the first preset duration, a failed second notification message is directly pushed, so as to prevent that no feedback is generated due to the network outage or failure of the device.
In an optional embodiment of the present invention, the platform layer 102 is further configured to generate a second prompt message for indicating a fault when the first notification message or the second notification message is not received within a second preset time period; wherein the fault comprises: the sensing layer failure and/or a network failure between the sensing layer and the platform layer;
the application layer 103 is further configured to output the second prompt message.
It should be noted that the second preset time period may be set according to an actual usage scenario of the data processing system 10, which is not limited herein, but it should be noted that the second preset time period is greater than the first preset time period.
In this embodiment, the platform layer 102 does not receive the first notification message or the second notification message sent by the sensing layer 101 within the second preset time period, which indicates that the sensing layer 101 has a fault and/or that a network fault occurs between the sensing layer 101 and the platform layer 102. The platform layer 102 generates second hint information indicating the failure and sends the second hint information to the application layer 103. And the application layer 103 receives and outputs the second prompt message.
By adopting the technical scheme of the embodiment, the user can be reminded of processing the system fault in time, and the loss caused by overlong system fault time is prevented.
Based on the foregoing embodiment, an embodiment of the present invention further provides a data processing method applied to a platform layer, and fig. 4 is a schematic flow diagram of the data processing method provided in the embodiment of the present invention, where as shown in fig. 4, the method includes:
step 11: acquiring first operating data of equipment; wherein the first operating data has a first data identifier, the first data identifier including at least a device type;
step 12: and analyzing the first running data according to the device type identifier to obtain second running data in a first preset format, wherein the second running data is used for being output by an application layer 103 connected with the platform layer 102.
In this embodiment, the sensing layer 101 acquires first operating data of the device, where the identifier of the first operating data at least includes a type identifier of the device; it should be noted that the first operation data of the device may be operation data sent to the device of the sensing layer at preset intervals by the device; the type identification of the device may include a type name, a type model, a type code, etc. of the device. The sensing layer 102 sends first operational data of the device, including the type identification of the device, to the platform layer 102. After receiving the first running data of the device, the platform layer 102 analyzes the first running data according to the device type identifier of the first running data to obtain second running data in a first preset format, and sends the second running data to the application layer 103. The application layer 103 may output the second operation data according to the received second operation data in the first preset format, so as to update the device state.
In this embodiment, after receiving the first operation data of the device, the platform layer 102 analyzes the first operation data according to the device type identifier of the first operation data to obtain the second operation data in the first preset format, so that the application layer 103 can directly output the second operation data without performing data processing. The data processing function is completely completed in the platform layer 102, and multiple applications can be processed once. The application layer 103 only needs to update the state and display back the data according to the received data. The data processing speed and efficiency are greatly improved, the data butt joint work of the application layer 103 is reduced, and the application layer 103 can better develop the business process.
In some optional embodiments of the present invention, the parsing the first operation data according to the device type identifier to obtain second operation data in a first preset format includes:
calling a script file according to the equipment type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
In this embodiment, the platform layer 102 receives first operation data which is sent by the sensing layer 101 and at least has a device type identifier, calls a script file corresponding to the device type according to the device type identifier, and then determines the identifier from the first operation data through the script file; and determining a corresponding data model according to the equipment identifier, and then analyzing the first operation data according to the data model to obtain second operation data, wherein the second operation data is data to be reported by the equipment, and exemplarily, the data reported by the air conditioner at regular time comprises an on-off state, an operation mode, a wind speed, a temperature, a fault code and the like of the air conditioner. The second run is then sent to the application layer 103. The application layer 103 may output the second operation data according to the received second operation data in the first preset format, so as to update the device state.
In this embodiment, the scripts and the data models in the platform layer 102 are used to unify devices in different communication modes, so as to update the state, reduce data docking work of the application layer 103, and enable the application layer 103 to better perform business process development.
In some optional embodiments of the invention, the method further comprises:
receiving a control instruction for at least one of the devices;
formatting the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to a sensing layer connected with the platform layer after the control data is packaged according to a preset communication protocol; the control data in the second preset format is used for controlling the equipment to execute operation by the sensing layer.
In this embodiment, after receiving the control instruction for the device, the application layer 103 sends the control instruction to the platform layer 102, and the platform layer 102 performs formatting processing on the control data carried in the control instruction according to the data model corresponding to the device to obtain the control data in the second preset format. It should be noted that the second preset format may be set according to an actual usage scenario of the data processing system 10, which is not limited herein, and as an example, the second preset format may be a hexadecimal format, and may convert the JSON-format control data sent by the application layer 103 into hexadecimal.
The script adds network related contents including IP address, request method (post), request header and the like to hexadecimal control data, and encapsulates the equipment identifier into the issued data to ensure that the equipment data can be sent to a correct address and can be identified.
And the sensing layer 101 controls the equipment corresponding to the equipment identifier to execute operation according to the control data in the second preset format.
In this embodiment, the control instruction sent by the application layer 103 is processed by the data model and the script in the platform layer 102 to obtain control data in the second preset format, and the sensing layer 101 can directly control the device to operate according to the data in the second preset format. The processing process of the data is completely completed by the platform layer 102, so that the data docking and processing work of the sensing layer 101 is reduced, the sensing layer 101 is enabled to perform the operation better, and the working efficiency of the data processing system 10 is improved.
In some optional embodiments of the invention, the method further comprises:
receiving a first notification message identifying successful execution of the device;
and generating a data pipeline of control data at least comprising the equipment identification and the control instruction according to the first notification message, wherein the data pipeline is used for the output of the application layer.
In this embodiment, the first notification message indicates that the control instruction is successfully issued, and the device corresponding to the control instruction has already executed the control instruction.
The method comprises the steps that when a response message after equipment executes operation is received within a first preset time, a sensing layer 101 sends a first notification message that the equipment executes operation successfully to a platform layer 102, the platform layer 102 generates a data flow of control data including equipment identification and control instructions according to the first notification message and sends the data flow to an application layer 103, and the application layer 103 updates the running state of the equipment according to the data flow of the control data including the equipment identification and the control instructions.
In this embodiment, the platform layer 102 can determine whether the control of the device is successful according to the notification message, and generate the data pipeline after the control is successful, and the application layer 103 can output the post-control state of the device according to the received data pipeline, thereby implementing the instant update. The processing of the application layer 103 on the device data can be reduced, the workload of the application layer 103 can be greatly reduced, and the application layer 103 can pay more attention to the development of the service function.
In some optional embodiments of the invention, the generating a data pipeline including at least the device identifier and control data of the control instruction according to the first notification message includes:
and when the script file is called to determine that the first notification message is the type associated with the control instruction according to the first notification message, determining the control instruction of the target device corresponding to the first notification message according to the identifier of the first notification message, and generating the data stream according to the control data of the control instruction of the target device and the identifier of the target device.
In this embodiment, the platform layer 102 calls the script file according to the device type identifier carried in the first notification message, and determines the type of the data of the first notification message according to the script file; when the first notification message is determined to be the notification message of the associated control instruction, comparing the identifier of the first notification message with the identifier of the control instruction, and establishing a mapping relation between the first notification message and the control instruction of the target device through the identifiers; and then generating the data stream according to the control data of the control instruction of the target equipment and the identification of the target equipment.
In this embodiment, the data processing process for generating the data pipeline based on the notification message is entirely applied to the platform layer 102, and all the application layers 103 can be used in common without being separately developed, thereby providing a more convenient way for docking of each third-party application platform.
Based on the above embodiment, the embodiment of the invention also provides a data processing device. FIG. 5 is a block diagram of a data processing apparatus according to an embodiment of the present invention; as shown in fig. 5, the apparatus includes:
an obtaining module 201, configured to obtain first operating data of a device; wherein the first operating data has a first data identifier, the first data identifier including at least a device type;
an analysis module 202, configured to perform parsing processing on the first operation data according to the device type identifier to obtain second operation data in a first preset format, where the second operation data is used for being output by the application layer 103 connected to the platform layer 102.
In some optional embodiments of the present invention, the analysis module 202 is further configured to invoke a script file according to the device type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
In some optional embodiments of the invention, the apparatus further comprises:
a first receiving module 203, configured to receive a control instruction for at least one of the devices;
the first processing module 204 is configured to format the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to a sensing layer connected with the platform layer after the control data is packaged according to a preset communication protocol; the control data in the second preset format is used for the sensing layer to control the equipment to execute the operation.
In some optional embodiments of the invention, the apparatus further comprises:
a second receiving module 205, configured to receive a first notification message that identifies that the device is successfully executed;
a second processing module 206, configured to generate, according to the first notification message, a data pipeline including at least the device identifier and control data of the control instruction, where the data pipeline is used for the application layer output.
In some optional embodiments of the present invention, the second processing module 206 is further configured to, when the script file is called to determine that the first notification message is of a type associated with the control instruction according to the first notification message, determine, according to an identifier of the first notification message, the control instruction of the target device corresponding to the first notification message, and generate the data stream according to the control data of the control instruction of the target device and the identifier of the target device.
Fig. 6 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present invention, where the electronic device may be a computer, a tablet device, or the like. As shown in fig. 6, the electronic device 300 comprises a processor 301 and a memory 302 for storing a computer program capable of running on the processor 301, wherein the processor 301 is configured to execute any of the steps of the method according to the embodiment of the present invention when running the computer program.
Optionally, the electronic device may further comprise at least one network interface 304 and a user interface 303. The various components in electronic device 300 are coupled together by a bus system 305. It will be appreciated that the bus system 305 is used to enable communications among the components connected. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 305 in fig. 5.
It will be appreciated that the memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 302 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 302 in embodiments of the present invention is used to store various types of data to support the operation of the monitoring device 300. Examples of such data include: any computer programs for operating on the electronic device 300, such as an operating system 3021 and application programs 3022. Operating system 3021, among other things, contains various system programs for implementing various basic services. The application programs 3022 may include various application programs such as a Browser (Browser) and the like for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application program 3022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 301. The processor 301 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 301 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 302, and the processor 301 reads the information in the memory 302 and performs the steps of the method in combination with its hardware.
In an exemplary embodiment, the electronic Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
The features disclosed in the several method or device embodiments provided in the present application may be combined in any combination to arrive at a new method or device embodiment without conflict.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media that can store program code, such as removable storage devices, magnetic or optical disks, etc.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (16)

1. A data processing system, comprising a sensing layer, a platform layer, and an application layer;
the sensing layer is used for acquiring first operating data of equipment and sending the first operating data to the platform layer; the first operation data has a first data identifier, and the first data identifier at least comprises a device type identifier;
the platform layer is used for analyzing the first running data at least according to the equipment type identifier to obtain second running data in a first preset format and sending the second running data to the application layer;
and the application layer is used for outputting the second operation data.
2. The system of claim 1,
the platform layer is also used for calling a script file according to the equipment type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
3. The system of claim 1, wherein the first data identification further comprises a device identification for identifying the device;
and the platform layer is further used for determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
4. The system of claim 2,
the application layer is further configured to receive a control instruction for at least one of the devices, and send the control instruction to the platform layer;
the platform layer is further configured to format the control data carried in the control instruction according to the data model to obtain control data in a second preset format; packaging the control data in the second preset format according to the script file and sending the control data to the sensing layer after the control data is packaged according to a preset communication protocol;
and the sensing layer is also used for controlling the equipment to execute operation according to the control data in the second preset format.
5. The system of claim 4,
the sensing layer is further configured to send a first notification message identifying that the device is successfully executed to the platform layer when receiving a response message after the device executes the operation within a first preset time period;
the platform layer is further configured to generate a data pipeline including at least the device identifier and control data of the control instruction according to the first notification message, and send the data pipeline to the application layer;
the application layer is also used for outputting the data stream.
6. The system of claim 5,
the platform layer is further configured to, when the script file is called to determine that the first notification message is of a type associated with the control instruction according to the first notification message, determine the control instruction of the target device corresponding to the first notification message according to the identifier of the first notification message, and generate the data stream according to the control data of the control instruction of the target device and the identifier of the target device.
7. The system of claim 6,
the sensing layer is further configured to send a second notification message identifying that the target device fails to execute to the platform layer when a response message after the target device executes the operation is not received within the first preset time period;
the platform layer is further used for generating first prompt information for indicating that the target device fails to execute according to the second notification message;
the application layer is further configured to output the first prompt message.
8. The system of claim 5,
the platform layer is further configured to generate second prompt information for indicating a fault when the first notification message or the second notification message is not received within a second preset time period; wherein the fault comprises: the sensing layer failure and/or a network failure between the sensing layer and the platform layer;
the application layer is further configured to output the second prompt message.
9. A data processing method, applied to a platform layer, the method comprising:
acquiring first operating data of equipment; wherein the first operating data has a first data identifier, the first data identifier including at least a device type;
and analyzing the first running data according to the equipment type identifier to obtain second running data in a first preset format, wherein the second running data is used for outputting by an application layer connected with the platform layer.
10. The method according to claim 9, wherein the parsing the first operation data according to the device type identifier to obtain second operation data in a first preset format includes:
calling a script file according to the equipment type identifier; determining equipment identification according to the script file; and determining a data model according to the equipment identifier, and analyzing the first operation data according to the data model to obtain the second operation data.
11. The method of claim 10, further comprising:
receiving a control instruction for at least one of the devices;
formatting the control data carried in the control command according to the data model to obtain control data in a second preset format; and according to the script file, packaging the control data in the second preset format according to a preset communication protocol and then sending the control data to a sensing layer connected with the platform layer, wherein the control data in the second preset format is used for controlling the equipment to execute operation by the sensing layer.
12. The method of claim 11, further comprising:
receiving a first notification message identifying successful execution of the device;
and generating a data pipeline of control data at least comprising the equipment identification and the control instruction according to the first notification message, wherein the data pipeline is used for the output of the application layer.
13. The method of claim 12, wherein generating a data pipeline including at least the device identification and control data of the control instruction according to the first notification message comprises:
and when the script file is called to determine that the first notification message is the type associated with the control instruction according to the first notification message, determining the control instruction of the target device corresponding to the first notification message according to the identifier of the first notification message, and generating the data stream according to the control data of the control instruction of the target device and the identifier of the target device.
14. A data processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring first operating data of the equipment; wherein the first operating data has a first data identifier, the first data identifier including at least a device type;
and the analysis module is used for analyzing the first running data according to the equipment type identifier to obtain second running data in a first preset format, and the second running data is used for outputting by an application layer connected with the platform layer.
15. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 9 to 13 when running the computer program.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 9 to 13.
CN202210093103.1A 2022-01-26 2022-01-26 Data processing system, data processing method and device, equipment and medium Pending CN114466044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210093103.1A CN114466044A (en) 2022-01-26 2022-01-26 Data processing system, data processing method and device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210093103.1A CN114466044A (en) 2022-01-26 2022-01-26 Data processing system, data processing method and device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114466044A true CN114466044A (en) 2022-05-10

Family

ID=81412023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210093103.1A Pending CN114466044A (en) 2022-01-26 2022-01-26 Data processing system, data processing method and device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114466044A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170171143A1 (en) * 2015-12-14 2017-06-15 International Business Machines Corporation Method and apparatus for unified message adaptation
CN111083225A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Data processing method and device in Internet of things platform and Internet of things platform
CN112688967A (en) * 2021-03-11 2021-04-20 武汉慧联无限科技有限公司 Internet of things data processing method, device, equipment and storage medium
CN112769873A (en) * 2021-04-07 2021-05-07 武汉慧联无限科技有限公司 Data processing method and device, Internet of things platform and storage medium
CN113138562A (en) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 Terminal control system and terminal control method based on Internet of things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170171143A1 (en) * 2015-12-14 2017-06-15 International Business Machines Corporation Method and apparatus for unified message adaptation
CN111083225A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Data processing method and device in Internet of things platform and Internet of things platform
CN112688967A (en) * 2021-03-11 2021-04-20 武汉慧联无限科技有限公司 Internet of things data processing method, device, equipment and storage medium
CN112769873A (en) * 2021-04-07 2021-05-07 武汉慧联无限科技有限公司 Data processing method and device, Internet of things platform and storage medium
CN113138562A (en) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 Terminal control system and terminal control method based on Internet of things

Similar Documents

Publication Publication Date Title
CN108228444B (en) Test method and device
CN110647471B (en) Interface test case generation method, electronic device and storage medium
CN113268308B (en) Information processing method, device and storage medium
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN108337127B (en) Application performance monitoring method, system, terminal and computer readable storage medium
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN112671897B (en) Access method, device, storage medium, equipment and product of distributed system
CN111782522B (en) Tracking message output method, electronic device and storage medium
CN113377590A (en) Fault diagnosis method and device, vehicle-mounted terminal and medium
CN112769876B (en) Method, device, equipment and medium for acquiring equipment channel information
CN114244821B (en) Data processing method, device, equipment, electronic equipment and storage medium
CN107872363B (en) Data packet loss processing method and system, readable storage medium and electronic device
CN111190761B (en) Log output method and device, storage medium and electronic equipment
CN114466044A (en) Data processing system, data processing method and device, equipment and medium
CN115658500A (en) Vue-based front-end error log uploading method and system in hybrid development
WO2012102727A1 (en) Distributing information
CN111026667B (en) Script execution method and device and electronic equipment
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN114449030A (en) Internet service system, method, electronic equipment and storage medium
CN114244758A (en) Network diagnosis method, storage medium, electronic device and system of android platform
CN113381887A (en) Method and device for processing faults of computing nodes
CN113138861A (en) Message processing method, system and storage medium based on equipment service system
CN113741912A (en) Model management system, method, device and equipment
CN113515461B (en) Communication test method and device, electronic equipment and storage medium
CN114567571B (en) Performance test method, device, electronic equipment and computer readable storage medium

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