CN113596082A - Method and system for determining equipment data and electronic device - Google Patents

Method and system for determining equipment data and electronic device Download PDF

Info

Publication number
CN113596082A
CN113596082A CN202110686913.3A CN202110686913A CN113596082A CN 113596082 A CN113596082 A CN 113596082A CN 202110686913 A CN202110686913 A CN 202110686913A CN 113596082 A CN113596082 A CN 113596082A
Authority
CN
China
Prior art keywords
data
target
request
subscription
authority
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
CN202110686913.3A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110686913.3A priority Critical patent/CN113596082A/en
Publication of CN113596082A publication Critical patent/CN113596082A/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/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention provides a method and a system for determining equipment data and an electronic device, wherein the method comprises the following steps: receiving a subscription request sent by a target application, and determining a request data service requested by a first object according to the subscription request, wherein the request data service comprises first device data of a target device; determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of the target device, and the second device data is a subset of the first device data; according to the subscription request, the target data service is sent to the target application, the problems that in the prior art, only the device data corresponding to the subscription part cannot be transmitted after security authorization according to requirements and the like are solved, the security of device data transmission is enhanced, the transmission of unnecessary device data is avoided, and the efficiency of application development of developers is improved.

Description

Method and system for determining equipment data and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a system for determining device data, and an electronic apparatus.
Background
With the ecological opening of the IOT platform, developers need to timely and effectively acquire related intelligent equipment data from the IOT platform and store the data to application services of the developers when developing business operation activities. The internet of things platform needs to authorize the application service of the developer with the 'what data' of the 'what device' for different business appeals of different developers.
In the related art, authorization control of data of the subscription device and safe data transmission are realized only by virtue of developer identity authentication and data subscription services (subscription authorization, application authorization and check subscription authentication) built on a developer platform. However, the granularity of "landscape" and "portrait" that can currently provide developers (partners) with subscription device data is not fine enough: transverse: device message content. Currently, only complete message content can be subscribed to, and subscription on demand (only partial message content is subscribed to) cannot be performed. Longitudinal direction: device range. At present, only data of all devices under a certain device class or device model can be subscribed, but data of a specified device (generally, the device) cannot be subscribed, so that a developer needs to filter the device data by himself, and the device data is troublesome, not high in timeliness, and has the problems of more transmitted detailed data and data safety.
Aiming at the problems that only the device data corresponding to the subscription part cannot be transmitted after security authorization according to requirements and the like in the related technology, an effective technical scheme is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a system for determining device data and an electronic device, which are used for at least solving the problems that only device data corresponding to a subscription part cannot be transmitted after security authorization according to requirements in the related art and the like.
According to an embodiment of the present invention, there is provided a method for determining device data, including: receiving a subscription request sent by a target application, and determining a request data service requested by a first object according to the subscription request, wherein the request data service comprises first device data of a target device; determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of a target device, and the second device data is a subset of the first device data; and sending the target data service to the target application according to the subscription request.
In one exemplary embodiment, data authority synchronized by a first platform is obtained, wherein the data authority is used for indicating a set of data services subscribed by a first object registered on the first platform; and matching the data authority with the request data service to determine a target data service corresponding to the data authority.
In an exemplary embodiment, matching the data permission with the request data service to determine a target data service corresponding to the data permission comprises: matching the set of data services subscribed by the first object in the data authority with the requested data service; determining the target data service from the set of data services subscribed to by the first object according to the matching result.
In an exemplary embodiment, the method further includes: receiving record data uploaded by target equipment of the household appliance equipment; and classifying the recorded data according to a preset attribute rule to obtain multi-class device data corresponding to the target device.
In an exemplary embodiment, the sending the target data service to the target application according to the subscription request includes: determining whether the target data service corresponding to the subscription request has completed data configuration; acquiring an application identifier of the target application under the condition that the subscription request has completed the data configuration; and matching the application identification with the target data service corresponding to the subscription request one by one to construct a development data package corresponding to the subscription request, and pushing the development data package to the target application.
According to an embodiment of the present invention, there is provided another device data determination method including: receiving a subscription authority request of a first object, wherein the subscription authority request comprises data of target equipment requested to be acquired; authenticating the subscription permission request according to the data of the target equipment and/or the identity information of the first object acquired by the request to obtain the data permission corresponding to the subscription permission request; and sending the data authority corresponding to the first object to a second platform so that the second platform synchronizes the data of the target device to the first object according to the data authority.
In an exemplary embodiment, the method further includes: performing identity authentication on the first object to determine identity information of the first object; determining, from the identity information, that the first object is authorized for data services.
In an exemplary embodiment, the authenticating the subscription permission request according to the data of the target device and/or the identity information of the first object obtained by the request to obtain the data permission corresponding to the subscription permission request includes: determining an information type of a data service for which the identity information of the first object is authorized, wherein the information type comprises at least one of: equipment model, equipment type, equipment identification and equipment information; authenticating the subscription authority request according to the data of the target equipment acquired by the request and the information type, and determining the information type of the authorized target equipment in the data of the target equipment; and determining the information type of the authorized target equipment as the data authority corresponding to the subscription authority request.
According to another embodiment of the present invention, there is provided a device data determination system including: the first platform is used for receiving a subscription authority request of a first object, authenticating the subscription authority request according to the data of the target equipment and/or the identity information of the first object acquired by the request, and acquiring the data authority corresponding to the subscription authority request; sending the data authority corresponding to the first object to a second platform so that the second platform synchronizes the data of the target device to the first object according to the data authority, wherein the subscription authority request comprises the data of the target device requested to be acquired; and the second platform is used for synchronizing the data of the target equipment to the first object according to the data authority.
In an exemplary embodiment, the second platform is further configured to receive a subscription request sent by a target application, determine a requested data service of a first object request according to the subscription request, determine a target data service corresponding to the data authority according to the requested data service and a data authority corresponding to the subscription request, and send the target data service to the target application, where the target data service includes second device data of a target device, and the second device data is a subset of the first device data; the request data service includes first device data of a target device.
In an exemplary embodiment, the system further includes: a target device for transmitting the recorded recording data of the target device to a second platform; and the second platform is further used for classifying the recorded data according to a preset attribute rule to obtain multi-class device data corresponding to the target device.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a subscription request sent by a target application is received, and a request data service requested by a first object is determined according to the subscription request, wherein the request data service comprises first device data of a target device; determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of the target device, and the second device data is a subset of the first device data; according to the subscription request, the target data service is sent to the target application, that is, the target data service which can be authorized in the subscription request is determined by determining the request data service in the subscription request and combining the data authority corresponding to the subscription request, so that the control of the subscription authority and the corresponding different data authority to different applications of different objects are realized, therefore, the problems that in the prior art, only the device data corresponding to the subscription part cannot be transmitted after the security authorization according to requirements and the like can be solved, the security of device data transmission is enhanced, the transmission of unnecessary device data is avoided, and the efficiency of application development of developers is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a method for determining device data according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of determining device data according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of determining device data according to an embodiment of the present invention (two);
fig. 4 is a flowchart illustrating an authorization management and control method for subscription device data open to developers according to an alternative embodiment of the present invention;
fig. 5 is a block diagram of a configuration of an apparatus for determining device data according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal or a similar operation device of an equipment terminal. Taking the example of being operated on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a method for determining device data according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for determining device data in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for determining device data is provided, and fig. 2 is a flowchart (a) of a method for determining device data according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, receiving a subscription request sent by a target application, and determining a request data service requested by a first object according to the subscription request, wherein the request data service comprises first device data of a target device;
for example, after a first object sends a subscription request for data development from a developer application (corresponding to a target application in the embodiment of the present invention), after receiving the subscription request, the internet of things platform determines a data service to be invoked by the first object according to information carried in the subscription request, thereby determining a requested data service requested by the first object.
Step S204, according to the data authority corresponding to the request data service and the subscription request, determining a target data service corresponding to the data authority, wherein the target data service comprises second device data of a target device, and the second device data is a subset of the first device data;
it can be understood that, after the data service requested by the first object is determined, in order to ensure safe use of the data service, the data right corresponding to the subscription request is determined from the data rights synchronized in the internet of things platform, and further, the target data service to be invoked is correspondingly determined from the data rights according to the actual requirement of the first object.
It should be noted that the second device data is a subset of the first device data, and includes at least one of the following cases: the second device data is identical to the first device data, the second device data is partial data in the first device data, and the second device data is a proper subset of the first device data.
Step S206, according to the subscription request, the target data service is sent to the target application.
In order to more accurately send the device data corresponding to the target number service to the target application, the determined target data service is matched and corresponds to the subscription request, and the determined target data service is sent to the target application.
Through the steps, a subscription request sent by a target application is received, and a request data service requested by a first object is determined according to the subscription request, wherein the request data service comprises first device data of a target device; determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of the target device, and the second device data is a subset of the first device data; according to the subscription request, the target data service is sent to the target application, that is, the target data service which can be authorized in the subscription request is determined by determining the request data service in the subscription request and combining the data authority corresponding to the subscription request, so that the control of the subscription authority and the corresponding different data authority to different applications of different objects are realized, therefore, the problems that in the prior art, only the device data corresponding to the subscription part cannot be transmitted after the security authorization according to requirements and the like can be solved, the security of device data transmission is enhanced, the transmission of unnecessary device data is avoided, and the efficiency of application development of developers is improved.
In one exemplary embodiment, data authority synchronized by a first platform is obtained, wherein the data authority is used for indicating a set of data services subscribed by a first object registered on the first platform; and matching the data authority with the request data service to determine a target data service corresponding to the data authority.
In short, in order to ensure the security and the validity of the device data subscribed by the development object, the subscription authority of the developer is registered and authenticated through the developer platform before subscription, the subscription authority of the data service corresponding to the device data of the development object is determined according to the registration result, the subscription authority is further synchronized to the internet of things platform associated with the developer platform, and the device data is called correspondingly.
In an exemplary embodiment, matching the data permission with the request data service to determine a target data service corresponding to the data permission comprises: matching the set of data services subscribed by the first object in the data authority with the requested data service; determining the target data service from the set of data services subscribed to by the first object according to the matching result.
It can be understood that, since each development object may have subscription permissions of multiple data services at the same time, in order to quickly confirm device data corresponding to the data services, the internet of things platform classifies synchronous different types of subscription permissions, and further determines authorization lists corresponding to different data services, so that when it is confirmed that the development object exists in the lists, the corresponding device data can be quickly determined.
In an exemplary embodiment, the method further includes receiving the record data uploaded by the target device of the home device; and classifying the recorded data according to a preset attribute rule to obtain multi-class device data corresponding to the target device.
It can be understood that, because the types of the data packets uploaded by the device in the operation process are various, in order to improve the acquisition efficiency of the data required by the development object, the data packets uploaded by the device in the operation process are screened according to the information type by further confirming the information type of the device data corresponding to the data permission, and then the device data matched with the data service is obtained through processing. In addition, it should be noted that the recorded data is used to indicate device operation data uploaded by the device during operation and information data interacted with the outside, where the device operation data includes basic parameter information of the device, such as identification information of the device, location information of the device, and the like.
In an exemplary embodiment, the sending the target data service to the target application according to the subscription request includes: determining whether the target data service corresponding to the subscription request has completed data configuration; acquiring an application identifier of the target application under the condition that the subscription request has completed the data configuration; and matching the application identification with the target data service corresponding to the subscription request one by one to construct a development data package corresponding to the subscription request, and pushing the development data package to the target application.
After the invokable target data service corresponding to the subscription request is determined, the corresponding second device data to be invoked is configured for the target data service, after the device data is confirmed, in order to facilitate the target application to verify the device data for use, the internet of things platform obtains the application identifier of the target application being developed by the development object, and then the target data service corresponding to the determined subscription request and the application identifier are packaged into a development data packet to be pushed to the target application, so that the target data service is ensured to better meet the development requirement of the target application.
In this embodiment, a method for determining device data is provided, and fig. 3 is a flowchart (ii) of a method for determining device data according to an embodiment of the present invention, where the flowchart includes the following steps:
step S302, receiving a subscription authority request of a first object, wherein the subscription authority request comprises data of target equipment requested to be acquired;
step S304, authenticating the subscription permission request according to the data of the target equipment and/or the identity information of the first object acquired by the request to obtain the data permission corresponding to the subscription permission request;
step S306, sending the data authority corresponding to the first object to a second platform, so that the second platform synchronizes the data of the target device to the first object according to the data authority.
According to the invention, a subscription authority request of a first object is received, wherein the subscription authority request comprises data of target equipment requested to be acquired; authenticating the subscription permission request according to the data of the target equipment and/or the identity information of the first object which are acquired by the request to obtain the data permission corresponding to the subscription permission request; and sending the data authority corresponding to the first object to the second platform so that the second platform synchronizes the data of the target device to the first object according to the data authority. That is to say, by determining the requested data service in the subscription request and combining the data permission corresponding to the subscription request, the target data service which can be authorized in the subscription request is further determined, so that the subscription permission is managed and controlled, and different data permissions are corresponding to different applications of different objects, therefore, the problems that in the prior art, only the device data corresponding to the subscription part cannot be transmitted after the security authorization according to requirements and the like can be solved, the security of device data transmission is enhanced, the transmission of unnecessary device data is avoided, and the efficiency of application development of developers is improved.
In an exemplary embodiment, sending the data right corresponding to the first object to a second platform, so that the second platform synchronizes data of the target device to the first object according to the data right, includes: determining a second data authority according to each first object and a set of data services subscribed by each first object, and synchronizing the second data authority to a second platform, wherein the second data authority is used for indicating that the second platform matches a requested data service corresponding to a subscription request sent by a target application with the data authority, and matches the requested data service in the data authority, and in the case that a second development object corresponding to the requested data service in the data authority is consistent with the first object, determining a target data service corresponding to the data authority, and the data authority is used for indicating a set of data services subscribed by the first object registered on the first platform; and synchronizing the data of the target device to the first object according to the second data permission.
In an exemplary embodiment, the method further includes: performing identity authentication on the first object to determine identity information of the first object; determining, from the identity information, that the first object is authorized for data services. In short, since different target objects can be authorized in different rights ranges on the first platform (i.e., the developer platform), it is necessary to authenticate the identity of the target object on the first platform, and determine the type of data service that the target object can be authorized on the first platform and the corresponding information according to the authentication result.
In an exemplary embodiment, the authenticating the subscription permission request according to the data of the target device and/or the identity information of the first object obtained by the request to obtain the data permission corresponding to the subscription permission request includes: determining an information type of a data service for which the identity information of the first object is authorized, wherein the information type comprises at least one of: equipment model, equipment type, equipment identification and equipment information; authenticating the subscription authority request according to the data of the target equipment acquired by the request and the information type, and determining the information type of the authorized target equipment in the data of the target equipment; and determining the information type of the authorized target equipment as the data authority corresponding to the subscription authority request.
It can be understood that, due to the variety of data service types, in order to more accurately determine the granted data of the target object, the data of the target device to be acquired and/or the identity information of the first object are determined according to the request corresponding to the subscription permission request, and then authentication is performed in combination with the determined subscription permission request, so that the information type of the authorized target device in the data of the target device is determined as the data permission corresponding to the subscription permission request.
In order to better understand the process of the above device data determining method, the following describes a flow of the above device data determining method with reference to two alternative embodiments.
In an optional embodiment of the invention, an authorization control method for subscribing device data opened for a developer is mainly provided, identity authentication is completed by online registration and submitting identity data of the developer (a partner), the authority of subscribing device data and the authentication of subscription application are applied online, and the developer application realizes subscription service according to the opened subscription authority to complete data subscription. By means of the developer identity authentication and the data subscription service (subscription authorization, application authorization and check subscription authentication) built on the developer platform, authorization control of subscription equipment data is realized, and data is transmitted safely. The technical problems that the security authorization registration of the device data to be subscribed by the developer is realized, the subscription authentication is checked in real time when the application service of the developer realizes the subscription service, the developer is ensured to subscribe the required device data according to the registration authorization, and meanwhile, the IOT platform only pushes the device data required by the application of the developer are solved.
Optionally, as shown in fig. 4, a schematic flowchart of an authorization management and control method for subscribing to device data opened by a developer according to an optional embodiment of the present invention includes the following steps:
an enterprise (party b) corresponding to a developer (equivalent to an object in the embodiment of the present invention) and an enterprise (party a) corresponding to an internet of things platform (equivalent to a first platform in the embodiment of the present invention) achieve business cooperation:
opening the authority;
step A1: a developer registers as a developer account on a developer platform (equivalent to a first platform in the embodiment of the present invention), and applies for a data subscription right (equivalent to a data right in the embodiment of the present invention).
Step A2: after the authorization of the developer platform passes, the developer platform synchronizes the subscription authority to a message platform of an internet of things platform (which is equivalent to the second platform in the embodiment of the invention).
Pushing data;
step C1: the developer application completes the development of subscription service according to the opened subscription authorization and starts the service;
step C2: equipment data of the intelligent equipment is reported to an equipment platform of the Internet of things platform;
step C3: the device platform distributes the device data to the message platform in real time;
step C4: the message platform checks the subscription application authentication of the developer and generates authorized equipment data;
step C5: the message platform pushes authorized device data to the developer application (corresponding to the target application in the embodiment of the present invention);
in summary, according to the optional embodiment of the present invention, since the authorization of the device data is applied for authorization registration through the developer platform, and the developer checks subscription authentication when applying the subscription data service and when pushing the device data through the message platform, the problem of programmatic management and control of the authorization system of the device data is solved, and the security of data transmission is enhanced by managing and controlling subscription rights and corresponding different rights to different applications of different developers.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a system for determining device data is further provided, and the system is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. Fig. 5 is a block diagram of a structure of a device data determination system according to an embodiment of the present invention, and as shown in fig. 5, the system includes:
a first platform 52 and a second platform 54; ,
the first platform 52 is configured to receive a subscription permission request of a first object, and authenticate the subscription permission request according to the data of the target device and/or the identity information of the first object obtained by the request, so as to obtain a data permission corresponding to the subscription permission request; sending the data permission corresponding to the first object to the second platform, wherein the subscription permission request comprises data of target equipment requested to be acquired;
the second platform 54 is configured to synchronize data of the target device to the first object according to the data right.
Through the system, the sent subscription request is confirmed according to the corresponding data authority through the information interaction of the first platform and the second platform, and the target data service is determined from the data authority and sent to the target application, namely, the target data service which can be authorized in the subscription request is determined by determining the requested data service in the subscription request and combining the data authority corresponding to the subscription request, so that the subscription authority is controlled and different data authorities are corresponding to different applications of different objects.
In an exemplary embodiment, the second platform is further configured to receive a subscription request sent by a target application, determine a requested data service of a first object request according to the subscription request, determine a target data service corresponding to the data authority according to the requested data service and a data authority corresponding to the subscription request, and send the target data service to the target application, where the target data service includes second device data of a target device, and the second device data is a subset of the first device data; the request data service includes first device data of a target device.
For example, after a first object sends a subscription request for data development from a developer application (corresponding to a target application in the embodiment of the present invention), after receiving the subscription request, the internet of things platform determines a data service to be invoked by the first object according to information carried in the subscription request, thereby determining a requested data service requested by the first object. After the data service requested by the first object is determined, in order to ensure the safe use of the data service, the data authority corresponding to the subscription request is determined from the synchronous data authority in the internet of things platform, and further, the target data service to be called is correspondingly determined from the data authority according to the actual requirement of the first object.
In an exemplary embodiment, the system further includes: a target device for transmitting the recorded recording data of the target device to a second platform; and the second platform is further used for classifying the recorded data according to a preset attribute rule to obtain multi-class device data corresponding to the target device.
It can be understood that, because the types of the data packets uploaded by the device in the operation process are various, in order to improve the acquisition efficiency of the data required by the development object, the data packets uploaded by the device in the operation process are screened according to the information type by further confirming the information type of the device data corresponding to the data permission, and then the device data matched with the data service is obtained through processing.
Optionally, the first platform is further configured to determine a second data permission according to each first object and a set of data services subscribed by each first object, and synchronize the second data permission to a second platform, where the second data permission is used to indicate that the second platform matches a requested data service and a data permission corresponding to a subscription request issued by a target application, and matches the requested data service in the data permission, and in a case that a second development object corresponding to the requested data service in the data permission is consistent with the first object, determine a target data service corresponding to the data permission, where the data permission is used to indicate a set of data services subscribed by the first object registered on the first platform; and synchronizing the data of the target device to the first object according to the second data permission.
In an exemplary embodiment, the first platform is further configured to perform identity authentication on the first object to determine identity information of the first object; determining, from the identity information, that the first object is authorized for data services.
In short, since different target objects can be authorized in different rights ranges on the first platform (i.e., the developer platform), it is necessary to authenticate the identity of the target object on the first platform, and determine the type of data service that the target object can be authorized on the first platform and the corresponding information according to the authentication result.
In an exemplary embodiment, the first platform is further configured to determine an information type of a data service for which the identity information of the first object is authorized, where the information type includes at least one of: equipment model, equipment type, equipment identification and equipment information; authenticating the subscription authority request according to the data of the target equipment acquired by the request and the information type, and determining the information type of the authorized target equipment in the data of the target equipment; and determining the information type of the authorized target equipment as the data authority corresponding to the subscription authority request.
It can be understood that, due to the variety of data service types, in order to more accurately determine the granted data of the target object, the data of the target device to be acquired and/or the identity information of the first object are determined according to the request corresponding to the subscription permission request, and then authentication is performed in combination with the determined subscription permission request, so that the information type of the authorized target device in the data of the target device is determined as the data permission corresponding to the subscription permission request.
In an exemplary embodiment, the second platform is further configured to obtain a data right synchronized by the first platform, where the data right is used to indicate a set of data services subscribed by the first object registered on the first platform; and matching the data authority with the request data service to determine a target data service corresponding to the data authority.
In short, in order to ensure the security and the validity of the device data subscribed by the development object, the subscription authority of the developer is registered and authenticated through the developer platform before subscription, the subscription authority of the data service corresponding to the device data of the development object is determined according to the registration result, the subscription authority is further synchronized to the internet of things platform associated with the developer platform, and the device data is called correspondingly.
In an exemplary embodiment, the second platform is further configured to match a set of data services subscribed by the first object in the data authority with the requested data service; determining the target data service from the set of data services subscribed to by the first object according to the matching result.
It can be understood that, since each development object may have subscription permissions of multiple data services at the same time, in order to quickly confirm device data corresponding to the data services, the internet of things platform classifies synchronous different types of subscription permissions, and further determines authorization lists corresponding to different data services, so that when it is confirmed that the development object exists in the lists, the corresponding device data can be quickly determined.
In an exemplary embodiment, the second platform is further configured to determine whether a target data service corresponding to the subscription request has completed data configuration; acquiring an application identifier of the target application under the condition that the subscription request has completed the data configuration; and matching the application identification with the target data service corresponding to the subscription request one by one to construct a development data package corresponding to the subscription request, and pushing the development data package to the target application. After the invokable target data service corresponding to the subscription request is determined, the corresponding second device data to be invoked is configured for the target data service, after the device data is confirmed, in order to facilitate the target application to verify the device data for use, the internet of things platform obtains the application identifier of the target application being developed by the development object, and then the target data service corresponding to the determined subscription request and the application identifier are packaged into a development data packet to be pushed to the target application, so that the target data service is ensured to better meet the development requirement of the target application.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a subscription request sent by a target application, and determining a request data service requested by a first object according to the subscription request, wherein the request data service comprises first device data of a target device;
s2, determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of a target device, and the second device data is a subset of the first device data;
s3, according to the subscription request, the target data service is sent to the target application.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a subscription request sent by a target application, and determining a request data service requested by a first object according to the subscription request, wherein the request data service comprises first device data of a target device;
s2, determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of a target device, and the second device data is a subset of the first device data;
s3, according to the subscription request, the target data service is sent to the target application.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for determining device data, comprising:
receiving a subscription request sent by a target application, and determining a request data service requested by a first object according to the subscription request, wherein the request data service comprises first device data of a target device;
determining a target data service corresponding to the data authority according to the data authority corresponding to the request data service and the subscription request, wherein the target data service comprises second device data of a target device, and the second device data is a subset of the first device data;
and sending the target data service to the target application according to the subscription request.
2. The method of claim 1, wherein determining a target data service corresponding to the data authority according to the data authority corresponding to the requested data service and the subscription request comprises:
acquiring data authority synchronized by a first platform, wherein the data authority is used for indicating a set of data services subscribed by a first object registered on the first platform;
and matching the data authority with the request data service to determine a target data service corresponding to the data authority.
3. The method of claim 2, wherein matching the data permission with the requested data service to determine a target data service corresponding to the data permission comprises:
matching the set of data services subscribed by the first object in the data authority with the requested data service;
determining the target data service from the set of data services subscribed to by the first object according to the matching result.
4. The method of claim 1, further comprising:
receiving record data uploaded by target equipment of the household appliance equipment;
and classifying the recorded data according to a preset attribute rule to obtain multi-class device data corresponding to the target device.
5. The method of claim 1, wherein sending the target data service to the target application according to the subscription request comprises:
determining whether the target data service corresponding to the subscription request has completed data configuration;
under the condition that the data configuration is completed, acquiring an application identifier of the target application;
and matching the application identification with the target data service corresponding to the subscription request one by one to construct a development data package corresponding to the subscription request, and pushing the development data package to the target application.
6. A method for determining device data, comprising:
receiving a subscription authority request of a first object, wherein the subscription authority request comprises data of target equipment requested to be acquired;
authenticating the subscription permission request according to the data of the target equipment and/or the identity information of the first object acquired by the request to obtain the data permission corresponding to the subscription permission request;
and sending the data authority corresponding to the first object to a second platform so that the second platform synchronizes the data of the target device to the first object according to the data authority.
7. The method of claim 6, further comprising:
performing identity authentication on the first object to determine identity information of the first object; determining, from the identity information, that the first object is authorized for data services.
8. The method according to claim 6 or 7, wherein the authenticating the subscription permission request according to the data of the target device and/or the identity information of the first object obtained by the request to obtain the data permission corresponding to the subscription permission request comprises:
determining an information type of a data service for which the identity information of the first object is authorized, wherein the information type comprises at least one of: equipment model, equipment type, equipment identification and equipment information;
authenticating the subscription authority request according to the data of the target equipment acquired by the request and the information type, and determining the information type of the authorized target equipment in the data of the target equipment;
and determining the information type of the authorized target equipment as the data authority corresponding to the subscription authority request.
9. A system for determining device data, comprising a first platform and a second platform,
the first platform is used for receiving a subscription permission request of a first object, authenticating the subscription permission request according to the data of the target equipment and/or the identity information of the first object acquired by the request, and acquiring the data permission corresponding to the subscription permission request; sending the data permission corresponding to the first object to the second platform, wherein the subscription permission request comprises data of target equipment requested to be acquired;
and the second platform is used for synchronizing the data of the target equipment to the first object according to the data authority.
10. The system of claim 9, wherein the second platform is further configured to:
receiving a subscription request sent by a target application, determining a request data service of a first object request according to the subscription request, determining a target data service corresponding to the data authority according to the request data service and the data authority corresponding to the subscription request, and sending the target data service to the target application, wherein the target data service comprises second device data of a target device, and the second device data is a subset of the first device data; the request data service includes first device data of a target device.
11. The system according to claim 9 or 10, characterized in that the system further comprises:
the target device is used for transmitting the recorded data recorded by the target device to a second platform;
and the second platform is further used for classifying the recorded data according to a preset attribute rule to obtain multi-class device data corresponding to the target device.
12. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 8.
CN202110686913.3A 2021-06-21 2021-06-21 Method and system for determining equipment data and electronic device Pending CN113596082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110686913.3A CN113596082A (en) 2021-06-21 2021-06-21 Method and system for determining equipment data and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110686913.3A CN113596082A (en) 2021-06-21 2021-06-21 Method and system for determining equipment data and electronic device

Publications (1)

Publication Number Publication Date
CN113596082A true CN113596082A (en) 2021-11-02

Family

ID=78244127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110686913.3A Pending CN113596082A (en) 2021-06-21 2021-06-21 Method and system for determining equipment data and electronic device

Country Status (1)

Country Link
CN (1) CN113596082A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495783A (en) * 2022-09-20 2022-12-20 北京三维天地科技股份有限公司 Configured data service exposure solution method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577602A (en) * 2014-10-08 2016-05-11 阿里巴巴集团控股有限公司 Data pushing method and data pushing device based on open application programming interface
CN106657130A (en) * 2017-01-09 2017-05-10 上海浦东软件园汇智软件发展有限公司 Access authentication method and access authentication equipment based on MQTT
CN111654397A (en) * 2020-06-03 2020-09-11 中国科学院自动化研究所 Data subscription method and device, electronic equipment and storage medium
CN111799867A (en) * 2020-07-21 2020-10-20 国网智能科技股份有限公司 Mutual trust authentication method and system between charging equipment and charging management platform
CN111988422A (en) * 2020-08-31 2020-11-24 广州市百果园信息技术有限公司 Subscription method, device, server and storage medium of application service
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN112929437A (en) * 2021-02-05 2021-06-08 中国石油大学(北京) Data transmission system, method and device based on Internet of things MQTT technical framework
CN112948866A (en) * 2021-03-29 2021-06-11 iCALC控股有限公司 Data processing method, device and equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577602A (en) * 2014-10-08 2016-05-11 阿里巴巴集团控股有限公司 Data pushing method and data pushing device based on open application programming interface
CN106657130A (en) * 2017-01-09 2017-05-10 上海浦东软件园汇智软件发展有限公司 Access authentication method and access authentication equipment based on MQTT
CN111654397A (en) * 2020-06-03 2020-09-11 中国科学院自动化研究所 Data subscription method and device, electronic equipment and storage medium
CN111799867A (en) * 2020-07-21 2020-10-20 国网智能科技股份有限公司 Mutual trust authentication method and system between charging equipment and charging management platform
CN111988422A (en) * 2020-08-31 2020-11-24 广州市百果园信息技术有限公司 Subscription method, device, server and storage medium of application service
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN112929437A (en) * 2021-02-05 2021-06-08 中国石油大学(北京) Data transmission system, method and device based on Internet of things MQTT technical framework
CN112948866A (en) * 2021-03-29 2021-06-11 iCALC控股有限公司 Data processing method, device and equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495783A (en) * 2022-09-20 2022-12-20 北京三维天地科技股份有限公司 Configured data service exposure solution method and system

Similar Documents

Publication Publication Date Title
US20220116773A1 (en) Method and apparatus for managing bundles of smart secure platform
CN110266642A (en) Identity identifying method and server, electronic equipment
CN109587142B (en) Data security access module and equipment for service flow
US11422786B2 (en) Method for interoperating between bundle download process and eSIM profile download process by SSP terminal
CN110300104B (en) User authority control and transfer method and system under edge cloud scene
CN111406397B (en) Method and apparatus for managing events in a communication system
CN113055176B (en) Terminal authentication method and system, terminal device, P2P verification platform and medium
CN113438314A (en) Equipment control method and device, storage medium and electronic device
CN111737681A (en) Resource acquisition method and device, storage medium and electronic device
CN112862487A (en) Digital certificate authentication method, equipment and storage medium
CN110647583B (en) Block chain construction method, device, terminal and medium
CN113596082A (en) Method and system for determining equipment data and electronic device
CN114616807B (en) Method and system for managing and controlling a communication network
CN111866993B (en) Wireless local area network connection management method, device, software program and storage medium
CN112637221A (en) Equipment control method and device
CN111131324A (en) Login method and device of business system, storage medium and electronic device
CN109729515B (en) Method for realizing machine-card binding, user identification card and Internet of things terminal
CN115510496A (en) Database access control method and related device
CN113114465B (en) Method and device for processing attribution authority, storage medium and electronic device
CN115175170A (en) USIM data autonomous uplink realization method, terminal, USIM and system
CN113779516A (en) Equipment control method and device, storage medium and electronic device
CN113381871B (en) Mobile edge service arrangement method, arrangement device and mobile edge computing system
WO2023221502A1 (en) Data transmission method and system, and signaling security management gateway
US20240129143A1 (en) Dividing data storage and service operations among plural blockchains
CN114499977B (en) Authentication method and device

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