CN114374558B - SDK equipment distribution network quantity control method, system, server side and SDK side - Google Patents

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

Info

Publication number
CN114374558B
CN114374558B CN202210022561.6A CN202210022561A CN114374558B CN 114374558 B CN114374558 B CN 114374558B CN 202210022561 A CN202210022561 A CN 202210022561A CN 114374558 B CN114374558 B CN 114374558B
Authority
CN
China
Prior art keywords
database
product equipment
http request
product
sdk
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.)
Active
Application number
CN202210022561.6A
Other languages
Chinese (zh)
Other versions
CN114374558A (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, a system, a server side and an SDK side for controlling the quantity of product equipment, namely checking the product equipment before production and pre-selling, ensuring the data identification of the product, matching and recording equipment information and equipment MAC (media access control) through the server side, ensuring the strict control of the quantity of the product and the control of service authority, realizing that when a customer purchases a certain quantity of the product, the number of available product services can be effectively and accurately controlled, and limiting illegal users to enjoy the product services.

Description

SDK equipment distribution network quantity control method, system, server side and SDK side
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a system, a server side, and an SDK side for controlling the number of distribution networks of an SDK device.
Background
At present, a robot device has become an indispensable part of life of people, but the definition of the control limit of the number of users of the robot products on the market is different, so that it is difficult to precisely control the number of product services available, and illegal users easily enjoy the product services.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present invention aims to provide a method, a system, a server side and an SDK side for controlling the number of distribution networks of an SDK device, so as to solve the above technical problems.
To achieve the above and other related objects, the present invention provides a method for controlling the number of distribution networks of an SDK device, the method comprising: constructing a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends; receiving a first HTTP request carrying request information sent by an SDK end in one or more product equipment ends before production and pre-sale; wherein the request information includes: device information and MAC address; legally verifying the first HTTP request of each product equipment end; if the verification is legal, executing a database idle verification method; if the verification is illegal, rejecting a first HTTP request of the corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is larger than 0; if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted, so that whether the product equipment end is allowed to be accessed or not can be judged by judging whether the MAC address which is imported into the database exists or not in the request information carried by the second HTTP request sent by the SDK end of each product equipment end; if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database.
In an embodiment of the invention, 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; if yes, allowing the corresponding product equipment end to be accessed; if not, rejecting the access of the corresponding product equipment end.
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 HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment ends are legal; if the HTTP request is inconsistent, judging that the first HTTP request corresponding to the product equipment end is illegal.
In an embodiment of the present invention, the method for importing the MAC address of the corresponding product device end into the database and correspondingly deducting the name of the database includes: respectively importing the MAC addresses of the judged corresponding product equipment ends into a database; and deducting the names of the corresponding number of databases based on the number of the databases currently imported with the MAC address.
To achieve the above and other related objects, the present invention provides a method for controlling the number of distribution networks of an SDK device, applied to an SDK terminal to which a product device terminal is applied, the method comprising: a first HTTP request carrying request information is sent to a server side before production and pre-sale for verification by the server side, and MAC addresses of equipment sides of the product are respectively imported into a database or rejected; wherein the request information includes: device information and MAC address; and sending a second HTTP request carrying the request information to the server side so that the server can judge whether access is allowed or not 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 side, including: the database module is used for constructing a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends; the server communication module is used for receiving a first HTTP request carrying request information, which is sent by an SDK end in one or more product equipment ends before production and pre-sale; 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 legally verifying the first HTTP request of each product equipment end; if the verification is legal, executing a database idle verification method; if the verification is illegal, rejecting a first HTTP request of the corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is larger than 0; if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted; 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 carrying request information, which is sent by the SDK end of one or more product equipment ends; 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; if yes, allowing the corresponding product equipment end to be accessed; if not, rejecting the access of the corresponding product equipment end.
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 HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment ends are legal; if the HTTP request is inconsistent, judging that the first HTTP request corresponding to the product equipment end is illegal.
To achieve the above and other related objects, the present invention provides an SDK terminal, applied to a product device terminal, comprising: the first HTTP request sending module is used for sending a first HTTP request carrying request information to a server side before production and pre-sale so as to be verified by the server side, and respectively importing the MAC address of the equipment side 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 side so as to judge whether the access is allowed or not 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 system for controlling the number of distribution networks of an SDK device, comprising: the server end and one or more SDK ends respectively applied to a product equipment end; the server end builds a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends; each SDK end sends a first HTTP request carrying request information to the server end before production and pre-sale; and wherein the request information includes: device information and MAC address; the server side performs legal verification on HTTP requests of all product equipment sides; if the verification is legal, the server side executes a database idle verification method; if the server side verifies that the server side is illegal, rejecting a 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 larger than 0; if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted; 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; if yes, allowing the corresponding product equipment end to be accessed; if not, rejecting the access of the corresponding product equipment end.
As described above, the invention relates to a method, a system, a server side and an SDK side for controlling the quantity of distribution networks of SDK equipment, which has the following beneficial effects: the invention controls the number of the product devices through the SDK, namely, the product devices are checked before production and pre-sale, the data identification of the products is ensured, and the device information and the device MAC are matched and recorded through the server, so that the strict control of the number of the products and the control of the service authority are ensured, and the purpose that when a customer purchases a certain amount of products, the number of the available product services can be effectively and accurately controlled, and illegal users are limited to enjoy the product services is achieved.
Drawings
Fig. 1 is a schematic diagram of a configuration of an SDK device distribution network quantity control system according to an embodiment of the present invention.
Fig. 2 is a flow chart of a method for controlling the number of distribution networks of an SDK device according to an embodiment of the invention.
Fig. 3 is a flow chart illustrating a method for controlling the number of distribution networks of an SDK device according to an embodiment of the invention.
Fig. 4 is a flow chart of a method for controlling the number of distribution networks of an SDK device according to an embodiment of the invention.
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the invention.
Fig. 6 is a schematic diagram of the SDK terminal according to an embodiment of the invention.
Fig. 7 is a flowchart illustrating a method for controlling the number of distribution networks of an SDK device according to an embodiment of the invention.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
In the following description, reference is made to the accompanying drawings, which illustrate several embodiments of the 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," "above," "upper," and the like, may be used herein to facilitate a description of one element or feature as illustrated in the figures relative to another element or feature.
Throughout the specification, when a portion is said to be "connected" to another portion, this includes not only the case of "direct connection" but also the case of "indirect connection" with other elements interposed therebetween. In addition, when a certain component is said to be "included" in a certain section, unless otherwise stated, other components are not excluded, but it is meant that other components may be included.
The first, second, and third terms are used herein to describe various portions, components, regions, layers and/or sections, but are not limited thereto. These terms are only used to distinguish one portion, component, region, layer or section from another portion, component, region, layer or section. Thus, a first portion, component, region, layer or section discussed below could be termed a second portion, component, region, layer or section without departing from the scope of the present invention.
Furthermore, 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," "includes," and/or "including" specify the presence of stated features, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, operations, elements, components, items, categories, and/or groups. 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, A is as follows; b, a step of preparing a composite material; c, performing operation; 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 in some way inherently mutually exclusive.
The embodiment of the invention provides a method for controlling the quantity of distribution networks of SDK equipment, which controls the quantity of product equipment through SDK, namely checks the product equipment before production and pre-sale, ensures the data identification of the product, and performs matching record on equipment information and equipment MAC through a server end, thereby ensuring strict control of the quantity of the product and control of service authority, realizing that when a customer purchases a certain quantity of the product, the number of available product services can be effectively and accurately controlled, and limiting illegal users to enjoy the product services.
The embodiments of the present invention will be described in detail below with reference to the attached drawings so that those skilled in the art to which the present invention pertains can easily implement the present invention. This 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 an SDK device distribution network quantity control system in an embodiment of the present application is shown.
Server side 11 and one or more SDK sides 121 respectively applied to a product device side 12;
in this embodiment, the product device 10 may be applied to a terminal or a robot, and the terminal may be various electronic devices with a display screen and supporting web browsing, including but not limited to a smart phone, a tablet computer, an electronic book reader, an MP3 player (Moving Picture E interface display perts Group Audio Layer III, moving Picture expert compression standard audio layer 3), an MP4 (Moving Picture E interface display perts Group Audio Layer IV, moving Picture expert compression standard audio layer 4) player, a laptop portable computer, a desktop computer, and so on.
The server 11 builds a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends; each SDK terminal 121 sends a first HTTP request carrying request information to the server terminal 11 before producing a pre-sale; and wherein the request information includes: device information and MAC address; the server 11 performs legal verification on HTTP requests of the product equipment 12; if the verification is legal, the server 11 executes a database idle verification method; if the verification is illegal, the server 11 refuses 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 larger than 0; if yes, the MAC address of the corresponding product equipment end 12 is imported into the database, and the name of the database is correspondingly deducted; if not, rejecting the first HTTP request of the corresponding product equipment end 12, and stopping importing the MAC address into the database; each SDK terminal 121 sends a second HTTP request carrying the request information to the server terminal 11; the server 11 judges whether the request information carried by the second HTTP request corresponding to each product device 12 has the MAC address already imported into the database; if yes, allowing the corresponding product equipment end 12 to be accessed; if not, the corresponding product equipment end 12 is refused to be accessed.
Similar to the principles of the above embodiments, the present invention provides a method for controlling the number of distribution networks of SDK devices.
Specific embodiments are provided below with reference to the accompanying drawings:
fig. 2 shows a flow chart of a method for controlling the number of distribution networks of an SDK device according to an embodiment of the present invention.
The method is applied to the server side and comprises the following steps:
step S21: and constructing a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends.
Optionally, the factory sends the number of product equipment ends preset by the client to a server, and the server builds a database with the same name as the number of the product equipment ends according to the number of the product equipment ends preset by the client; for example, the predetermined number is 9, the server side constructs 9 databases, and the database name is 9.
Likewise, databases may be built for multiple clients, one for each client, each database set having a predetermined number of databases for each user built therein.
Step S22: a first HTTP request carrying request information sent by an SDK end in one or more product equipment ends before production and pre-sale is received.
In detail, the request information includes: device information and MAC address.
Optionally, when the product device side needs to perform a networking procedure before selling, a first HTTP request carrying the 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 carrying out legal verification on the first HTTP request of each product equipment end.
Optionally, legal verification is performed on the first HTTP request of each product device according to the request information sent by each product device.
Optionally, the device information of each product device end is validated.
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 HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment ends are legal; if the HTTP request is inconsistent, judging that the first HTTP request corresponding to the product equipment end 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 larger than 0;
step S24121: if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted, so that whether the product equipment end is allowed to be accessed or not can be judged by judging whether the MAC address which is imported into the database exists or not in the request information carried by the second HTTP request sent by the SDK end of each product equipment end;
optionally, the method of importing the MAC address of the corresponding product device end into the database and correspondingly deducting the name of the database includes: respectively importing the MAC addresses of the judged corresponding product equipment ends into a database; and deducting the names of the corresponding number of databases based on the number of the databases currently imported with the MAC address. For example, if the MAC address of a device is imported into a database, the name of the database is deducted by one, and the database is not added with the MAC address, that is, only one MAC address is imported into each database.
Step S24122: if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database.
Alternatively, if the name is 0, it indicates that the MAC address of the predetermined number of products has been imported, and other product device terminals are not likely to be originally predetermined product device terminals, and cannot enjoy the corresponding product service, so that the first HTTP request of the corresponding product device terminal is rejected, and the import of the MAC address into the database is stopped.
Step S242: if the verification is illegal, rejecting the first HTTP request of the corresponding product equipment end.
In this step, if the verification is illegal, it is indicated that the product equipment end is not the object for service.
Optionally, as shown in fig. 3, to better illustrate whether to allow the product device side to access, the method further includes:
step S31: a second HTTP request carrying request information is received, wherein the second HTTP request is sent by the 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 is not an HTTP request sent before production and pre-sale, but a user needs to be networked when using the second HTTP request; the MAC address of the product device side 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;
optionally, checking the PID information and the MAC address carried by the second HTTP request, and rejecting the product equipment end networking if the MAC address is not in the database.
Step S331: if yes, allowing the corresponding product equipment end to be accessed;
step S332: if not, rejecting the access of the corresponding product equipment end.
Fig. 4 is a schematic flow chart of a method for controlling the number of distribution networks of an SDK device according to an embodiment of the present invention.
The SDK end is applied to an application product equipment end;
the method comprises the following steps:
step 41: a first HTTP request carrying request information is sent to a server side before production and pre-sale for verification by the server side, and MAC addresses of equipment sides of the product are respectively imported into a database or rejected; wherein the request information includes: device information and MAC address;
optionally, when the product device end needs to perform a networking procedure before selling, the SDK end needs to send a first HTTP request carrying request information to the server end to request 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 side so that the server can judge whether access is allowed or not 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 is not an HTTP request sent before production and pre-sale, but a user needs to be networked when using the second HTTP request; the MAC address of the product device side may or may not have been imported into the database. If the network is imported into the database, the network allocation is successful, and if the network allocation is not imported, the network allocation is failed.
Fig. 5 shows a schematic structural diagram of a server according to an embodiment of the present invention.
The server side comprises:
a database module 51, configured to construct a database with the same name as the number of product equipment ends based on the predetermined number of product equipment ends; and is responsible for timely updating the name of the current database; a server communication module 52, configured to receive a first HTTP request carrying request information sent by an SDK end of the one or more product device ends before production and 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 request of each product equipment end; if the verification is legal, executing a database idle verification method; if the verification is illegal, rejecting a first HTTP request of the corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is larger than 0; if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted, so that the database module 51 can update 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 sent by the SDK end of the one or more product device ends; the quantity control module 53 is further configured to determine whether there is a MAC address that has been imported into the database in the request information carried in the second HTTP request corresponding to each product device side; if yes, allowing the corresponding product equipment end to be accessed; if not, rejecting the access of the corresponding product equipment end.
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 HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment ends are legal; if the HTTP request is inconsistent, judging that the first HTTP request corresponding to the product equipment end is illegal.
Since the implementation principle of the server has been described in the foregoing embodiments, a detailed description is omitted here.
Fig. 6 shows a schematic structural diagram of an SDK terminal according to an embodiment of the present invention.
The SDK terminal is applied to a product equipment terminal, and comprises:
a first HTTP request sending module 61, configured to send, to a server side, a first HTTP request carrying request information before production and pre-sale, for verification by the server side, and import MAC addresses of the product device side into a database or reject the first HTTP request, respectively; wherein the request information includes: device information and MAC address;
and the second HTTP request sending module 62 is 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 there is a MAC address that has been imported into the database in the corresponding request information.
Since the implementation principle of the SDK has been described in the foregoing embodiments, a detailed description is omitted here.
In order to better describe the SDK device distribution network quantity control method, the following specific embodiments are provided for illustration;
example 1: a method for controlling the quantity of distribution networks of SDK equipment; fig. 7 is a flow chart of a method for controlling the number of distribution networks of the SDK device in this embodiment.
The specific implementation principle comprises the following steps:
1. when the number of the purchased products is N, the server is provided with a database with N numbers.
2. When the networking procedure of the product before sales production is carried out, 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 MAC address of the requested equipment is legal, recording the MAC address of the requested equipment to a database, wherein the number of the MAC addresses is-1, and the links of the subsequent products are required to be provided with the MAC address as the unique identifier of the server; when the name is 0, the database is closed to stop importing the MAC address, and if the name is illegal, the server directly refuses the link.
4. When the product is used and needs to be networked, the robot connects wifi and requests to connect with the server, the server checks the PID and the MAC of the product, and if the MAC is not in the database, the product is refused to be networked.
In the scheme, the product coding PID information and the MAC address are utilized to judge the authority of the data, so that the strict control of the number of the products and the control of the service authority are ensured.
In summary, the method, the system, the server side and the SDK side for controlling the quantity of the distribution network of the SDK equipment control the quantity of the product equipment through the SDK, namely, the product equipment is checked before production and pre-sale, so that the data identification of the product is ensured, and the server side is used for carrying out matching record on equipment information and equipment MAC, so that strict control of the quantity of the product and control of service authority are ensured, and the purpose that when a customer purchases a certain quantity of the product, the number of available product services can be effectively and accurately controlled, and illegal users are limited to enjoy the product services is achieved. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. It is therefore intended that all equivalent modifications and changes made by those skilled in the art without departing from the spirit and technical spirit of the present invention shall be covered by the appended claims.

Claims (10)

1. The method for controlling the quantity of the SDK equipment distribution network is characterized by being applied to a server side, and comprises the following steps:
constructing a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends;
receiving a first HTTP request carrying request information sent by an SDK end in one or more product equipment ends before production and pre-sale; wherein the request information includes: device information and MAC address;
legally verifying the first HTTP request of each product equipment end;
if the verification is legal, executing a database idle verification method;
if the verification is illegal, rejecting a first HTTP request of the corresponding product equipment end;
the database idle verification method comprises the following steps:
judging whether the name of the current database is larger than 0;
if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted, so that whether the product equipment end is allowed to be accessed or not can be judged by judging whether the MAC address which is imported into the database exists or not in the request information carried by the second HTTP request sent by the SDK end of each product equipment end;
if not, rejecting the first HTTP request of the corresponding product equipment end, and stopping importing the MAC address into the database.
2. The SDK device distribution network number control method of claim 1, further comprising:
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;
if yes, allowing the corresponding product equipment end to be accessed;
if not, rejecting the access of the corresponding product equipment end.
3. The SDK device distribution network number control method according to claim 1 or 2, wherein the device information includes: PID information and secret information.
4. The SDK device distribution network number control method according to claim 3, wherein 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 HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment ends are legal;
if the HTTP request is inconsistent, judging that the first HTTP request corresponding to the product equipment end is illegal.
5. The method for controlling the number of distribution networks of SDK devices according to claim 1 or 2, wherein the method for importing the MAC address of the corresponding product device end into the database and correspondingly deducting the name of the database includes:
respectively importing the MAC addresses of the judged corresponding product equipment ends into a database;
and deducting the names of the corresponding number of databases based on the number of the databases currently imported with the MAC address.
6. The method is characterized by being 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 and pre-sale for verification by the server side, and MAC addresses of equipment sides of the product are respectively imported into a database or rejected; wherein the request information includes: device information and MAC address;
and sending a second HTTP request carrying the request information to the server side so that the server can judge whether access is allowed or not 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 as the number of the product equipment ends based on the preset number of the product equipment ends;
the server communication module is used for receiving a first HTTP request carrying request information, which is sent by an SDK end in one or more product equipment ends before production and pre-sale; 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 legally verifying the first HTTP request of each product equipment end; if the verification is legal, executing a database idle verification method; if the verification is illegal, rejecting a first HTTP request of the corresponding product equipment end; the database idle verification method comprises the following steps: judging whether the name of the current database is larger than 0; if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted; 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 carrying request information, which is sent by the SDK end of one or more product equipment ends;
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; if yes, allowing the corresponding product equipment end to be accessed; if not, rejecting the access of the corresponding product equipment end.
8. The server side according to claim 7, 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 HTTP requests are completely consistent, judging that the first HTTP requests corresponding to the product equipment ends are legal;
if the HTTP request is inconsistent, judging that the first HTTP request corresponding to the product equipment end is illegal.
9. An SDK terminal, for use in a product facility terminal, comprising:
the first HTTP request sending module is used for sending a first HTTP request carrying request information to a server side before production and pre-sale so as to be verified by the server side, and respectively importing the MAC address of the equipment side 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 side so as to judge whether the access is allowed or not by judging whether the corresponding request information has the MAC address which is imported into the database.
10. An SDK device distribution network quantity control system, comprising:
the server end and one or more SDK ends respectively applied to a product equipment end;
the server end builds a database with the same name as the number of the product equipment ends based on the preset number of the product equipment ends; each SDK end sends a first HTTP request carrying request information to the server end before production and pre-sale; and wherein the request information includes: device information and MAC address; the server side performs legal verification on HTTP requests of all product equipment sides; if the verification is legal, the server side executes a database idle verification method; if the server side verifies that the server side is illegal, rejecting a 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 larger than 0; if yes, the MAC address of the corresponding product equipment end is imported into a database, and the name of the database is correspondingly deducted; 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; if yes, allowing the corresponding product equipment end to be accessed; if not, rejecting the access of the corresponding product equipment end.
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 CN114374558A (en) 2022-04-19
CN114374558B true 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006039961A (en) * 2004-07-27 2006-02-09 Carlex Co Ltd Sales support device, sales support method, sales support system and program
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

Family Cites Families (2)

* 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
US7801776B2 (en) * 2004-07-30 2010-09-21 Cabi, Llc Method of controlling product inventory

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006039961A (en) * 2004-07-27 2006-02-09 Carlex Co Ltd Sales support device, sales support method, sales support system and program
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
基于计算机云平台的商品跟踪系统分析与研究;韦建国;宋丽萍;;电脑知识与技术(28);全文 *
工业无线传感云中面向移动机器人的自适应信任演化机制;刘建华;李明禄;李大志;李鲁群;;电信科学(06);全文 *

Also Published As

Publication number Publication date
CN114374558A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
KR101378111B1 (en) A method of providing digital rights management for music content by means of a flat-rate subscription
CN104378342B (en) Many accounts verification method, Apparatus and system
US8396421B2 (en) Communication processing apparatus, computer program product and data processing method
CN107733922A (en) Method and apparatus for calling service
CN106101110B (en) Metadata broker
CN108632367A (en) Account correlating method and information-pushing method
CN103166998B (en) user information correlation method, system and server
CN1345514A (en) Secure wireless electronic-commerce system with wireless network domain
CN101765112A (en) Value added service mutually exclusive authentication method and device
CN102437998B (en) Application store system and the method using this application store system to develop
TW201203140A (en) Online service providing system, method, server and mobile device thereof, and computer program product
CN108540433A (en) User identity method of calibration and device
CN111163467B (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN105933374B (en) A kind of mobile terminal data backup method, system and mobile terminal
CN105554146A (en) Remote access method and device
CN100520794C (en) Method for servicing an electronic certificate for a big-name brand
CN104796380A (en) Safety verification method, safety verification system, terminal and verification server
CN110537359A (en) The authentication of Behavior-based control
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
CN114374558B (en) SDK equipment distribution network quantity control method, system, server side and SDK side
CN107818435A (en) Order information processing method, device and system
CN101431755A (en) System and method for implementing user login
CN113114782A (en) Internet of things equipment comprehensive control method and device and intelligent terminal
KR20020045082A (en) M- Commerce service method using mobile terminal in mobile environment

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