CN115179515B - System and method for quickly switching mold data of injection molding machine - Google Patents

System and method for quickly switching mold data of injection molding machine Download PDF

Info

Publication number
CN115179515B
CN115179515B CN202210605223.5A CN202210605223A CN115179515B CN 115179515 B CN115179515 B CN 115179515B CN 202210605223 A CN202210605223 A CN 202210605223A CN 115179515 B CN115179515 B CN 115179515B
Authority
CN
China
Prior art keywords
data
control host
value
serial port
wireless serial
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
CN202210605223.5A
Other languages
Chinese (zh)
Other versions
CN115179515A (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.)
Haitian Machinery Guangdong Co ltd
Original Assignee
Haitian Machinery Guangdong 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 Haitian Machinery Guangdong Co ltd filed Critical Haitian Machinery Guangdong Co ltd
Priority to CN202210605223.5A priority Critical patent/CN115179515B/en
Publication of CN115179515A publication Critical patent/CN115179515A/en
Application granted granted Critical
Publication of CN115179515B publication Critical patent/CN115179515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C45/00Injection moulding, i.e. forcing the required volume of moulding material through a nozzle into a closed mould; Apparatus therefor
    • B29C45/17Component parts, details or accessories; Auxiliary operations
    • B29C45/76Measuring, controlling or regulating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C45/00Injection moulding, i.e. forcing the required volume of moulding material through a nozzle into a closed mould; Apparatus therefor
    • B29C45/17Component parts, details or accessories; Auxiliary operations
    • B29C45/76Measuring, controlling or regulating
    • B29C2045/7606Controlling or regulating the display unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Manufacturing & Machinery (AREA)
  • Mechanical Engineering (AREA)
  • Injection Moulding Of Plastics Or The Like (AREA)

Abstract

The invention discloses a method for quickly switching mould data of an injection molding machine, which belongs to the technical field of injection moulds, wherein in the scheme of the invention, a digital information module enables each mould to have a unique digital information identifier; the information identification module mobile terminal is used for identifying the digital information module and transmitting the digital information module to the wireless serial port equipment; the wireless serial port equipment encrypts the data by using the data encryption unit and then transmits the encrypted data to the control host through the wireless serial port unit; the control host decrypts the encrypted data transmitted from the wireless serial port equipment by using the data decryption unit, and then matches the decrypted data with the corresponding mold data pre-stored in the data storage unit; and then automatically loading corresponding mould data through display equipment. The invention solves the technical problem of how to optimize the die data identification system.

Description

System and method for quickly switching mold data of injection molding machine
Technical Field
The invention relates to the technical field of injection molds, in particular to a system and a method for quickly switching mold data of an injection molding machine.
Background
The injection molding machine can carry various molds, but the technological parameters of the injection molding machine corresponding to each set of mold are different, and after a user finishes one-time injection molding production and changes the injection mold, the injection molding machine needs to be reloaded with the corresponding data of the newly loaded mold. However, the number of molds in a common injection molding manufacturing facility is typically tens or even thousands; when the number of the corresponding molds in the injection molding machine is large, the user can hardly or cannot quickly find the required corresponding mold data in the operation picture of the injection molding machine. The intelligent digital identification and the information management of the mold are very important work in enterprise management, particularly injection molding production enterprise management. Specifically, to realize the identification informatization management of the intelligent die tube, the die itself must be provided with a corresponding digital information module, and the digital information module is accurately and quickly read through another device and converted into a digital signal, so that the digital information module is required to have the characteristics of high temperature resistance, corrosion resistance, good integrity under mechanical external force collision and the like. The digital information modules used in large quantities at present are mainly electronic chips, two-dimensional codes or bar codes, and the identification of the digital information modules needs to be carried out by using special identification equipment, such as industrial code scanning guns and the like. However, industrial barcode scanning guns and other devices are expensive and heavy, which is not suitable for mass popularization.
Based on this, chinese patent CN112439895A discloses a simple identification system for a mold, which is disposed on the mold, and comprises a fixed seat mounted on the mold and a sensing device disposed at one side of the mold; the fixed seat comprises a plurality of mounting holes and detection pieces, the mounting holes are formed in the die, the positions of the mounting holes are matched with those of the induction devices, and the detection pieces are arranged in at least one mounting hole; the induction device comprises an inductor; the sensor is used for sensing the detection piece. The simple mold identification system senses the installation number and the positions of the detection pieces in the fixed seat through the sensor in the sensing device, converts sensed information into codes, and compares the codes with the set codes of the mold, so that the mold is identified.
However, the above-disclosed mold simple identification system has a technical problem of low information identification amount. Specifically, in the above disclosed simple die identification system, the die fixing position is provided with a fixing seat, the position of the fixing seat corresponds to the position of the sensor, each die has a unique arrangement of the detection member, the sensor outputs 1 when sensing that the detection member is arranged in the mounting hole, and the sensor outputs 0 when not sensing that the detection member is arranged in the mounting hole, so that a binary number is formed, that is, each die has a unique binary number. When the die runs to the induction device, an inductor in the induction device starts to work; whether the detection piece exists in the fixed seat is sensed through the sensor, information is read and converted, and therefore the identification of the die is completed. Therefore, the simple die identification system mainly senses the number and the positions of the detection pieces in the mounting holes of the die fixing seat to be identified through the sensor in the sensing device, feeds back a group of data information coded by 0 and 1, compares the data information with the die codes, and identifies the specific die type. That is, the number of dies that can be recognized by the system is limited by the number of the mounting holes and the number of the detecting members, and the number of the binary codes that can be recognized by the system is limited by the size of the single set of dies and the number of the mounting holes that can be arranged, that is, the number of the types of dies that can be actually recognized by the system is limited.
Disclosure of Invention
In view of the above, there is a need to provide a system and method for an injection molding machine to rapidly switch mold data in order to optimize a mold data identification system.
A system for rapid switching of mold data for an injection molding machine, comprising: the system comprises a digital information module, an information identification module mobile terminal, wireless serial port equipment, a control host and display equipment. The digital information module records digital information of each mould with unique identification; the information identification module mobile terminal is loaded with a program for identifying the digital information recorded by the digital information module, and the program and the wireless serial port can automatically establish Socket communication for interactive data. The wireless serial port equipment is provided with a data encryption unit and a serial port unit; the data encryption unit encrypts the received digital information firstly and then transmits the encrypted data to the control host through the serial port unit. The control host computer carries out information interaction with the wireless serial port equipment through the serial port unit, and is provided with a data decryption unit and a data storage unit. The data decryption unit receives and decrypts data; the data storage unit stores the datamation information of each mould; the control host compares the decrypted data with a database in the data storage unit and then transmits the result to the display equipment; the display equipment is used for displaying information.
Further, the digital information module is a bar code, a two-dimensional code or an electronic chip; the mobile terminal of the information identification module is a mobile phone, a tablet personal computer or a computer.
Further, a method applied to the system for rapidly switching the mold data of the injection molding machine comprises the following steps:
s1: marking bar codes or two-dimensional codes with unique digital information on each mould in advance;
s2: binding each mould data with the corresponding bar code or two-dimensional code on the display equipment, and storing all the mould data into a data storage unit arranged on the control host;
s3: the information identification module mobile terminal is firstly connected with a network hotspot of the wireless serial port equipment; then, opening a program pre-loaded by the information identification module mobile terminal, and at the moment, automatically establishing Socket communication with the wireless serial port equipment by the information identification module mobile terminal;
s4: identifying a bar code or a two-dimensional code on the mold by using the information identification module mobile terminal; then, the information identification module mobile terminal transmits the read data to the wireless serial port equipment through the network hotspot;
s5: the wireless serial port equipment encrypts the received data by the data encryption unit and transmits the encrypted data to the control host through the serial port unit;
s6: the control host analyzes the received data through the data decryption unit, compares the analyzed data with the data stored in the database in the data storage unit, and automatically loads the corresponding die data through the display equipment if the data match is successful; and if the data matching fails, sending out alarm information by the display equipment.
Further, after the wireless serial port device and the control host are reconnected each time, the wireless serial port device and the control host perform initial handshake verification: firstly, the control host sends the unique serial number value and the model value of the control host to the wireless serial port equipment; then, the wireless serial port equipment generates a random character string value and calculates the random character string value, the received unique serial number value of the control host and the model value of the control host according to a preset algorithm to obtain a key value of the wireless serial port equipment; then, the wireless serial port equipment sends the key value and the random character string value of the wireless serial port equipment to the control host; then, the control host calculates the received random character string value, the unique serial number value of the control host and the model value of the control host according to a preset algorithm to obtain a key value of the control host; when the key value of the wireless serial device is matched with the key value of the control host, the handshake verification is passed, and a data communication channel is established between the wireless serial device and the control host; and if the key value of the wireless serial port device is not matched with the key value of the control host, the control host controls the display device to send out alarm information.
Further, the unique serial number value of the control host is the unique code of the control host leaving the factory; the random character string value is a character string value randomly generated by the wireless serial port equipment each time; the control master model value is an abbreviation of control master model.
Further, the preset algorithm comprises an authorization code algorithm and a secret key algorithm; the wireless serial port equipment firstly calculates the authorization code of the wireless serial port equipment according to the authorization code algorithm by combining the random character string value generated by the wireless serial port equipment with the unique serial number value of the control host and the model value of the control host sent by the control host; then, the wireless serial device calculates a key value of the wireless serial device according to the authorization code of the wireless serial device and a key algorithm; then, after receiving the key value and the random character string value of the wireless serial port device transmitted by the wireless serial port device, the control host calculates the authorization code of the control host according to an authorization code algorithm by combining the unique serial number value and the model value of the control host; then, the control host calculates the key value of the control host according to the key algorithm according to the authorization code of the control host.
Specifically, the authorization code algorithm is specifically:
value1= the sum of ASCII code values of all characters of the unique serial number of the control host, and only the low order is reserved;
value2= the sum of ASCII code values of all characters of the random string Value, and only the low order bits are reserved;
value3= the sum of the ASCII code values of all characters of the control host model Value, and only the low order bits are reserved;
Value4=F(Value1,Value2,Value3);
Value5=G(Value1,Value2,Value3);
Value6=H(Value1,Value2,Value3);
Value7=I(Value1,Value2,Value3);
value8= splicing Value4, value5, value6 and Vlaue7 into a new number in sequence;
wherein:
function 1: f (X, Y, Z) = (X & Y) | ((-. X) & Z);
function 2: g (X, Y, Z) = (X & Z) | (Y & (~ Z));
function 3: h (X, Y, Z) = X ^ Y ^ Z;
function 4: i (X, Y, Z) = Y ^ (X | (-. Z));
and, & represents AND operation, | represents OR operation, - [ means NOT operation, [ means ] represents XOR operation.
Specifically, the key algorithm specifically includes:
value9= new number retrieved by reverse ordering Value8 in 16;
value10= each bit of the Value9 Value and each bit of the Value8 Value are sequentially cross-combined and arranged according to a 16-system; wherein, value9 is high, and Value8 is low.
Specifically, the encryption method of the data encryption unit is as follows:
a. dividing data to be encrypted according to data blocks, taking 8 bytes as one data block, and if the last group of the data blocks is less than 8 bytes, filling the rest n data blocks in a 0x0n mode until the data blocks are full of 8 bytes;
b. and sequentially alternating the value of each data block with 8 bytes in the exclusive or key.
In summary, the system for rapidly switching the mold data of the injection molding machine is respectively provided with a digital information module, an information identification module moving end, a wireless serial port device, a control host and a display device; in combination with the method for quickly switching the mold data of the injection molding machine, the digital information modules are respectively arranged corresponding to each mold, and each mold is provided with a unique digital information identifier; the information identification module mobile terminal is used for identifying the digital information module and transmitting the identified information to the wireless serial port equipment through a hotspot; the wireless serial port equipment and the control host need to be subjected to handshake verification before being connected each time, and when the handshake verification is passed, the data transmitted by the information identification module mobile terminal is encrypted by using the data encryption unit, and then the encrypted data is transmitted to the control host through the wireless serial port unit; if the handshake verification fails, the control host displays alarm information through the display equipment; if the handshake verification is passed, the control host decrypts the encrypted data transmitted from the wireless serial port equipment by using the data decryption unit, and then matches the decrypted data with the corresponding mold data pre-stored in the data storage unit; and if the data matching is passed, automatically loading corresponding mould data through the display equipment, and if the data matching is failed, displaying alarm information through the display equipment. The mobile end of the information identification module can use common mobile equipment such as a mobile phone, a tablet or a mobile computer, so that the cost investment of an industrial code scanning gun can be saved by using the mobile equipment, and the popularization and the use are facilitated; in addition, the wireless serial port equipment and the control host are subjected to handshake verification after being reconnected each time, and data transmission and matching can be performed only after the handshake verification of the wireless serial port equipment and the control host is passed; in addition, the wireless serial port equipment encrypts the transmitted data according to a specified data encryption method and then sends the encrypted data to the control host, so that the data communication is safer and more guaranteed. Therefore, the system and the method for quickly switching the mold data of the injection molding machine solve the technical problem of how to optimize the mold data identification system.
Drawings
FIG. 1 is a functional block diagram of a system for rapidly switching mold data for an injection molding machine according to the present invention;
fig. 2 is a flowchart of a method for rapidly switching mold data for an injection molding machine according to the present invention.
Detailed description of the preferred embodiments
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will recognize without departing from the spirit and scope of the present invention.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise.
In the present invention, unless otherwise explicitly stated or limited, the terms "mounted," "connected," "fixed," and the like are to be construed broadly, e.g., as being permanently connected, detachably connected, or integral; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "above," and "over" a second feature may be directly on or obliquely above the second feature, or simply mean that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "upper," "lower," "left," "right," and the like as used herein are for illustrative purposes only and do not denote a unique embodiment.
Referring to fig. 1, fig. 1 is a functional block diagram of a system for quickly switching mold data of an injection molding machine according to the present invention. As shown in fig. 1, a system for rapidly switching mold data of an injection molding machine according to the present invention includes: the system comprises a digital information module, an information identification module mobile terminal, wireless serial port equipment, a control host and display equipment. The digital information module records digital information of each mould with unique identification; the information identification module mobile terminal is loaded with a program for identifying the digital information recorded by the digital information module, and the program and the wireless serial port can automatically establish Socket communication for interactive data. The wireless serial port equipment is provided with a data encryption unit and a serial port unit; the data encryption unit encrypts the received digital information firstly and then transmits the encrypted data to the control host through the serial port unit. The control host computer carries out information interaction with the wireless serial port equipment through the serial port unit, and is provided with a data decryption unit and a data storage unit. The data decryption unit receives and decrypts data; the data storage unit stores data information of each die; the control host compares the decrypted data with a database in the data storage unit and then transmits the result to the display equipment; the display device is used for information display.
Specifically, the digital information module includes, but is not limited to, a bar code, a two-dimensional code, or an electronic chip with an information recording function; the mobile end of the information identification module can be a mobile phone, a tablet computer, a notebook computer or a portable microcomputer and the like. One preferred embodiment is: the digital information module is a bar code; the bar code can be adhered or engraved on the surface of the injection mold; the information identification module can be a mobile phone generally; the mobile phone can be preloaded with a code scanning program; and the code scanning program is used for identifying the bar code and performing data interaction with the wireless serial port equipment.
More specifically, with continued reference to fig. 2, fig. 2 is a flowchart of a method for quickly switching mold data of an injection molding machine according to the present invention; fig. 2 shows a flowchart of a method applied to the system for rapidly switching mold data of an injection molding machine. As shown in fig. 2; the invention relates to a method for quickly switching mould data of an injection molding machine, which comprises the following steps:
s1: marking bar codes or two-dimensional codes with unique digital information on each mould in advance;
s2: binding each mould data with the corresponding bar code or two-dimensional code on the display equipment, and storing all the mould data into a data storage unit arranged on the control host;
s3: the information identification module mobile terminal is firstly connected with a network hotspot of the wireless serial port equipment; then, opening a program pre-loaded by the information identification module mobile terminal, and at the moment, automatically establishing Socket communication with the wireless serial port equipment by the information identification module mobile terminal;
s4: identifying a bar code or a two-dimensional code on the mold by using the information identification module mobile terminal; then, the information identification module mobile terminal transmits the read data to the wireless serial port equipment through the network hotspot;
s5: the wireless serial port equipment encrypts the received data by the data encryption unit and transmits the encrypted data to the control host through the serial port unit;
s6: the control host analyzes the received data through the data decryption unit, then compares the analyzed data with the data stored in the database in the data storage unit, and if the data matching is successful, the corresponding mould data is automatically loaded through the display equipment; and if the data matching fails, sending out alarm information by the display equipment.
Furthermore, in order to prevent the data from being intercepted and packaged to ensure the safety of communication between the devices, the communication content between the control host and the wireless serial device needs to be encrypted or decrypted by combining a secret key; and the key value needs to be calculated and matched again after the wireless serial port device and the control host are reconnected each time. Specifically, after the wireless serial port device and the control host are reconnected each time, the wireless serial port device and the control host perform initial handshake verification: firstly, the control host sends the unique serial number value and the model value of the control host to the wireless serial port equipment; then, the wireless serial port equipment generates a random character string value and calculates the random character string value, the received unique serial number value of the control host and the model value of the control host according to a preset algorithm to obtain a key value of the wireless serial port equipment; then, the wireless serial port equipment sends the key value and the random character string value of the wireless serial port equipment to the control host; then, the control host calculates the received random character string value, the unique serial number value of the control host and the model value of the control host according to a preset algorithm to obtain a key value of the control host; when the wireless serial port device key value is matched with the control host key value, the handshake verification is passed, and a data communication channel is established between the wireless serial port device and the control host; and if the key value of the wireless serial port device is not matched with the key value of the control host, the control host controls the display device to send out alarm information.
Specifically, the wireless serial device key value and the control host key value are composed of three values of a unique serial number value of the control host, a random character string value and a model value of the control host which are calculated through a preset algorithm. The unique serial number value of the control host is a unique code for the control host to leave a factory; the random character string value is a character string value randomly generated by the wireless serial port equipment each time; the control host model value is an abbreviation of the control host model.
More specifically, the preset algorithm includes an authorization code algorithm and a key algorithm; the wireless serial port equipment firstly calculates an authorization code of the wireless serial port equipment according to the authorization code algorithm by combining a random character string value generated by the wireless serial port equipment with a unique serial number value and a model value of the control host sent by the control host; and then, the wireless serial device calculates the key value of the wireless serial device according to the key algorithm and the authorization code of the wireless serial device. Similarly, after receiving the wireless serial device key value and the random character string value transmitted by the wireless serial device, the control host calculates a control host authorization code according to the authorization code algorithm by combining the unique serial number value of the control host and the model value of the control host; and then, the control host calculates the key value of the control host according to the key algorithm according to the authorization code of the control host. And then, the control host carries out matching judgment on the key value of the wireless serial port device and the key value of the control host.
Specifically, the authorization code algorithm is as follows:
value1= the sum of ASCII code values of all characters of the unique serial number of the control host, and only the low order is reserved;
value2= sum of ASCII code values of all characters of a random string Value, and only low bits are reserved;
value3= the sum of ASCII code values of all characters of the control host model Value, and only the low order bits are reserved;
Value4=F(Value1,Value2,Value3);
Value5=G(Value1,Value2,Value3);
Value6=H(Value1,Value2,Value3);
Value7=I(Value1,Value2,Value3);
value8= splicing Value4, value5, value6 and Vlaue7 into a new number in sequence;
wherein:
function 1: f (X, Y, Z) = (X & Y) | ((-. X) & Z);
function 2: g (X, Y, Z) = (X & Z) | (Y & (~ Z));
function 3: h (X, Y, Z) = X ^ Y ^ Z;
function 4: i (X, Y, Z) = Y ^ (X | (-. Z));
and, & represents AND operation, | represents OR operation, - < represents NOT operation, < Lambda > represents XOR operation.
Specifically, the key algorithm is specifically as follows:
value9= new number retrieved by reverse ordering Value8 in 16;
value10= each bit of the Value9 Value and each bit of the Value8 Value are sequentially cross-combined and arranged according to a 16-system; wherein, value9 is high, and Value8 is low.
More specifically, an operation embodiment of the authorization code algorithm and the key algorithm is specifically as follows:
the unique serial number value of the control host sent by the control host is as follows: 17871352; the control host model values are as follows: kb; and the random character string value randomly generated by the wireless serial port equipment at this time is as follows: abcd.
The unique serial number value 17871352, the random character string value abcd and the control host model value kb are calculated according to an authorization code algorithm as follows:
Value1=0x31+0x37+0x38+0x37+0x31+0x33+0x35+0x32=0x01A2=0xA2;
Value2=0x61+0x62+0x63+0x64=0x018A=0x8A;
Value3=0x6B+0x62=0x00CD=0xCD;
Value4=CF;
Value5=82;
Value6=E5;
Value7=38;
Value8=CF82E538。
the Value8 is fixed to 8 bits.
Then, the following is calculated according to the key algorithm:
Value9=835E28FC;
Value10=8C3F58E22E85F3C8。
the Value10 is fixed to 16 bits.
And if the wireless serial device key value calculated according to the authorization code algorithm and the key algorithm in the wireless serial device is matched with the control host key value calculated according to the authorization code algorithm and the key algorithm in the control host, the wireless serial device and the control host pass handshake verification.
Furthermore, the wireless serial port device is provided with a data encryption unit, and data identified and read by the mobile terminal of the information identification module is encrypted by the data encryption unit and then transmitted to the control host through the wireless serial port unit; the encryption method of the data encryption unit is as follows:
dividing data to be encrypted according to data blocks, taking 8 bytes as one data block, and if the last group of data is less than 8 bytes, filling the rest n data blocks in a 0x0n mode until the data blocks are full of 8 bytes;
and sequentially alternating the value of each data block with 8 bytes in the exclusive-or key.
For example, in step a above, one embodiment is as follows:
0123456789ABCDEF 0123456789ABCDEF 0123456789AB
it can be known that, in the above embodiment, the last group of data blocks has only 6 bytes, and less than 8 bytes; therefore, the filling was performed in a 0x02 manner, and the examples after filling were as follows:
0123456789ABCDEF 0123456789ABCDEF 0123456789AB0202
specifically, in the step b, one example is shown in the following table:
Figure SMS_1
as can be seen from the above table, the left side is the data to be encrypted, and the upper right side is a key value; and sequentially and alternately carrying out XOR on the values of each data block in the data on the left side and 8 bytes in the key to obtain the encrypted data on the lower right side.
In summary, the system for rapidly switching the mold data of the injection molding machine is respectively provided with a digital information module, an information identification module moving end, a wireless serial port device, a control host and a display device; in combination with the method for quickly switching the mold data of the injection molding machine, the digital information module is respectively arranged corresponding to each mold, and each mold is provided with a unique digital information identifier; the information identification module mobile terminal is used for identifying the digital information module and transmitting the identified information to the wireless serial port equipment through a hot spot; the wireless serial port equipment and the control host need to be subjected to handshake verification before being connected each time, and when the handshake verification is passed, the data transmitted by the information identification module mobile terminal is encrypted by using the data encryption unit, and then the encrypted data is transmitted to the control host through the wireless serial port unit; if the handshake verification fails, the control host displays alarm information through the display equipment; if the handshake verification is passed, the control host decrypts the encrypted data transmitted from the wireless serial port equipment by using the data decryption unit, and then matches the decrypted data with the corresponding mold data pre-stored in the data storage unit; if the data matching is passed, automatically loading the corresponding mould data through the display equipment, and if the data matching is failed, displaying alarm information through the display equipment. The mobile end of the information identification module can use common mobile equipment such as a mobile phone, a tablet or a mobile computer, so that the cost investment of an industrial code scanning gun can be saved by using the mobile equipment, and the popularization and the use are facilitated; in addition, the wireless serial port equipment and the control host are subjected to handshake verification after being reconnected each time, and data transmission and matching can be performed only after the handshake verification of the wireless serial port equipment and the control host is passed; in addition, the wireless serial port equipment encrypts the transmitted data according to a specified data encryption method and then sends the encrypted data to the control host, so that the data communication is safer and more guaranteed. Therefore, the system and the method for quickly switching the mold data of the injection molding machine solve the technical problem of how to optimize the mold data identification system.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (4)

1. A method for quickly switching mold data of an injection molding machine is characterized by comprising the following steps:
s1: marking bar codes or two-dimensional codes with unique digital information on each mould in advance;
s2: binding each mould data with the corresponding bar code or two-dimensional code on the display equipment, and storing all the mould data into a data storage unit arranged on the control host;
s3: the information identification module mobile terminal is firstly connected with a network hotspot of the wireless serial port equipment; then, opening a program pre-loaded by the information identification module mobile terminal, and at the moment, automatically establishing Socket communication with the wireless serial port equipment by the information identification module mobile terminal;
s4: identifying a bar code or a two-dimensional code on the mold by using the information identification module mobile terminal; then, the information identification module mobile terminal transmits the read data to the wireless serial port equipment through the network hotspot;
s5: the wireless serial port equipment encrypts the received data by the data encryption unit and transmits the encrypted data to the control host through the serial port unit;
s6: the control host analyzes the received data through the data decryption unit, compares the analyzed data with the data stored in the database in the data storage unit, and automatically loads the corresponding die data through the display equipment if the data match is successful; if the data matching fails, sending alarm information by the display equipment;
wherein, after wireless serial port equipment and the reconnection of control host computer every time, both carry out the verification of shaking hands for the first time: firstly, the control host sends the unique serial number value and the model value of the control host to the wireless serial port equipment; then, the wireless serial port equipment generates a random character string value and calculates the random character string value, the received unique serial number value of the control host and the model value of the control host according to a preset algorithm to obtain a key value of the wireless serial port equipment; then, the wireless serial port equipment sends the key value and the random character string value of the wireless serial port equipment to the control host; then, the control host calculates the received random character string value, the unique serial number value of the control host and the model value of the control host according to a preset algorithm to obtain a key value of the control host; when the key value of the wireless serial device is matched with the key value of the control host, the handshake verification is passed, and a data communication channel is established between the wireless serial device and the control host; if the key value of the wireless serial port device is not matched with the key value of the control host, the control host controls the display device to send out alarm information;
the unique serial number value of the control host is the unique code of the control host leaving the factory; the random character string value is a character string value randomly generated by the wireless serial port equipment each time; the control host model value is an abbreviation of the control host model;
the preset algorithm comprises an authorization code algorithm and a secret key algorithm; the wireless serial port equipment calculates the authorization code of the wireless serial port equipment according to the authorization code algorithm by combining the random character string value generated by the wireless serial port equipment with the unique serial number value of the control host and the model value of the control host sent by the control host; then, the wireless serial device calculates a key value of the wireless serial device according to the key algorithm according to the authorization code of the wireless serial device; then, after receiving the key value and the random character string value of the wireless serial port device transmitted by the wireless serial port device, the control host calculates the authorization code of the control host according to an authorization code algorithm by combining the unique serial number value and the model value of the control host; then, the control host calculates the key value of the control host according to the key algorithm according to the authorization code of the control host.
2. The method of claim 1 for rapidly switching mold data for an injection molding machine, wherein: the authorization code algorithm is specifically as follows:
value1= the sum of ASCII code values of all characters of the unique serial number of the control host, and only the low order is reserved;
value2= sum of ASCII code values of all characters of a random string Value, and only low bits are reserved;
value3= the sum of the ASCII code values of all characters of the control host model Value, and only the low order bits are reserved;
Value4=F(Value1,Value2,Value3);
Value5=G(Value1,Value2,Value3);
Value6=H(Value1,Value2,Value3);
Value7=I(Value1,Value2,Value3);
value8= splicing Value4, value5, value6 and Vlaue7 into a new number in sequence;
wherein:
function 1: f (X, Y, Z) = (X & Y) | ((-. X) & Z);
function 2: g (X, Y, Z) = (X & Z) | (Y & (~ Z));
function 3: h (X, Y, Z) = X ^ Y ^ Z;
function 4: i (X, Y, Z) = Y ^ (X | (-. Z));
and, & represents AND operation, | represents OR operation, - < represents NOT operation, < Lambda > represents XOR operation.
3. The method of claim 2 for use with an injection molding machine for rapidly switching mold data, wherein: the key algorithm specifically comprises:
value9= new number retrieved by reverse ordering Value8 in 16;
value10= each bit of the Value9 Value and each bit of the Value8 Value are sequentially cross-combined and arranged according to a 16-system; wherein, value9 is high, and Value8 is low.
4. A method for rapidly switching mold data for an injection molding machine according to claim 3, wherein: the encryption method of the data encryption unit comprises the following steps:
a. dividing data to be encrypted according to data blocks, taking 8 bytes as one data block, and if the last group of data is less than 8 bytes, filling the rest n data blocks in a 0x0n mode until the data blocks are full of 8 bytes;
b. and sequentially alternating the value of each data block with 8 bytes in the exclusive or key.
CN202210605223.5A 2022-05-31 2022-05-31 System and method for quickly switching mold data of injection molding machine Active CN115179515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210605223.5A CN115179515B (en) 2022-05-31 2022-05-31 System and method for quickly switching mold data of injection molding machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210605223.5A CN115179515B (en) 2022-05-31 2022-05-31 System and method for quickly switching mold data of injection molding machine

Publications (2)

Publication Number Publication Date
CN115179515A CN115179515A (en) 2022-10-14
CN115179515B true CN115179515B (en) 2023-04-18

Family

ID=83513592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210605223.5A Active CN115179515B (en) 2022-05-31 2022-05-31 System and method for quickly switching mold data of injection molding machine

Country Status (1)

Country Link
CN (1) CN115179515B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2819068B1 (en) * 2000-12-28 2005-08-26 Patricia Etienne DEVICE AND METHOD FOR PROTECTING DOCUMENTS OR VERIFYING THE AUTHENTICITY OF A DOCUMENT, BY USING A COMPUTERIZED INFORMATION PROVIDED BY THE METHOD, AND DOCUMENTS PROTECTED THEREFROM
CN205522244U (en) * 2016-01-25 2016-08-31 海天塑机集团有限公司 Quick die change system with mould automatic identification function
CN109815723A (en) * 2019-02-28 2019-05-28 东北大学 It is a kind of that encryption system and method can search for based on suffix tree
CN112848184A (en) * 2021-02-01 2021-05-28 树根互联股份有限公司 Yield determination method and device, injection molding machine production system and storage medium

Also Published As

Publication number Publication date
CN115179515A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN101077027B (en) Equipped parameters for changing mobile terminal
KR100673414B1 (en) Battery and authentication requesting device
CN106529969B (en) Method and system for checking fake source by NFC
US20060085847A1 (en) Locking system and locking method
US7840206B2 (en) Wireless communication system and authentication method and communication control method in wireless communication system
CN101325485A (en) A method for processing information in an electronic device, a system, an electronic device and a processing block
KR100823100B1 (en) Method and apparatus for preventing data outflow in portable terminal
CN104703170A (en) Methods and equipment for downloading file of operator
CN210006113U (en) intelligent lock system using two-dimensional code for safe pairing
GB2488766A (en) Securely transferring data to a mobile device
CN105303651A (en) Bluetooth based two-way communication automatic locking system and method
CN101282218B (en) Method for ciphering and deciphering host computer and pickaback plane of split type terminal
CN107426723A (en) Terminal document encryption method, terminal document decryption method and terminal
CN103222227A (en) System and method for wireless re-rogramming of memory in a communication system
CN115179515B (en) System and method for quickly switching mold data of injection molding machine
CN101689996B (en) Method for removable element authentication in an embedded system
CN111125456A (en) Virtual password comparison method and system and intelligent lock
EP2175674B1 (en) Method and system for paring devices
CN111448815A (en) Secure RFID tag identification
CN107683402B (en) System and method for intelligently coupling and connecting a mobile terminal device to a coordinate measuring device
CN103870376A (en) Electronic device extension board card detection method and electronic device
CN113536334A (en) Authorization checking method, module and system
CN114391134A (en) Flashing processing method and related device
CN113442594A (en) Wireless connection equipment, consumable box, method for upgrading consumable chip data and terminal
CN111865592A (en) Internet of things equipment fast access method and device, Internet of things platform and storage medium

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