CN109484723B - Control method and device for coding and storage medium - Google Patents

Control method and device for coding and storage medium Download PDF

Info

Publication number
CN109484723B
CN109484723B CN201811323048.0A CN201811323048A CN109484723B CN 109484723 B CN109484723 B CN 109484723B CN 201811323048 A CN201811323048 A CN 201811323048A CN 109484723 B CN109484723 B CN 109484723B
Authority
CN
China
Prior art keywords
key
character string
code
carton
server
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
CN201811323048.0A
Other languages
Chinese (zh)
Other versions
CN109484723A (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.)
Guangzhou Kaisheng Information Technology Co ltd
Original Assignee
Guangzhou Kaisheng Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kaisheng Information Technology Co ltd filed Critical Guangzhou Kaisheng Information Technology Co ltd
Priority to CN201811323048.0A priority Critical patent/CN109484723B/en
Publication of CN109484723A publication Critical patent/CN109484723A/en
Application granted granted Critical
Publication of CN109484723B publication Critical patent/CN109484723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65BMACHINES, APPARATUS OR DEVICES FOR, OR METHODS OF, PACKAGING ARTICLES OR MATERIALS; UNPACKING
    • B65B61/00Auxiliary devices, not otherwise provided for, for operating on sheets, blanks, webs, binding material, containers or packages
    • B65B61/26Auxiliary devices, not otherwise provided for, for operating on sheets, blanks, webs, binding material, containers or packages for marking or coding completed packages
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65BMACHINES, APPARATUS OR DEVICES FOR, OR METHODS OF, PACKAGING ARTICLES OR MATERIALS; UNPACKING
    • B65B57/00Automatic control, checking, warning, or safety devices
    • B65B57/02Automatic control, checking, warning, or safety devices responsive to absence, presence, abnormal feed, or misplacement of binding or wrapping material, containers, or packages
    • B65B57/04Automatic control, checking, warning, or safety devices responsive to absence, presence, abnormal feed, or misplacement of binding or wrapping material, containers, or packages and operating to control, or to stop, the feed of such material, containers, or packages

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Auxiliary Devices For And Details Of Packaging Control (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a control method of code assignment, which comprises the following steps: when the carton is detected to reach a code assigning area, acquiring a character string, and controlling a code assigning nozzle to assign codes to the carton according to the character string; collecting the coded graphic code information of the carton; when the graphic code information is not acquired, controlling a conveying device to convey the carton to an eliminating area; and when the graphic code information is acquired, controlling a conveying device to convey the carton to a stacking area. The invention also discloses a control device and a storage medium for assigning codes. According to the invention, the code assigning control terminal can remove the carton without collecting the graphic code information, so that the carton without successfully assigning codes is effectively prevented from flowing into the market.

Description

Control method and device for coding and storage medium
Technical Field
The present invention relates to the field of code assignment, and in particular, to a method and an apparatus for controlling code assignment, and a storage medium.
Background
Spraying and endowing a graphic code on a package of a product is an anti-counterfeiting and marketing means which is very important at present, and the sprayed and endowed graphic code contains information or activity information of the product, so that a consumer can obtain the related information of the product or participate in related activities after scanning the graphic code.
At present, the code assigning production process of graphic codes generally comprises the steps of feeding, paging, deviation correction, code assigning and material receiving, and products or packages are directly received after being assigned with codes, so that the products cannot be found in time when the codes are not successfully assigned, and the products which are not successfully assigned can flow into the market.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a control method, a control device and a storage medium for code assigning, and aims to solve the technical problem that the current code assigning method directly receives materials after code assigning, so that products which are not successfully assigned with codes flow into the market.
In order to achieve the above object, the present invention provides a control method for assigning codes, including the steps of:
when the carton is detected to reach a code assigning area, acquiring a character string, and controlling a code assigning nozzle to assign codes to the carton according to the character string;
collecting the coded graphic code information of the carton;
when the graphic code information is not acquired, controlling a conveying device to convey the carton to an eliminating area;
and when the graphic code information is acquired, controlling a conveying device to convey the carton to a stacking area.
Preferably, after the step of controlling the conveying device to convey the cartons to the stacking area when the graphic code information is collected, the method further comprises the following steps:
updating the number of cartons in the group stacking area;
and when the number of the cartons reaches a preset number, conveying the cartons in the stacking area to a strapping machine through the conveying device, and emptying the number of the cartons in the stacking area.
Preferably, after the step of collecting the encoded graphic code information of the carton, the method further comprises:
and updating the usage amount of the character string when the graphic code information is acquired.
Preferably, after the step of controlling the conveying device to convey the cartons to the rejection area when the graphic code information is not collected, the method further comprises the following steps:
updating the number of the cartons in the rejection area;
and outputting reminding information when the number of the cartons in the rejection area is greater than or equal to a preset threshold value.
Preferably, before the step of obtaining the character string and controlling the code-assigning nozzle to assign the code to the carton according to the character string when the carton is detected to reach the code-assigning area, the method further comprises
When a code assigning instruction is detected, outputting a code assigning information editing interface, wherein the code assigning information editing interface comprises a product information input window and a target quantity input window;
when product information and target quantity input based on the coding information editing interface are detected, character strings of the target quantity are obtained, and the character strings are associated with the product information;
and detecting whether the carton reaches the code assigning area.
Preferably, the control method for assigning codes further includes:
sending a character string acquisition request to a server at regular time so that the server feeds back a newly generated character string when the new character string is generated;
and when the character string fed back by the server is received, storing the character string.
Preferably, after the step of saving the character string when the character string fed back by the server is received, the method further includes:
when a character string decryption instruction is detected, acquiring the character string to be decrypted and outputting a key input interface;
when a first key input by a key input interface is detected, sending a second key acquisition request to a server, wherein the second key acquisition request comprises the first decryption key;
and when a second decryption key fed back by the server is received, decrypting the character string according to the first key and the second key.
Preferably, the step of sending a second key acquisition request to the server when the first key input by the key input interface is detected includes:
when a first key input by a key input interface is detected, judging whether the first key is in a preset validity period;
when the first key is in a preset validity period, executing the step of sending a second key acquisition request to a server;
and outputting reminding information when the first secret key is not in the preset validity period.
In order to achieve the above object, the present invention also provides a code assigning control device including: a memory, a processor and a code-assigned control program stored on the memory and executable on the processor, the code-assigned control program implementing the steps of the code-assigned control method as described in any one of the above when executed by the processor.
In order to achieve the above object, the present invention further provides a storage medium having a code-assigned control program stored thereon, wherein the code-assigned control program realizes the steps of the code-assigned control method according to any one of the above aspects when executed by a processor.
According to the control method and device for coding and the storage medium provided by the embodiment of the invention, when a coding control terminal (such as an industrial personal computer) detects that a carton reaches a coding area, a character string is obtained, a coding spray head is controlled to code the carton according to the character string, then a collecting device is controlled to collect graphic code information of the coded carton, when the graphic code information is not collected, a transmitting device is controlled to transmit the carton to a rejection area, and when the graphic code information is collected, the transmitting device is controlled to transmit the carton to a group stacking area; because coding control terminal can reject the carton that does not gather graphic code information to the carton that has effectively prevented unsuccessful coding from flowing into market.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a coding control method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a coding control method according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a coding control method according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a coding control method according to the present invention;
fig. 6 is a flowchart illustrating a fifth embodiment of a coding control method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
when the carton is detected to reach a code assigning area, acquiring a character string, and controlling a code assigning nozzle to assign codes to the carton according to the character string;
collecting the coded graphic code information of the carton;
when the graphic code information is not acquired, controlling a conveying device to convey the carton to an eliminating area;
and when the graphic code information is acquired, controlling a conveying device to convey the carton to a stacking area.
In the prior art, the product packaging is directly received after being subjected to code assigning, so that the product which is not successfully assigned codes flows into the market.
The invention provides a solution, because the code assigning control terminal can remove the carton which does not acquire the graphic code information, the carton which is not successfully assigned codes is effectively prevented from flowing into the market.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a code-assigned control program therein.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the control program of the assigned code stored in the memory 1005 and perform the following operations:
when the carton is detected to reach a code assigning area, acquiring a character string, and controlling a code assigning nozzle to assign codes to the carton according to the character string;
collecting the coded graphic code information of the carton;
when the graphic code information is not acquired, controlling a conveying device to convey the carton to an eliminating area;
and when the graphic code information is acquired, controlling a conveying device to convey the carton to a stacking area.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
updating the number of cartons in the group stacking area;
and when the number of the cartons reaches a preset number, conveying the cartons in the stacking area to a strapping machine through the conveying device, and emptying the number of the cartons in the stacking area.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
and updating the usage amount of the character string when the graphic code information is acquired.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
updating the number of the cartons in the rejection area;
and outputting reminding information when the number of the cartons in the rejection area is greater than or equal to a preset threshold value.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
when a code assigning instruction is detected, outputting a code assigning information editing interface, wherein the code assigning information editing interface comprises a product information input window and a target quantity input window;
when product information and target quantity input based on the coding information editing interface are detected, character strings of the target quantity are obtained, and the character strings are associated with the product information;
and detecting whether the carton reaches the code assigning area.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
sending a character string acquisition request to a server at regular time so that the server feeds back a newly generated character string when the new character string is generated;
and when the character string fed back by the server is received, storing the character string.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
when a character string decryption instruction is detected, acquiring the character string to be decrypted and outputting a key input interface;
when a first key input by a key input interface is detected, sending a second key acquisition request to a server, wherein the second key acquisition request comprises the first decryption key;
and when a second decryption key fed back by the server is received, decrypting the character string according to the first key and the second key.
Further, the processor 1001 may call the control program of the assigned code stored in the memory 1005, and further perform the following operations:
when a first key input by a key input interface is detected, judging whether the first key is in a preset validity period;
when the first key is in a preset validity period, executing the step of sending a second key acquisition request to a server;
and outputting reminding information when the first secret key is not in the preset validity period.
According to the scheme, when a coding control terminal (such as an industrial personal computer) detects that a carton reaches a coding area, a character string is obtained, a coding sprayer is controlled to code the carton according to the character string, then a collecting device is controlled to collect graphic code information of the coded carton, when the graphic code information is not collected, a transmitting device is controlled to transmit the carton to a rejection area, and when the graphic code information is collected, the transmitting device is controlled to transmit the carton to a group stacking area; because coding control terminal can reject the carton that does not gather graphic code information to the carton that has effectively prevented unsuccessful coding from flowing into market.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a control method for assigning codes according to the present invention, where the control method for assigning codes includes:
step S10, when detecting that the carton reaches a code assigning area, acquiring a character string, and controlling a code assigning nozzle to assign a code to the carton according to the character string;
the control method for the code assigning provided by the embodiment is applied to the code assigning control in a code assigning production line, the code assigning production line can comprise a feeding area, a paging area, a deviation rectifying area and a code assigning area which are sequentially connected through a conveying device, the code assigning area is respectively connected with a rejecting area and a group stacking area through the conveying device, and the group stacking area is connected with a binding machine through the conveying device; wherein, coding district is provided with carton detection sensor for whether detect have the carton to reach coding district. When the carton arrives at the coding position, the carton detection device detects that the carton arrives at the coding area, a coding control terminal (such as an industrial personal computer) acquires a stored character string, controls a coding sprayer to code the carton according to the character string, namely converts the character string into a graphic code, and controls the coding sprayer to spray the converted graphic code on the carton. Preferably, the graphic code comprises a two-dimensional code.
Step S20, collecting the coded graphic code information of the carton;
and a graphic code acquisition device, such as a camera or a camera, is also arranged in the code assigning area and is used for acquiring graphic code information on the carton after code assigning. After the code-giving sprayer is controlled to give codes to the carton, the code-giving control terminal controls the graphic code acquisition device to acquire the coded graphic code information of the carton so as to determine whether the code-giving is successful.
Step S30, when the graphic code information is not collected, controlling a conveying device to convey the carton to a rejection area;
when the graphic code acquisition device does not acquire graphic code information, the situation that the carton cannot be successfully coded or the sprayed and coded graphic codes cannot be normally identified is explained, the carton circulates to cause that the graphic codes cannot be scanned subsequently, and the carton needs to be rejected, so that the coding control terminal controls the conveying device to convey the carton to a rejection area for an operator to process. For example, an operator can re-assign codes to the carton after covering the graphic codes which cannot be identified on the carton by using the adhesive sticker.
Further, the code assigning control terminal can record the number of the cartons conveyed to the rejection area, and when the cartons are conveyed to the rejection area by the conveying device, the code assigning control terminal updates the number of the cartons in the rejection area, namely, the recorded number of the cartons in the rejection area is added by 1; in addition, a preset threshold value is also preset in the code assigning control terminal, when the number of the cartons in the rejection area is greater than the preset threshold value, code assigning faults may exist and need to be checked, and then the code assigning control terminal outputs prompt information, for example, outputs prompt tones or displays prompt information for rejecting more on a display screen to prompt production personnel to check, and further, the code assigning control terminal can also control the code assigning production line to stop assigning codes.
And step S40, controlling a conveying device to convey the cartons to a stacking area when the graphic code information is collected.
When the graphic code acquisition device can acquire the graphic code information on the carton, the carton is successfully assigned, circulation application can be carried out, and the assigning control terminal controls the conveying device to convey the carton to the stacking area.
Furthermore, the acquired graphic code is generated according to the character string stored in the code assigning control terminal, and the graphic code comprises character string information, so that when the graphic code information is acquired, the code assigning control terminal can mark the character string corresponding to the graphic code information as a code assigning success character string, and simultaneously update the usage amount of the character string, namely, when one piece of graphic code information is acquired, the usage amount of the character string is increased by 1. Further, the code assigning control terminal can also send the character string information with successful code assignment and the usage amount of the character string to the server, so that the server can open the activity associated with the character string according to whether the character string is successfully assigned with the code or not, namely, the activity associated with the character string is only opened when the character string is successfully assigned with the code; and meanwhile, the code assigning entrepreneur can judge whether a new character string needs to be generated according to the usage amount of the character string.
According to the technical scheme provided by the embodiment, when a coding control terminal (such as an industrial personal computer) detects that a carton reaches a coding area, a character string is obtained, a coding spray head is controlled to code the carton according to the character string, then a collecting device is controlled to collect graphic code information of the coded carton, when the graphic code information is not collected, a transmitting device is controlled to transmit the carton to a rejection area, and when the graphic code information is collected, the transmitting device is controlled to transmit the carton to a group stacking area; because coding control terminal can reject the carton that does not gather graphic code information to the carton that has effectively prevented unsuccessful coding from flowing into market.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the control method for assigning codes according to the present invention, and based on the first embodiment, after the step S40, the method further includes:
step S50, updating the number of cartons in the group stacking area;
and step 60, when the number of the cartons reaches a preset number, conveying the cartons in the stacking area to a strapping machine through the conveying device, and emptying the number of the cartons in the stacking area.
In the code-assigning production, the code-assigned cartons need to be piled and bound according to the required number so as to be convenient to transport. However, in the current coding production line, after the coded cartons are conveyed to a fixed area, the cartons need to be manually stacked by operators, which causes waste of human resources. Therefore, according to the technical scheme provided by the embodiment, the code assigning control terminal can automatically control the carton subjected to code assigning to be stacked.
Specifically, the number (preset number) of each pile of cartons is preset in the code assigning control terminal, the number of cartons in a group pile area is recorded during code assigning production, after the cartons are assigned, the graphic code information is acquired by the graphic code acquisition device, and when the cartons are conveyed to the group pile area by the conveying device, the number of cartons in the group pile area is updated by the code assigning control terminal, namely the number of cartons in the group pile area is added by 1; when the number of the cartons in the group stacking area reaches the preset number, the coding control terminal controls the transmission device to transmit the cartons in the group stacking area to the binding machine, and clears the number of the cartons in the group stacking area, namely, clears the number of the cartons in the group stacking area in the coding control terminal, records again, and the process is circulated, so that the automatic stacking of the cartons successfully coded is realized. It is understood that the preset number may be set according to actual situations, and is not particularly limited herein, for example, the preset number may be set to 50.
According to the technical scheme provided by the embodiment, after the code assigning control terminal collects the graphic code information and controls the conveying device to convey the cartons to the group stacking area, the number of the cartons in the group stacking area is updated, and when the number of the cartons reaches a preset number, the cartons in the group stacking area are conveyed to the strapping machine through the conveying device, and the number of the cartons in the group stacking area is emptied; therefore, automatic stacking of the successfully coded cartons is achieved, special operators do not need to be configured to stack the cartons, and human resources are saved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the control method for assigning codes according to the present invention, and based on the first or second embodiment, before the step S10, the method further includes:
step S70, when a code assigning instruction is detected, outputting a code assigning information editing interface, wherein the code assigning information editing interface comprises a product information input window and a target number input window;
step S80, when detecting the product information and the target number input based on the coding information editing interface, acquiring the character strings of the target number and associating the character strings with the product information;
and step S90, detecting whether the carton reaches the code assigning area.
In a real-world situation, since a production plan may change at any time, if specific product information is associated with a character string when the character string is generated, it may cause that the encoded character string does not match a production demand; therefore, according to the technical scheme provided by the embodiment, the product information can be associated with the character string through the code assigning control terminal only when the code is assigned.
Specifically, when code assigning production needs to be carried out, an operator clicks related software through a code assigning control terminal to trigger a code assigning instruction, the code assigning control terminal outputs a code assigning information editing interface when detecting the code assigning instruction, wherein the code assigning information editing interface comprises a product information input window and a target number input window, the operator can input product information and target number based on the information editing interface and then clicks and stores the product information and the target number, and the code assigning control terminal acquires character strings of the target number from stored character strings and associates the character strings with the product information when detecting the product information and the target number input based on the code assigning information editing interface; the product information is stored in advance, the product information input window can be a selection window, a user only needs to click for selection, and the product information can comprise brands, names, tastes, specifications and the like. And after the product information is associated with the character strings, the code assigning control terminal starts to control code assigning production, controls a carton detecting sensor arranged in a code assigning area to detect whether a carton arrives at the code assigning area, and controls a code assigning nozzle to assign codes to the carton when detecting that the carton arrives at the code assigning area.
According to the technical scheme, when a code assigning instruction is detected, the code assigning control device outputs a code assigning information editing interface, wherein the code assigning information editing interface comprises a product information input window and a target number input window, when the product information and the target number input based on the code assigning information editing interface are detected, character strings of the target number are acquired, the character strings are associated with the product information, and when the situation that a carton reaches a code assigning area is detected, the code assigning nozzle is controlled to assign codes. Therefore, the method and the device realize that the character string is associated with the product information during code-assigning production, and better meet the production requirement.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a control method for assigning codes according to the present invention, where based on any one of the first to third embodiments, the control method for assigning codes further includes:
step S100, sending a character string acquisition request to a server at regular time, so that the server feeds back a newly generated character string when the new character string is generated;
and step S110, when the character string fed back by the server is received, storing the character string.
In practical situations, the purpose of coding the carton is to track the products in the carton for a product manufacturer (namely a coding consignor), so that the graphic code character string needs to be generated under the control of the product manufacturer. Therefore, according to the technical scheme provided by this embodiment, the code assigning control terminal may send a character string obtaining request to the server at regular time, so that the server feeds back a newly generated character string when the new character string is generated.
Specifically, after the relevant personnel of the code assigning entrepreneur can log in the server through the code assigning control terminal, the character string code packet is generated according to the required rule, and the generated character string code packet is stored in the server. The code-assigning control terminal sends a character string acquisition request to a server at regular time so that the server feeds back a newly generated character string when the new character string is generated, and preferably, the terminal sends the character string acquisition request to the server in a polling mode. When a server receives a character string acquisition request of a terminal, whether a character string code packet (namely a newly generated character string) which is not sent to the terminal exists or not is checked, when the character string code packet which is not sent to the code assigning control terminal exists, the character string code packet is sent to the code assigning control terminal, and the character string is stored after the code assigning control terminal receives the character string fed back by the server so as to be used during code assigning. It is to be understood that the server includes a cloud server.
In addition, in practical cases, a plurality of code assigning production lines are generally available in a code assigning production plant, and therefore, a plurality of code assigning control terminals (e.g., a plurality of industrial personal computers) are available, in which case, a manufacturer server may be provided, the manufacturer server establishes a connection with each code assigning control terminal through a local area network, and periodically sends a character string acquisition request to the server (preferably, the manufacturer server sends the character string acquisition request to the server in a polling manner), when acquiring a character string fed back by the server, the character string is saved, and when producing a code, the code assigning control terminal acquires the character string from the manufacturer server to perform code assigning production.
According to the technical scheme provided by the embodiment, the code-assigning control terminal sends a character string acquisition request to the server at regular time, so that the server feeds back a newly generated character string when the new character string is generated, and stores the character string when the character string fed back by the server is received. Therefore, the code assigning entrepreneur does not need to manually send the generated character string, and time is saved.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of the control method for assigning codes according to the present invention, and based on the fourth embodiment, after step S110, the method further includes:
step S120, when a character string decryption instruction is detected, acquiring the character string to be decrypted and outputting a key input interface;
step S130, when a first key input by a key input interface is detected, sending a second key acquisition request to a server, wherein the second key acquisition request comprises the first decryption key;
step S140, when receiving a second decryption key fed back by the server, decrypting the character string according to the first key and the second key.
In order to prevent the generated character string from being leaked, the character string is generally encrypted when being generated, and after the character string is obtained by a coding manufacturer, the coding manufacturer needs to decrypt the character string first to perform coding production. At present, only one simple password is encrypted for the character string, and only a decryption password needs to be input when the character string is decrypted, so that the safety is low. Therefore, in the technical solution provided in this embodiment, when the character string is decrypted and the terminal detects the input first key, it is necessary to send a second key acquisition request to the server, and after receiving the second key fed back by the server, the character string can be decrypted according to the first key and the second key.
Specifically, when a terminal detects a character string decryption instruction, the terminal acquires the character string to be decrypted and outputs a key input interface, an operator inputs a first key based on the key input interface and clicks to determine, and when the terminal detects the first key input by the key input interface, the terminal sends a second key acquisition request to a server, wherein the second key acquisition request comprises the first decryption key; when receiving a second key acquisition request sent by a terminal, a server acquires a first key in the second key acquisition request, judges whether the first key is correct, and sends a corresponding second key to the terminal when judging that the first key is correct.
In order to further enhance the security of the character string encryption, preferably, the server may further store information of a responsible person in advance (for example, the responsible person may be a person who sets a secret key), when it is determined that the first secret key is correct, send a verification code to a terminal corresponding to the information of the responsible person, and send a verification code input interface to the code assigning control terminal, after the responsible person receives the verification code, the responsible person enters the verification code in the verification code input interface or provides the verification code for a code assigning production person to input, after the verification code is input, submits the verification code to the server, and when it is determined that the verification code is correct, the server sends the second secret key to the code assigning control terminal.
And after receiving a second decryption key fed back by the server, the code-assigning control terminal decrypts the character string according to the first key and the second key.
Further, when the character string is encrypted, a validity period (preset validity period) may be preset for the key, and when the validity period is exceeded, the key cannot decrypt the character string, it can be understood that the preset validity period may be set according to an actual situation, and is not specifically limited herein, for example, the preset validity period may be set to 30 days. Specifically, when a terminal detects a character string decryption instruction, the character string to be decrypted is obtained, a key input interface is output, an operator inputs a first key based on the key input interface and clicks to determine, when the terminal detects the first key input by the key input interface, whether the first key is in a preset validity period is judged, when the first key is in the preset validity period, a second key obtaining request is sent to a server, and when a second key fed back by the server is obtained, the character string is decrypted according to the first key and the second key; and when the first key is not in the preset validity period, outputting reminding information to remind an operator that the key is expired.
According to the technical scheme provided by the embodiment, when a coding control terminal detects a character string decryption instruction, the coding control terminal acquires the character string to be decrypted and outputs a key input interface, and when a first key input by the key input interface is detected, a second key acquisition request is sent to a server, wherein the second key acquisition request comprises the first decryption key, and when a second decryption key fed back by the server is received, the character string is decrypted according to the first key and the second key; because the character string is encrypted by double keys and the second key is required to be obtained from the server during decryption, the safety of the character string is enhanced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for controlling code assignment, the method comprising:
when a carton is detected to reach a code area, a character string to be decrypted is obtained, when a first secret key input by a terminal is detected, a second secret key obtaining request is sent to a server, a second secret key returned by the server according to the second secret key obtaining request is obtained, the character string to be decrypted is decrypted according to the first secret key and the second secret key, the decrypted character string is obtained, wherein the first secret key is input by a user based on a secret key input interface, the character string is encrypted through double keys, the double keys comprise the first secret key and the second secret key, the second secret key obtaining request comprises the first secret key, and the server returns the second secret key when the first secret key in the second secret key obtaining request is detected to be correct;
converting the decrypted character string into a graphic code, and controlling a code assigning nozzle to assign a code to the carton according to the graphic code;
collecting the coded graphic code information of the carton;
when the graphic code information is not acquired, controlling a conveying device to convey the carton to an eliminating area;
and when the graphic code information is acquired, controlling a conveying device to convey the carton to a stacking area.
2. The code assigning control method according to claim 1, wherein after the step of controlling the conveyor to convey the cartons to the palletizing area when the graphic code information is collected, the method further comprises:
updating the number of cartons in the group stacking area;
and when the number of the cartons reaches a preset number, conveying the cartons in the stacking area to a strapping machine through the conveying device, and emptying the number of the cartons in the stacking area.
3. The method for controlling code assignment according to claim 1, wherein after the step of collecting the encoded graphic code information of the carton, the method further comprises:
and updating the usage amount of the character string when the graphic code information is acquired.
4. The code assigning control method according to claim 1, wherein after the step of controlling the conveyor to convey the cartons to the reject area when the graphic code information is not collected, the method further comprises:
updating the number of the cartons in the rejection area;
and outputting reminding information when the number of the cartons in the rejection area is greater than a preset threshold value.
5. The method for controlling coding according to claim 1, wherein the step of obtaining the character string to be decrypted before detecting that the carton box reaches the coding area further comprises:
when a code assigning instruction is detected, outputting a code assigning information editing interface, wherein the code assigning information editing interface comprises a product information input window and a target quantity input window;
when product information and target quantity input based on the coding information editing interface are detected, character strings of the target quantity are obtained, and the character strings are associated with the product information;
detecting whether the carton reaches the coding region.
6. The method of controlling code assignment according to any one of claims 1 to 5, further comprising:
sending a character string acquisition request to the server at regular time so that the server feeds back a newly generated character string when the new character string is generated;
and when the character string fed back by the server is received, storing the character string.
7. The method for controlling coding according to claim 6, wherein the step of sending a second key obtaining request to the server when detecting a first key input by the terminal, obtaining a second key returned by the server according to the second key obtaining request, and decrypting the character string to be decrypted according to the first key and the second key comprises:
when a character string decryption instruction is detected, acquiring the character string to be decrypted and outputting a key input interface;
when a first key input by a key input interface is detected, sending a second key acquisition request to a server, wherein the second key acquisition request comprises the first key;
and when a second key fed back by the server is received, decrypting the character string according to the first key and the second key.
8. The method for controlling encryption according to claim 7, wherein the step of sending a second key acquisition request to the server upon detecting the first key input through the key input interface comprises:
when a first key input by a key input interface is detected, judging whether the first key is in a preset validity period;
when the first key is in a preset validity period, executing the step of sending a second key acquisition request to a server;
and outputting reminding information when the first secret key is not in the preset validity period.
9. A control apparatus for assigning codes, the control apparatus comprising: memory, a processor and a coded control program stored on the memory and executable on the processor, the coded control program realizing the steps of the coded control method according to any one of claims 1 to 8 when executed by the processor.
10. A storage medium having stored thereon a coded control program which, when executed by a processor, implements the steps of the coded control method according to any one of claims 1 to 8.
CN201811323048.0A 2018-11-07 2018-11-07 Control method and device for coding and storage medium Active CN109484723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811323048.0A CN109484723B (en) 2018-11-07 2018-11-07 Control method and device for coding and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811323048.0A CN109484723B (en) 2018-11-07 2018-11-07 Control method and device for coding and storage medium

Publications (2)

Publication Number Publication Date
CN109484723A CN109484723A (en) 2019-03-19
CN109484723B true CN109484723B (en) 2021-10-26

Family

ID=65695270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811323048.0A Active CN109484723B (en) 2018-11-07 2018-11-07 Control method and device for coding and storage medium

Country Status (1)

Country Link
CN (1) CN109484723B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446263A (en) * 2010-10-15 2012-05-09 北京赛腾工业标识***有限公司 Collection method of bar code information data of product
CN102682320A (en) * 2011-03-18 2012-09-19 北京名影科漫科技有限公司 Method for code assigning, reading and data correlation of each pack of cigarettes
CN103049828A (en) * 2013-01-11 2013-04-17 广州宽度信息技术有限公司 Two-dimensional code management system for online products on production line
CN203512149U (en) * 2013-08-23 2014-04-02 天津森茂科技有限公司 Medicine package three-phase code image detecting system
CN203753486U (en) * 2013-12-30 2014-08-06 武汉华工赛百数据***有限公司 Online multi-form tagging and dynamic acquisition device
CN204614008U (en) * 2015-02-16 2015-09-02 浙江康恩贝制药股份有限公司 Integrated information reviews the composite label management system with medication guide
CN105150692A (en) * 2015-08-25 2015-12-16 郑国义 Laser code assigning and visual detection integrated device
CN105416714A (en) * 2015-11-17 2016-03-23 上海透云物联网科技有限公司 Code attaching device and method thereof
CN106548360A (en) * 2016-12-08 2017-03-29 上海驰亚信息技术有限公司 The endowed system of metal sheet stock
CN108328028A (en) * 2018-02-28 2018-07-27 广东铭钰科技股份有限公司 A kind of unique endowed fully-automatic packaging production line of product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566397A (en) * 2017-09-28 2018-01-09 深圳市汉普电子技术开发有限公司 Video conference information transferring method, terminal device, server and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446263A (en) * 2010-10-15 2012-05-09 北京赛腾工业标识***有限公司 Collection method of bar code information data of product
CN102682320A (en) * 2011-03-18 2012-09-19 北京名影科漫科技有限公司 Method for code assigning, reading and data correlation of each pack of cigarettes
CN103049828A (en) * 2013-01-11 2013-04-17 广州宽度信息技术有限公司 Two-dimensional code management system for online products on production line
CN203512149U (en) * 2013-08-23 2014-04-02 天津森茂科技有限公司 Medicine package three-phase code image detecting system
CN203753486U (en) * 2013-12-30 2014-08-06 武汉华工赛百数据***有限公司 Online multi-form tagging and dynamic acquisition device
CN204614008U (en) * 2015-02-16 2015-09-02 浙江康恩贝制药股份有限公司 Integrated information reviews the composite label management system with medication guide
CN105150692A (en) * 2015-08-25 2015-12-16 郑国义 Laser code assigning and visual detection integrated device
CN105416714A (en) * 2015-11-17 2016-03-23 上海透云物联网科技有限公司 Code attaching device and method thereof
CN106548360A (en) * 2016-12-08 2017-03-29 上海驰亚信息技术有限公司 The endowed system of metal sheet stock
CN108328028A (en) * 2018-02-28 2018-07-27 广东铭钰科技股份有限公司 A kind of unique endowed fully-automatic packaging production line of product

Also Published As

Publication number Publication date
CN109484723A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
US10115069B2 (en) Authenticating parcel consignees with indicia decoding devices
CN106850392B (en) Message processing method and device and message receiving method and device
CN104504594A (en) Online shopping privacy protection method and system
EA002886B1 (en) File transfer system
AU2004316272A1 (en) Mobile apparatus, method and system for delivery management
US20070174196A1 (en) System and method for verifying authenticity
CN202870841U (en) Identity safety verification device and express delivery safety signing device
CN107705064A (en) Method, equipment and storage medium are signed in a kind of express delivery
CN111429055A (en) Goods transportation information prompting method, equipment and storage medium
CN110675097A (en) Logistics object management equipment and logistics object delivery and sending control method and device
CN112561426A (en) Order distribution method and device
CN107038540B (en) Method and device for object type distribution based on intelligent bar code
CN108564317A (en) Packing case recycling method, server, user terminal and system
CN109484723B (en) Control method and device for coding and storage medium
CN106485436A (en) One kind is used for express delivery addressee verification method and device
CN109484724B (en) Control method and device for double-sided coding and storage medium
JP5720811B1 (en) Document management system, document management apparatus, and program
CN114723377B (en) Goods receiving and dispatching management method, system, device and electronic equipment
CN113298586A (en) Order information processing method and device
KR101483546B1 (en) System for managing RDTAG history
CN114331465A (en) Commodity tracing method and device based on block chain, terminal equipment and storage medium
CN110428511B (en) Network node package unmanned handover method, distributor terminal and central control server
CN108074057A (en) A kind of express delivery mailing system and method
CN106995076B (en) Packaging management system using conveyor
CN106779545A (en) A kind of method for carrying out getting parcel by Quick Response Code

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