Binding method and device of loss prevention device and POS cash register, equipment and medium

By obtaining the identification information of the loss prevention equipment and generating a quick connection code, using the device binding verification protocol for analysis and search, the problems of inefficiency and insufficient security during the binding process of the loss prevention equipment and POS cash register are solved, and high efficiency is achieved , reliable binding operations.

CN119300046APending Publication Date: 2025-01-10SHENZHEN EVOMOTION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411350902.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing loss prevention equipment and POS cash register binding methods are cumbersome to operate, inefficient, and low security, which are prone to misbinding or stolen.

Method used

By obtaining the identification information of the loss prevention device, generating a quick connection code, and using the device binding verification protocol for identification and analysis, accurately finding the target loss prevention device, binding and sending confirmation messages to complete the binding, ensuring the accuracy of the binding process. Sex and safety.

Benefits of technology

It improves the efficiency and safety of the binding of loss prevention equipment to POS cash registers, ensures the accuracy and reliability of the binding process, and avoids misbinding and safety hazards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119300046A_ABST
    Figure CN119300046A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of anti-theft technology. The invention relates to a method and device for binding a loss prevention device and a POS cash register, equipment and a medium, and the method comprises the steps: obtaining the recognition information of the loss prevention device, obtaining a quick connection code based on the recognition information of the loss prevention device, carrying out the recognition and analysis of the quick connection code through a device binding verification protocol, obtaining a serial number of the loss prevention device, and carrying out the verification of the serial number of the loss prevention device. And searching a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain a target loss prevention device, binding the target loss prevention device, and after successful binding, sending a confirmation message to the target loss prevention device to complete binding of the target loss prevention device and the POS cash register. The method has the effect of improving the binding efficiency and safety of the loss prevention equipment and the POS cash register.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of anti-theft technology, and in particular to a method, device, equipment and medium for binding an anti-theft device to a POS cash register. Background Art

[0002] In the retail industry, loss prevention devices, such as anti-theft tags or electronic product surveillance systems, are often used to prevent theft of goods. In order to effectively manage these loss prevention devices, they need to be bound to the POS cash register so that the anti-theft status is automatically released at checkout. However, existing binding methods are often cumbersome, inefficient, and not very secure, and are prone to misbinding or theft.

[0003] At present, some binding solutions on the market mostly require multiple manual confirmations and operations, which not only increases the workload of staff, but also makes human errors more likely. At the same time, these solutions also have certain hidden dangers in terms of security, such as unauthorized devices may be bound to the system, causing losses to retailers.

[0004] Therefore, how to improve the efficiency and security of binding loss prevention equipment with POS cash registers has become a problem that needs to be solved urgently. Summary of the invention

[0005] In order to improve the efficiency and security of binding a loss prevention device to a POS cash register, the present application provides a method, apparatus, device and medium for binding a loss prevention device to a POS cash register.

[0006] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A method for binding a loss prevention device to a POS cash register, the method comprising: Obtain identification information for loss prevention equipment; Based on the identification information of the loss prevention device, a quick connection code is obtained; The quick connection code is identified and parsed through the device binding verification protocol to obtain the anti-loss device serial number; Searching for a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain a target loss prevention device; The target loss prevention device is bound, and after the binding is successful, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register.

[0007] By adopting the above technical solution, the uniqueness of the loss prevention device and the confidentiality of the information are ensured by obtaining the identification information of the loss prevention device and generating a quick connection code based on the information. Subsequently, the quick connection code is identified and parsed through the device binding verification protocol, and the serial number of the loss prevention device can be accurately obtained. The loss prevention device corresponding to the serial number can be accurately found in the local area network, ensuring the accurate positioning of the target loss prevention device. Finally, by binding the target loss prevention device and sending a confirmation message to it after the binding is successful, the binding of the device and the POS cash register is completed, which not only ensures the accuracy of the binding process, but also further improves the overall efficiency and security of the binding operation.

[0008] In a preferred example, the present application may be further configured as follows: the obtaining of a quick connection code based on the identification information of the anti-loss device further includes: Based on the identification information of the anti-loss device, the quick connection code is generated by a preset encryption algorithm; The quick connection code is managed for its validity period to ensure the security and effectiveness of the quick connection code.

[0009] By adopting the above technical solution, a quick connection code can be generated based on the identification information of the loss prevention device, and the quick connection code is generated through a preset encryption algorithm, thereby ensuring the security and confidentiality of the loss prevention device identification information during the generation of the quick connection code. The validity period management of the quick connection code further enhances the security and effectiveness of the quick connection code and prevents security risks caused by the leakage of the quick connection code or long-term non-use. In this way, the security of information transmission and the reliability of the overall operation during the binding process of the loss prevention device and the POS cash register can be significantly improved.

[0010] In a preferred example, the present application can be further configured as follows: the quick connection code is identified and parsed through the device binding verification protocol to obtain the anti-loss device serial number, including: Performing format verification on the quick connection code to obtain a verified quick connection code; The verified quick connection code is decrypted through the device binding verification protocol to obtain the decrypted original information, and the loss prevention device serial number is obtained from the decrypted original information.

[0011] By adopting the above technical solution, the format of the quick connection code can be verified, thereby ensuring that the format of the quick connection code meets the preset standard, further ensuring the smooth progress of the decryption process. The verified quick connection code is decrypted through the device binding verification protocol to obtain the decrypted original information, and the loss prevention device serial number is accurately obtained from it. This process not only ensures the accuracy of the loss prevention device serial number, but also enhances the security of the serial number acquisition process, thereby improving the security and accuracy of the loss prevention device and POS cash register binding process.

[0012] In a preferred example, the present application may be further configured as follows: searching for an anti-loss device corresponding to the anti-loss device serial number in the local area network to obtain the target anti-loss device includes: Using the loss prevention device serial number as a search condition, matching is performed in the local area network to obtain a matched loss prevention device; The matched anti-loss device is verified, and if the verification is successful, the matched anti-loss device is marked as the target anti-loss device.

[0013] By adopting the above technical solution, the serial number of the loss prevention device can be used as a search condition and matched in the local area network, thereby quickly locking the loss prevention device corresponding to the serial number of the loss prevention device. On this basis, the matched loss prevention device is verified, and after successful verification, it is marked as the target loss prevention device. Through this technical solution, it is possible to ensure accurate search and verification of the loss prevention device in the local area network, thereby improving the accuracy and reliability of the binding process between the loss prevention device and the POS cash register.

[0014] In a preferred example, the present application may be further configured as follows: the verifying the matched anti-loss device, if the verification is successful, marking the matched anti-loss device as the target anti-loss device, includes: Sending a verification request to the matched anti-loss device through the device binding verification protocol to obtain verification response information; If the verification response information is consistent with the preset device identification information, the verification is successful, and the matched loss prevention device is marked as the target loss prevention device.

[0015] By adopting the above technical solution, a verification request can be sent to the matched loss prevention device through the device binding verification protocol, and verification response information can be obtained. If the verification response information is consistent with the preset device identification information, the verification is successful, and the matched loss prevention device is marked as the target loss prevention device. This process ensures the accuracy of the target loss prevention device by verifying the authenticity and legality of the loss prevention device, thereby improving the security and accuracy of the binding process between the loss prevention device and the POS cash register.

[0016] In a preferred example, the present application can be further configured as follows: the target loss prevention device is bound, and after the binding is successful, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device with the POS cash register, including: Establishing an initial connection with the target loss prevention device through the local area network, verifying the connection status, and sending binding information to the target loss prevention device according to the verified connection status; Based on the confirmation response information returned by the target loss prevention device and after successful binding, the confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device with the POS cash register.

[0017] By adopting the above technical solution, it is possible to establish an initial connection with the target loss prevention device through the local area network and verify the connection status. According to the verified connection status, the binding information is sent to the target loss prevention device. After the target loss prevention device returns the confirmation response information and the binding is successful, a confirmation message is sent to it to complete the binding of the target loss prevention device and the POS cash register. Through this technical solution, it is possible to ensure that a reliable communication connection is established between the loss prevention device and the POS cash register, and realize two-way confirmation during the binding process, thereby improving the success rate and reliability of the binding process.

[0018] In a preferred example, the present application can be further configured as follows: after the confirmation response information returned by the target loss prevention device and the binding is successful, the confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device with the POS cash register, and further includes: The confirmation response information returned by the target loss prevention device is verified through the device binding verification protocol. When the verification passes, it is determined that the target loss prevention device is successfully bound to the POS cash register.

[0019] By adopting the above technical solution, the confirmation response information returned by the target loss prevention device can be verified through the device binding verification protocol. When the verification passes, it is determined that the binding between the target loss prevention device and the POS cash register is successful. Through this verification process, the accuracy and security of the binding between the loss prevention device and the POS cash register are further ensured, thereby improving the credibility and security of the entire binding operation and avoiding binding errors caused by verification failures.

[0020] The second object of the invention is achieved by the following technical solutions: A binding device for a loss prevention device and a POS cash register, the binding device for the loss prevention device and the POS cash register comprising: An information acquisition module, used to obtain identification information of loss prevention equipment; A connection module, configured to obtain a quick connection code based on the identification information of the anti-loss device; The anti-loss device serial number module is used to identify and parse the quick connection code through the device binding verification protocol to obtain the anti-loss device serial number; A target loss prevention device module is used to search for a loss prevention device corresponding to the loss prevention device serial number in a local area network to obtain a target loss prevention device; The binding module is used to bind the target loss prevention device and, after successful binding, send a confirmation message to the target loss prevention device to complete the binding between the target loss prevention device and the POS cash register.

[0021] By adopting the above technical solution, the uniqueness of the loss prevention device and the confidentiality of the information are ensured by obtaining the identification information of the loss prevention device and generating a quick connection code based on the information. Subsequently, the quick connection code is identified and parsed through the device binding verification protocol, and the serial number of the loss prevention device can be accurately obtained. The loss prevention device corresponding to the serial number can be accurately found in the local area network, ensuring the accurate positioning of the target loss prevention device. Finally, by binding the target loss prevention device and sending a confirmation message to it after the binding is successful, the binding of the device and the POS cash register is completed, which not only ensures the accuracy of the binding process, but also further improves the overall efficiency and security of the binding operation.

[0022] The third objective of the present application is achieved through the following technical solutions: A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for binding the loss prevention device with a POS cash register are implemented.

[0023] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for binding the loss prevention device to a POS cash register.

[0024] In summary, the present application includes at least one of the following beneficial technical effects: 1. By obtaining the identification information of the loss prevention device and generating a quick connection code based on the information, the uniqueness of the loss prevention device and the confidentiality of the information are ensured. Subsequently, the quick connection code is identified and parsed through the device binding verification protocol, and the serial number of the loss prevention device can be accurately obtained. The loss prevention device corresponding to the serial number can be accurately found in the local area network to ensure the accurate positioning of the target loss prevention device. Finally, by binding the target loss prevention device and sending a confirmation message to it after the binding is successful, the binding of the device and the POS cash register is completed, which not only ensures the accuracy of the binding process, but also further improves the overall efficiency and security of the binding operation; 2. The loss prevention device serial number can be used as a search condition to match in the local area network, thereby quickly locking the loss prevention device corresponding to the loss prevention device serial number. On this basis, the matched loss prevention device is verified, and after successful verification, it is marked as the target loss prevention device. Through this technical solution, it is possible to ensure accurate search and verification of loss prevention devices in the local area network, thereby improving the accuracy and reliability of the binding process between the loss prevention device and the POS cash register; 3. It is possible to establish an initial connection with the target loss prevention device through the local area network and verify the connection status. According to the verified connection status, the binding information is sent to the target loss prevention device. After the target loss prevention device returns the confirmation response information and the binding is successful, a confirmation message is sent to it to complete the binding of the target loss prevention device and the POS cash register. Through this technical solution, it is possible to ensure that a reliable communication connection is established between the loss prevention device and the POS cash register, and realize two-way confirmation during the binding process, thereby improving the success rate and reliability of the binding process. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a flow chart of a method for binding a loss prevention device to a POS cash register in one embodiment of the present application; Figure 2 It is a flowchart of the implementation of step S20 of the method for binding the loss prevention device and the POS cash register in one embodiment of the present application; Figure 3 It is a flowchart of the implementation of step S30 of the method for binding the loss prevention device and the POS cash register in one embodiment of the present application; Figure 4 It is a flowchart of the implementation of step S40 of the method for binding the loss prevention device to the POS cash register in one embodiment of the present application; Figure 5 It is a flowchart of the implementation of step S402 of the method for binding the loss prevention device and the POS cash register in one embodiment of the present application; Figure 6 It is a flowchart of the implementation of step S50 of the method for binding the loss prevention device to the POS cash register in one embodiment of the present application; Figure 7 It is a flowchart of the implementation of step S502 of the method for binding the loss prevention device and the POS cash register in one embodiment of the present application; Figure 8 It is a principle block diagram of a binding device of a loss prevention device and a POS cash register in one embodiment of the present application; Fig. 9 It is a schematic diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The present application is further described in detail below in conjunction with the accompanying drawings.

[0027] In one embodiment, if Figure 1 As shown, the present application discloses a method for binding a loss prevention device to a POS cash register, which specifically includes the following steps: S10: Obtain identification information of the loss prevention device.

[0028] In this embodiment, the identification information of the loss prevention device refers to an identifier used to uniquely identify the loss prevention device, which may be a serial number, MAC address, RFID tag, or other number or string that uniquely identifies the device.

[0029] Specifically, identification information can be obtained in a variety of ways. For example, by scanning the QR code or barcode on the loss prevention device, the unique identifier of the device can be directly read; through NFC or RFID technology, identification information can be obtained from the device tag; or the MAC address of the device can be queried through the network protocol. When the user brings the loss prevention device close to the POS cash register, or uses a dedicated device to scan it, the POS cash register automatically captures the identification information and records the identification information automatically captured by the POS cash register into the POS information storage database for subsequent binding.

[0030] Furthermore, the POS information storage database refers to various types of information generated during the binding process between the POS cash register and the loss prevention device.

[0031] S20: Obtain a quick connection code based on the identification information of the loss prevention device.

[0032] In this embodiment, the quick connection code refers to an encrypted token used to temporarily identify the loss prevention device and establish a secure connection between the device and the POS cash register in a short period of time.

[0033] Specifically, after obtaining the identification information of the loss prevention device, the identification information is input into the preset encryption algorithm. The encryption algorithm uses symmetric encryption to generate a quick connection code of fixed length and ensure that the connection code is time-sensitive and only valid within a specified time. The generated quick connection code will be sent to the loss prevention device.

[0034] S30: Identify and parse the quick connection code through the device binding verification protocol to obtain the anti-loss device serial number.

[0035] In this embodiment, the device binding verification protocol is used to verify and parse the communication protocol of the quick connection code to ensure the legitimacy and integrity of the quick connection code. The loss prevention device serial number is a string or number used to uniquely identify the loss prevention device.

[0036] Specifically, after receiving the quick connection code, the connection code is first preliminarily verified to check the format and length of the connection code and confirm whether the connection code is within the validity period. After the verification is passed, the quick connection code is decrypted using the symmetric key, and the decrypted data contains the original anti-loss device identification information. By extracting the decrypted data, the unique anti-loss device serial number is obtained, which is used for device search and binding.

[0037] S40: Searching for a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain a target loss prevention device.

[0038] Specifically, the POS cash register uses the extracted loss prevention device serial number as a search condition and matches devices in the LAN through the LAN protocol. After receiving the query request, each loss prevention device in the LAN will self-identify and return a response message containing the device serial number. The POS cash register will compare the received response message with the previously extracted loss prevention device serial number. Once a matching device is found, the device will be marked as the target loss prevention device. Furthermore, the LAN protocol is used to implement data transmission and device search operations between the loss prevention device and the POS cash register within the LAN.

[0039] S50: Binding the target loss prevention device. After successful binding, a confirmation message is sent to the target loss prevention device to complete the binding between the target loss prevention device and the POS cash register.

[0040] Specifically, after the target loss prevention device is initially matched, the POS cash register will establish an initial connection with the target loss prevention device. After the connection is established, the POS cash register will send a binding request message to the target loss prevention device, and the binding request message includes the identification information of the POS cash register and the binding request code. After receiving the binding request message, the target loss prevention device will perform identity authentication to confirm whether the identity of the POS cash register is legal, and generate a binding response message and return it to the POS cash register. If the response information received by the POS cash register is consistent with expectations and passes the verification of the device binding verification protocol, the binding is successful. Subsequently, the POS cash register will send a final binding confirmation message to the target loss prevention device to complete the binding operation between the loss prevention device and the POS cash register.

[0041] In one embodiment, if Figure 2 As shown, in step S20, the quick connection code is obtained based on the identification information of the anti-loss device, and further includes: S201: Based on the identification information of the anti-loss device, a quick connection code is generated through a preset encryption algorithm.

[0042] In this embodiment, the preset encryption algorithm refers to an encryption algorithm used when generating a quick connection code. This encryption algorithm is a symmetric encryption algorithm that uses the same key for encryption and decryption. Through the preset encryption algorithm, it can be ensured that the identification information of the anti-loss device will not be tampered with during the process of generating the quick connection code, and the quick connection code is unique and confidential in a short time.

[0043] Specifically, the identification information of the loss prevention device is used as input data and processed by the encryption algorithm to generate a fixed-length quick connection code. The quick connection code will be used in the subsequent binding and verification steps to ensure that the communication information between the loss prevention device and the POS cash register remains encrypted before the secure connection is established, thereby preventing information leakage or tampering.

[0044] S202: Perform validity period management on the quick connection code to ensure the security and effectiveness of the quick connection code.

[0045] Specifically, when the quick connection code is generated, the generation time of the connection code is recorded and an expiration date is set. When the connection code is used, the difference between the current time and the generation time is checked first. If the preset expiration date is exceeded, the connection code will be automatically invalidated and the user will be prompted to generate a new connection code.

[0046] Furthermore, the setting of the validity period ensures the security and timeliness of the quick connection code and prevents the expired connection code from being abused.

[0047] In one embodiment, if Figure 3 As shown, in step S30, the quick connection code is identified and parsed through the device binding verification protocol to obtain the loss prevention device serial number, including: S301: Perform format verification on the quick connection code to obtain a verified quick connection code.

[0048] In this embodiment, the verified quick connection code refers to a connection code that has passed format verification.

[0049] Specifically, after receiving the quick connection code, it will first check whether the length of the connection code meets the preset standard length, whether the characters in the connection code only contain the expected character set, and verify whether the connection code contains tampered abnormal characters. If the quick connection code passes the check in the format verification, a verified quick connection code is obtained.

[0050] Furthermore, the preset standard length refers to a fixed-length character sequence that meets security requirements, and the expected character set refers to the character range allowed during the generation process. The tampered abnormal characters refer to characters or formats that do not meet expectations.

[0051] S302: Decrypt the verified quick connection code through the device binding verification protocol to obtain the decrypted original information, and obtain the loss prevention device serial number from the decrypted original information.

[0052] In this embodiment, the device binding verification protocol refers to a communication protocol for verifying and parsing the quick connection code between the loss prevention device and the POS cash register. The device binding verification protocol ensures the legitimacy and integrity of the quick connection code and prevents access by illegal devices.

[0053] Specifically, after the format verification is passed, the quick connection code is input into the device binding verification protocol for decryption, and the decrypted original information is restored to the identification information of the anti-loss device, including the serial number of the device. The serial number of the anti-loss device is extracted from the decrypted original information.

[0054] In one embodiment, if Figure 4 As shown, in step S40, the loss prevention device corresponding to the loss prevention device serial number is searched in the local area network to obtain the target loss prevention device, including: S401: Using the loss prevention device serial number as a search condition, matching is performed in the local area network to obtain a matched loss prevention device.

[0055] Specifically, when a search operation is initiated in the LAN, the serial number of the loss prevention device is first used as the only search condition. The POS cash register sends a search request containing the serial number through the LAN protocol. Each loss prevention device connected to the LAN will receive this request and match it according to the internally stored device information. After matching the information that matches its own serial number, the loss prevention device will send a confirmation response to the POS cash register, indicating that the loss prevention device matches the search condition.

[0056] S402: Verify the matched loss prevention device. If the verification is successful, mark the matched loss prevention device as a target loss prevention device.

[0057] Specifically, after the serial number of the loss prevention device is successfully matched, the POS cash register will send a further verification request to the device. After receiving the verification request, the loss prevention device will process the verification request according to the internally stored verification algorithm and generate a verification response message. After receiving the verification response message, the POS cash register will compare it with the preset device identification information. If the two are consistent, the verification is successful and the POS cash register will mark this device as a target loss prevention device.

[0058] Furthermore, the internally stored verification algorithm refers to: The preset device identification information refers to the device identity information stored in the POS cash register in advance during the device registration process, which is used in the subsequent verification process to ensure the uniqueness and legitimacy of the device.

[0059] In one embodiment, if Figure 5 As shown, in step S402, the matched loss prevention device is verified. If the verification is successful, the matched loss prevention device is marked as a target loss prevention device, including: S4021: Send a verification request to the matched anti-loss device through the device binding verification protocol and obtain verification response information.

[0060] Specifically, after the POS cash register matches the loss prevention device serial number to the corresponding loss prevention device, it immediately sends a verification request to the device through the device binding verification protocol. The verification request contains the information required for binding, such as the identification information of the POS cash register, the encrypted connection code, etc. After receiving the verification request, the matched loss prevention device will process it, including the legitimacy and integrity of the verification request information, and then generate and return a verification response information to the POS cash register.

[0061] S4022: If the verification response information is consistent with the preset device identification information, the verification is successful, and the matched loss prevention device is marked as a target loss prevention device.

[0062] Specifically, after receiving the verification response information returned by the loss prevention device, the POS cash register will compare it with the preset device identification information. If the comparison results are consistent, it means that the identity authentication of the device has passed, and the POS cash register will mark this device as a target loss prevention device In one embodiment, if Figure 6 As shown, in step S50, the target loss prevention device is bound. After the binding is successful, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register, including: S501: Establishing an initial connection with a target loss prevention device through a local area network, verifying the connection status, and sending binding information to the target loss prevention device according to the verified connection status.

[0063] Specifically, after the identity authentication of the target loss prevention device is passed, the POS cash register will establish an initial connection with the device through the local area network. The initial connection establishment process includes a two-way handshake and connection status confirmation to ensure that both parties can communicate normally. After confirming that the connection status is good, the POS cash register will send binding information to the target loss prevention device. The binding information contains key information such as the identification information of the POS cash register and the connection code.

[0064] S502: Based on the confirmation response information returned by the target loss prevention device and after successful binding, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register.

[0065] In this embodiment, the confirmation response information returned by the target loss prevention device refers to the confirmation information generated by the loss prevention device after receiving the binding information, processing and verifying the information. The confirmation information indicates that the loss prevention device has accepted and confirmed the binding request.

[0066] Specifically, after the POS register sends the binding information, the target loss prevention device will process the information to verify its legitimacy and integrity. After the verification is successful, the loss prevention device will generate a confirmation response message and return it to the POS register. After receiving the confirmation response message, the POS register will confirm that the binding is successful and immediately send a final confirmation message to the loss prevention device.

[0067] In one embodiment, if Figure 7 As shown, in step S502, based on the confirmation response information returned by the target loss prevention device and after the binding is successful, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register, and further includes: S5021: Verify the returned confirmation response information of the target loss prevention device through the device binding verification protocol. When the verification passes, it is determined that the binding between the target loss prevention device and the POS cash register is successful.

[0068] Specifically, after receiving the binding information sent by the POS cash register, the target loss prevention device will generate and return the return confirmation response information of the target loss prevention device according to the device binding verification protocol. After receiving the return confirmation response information of the target loss prevention device, the POS cash register uses the preset device binding verification protocol to verify the return confirmation response information of the target loss prevention device. If the verification passes, the POS cash register will confirm the identity of the target loss prevention device, indicating that the binding operation between the target loss prevention device and the POS cash register has been successfully completed. After that, the POS cash register will send a final confirmation message to the target loss prevention device to notify it that the binding operation has been officially completed.

[0069] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0070] In one embodiment, a binding device for a loss prevention device and a POS cash register is provided, and the binding device for the loss prevention device and the POS cash register corresponds one-to-one to the binding method for the loss prevention device and the POS cash register in the above embodiment. Figure 8 As shown, the binding device of the loss prevention device and the POS cash register includes an information acquisition module, a connection module, a loss prevention device serial number module, a target loss prevention device module and a binding module. The detailed description of each functional module is as follows: An information acquisition module, used to obtain identification information of loss prevention equipment; A connection module, for obtaining a quick connection code based on identification information of the loss prevention device; The anti-loss device serial number module is used to identify and parse the quick connection code through the device binding verification protocol to obtain the anti-loss device serial number; A target loss prevention device module is used to search for a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain the target loss prevention device; The binding module is used to bind the target loss prevention device. After the binding is successful, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register.

[0071] Optionally, the connection module also includes: An algorithm identification module, used to generate a quick connection code through a preset encryption algorithm based on the identification information of the anti-loss device; The effective management module is used to manage the validity period of the quick connection code to ensure the security and effectiveness of the quick connection code.

[0072] Optional, Loss Prevention Device Serial Number Module includes: The format verification submodule is used to verify the format of the quick connection code to obtain a verified quick connection code; The decryption submodule is used to decrypt the verified quick connection code through the device binding verification protocol to obtain the decrypted original information, and obtain the anti-loss device serial number from the decrypted original information.

[0073] Optional, target loss prevention equipment modules include: The matching submodule is used to use the anti-loss device serial number as a search condition, match it in the local area network, and obtain the matched anti-loss device; The device marking submodule is used to verify the matched anti-loss device. If the verification is successful, the matched anti-loss device is marked as a target anti-loss device.

[0074] Optionally, the device tagging module includes: The verification response information unit is used to send a verification request to the matched anti-loss device through the device binding verification protocol to obtain verification response information; The device verification unit is used to verify that the verification is successful if the verification response information is consistent with the preset device identification information, and mark the matched loss prevention device as a target loss prevention device.

[0075] Optionally, the binding module includes: The initial connection submodule is used to establish an initial connection with the target loss prevention device through the local area network, verify the connection status, and send binding information to the target loss prevention device according to the verified connection status; The binding confirmation submodule is used to send a confirmation message to the target loss prevention device based on the confirmation response information returned by the target loss prevention device and after the binding is successful, so as to complete the binding of the target loss prevention device with the POS cash register.

[0076] Optionally, the binding confirmation submodule includes: The binding success unit is used to verify the confirmation response information returned by the target loss prevention device through the device binding verification protocol. When the verification passes, it is determined that the binding between the target loss prevention device and the POS cash register is successful.

[0077] For the specific definition of the binding device of the loss prevention device and the POS cash register, please refer to the definition of the binding method of the loss prevention device and the POS cash register above, which will not be repeated here. Each module in the above-mentioned binding device of the loss prevention device and the POS cash register can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0078] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for POS information storage database. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for binding an anti-loss device to a POS cash register is implemented.

[0079] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Obtain identification information for loss prevention equipment; Based on the identification information of the loss prevention device, a quick connection code is obtained; The quick connection code is identified and parsed through the device binding verification protocol to obtain the anti-loss device serial number; Searching for a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain the target loss prevention device; Bind the target loss prevention device. After successful binding, send a confirmation message to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register.

[0080] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Obtain identification information for loss prevention equipment; Based on the identification information of the loss prevention device, a quick connection code is obtained; The quick connection code is identified and parsed through the device binding verification protocol to obtain the anti-loss device serial number; Searching for a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain the target loss prevention device; Bind the target loss prevention device. After successful binding, send a confirmation message to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register.

[0081] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0082] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0083] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for binding a loss prevention device to a POS cash register, characterized in that: The method for binding the loss prevention device to the POS cash register includes: Obtain identification information for loss prevention equipment; Based on the identification information of the loss prevention device, a quick connection code is obtained; The quick connection code is identified and parsed through the device binding verification protocol to obtain the anti-loss device serial number; Searching for a loss prevention device corresponding to the loss prevention device serial number in the local area network to obtain a target loss prevention device; The target loss prevention device is bound, and after the binding is successful, a confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device and the POS cash register.

2. The method for binding a loss prevention device to a POS cash register according to claim 1, characterized in that: The obtaining of a quick connection code based on the identification information of the loss prevention device further comprises: Based on the identification information of the anti-loss device, the quick connection code is generated by a preset encryption algorithm; The quick connection code is managed for its validity period to ensure the security and effectiveness of the quick connection code.

3. The method for binding a loss prevention device to a POS cash register according to claim 1, characterized in that: The quick connection code is identified and parsed through the device binding verification protocol to obtain the loss prevention device serial number, including: Performing format verification on the quick connection code to obtain a verified quick connection code; The verified quick connection code is decrypted through the device binding verification protocol to obtain the decrypted original information, and the loss prevention device serial number is obtained from the decrypted original information.

4. The method for binding a loss prevention device to a POS cash register according to claim 1, characterized in that: The step of searching for an anti-loss device corresponding to the anti-loss device serial number in the local area network to obtain a target anti-loss device includes: Using the loss prevention device serial number as a search condition, matching is performed in the local area network to obtain a matched loss prevention device; The matched anti-loss device is verified, and if the verification is successful, the matched anti-loss device is marked as the target anti-loss device.

5. The method for binding a loss prevention device to a POS cash register according to claim 4, characterized in that: The verifying the matched anti-loss device, and if the verification is successful, marking the matched anti-loss device as the target anti-loss device, includes: Sending a verification request to the matched anti-loss device through the device binding verification protocol to obtain verification response information; If the verification response information is consistent with the preset device identification information, the verification is successful, and the matched loss prevention device is marked as the target loss prevention device.

6. The method for binding a loss prevention device to a POS cash register according to claim 1, characterized in that: The step of binding the target loss prevention device and, after successful binding, sending a confirmation message to the target loss prevention device to complete the binding of the target loss prevention device with the POS cash register includes: Establishing an initial connection with the target loss prevention device through the local area network, verifying the connection status, and sending binding information to the target loss prevention device according to the verified connection status; Based on the confirmation response information returned by the target loss prevention device and after successful binding, the confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device with the POS cash register.

7. The method for binding a loss prevention device to a POS cash register according to claim 6, characterized in that: After the confirmation response information returned by the target loss prevention device is successfully bound, the confirmation message is sent to the target loss prevention device to complete the binding of the target loss prevention device with the POS cash register, and further includes: The confirmation response information returned by the target loss prevention device is verified through the device binding verification protocol. When the verification passes, it is determined that the target loss prevention device is successfully bound to the POS cash register.

8. A binding device for a loss prevention device and a POS cash register, characterized in that: The binding device of the loss prevention device and the POS cash register includes: An information acquisition module, used to obtain identification information of loss prevention equipment; A connection module, configured to obtain a quick connection code based on the identification information of the anti-loss device; The anti-loss device serial number module is used to identify and parse the quick connection code through the device binding verification protocol to obtain the anti-loss device serial number; A target loss prevention device module is used to search for a loss prevention device corresponding to the loss prevention device serial number in a local area network to obtain a target loss prevention device; The binding module is used to bind the target loss prevention device and, after successful binding, send a confirmation message to the target loss prevention device to complete the binding between the target loss prevention device and the POS cash register.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for binding the loss prevention device and the POS cash register as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for binding a loss prevention device to a POS cash register as described in any one of claims 1 to 7 are implemented.