CN112199210A - Data processing method and device based on Internet of things, computer equipment and medium - Google Patents

Data processing method and device based on Internet of things, computer equipment and medium Download PDF

Info

Publication number
CN112199210A
CN112199210A CN202010995466.5A CN202010995466A CN112199210A CN 112199210 A CN112199210 A CN 112199210A CN 202010995466 A CN202010995466 A CN 202010995466A CN 112199210 A CN112199210 A CN 112199210A
Authority
CN
China
Prior art keywords
subscription
application
data
subscribed
instruction
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
CN202010995466.5A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010995466.5A priority Critical patent/CN112199210A/en
Publication of CN112199210A publication Critical patent/CN112199210A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a device, computer equipment and a medium based on the Internet of things, wherein the data processing method based on the Internet of things comprises the following steps: establishing a subscription relationship between a subscription application and subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application; and establishing data interaction between the subscribing application and the subscribed device based on the subscription relation. The embodiment of the invention can break the single binding relation applied between the devices and expand the control range of the application layer to the device end, thereby improving the flexibility and expansibility of data processing of the Internet of things and meeting flexible and changeable service requirements.

Description

Data processing method and device based on Internet of things, computer equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of application of the Internet of things, in particular to a data processing method and device based on the Internet of things, computer equipment and a medium.
Background
In the architecture of the platform of the internet of things, the equipment of the internet of things is an important component of the platform of the internet of things. The Internet of things platform can call data of the related equipment and control the related equipment according to the obtained data.
At present, in an application scenario of the internet of things, generally, a single binding relationship exists between a device and an application, that is, a certain type of device is only bound under a certain application a, and there is no interaction relationship between the certain type of device and other applications B, C. Correspondingly, the application can only acquire the data of the device with the binding relationship, and control and operate the device with the binding relationship.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: in an enterprise's practice, data collection and manipulation across applications is often involved. For example, application B wants to acquire viewing and operating rights of device a bound under application a; or the same application has the requirements for managing and collecting data for a plurality of different devices. Most of the current internet of things platforms do not support viewing and operation authorization of equipment in a cross-application mode.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, computer equipment and a medium based on the Internet of things, which are used for improving the flexibility and the expansibility of data processing of the Internet of things and meeting flexible and changeable service requirements.
In a first aspect, an embodiment of the present invention provides a data processing method based on the internet of things, including:
establishing a subscription relationship between a subscription application and subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application;
and establishing data interaction between the subscribing application and the subscribed device based on the subscription relation.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus based on the internet of things, including:
the subscription relation establishing module is used for establishing a subscription relation between the subscription application and the subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application;
and the data interaction module is used for establishing data interaction between the subscription application and the subscribed equipment based on the subscription relation.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method based on the internet of things provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data processing method based on the internet of things provided in any embodiment of the present invention.
According to the data interaction method and device, the data interaction between the subscription application and the subscribed device is established based on the subscription relation between the subscription application and the subscribed device, the problem that the existing Internet of things platform can only process data of the application and the device with the binding relation is solved, the single binding relation between the devices is broken through, the control range of an application layer on a device end is expanded, the flexibility and the expansibility of data processing of the Internet of things are improved, and flexible and variable service requirements are met.
Drawings
Fig. 1 is a flowchart of a data processing method based on the internet of things according to an embodiment of the present invention;
fig. 2 is a flowchart of a data processing method based on the internet of things according to a second embodiment of the present invention;
fig. 3 is a schematic effect diagram of an internet of things platform management application interface according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a target device operation type screening according to a second embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an interface effect of determining a type of a subscription event for a target subscribing device according to a second embodiment of the present invention;
fig. 6 is a schematic diagram illustrating an effect of a selection interface of a target subscription device according to a second embodiment of the present invention;
fig. 7 is a schematic flowchart of data interaction between a subscription application and a subscribed device through a device issuing instruction according to a second embodiment of the present invention;
fig. 8 is a schematic flowchart illustrating a process of performing information interaction between a subscription application and an associated application by issuing instruction data according to a second embodiment of the present invention;
fig. 9 is a schematic flowchart of data interaction between a subscription application and a subscribed device through issuing instruction data according to a second embodiment of the present invention;
fig. 10 is a schematic flowchart of a data interaction between a subscribing application and a subscribed device through a device reporting event according to a second embodiment of the present invention;
fig. 11 is a schematic system architecture diagram of a data processing method of the internet of things according to a second embodiment of the present invention;
fig. 12 is a schematic diagram of a data processing apparatus based on the internet of things according to a third embodiment of the present invention;
fig. 13 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a data processing method based on the internet of things according to an embodiment of the present invention, where the embodiment is applicable to a case where a platform of the internet of things implements data interaction through a subscription relationship between a subscription application and a subscribed device, and the method may be executed by a data processing apparatus based on the internet of things, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a server, as shown in fig. 1, the method includes the following operations:
s110, establishing a subscription relation between a subscription application and subscribed equipment; the subscribed device is an unbound device corresponding to the subscribed application.
The subscription can be that any application establishes an association relationship with an unbound device or other applications. The subscription application may be one that performs data information collection and manipulation on the unbound devices. The application can be internet of things application, namely various applications directly used by a user, such as intelligent control, security, electric meter reading, telemedicine or intelligent agriculture and the like. The application type is not particularly limited in the embodiment of the present invention. The subscribed device may be a device subscribed to by the subscribed application, the device being an unbound device under the subscribed application. So-called unbound devices, i.e. devices and applications, do not establish a binding relationship. Accordingly, the subscription application can collect and operate data information of the subscribed device according to the subscription authority. The subscription relationship may be an association relationship between the subscribing application and the corresponding subscribed device. The association relationship is different from the binding relationship, and only represents that data interaction can be performed between the subscribing application and the subscribed device according to certain authority. That is, the subscribing application has all device operation rights for the binding device with which the binding relationship is established, and the subscribed device with which the subscribing application establishes the subscription relationship has a part of device operation rights, which can be specified when the subscription relationship is established. The Internet of things platform is characterized in that any object is connected with a network through information sensing equipment according to an agreed protocol, and the object performs information exchange and communication through an information transmission medium so as to realize functions of intelligent identification, positioning, tracking, supervision and the like. The Internet of things platform can provide safe and reliable connection communication capacity for equipment, downwards connect mass equipment and support equipment data acquisition and cloud-up; and an Application Programming Interface (API) is provided upwards, and the server issues the command to the equipment end by calling the API, so that remote control is realized. Meanwhile, the Internet of things platform also provides other value-added capabilities such as equipment management, rule engines and the like, and enables various IoT scenes and industry developers. In the embodiment of the invention, if the application performs data interaction on some devices which do not establish a binding relationship with the application, the application needs to be used as a subscription application, and a subscription relationship between the subscription application and a subscribed device can be established through an internet of things platform.
And S120, establishing data interaction between the subscription application and the subscribed device based on the subscription relation. Correspondingly, after the subscription relationship is established between the subscription application and the subscribed device, data interaction can be performed between the subscription application and the subscribed device according to the subscription authority. That is, the subscribing application has an operation right on the subscribed device according to the subscription relationship, the subscribing application can perform data information acquisition operation on the subscribed device, and the subscribed device can feed back data information to the subscribing application according to the subscription relationship.
Therefore, the subscription relation between the subscription application and the subscribed equipment is established, the subscription application can perform data interaction with the subscribed equipment, the limitation that the application can only perform data interaction with the equipment with the binding relation in the traditional Internet of things platform is broken, the data processing of the Internet of things is more flexible, and flexible and variable business requirements are met.
According to the data interaction method and device, the data interaction between the subscription application and the subscribed device is established based on the subscription relation between the subscription application and the subscribed device, the problem that the existing Internet of things platform can only process data of the application and the device with the binding relation is solved, the single binding relation between the devices is broken through, the control range of an application layer on a device end is expanded, the flexibility and the expansibility of data processing of the Internet of things are improved, and flexible and variable service requirements are met.
Example two
Fig. 2 is a flowchart of a data processing method based on the internet of things according to a second embodiment of the present invention, which is embodied on the basis of the foregoing embodiment, and in this embodiment, a specific optional implementation is provided for establishing data interaction between the subscription application and the subscribed device based on the subscription relationship, and accordingly, as shown in fig. 2, the method includes the following operations:
s210, establishing a subscription relationship between the subscription application and the subscribed equipment; the subscribed device is an unbound device corresponding to the subscribed application.
In an optional embodiment of the present invention, establishing a subscription relationship between the subscribing application and the subscribed device may include: determining a subscribing application and a subscribed application; screening a target device operation type from a device operation type set included by the subscribed application; and establishing a subscription relation between the subscription application and the operation type of the target equipment.
The subscribed application may be an application having a binding relationship with a subscribed device corresponding to the subscribing application. The device operation type set may be an operation type set for performing different operation attribute types on the device, and the device operation type set may include at least one operation attribute type, where each operation attribute type is associated with multiple devices. For example, assuming that the operation attribute type is "on temperature monitoring", the operation attribute type may turn on a temperature monitoring function for all devices capable of performing temperature monitoring. That is, a plurality of devices that can perform temperature monitoring are associated with the operation attribute type of "on temperature monitoring". The target device operation type may be one or more operation attribute types that are filtered out of a set of device operation types.
Optionally, when the subscription relationship between the subscribing application and the subscribed device is established, an optional manner is to first determine the subscribing application and the subscribed device. And then screening the target device operation type from the device operation type set included by the subscribed application to establish a subscription relationship between the subscribing application and the target device operation type. When a subscription relationship exists between the subscription application and the operation type of the target device, the subscription relationship is equivalent to the subscription relationship existing between the subscription application and the device associated with the operation type of the target device.
Fig. 3 is a schematic effect diagram of an internet of things platform management application interface according to a second embodiment of the present invention. In a specific example, when the subscription relationship is established through the internet of things platform, an "application subscription" function of the internet of things platform management application interface may be triggered, and an application subscription new interface obtained after the triggering is shown in fig. 3. In the application subscription new adding interface, a subscription application and a subscribed application can be selected autonomously. Assume that the subscribing application is application a and the subscribed application is application B. The device specification is also a device operation type set, and correspondingly, all the specifications may be all the device operation types included in the device operation type set included in the application B. The custom specification may be one or more device operation types selected from a set of device operation types. When all the specifications are selected, the application A subscribes to the whole device operation type set included by the application B. Accordingly, the devices associated under the whole set of device operation types become subscribed devices of the application a.
Fig. 4 is a schematic diagram illustrating a target device operation type screening according to a second embodiment of the present invention. As shown in fig. 4, the subscribing application is application a and the subscribed application is application B. It is assumed that the device operation type set included in the application B includes a data read type, a data delete type, and a data change type. And if the operation type of the target equipment of the application A needing to subscribe the application B is the data reading type, selecting the data reading type through the custom specification. If the operation type of the target device is the data change type, the application A screens the data change type from the device operation type set of the application B as the operation type of the target device, and then the application A establishes a subscription relationship with the selected operation type of the target device. If the operation type of the target device is data change, the application A screens out the data change type from the device operation type set of the application B as the operation type of the target device, and then the subscription application A establishes a subscription relationship with the selected operation type of the target device.
And S220, determining the target subscription equipment according to the operation type of the target equipment.
The target subscribing device may be a device capable of performing a target device operation type operation, and the target subscribing device may be one or more devices.
Correspondingly, after the operation type of the target device is determined, the device associated with the operation type of the target device can be further determined according to the operation type of the target device, and the target subscription device is determined from the associated devices as the subscribed device.
For example, assume that the subscribed application B has three bound devices, B1, B2, and B3. The devices capable of performing data reading type operation are b1 and b2, the devices capable of performing data deleting type operation are b1, b2 and b3, and the devices capable of performing data changing type operation are b2 and b 3. If the operation type of the target device is the data reading type, since the devices capable of performing the data reading type operation are b1 and b2, it may be determined that the target subscribing device may be b1 and/or b2 according to the operation type of the target device.
And S230, establishing a subscription relation between the subscription application and the target subscription equipment. Specifically, if a specific specified device needs to be subscribed, the target device operation type may be screened from the device operation type set included in the subscribed application, and then the target subscribed device is determined according to the target device operation type, so as to establish a subscription relationship between the subscription application and the target subscribed device.
For example, assuming that the application a is a subscribing application, the device B1 is a target subscribing device, and the application B is a subscribed application, a specific process of establishing a subscription relationship between the application a and the device B1 may include: and screening out the operation type of the target device from the operation type set of the devices included in the application B. And when the operation type of the target equipment is the data reading type, establishing a subscription relation between the application A and the data reading type. Since the devices capable of performing the data reading type operation are b1 and b2, that is, the target subscribing device can be determined to be b1 and/or b2 according to the operation type of the target device. A subscription relationship between application a and device b1 may be established.
Accordingly, S230 may specifically include the following operations:
s231, determining the type of the subscription event matched between the subscription application and the target subscription equipment.
The event may be one of the functional models of the device or an event during the running of the device, and the event may generally include notification information that needs to be sensed and processed externally, or may include a plurality of output parameters. For example, information on the completion of a certain task, the temperature at which the device has failed or has been alerted, etc. Events may be subscribed to and reported. The subscription event type may be an event type for which the subscription application needs to have an operation right to the target subscription device.
Specifically, the internet of things platform may first determine a subscription event type that the subscription application matches the target subscription device. That is, the operation authority of the subscription application on the target subscription device can be set through the internet of things platform.
S232, establishing a subscription relationship between the subscription application and the target subscription equipment according to the subscription event type.
The subscription event type may include, but is not limited to, a device alarm event, a device attachment upload event, a device attachment download event, a device status reporting event, a device location reporting event, and a device activation event.
The device alarm event may be an alarm event autonomously reported by the target subscription device. The device attachment upload event may be a device attachment upload event of the target subscribing device. The device accessory download event can be a device accessory download event of the target subscribing device. The device state reporting event may be a device state reporting event of the target subscribing device. The device location reporting event may be a device location reporting event of the target subscribing device. The device activation event may be an activation event of the target subscribing device. That is, whatever information the device may produce may act upon to singulate the subscription event type for interaction with the subscription application.
For example, the subscription event type may specifically include the following event types:
the device reports the message event: the message reported by the device may include custom data and physical model data (including attribute reporting, event reporting, attribute setting response, and service invocation response) reported by the device. Device state change notification event: when the state of the equipment under the product changes, the system sends out a notification message. Such as device offline messages. Device lifecycle change event: including notification messages for device creation, deletion, disabling and enabling, among other flexible notifications. Reporting events of the object model historical data: namely, the device reports the attribute and the event history data. Firmware upgrade status notification event: namely reporting the notification messages of success or failure of firmware upgrade. The gateway discovers that the sub-equipment reports events: the gateway can report the discovered information of the sub-devices to the platform of the Internet of things, and the event needs to be supported by an application program on the gateway and belongs to a specific message type of a gateway product. Device topology relationship change events: refers to the topological relation establishment and release messages between the kid device and the gateway. The gateway product specific message type.
Correspondingly, after the internet of things platform determines the subscription event type matched with the target subscription device, the subscription relationship between the subscription application and the target subscription device is established according to the subscription event type. It is understood that the subscribing application may subscribe to all event types of the subscribed device, or may subscribe to only a portion of event types of the subscribed device. That is, the subscribing application may subscribe to all the operation permissions of the subscribed device, or may subscribe to only part of the operation permissions of the subscribed device. Correspondingly, after the subscription event type to which the subscription application needs to subscribe is determined, the association relationship between the subscription application and the target subscription device can be established according to the subscription event type.
For example, assuming that the type of the subscription event determined by the subscription application and the target subscription device is a device state reporting event, that is, the subscription application only has an operation right for the device state reporting event of the subscribed device, an association relationship between the subscription application and the target subscription device may be established according to the device state reporting event. When the subscribed device needs to report the device state to the bound application, the device state can be reported to the subscribed application at the same time.
Fig. 5 is a schematic diagram illustrating an interface effect of determining a type of a subscription event for a target subscribing device according to a second embodiment of the present invention. As shown in fig. 5, if the target subscribing device that needs to establish a subscription relationship with the subscribing application is device b1, device b1 is selected as the target subscribing device by selecting the custom device. As shown in fig. 5, after the custom device is selected, the virtual function key of the add device may be triggered, and then the selection interface of the target subscription device shown in fig. 6 pops up. Fig. 6 is a schematic diagram illustrating an effect of a selection interface of a target subscription device according to a second embodiment of the present invention. The target subscribing device can be searched out through the keyword. The keyword may be a target subscription device ID or a target subscription device name. After the ID or the name of the target subscription device is input, the query can be clicked, and the target subscription device is selected in the query list. For example, the ID of device b1 may be searched, adding device b1 as the target subscribing device in the query list. All event types under the event category are selected if a subscription to all subscribed event types is required for the target subscribing device b 1. Optionally, the target subscribing device can be one or more. The custom event type under the event category is selected if a partial subscription to the event type is required for the target subscribing device b 1. One or more of the custom event types may be selected. If all the devices are selected to have a certain subscription event type, the fact that the certain subscription event type of all the devices is subscribed by the subscription application is indicated.
S240, determining an instruction issuing type matched with the subscription application and the subscription event type; the instruction issuing type comprises an equipment state obtaining instruction, an equipment information obtaining instruction and an equipment control instruction.
The device state obtaining instruction may be used to obtain a device state, where the device state may be, for example, a state of turning on the device, running the device, turning off the device, or whether the device is running normally. The device information obtaining instruction may be used to obtain device information, and the device information may be, for example, device operation information, or device specific parameters. The embodiment of the present invention does not specifically limit the device status and the specific content of the device information. The device control instruction is used to perform function control on the device, such as controlling and adjusting the temperature or the turn-on time of the device, and the embodiment of the present invention also does not limit the specific type of the device function control.
Specifically, after the subscription relationship between the subscription application and the target subscription device is established according to the subscription event type, the instruction issuing type matching the subscription application and the subscription event type may be determined. For example, if the determined instruction issuing type is the device state acquisition instruction, the subscribing application and the subscribed device can only perform data interaction through the device state acquisition instruction. If the determined instruction issuing type is an equipment control instruction, the subscription application can control one or more functions of the target subscription equipment through the equipment control instruction.
And S250, establishing data interaction between the subscription application and the subscribed device based on the subscription relation.
Illustratively, the subscribing application establishes a subscription relationship with the subscribed device, obtains device data in the subscribed device matching with the instruction issuing type according to the instruction issuing type, and the subscribed device sends the device data matching with the instruction issuing type to the subscribing application, that is, completes data interaction between the subscribing application and the subscribed device.
It should be noted that the subscribing application can perform data interaction with all data types generated by the subscribed device based on the subscription relationship. For example, the subscription application may view device information of the subscribed device, and may specifically view device basic information, which includes device certificate information, firmware information, extension information, tag information, and other information. The subscription application may also view device data of the subscribed device, such as viewing a current attribute value reported by the device, viewing an event record reported by the device, viewing a device service invocation record, and the like. The subscription application may also view a device log of the subscribed device, such as a cloud run log, a device local log, and the like. The subscribing application may also view the device groupings of the subscribed devices, specifically may view grouping information for the devices, and may also add the device to the groupings to add the device to existing groupings. In addition to the data interaction function for viewing data, the method and the device for viewing data can also achieve device function control, control conditions of the associated application of the receiving device on the device, data actively reported by the receiving device, and the like.
In an optional embodiment of the present invention, establishing data interaction between the subscribing application and the subscribed device based on the subscription relationship may include: receiving a device issuing instruction sent by a subscription application; and issuing the issuing equipment instruction to the subscribed equipment.
The device issuing instruction may be an instruction issued by the subscription application to the subscribed device. For example, the issued device command may be a device status acquisition command and/or a device information acquisition command.
In an alternative embodiment, the data interaction scenario between the subscribing application and the subscribed device may be: and the Internet of things platform receives the equipment issuing instruction sent by the subscription application, and then issues the equipment issuing instruction to the subscribed equipment. For example, if the device issuing instruction sent by the subscription application is a device state obtaining instruction, the device state obtaining instruction is issued to the subscribed device through the internet of things platform.
In this embodiment of the present invention, before issuing the issuing device instruction to the subscribed device, the method may further include: determining an application subscription rule matched with the subscription application; performing authority verification on the issued device instruction according to the application subscription rule; issuing the issuing device instruction to the subscribed device may include: and if the permission check is determined to pass, issuing a device instruction to the subscribed device.
The subscription rule may be a subscription relationship between the subscription application and the subscribed device, and the permission check may be to determine whether an operation permission exists for the subscribed device in an equipment issuing instruction sent by the subscription application according to the subscription rule.
Specifically, after receiving an equipment issuing instruction sent by a subscription application, the internet of things platform performs authority verification on the operation authority of the equipment issuing instruction according to a subscription relationship, namely a subscription rule, between the subscription application and the subscribed equipment. If the authority verification is confirmed to pass, issuing a device instruction to the subscribed device; otherwise, determining that the issuing equipment instruction has no operation authority on the subscribed equipment, and refusing to issue the issuing equipment instruction to the subscribed equipment.
Fig. 7 is a schematic flowchart of data interaction between a subscribing application and a subscribed device through a device issuing instruction according to a second embodiment of the present invention. In a specific example, as shown in fig. 7, it is assumed that the subscribing application is application a and the subscribed device is device b 1. One of the data interaction scenarios of application a and device b1 may be: the internet of things platform receives an issuing device instruction sent by an application A through an application programming interface (Restful API, restAPI, a rule to be followed when establishing the API) of a Rest architecture specification, and then performs permission verification on the issuing device instruction according to subscription rules of a subscription application and a subscribed device, wherein the subscription rules of the subscription application and the subscribed device can be simply referred to as configuration rules. Assuming that the issued device command is a device state acquisition command, if the device b1 is the target subscription device subscribed by the application a and the application a subscribes to the device b1 state acquisition event, it indicates that the permission check is passed. At this time, the internet of things platform may issue the issued device instruction to an open-source internet of things MQTT Message server (inlang/Enterprise/Elastic MQTT Broker, EMQ) through Message Queue Telemetry Transport (MQTT), so as to issue the issued device instruction to the subscribed device b1 through EMQ. It can be understood that, after receiving the issued device command, the device b1 may respond to the issued device command and feed back the response data to the application a, thereby completing the complete data interaction process between the application a and the device b 1.
In an optional embodiment of the present invention, establishing data interaction between the subscribing application and the subscribed device based on the subscription relationship may include: receiving issuing instruction data of the associated application of the subscribed equipment; and feeding back the issued instruction data to the subscription application.
Wherein, the associated application can be an application having a binding relationship with the subscribed device. The issuing instruction data may be instruction data sent by the associated application to the subscribed device, and may include, but is not limited to, issuing instruction operation data and issuing instruction response data. The issuing instruction operation data may be instruction operation data that is sent to the binding device by the associated application, and the issuing instruction operation data may include an acquisition device state acquisition instruction and/or a device information acquisition instruction, and the like. The issuing instruction response data may be instruction response data fed back to the associated application by the binding device for the issuing instruction operation data, that is, an execution result of the subscribed device on the issuing instruction data of the associated application.
Correspondingly, the internet of things platform can receive the issuing instruction operation data sent by the associated application and feed the issuing instruction operation data back to the subscription application with the subscription relation with the subscribed equipment. Meanwhile, after the subscribed device generates issuing instruction response data according to the issuing instruction operation data and sends the issuing instruction response data to the Internet of things platform, the Internet of things platform can also feed the issuing instruction response data back to the subscription application. That is, as long as the subscribing application has the corresponding authority, the data interaction condition between the associated application and the subscribed device can be obtained through the internet of things platform.
Fig. 8 is a schematic flowchart of a process of performing information interaction between a subscription application and an associated application by issuing instruction data according to a second embodiment of the present invention. As shown in fig. 8, the internet of things platform receives the issue instruction data sent by the application B through RestAPI, and the outbound handler in the internet of things platform sends the issue instruction data (i.e., the instruction operation message in fig. 8) to the application a through the subscription rule. The outbound processor can be a module for sending messages to the outside by the platform of the internet of things. The issuing instruction data sent by the internet of things platform to the application A can be issuing instruction operation data sent by the application B to the internet of things platform and issuing instruction response data fed back by the subscribed equipment to the issuing instruction operation data. And simultaneously, the Internet of things platform feeds back the order issuing response data fed back by the subscribed equipment aiming at the order issuing data of the application B to the application B.
In this embodiment of the present invention, if the issue instruction data is issue instruction response data, before feeding back the issue instruction data to the subscription application, the method may further include: performing data filtering processing on the issued instruction response data to obtain filtering instruction response data; determining target instruction response data according to the application subscription rule and the filtering instruction response data; and feeding back the target instruction response data to the subscription application according to the data communication protocol.
The data filtering process can be a filtering operation of the internet of things platform for carrying out error data or invalid data on the issued instruction response data. The filtering instruction response data may be data obtained by performing data filtering processing on the issued instruction response data. The target order response data may be filter order response data that matches the subscription rules. The data communication protocol may be a set of conventions that are set forth to ensure efficient and reliable communication between two parties communicating in the data communication network. These conventions may include the format, sequence and rate of data, the acknowledgement or rejection of data transmission, error detection, retransmission control and inquiry operations, and the embodiments of the present invention are not limited to the content of the data communication protocol.
In an alternative embodiment, one data interaction scenario between the subscribing application and the subscribed device may be: the Internet of things platform receives issuing instruction data sent by the associated application of the subscribed equipment, the subscribed equipment responds to the issuing instruction, data filtering processing is carried out on the instruction response data of the subscribed equipment to obtain filtering instruction response data, and the filtering instruction response data matched with the subscription rule, namely target instruction response data, is determined. Then, the internet of things platform can feed the target instruction response data back to the subscription application according to the data communication protocol and the subscription rule.
Fig. 9 is a schematic flowchart of data interaction between a subscription application and a subscribed device through issuing instruction data according to a second embodiment of the present invention. As shown in fig. 9, it is assumed that the subscribing application is application a, the associated application is application B, and the subscribed device is device B1. And the Internet of things platform receives the issuing instruction operation data sent by the application B through RestAPI and sends the issuing instruction operation data to the device B1 through EMQ. When the device b1 generates issuing instruction response data for the issuing instruction operation data, the issuing instruction response data is sent to the internet of things platform through the EMQ. And after receiving the issued instruction response data, the Internet of things platform processes the issued instruction response data by using the outbound processor. Specifically, the outbound processor may perform data filtering processing on the issued instruction response data to obtain filtered instruction response data. And performing data weight distribution on the response data of the filtering instruction. Data distribution refers to that data which can be accessed or inquired by applications with different rights is different. The data right distribution process may determine which of the issued instruction response data is data for which the subscription application has access or query authority according to a subscription rule, that is, a configuration rule shown in fig. 9, and then send the data for which the subscription application has access or query authority to the subscription application. Assuming that a subscription relationship exists between the application a and the device b1, and the application a has all operation rights to the device b1, it is determined that the rights check is passed, and the application a has an access right to the issued command response data sent by the device b 1. The entire filter instruction response data can be used as the target instruction response data. Assuming that a subscription relationship exists between the application a and the device b1, but the application a has a partial operation authority on the device b1, at this time, the authority check is performed on the configuration rule of the application a, when part or all of the data in the filter instruction response data matches the subscription event type of the application a on the device b1, it is determined that the authority check passes, and partial data matching the subscription event type of the application a on the device b1 is screened out from the filter instruction response data as target instruction response data. After the target instruction response data is determined, the internet of things platform can convert the data format of the target instruction response data according to a data communication protocol, wherein the data communication protocol is short for data protocol. Then, the target instruction response data subjected to the data format conversion is fed back to the application a. Because the application B and the device B1 are in a binding relationship, and the instruction response data is corresponding data of the instruction issuing operation data sent by the application B, the internet of things platform can directly and completely send the filtering instruction response data to the application B through data format conversion.
In an optional embodiment of the present invention, establishing data interaction between the subscribing application and the subscribed device based on the subscription relationship may include: receiving a device reporting event sent by a subscribed device; and feeding back the event reported by the equipment to the subscription application.
The device reporting event may be an event reported by the subscribed device to the subscribing application. For example, the device reporting event may include a device alarm event, a device status reporting event, a device location reporting event, and the like.
Correspondingly, the internet of things platform can receive the equipment reporting event sent by the subscribed equipment, and then feed back the equipment reporting event to the subscription application according to the subscription rule.
In this embodiment of the present invention, before feeding back the event reported by the device to the subscription application, the method may further include: performing data filtering processing on the equipment reporting event to obtain filtered reporting event data; determining target reporting event data according to the application subscription rule and the filtered reporting event data; and feeding back the target reported event data to the subscription application according to the data communication protocol.
The target reporting event data may be filtered reporting event data matched with the subscription rule.
In an alternative embodiment, one data interaction scenario between the subscribing application and the subscribed device may be: and the Internet of things platform receives the equipment reporting event sent by the subscribed equipment, performs data filtering processing on the equipment reporting event to obtain filtered reporting event data, and feeds back the filtered reporting event data matched with the subscription rule, namely the target reporting event data to the subscription application through a data communication protocol.
Fig. 10 is a schematic flowchart of a data interaction between a subscribing application and a subscribed device through a device reporting event according to a second embodiment of the present invention. As shown in fig. 10, assuming that the subscribed application is application a, device b1 is the target subscribing device to which application a subscribes. The device b1 sends the device reporting event to the application a, and the specific process may include: the device b1 sends the device reporting event to the EMQ, the EMQ sends the device reporting event to the Internet of things platform through the MQTT protocol, and the Internet of things platform performs data filtering processing on the device reporting event through the outbound processor to obtain filtered reporting event data. And then, performing data weight distribution on the filtered reported event data. Since the application a has the access right of the filtered reported event data, namely the target reported event data, matched with the subscription rule to the device b1, it is determined that the right check is passed, and further, the data format conversion is performed on the target reported event data according to the data communication protocol, and the conversion result is fed back to the subscription application.
Fig. 11 is a schematic system architecture diagram of a data processing method of the internet of things according to a second embodiment of the present invention. As shown in fig. 11, the application layer calls the RestAPI interface to communicate with the internet of things platform, the internet of things platform communicates with the EMQ through MQTT, and the device side can receive the command data issued by the application layer, issue the device command, or send the device report event to the application layer through the EMQ. The Internet of things platform is used as a transfer station for connecting communication, and can distribute authority for issuing instruction data, issuing equipment instructions and reporting events by equipment for applications and equipment related to subscription according to subscription rules. And the Internet of things platform performs data filtering and data distribution on the data fed back by the equipment terminal according to a subscription rule, namely a configuration rule, and finally feeds back the data to the application layer. The EMQ subscription topic may be multiple topics subscribed to the server by one device through the EMQ. The subscription subject may be issuing instruction data received by the device terminal or information corresponding to the issuing device instruction, or may be different device reporting events sent by the device terminal.
Therefore, by establishing the subscription relationship between the subscription application and the subscribed device, the subscription application can perform data interaction with the subscribed device, and the authority range of the application layer is expanded, wherein the authority range can include authorization between two applications, authorization between different applications of the same user, and authorization between different applications of the two users. The expansion of the application layer authority range enables the data processing of the Internet of things to be more flexible, so that flexible and changeable service requirements are met.
According to the embodiment of the invention, the subscription application distributes the equipment authority of the subscribed equipment according to the subscription rule, and the subscription application has partial operation authority on the subscribed equipment, such as equipment command issuing, response data checking of the issuing command, operation type screening and checking of the target equipment, equipment reporting events and the like. The problem that the existing Internet of things platform can only process data of applications and equipment with binding relations is solved, so that the single binding relation applied to the equipment is broken, and the control range of an application layer to an equipment end is expanded. The method and the device have the advantages that cross-application equipment operation, cross-application checking of issued instruction data sent to the equipment, cross-application uploading of reported event data by the equipment, subscription of checking and operation permission of specified equipment, subscription of specified equipment-side specified reported event data and the like are achieved, so that flexibility and expansibility of data processing of the Internet of things are improved, flexible and changeable business requirements are met, processing flow effects are enabled to be more convenient and faster, safety is higher, and cost is lower under the condition that the application side is changed slightly.
EXAMPLE III
Fig. 12 is a schematic view of a data processing apparatus based on the internet of things according to a third embodiment of the present invention, and as shown in fig. 12, the apparatus includes: a subscription relationship establishing module 310 and a data interaction module 320, wherein:
a subscription relationship establishing module 310, configured to establish a subscription relationship between a subscribing application and a subscribed device; the subscribed device is an unbound device corresponding to the subscription application;
a data interaction module 320, configured to establish data interaction between the subscribing application and the subscribed device based on the subscription relationship.
According to the data interaction method and device, the data interaction between the subscription application and the subscribed device is established based on the subscription relation between the subscription application and the subscribed device, the problem that the existing Internet of things platform can only process data of the application and the device with the binding relation is solved, the single binding relation between the devices is broken through, the control range of an application layer on a device end is expanded, the flexibility and the expansibility of data processing of the Internet of things are improved, and flexible and variable service requirements are met.
Optionally, the subscription relationship establishing module 310 is specifically configured to determine the subscribing application and the subscribed application; screening a target device operation type from a device operation type set included by the subscribed application; and establishing a subscription relation between the subscription application and the operation type of the target equipment.
Optionally, the subscription relationship establishing module 310 is further configured to determine a target subscription device according to the operation type of the target device; and establishing a subscription relation between the subscription application and the target subscription equipment.
Optionally, the subscription relationship establishing module is specifically configured to determine a type of the subscription event that the subscription application is matched with the target subscription device; establishing a subscription relationship between the subscription application and the target subscription equipment according to the type of the subscription event; the subscription event types comprise a device alarm event, a device accessory uploading event, a device accessory downloading event, a device state reporting event, a device position reporting event and a device activation event.
Optionally, the apparatus further comprises: the order issuing type module is used for determining an order issuing type matched with the subscription event type by the subscription application; the instruction issuing type comprises an equipment state obtaining instruction, an equipment information obtaining instruction and an equipment control instruction.
Optionally, the data interaction module 320 is configured to receive a device issuing instruction sent by the subscription application; and issuing the issuing equipment instruction to the subscribed equipment.
Optionally, the data interaction module 320 is specifically configured to determine an application subscription rule matched with the subscription application; performing authority verification on the issuing equipment instruction according to the application subscription rule; and if the authority verification is determined to pass, issuing the issuing equipment instruction to the subscribed equipment.
Optionally, the data interaction module 320 is specifically configured to receive issuing instruction data of an application associated with the subscribed device; and feeding back the issuing instruction data to the subscription application.
Optionally, the issued instruction data includes issued instruction operation data and issued instruction response data.
Optionally, if the issued instruction data is issued instruction response data, the data interaction module 320 may be further specifically configured to perform data filtering processing on the instruction response data to obtain filtered instruction response data; determining target instruction response data according to the application subscription rule and the filtering instruction response data; and feeding back the target instruction response data to the subscription application according to a data communication protocol.
Optionally, the data interaction module 320 is specifically configured to receive a device reporting event sent by the subscribed device; and feeding back the event reported by the equipment to the subscription application.
Optionally, the data interaction module 320 is specifically configured to perform data filtering processing on the device reporting event, so as to obtain filtered reporting event data; determining target reporting event data according to the application subscription rule and the filtered reporting event data; and feeding back the target reporting event data to the subscription application according to a data communication protocol.
The data processing device of the Internet of things can execute the data processing method of the Internet of things provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a data processing method of the internet of things provided in any embodiment of the present invention.
Since the data processing device of the internet of things described above is a device capable of executing the data processing method of the internet of things in the embodiment of the present invention, based on the data processing method of the internet of things described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation of the data processing device of the internet of things in the embodiment and various variations thereof, so that a detailed description of how the data processing device of the internet of things realizes the data processing method of the internet of things in the embodiment of the present invention is not given here. As long as those skilled in the art implement the device used in the data processing method of the internet of things in the embodiment of the present invention, the scope of the present application is intended to be protected.
Example four
Fig. 13 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 13 illustrates a block diagram of a computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 13 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in fig. 13, the computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 413, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processor 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The computer device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 13, commonly referred to as a "hard drive"). Although not shown in FIG. 13, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 426 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the computer device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) through Network adapter 420. As shown, network adapter 420 communicates with the other modules of computer device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 416 executes programs stored in the storage device 428 to perform various functional applications and data processing, for example, implement the data processing method based on the internet of things provided by the above embodiments of the present invention: establishing a subscription relationship between a subscription application and subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application; and establishing data interaction between the subscribing application and the subscribed device based on the subscription relation.
According to the technical scheme of the embodiment, a subscription relation between a subscription application and subscribed equipment is established through a data processing method based on the Internet of things; the subscribed device is an unbound device corresponding to the subscription application; and establishing data interaction between the subscribing application and the subscribed device based on the subscription relation. The problem that the existing Internet of things platform can only process data of applications and equipment with binding relations is solved, so that the single binding relation among the equipment is broken through, the control range of an application layer on the equipment end is expanded, the flexibility and the expansibility of the Internet of things data processing are improved, and flexible and changeable service requirements are met.
EXAMPLE five
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is used to execute the data processing method based on the internet of things according to any one of the above embodiments of the present invention when executed by a computer processor: establishing a subscription relationship between a subscription application and subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application; and establishing data interaction between the subscribing application and the subscribed device based on the subscription relation.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A data processing method based on the Internet of things is characterized by being applied to a platform of the Internet of things and comprising the following steps:
establishing a subscription relationship between a subscription application and subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application;
and establishing data interaction between the subscribing application and the subscribed device based on the subscription relation.
2. The method of claim 1, wherein establishing the subscription relationship between the subscribing application and the subscribed device comprises:
determining the subscribing application and a subscribed application;
screening a target device operation type from a device operation type set included by the subscribed application;
and establishing a subscription relation between the subscription application and the operation type of the target equipment.
3. The method of claim 2, further comprising, after the establishing the subscription relationship between the subscribing application and the target device operation type:
determining target subscription equipment according to the operation type of the target equipment;
and establishing a subscription relation between the subscription application and the target subscription equipment.
4. The method of claim 3, wherein the establishing the subscription relationship between the subscribing application and the target subscribing device comprises:
determining a subscription event type matched by the subscription application and the target subscription equipment;
establishing a subscription relationship between the subscription application and the target subscription equipment according to the type of the subscription event;
the subscription event types comprise a device alarm event, a device accessory uploading event, a device accessory downloading event, a device state reporting event, a device position reporting event and a device activation event.
5. The method according to claim 4, further comprising, after the establishing the subscription relationship between the subscribing application and the target subscribing device according to the subscription event type:
determining an instruction issuing type matched with the subscription event type by the subscription application;
the instruction issuing type comprises an equipment state obtaining instruction, an equipment information obtaining instruction and an equipment control instruction.
6. The method of claim 1, wherein establishing the data interaction between the subscribing application and the subscribed device based on the subscription relationship comprises:
receiving a device issuing instruction sent by the subscription application;
and issuing the issuing equipment instruction to the subscribed equipment.
7. The method of claim 6, wherein before issuing the issuing device instruction to the subscribed device, further comprising:
determining an application subscription rule matched with the subscription application;
performing authority verification on the issuing equipment instruction according to the application subscription rule;
the issuing the device instruction to the subscribed device includes:
and if the authority verification is determined to pass, issuing the issuing equipment instruction to the subscribed equipment.
8. The method of claim 1, wherein establishing the data interaction between the subscribing application and the subscribed device based on the subscription relationship comprises:
receiving issuing instruction data of the associated application of the subscribed equipment;
and feeding back the issuing instruction data to the subscription application.
9. The method of claim 8, wherein the issued instruction data includes issued instruction operation data and issued instruction response data.
10. The method according to claim 9, wherein if the issuing instruction data is issuing instruction response data, before feeding back the issuing instruction data to the subscribed application, further comprising:
performing data filtering processing on the issued instruction response data to obtain filtering instruction response data;
determining target instruction response data according to the application subscription rule and the filtering instruction response data;
and feeding back the target instruction response data to the subscription application according to a data communication protocol.
11. The method of claim 1, wherein establishing the data interaction between the subscribing application and the subscribed device based on the subscription relationship comprises:
receiving a device reporting event sent by the subscribed device;
and feeding back the event reported by the equipment to the subscription application.
12. The method of claim 11, wherein before the feeding back the device reporting event to the subscribing application, further comprising:
performing data filtering processing on the equipment reporting event to obtain filtered reporting event data;
determining target reporting event data according to the application subscription rule and the filtered reporting event data;
and feeding back the target reporting event data to the subscription application according to a data communication protocol.
13. The utility model provides a data processing apparatus based on thing networking which characterized in that disposes in thing networking platform, includes:
the subscription relation establishing module is used for establishing a subscription relation between the subscription application and the subscribed equipment; the subscribed device is an unbound device corresponding to the subscription application;
and the data interaction module is used for establishing data interaction between the subscription application and the subscribed equipment based on the subscription relation.
14. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the internet of things based data processing method of any of claims 1-12.
15. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the internet of things based data processing method of any of claims 1-12.
CN202010995466.5A 2020-09-21 2020-09-21 Data processing method and device based on Internet of things, computer equipment and medium Pending CN112199210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010995466.5A CN112199210A (en) 2020-09-21 2020-09-21 Data processing method and device based on Internet of things, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010995466.5A CN112199210A (en) 2020-09-21 2020-09-21 Data processing method and device based on Internet of things, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN112199210A true CN112199210A (en) 2021-01-08

Family

ID=74016154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010995466.5A Pending CN112199210A (en) 2020-09-21 2020-09-21 Data processing method and device based on Internet of things, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN112199210A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596082A (en) * 2021-06-21 2021-11-02 青岛海尔科技有限公司 Method and system for determining equipment data and electronic device
CN114244844A (en) * 2021-11-23 2022-03-25 深圳市优必选科技股份有限公司 Multimedia data transmission method, terminal device and storage medium
US11336730B1 (en) * 2020-11-13 2022-05-17 Zhejiang Gongshang University MQTT-based distribution internet of things system and method thereof
CN114679417A (en) * 2022-03-14 2022-06-28 深圳元戎启行科技有限公司 Vehicle-mounted data distribution method, system and device and readable storage medium
CN115460211A (en) * 2021-06-07 2022-12-09 中移物联网有限公司 Information interaction method and device
CN115834735A (en) * 2021-09-17 2023-03-21 青岛海尔科技有限公司 Communication method, device, medium and product between cloud and Internet of things equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260479A (en) * 2015-11-10 2016-01-20 南京国电南自美卓控制系统有限公司 observer pattern-based real-time database real time data publishing method
CN105792145A (en) * 2014-12-23 2016-07-20 上海粱江通信系统股份有限公司 Short message subscription service type centralized management and control system
CN108712485A (en) * 2018-05-10 2018-10-26 海信集团有限公司 A kind of resource subscription method and apparatus of internet of things equipment
CN109995788A (en) * 2019-04-10 2019-07-09 华夏天信(北京)智能低碳技术研究院有限公司 A kind of equipment publication based on RED-MOS industry Internet of Things operating system and subscription design method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792145A (en) * 2014-12-23 2016-07-20 上海粱江通信系统股份有限公司 Short message subscription service type centralized management and control system
CN105260479A (en) * 2015-11-10 2016-01-20 南京国电南自美卓控制系统有限公司 observer pattern-based real-time database real time data publishing method
CN108712485A (en) * 2018-05-10 2018-10-26 海信集团有限公司 A kind of resource subscription method and apparatus of internet of things equipment
CN109995788A (en) * 2019-04-10 2019-07-09 华夏天信(北京)智能低碳技术研究院有限公司 A kind of equipment publication based on RED-MOS industry Internet of Things operating system and subscription design method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11336730B1 (en) * 2020-11-13 2022-05-17 Zhejiang Gongshang University MQTT-based distribution internet of things system and method thereof
CN115460211A (en) * 2021-06-07 2022-12-09 中移物联网有限公司 Information interaction method and device
CN113596082A (en) * 2021-06-21 2021-11-02 青岛海尔科技有限公司 Method and system for determining equipment data and electronic device
CN115834735A (en) * 2021-09-17 2023-03-21 青岛海尔科技有限公司 Communication method, device, medium and product between cloud and Internet of things equipment
WO2023040350A1 (en) * 2021-09-17 2023-03-23 青岛海尔科技有限公司 Communication method and apparatus between cloud and internet-of-things device, and medium and product
CN114244844A (en) * 2021-11-23 2022-03-25 深圳市优必选科技股份有限公司 Multimedia data transmission method, terminal device and storage medium
CN114244844B (en) * 2021-11-23 2023-10-24 深圳市优必选科技股份有限公司 Multimedia data transmission method, terminal equipment and storage medium
CN114679417A (en) * 2022-03-14 2022-06-28 深圳元戎启行科技有限公司 Vehicle-mounted data distribution method, system and device and readable storage medium

Similar Documents

Publication Publication Date Title
CN112199210A (en) Data processing method and device based on Internet of things, computer equipment and medium
US20230319534A1 (en) Cross-resource subscription for m2m service layer
US11055273B1 (en) Software container event monitoring systems
CN111600952B (en) Scene pushing method, scene pushing execution device, terminal, server and scene pushing system
US7698392B2 (en) Method and system for establishing a user-friendly data transfer service application executing within a heterogeneous distributed service application execution environment
TWI480840B (en) Device for controlling security, monitoring and automation (sma), and method performed by an sma controller
KR101871383B1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
CN112788074B (en) Data transmitting method, processing method, receiving method, apparatus thereof, and storage medium
CN108108286A (en) Method of data capture and device, server, storage medium
CN111371898B (en) Message monitoring method, device, equipment and storage medium
US11650888B2 (en) Workflow error handling for device driven management
US20180300408A1 (en) Mobile Web Scraping
CN113794652A (en) Data processing method and device, electronic equipment and storage medium
US9577967B2 (en) Method and system for managing an informational site using a social networking application
CN110930110B (en) Distributed flow monitoring method and device, storage medium and electronic equipment
TWI619031B (en) Metadata server, network device and automatic resource management method
CN116828511A (en) Method, device and system for realizing loading and activating license of base station
US9424552B2 (en) Managing website registrations
CN114238021A (en) SDK interface positioning method, device, equipment and computer storage medium
CN111858498A (en) Storage type conversion method, system, device and equipment
CN111694671B (en) Big data component management method, device, server, electronic equipment and system
US20240134326A1 (en) Smart building data connector
US11972287B2 (en) Data transfer prioritization for services in a service chain
US20240135470A1 (en) Smart building data connector
US8493211B2 (en) Providing event indications to prevent indication storms in an event model

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