CN117636521A - AI-based intelligent lockset and data center interaction method and intelligent lockset production method - Google Patents

AI-based intelligent lockset and data center interaction method and intelligent lockset production method Download PDF

Info

Publication number
CN117636521A
CN117636521A CN202410107054.1A CN202410107054A CN117636521A CN 117636521 A CN117636521 A CN 117636521A CN 202410107054 A CN202410107054 A CN 202410107054A CN 117636521 A CN117636521 A CN 117636521A
Authority
CN
China
Prior art keywords
code
data center
template
intelligent
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410107054.1A
Other languages
Chinese (zh)
Other versions
CN117636521B (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.)
Suzhou Kunshan General Locks Co ltd
Original Assignee
Suzhou Kunshan General Locks 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 Suzhou Kunshan General Locks Co ltd filed Critical Suzhou Kunshan General Locks Co ltd
Priority to CN202410308511.3A priority Critical patent/CN117994881A/en
Priority to CN202410107054.1A priority patent/CN117636521B/en
Publication of CN117636521A publication Critical patent/CN117636521A/en
Application granted granted Critical
Publication of CN117636521B publication Critical patent/CN117636521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention aims to disclose an AI-based intelligent lockset and data center interaction method and an intelligent lockset production method, and relates to the technical field of intelligent lockset control, and the method comprises the following steps: step S1: determining a communication protocol of a first data center; step S2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row; step S3: analyzing the instruction table through an interpreter function and forming an instruction; step S4: sending the instruction to the data center, and the beneficial effects are that: corresponding template files are created for different data centers or intelligent terminals, and the template files are used as configuration files of the intelligent lockset and loaded, so that the intelligent lockset can rapidly load the template files or switch the template files according to actual communication requirements of users, and the development and debugging speed of the intelligent lockset is increased.

Description

AI-based intelligent lockset and data center interaction method and intelligent lockset production method
Technical Field
The invention relates to the technical field of intelligent lockset control, in particular to an interaction method of an intelligent lockset based on AI and a data center and a production method of the intelligent lockset.
Background
Along with the gradual intellectualization of intelligent lockset, the communication objects of the intelligent lockset are more and more diversified, such as different big data platforms, intelligent lamps and lanterns, intelligent household appliances, intelligent house and the like. The traditional intelligent lockset has relatively fixed communication protocol, and needs to be reprogrammed and retested to ensure smooth communication in order to communicate with a new large data platform or other intelligent terminals, so that challenges are brought to the diversified purposes of the intelligent lockset, and the development workload of the intelligent lockset is large and the development progress is slow.
In view of the foregoing, there is a need to develop an AI-based intelligent lock and data center interaction method and intelligent lock production method to solve the above-mentioned problems.
Disclosure of Invention
The invention aims to disclose an AI-based intelligent lockset and data center interaction method and an intelligent lockset production method, wherein the interaction of an intelligent lockset and a data center is realized by creating a template file, and intelligent matching and communication are realized based on the template file.
In order to achieve the first object, the present invention provides an intelligent lock based on AI and a data center interaction method, comprising the following steps:
step S1: determining a communication protocol of a first data center;
step S2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row;
step S3: analyzing the instruction table through an interpreter function and forming an instruction;
step S4: and sending the instruction to the first data center.
In order to achieve the first object, the present invention further provides an interaction method between the intelligent lock and the data center based on the AI, comprising the following steps:
step A1: determining a communication protocol of a first data center;
step A2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row;
step A3: the first data center sends an instruction to the intelligent lockset;
step A4: analyzing the instruction through an interpreter function and reading out a behavior name;
step A5: and the intelligent lockset executes the task according to the action name.
Preferably, the instruction table sequentially comprises a behavior name code, a coding format code, a data packet header code, a data packet instruction code, a data packet length code, a plurality of intelligent lock attribute codes and a data packet verification mode code from the beginning line to the end line.
Preferably, the plurality of intelligent lockset attribute codes at least comprise an access number code, a physical address code, an intelligent lockset code, a secret key and a time stamp.
Preferably, the action name code is a single action name code or an action set code.
Preferably, the intelligent lockset attribute code comprises a static attribute code and a dynamic attribute code, and the static attribute code is stored in the template.
Preferably, the data packet verification mode code is Json or HEX.
Preferably, the intelligent lockset stores a default template and a template suitable for the communication protocol simultaneously, and further comprises the following steps:
if the background of the intelligent lockset is replaced by the second data center from the first data center, the intelligent lockset is switched to a default template from a template suitable for the communication protocol;
deleting a template adapted to the communication protocol;
loading a new template matched with a communication protocol of the second data center;
the intelligent lockset is switched to a new template from a default template.
In order to achieve the second object, the invention provides a method for producing an intelligent lock, which comprises the following steps:
n template files are written for the intelligent lockset, wherein the template files are used as configuration files, and each template file corresponds to a communication protocol of a data center;
in the production link of the intelligent lockset, preloading a template file and a default template file corresponding to a data center to the intelligent lockset according to the requirement of a user;
and restarting the intelligent lockset, and selecting a template file or a default template file of the corresponding data center to take effect.
Preferably, the template file and the default template file corresponding to the data center respectively comprise a plurality of instruction tables, wherein the instruction tables sequentially comprise a behavior name code, a coding format code, a data packet start code, a data packet instruction code, a data packet length code, a plurality of intelligent lock attribute codes and a data packet verification mode code from the beginning line to the end line.
Compared with the prior art, the invention has the beneficial effects that:
(1) Corresponding template files are created for different data centers or intelligent terminals, and the template files are used as configuration files of the intelligent lockset and loaded, so that the intelligent lockset can rapidly load the template files or switch the template files according to actual communication requirements of users, and the development and debugging speed of the intelligent lockset is increased.
(2) The method comprises the steps that an instruction table of a template file takes a behavior name code as a starting row, the instruction table takes a data packet verification mode code as a last row, the behavior name code is compiled for each instruction possibly sent by an intelligent lockset, and each behavior name code is a single behavior name code or a behavior set code; the single action name code refers to a single action, such as a registered action code: DEV-register; the behavior set code refers to a set of more than two behavior name codes, and can be considered as a micro-service code, for example, the code can be split into two actions of face recognition and remote unlocking, and the code for requesting remote unlocking is written as: remote unlock; all possible actions or action sets (micro services) executed by all intelligent locks are written into the template file, and when a certain action or action set needs to be executed, only the corresponding table of the action or action set is required to be formed into a data packet and the data packet is sent to a data center.
(3) In order to accelerate the development speed and the efficiency of intelligent tool to lock, write a plurality of template files in advance for intelligent tool to lock, every template file corresponds different data centers, when producing intelligent tool to lock, with template file and default template file preload to intelligent tool to lock of user's demand, when follow-up user need change data centers, reload corresponding template file through the remote mode, can accomplish fast switch over, high-efficient actual demand that satisfies the user.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the invention.
Fig. 2 is a flowchart of a second method according to the embodiment of the invention.
FIG. 3 is a flow chart of a method according to an embodiment of the invention.
FIG. 4 is a block diagram of a first data center and intelligent lockset interaction system of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments shown in the drawings, but it should be understood that the embodiments are not limited to the present invention, and functional, method, or structural equivalents and alternatives according to the embodiments are within the scope of protection of the present invention by those skilled in the art.
The following describes embodiments of the present invention.
Example 1
Referring to fig. 1, this embodiment discloses a specific implementation of a method (hereinafter referred to as "method") for interacting an intelligent lock with a data center based on AI.
Referring to fig. 1, in this embodiment, the method for interaction between the intelligent lock and the data center based on AI includes the following steps S1 to S4, and in this embodiment, the method is described by taking an example that the intelligent lock sends an instruction to the data center.
Specifically, the method comprises the following steps:
step S1, determining a communication protocol of a first data center. Specifically, different data centers have different communication protocols, besides the self data center of the intelligent lockset manufacturer, users may select the ori cloud, the small Mi Yun, the China mobile cloud, the telecom space wing cloud and the like, and at present, the communication program rules are rewritten and debugged according to the actual demands of the users, so that the intelligent lockset is slow in development speed and long in debugging period, and the research and development cost is increased.
Step S2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row; specifically, in order to accelerate the development and debugging speed of the intelligent lockset, a plurality of templates suitable for different data centers are developed, the templates comprise a plurality of instruction tables, each instruction table represents a behavior or a behavior set (micro-service), the initial behavior name code of each instruction table is a single behavior name code or a behavior set code; the single action name code refers to a single action, such as a registered action code: DEV-register; the behavior set code refers to a set of more than two behavior name codes, and can be considered as a micro-service code, for example, the code can be split into two actions of face recognition and remote unlocking, and the code for requesting remote unlocking is written as: face Recognition; remote unlock. In a specific embodiment, referring to table 1, table 1 is a table of instructions for the intelligent lock to register with the winglet-housekeeping data center and the One-NET data center, respectively, where the first column of the instruction table is a field, the second column is a code applicable to the winglet-housekeeping data center, and the third column is a code applicable to the winglet-housekeeping data center. Code of a winglet-housekeeping data center, its first behavior registration behavior (act_def) code: "DEV_register", the following line is the Code format (code_type) Code: "Hex", the packet header (Head) Code: AA55, packet command (Cmd) code: 25. packet Length (LEN) code: 8. several intelligent lockset attribute (SEG 1-SEG 8) codes and packet Check mode (Check) codes: CRC, wherein the plurality of intelligent lockset attributes (SEG 1-SEG 8) are respectively an access number code IMEI, a physical address code MAC, an intelligent lockset code DEV_ID, a fingerprint model code FP_TYPE, a secret KEY, a software version code FW_Ver, a hardware version code Hw_Ver and a TimeStamp TimeStamp; code of One-NET data center, its first behavior registration behavior (act_def) code: "DEV_register", the subsequent line is a code_type Code: "Json", a packet header (Head) Code: "{", packet instruction (Cmd) code is op: "15", packet Length (LEN) code: 5. several intelligent lockset attribute (SEG 1-SEG 8) codes and packet Check mode (Check) codes: "and" wherein the several intelligent lockset attributes (SEG 1-SEG 8) are respectively physical address code MAC: "MAC", accession number code IMEI: "IMEI", smart lock coded SIM: "SIM", KEY: "key", timeStamp "TimeStamp", and three blank lines. Each instruction form represents a single action or set of actions (micro-services) that needs to be sent to initiate a row-differentiated action or set of actions.
Table 1 instruction form for intelligent lockset to register with the data center of the winglet manager and the data center of One-NET respectively
In step S2, the intelligent lock attribute code includes a static attribute code and a dynamic attribute code, where the static attribute code is stored in each instruction table of the template, and the static attribute code refers to an inherent attribute of the intelligent lock and is not changed along with the operation of the intelligent lock; the dynamic attribute code refers to a state attribute of the intelligent lock, such as a switch state and an electric quantity state of the intelligent lock, which are continuously changed in the running process, and the changed states are stored in the memory, so that after the intelligent lock is restarted, the original dynamic attribute can disappear and a new dynamic attribute can be regenerated. The data packet verification mode codes are Json or HEX, and in the same template, according to the communication protocol of the data center, each instruction form can uniformly use Json or HEX; different instruction forms can also adopt different data packet verification mode codes, namely, in the same template, the data packet verification mode codes of some instruction forms are Json, and the data packet verification mode codes of some instruction forms are HEX.
Step S3: analyzing the instruction table by using an interpreter function to form an instruction, specifically, reading the content of the instruction table by using the interpreter function to analyze the content to form a data packet, wherein the instruction is sent in a form of the data packet, the data packet sequentially comprises a behavior name code, a coding format code, a data packet starting code, a data packet instruction code, a data packet length code, a plurality of intelligent lock attribute codes and a data packet verification mode code, taking the registration behavior of a data center of a winglet manager as an example, and the data packet sequentially comprises a registration behavior (act_def) code by binary transmission for saving traffic: "DEV_register", code format (code_type) Code: "Hex", packet header (Head) Code: AA55, packet command (Cmd) code: 25. packet Length (LEN) code: 8. the network entry code IMEI, the physical address code MAC, the intelligent lockset code DEV_ID, the fingerprint model code FP_TYPE, the KEY, the software version code FW_Ver, the hardware version code Hw_Ver, the TimeStamp TimeStamp and the data packet verification mode (Check) code: CRC; after the instruction is sent successfully, returning ACK: "IMEI", "winglet housekeeping data center timestamp", "1".
Step S4: and (3) sending the instruction to the first data center, and sending the data packet formed by analyzing the step (S3) to the data center by calling a send function of the bottom layer of the intelligent lock, wherein the data packet can be sent in a wireless mode such as 4G, 5G, wiFi and the like during sending.
It should be further noted that, the default template and the template adapted to the first data center communication protocol are stored in the intelligent lock, the default template is a template adapted to the self-owned data center of the manufacturer of the intelligent lock, if the background of the intelligent lock is replaced by the second data center from the first data center, the template adapted to the first data center communication protocol is firstly switched to the default template, then the template adapted to the first data center communication protocol is deleted, a new template matched with the second data center communication protocol is loaded, and finally the new template is switched. If the intelligent lockset is switched from the winglet housekeeping data center to the One-NET data center, the intelligent lockset needs to be switched to a default template, reload a new template matched with the One-NET data center communication protocol, delete the template matched with the winglet housekeeping data center and switch the new template, so that the intelligent lockset can be quickly switched to the new data center without re-developing and debugging a communication program, and the adaptability of the intelligent lockset is greatly improved.
Example two
Referring to fig. 2, this embodiment discloses a specific implementation of a method (hereinafter referred to as "method") for interacting with a data center by using an AI-based intelligent lock.
Referring to fig. 2, in this embodiment, the method for interaction between the intelligent lock and the data center based on AI includes the following steps A1 to A5, and in this embodiment, the data center sends an instruction to the intelligent lock is taken as an example for explanation.
Specifically, the method comprises the following steps:
and A1, determining a communication protocol of a first data center. Specifically, different data centers have different communication protocols, besides the self data center of the intelligent lockset manufacturer, users may select the ori cloud, the small Mi Yun, the China mobile cloud, the telecom space wing cloud and the like, and at present, the communication program rules are rewritten and debugged according to the actual demands of the users, so that the intelligent lockset is slow in development speed and long in debugging period, and the research and development cost is increased.
Step A2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row; specifically, in order to accelerate the development and debugging speed of the intelligent lockset, a plurality of templates suitable for different data centers are developed, the templates comprise a plurality of instruction tables, each instruction table represents a behavior or a behavior set (micro-service), the initial behavior name code of each instruction table is a single behavior name code or a behavior set code; the single action name code refers to a single action, such as a registered action code: DEV-register; the behavior set code refers to a set of more than two behavior name codes, and can be considered as a micro-service code, for example, the code can be split into two actions of face recognition and remote unlocking, and the code for requesting remote unlocking is written as: face Recognition; remote unlock. In a specific embodiment, referring to table 1, table 1 is a table of instructions for the intelligent lock to register with the winglet-housekeeping data center and the One-NET data center, respectively, where the first column of the instruction table is a field, the second column is a code applicable to the winglet-housekeeping data center, and the third column is a code applicable to the winglet-housekeeping data center. Code of a winglet-housekeeping data center, its first behavior registration behavior (act_def) code: "DEV_register", the following line is the Code format (code_type) Code: "Hex", the packet header (Head) Code: AA55, packet command (Cmd) code: 25. packet Length (LEN) code: 8. several intelligent lockset attribute (SEG 1-SEG 8) codes and packet Check mode (Check) codes: CRC, wherein the plurality of intelligent lockset attributes (SEG 1-SEG 8) are respectively an access number code IMEI, a physical address code MAC, an intelligent lockset code DEV_ID, a fingerprint model code FP_TYPE, a secret KEY, a software version code FW_Ver, a hardware version code Hw_Ver and a TimeStamp TimeStamp; code of One-NET data center, its first behavior registration behavior (act_def) code: "DEV_register", the subsequent line is a code_type Code: "Json", a packet header (Head) Code: "{", packet instruction (Cmd) code is op: "15", packet Length (LEN) code: 5. several intelligent lockset attribute (SEG 1-SEG 8) codes and packet Check mode (Check) codes: "and" wherein the several intelligent lockset attributes (SEG 1-SEG 8) are respectively physical address code MAC: "MAC", accession number code IMEI: "IMEI", smart lock coded SIM: "SIM", KEY: "key", timeStamp "TimeStamp", and three blank lines. Each instruction form represents a single action or set of actions (micro-services) that needs to be sent to initiate a row-differentiated action or set of actions.
In step A2, the intelligent lock attribute code includes a static attribute code and a dynamic attribute code, where the static attribute code is stored in each instruction table of the template, and the static attribute code refers to an inherent attribute of the intelligent lock and is not changed along with the operation of the intelligent lock; the dynamic attribute code refers to a state attribute of the intelligent lock, such as a switch state and an electric quantity state of the intelligent lock, which are continuously changed in the running process, and the changed states are stored in the memory, so that after the intelligent lock is restarted, the original dynamic attribute can disappear and a new dynamic attribute can be regenerated. The data packet verification mode codes are Json or HEX, and in the same template, according to the communication protocol of the data center, each instruction form can uniformly use Json or HEX; different instruction forms can also adopt different data packet verification mode codes, namely, in the same template, the data packet verification mode codes of some instruction forms are Json, and the data packet verification mode codes of some instruction forms are HEX.
Step A3: the first data center sends an instruction to the intelligent lockset; specifically, after the intelligent lock is loaded with a template suitable for a communication protocol of a data center, the intelligent lock is registered in the data center, and after the registration is completed, a user sends an instruction to the intelligent lock through the data center, such as unlocking, and the unlocking instruction is sent to the intelligent lock in a data packet mode. The data packet sequentially comprises a behavior name code, a coding format code, a data packet header code, a data packet instruction code, a data packet length code, a plurality of intelligent lock attribute codes and a data packet verification mode code, and in order to save traffic, the data packet is transmitted in a binary mode, and the content of the data packet is in the form of a table 1.
Step A4: the instruction is parsed by the interpreter function and the behavior name is read out, specifically, the content of the instruction (data packet) is read by the interpreter function and parsed, and the behavior name is read out.
Step A5: and the intelligent lockset executes the task according to the action name.
In a second embodiment, to improve the security, stability and convenience of the intelligent lock interaction system, the template in the step A2 is packaged into a first class, the template interpreter in the step A4 is packaged into a second class, and the intelligent lock execution unit is packaged into a third class, see fig. 4, fig. 4 is a block diagram of the first data center and the intelligent lock interaction system, and the interaction system includes: the intelligent lockset comprises an intelligent lockset execution unit, a dynamic attribute calling interface, an instruction transmission interface, a dynamic attribute updating and reporting module, a template file and a template interpreter, and the working steps of the interaction system are as follows: the first step, a first data center sends an instruction, and the instruction is sent in a data packet format of the step A3; step two, analyzing the command to obtain a behavior name through a second class (a template interpreter), and matching the behavior name with a command table in a first class (a template file); thirdly, the matched instruction is sent to an instruction transmission interface; fourth, the instruction transmission interface sends the instruction to the intelligent lock execution unit, and after the intelligent lock executes the instruction, if dynamic attribute update exists, if the unlocking state exists, the fifth step is executed; fifthly, reporting the dynamic attribute update through a dynamic attribute update reporting module; sixthly, the dynamic attribute updating reporting module sends updating information to the template interpreter; seventh, the template interpreter sends a calling instruction to the dynamic attribute calling interface; eighth step, the intelligent lockset execution unit sends the updated dynamic attribute to the dynamic attribute retrieval interface; ninth, the dynamic attribute calling interface sends updated dynamic attributes to the template interpreter; tenth, the template interpreter sends updated dynamic attributes to the template file and updates the template file; eleventh step, the template interpreter uploads the updated dynamic properties to the first data center. The intelligent lockset dynamic attribute of which the template file and the first data center are kept up to date is realized through the interactive system.
It should be further noted that, the default template and the template adapted to the first data center communication protocol are stored in the intelligent lock, the default template is a template adapted to the self-owned data center of the manufacturer of the intelligent lock, if the background of the intelligent lock is replaced by the second data center from the first data center, the template adapted to the first data center communication protocol is firstly switched to the default template, then the template adapted to the first data center communication protocol is deleted, a new template matched with the second data center communication protocol is loaded, and finally the new template is switched. If the intelligent lockset is switched from the winglet housekeeping data center to the One-NET data center, the intelligent lockset needs to be switched to a default template, reload a new template matched with the One-NET data center communication protocol, delete the template matched with the winglet housekeeping data center and switch the new template, so that the intelligent lockset can be quickly switched to the new data center without re-developing and debugging a communication program, and the adaptability of the intelligent lockset is greatly improved.
The data packet of the first embodiment is sent to the data center by the intelligent lock, and the instruction form corresponding to the data packet is an uplink instruction; the data packet of the second embodiment is sent to the intelligent lock by the data center, the instruction table corresponding to the data packet is a downlink instruction, and the uplink instruction and the downlink instruction are written into the template file.
According to the first embodiment and the second embodiment, corresponding template files are created for different data centers, and the template files are used as configuration files of the intelligent lockset and are loaded, so that the intelligent lockset can rapidly load the template files or switch the template files according to actual communication requirements of users, and the development and debugging speed of the intelligent lockset is increased.
Example III
Referring to fig. 3, this embodiment discloses a specific embodiment of a method for producing an intelligent lock (hereinafter referred to as "method").
Referring to fig. 3, in this embodiment, the method for producing the intelligent lock includes the following steps:
step B1: n template files are written for the intelligent lockset, wherein the template files are used as configuration files, and each template file corresponds to a communication protocol of a data center; specifically, besides the self data centers of the intelligent lockset manufacturer, the user may select an ali cloud, a small Mi Yun, a China mobile cloud, a telecom angel cloud and the like, and in view of different communication protocols of different data centers, a template file is compiled for each data center, wherein the template file comprises a plurality of uplink instruction tables and a plurality of downlink instruction tables, and the uplink instruction tables and the downlink instruction tables comprise initial behavior name codes, coding format codes, data packet header codes, data packet instruction codes, data packet length codes, a plurality of intelligent lockset attribute codes and data packet verification mode codes. The template file is arranged for each data center, can be loaded to the intelligent lock and can be deleted from the intelligent lock, so that the template file and the intelligent lock are loosely coupled, and a foundation is provided for switching of the intelligent lock among different data centers.
Step B2: in the production link of the intelligent lockset, preloading a template file and a default template file corresponding to a data center to the intelligent lockset according to the requirement of a user; according to the use requirements of different users, if facing to individual users, the self-owned data center of the intelligent lockset manufacturer of the default individual users is loaded with the default template file of the self-owned data center; when the special requirements of other data centers are met, the corresponding template files are loaded in a targeted mode, and the data centers can be switched by the subsequent users according to the actual requirements.
Step B3: restarting the intelligent lockset, selecting a template file or a default template file of a corresponding data center to take effect, specifically, restarting the intelligent lockset after loading a corresponding data template, so that the template file and the default template file of the corresponding data center are both stored in the intelligent lockset, but selecting one of the template files to take effect, and registering with the corresponding data center directly when a subsequent user uses the intelligent lockset.
In order to accelerate the development speed and the efficiency of intelligent tool to lock, write a plurality of template files for intelligent tool to lock in advance, every template file corresponds different data center, when producing intelligent tool to lock, with the template file preload of user demand to intelligent tool to lock, when follow-up user need change data center, reload corresponding template file through the remote mode, can accomplish quick switch, high-efficient actual demand that satisfies the user.
The interaction method between the intelligent lockset and the data center produced by the method of the embodiment adopts the first embodiment or the second embodiment, and the specific interaction method is referred to the first embodiment or the second embodiment and is not described herein again.
The above list of detailed descriptions is only specific to practical embodiments of the present invention, and they are not intended to limit the scope of the present invention, and all equivalent embodiments or modifications that do not depart from the spirit of the present invention should be included in the scope of the present invention.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present disclosure describes embodiments, not every embodiment is provided with a separate embodiment, and that this description is provided for clarity only, and that the disclosure is not limited to the embodiments described in detail below, and that the embodiments described in the examples may be combined as appropriate to form other embodiments that will be apparent to those skilled in the art.

Claims (10)

1. The intelligent lockset and data center interaction method based on the AI is characterized by comprising the following steps:
step S1: determining a communication protocol of a first data center;
step S2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row;
step S3: analyzing the instruction table through an interpreter function and forming an instruction;
step S4: and sending the instruction to the first data center.
2. The intelligent lockset and data center interaction method based on the AI is characterized by comprising the following steps:
step A1: determining a communication protocol of a first data center;
step A2: loading a template suitable for the communication protocol to an intelligent lock, wherein the template comprises a plurality of instruction tables, the instruction tables take a behavior name code as a starting row, and the instruction tables take a data packet verification mode code as a last row;
step A3: the first data center sends an instruction to the intelligent lockset;
step A4: analyzing the instruction through an interpreter function and reading out a behavior name;
step A5: and the intelligent lockset executes the task according to the action name.
3. The AI-based intelligent lock-and-data center interaction method of claim 1 or 2, wherein the instruction form comprises, in order from a start line to an end line, a behavior name code, a coding format code, a data packet start code, a data packet instruction code, a data packet length code, a number of intelligent lock attribute codes, and a data packet verification mode code.
4. The AI-based intelligent lockset and data center interaction method of claim 3 wherein a plurality of said intelligent lockset attribute codes include at least an access number code, a physical address code, an intelligent lockset code, a key and a timestamp.
5. The AI-based intelligent lockset and data center interaction method of claim 3 wherein said action name code is a single action name code or a set of action codes.
6. The AI-based intelligent lockset and data center interaction method of claim 3 wherein said intelligent lockset attribute code comprises a static attribute code and a dynamic attribute code, said static attribute code being stored in said template.
7. The AI-based intelligent lockset and data center interaction method of claim 3 wherein said data packet verification mode code is Json or HEX.
8. The AI-based intelligent lockset and data center interaction method of claim 1 or 2, wherein the intelligent lockset stores a default template and a template adapted to the communication protocol simultaneously, further comprising the steps of:
if the background of the intelligent lockset is replaced by the second data center from the first data center, the intelligent lockset is switched to a default template from a template suitable for the communication protocol;
deleting a template adapted to the communication protocol;
loading a new template matched with a communication protocol of the second data center;
the intelligent lockset is switched to a new template from a default template.
9. The intelligent lockset production method is characterized by comprising the following steps of:
n template files are written for the intelligent lockset, wherein the template files are used as configuration files, and each template file corresponds to a communication protocol of a data center;
in the production link of the intelligent lockset, preloading a template file and a default template file corresponding to a data center to the intelligent lockset according to the requirement of a user;
and restarting the intelligent lockset, and selecting a template file or a default template file of the corresponding data center to take effect.
10. The intelligent lock production method according to claim 9, wherein the template file and the default template file of the corresponding data center respectively comprise a plurality of instruction tables, and the instruction tables sequentially comprise a behavior name code, a coding format code, a data packet start code, a data packet instruction code, a data packet length code, a plurality of intelligent lock attribute codes and a data packet verification mode code from a beginning line to an end line.
CN202410107054.1A 2024-01-25 2024-01-25 AI-based intelligent lockset and data center interaction method and intelligent lockset production method Active CN117636521B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202410308511.3A CN117994881A (en) 2024-01-25 2024-01-25 Intelligent lockset production method
CN202410107054.1A CN117636521B (en) 2024-01-25 2024-01-25 AI-based intelligent lockset and data center interaction method and intelligent lockset production method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410107054.1A CN117636521B (en) 2024-01-25 2024-01-25 AI-based intelligent lockset and data center interaction method and intelligent lockset production method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410308511.3A Division CN117994881A (en) 2024-01-25 2024-01-25 Intelligent lockset production method

Publications (2)

Publication Number Publication Date
CN117636521A true CN117636521A (en) 2024-03-01
CN117636521B CN117636521B (en) 2024-04-05

Family

ID=90025548

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202410107054.1A Active CN117636521B (en) 2024-01-25 2024-01-25 AI-based intelligent lockset and data center interaction method and intelligent lockset production method
CN202410308511.3A Pending CN117994881A (en) 2024-01-25 2024-01-25 Intelligent lockset production method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202410308511.3A Pending CN117994881A (en) 2024-01-25 2024-01-25 Intelligent lockset production method

Country Status (1)

Country Link
CN (2) CN117636521B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624685A (en) * 2011-11-24 2012-08-01 广东高新兴通信股份有限公司 Encodable protocol processing method for intelligent equipment
CN107800621A (en) * 2017-11-14 2018-03-13 宁波钧飞智能科技有限公司 A kind of novel intelligent home gateway for supporting a variety of access protocols
CN115622986A (en) * 2022-09-22 2023-01-17 勤上光电股份有限公司 Sensor communication protocol analysis method, system, storage medium and electronic equipment
CN115696500A (en) * 2021-07-30 2023-02-03 中移物联网有限公司 Service platform switching method, device and system, terminal equipment and service platform
CN115842861A (en) * 2022-11-24 2023-03-24 广东省工业边缘智能创新中心有限公司 Edge connection device adaptation method, device and computer readable storage medium
CN116032680A (en) * 2023-03-29 2023-04-28 广东好太太智能家居有限公司 Configuration method and device of intelligent equipment, electronic equipment and storage medium
CN116453247A (en) * 2023-06-13 2023-07-18 三峡高科信息技术有限责任公司 Intelligent lock control system based on Internet of things technology
CN116915529A (en) * 2022-11-17 2023-10-20 中移(杭州)信息技术有限公司 Device management method and device, electronic device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624685A (en) * 2011-11-24 2012-08-01 广东高新兴通信股份有限公司 Encodable protocol processing method for intelligent equipment
CN107800621A (en) * 2017-11-14 2018-03-13 宁波钧飞智能科技有限公司 A kind of novel intelligent home gateway for supporting a variety of access protocols
CN115696500A (en) * 2021-07-30 2023-02-03 中移物联网有限公司 Service platform switching method, device and system, terminal equipment and service platform
CN115622986A (en) * 2022-09-22 2023-01-17 勤上光电股份有限公司 Sensor communication protocol analysis method, system, storage medium and electronic equipment
CN116915529A (en) * 2022-11-17 2023-10-20 中移(杭州)信息技术有限公司 Device management method and device, electronic device and storage medium
CN115842861A (en) * 2022-11-24 2023-03-24 广东省工业边缘智能创新中心有限公司 Edge connection device adaptation method, device and computer readable storage medium
CN116032680A (en) * 2023-03-29 2023-04-28 广东好太太智能家居有限公司 Configuration method and device of intelligent equipment, electronic equipment and storage medium
CN116453247A (en) * 2023-06-13 2023-07-18 三峡高科信息技术有限责任公司 Intelligent lock control system based on Internet of things technology

Also Published As

Publication number Publication date
CN117994881A (en) 2024-05-07
CN117636521B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
White A high-level framework for network-based resource sharing
EP2495913B1 (en) Multi-virtual serial port system and communication method thereof
CN103179133B (en) Based on the client of entity class and the method for server communication
CA2511912A1 (en) System and method for building and execution of platform-neutral generic services' client applications
CN109787882A (en) Information push method, device, computer equipment and storage medium
CN112671760A (en) Socket-based client cross-platform network communication method and related equipment thereof
CA2511916A1 (en) System and method of building wireless component applications
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN111555915A (en) Dynamic network element control system based on plug-in configuration
CN103079020A (en) Terminal control system and terminal control method
CN104253858B (en) A kind of mobile data synchronization conflict pretreatment and digestion procedure based on packet
CN103577568A (en) Cross-platform mobile safety comprehensive information aggregation system and method adopting same
CN101997853A (en) Data downloading method and terminal
CN103166964B (en) Front end and back end real time communication method for super computer system monitoring
CN102256241B (en) Method, server and intelligent card for acquiring bearer independent protocol (BIP) information of terminal
CN115567594A (en) Microservice request processing method, microservice request processing device, computer equipment and storage medium
CN112114939A (en) Distributed system deployment equipment and method
CN111736762A (en) Synchronous updating method, device, equipment and storage medium of data storage network
CN117636521B (en) AI-based intelligent lockset and data center interaction method and intelligent lockset production method
CN100525208C (en) Data synchronization method
CN112379938A (en) Cross-browser safe local application calling method based on domestic operating system
CN101384037A (en) Establishing method for special data channel between mobile application and intelligent card
CN104598250A (en) System management structure and management implementation method for same
CN109218142A (en) One kind being based on OneM2M agreement platform of internet of things terminal access method and device
CN1682215A (en) Databases synchronization

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