The invention discloses a shopping method and
system based on cooperation of a door lock and an unmanned supermarket, and the method comprises the steps: generating an improved
multicast joining message according to shopping
list information inputted by an owner on an intelligent door lock, and transmitting the improved
multicast joining message to a preset
multicast address, thereby completing multicast registration; according to an
event triggered by
face scanning after an authorized user arrives at the unmanned supermarket, the supermarket door lock generates a
verification request message and sends the
verification request message through multicast, identity
verification is completed, and the supermarket door lock is opened; according to a
payment request triggered after the authorized user selects and purchases the commodity, the
payment machine generates a
payment confirmation message and sends the payment confirmation message through multicast, and an owner confirmation interface is triggered; according to the payment confirmation operation of the owner, the door lock collects the payment two-dimensional code and sends the payment two-dimensional code to the payment
machine, after payment is completed, the door lock sends a multicast leaving message, and the shopping process is ended. According to the embodiment of the invention, flexible cooperation of the door lock and the supermarket
system can be realized, and the problems of convenient shopping and safety management and control in an offline scene are solved.