CN114374558A - SDK device distribution network quantity control method and system, server side and SDK side - Google Patents

SDK device distribution network quantity control method and system, server side and SDK side Download PDF

Info

Publication number
CN114374558A
CN114374558A CN202210022561.6A CN202210022561A CN114374558A CN 114374558 A CN114374558 A CN 114374558A CN 202210022561 A CN202210022561 A CN 202210022561A CN 114374558 A CN114374558 A CN 114374558A
Authority
CN
China
Prior art keywords
database
product equipment
sdk
http request
mac address
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.)
Granted
Application number
CN202210022561.6A
Other languages
Chinese (zh)
Other versions
CN114374558B (en
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.)
Shanghai Black Eye Intelligent Technology Co ltd
Original Assignee
Shanghai Black Eye Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Black Eye Intelligent Technology Co ltd filed Critical Shanghai Black Eye Intelligent Technology Co ltd
Priority to CN202210022561.6A priority Critical patent/CN114374558B/en
Publication of CN114374558A publication Critical patent/CN114374558A/en
Application granted granted Critical
Publication of CN114374558B publication Critical patent/CN114374558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a system for controlling the distribution network number of an SDK device, a server and an SDK terminal, wherein the SDK is used for controlling the number of product devices, namely, the product devices are checked before production and pre-sale, so that the data identification of products is ensured, and the server is used for matching and recording the device information and the device MAC, so that the strict control of the product number and the control of service authority are ensured, and the purposes that when a customer purchases a certain amount of products, the number of available product services can be effectively and accurately controlled, and the product services are prevented from being enjoyed by illegal users are achieved.

Description

SDK device distribution network quantity control method and system, server side and SDK side
Technical Field
The invention relates to the field of communication, in particular to a method and a system for controlling the distribution network number of SDK equipment, a server side and an SDK side.
Background
At present, robot equipment has become an indispensable part of people's life, but the definitions of robot products on the market regarding user quantity control limits are different, so that it is difficult to accurately control the number of product services that can be provided, and situations easily occur that an illegal user enjoys the product services.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method, a system, a server side and an SDK side for controlling the distribution network number of an SDK device, so as to solve the above technical problems.
In order to achieve the above and other related objects, the present invention provides a method for controlling the distribution network number of an SDK device, where the method includes: constructing a database with the same name as the product equipment end number based on the preset product equipment end number; receiving a first HTTP request which is sent by an SDK end in one or more product equipment ends before production and pre-sale and carries request information; wherein the request information includes: device information and MAC address; legally verifying the first HTTP requests of the equipment ends of the products; if the verification is legal, executing a database idle verification method; if the verification result is illegal, rejecting a first HTTP request of a corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database, so as to judge whether the product equipment end is allowed to access or not by judging whether request information carried by a second HTTP request sent by the SDK end of each product equipment end exists in the MAC address imported into the database or not; and if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address to the database.
In an embodiment of the present invention, the method further includes: receiving a second HTTP request carrying request information sent by an SDK end of one or more product equipment ends; judging whether the request information carried by the second HTTP request corresponding to each product equipment end has the MAC address which is imported into the database or not; if yes, allowing the corresponding product equipment terminal to access; and if not, rejecting the access of the corresponding product equipment terminal.
In an embodiment of the present invention, the device information includes: PID information and secret information.
In an embodiment of the present invention, the verifying the first HTTP request of each product device includes: verifying PID information and secret information in the equipment information corresponding to each product equipment end; if the first HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment terminals are legal; and if not, judging that the first HTTP request of the corresponding product equipment terminal is illegal.
In an embodiment of the present invention, the manner of importing the MAC address of the device end corresponding to the product into the database and correspondingly deducting the name of the database includes: respectively importing the judged MAC addresses of the corresponding product equipment ends into a database; and deducing the denominations of the databases with the corresponding quantity based on the quantity of the databases with the current imported MAC addresses.
In order to achieve the above and other related objects, the present invention provides a method for controlling distribution network number of an SDK device, which is applied to an SDK terminal of a product device terminal, and the method includes: a first HTTP request carrying request information is sent to a server side before production pre-sale so as to be verified by the server side, and the MAC address of the product equipment side is respectively led into a database or the first HTTP request is rejected; wherein the request information includes: device information and MAC address; and sending a second HTTP request carrying the request information to the server end, so that the server can judge whether to allow access by judging whether the corresponding request information has the MAC address which is imported into the database.
To achieve the above and other related objects, the present invention provides a server, comprising: the database module is used for constructing a database with the same name amount as the product equipment end amount based on the preset product equipment end amount; the server communication module is used for receiving a first HTTP request which is sent by an SDK (software development kit) end in one or more product equipment ends before production and pre-sale and carries request information; wherein the request information includes: device information and MAC address; the quantity control module is connected with the database module and the server communication module and is used for carrying out legal verification on the first HTTP requests of the product equipment terminals; if the verification is legal, executing a database idle verification method; if the verification result is illegal, rejecting a first HTTP request of a corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database; if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database; the server communication module is further used for receiving a second HTTP request which is sent by the SDK end of one or more product equipment ends and carries request information; the quantity control module is also used for judging whether the request information carried by the second HTTP request corresponding to each product equipment end has the MAC address which is imported into the database or not; if yes, allowing the corresponding product equipment terminal to access; and if not, rejecting the access of the corresponding product equipment terminal.
In an embodiment of the present invention, the verifying the first HTTP request of each product device includes: verifying PID information and secret information in the equipment information corresponding to each product equipment end; if the first HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment terminals are legal; and if not, judging that the first HTTP request of the corresponding product equipment terminal is illegal.
To achieve the above and other related objects, the present invention provides an SDK terminal applied to a product device, including: the first HTTP request sending module is used for sending a first HTTP request carrying request information to a server end before production pre-sale so as to be verified by the server end, and respectively importing the MAC address of the equipment end of the product into a database or rejecting the first HTTP request; wherein the request information includes: device information and MAC address; and the second HTTP request sending module is used for sending a second HTTP request carrying the request information to the server end so that the server can judge whether to allow access by judging whether the corresponding request information has the MAC address which is imported into the database.
In order to achieve the above and other related objects, the present invention provides a system for controlling the distribution network number of an SDK device, comprising: the system comprises a server end and one or more SDK ends respectively applied to a product equipment end; the server side constructs a database with the same name amount as the product equipment side number based on the preset product equipment side number; each SDK end sends a first HTTP request carrying request information to a server end before production pre-sale; and wherein the request information comprises: device information and MAC address; the server side carries out legal verification on the HTTP requests of the product equipment sides; if the verification is legal, the server side executes a database idle verification method; if the authentication is illegal, the server side rejects the first HTTP request of the corresponding product equipment side; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database; if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database; each SDK end sends a second HTTP request carrying the request information to the server end; the server side judges whether the request information carried by the second HTTP request corresponding to each product equipment side has the MAC address which is imported into the database or not; if yes, allowing the corresponding product equipment terminal to access; and if not, rejecting the access of the corresponding product equipment terminal.
As described above, the invention is a method, a system, a server and an SDK terminal for controlling the distribution network number of an SDK device, and has the following beneficial effects: the invention controls the number of product equipment through the SDK, namely, the product equipment is checked before production and pre-sale to ensure the data identification of the product, and the equipment information is matched and recorded with the equipment MAC through the server terminal to ensure the strict control of the product number and the control of the service authority, thereby realizing that when a customer purchases a certain amount of products, the number of the available product services can be effectively and accurately controlled, and the illegal user is limited to enjoy the product services.
Drawings
Fig. 1 is a schematic structural diagram of a distribution network quantity control system of an SDK device in an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a method for controlling the distribution network number of the SDK device in an embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating a method for controlling the distribution network number of the SDK device in an embodiment of the present invention.
Fig. 4 is a schematic flow chart illustrating a method for controlling the distribution network number of the SDK device in an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an SDK terminal according to an embodiment of the invention.
Fig. 7 is a schematic flow chart illustrating a method for controlling the distribution network number of the SDK device in an embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It is noted that in the following description, reference is made to the accompanying drawings which illustrate several embodiments of the present invention. It is to be understood that other embodiments may be utilized and that mechanical, structural, electrical, and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description is not to be taken in a limiting sense, and the scope of embodiments of the present invention is defined only by the claims of the issued patent. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. Spatially relative terms, such as "upper," "lower," "left," "right," "lower," "below," "lower," "over," "upper," and the like, may be used herein to facilitate describing one element or feature's relationship to another element or feature as illustrated in the figures.
Throughout the specification, when a part is referred to as being "connected" to another part, this includes not only a case of being "directly connected" but also a case of being "indirectly connected" with another element interposed therebetween. In addition, when a certain part is referred to as "including" a certain component, unless otherwise stated, other components are not excluded, but it means that other components may be included.
The terms first, second, third, etc. are used herein to describe various elements, components, regions, layers and/or sections, but are not limited thereto. These terms are only used to distinguish one element, component, region, layer or section from another element, component, region, layer or section. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the scope of the present invention.
Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," and/or "comprising," when used in this specification, specify the presence of stated features, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, operations, elements, components, items, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions or operations are inherently mutually exclusive in some way.
The invention provides a method for controlling the distribution network number of SDK equipment, which controls the number of product equipment through the SDK, namely, product equipment is checked before production and pre-sale, the data identification of a product is ensured, equipment information and equipment MAC are matched and recorded through a server, the strict control of the product number and the control of service authority are ensured, and when a customer purchases a certain amount of products, the number of available product services can be effectively and accurately controlled, and the illegal user is limited from enjoying product services.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that those skilled in the art can easily implement the embodiments of the present invention. The present invention may be embodied in many different forms and is not limited to the embodiments described herein.
As shown in fig. 1, a schematic structural diagram of a distribution network quantity control system of an SDK device in the embodiment of the present application is shown.
The server 11 and one or more SDK terminals 121 respectively applied to a product equipment terminal 12;
in this embodiment, the product device terminal 10 may be applied to a terminal and may also be applied to a robot, where the terminal may be various electronic devices that have a display screen and support web browsing, including but not limited to a smart phone, a tablet computer, an E-book reader, an MP3 player (Moving Picture E interface display parts Group Audio Layer III, motion Picture experts compression standard Audio Layer 3), an MP4(Moving Picture E interface display parts Group Audio Layer IV, motion Picture experts compression standard Audio Layer 4) player, a laptop computer, a desktop computer, and the like.
The server 11 constructs a database with the same name as the product equipment end number based on the preset product equipment end number; each SDK terminal 121 sends a first HTTP request carrying request information to the server terminal 11 before production pre-sale; and wherein the request information comprises: device information and MAC address; the server 11 legally verifies the HTTP request of each product device 12; if the verification is legal, the server 11 executes a database idle verification method; if the verification result is illegal, the server 11 rejects the first HTTP request of the corresponding product device 12; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if so, importing the MAC address of the corresponding product equipment end 12 into a database, and correspondingly deducting the name of the database; if not, rejecting the first HTTP request of the corresponding product equipment end 12, and stopping importing the MAC address to the database; each SDK end 121 sends a second HTTP request carrying the request information to the server end 11; the server 11 determines whether a MAC address that has been imported into the database exists in request information carried in a second HTTP request corresponding to each product device 12; if yes, allowing the corresponding product equipment end 12 to access; if not, the corresponding product equipment end 12 is refused to access.
Similar to the principle of the embodiment, the invention provides a method for controlling the distribution network number of the SDK equipment.
Specific embodiments are provided below in conjunction with the attached figures:
fig. 2 shows a schematic flow chart of a method for controlling the distribution network number of the SDK device in the embodiment of the present invention.
Applied to a server side, the method comprises the following steps:
step S21: and constructing a database with the same name amount as the product equipment end amount based on the preset product equipment end amount.
Optionally, the factory sends the number of product equipment ends predetermined by the client to the server, and the server constructs a database with the same name as the number of the product equipment ends according to the number of the product equipment ends predetermined by the client; for example, if the predetermined number is 9, the server constructs 9 databases, and the name of the database is 9.
Similarly, a database may be constructed for a plurality of clients, one total set of databases for each client, with each set of databases having a predetermined number of databases for each user.
Step S22: receiving a first HTTP request carrying request information sent by an SDK terminal in one or more product equipment terminals before production pre-sale.
In detail, the request information includes: device information and MAC address.
Optionally, when the product device side needs to perform a networking procedure before sale, a first HTTP request carrying request information needs to be sent to the server side to request configuration information of the product.
Optionally, the device information includes: PID information and secret information.
Step S23: and legally verifying the first HTTP requests of the equipment terminals of the products.
Optionally, the first HTTP request of each product device end is legally verified according to the request information sent by each product end.
Optionally, the device information of the device side of each product is legally verified.
Optionally, the verifying the first HTTP request of each product device side includes: verifying PID information and secret information in the equipment information corresponding to each product equipment end; if the first HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment terminals are legal; and if not, judging that the first HTTP request of the corresponding product equipment terminal is illegal.
Step S241: and if the verification is legal, executing the database idle verification method.
Step S2411: judging whether the name of the current database is greater than 0;
step S24121: if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database, so as to judge whether the product equipment end is allowed to access or not by judging whether request information carried by a second HTTP request sent by the SDK end of each product equipment end exists in the MAC address imported into the database or not;
optionally, the introducing the MAC address of the device end corresponding to the product into the database, and the corresponding manner of deducting the name of the database includes: respectively importing the judged MAC addresses of the corresponding product equipment ends into a database; and deducing the denominations of the databases with the corresponding quantity based on the quantity of the databases with the current imported MAC addresses. For example, if a MAC address of a device is imported into a database, the name of the database is reduced by one, and no MAC address is added to the database, that is, only one MAC address is imported into each database.
Step S24122: and if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address to the database.
Optionally, if the denomination is 0, it indicates that the MAC addresses of a predetermined number of products have been imported, and other product device ends are likely not originally predetermined product device ends and cannot enjoy corresponding product services, so that the first HTTP request of the corresponding product device end is rejected, and the import of the MAC addresses into the database is stopped.
Step S242: and if the verification result is illegal, rejecting the first HTTP request of the corresponding product equipment terminal.
In this step, if the product is verified to be illegal, it is indicated that the product equipment side is not the object for performing the service.
Optionally, as shown in fig. 3, to better explain whether to allow the product device end to access is determined by determining whether the request information carried in the second HTTP request sent by the SDK end of each product device end exists in the MAC address that has been imported into the database, the method further includes:
step S31: receiving a second HTTP request carrying request information and sent by an SDK end of one or more product equipment ends;
it should be noted that the second HTTP request generally refers to a networking request that the user needs to network when using, rather than the HTTP request sent before production pre-sale; the MAC address of the product device may or may not have been imported into the database.
Step S32: judging whether the request information carried by the second HTTP request corresponding to each product equipment end has the MAC address which is imported into the database or not;
optionally, the PID information and the MAC address carried by the second HTTP request are checked, and if the MAC address is not in the database, the product device is rejected from networking.
Step S331: if yes, allowing the corresponding product equipment terminal to access;
step S332: and if not, rejecting the access of the corresponding product equipment terminal.
Fig. 4 shows a schematic flow chart of a method for controlling the distribution network number of the SDK device in the embodiment of the present invention.
The SDK terminal is applied to an application equipment terminal;
the method comprises the following steps:
step 41: a first HTTP request carrying request information is sent to a server side before production pre-sale so as to be verified by the server side, and the MAC address of the product equipment side is respectively led into a database or the first HTTP request is rejected; wherein the request information includes: device information and MAC address;
optionally, when the product device side needs to perform a networking procedure before sale, the SDK side needs to send a first HTTP request carrying the request information to the server side to request the configuration information of the product.
Optionally, the device information includes: PID information and secret information.
Step S42: and sending a second HTTP request carrying the request information to the server end, so that the server can judge whether to allow access by judging whether the corresponding request information has the MAC address which is imported into the database.
It should be noted that the second HTTP request generally refers to a networking request that the user needs to network when using, rather than the HTTP request sent before production pre-sale; the MAC address of the product device may or may not have been imported into the database. If the network is imported into the database, the network distribution is successful, and if the network is not imported, the network distribution fails.
Fig. 5 shows a schematic structural diagram of a server in the embodiment of the present invention.
The server side includes:
the database module 51 is used for constructing a database with the same name amount as the product equipment end amount based on the preset product equipment end amount; and is responsible for updating the name of the current database in time; the server communication module 52 is configured to receive a first HTTP request carrying request information sent by an SDK terminal of the one or more product device terminals before production pre-sale; wherein the request information includes: device information and MAC address; the quantity control module 53 is connected with the database module 51 and the server communication module 52 and is used for legally verifying the first HTTP requests of the product equipment terminals; if the verification is legal, executing a database idle verification method; if the verification result is illegal, rejecting a first HTTP request of a corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if yes, the MAC address of the corresponding product device end is imported into the database, and the name of the database is correspondingly deducted, so that the database module 51 updates the name of the current database in time; if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database; the server communication module 52 is further configured to receive a second HTTP request carrying request information and sent by an SDK end of one or more product device ends; the quantity control module 53 is further configured to determine whether a MAC address that has been imported into the database exists in request information carried in a second HTTP request corresponding to each product device end; if yes, allowing the corresponding product equipment terminal to access; and if not, rejecting the access of the corresponding product equipment terminal.
Optionally, the verifying the first HTTP request of each product device side includes: verifying PID information and secret information in the equipment information corresponding to each product equipment end; if the first HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment terminals are legal; and if not, judging that the first HTTP request of the corresponding product equipment terminal is illegal.
Since the implementation principle of the server has been described in the foregoing embodiment, repeated description is omitted here.
Fig. 6 shows a schematic structural diagram of an SDK terminal in the embodiment of the present invention.
The SDK terminal is applied to a product device terminal and comprises:
a first HTTP request sending module 61, configured to send a first HTTP request carrying request information to a server before production pre-sale, so that the server performs verification, and separately introduce the MAC address of the device end of the product into a database or reject the first HTTP request; wherein the request information includes: device information and MAC address;
a second HTTP request sending module 62, configured to send a second HTTP request carrying the request information to the server, so that the server determines whether to allow access by determining whether the corresponding request information includes an MAC address that has been imported into the database.
Since the implementation principle of the SDK terminal has been described in the foregoing embodiment, repeated description is omitted here.
In order to better describe the method for controlling the distribution network number of the SDK device, the following specific embodiments are provided for explanation;
example 1: a method for controlling the distribution network number of SDK equipment; fig. 7 is a schematic flow chart of a method for controlling the distribution network number of the SDK device in this embodiment.
The specific implementation principle comprises the following steps:
1. when the number of purchased products of a customer is N, the server opens a database with the number of N.
2. When the product is in a networking process of pre-sale production, the SDK of the product sends an HTTP request, uploads PID information and secret, and requests configuration information of the product.
3. The server verifies the product PID and Secret; if the request is legal, recording the MAC address of the requested equipment to a database, wherein the number of the MAC address is-1, and the links of subsequent products need to take the MAC address as the unique identifier of the server; when the name is 0, the database is closed and the MAC address is stopped to be led in, and if the name is illegal, the server directly rejects the link.
4. When the product is networked to the user, the robot connects to wifi and requests to connect to the server, the server checks its PID and MAC, and rejects the product networking if the MAC is not in the database.
In the scheme, the authority of the data is judged by utilizing the PID information of the product codes and the MAC addresses, and the strict control of the product quantity and the control of the service authority are ensured.
In summary, the method, the system, the server and the SDK end for controlling the distribution network number of the SDK device control the number of product devices through the SDK, that is, check the product devices before production and pre-sale to ensure the data identification of the product, and match and record the device information and the device MAC through the server to ensure the strict control of the product number and the control of the service authority, so that when a customer purchases a certain amount of products, the number of available product services can be effectively and accurately controlled, and the illegal user is restricted from enjoying the product services. Therefore, the present invention effectively overcomes various disadvantages of the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles of the present invention and its efficacy, and are not to be construed as limiting the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A method for controlling the distribution network number of SDK equipment is applied to a server side, and comprises the following steps:
constructing a database with the same name as the product equipment end number based on the preset product equipment end number;
receiving a first HTTP request which is sent by an SDK end in one or more product equipment ends before production and pre-sale and carries request information; wherein the request information includes: device information and MAC address;
legally verifying the first HTTP requests of the equipment ends of the products;
if the verification is legal, executing a database idle verification method;
if the verification result is illegal, rejecting a first HTTP request of a corresponding product equipment end;
the database idle verification method comprises the following steps:
judging whether the name of the current database is greater than 0;
if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database, so as to judge whether the product equipment end is allowed to access or not by judging whether request information carried by a second HTTP request sent by the SDK end of each product equipment end exists in the MAC address imported into the database or not;
and if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address to the database.
2. The method for controlling the number of distribution networks of the SDK device according to claim 1, wherein the method further comprises:
receiving a second HTTP request carrying request information sent by an SDK end of one or more product equipment ends;
judging whether the request information carried by the second HTTP request corresponding to each product equipment end has the MAC address which is imported into the database or not;
if yes, allowing the corresponding product equipment terminal to access;
and if not, rejecting the access of the corresponding product equipment terminal.
3. The method for controlling the distribution network number of the SDK device according to claim 1 or 2, wherein the device information includes: PID information and secret information.
4. The method for controlling the distribution network number of the SDK device according to claim 3, wherein the verifying the first HTTP request of each product device side includes:
verifying PID information and secret information in the equipment information corresponding to each product equipment end;
if the first HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment terminals are legal;
and if not, judging that the first HTTP request of the corresponding product equipment terminal is illegal.
5. The method for controlling the distribution network number of the SDK device according to claim 1 or 2, wherein the step of importing the MAC address of the device end corresponding to the product into the database and the step of correspondingly deducting the denomination of the database comprises:
respectively importing the judged MAC addresses of the corresponding product equipment ends into a database;
and deducing the denominations of the databases with the corresponding quantity based on the quantity of the databases with the current imported MAC addresses.
6. A method for controlling the distribution network number of SDK equipment is applied to an SDK end of a product equipment end, and comprises the following steps:
a first HTTP request carrying request information is sent to a server side before production pre-sale so as to be verified by the server side, and the MAC address of the product equipment side is respectively led into a database or the first HTTP request is rejected; wherein the request information includes: device information and MAC address;
and sending a second HTTP request carrying the request information to the server end, so that the server can judge whether to allow access by judging whether the corresponding request information has the MAC address which is imported into the database.
7. A server side, comprising:
the database module is used for constructing a database with the same name amount as the product equipment end amount based on the preset product equipment end amount;
the server communication module is used for receiving a first HTTP request which is sent by an SDK (software development kit) end in one or more product equipment ends before production and pre-sale and carries request information; wherein the request information includes: device information and MAC address;
the quantity control module is connected with the database module and the server communication module and is used for carrying out legal verification on the first HTTP requests of the product equipment terminals; if the verification is legal, executing a database idle verification method; if the verification result is illegal, rejecting a first HTTP request of a corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database; if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database;
the server communication module is further used for receiving a second HTTP request which is sent by the SDK end of one or more product equipment ends and carries request information;
the quantity control module is also used for judging whether the request information carried by the second HTTP request corresponding to each product equipment end has the MAC address which is imported into the database or not; if yes, allowing the corresponding product equipment terminal to access; and if not, rejecting the access of the corresponding product equipment terminal.
8. The server side according to claim 7, wherein the verifying the first HTTP request of each product device side comprises:
verifying PID information and secret information in the equipment information corresponding to each product equipment end;
if the first HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment terminals are legal;
and if not, judging that the first HTTP request of the corresponding product equipment terminal is illegal.
9. An SDK terminal, applied to a product device terminal, includes:
the first HTTP request sending module is used for sending a first HTTP request carrying request information to a server end before production pre-sale so as to be verified by the server end, and respectively importing the MAC address of the equipment end of the product into a database or rejecting the first HTTP request; wherein the request information includes: device information and MAC address;
and the second HTTP request sending module is used for sending a second HTTP request carrying the request information to the server end so that the server can judge whether to allow access by judging whether the corresponding request information has the MAC address which is imported into the database.
10. A system for controlling the distribution network quantity of SDK equipment is characterized by comprising:
the system comprises a server end and one or more SDK ends respectively applied to a product equipment end;
the server side constructs a database with the same name amount as the product equipment side number based on the preset product equipment side number; each SDK end sends a first HTTP request carrying request information to a server end before production pre-sale; and wherein the request information comprises: device information and MAC address; the server side carries out legal verification on the HTTP requests of the product equipment sides; if the verification is legal, the server side executes a database idle verification method; if the authentication is illegal, the server side rejects the first HTTP request of the corresponding product equipment side; the database idle verification method comprises the following steps: judging whether the name of the current database is greater than 0; if so, importing the MAC address of the corresponding product equipment end into a database, and correspondingly deducting the name of the database; if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database; each SDK end sends a second HTTP request carrying the request information to the server end; the server side judges whether the request information carried by the second HTTP request corresponding to each product equipment side has the MAC address which is imported into the database or not; if yes, allowing the corresponding product equipment terminal to access; and if not, rejecting the access of the corresponding product equipment terminal.
CN202210022561.6A 2022-01-10 2022-01-10 SDK equipment distribution network quantity control method, system, server side and SDK side Active CN114374558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210022561.6A CN114374558B (en) 2022-01-10 2022-01-10 SDK equipment distribution network quantity control method, system, server side and SDK side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210022561.6A CN114374558B (en) 2022-01-10 2022-01-10 SDK equipment distribution network quantity control method, system, server side and SDK side

Publications (2)

Publication Number Publication Date
CN114374558A true CN114374558A (en) 2022-04-19
CN114374558B CN114374558B (en) 2023-06-30

Family

ID=81144720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210022561.6A Active CN114374558B (en) 2022-01-10 2022-01-10 SDK equipment distribution network quantity control method, system, server side and SDK side

Country Status (1)

Country Link
CN (1) CN114374558B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195975A1 (en) * 2003-01-21 2005-09-08 Kevin Kawakita Digital media distribution cryptography using media ticket smart cards
JP2006039961A (en) * 2004-07-27 2006-02-09 Carlex Co Ltd Sales support device, sales support method, sales support system and program
US20060085298A1 (en) * 2004-07-30 2006-04-20 Kimberly Inskeep Method of controlling product inventory
JP2015062494A (en) * 2013-09-24 2015-04-09 株式会社三共 Game system
CN105701671A (en) * 2016-01-21 2016-06-22 鲁东大学 Information safety protection system
WO2016123926A1 (en) * 2015-02-03 2016-08-11 惠州Tcl移动通信有限公司 Remote control based subscriber identity module card terminal management method and system
WO2017122909A1 (en) * 2016-01-14 2017-07-20 주식회사 팝스라인 Terminal and control method therefor
CN107018127A (en) * 2017-03-07 2017-08-04 西安电子科技大学 The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
WO2017182354A1 (en) * 2016-04-21 2017-10-26 Philips Lighting Holding B.V. Systems and methods for commissioning and localizing devices used for cloud-based monitoring and control of physical environments
CN107567015A (en) * 2017-08-15 2018-01-09 上海展扬通信技术有限公司 A kind of log-on message acquisition method and log-on message acquisition system based on intelligent terminal
CN107690144A (en) * 2016-08-05 2018-02-13 李明 A kind of data communications method and system
KR101961714B1 (en) * 2017-09-28 2019-07-17 에스케이플래닛 주식회사 Service providing system and method for security based on multi-channel authentication with user equipment, and non-transitory computer readable medium having computer program recorded thereon
CN112688898A (en) * 2019-10-17 2021-04-20 华为技术有限公司 Configuration method and related equipment
CN113660659A (en) * 2021-10-19 2021-11-16 华智生物技术有限公司 Internet of things equipment identity identification method, system, equipment and computer readable medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195975A1 (en) * 2003-01-21 2005-09-08 Kevin Kawakita Digital media distribution cryptography using media ticket smart cards
JP2006039961A (en) * 2004-07-27 2006-02-09 Carlex Co Ltd Sales support device, sales support method, sales support system and program
US20060085298A1 (en) * 2004-07-30 2006-04-20 Kimberly Inskeep Method of controlling product inventory
JP2015062494A (en) * 2013-09-24 2015-04-09 株式会社三共 Game system
WO2016123926A1 (en) * 2015-02-03 2016-08-11 惠州Tcl移动通信有限公司 Remote control based subscriber identity module card terminal management method and system
WO2017122909A1 (en) * 2016-01-14 2017-07-20 주식회사 팝스라인 Terminal and control method therefor
CN105701671A (en) * 2016-01-21 2016-06-22 鲁东大学 Information safety protection system
WO2017182354A1 (en) * 2016-04-21 2017-10-26 Philips Lighting Holding B.V. Systems and methods for commissioning and localizing devices used for cloud-based monitoring and control of physical environments
CN107690144A (en) * 2016-08-05 2018-02-13 李明 A kind of data communications method and system
CN107018127A (en) * 2017-03-07 2017-08-04 西安电子科技大学 The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
CN107567015A (en) * 2017-08-15 2018-01-09 上海展扬通信技术有限公司 A kind of log-on message acquisition method and log-on message acquisition system based on intelligent terminal
KR101961714B1 (en) * 2017-09-28 2019-07-17 에스케이플래닛 주식회사 Service providing system and method for security based on multi-channel authentication with user equipment, and non-transitory computer readable medium having computer program recorded thereon
CN112688898A (en) * 2019-10-17 2021-04-20 华为技术有限公司 Configuration method and related equipment
CN113660659A (en) * 2021-10-19 2021-11-16 华智生物技术有限公司 Internet of things equipment identity identification method, system, equipment and computer readable medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘建华;李明禄;李大志;李鲁群;: "工业无线传感云中面向移动机器人的自适应信任演化机制", 电信科学, no. 06 *
韦建国;宋丽萍;: "基于计算机云平台的商品跟踪系统分析与研究", 电脑知识与技术, no. 28 *

Also Published As

Publication number Publication date
CN114374558B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
KR102624700B1 (en) Biometric identification and verification between IoT devices and applications
EP2362340B1 (en) Methods and apparatus for gifting over a data network
US20140166748A1 (en) System and Method for Securely Authorizing and Distributing Stored-Value Card Data
CN106664545A (en) Method and apparatus for installing profile for euicc
US20130273889A1 (en) Secure element for mobile network services
CN112769834A (en) Identity verification system, method and platform
US20070192619A1 (en) Trust tokens
CN110083620A (en) Based on the data query method and device of block chain, storage medium, electronic device
CN107431708A (en) Session Hand-off between resource
CN104378342A (en) Multi-account verification method, device and system
CN101809633A (en) Wirelessly executing transactions with different enterprises
US20100076997A1 (en) Generation of home network use recommendations based on collected metadata of prior connected items
CN111163467B (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN109191194B (en) Method, device and system for processing card data and storage medium
CN107465698A (en) A kind of data verification method and server
CN110537359A (en) The authentication of Behavior-based control
CN105701692A (en) Electronic transaction writing-off method, electronic transaction writing-off client, electronic transaction writing-off server and electronic transaction writing-off system
CN110601858A (en) Certificate management method and device
CN111787094A (en) Data processing method, device, storage medium and equipment
CN105991610B (en) Log in the method and device of application server
CN109726545A (en) A kind of information display method, equipment, computer readable storage medium and device
US10867326B2 (en) Reputation system and method
CN101431755A (en) System and method for implementing user login
CN114374558A (en) SDK device distribution network quantity control method and system, server side and SDK side
TWI715549B (en) Behavior-based social id switching mechanism

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
GR01 Patent grant
GR01 Patent grant