Method and system for setting code by user
Technical Field
The invention relates to the technical field of setting codes of decoding boards, in particular to a method and a system for setting codes by self-definition.
Background
The method comprises the steps that a setting code is an image, the image represents a string of character information in a one-dimensional bar code mode, the string of characters represents a setting instruction capable of carrying out function configuration on decoding equipment, when the decoding equipment needs to be subjected to function setting, the decoding equipment is usually used for scanning the setting code, the decoding equipment can obtain the string representing the setting instruction after analyzing the scanned image, and finally the decoding equipment carries out function setting according to the setting information contained in the setting instruction.
However, after the existing setting code is generated, the user cannot customize the generated setting code, and when the user has new requirements for the setting code, the new requirements of the user can only be realized by generating the new setting code, so that the user cannot perform attribute setting on the decoding device according to the requirements of the user in time, and the use experience of the user on the decoding device is influenced.
Disclosure of Invention
In view of this, the present invention provides a method and a system for setting a code by user definition, which can solve the defect that the existing setting code cannot be customized according to the new requirements of the user.
The technical scheme of the invention is realized as follows:
a method for setting a code by self-definition specifically comprises the following steps:
step S1, issuing a self-defined setting code instruction manual;
step S2, generating a universal one-dimensional or two-dimensional code generating tool for defining a corresponding identification character string code diagram by a user according to a user-defined setting code instruction manual, and a user-defined setting code operation flow and a user-defined setting code identification mechanism realized by a decoding board;
step S3, according to the operation flow of the user-defined setting code, the decoding board stores or deletes the unique serial number and the user-defined identification character string corresponding to the setting code semanteme;
and step S4, according to the recognition self-defined setting code mechanism, decoding the code of the board scanning code corresponding to the identification character string code image, obtaining the identification character string and the corresponding semantic unique serial number after decoding, and then executing the corresponding semantics defined by the self-defined setting code instruction manual according to the corresponding semantic unique serial number, thereby realizing the self-definition of the setting code.
As a further alternative of the method for setting a custom code, the custom code instruction manual includes a custom code semantic, a corresponding unique serial number, and a custom code mechanism.
As a further alternative of the method for setting a custom code, the custom code setting mechanism includes a custom code start setting code, a semantic unique serial number setting code, a custom code save setting code, and a custom code delete setting code.
A system for customizing a set code, the system comprising:
the issuing module is used for issuing a user-defined setting code instruction manual;
the generating module is used for generating a universal one-dimensional or two-dimensional code generating tool for defining a code diagram corresponding to the identification character string by a user according to the self-defined setting code instruction manual, and a self-defined setting code operation flow and a self-defined setting code recognizing mechanism realized by the decoding board;
the storage and deletion module is used for storing or deleting the unique serial number and the custom identification character string corresponding to the set code semantics by the decoding board according to the custom set code operation flow;
and the execution module is used for scanning a code corresponding to the identification character string code map by the decoding board according to the identification custom setting code mechanism, obtaining the identification character string and the corresponding semantic unique serial number after decoding, and then executing the corresponding semantics defined by the custom setting code instruction manual according to the corresponding semantic unique serial number, thereby realizing the custom setting of the setting code.
As a further alternative to the system of custom set codes, the custom set code instruction manual includes custom set code semantics, a corresponding unique serial number, and a custom set code mechanism.
As a further alternative of the system of the self-defined setting code, the self-defined setting code mechanism comprises a self-defined setting code starting setting code, a semantic unique serial number setting code, a self-defined setting code saving setting code and a self-defined setting code deleting setting code.
The invention has the beneficial effects that: the method comprises the steps of issuing a user-defined setting code instruction manual, generating a universal one-dimensional or two-dimensional code generation tool of a user-defined corresponding identification character string code diagram according to the user-defined setting code instruction manual, storing or deleting a unique serial number and a user-defined identification character string corresponding to a setting code semantic by a decoding board according to the user-defined setting code operation flow and a user-defined setting code identification mechanism realized by the decoding board, scanning the identification character string code diagram corresponding to the decoding board according to the user-defined setting code operation flow, obtaining the identification character string and a corresponding semantic unique serial number after decoding, and executing the corresponding semantic defined by the user-defined setting code instruction manual according to the corresponding semantic unique serial number.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for setting a code by user definition according to the present invention;
FIG. 2 is a block diagram of a system for customizing a configuration code according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-2, a method for setting a code by user-defining specifically includes the following steps:
step S1, issuing a self-defined setting code instruction manual;
step S2, generating a universal one-dimensional or two-dimensional code generating tool for defining a corresponding identification character string code diagram by a user according to a user-defined setting code instruction manual, and a user-defined setting code operation flow and a user-defined setting code identification mechanism realized by a decoding board;
step S3, according to the operation flow of the user-defined setting code, the decoding board stores or deletes the unique serial number and the user-defined identification character string corresponding to the setting code semanteme;
and step S4, according to the recognition self-defined setting code mechanism, decoding the code of the board scanning code corresponding to the identification character string code image, obtaining the identification character string and the corresponding semantic unique serial number after decoding, and then executing the corresponding semantics defined by the self-defined setting code instruction manual according to the corresponding semantic unique serial number, thereby realizing the self-definition of the setting code.
In the embodiment, a user-defined universal one-dimensional or two-dimensional code generation tool corresponding to the identification character string code diagram is generated by issuing a user-defined setting code instruction manual and according to the user-defined setting code instruction manual, and a self-defined setting code operation flow and a self-defined setting code recognition mechanism realized by the decoding board, wherein the decoding board stores or deletes the unique serial number corresponding to the setting code semanteme and the self-defined identification character string according to the self-defined setting code operation flow, scans the code of the decoding board corresponding to the identification character string code diagram according to the self-defined setting code recognition mechanism, and obtains the identification character string and the corresponding unique serial number of the semanteme after decoding, and then, executing the corresponding semantics defined by the self-defined setting code instruction manual according to the corresponding semantic unique serial number, thereby effectively meeting the requirement of a user for self-defining setting codes and improving the use experience of the user on decoding equipment.
Preferably, the self-defined setting code instruction manual comprises self-defined setting code semantics, a corresponding unique serial number and a self-defined setting code mechanism.
Preferably, the user-defined setting code mechanism comprises a user-defined setting code starting setting code, a semantic unique serial number setting code, a user-defined setting code storage setting code and a user-defined setting code deletion setting code.
A system for customizing a set code, the system comprising:
the issuing module is used for issuing a user-defined setting code instruction manual;
the generating module is used for generating a universal one-dimensional or two-dimensional code generating tool for defining a code diagram corresponding to the identification character string by a user according to the self-defined setting code instruction manual, and a self-defined setting code operation flow and a self-defined setting code recognizing mechanism realized by the decoding board;
the storage and deletion module is used for storing or deleting the unique serial number and the custom identification character string corresponding to the set code semantics by the decoding board according to the custom set code operation flow;
and the execution module is used for scanning a code corresponding to the identification character string code map by the decoding board according to the identification custom setting code mechanism, obtaining the identification character string and the corresponding semantic unique serial number after decoding, and then executing the corresponding semantics defined by the custom setting code instruction manual according to the corresponding semantic unique serial number, thereby realizing the custom setting of the setting code.
In the embodiment, a user-defined universal one-dimensional or two-dimensional code generation tool corresponding to the identification character string code diagram is generated by issuing a user-defined setting code instruction manual and according to the user-defined setting code instruction manual, and a self-defined setting code operation flow and a self-defined setting code recognition mechanism realized by the decoding board, wherein the decoding board stores or deletes the unique serial number corresponding to the setting code semanteme and the self-defined identification character string according to the self-defined setting code operation flow, scans the code of the decoding board corresponding to the identification character string code diagram according to the self-defined setting code recognition mechanism, and obtains the identification character string and the corresponding unique serial number of the semanteme after decoding, and then, executing the corresponding semantics defined by the self-defined setting code instruction manual according to the corresponding semantic unique serial number, thereby effectively meeting the requirement of a user for self-defining setting codes and improving the use experience of the user on decoding equipment.
Preferably, the self-defined setting code instruction manual comprises self-defined setting code semantics, a corresponding unique serial number and a self-defined setting code mechanism.
Preferably, the user-defined setting code mechanism comprises a user-defined setting code starting setting code, a semantic unique serial number setting code, a user-defined setting code storage setting code and a user-defined setting code deletion setting code.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.