Internet of Things platform control method, device, equipment and medium

By verifying the certificate authorization code between the first server and the second server of the IoT device management platform, the problem that device characteristic information is easily forged or leaked is solved, and the security and authentication reliability of the IoT device management platform are improved. Ensure that only authorized users can access the service.

CN118802252APending Publication Date: 2024-10-18CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410021451.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The operational security of the IoT device management platform is reduced because device characteristic information is easily forged or leaked, allowing users who have not obtained service permissions to access and provide services.

Method used

By establishing a wireless or wired link between the first server and the second server of the Internet of Things device management platform, respond to the service request of the user device, obtain the authorization code of the certificate to be verified, and send it to the provider of the Internet of Things device management platform The second server performs verification. If the verification is successful, the target authorization certificate is stored and the IoT device management platform is controlled based on it to provide business services to users.

Benefits of technology

It improves the authentication reliability and security of the usage rights of the Internet of Things device management platform, prevents unauthorized users from accessing, ensures that only authorized users can access and provide services, and improves the security and reliability of the platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802252A_ABST
    Figure CN118802252A_ABST
Patent Text Reader

Abstract

The invention provides an Internet of Things platform control method and device, equipment and a medium, and relates to the technical field of Internet of Things, and the Internet of Things platform control method comprises the steps: obtaining a to-be-verified certificate authorization code in a service request in response to the received service request sent by user equipment; generating a certificate acquisition request based on the certificate authorization code to be verified, and sending the certificate acquisition request to a second server of the Internet of Things equipment management platform supplier; and if a target authorization certificate which is returned by the second server and is associated with the certificate authorization code to be verified is received, storing the target authorization certificate, and controlling the Internet of Things equipment management platform to provide business service for the Internet of Things equipment based on the target authorization certificate. The authentication reliability and safety of the use permission of the Internet of Things equipment management platform can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to an Internet of Things platform control method, device, equipment and medium. Background Art

[0002] With the development of IoT technology, IoT device management platforms can be deployed in the form of private clouds, public clouds or edge nodes. When IoT device management platforms are deployed in the form of private clouds or edge nodes, it is necessary to restrict the operating permissions of IoT device management platforms. For example, the platform's service life, the number of devices and users that can be registered and managed, and the upper limit of core business processing volume can be restricted. These operating permissions are usually clarified through certificates.

[0003] In the related technology, after the user of the Internet of Things device management platform obtains the right to use the Internet of Things device management platform from the developer of the Internet of Things device management platform, the user of the Internet of Things device management platform can access the Internet of Things device management platform through authorization information so that the Internet of Things device management platform can provide relevant services for the Internet of Things devices of the user of the Internet of Things device management platform.

[0004] However, when the user of the IoT device management platform accesses the IoT device management platform through authorization information, the authorization information provided usually includes device feature information of the server where the IoT device management platform is deployed. Since device feature information can be easily forged or leaked, the operational security of the IoT device management platform is reduced. Summary of the invention

[0005] The present disclosure provides an Internet of Things platform control method, device, equipment and medium, which can improve the authentication reliability and security of the Internet of Things device management platform usage rights. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of the present disclosure, a method for controlling an Internet of Things platform is provided. The method is applied to a first server for deploying an Internet of Things device management platform, and includes:

[0007] In response to receiving a service request sent by a user device, obtaining an authorization code of the certificate to be verified in the service request;

[0008] Generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to the second server of the IoT device management platform provider;

[0009] If the target authorization certificate associated with the authorization code of the certificate to be verified is received from the second server, the target authorization certificate is stored, and the Internet of Things device management platform is controlled to provide business services for the Internet of Things devices based on the target authorization certificate, wherein the second server returns the target authorization certificate to the first server after successfully verifying the authorization code of the certificate to be verified.

[0010] According to a second aspect of the present disclosure, there is provided an Internet of Things platform control device, the device being deployed in a first server of an Internet of Things device management platform, comprising:

[0011] an acquisition module, configured to, in response to receiving a service request sent by a user device, acquire an authorization code of the certificate to be verified in the service request;

[0012] A sending module, configured to generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to a second server of the IoT device management platform provider;

[0013] The storage module is configured to store the target authorization certificate if it receives the target authorization certificate associated with the authorization code of the certificate to be verified returned by the second server, and control the Internet of Things device management platform to provide business services for the Internet of Things device based on the target authorization certificate, wherein the second server returns the target authorization certificate to the first server after successfully verifying the authorization code of the certificate to be verified.

[0014] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0015] Processor; and

[0016] Memory for storing programs,

[0017] The program includes instructions, which, when executed by the processor, cause the processor to execute the method as described in the first aspect.

[0018] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method as described in the first aspect.

[0019] The Internet of Things platform control method, apparatus, device and medium provided in the embodiments of the present disclosure can verify the user's Internet of Things device management platform usage rights based on the certificate authorization code. The certificate authorization code is a platform usage rights identifier generated by the Internet of Things device management platform supplier for a user with Internet of Things device management platform usage rights. It is not easy to be stolen or forged, and can ensure the reliability and security of the authentication of the Internet of Things device management platform usage rights. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0021] Figure 1 A schematic diagram showing an example system controlled by an Internet of Things platform according to an exemplary embodiment of the present disclosure is shown;

[0022] Figure 2 A flow chart of an Internet of Things platform control method according to an exemplary embodiment of the present disclosure is shown;

[0023] Figure 3 A schematic diagram of the structure of an Internet of Things device management platform according to an exemplary embodiment of the present disclosure is shown;

[0024] Figure 4 A flow chart showing another method for controlling an Internet of Things platform according to an exemplary embodiment of the present disclosure is shown;

[0025] Figure 5 A schematic block diagram of an Internet of Things platform control device according to an exemplary embodiment of the present disclosure is shown;

[0026] Figure 6 A schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown;

[0027] Figure 7 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0033] In the related technology, when a user needs to manage IoT devices through an IoT device management platform, he or she can apply to the developer of the IoT device management platform for permission to use the IoT device management platform. After the user of the IoT device management platform obtains permission to use the IoT device management platform, he or she can access the IoT device management platform through authorization information so that the IoT device management platform can provide relevant business services for the user's IoT devices.

[0034] Among them, the Internet of Things device management platform can send an access request to the server of the Internet of Things device management platform. After the server of the Internet of Things device management platform successfully verifies the authorization information in the access request, it can provide relevant business services for the user's Internet of Things device. Among them, the authorization information usually includes the device feature information of the server where the Internet of Things device management platform is deployed, such as the server's IP address (Internet Protocol Address) or MAC address (English: Media Access Control Address), etc.

[0035] However, since device feature information is likely to be forged or leaked, the IoT device management platform may provide services to IoT devices of users who do not have service permissions, resulting in reduced operational security of the IoT device management platform.

[0036] In order to solve the above problems, the present disclosure provides an Internet of Things platform control solution. Figure 1FIG. 1 is a schematic diagram showing an implementation scenario of an Internet of Things platform control method provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the implementation scenario 100 includes a first server 101 and a second server 102; wherein the first server 101 can be a server for deploying an IoT device management platform, wherein the IoT device management platform can be deployed in the form of a private cloud or an edge node; the second server 102 can be a server of the IoT device management platform supplier, and by way of example, the second server can be an operation and maintenance server of the IoT device management platform supplier.

[0037] like Figure 1 As shown, when executing the Internet of Things platform control solution provided by the embodiment of the present disclosure, the first server 101 and the second server 102 establish a wireless or wired link to implement the Internet of Things platform control solution provided by the embodiment of the present disclosure.

[0038] Figure 2 A flowchart of an Internet of Things platform control method of an exemplary embodiment of the present disclosure is shown. The method can be applied to a first server in which an Internet of Things device management platform is deployed, such as Figure 2 As shown, the method of the embodiment of the present disclosure may include:

[0039] Step S201, in response to receiving a service request sent by a user device, obtaining an authorization code of the certificate to be verified in the service request;

[0040] Step S202, generating a certificate acquisition request based on the authorization code of the certificate to be verified, and sending the certificate acquisition request to a second server of the IoT device management platform provider;

[0041] Step S203: If the target authorization certificate associated with the authorization code of the certificate to be verified is received and returned by the second server, the target authorization certificate is stored, and based on the target authorization certificate, the IoT device management platform is controlled to provide business services for the IoT device;

[0042] After successfully verifying the authorization code of the certificate to be verified, the second server returns the target authorization certificate to the first server.

[0043] To sum up, the Internet of Things platform control method provided by the embodiment of the present disclosure can obtain the authorization code of the certificate to be verified in the service request in response to receiving the service request sent by the user device; then, generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to the second server of the Internet of Things device management platform supplier; further, if the target authorization certificate associated with the authorization code of the certificate to be verified returned by the second server is received, the target authorization certificate is stored, and the Internet of Things device management platform is controlled based on the target authorization certificate to provide business services for the Internet of Things device; the user's Internet of Things device management platform usage rights can be verified based on the certificate authorization code. The certificate authorization code is a platform usage right identifier generated by the Internet of Things device management platform supplier for users with Internet of Things device management platform usage rights. It is not easy to be stolen or forged, and can ensure the reliability and security of the authentication of the Internet of Things device management platform usage rights.

[0044] The following Figure 2 The specific implementation methods of each step in the embodiment shown are described in detail:

[0045] In step S201, the first server may obtain the authorization code of the certificate to be verified in the service request in response to receiving the service request sent by the user equipment.

[0046] In the embodiments of the present disclosure, the user device may be an electronic device used by a user who utilizes an IoT device management platform to provide business services for the IoT device. For example, when the IoT device is a vehicle-mounted device, the user device may be an electronic device of a vehicle-mounted system developer installed in the vehicle-mounted device; or, when the IoT device is an electronic water meter, the user device may be an electronic device of a water plant.

[0047] It should be noted that in the embodiments of the present disclosure, when a user needs to provide business services for the user's IoT device through the IoT device management platform, an authorization request can be sent to the second server of the IoT device management platform supplier through the user device, and when the second server determines that the user information carried in the authorization request is an authorized user, a certificate authorization code and an authorization certificate associated with the certificate authorization code are generated, wherein the second server can store the certificate authorization code and the authorization certificate associated with the certificate authorization code in the authorized certificate information, and send the certificate authorization code to the user device, so as to authenticate the legitimacy of the user when the user starts the IoT device management platform to provide services for the user's IoT device; it can be understood that an authorized user is a user who has obtained commercial use rights to the IoT device management platform.

[0048] Typically, the authorization certificate may include the management and control information of the IoT device management platform. The management and control information of the IoT device management platform may include: the service validity period of the IoT device management platform, the number of registrable IoT devices allowed to be registered and managed in the IoT device management platform, the number of operable service instances allowed to run in the IoT device management platform, as well as the resource configuration information associated with each operable service instance, the service limitation indicators of the service instance, etc.; it can be understood that the authorized user is a user who has successfully purchased the service rights of the IoT device management platform through commercial channels.

[0049] Among them, the service instance is the core business service unit of the Internet of Things device management platform. The service instance is used to manage and control the processes of Internet of Things device registration, Internet of Things device login, Internet of Things device data collection and reporting, and Internet of Things control command issuance of the Internet of Things device management platform users. At the same time, the service instance can also provide the Internet of Things device with an application programming interface (API) of the Internet of Things business service system; the configurable resource information of each service instance may include information such as memory, CPU and / or network resources allocated to each service instance; the service limitation indicator is the upper limit of the concurrent capacity of the allowed service instance, and the service indicator may include: the number of Internet of Things devices that can be logged in at the same time, the number of Internet of Things devices that can be connected at the same time, the data reporting concurrency allowed to be reported at the same time, and / or the control instruction issuance concurrency allowed to issue control commands at the same time.

[0050] It can be understood that in the embodiments of the present disclosure, since the resources of the IoT device management platform are limited, limiting the upper limit of the concurrent capacity of service instances can prevent the service instances from providing services to a large number of IoT devices at the same time when resources are limited, which may cause service crashes. This can improve the smoothness and reliability of the IoT device management platform in providing business services to IoT devices.

[0051] In an optional implementation, the user device may generate a service request based on the authorization code of the certificate to be verified input by the user in response to a service triggering operation, and send the service request to the first server, wherein the first server may obtain the authorization code of the certificate to be verified in the service request in response to receiving the service request sent by the user device.

[0052] In step S202, the first server may generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to the second server of the IoT device management platform provider.

[0053] In the embodiment of the present disclosure, the certificate acquisition request is used to request the second server to verify the authorization code of the certificate to be verified, and return the target authorization certificate associated with the authorization code of the certificate to be verified to the first server after the verification is successful.

[0054] In an optional implementation, the process in which the first server generates a certificate acquisition request based on the authorization code of the certificate to be verified and sends the certificate acquisition request to the second server of the IoT device management platform supplier may include: the first server encrypts the authorization code of the certificate to be verified, generates a certificate acquisition request, and sends the certificate acquisition request to the second server. The way in which the first server encrypts the authorization code of the certificate to be verified may include symmetric encryption or asymmetric encryption, etc., which is not limited in the embodiments of the present disclosure.

[0055] It should be noted that in the embodiment of the present disclosure, after the second server receives the certificate acquisition request sent by the first server, it can query the authorized certificate information, and when it is determined that there is an authorization code of the certificate to be verified in the authorized certificate information, the authorization certificate associated with the authorization code of the certificate to be verified is determined as the target authorization certificate, and the target authorization certificate is sent to the first server.

[0056] It can be understood that when it is determined that there is a certificate authorization code to be verified in the authorized certificate information, it can be determined that the certificate authorization code to be verified is an illegal certificate authorization code, and the second server can return the certificate authorization code verification failure information to the first server, wherein, after the first server receives the certificate authorization code verification failure information, it can return the verification failure information to the user device to prompt the user that the certificate authorization code to be verified is an illegal certificate authorization code.

[0057] In step S203, if the target authorization certificate associated with the authorization code of the certificate to be verified is received and returned by the second server, the target authorization certificate is stored, and the Internet of Things device management platform is controlled based on the target authorization certificate to provide business services for the Internet of Things device.

[0058] In the embodiment of the present disclosure, after successfully verifying the authorization code of the certificate to be verified, the second server returns the target authorization certificate to the first server.

[0059] In an optional implementation, the process of storing the target authorization certificate by the first server may include: the first server encrypts the device feature information of the first server and the target authorization certificate and stores them in a database of the first server. The device feature information of the first server may include the IP address and / or MAC address of the first server.

[0060] It should be noted that in the embodiments of the present disclosure, in order to achieve the orderly operation of the Internet of Things device management platform, the Internet of Things device management platform may also include an authorization client unit and an operation and maintenance unit, wherein the authorization client unit is used to execute the target authorization certificate acquisition method provided in the above embodiments, and the authorization client unit is also used to control the Internet of Things device management platform to provide business services for the Internet of Things devices based on the target authorization certificate. The process in which the authorization client unit controls the Internet of Things device management platform to provide business services for the Internet of Things devices based on the target authorization certificate is implemented based on the operation and maintenance unit.

[0061] For example, Figure 3 As shown, Figure 3 A structural diagram of an Internet of Things device management platform provided by an embodiment of the present disclosure is shown. The Internet of Things device management platform 300 includes an authorization client unit 301, an operation and maintenance unit 302, and a database 303. The authorization client unit 301 can generate a certificate acquisition request based on the authorization code of the certificate to be verified after receiving a service request sent by a user device, and send the certificate acquisition request to the second server by calling the certificate authorization interface in the second server. If the authorization client unit 301 obtains the target authorization certificate from the second server, the authorization certificate can be stored in the database 303.

[0062] Among them, the process of the authorization client unit controlling the Internet of Things device management platform to provide business services for the Internet of Things devices based on the target authorization certificate may include: the authorization client unit 301 obtains the number of executable service instances in the target authorization certificate, and the resource configuration information associated with each executable service instance, and sends the number of executable service instances and the resource configuration information associated with each executable service instance to the operation and maintenance unit 302. The operation and maintenance unit 302 can create a corresponding number of executable instances according to the number of executable service instances, and configure resources for each created executable instance according to the resource configuration information associated with each executable service instance.

[0063] Furthermore, the authorization client unit 301 can obtain the service limitation index of the service instance in the target authorization certificate, and determine the service limitation index of each executable service instance based on the number of executable service instances and the service limitation index. At the same time, the authorization client unit 301 can send the service limitation index of each executable service instance to the corresponding service instance 304, so that the service instance can limit the service volume when the actual service volume exceeds the service limitation index.

[0064] Among them, the process of authorizing the client unit to determine the service limitation index of each executable service instance based on the number of executable service instances and the service limitation index may include: determining the ratio of the service limitation index to the number of executable service instances to obtain the service limitation index of each executable service instance.

[0065] Alternatively, the process of determining the service limitation index of each operable service instance according to the number of operable service instances and the service limitation index by the authorized client unit may include: determining the service limitation index of each operable service instance according to the number of operable service instances, the amount of resources of each operable service instance, and the service limitation index; wherein, the process of determining the service limitation index of each operable service instance according to the number of operable service instances, the amount of resources of each operable service instance, and the service limitation index may include: determining the amount of resources of each operable service instance, the resource proportion of the total amount of resources of all operable service instances, and determining the service limitation index of each operable service instance as the product of the service limitation index and the resource proportion of each operable service instance.

[0066] For example, for the data reporting concurrency in the service limit indicator, if the data reporting concurrency is 1000, the number of runnable service instances is 2, and the resource proportion of the first service instance is 3 / 5, then it can be determined that the data reporting concurrency of the first service instance is 600; similarly, if the resource proportion of the second service instance is 2 / 5, then it can be determined that the data reporting concurrency of the second service instance is 400.

[0067] It should be noted that in the embodiment of the present disclosure, the user of the Internet of Things device management platform can apply to update the information in the authorization certificate. The user device of the Internet of Things device management platform can send a certificate update request to the second server, and generate a new certificate authorization code after the update is successful, and store the updated certificate authorization code and the updated authorization certificate in the authorized certificate information, and send the updated certificate authorization code to the user device, so that the user can request the Internet of Things device management platform to use the updated authorization certificate to provide business services for the user's Internet of Things device.

[0068] In an optional implementation, the user device can generate a service update request according to the updated certificate authorization code to be verified input by the user in response to obtaining the service update operation, and send the service update request to the first server. The first server can also obtain the updated certificate authorization code to be verified in the service update request in response to receiving the service update request sent by the user device; then, generate an updated certificate acquisition request based on the updated certificate authorization code to be verified, and send the updated certificate acquisition request to the second server; further, if the updated target authorization certificate associated with the updated certificate authorization code returned by the second server is received, the updated target authorization certificate is stored. When the user of the IoT device management platform needs to update the service content of the platform, the first server can obtain the updated authorization certificate by remote calling, without the need for the operation and maintenance personnel to manually set the update, which can reduce the difficulty and labor cost of updating the authorization certificate, simplify the update cost of the authorization certificate, and improve the update efficiency of the authorization certificate; at the same time, after the authorization certificate is updated, there is no need to restart the first server, which can prevent the impact of restarting the first server on the current business and improve the reliability of the current business.

[0069] It can be understood that, in the embodiments of the present disclosure, the first server can also obtain the updated certificate authorization code to be verified in the service update request in response to receiving the service update request sent by the user device. The process can refer to the process in which the first server obtains the certificate authorization code to be verified in the service request in response to receiving the service request sent by the user device in the above embodiment; the process in which the first server generates an updated certificate acquisition request based on the updated certificate authorization code to be verified, and sends the updated certificate acquisition request to the second server can refer to the process in which the certificate acquisition request is generated based on the certificate authorization code to be verified, and the certificate acquisition request is sent to the second server of the Internet of Things device management platform supplier; the process in which the first server stores the updated target authorization certificate can refer to the process in which the first server stores the target authorization certificate, which is not elaborated in the embodiments of the present disclosure.

[0070] It can be understood that after the authorization certificate is updated, the first server can provide services for the Internet of Things devices of the Internet of Things management platform users based on the updated authorization certificate; wherein the updated authorization certificate may include: the updated number of executable service instances, and the resource configuration information of each updated executable service instance; or, the updated authorization certificate may include: the updated resource configuration information of the currently running service instance; the updated authorization certificate may also include: the updated service restriction indicators and / or the updated service validity period.

[0071] In an optional implementation, the authorization client unit in the first server can obtain the updated number of executable service instances in the updated target authorization certificate; then, the authorization client unit can obtain the current number of executable service instances in the first server based on the operation and maintenance unit; further, if the updated number of executable service instances is different from the current number of executable service instances, the number of service instances in the first server is adjusted based on the updated number of executable service instances. After the information included in the authorization certificate indicates that the number of executable service instances has been updated, the IoT device management platform can automatically update the number of executable service instances without the need for the operation and maintenance personnel to manually set the update, which can reduce the difficulty and labor cost of updating the number of service instances and improve the efficiency of updating the number of service instances.

[0072] It should be noted that, in the embodiment of the present disclosure, the process of authorizing the client unit based on the updated number of executable service instances may include: if the updated number of executable service instances is greater than the current number of running service instances, then the difference between the updated number of executable service instances and the current number of running service instances is determined as the number of service instances to be added, and the number of service instances to be added is sent to the operation and maintenance unit so that the operation and maintenance unit adds the corresponding number of service instances; or, if the updated number of executable service instances is less than the current number of running service instances, then the difference between the updated number of executable service instances and the current number of running service instances is determined as the number of service instances to be closed, and the number of service instances to be closed is sent to the operation and maintenance unit so that the operation and maintenance unit closes the corresponding number of service instances.

[0073] It can be understood that in the embodiment of the present disclosure, after the number of executable service instances is updated, the first server can also perform resource configuration for each updated executable service instance according to the resource configuration information of each updated executable service instance contained in the updated authorization certificate. The authorization client unit can send the resource configuration information of each updated executable service instance to the operation and maintenance unit, and the operation and maintenance unit can configure resources for each updated executable instance according to the resource configuration information of each updated executable service instance.

[0074] In an optional implementation, the authorization client unit in the first server can obtain the updated resource configuration information of the currently running service instance in the first server in the updated target authorization certificate; then, the authorization client unit can obtain the current resource configuration information of the currently running service instance in the first server based on the operation and maintenance unit; further, if the updated resource configuration information is different from the current resource configuration information, the authorization client unit can adjust the resource quantity of the currently running service instance based on the updated resource configuration information by the operation and maintenance unit. After the information contained in the authorization certificate indicates that the resource configuration information of the currently running service instance in the first server has been updated, the Internet of Things device management platform can automatically update the resource configuration quantity of the currently running service instance without the need for the operation and maintenance personnel to manually set the update, which can reduce the difficulty and labor cost of updating the resource configuration information of the currently running service instance in the first server and improve the efficiency of updating the resource configuration quantity of the service instance.

[0075] It can be understood that, in the embodiments of the present disclosure, the authorization client unit can adjust the resource amount of the currently running service instance based on the updated resource configuration information of the operation and maintenance unit, and the process can include: sending the updated resource configuration information of the currently running service instance to the operation and maintenance unit, so that the operation and maintenance unit adjusts the resource amount of the currently running service instance to the updated resource amount indicated by the updated resource configuration information of the currently running service instance according to the updated resource configuration information of the currently running service instance.

[0076] In an optional implementation, the authorization client unit in the first server can obtain the updated service restriction index in the updated target authorization certificate; then, the authorization client unit can determine the updated service restriction index associated with each currently running service instance based on the number of currently running service instances in the first server and the updated service restriction index, wherein each currently running service instance is used to regulate the business volume provided by each currently running service instance based on the updated service restriction index. It can be understood that the authorization client unit can send the updated service restriction index associated with each currently running service instance to the corresponding currently running service instance, so that each currently running service instance is used to regulate the business volume provided by each currently running service instance based on the updated service restriction index. After the information contained in the authorization certificate indicates that the service restriction index of the currently running service instance has been updated, the Internet of Things device management platform can automatically determine and update the service restriction index of each currently running service instance, without the need for the operation and maintenance personnel to manually set the update, which can reduce the difficulty and labor cost of updating the service restriction index of the service instance, and improve the update efficiency of the service restriction index of each currently running service instance.

[0077] Among them, the authorization client unit can determine the updated service restriction indicator associated with each currently running service instance based on the number of currently running service instances in the first server and the updated service restriction indicator. The process can refer to the above embodiment, in which the authorization client unit determines the service restriction indicator of each executable service instance based on the number of executable service instances and the service restriction indicator. The present disclosed embodiment does not elaborate on this.

[0078] In an optional implementation, the process of the first server determining the updated service restriction index associated with each currently running service instance based on the number of currently running service instances in the first server and the updated service restriction index may include: determining the updated service restriction index associated with each currently running service instance based on the updated service restriction index, the number of currently running service instances in the first server, and the current resource configuration information of the currently running service instances in the first server. In the process of determining the service restriction index of each service instance, the amount of resources owned by each service instance may be considered to improve the rationality of the service restriction index determined for each service instance, thereby further improving the service reliability of the IoT management platform for IoT devices.

[0079] Among them, the process in which the first server determines the updated service limitation indicator associated with each currently running service instance based on the updated service limitation indicator, the number of currently running service instances in the first server, and the current resource configuration information of the currently running service instances in the first server can refer to the process in the above-mentioned embodiment, in which the service limitation indicator of each runnable service instance is determined based on the number of runnable service instances, the amount of resources of each runnable service instance, and the service limitation indicator, and this disclosure will not elaborate on this.

[0080] In an optional factual manner, before the first server obtains the updated service restriction index in the updated target authorization certificate, the first server may also: obtain the updated service validity period in the updated target authorization certificate; wherein, if the current moment exceeds the updated service validity period, the updated service restriction index in the updated target authorization certificate is refused to be obtained. After the information contained in the authorization certificate indicates that the service authorization period has been updated, the IoT device can be provided with services within the updated service authorization period, thereby ensuring the reliability of the IoT management platform's control over the updated service authorization time limit.

[0081] For example, Figure 4 As shown, Figure 4 A flowchart of an Internet of Things platform control method provided by an embodiment of the present disclosure is shown, which mainly includes a flowchart of controlling an Internet of Things device management platform to provide business services for Internet of Things devices based on a target authorization certificate, including:

[0082] Step S401, obtaining the number of executable service instances in the target authorization certificate and resource configuration information associated with each executable service instance;

[0083] Step S402, creating a corresponding number of executable instances according to the number of executable service instances, and configuring resources for each created executable instance according to resource configuration information associated with each executable service instance;

[0084] Step S403, obtaining the service restriction index of the service instance in the target authorization certificate, and determining the service restriction index of each executable service instance according to the number of executable service instances and the service restriction index;

[0085] Step S404, obtaining the service validity period in the target authorization certificate, and determining whether it is within the service validity period;

[0086] Step S405: If it is determined that the service is within the validity period, the service limit indicator of each executable service instance is provided to the corresponding service instance;

[0087] Step S406, determining whether the actual service volume exceeds the service limit index;

[0088] Step S407, if the actual service volume exceeds the service limit index, the service volume is limited;

[0089] Step S408: If the actual service volume does not exceed the service limit indicator, continue to provide services to the IoT device;

[0090] Step S409: If it is determined that the service is not within the validity period, then the service is refused to be provided to the IoT device.

[0091] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the first server. It can be understood that in order to realize the above functions, the first server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0092] The embodiment of the present disclosure can divide the functional units of the first server according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0093] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides an Internet of Things platform control device, which may be a first server or a chip applied to the first server. Figure 5 FIG. 1 shows a schematic block diagram of functional modules of an Internet of Things platform control device according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the Internet of Things platform control device 500 includes:

[0094] The acquisition module 501 is configured to, in response to receiving a service request sent by a user device, acquire an authorization code of the certificate to be verified in the service request;

[0095] A sending module 502 is configured to generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to a second server of the IoT device management platform provider;

[0096] The storage module 503 is configured to store the target authorization certificate if it receives the target authorization certificate associated with the authorization code of the certificate to be verified returned by the second server, and control the Internet of Things device management platform to provide business services for the Internet of Things device based on the target authorization certificate, wherein the second server returns the target authorization certificate to the first server after successfully verifying the authorization code of the certificate to be verified.

[0097] Optionally, the apparatus further includes an updating module 504 configured to:

[0098] In response to receiving a service update request sent by a user device, obtaining an updated authorization code of the certificate to be verified in the service update request;

[0099] Generate an updated certificate acquisition request based on the updated certificate authorization code to be verified, and send the updated certificate acquisition request to the second server;

[0100] If the updated target authorization certificate associated with the updated authorization code of the certificate to be verified and returned by the second server is received, the updated target authorization certificate is stored.

[0101] Optionally, the device further includes an adjustment module 505 configured to:

[0102] In the updated target authorization certificate, obtaining the updated number of executable service instances;

[0103] Obtaining the number of currently running service instances in the first server;

[0104] If the updated number of executable service instances is different from the currently executable service instance number, the number of service instances in the first server is adjusted based on the updated number of executable service instances.

[0105] Optionally, the adjustment module 505 is further configured to:

[0106] In the updated target authorization certificate, obtaining updated resource configuration information of the service instance currently running in the first server;

[0107] Obtaining current resource configuration information of a currently running service instance in the first server;

[0108] If the updated resource configuration information is different from the current resource configuration information, the resource amount of the currently running service instance is adjusted based on the updated resource configuration information.

[0109] Optionally, the apparatus further includes a determining module 506 configured to:

[0110] In the updated target authorization certificate, obtaining an updated service restriction indicator;

[0111] Based on the number of currently running service instances in the first server and the updated service limitation indicator, determine the updated service limitation indicator associated with each currently running service instance, wherein each currently running service instance is used to regulate the business volume provided by each currently running service instance based on the updated service limitation indicator.

[0112] Optionally, the determining module 506 is configured to:

[0113] An updated service limitation indicator associated with each currently running service instance is determined based on the updated service limitation indicator, the number of currently running service instances in the first server, and current resource configuration information of the currently running service instances in the first server.

[0114] Optionally, the device further includes a time limit control module 507 configured to:

[0115] In the updated target authorization certificate, obtaining the updated service validity period;

[0116] If the current time exceeds the updated service validity period, the updated service restriction indicator is refused to be obtained in the updated target authorization certificate.

[0117] Figure 6 Schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown. Figure 6 As shown, the chip 600 includes one or more (including two) processors 601 and a communication interface 602. The communication interface 602 can support the server to perform the data sending and receiving steps in the above image processing method, and the processor 601 can support the server to perform the data processing steps in the above image processing method.

[0118] Optional, such as Figure 6 As shown, the chip 600 also includes a memory 603, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).

[0119] In some embodiments, Figure 6 As shown, the processor 601 performs corresponding operations by calling the operation instructions stored in the memory (the operation instructions may be stored in the operating system). The processor 601 controls the processing operations of any one of the first servers, and the processor may also be called a central processing unit (CPU). The memory 603 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. A portion of the memory 603 may also include NVRAM. For example, in an application, the memory, the communication interface, and the memory are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Figure 6 Various buses are labeled as bus system 604 .

[0120] The method disclosed in the above-mentioned embodiment of the present disclosure can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.

[0121] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0122] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.

[0123] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.

[0124] refer to Figure 7, a block diagram of an electronic device 700 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0125] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0126] A plurality of components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 may be any type of device capable of inputting information to the electronic device 700, and the input unit 706 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 707 may be any type of device capable of presenting information, and may include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 may include but is not limited to a disk, an optical disk. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0127] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the method of the embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the method of the embodiment of the present disclosure by any other appropriate means (e.g., by means of firmware).

[0128] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0129] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0130] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0131] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0132] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0133] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0134] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).

[0135] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A method for controlling an Internet of Things platform, It is characterized in that The method is applied to a first server deploying an Internet of Things device management platform, and includes: In response to receiving a service request sent by a user device, obtaining an authorization code of the certificate to be verified in the service request; Generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to the second server of the IoT device management platform provider; If the target authorization certificate associated with the authorization code of the certificate to be verified is received from the second server, the target authorization certificate is stored, and the Internet of Things device management platform is controlled to provide business services for the Internet of Things devices based on the target authorization certificate, wherein the second server returns the target authorization certificate to the first server after successfully verifying the authorization code of the certificate to be verified.

2. The Internet of Things platform control method according to claim 1, It is characterized in that The method further comprises: In response to receiving a service update request sent by a user device, obtaining an updated authorization code of the certificate to be verified in the service update request; Generate an updated certificate acquisition request based on the updated certificate authorization code to be verified, and send the updated certificate acquisition request to the second server; If the updated target authorization certificate associated with the updated authorization code of the certificate to be verified and returned by the second server is received, the updated target authorization certificate is stored.

3. The Internet of Things platform control method according to claim 2, It is characterized in that The method further comprises: In the updated target authorization certificate, obtaining the updated number of executable service instances; Obtaining the number of currently running service instances in the first server; If the updated number of executable service instances is different from the currently executable service instance number, the number of service instances in the first server is adjusted based on the updated number of executable service instances.

4. The Internet of Things platform control method according to claim 2, It is characterized in that The method further comprises: In the updated target authorization certificate, obtaining updated resource configuration information of the service instance currently running in the first server; Obtaining current resource configuration information of a currently running service instance in the first server; If the updated resource configuration information is different from the current resource configuration information, the resource amount of the currently running service instance is adjusted based on the updated resource configuration information.

5. The Internet of Things platform control method according to claim 2, It is characterized in that The method further comprises: In the updated target authorization certificate, obtaining an updated service restriction indicator; Based on the number of currently running service instances in the first server and the updated service limitation indicator, determine the updated service limitation indicator associated with each currently running service instance, wherein each currently running service instance is used to regulate the business volume provided by each currently running service instance based on the updated service limitation indicator.

6. The Internet of Things platform control method according to claim 5, It is characterized in that The determining, according to the number of currently running service instances in the first server and the updated service restriction indicator, an updated service restriction indicator associated with each currently running service instance includes: An updated service limitation indicator associated with each currently running service instance is determined based on the updated service limitation indicator, the number of currently running service instances in the first server, and current resource configuration information of the currently running service instances in the first server.

7. The Internet of Things platform control method according to claim 5, It is characterized in that Before obtaining the updated service restriction indicator in the updated target authorization certificate, the method further includes: In the updated target authorization certificate, obtaining the updated service validity period; If the current time exceeds the updated service validity period, the updated service restriction indicator is refused to be obtained in the updated target authorization certificate.

8. An Internet of Things platform control device, It is characterized in that The device is a first server for deploying an IoT device management platform, and includes: an acquisition module, configured to, in response to receiving a service request sent by a user device, acquire an authorization code of the certificate to be verified in the service request; A sending module, configured to generate a certificate acquisition request based on the authorization code of the certificate to be verified, and send the certificate acquisition request to a second server of the IoT device management platform provider; The storage module is configured to store the target authorization certificate if it receives the target authorization certificate associated with the authorization code of the certificate to be verified returned by the second server, and control the Internet of Things device management platform to provide business services for the Internet of Things device based on the target authorization certificate, wherein the second server returns the target authorization certificate to the first server after successfully verifying the authorization code of the certificate to be verified.

9. An electronic device, It is characterized in that include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.