CN111915250B - Store arrival detection method and device, storage medium and electronic equipment - Google Patents

Store arrival detection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111915250B
CN111915250B CN202010724588.0A CN202010724588A CN111915250B CN 111915250 B CN111915250 B CN 111915250B CN 202010724588 A CN202010724588 A CN 202010724588A CN 111915250 B CN111915250 B CN 111915250B
Authority
CN
China
Prior art keywords
target
identifier
device identifier
delivery resource
time interval
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
CN202010724588.0A
Other languages
Chinese (zh)
Other versions
CN111915250A (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.)
Rajax Network Technology Co Ltd
Original Assignee
Rajax Network 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 Rajax Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN202010724588.0A priority Critical patent/CN111915250B/en
Publication of CN111915250A publication Critical patent/CN111915250A/en
Application granted granted Critical
Publication of CN111915250B publication Critical patent/CN111915250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The embodiment of the invention discloses an arrival detection method, an arrival detection device, a storage medium and electronic equipment. The method comprises the steps of obtaining a first target device identification in a preset range through wireless scanning, determining a target distribution resource identification corresponding to the first target device identification according to mapping, and sending distribution resource arrival information, wherein the distribution resource arrival information comprises the target distribution resource identification. Thus, the environmental adaptability and accuracy of store detection can be improved.

Description

Store arrival detection method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of data processing, in particular to a store arrival detection method, a store arrival detection device, a storage medium and electronic equipment.
Background
In the take-away industry, in order to optimize a delivery link, data of each node in the delivery process is recorded and collected, and the data is used for optimizing a scheduling system and judging a responsible party of delivery abnormity. For example: the slow order delivery of a certain order causes the user to return the order because the merchant has a slow meal or the rider has a slow delivery, and a relatively clear judgment standard is needed. Thus, the rider's arrival time is a key node in the distribution process.
In the prior art, a GPS (Global Positioning System) is generally adopted to limit a certain range, and when a rider enters the range, the rider clicks a shop on a mobile phone APP. However, the GPS has limited accuracy and often drifts, and the GPS display is still 300 meters after the rider arrives at the store, so that the rider cannot click the store, and the environmental adaptability is poor. Meanwhile, the limited range of the GPS is large, the range is generally 300 meters, in some super business buildings, a large number of shops exist, and the accuracy of the arrival of a large number of riders at a super business A shop or a super business B shop is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for detecting an arrival store, which can improve environmental adaptability and accuracy of the arrival store detection.
In a first aspect, an embodiment of the present invention provides an arrival detection method, where the method includes:
scanning and acquiring a device identifier in a preset range in a wireless mode to serve as a first target device identifier;
detecting a first target device identifier in a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the device identifier and a distribution resource identifier;
in response to detecting the first target device identifier in the mapping relationship, determining a delivery resource identifier corresponding to the first target device identifier as a target delivery resource identifier; and
and sending delivery resource arrival information, wherein the delivery resource arrival information comprises the target delivery resource identifier.
Preferably, the delivery resource achievement information further includes an identification of the target order;
after determining the delivery resource identifier corresponding to the first target device identifier as the target delivery resource identifier, the method further includes:
acquiring information of each order to be delivered, wherein the information of the order to be delivered comprises a delivery resource identifier bound with the order to be delivered;
determining the order to be distributed corresponding to the target distribution resource identifier as a target order; and
and generating the delivery resource achieving information according to the identification of the target order.
Preferably, the method further comprises:
recording the time for acquiring the first target equipment identifier;
the delivery resource arrival information further includes time when the first target device identifier is acquired.
Preferably, the method further comprises:
in response to receiving a meal taking notification message, determining an equipment identifier obtained by scanning within a first time interval when a distribution resource identifier corresponding to the meal taking notification is not in the mapping relationship, wherein the meal taking notification message comprises the distribution resource identifier corresponding to the taken order;
determining a second target device identifier according to the device identifier obtained by scanning in the first time interval; and
and adding the second target equipment identifier and the delivery resource identifier in the meal taking notification message to the mapping relation.
Preferably, the determining the second target device identifier according to the device identifier obtained by scanning in the first time interval includes:
detecting the device identification obtained by scanning in the first time interval in the mapping relation; and
and in response to that one device identifier obtained by scanning in the first time interval is not in the mapping relationship, taking the device identifier not in the mapping relationship as a second target device identifier.
Preferably, the determining the second target device identifier according to the device identifier obtained by scanning in the first time interval includes:
in response to that a plurality of device identifiers scanned and acquired in the first time interval are not in the mapping relationship, storing the distribution resource identifier in the meal taking notification message and a plurality of device identifiers not in the mapping relationship as corresponding relationships to be confirmed;
acquiring a plurality of stored corresponding relations to be confirmed of the same distribution resource identifier; and
and selecting the device identifier with the largest occurrence frequency from the plurality of corresponding relations to be confirmed as a second target device identifier.
Preferably, the meal fetching notification message further includes a meal fetching time;
the first time interval is a time interval from first time to the meal taking time, and the first time is determined according to the meal taking time and a preset first threshold value.
Preferably, after obtaining the target delivery resource identifier corresponding to the first target device identifier, the method further includes:
and verifying the mapping relation according to the target distribution resource information.
Preferably, the checking the mapping relationship according to the target delivery resource information includes:
acquiring a set of distribution resource identifiers corresponding to an order to be distributed, wherein the order to be distributed is an order which does not receive a meal taking notification message, and the meal taking notification message comprises the distribution resource identifiers corresponding to the taken order;
detecting the target delivery resource identification in the set; and
and determining that the mapping relation is checked correctly in response to detecting the target delivery resource identifier in the set and receiving a meal taking notification message corresponding to the target delivery resource identifier in a second time interval.
Preferably, the checking the mapping relationship further includes:
and in response to that the target delivery resource identifier is not detected in the set and/or in response to that the target delivery resource identifier is detected in the set and a meal fetching notification message corresponding to the target delivery resource identifier is not received in a second time interval, determining that a mapping relation is checked to be incorrect, and deleting the target delivery resource identifier and a corresponding device identifier in the mapping relation.
Preferably, the second time interval is a time interval from the time when the first target device identifier is acquired to a second time, and the second time is determined according to the time when the first target device identifier is acquired and a second threshold.
Preferably, the wireless mode is a wireless local area network or bluetooth;
the device identification is a network address of a wireless local area network or bluetooth.
In a second aspect, an embodiment of the present invention provides an arrival detection apparatus, including:
the scanning unit is used for scanning and acquiring the equipment identifier in the preset range in a wireless mode to be used as a first target equipment identifier;
the device comprises a detection unit, a resource allocation unit and a resource allocation unit, wherein the detection unit is used for detecting a first target device identifier in a mapping relation, and the mapping relation is used for representing the corresponding relation between the device identifier and a distribution resource identifier;
a first determining unit, configured to determine, in response to detecting the first target device identifier in the mapping relationship, a delivery resource identifier corresponding to the first target device identifier as a target delivery resource identifier; and
a sending unit, configured to send delivery resource arrival information, where the delivery resource arrival information includes the target delivery resource identifier.
Preferably, the delivery resource achievement information further includes an identification of the target order;
the device further comprises:
the order information acquiring unit is used for acquiring information of each order to be delivered, and the information of the order to be delivered comprises a delivery resource identifier bound with the order to be delivered;
the target order determining unit is used for determining the order to be distributed corresponding to the target distribution resource identifier as a target order; and
and the distribution resource reaching information generating unit is used for generating the distribution resource reaching information according to the identification of the target order.
Preferably, the apparatus further comprises:
the recording unit is used for recording the time for acquiring the first target equipment identifier;
the delivery resource arrival information further includes time when the first target device identifier is acquired.
Preferably, the apparatus further comprises:
the equipment identifier obtaining unit is used for responding to the receiving of a meal taking notification message, determining the equipment identifier obtained by scanning in a first time interval when the distribution resource identifier corresponding to the meal taking notification is not in the mapping relation, wherein the meal taking notification message comprises the distribution resource identifier corresponding to the taken order;
the second determining unit is used for determining a second target device identifier according to the device identifier obtained by scanning in the first time interval; and
and the updating unit is used for adding the second target equipment identifier and the delivery resource identifier in the meal taking notification message to the mapping relation.
Preferably, the second determination unit includes:
the device identifier detection subunit is configured to detect, in the mapping relationship, a device identifier obtained by scanning within the first time interval; and
and the first determining subunit is configured to, in response to that one device identifier obtained through scanning in the first time interval is not in the mapping relationship, take the device identifier that is not in the mapping relationship as the second target device identifier.
Preferably, the second determination unit further includes:
a storage subunit, configured to, in response to that multiple device identifiers obtained by scanning in the first time interval are not in the mapping relationship, store, as to-be-confirmed correspondence relationships, delivery resource identifiers in the meal fetching notification message and multiple device identifiers that are not in the mapping relationship;
the corresponding relation obtaining subunit is used for obtaining a plurality of stored corresponding relations to be confirmed of the same distribution resource identifier; and
and the second determining subunit is configured to select, as the second target device identifier, the device identifier with the largest number of occurrences in the plurality of to-be-confirmed correspondence relationships.
Preferably, the meal fetching notification message further includes a meal fetching time;
the first time interval is a time interval from first time to the meal taking time, and the first time is determined according to the meal taking time and a preset first threshold value.
Preferably, the apparatus further comprises:
and the checking unit is used for checking the mapping relation according to the target distribution resource information.
Preferably, the inspection unit includes:
the system comprises a set acquisition subunit, a service acquisition subunit and a service processing subunit, wherein the set acquisition subunit is used for acquiring a set of distribution resource identifiers corresponding to an order to be distributed, the order to be distributed is an order which does not receive a meal taking notification message, and the meal taking notification message comprises the distribution resource identifiers corresponding to the taken order;
a set detection subunit, configured to detect the target delivery resource identifier in the set; and
and the first checking subunit is configured to determine that the mapping relationship check is correct in response to detecting the target delivery resource identifier in the set and receiving a meal fetching notification message corresponding to the target delivery resource identifier within a second time interval.
Preferably, the verification unit further includes:
and the second checking subunit is configured to, in response to that the target delivery resource identifier is not detected in the set and/or in response to that the target delivery resource identifier is detected in the set and a meal taking notification message corresponding to the target delivery resource identifier is not received within a second time interval, determine that a mapping relationship is checked incorrectly, and delete the target delivery resource identifier and a corresponding device identifier in the mapping relationship.
Preferably, the second time interval is a time interval from the time when the first target device identifier is acquired to a second time, and the second time is determined according to the time when the first target device identifier is acquired and a second threshold.
Preferably, the wireless mode is a wireless local area network or bluetooth;
the device identification is a network address of a wireless local area network or bluetooth.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium on which computer program instructions are stored, which when executed by a processor implement the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first aspect.
According to the technical scheme of the embodiment of the invention, the first target equipment identifier in the preset range is obtained by wireless scanning, the target distribution resource identifier corresponding to the first target equipment identifier is determined according to the mapping, and the distribution resource arrival information is sent, wherein the distribution resource arrival information comprises the target distribution resource identifier. Thus, the environmental adaptability and accuracy of store detection can be improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of an in-store detection system of an embodiment of the present invention;
FIG. 2 is a flow chart of a store arrival detection method of an embodiment of the present invention;
FIG. 3 is a diagram illustrating a mapping relationship according to an embodiment of the invention;
FIG. 4 is a flow chart of updating a mapping relationship according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating the checking of mapping relationships according to an embodiment of the present invention;
FIG. 6 is a schematic view of an arrival detection apparatus of an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device of an embodiment of the invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
FIG. 1 is a schematic diagram of an in-store detection system of an embodiment of the present invention. As shown in fig. 1, the order system according to the embodiment of the present invention includes at least one detection apparatus 1, at least one distribution terminal 2, and at least one server 3. The present embodiment will be described by taking one detection apparatus 1, one distribution terminal 2, and one server 3 as an example. The detection device 1, the distribution terminal 2, and the server 3 are connected to each other by communication via a network.
In the present embodiment, the delivery terminal 2 is a terminal device that delivers resource usage.
Further, the delivery resources may be resources with end delivery capabilities such as take-away riders, drones, robots, and drones.
Alternatively, the distribution terminal may be implemented by a mobile phone, a notebook computer, a desktop computer, a tablet computer, or the like, or may be implemented by a dedicated electronic communication device.
In the present embodiment, the detection apparatus 1 is used to detect whether or not a delivery resource arrives at a store.
Further, the detection apparatus 1 scans and acquires a first target device identifier within a predetermined range in a wireless manner, detects the first target device identifier in a mapping relationship, acquires a target delivery resource identifier corresponding to the first target device identifier in response to detecting the first target device identifier in the mapping relationship, and sends delivery resource arrival information, where the delivery resource arrival information includes the target delivery resource identifier.
Further, the wireless mode is a wireless local area network or bluetooth.
Further, the device identifier is a unique identifier of the distribution terminal, the distribution resource identifier is used for representing the identity information of the distribution resource, and the mapping relationship is a corresponding relationship between the device identifier and the distribution resource identifier.
Further, the device identification is a network address of a wireless local area network or bluetooth.
Further, taking the mobile phone with the delivery terminal as a rider as an example for explanation, the rider installs an application program on the mobile phone in advance, registers the application program, and uploads delivery resource identity information, that is, a delivery resource identifier, to the server.
Alternatively, the rider sets the delivery terminal to receive other device scans through the installed application and configures the delivery terminal with a unique identifier, i.e., a device identifier. Thereby, the terminal device of the rider can be distinguished from the terminal device of the ordinary user.
In an alternative implementation manner, the detection apparatus 1 may wirelessly scan for the device identifier through WiFi (wireless local area network). WiFi is networked through radio waves, the networking is realized through a wireless router, and the effective range covered by the radio waves of the wireless router can be networked in a WiFi connection mode.
Specifically, the wireless scanning mode may be implemented by active scanning (active scanning). Active scanning is that the distribution terminal sends out a Probe Request frame on each channel in an active manner, requesting a specific wireless network to respond. Active scanning is an active network finding process, and a station using active scanning scans channels listed in the channel list according to the following procedure: a jump to a channel and then wait for an indication of a frame (indicating an incoming frame) or wait until the ProbeDelay timer expires, and if a frame is received on this channel, it is proved that the channel is in use by the user and can be detected, and the ProbeDelay timer can be used to prevent an idle channel from stopping the whole process because the station does not wait for the frame to arrive. The basic DCF (Distributed Coordination Function) access process is used to obtain the medium usage right, and then a Probe Request frame is sent out. Waiting at least for a minimum channel time (MinChannelTime), if the medium is not busy, indicating that no network exists and therefore can jump to the next channel, if the medium is very busy during the MinChannelTime, continuing to wait for a period of time until the maximum channel time (i.e. MaxChannelTime) times out, and then processing any Probe Response frames.
Alternatively, the wireless scanning mode may be implemented by passive scanning (passive scanning). In passive scanning, the detection device switches between the channels listed in the channel list (channel list) and waits for the arrival of a Beacon frame. Any frames received are buffered to extract data related to the BSS (Basic Service Set) that transmitted the frames.
Therefore, the detection apparatus 1 may scan and acquire the device identifier in a WiFi (wireless internet access) wireless manner.
In another alternative implementation, the wireless mode is bluetooth. Bluetooth is a radio technology supporting short-distance communication of devices, and can realize convenient, quick, flexible, safe, low-cost and low-power-consumption data communication and voice communication among the devices.
Specifically, in bluetooth technology, when bluetooth communication is performed between each pair of devices, one device is a device master device, and the other device is a slave device. The slave device is a broadcasting device and sends a connectable signal in a broadcasting mode, and the master device is a scanning device or an initiating device and is used for scanning the connectable signal broadcasted by the slave device and initiating a connection request to the slave device after scanning the connectable signal. Further, the detection apparatus 1 may be a slave device or a master device. When the detection apparatus 1 is a slave device, the distribution terminal is configured as a master device. When the detection apparatus 1 is a master device, the distribution terminal is configured as a slave device.
Therefore, the detection device 1 can scan and acquire the equipment identifier in a Bluetooth wireless mode.
In the present embodiment, the server 3 is a takeaway platform.
Further, the server 3 may be one server or a server cluster.
The user can perform commodity purchasing operation on predetermined application software, a predetermined webpage and the like through the user terminal, the user sends order information to the merchant terminal after the user terminal completes purchasing (namely, confirms placing an order), and the merchant terminal sends order receiving information to the server after confirming receiving. After receiving order receiving information sent by the merchant terminal, the server allocates a distribution terminal for the order according to a preset order allocation method, and notifies the distribution terminal of corresponding distribution resources for distribution. The detection apparatus 1 can determine the arrival time of the delivered resource by transmitting the delivered resource arrival information to the server after detecting that the delivered resource has arrived at the store.
Optionally, the arrival detection system of the embodiment of the present invention further includes a meal taking device 4, configured to place a meal item and detect whether the meal item is taken away.
Further, the meal taking device 4 can be implemented by various existing meal taking devices, such as a meal taking cabinet or a meal taking rack. Specifically, after the merchant prepares the meal, the meal is placed at the corresponding position of the meal taking device, and after the rider arrives at a store, the corresponding meal is taken away from the meal taking device.
Further, the meal taking device 4 is further configured to detect whether a meal item is taken away, and if the meal item is detected to be taken away, generate a meal taking notification message and send the meal taking notification message to the server 3.
Further, the meal taking device 4 can detect whether the meal is taken or not by various methods, which are not limited herein. For example, whether the meal is taken away or not can be detected by a laser ranging method, an infrared correlation method, or the like. The laser ranging method is characterized in that a laser emitting head with fixed frequency and a laser receiving head with fixed frequency are adopted to form the laser ranging method, and the time difference of laser reflection is calculated through laser reflection, so that whether an object is shielded in front of the laser head is obtained. The mode of infrared correlation generally comprises two parts, a look infrared pipe, a receipt infrared pipe, infrared transmitting tube need aim at infrared receiving tube during the installation, when the object shelters from, infrared receiving tube can not receive infrared transmitting tube's light, so judge to have the thing of putting. If no object is blocked, the meal is taken away.
In an alternative implementation, the server 3 sends the received meal taking notification message to the detection apparatus 1.
In another alternative implementation manner, the meal taking device 4 directly sends the meal taking notification message to the detection device 1 in a wireless communication or wired communication manner.
Specifically, fig. 2 is a flowchart of a store-arrival detection method of an embodiment of the present invention. As shown in fig. 2, the method for detecting a store arrival according to the embodiment of the present invention includes the following steps:
and step S210, acquiring the target equipment identification.
In this embodiment, the detection apparatus 1 wirelessly scans and acquires the device identifier within the predetermined range as the first target device identifier.
Alternatively, as shown in fig. 1, the predetermined range is a range shown by a broken line in the figure. It should be understood that fig. 1 is only an example of the embodiment, and the detection range of the detection device of the embodiment of the present invention may be set according to the actual situation of the merchant, for example, a predetermined range of the detection device for detecting a predetermined direction is set, and the predetermined range includes a rider meal taking place or a necessary path for the rider to go to the meal taking place.
In an optional implementation manner, the detection apparatus 1 may scan and acquire the device identifier in a WiFi (wireless internet access) wireless manner. WiFi is networked through radio waves, the networking is realized through a wireless router, and the effective range covered by the radio waves of the wireless router can be networked in a WiFi connection mode.
Specifically, the wireless scanning mode may be implemented by active scanning (active scanning). Active scanning is that the distribution terminal sends out a Probe Request frame on each channel in an active manner, requesting a specific wireless network to respond. Active scanning is an active network finding process, and a station using active scanning scans channels listed in the channel list according to the following procedure: a jump to a channel and then wait for an indication of a frame (indicating an incoming frame) or wait until the ProbeDelay timer expires, and if a frame is received on this channel, it is proved that the channel is in use by the user and can be detected, and the ProbeDelay timer can be used to prevent an idle channel from stopping the whole process because the station does not wait for the frame to arrive. The basic DCF (Distributed Coordination Function) access process is used to obtain the medium usage right, and then a Probe Request frame is sent out. Waiting at least for a minimum channel time (MinChannelTime), if the medium is not busy, indicating that no network exists and therefore can jump to the next channel, if the medium is very busy during the MinChannelTime, continuing to wait for a period of time until the maximum channel time (i.e. MaxChannelTime) times out, and then processing any Probe Response frames.
Alternatively, the wireless scanning mode may be implemented by passive scanning (passive scanning). In passive scanning, the detection device switches between the channels listed in the channel list (channel list) and waits for the arrival of a Beacon frame. Any frames received are buffered to extract data related to the BSS (Basic Service Set) that transmitted the frames.
Therefore, the detection apparatus 1 may scan and acquire the device identifier in a WiFi (wireless internet access) wireless manner.
In another alternative implementation, the wireless mode is bluetooth. Bluetooth is a radio technology supporting short-distance communication of devices, and can realize convenient, quick, flexible, safe, low-cost and low-power-consumption data communication and voice communication among the devices.
Specifically, in bluetooth technology, when bluetooth communication is performed between each pair of devices, one device is a device master device, and the other device is a slave device. The slave device is a broadcasting device and sends a connectable signal in a broadcasting mode, and the master device is a scanning device or an initiating device and is used for scanning the connectable signal broadcasted by the slave device and initiating a connection request to the slave device after scanning the connectable signal. Further, the detection apparatus 1 may be a slave device or a master device. When the detection apparatus 1 is a slave device, the distribution terminal is configured as a master device. When the detection apparatus 1 is a master device, the distribution terminal is configured as a slave device.
Therefore, the detection device 1 can scan and acquire the equipment identifier in a Bluetooth wireless mode.
Step S220, detecting a first target device identifier in a mapping relationship, where the mapping relationship is used to represent a correspondence between the device identifier and the resource distribution identifier.
In this embodiment, the detecting apparatus 1 detects the first target device identifier in a mapping relationship, where the mapping relationship is a corresponding relationship between the device identifier and the distribution resource identifier.
Further, fig. 3 is a schematic diagram of a mapping relationship according to an embodiment of the present invention. As shown in fig. 3, the device identifier is denoted as ID, and the delivery resource identifier is denoted as ST. Each device ID has a unique corresponding delivery resource ID ST.
Step S230, in response to detecting the first target device identifier in the mapping relationship, determining a delivery resource identifier corresponding to the first target device identifier as a target delivery resource identifier.
In this embodiment, in response to detecting the first target device identifier in the mapping relationship, a distributed resource identifier corresponding to the first target device identifier is obtained as a target distributed resource identifier.
Step S240, sending delivery resource arrival information, where the delivery resource arrival information includes the target delivery resource identifier.
In the present embodiment, after acquiring the target point delivered resource identifier, the detection device 1 indicates that the rider corresponding to the target delivered resource identifier has arrived at the store, generates delivered resource arrival information, and sends the generated delivered resource arrival information to the server 3.
Further, the delivery resource arrival information includes the target delivery resource identification, so that the server 3 can determine that the rider has arrived according to the target delivery resource identification in the delivery resource arrival information.
It should be understood that, in the embodiment of the present invention, the delivery resource arrival information includes the target delivery resource identifier as an example for description, but the embodiment of the present invention is not limited thereto. For example, the delivery resource arrival information may also include a first target device identifier, and the server determines, according to the first target device identifier and the mapping relationship, a corresponding target delivery resource identifier, and further determines that the rider has arrived according to the target delivery resource identifier. For another example, the delivery resource arrival information may further include a first target device identification and a target delivery resource identification.
In one optional implementation, the server 3 determines the time when the delivery resource arrival information is received as the rider-to-store time.
In another optional implementation manner, the detecting apparatus is further configured to record a time when the first target device identifier is scanned, and the delivery resource arrival information further includes the time when the first target device identifier is scanned. Correspondingly, the server 3 determines the rider-to-store time according to the time of receiving the scanned first target device identifier in the delivery resource arrival information.
The method and the device for acquiring the target equipment identifier in the wireless scanning manner send the delivery resource arrival information after the first target equipment identifier in the predetermined range is scanned and acquired in a wireless manner and the target delivery resource identifier corresponding to the first target equipment identifier is determined according to the mapping, wherein the delivery resource arrival information comprises the target delivery resource identifier. Thus, the environmental adaptability and accuracy of store detection can be improved.
Further, the delivery resource achievement information further includes an identification of the target order.
Specifically, after determining the delivery resource identifier corresponding to the first target device identifier as the target delivery resource identifier, generating the delivery resource achievement information includes the following steps:
step S231, obtaining information of each order to be delivered, where the information of the order to be delivered includes a delivery resource identifier bound to the order to be delivered.
In this embodiment, the detection device obtains information of each to-be-delivered order, where the information of the to-be-delivered order includes a delivery resource identifier bound to the to-be-delivered order.
Further, the order to be delivered is an order for which the meal taking notification message is not received.
Step S232, determining the order to be delivered corresponding to the target delivery resource identifier as a target order.
In this embodiment, the order to be delivered corresponding to the target delivery resource identifier is determined as the target order.
Step S233, generating the delivery resource arrival information according to the identifier of the target order.
In this embodiment, the detection device obtains the identifier of the target order, and generates the delivery resource achievement information according to the identifier of the target order. The delivery resource achievement information includes an identification of the target order.
Therefore, the control device and the server can acquire whether the delivery resources of each order arrive at the store or not, and the accuracy of store arrival detection is improved.
Further, when a newly-enrolled rider is delivered for the first time, or after the rider replaces a mobile phone, the mapping relationship does not have the correspondence between the device identifier of the rider and the delivery resource identifier, and a corresponding mapping relationship needs to be added, that is, the mapping relationship is updated, specifically as shown in fig. 4, the method includes the following steps:
and step S401, receiving a meal receiving notification message.
In this embodiment, in response to receiving the meal fetching notification message, the mapping relationship updating process is triggered.
Further, the meal taking notification message includes the delivery resource identifier corresponding to the taken order.
In an optional implementation manner, if the meal fetching device 4 detects that a meal item is fetched, a meal fetching notification message is generated and sent to the server 3, and the server 3 sends the received meal fetching notification message to the detection device 1.
In another alternative implementation, the meal taking device 4 directly sends a meal taking notification message to the detection device 1 through a network.
And step S402, obtaining a distribution resource identifier corresponding to the meal taking notification message.
In this embodiment, the meal taking notification message includes a delivery resource identifier corresponding to the taken order, and the detection device obtains the delivery resource identifier corresponding to the meal taking notification message.
Step S403, detecting whether the distributed resource identifier is in the mapping relationship.
In this embodiment, after obtaining the delivery resource identifier corresponding to the meal fetching notification message, the detecting device detects whether the delivery resource identifier is in the mapping relationship.
Further, if the allocated resource identifier is in the mapping relationship, go to step S410.
Further, if the delivery resource identifier is not in the mapping relationship, the process proceeds to step S405.
And step S404, determining the device identification obtained by scanning in the first time interval.
In this embodiment, if the delivery resource identifier is not in the mapping relationship, it indicates that the delivery resource identifier needs to be added to the mapping relationship, and correspondingly, the device identifier corresponding to the delivery resource identifier needs to be determined, which is referred to as a second target device identifier.
Further, the detection device acquires the device identifier scanned and acquired in the first time interval as a candidate second target device identifier.
Further, the meal fetching notification message further comprises a meal fetching time.
Further, the first time interval is a time interval from a first time to the meal taking time, and the first time is determined according to the meal taking time and a preset first threshold value.
Further, the first time is a difference value between the meal taking time and a first threshold value. For example, if the meal taking time is 15 o 'clock 45 minutes and the first threshold is 5 minutes, the first time is 15 o' clock 40 minutes and the first time interval is a time interval between 15 o 'clock 40 minutes and 15 o' clock 45 minutes.
Step S405, determining the device identifier that is not scanned and acquired in the mapping relationship within the first time interval.
In this embodiment, the detection apparatus 1 detects the obtained device identifiers in the mapping relationship, and determines the number of device identifiers that are not in the mapping relationship.
Further, if only one candidate second target device identifier is not in the mapping relationship, the process proceeds to step S408.
Further, if there are multiple candidate second target device identifications not in the mapping relationship, go to step S406.
And step S406, determining and storing the corresponding relation to be confirmed.
In this embodiment, in response to that a plurality of device identifiers scanned and acquired in the first time interval are not in the mapping relationship, the detection apparatus stores the delivery resource identifier in the meal fetching notification message and a plurality of device identifiers not in the mapping relationship as the to-be-confirmed correspondence.
Further, the mapping relation to be confirmed includes a distribution resource identifier and a plurality of candidate second target device identifiers which are not in the mapping relation.
Step S407, obtaining a plurality of stored corresponding relations to be confirmed of the same distribution resource identifier.
In this embodiment, the detection apparatus obtains a plurality of stored to-be-confirmed correspondences of the same distribution resource identifier.
And step S408, determining the second target equipment identification.
In this embodiment, the detection device determines a second target device identifier corresponding to the distribution resource identifier.
Further, in response to that there is a device identifier scanned and obtained in the first time interval that is not in the mapping relationship, the device identifier that is not in the mapping relationship is taken as the second target device identifier. That is, if only one candidate second target device identifier is not in the mapping relationship, the candidate second target device identifier is used as the second target device identifier.
Further, in response to that a plurality of device identifiers scanned and obtained in the first time interval are not in the mapping relationship, storing the distribution resource identifier in the meal fetching notification message and a plurality of device identifiers not in the mapping relationship as to-be-confirmed correspondence relationships, obtaining a plurality of stored to-be-confirmed correspondence relationships of the same distribution resource identifier, and selecting a device identifier with the largest occurrence frequency from the plurality of to-be-confirmed correspondence relationships as a second target device identifier.
For example, assuming that, for the delivery resource identifier STk in the same meal fetching notification message, the multiple device identifiers Ida and IDb stored for the first time and the multiple device identifiers Ida and IDc stored for the second time, it may be determined that the second target device identifier corresponding to the delivery resource identifier STk is Ida.
It should be understood that the above method for determining the second target device identifier is only one embodiment of the present invention, but the embodiment of the present invention is not limited thereto, and may also determine the second target device identifier by other methods, for example: the detection apparatus 1 may select one device identifier from the correspondence to be confirmed, and determine the device identifier as the second target device identifier, optionally, the detection apparatus may select one device identifier at random, or may select one device identifier according to a predetermined rule, for example, the selection time is the closest.
And step S409, updating the mapping relation.
In this embodiment, the detection apparatus adds the second target device identifier and the delivery resource identifier in the meal fetching notification message to the mapping relationship.
And step S410, ending.
Further, if in step S403, it is determined that the distributed resource identifier is in the mapping relationship, which indicates that the mapping relationship does not need to be updated, the updating step is ended.
Further, in step S409, after the mapping relationship is updated, the updating step is ended.
Therefore, the detection device can automatically add the device identification which cannot be determined into the mapping relation, so that the system is more convenient to use.
Further, in order to further improve the accuracy of the mapping relationship, the method according to the embodiment of the present invention may check and update the mapping relationship, specifically as shown in fig. 5, and includes the following steps:
step S510, acquiring a set of distributed resource identifiers.
In this embodiment, the detection apparatus 1 checks the mapping relationship once every time it scans a target device identifier.
Further, the detection apparatus 1 obtains the target delivery resource identifier corresponding to the first target device identifier through the above steps S210 to S230.
Further, the detection apparatus 1 obtains a set of delivery resource identifiers corresponding to an order to be delivered, where the order to be delivered is an order for which the meal taking notification message is not received. That is, the orders to be delivered are all the orders not taken by the merchant.
Specifically, the detection apparatus 1 acquires the set through the server 3.
Step S520, detecting the target delivery resource identifier in the set.
In this embodiment, the detecting apparatus 1 detects whether the target delivery resource identifier is in the set of delivery resource identifiers.
Further, if the target delivery resource identifier is in the set of delivery resource identifiers, step S530 is entered.
Further, if the target delivery resource identifier is not in the set of delivery resource identifiers, go to step S550.
Step S530, detecting whether a meal taking notification message of the order corresponding to the target delivery resource identifier is received.
In this embodiment, the detecting device 1 detects whether a meal taking notification message of an order corresponding to the target delivery resource identifier is received in the second time interval.
Specifically, the detection apparatus 1 records the time scanned to the target device identifier, sets a predetermined time threshold (for example, 2 minutes), starts timing from the time scanned to the target device identifier, and detects whether the meal fetching notification message corresponding to the target delivery resource identifier exists in the meal fetching notification message received within the second time interval.
Further, if a meal taking notification message of the order corresponding to the target delivery resource identifier is received, step S540 is entered.
Further, if the meal taking notification message of the order corresponding to the target delivery resource identifier is not received, the process proceeds to step S550.
And step S540, checking that the result is correct.
In this embodiment, in response to detecting the target delivery resource identifier in the set and receiving the meal fetching notification message corresponding to the target delivery resource identifier within the second time interval, it indicates that the verification result of the corresponding relationship between the target device identifier and the target delivery resource identifier in the mapping relationship is correct.
Further, the second time interval is a time interval from the time when the first target device identifier is acquired to a second time, and the second time is determined according to the time when the first target device identifier is acquired and a second threshold.
Further, the second time is the sum of the time for acquiring the first target device identifier and a second threshold. For example, if the time for acquiring the first target device identifier is 12 o 'clock and 20 minutes, and the second threshold is 3 minutes, the second time is 12 o' clock and 23 minutes, and the second time interval is 12 o 'clock and 20 to 12 o' clock and 23 minutes.
And step S550, checking that the result is wrong.
In this embodiment, in response to that the target delivery resource identifier is not detected in the set, and/or in response to that the target delivery resource identifier is detected in the set and a meal fetching notification message corresponding to the target delivery resource identifier is not received in the second time interval, it indicates that a check result of a corresponding relationship between the target device identifier and the target delivery resource identifier in the mapping relationship is incorrect.
And step S560, updating the mapping relation.
In this embodiment, the target delivery resource identifier and the corresponding device identifier that are in error in the check result are deleted from the mapping relationship.
Therefore, the detection device can check the mapping relation once every time when the first target equipment identifier is scanned, and the accuracy of the mapping relation is improved.
Further, in order to improve the versatility of the system, the system of the embodiment of the present invention may also synchronize the mapping relationship.
Specifically, the detection device 1 of each merchant transmits the determined mapping relationship to the server 3, the server 3 receives the mapping relationship combination from all the detection devices to form a mapping relationship table, and the mapping relationship table is transmitted to each detection device, so that the mapping relationships of all the detection devices are synchronized.
Optionally, each detection device 1 updates the mapping relationship once, sends a synchronization request to the server 3 once, and after the server 3 updates the mapping relationship table, synchronizes to all the detection devices in the system.
Therefore, when the system is just put into use, a more accurate mapping relation can be quickly established. Meanwhile, after a new rider enters the job or the delivery terminal is replaced by the rider, the mapping relation can be rapidly updated, and the universality of the system is improved.
The method and the device for acquiring the target equipment identifier in the wireless scanning manner send the delivery resource arrival information after the first target equipment identifier in the predetermined range is scanned and acquired in a wireless manner and the target delivery resource identifier corresponding to the first target equipment identifier is determined according to the mapping, wherein the delivery resource arrival information comprises the target delivery resource identifier. Therefore, the GPS signal can be accurately positioned in places with poor GPS signals, and the environmental adaptability and the accuracy of store detection are improved.
Fig. 6 is a schematic diagram of an arrival detection apparatus of an embodiment of the present invention. As shown in fig. 6, the arrival detection apparatus of the embodiment of the present invention includes a scanning unit 61, a detection unit 62, a first determination unit 63, and a transmission unit 64. The scanning unit 61 is configured to wirelessly scan and acquire device identifiers within a predetermined range as the first target device identifier. The detecting unit 62 is configured to detect the first target device identifier in a mapping relationship, where the mapping relationship is used to represent a correspondence relationship between the device identifier and the distribution resource identifier. The first determining unit 63 is configured to, in response to detecting the first target device identifier in the mapping relationship, determine a delivery resource identifier corresponding to the first target device identifier as a target delivery resource identifier. The sending unit 64 is configured to send delivery resource arrival information, where the delivery resource arrival information includes the target delivery resource identifier.
The delivery resource achievement information further comprises an identification of the target order;
the device further comprises:
the order information acquiring unit is used for acquiring information of each order to be delivered, and the information of the order to be delivered comprises a delivery resource identifier bound with the order to be delivered;
the target order determining unit is used for determining the order to be distributed corresponding to the target distribution resource identifier as a target order; and
and the distribution resource reaching information generating unit is used for generating the distribution resource reaching information according to the identification of the target order.
Further, the apparatus further comprises:
the recording unit is used for recording the time for acquiring the first target equipment identifier;
the delivery resource arrival information further includes time when the first target device identifier is acquired.
Further, the apparatus further comprises:
the equipment identifier obtaining unit is used for responding to the receiving of a meal taking notification message, determining the equipment identifier obtained by scanning in a first time interval when the distribution resource identifier corresponding to the meal taking notification is not in the mapping relation, wherein the meal taking notification message comprises the distribution resource identifier corresponding to the taken order;
the second determining unit is used for determining a second target device identifier according to the device identifier obtained by scanning in the first time interval; and
and the updating unit is used for adding the second target equipment identifier and the delivery resource identifier in the meal taking notification message to the mapping relation.
Further, the second determination unit includes:
the device identifier detection subunit is configured to detect, in the mapping relationship, a device identifier obtained by scanning within the first time interval; and
and the first determining subunit is configured to, in response to that one device identifier obtained through scanning in the first time interval is not in the mapping relationship, take the device identifier that is not in the mapping relationship as the second target device identifier.
Further, the second determination unit further includes:
a storage subunit, configured to, in response to that multiple device identifiers obtained by scanning in the first time interval are not in the mapping relationship, store, as to-be-confirmed correspondence relationships, delivery resource identifiers in the meal fetching notification message and multiple device identifiers that are not in the mapping relationship;
the corresponding relation obtaining subunit is used for obtaining a plurality of stored corresponding relations to be confirmed of the same distribution resource identifier; and
and the second determining subunit is configured to select, as the second target device identifier, the device identifier with the largest number of occurrences in the plurality of to-be-confirmed correspondence relationships.
Further, the meal taking notification message further comprises meal taking time;
the first time interval is a time interval from first time to the meal taking time, and the first time is determined according to the meal taking time and a preset first threshold value.
Further, the apparatus further comprises:
and the checking unit is used for checking the mapping relation according to the target distribution resource information.
Further, the inspection unit includes:
the system comprises a set acquisition subunit, a service acquisition subunit and a service processing subunit, wherein the set acquisition subunit is used for acquiring a set of distribution resource identifiers corresponding to an order to be distributed, the order to be distributed is an order which does not receive a meal taking notification message, and the meal taking notification message comprises the distribution resource identifiers corresponding to the taken order;
a set detection subunit, configured to detect the target delivery resource identifier in the set; and
and the first checking subunit is configured to determine that the mapping relationship check is correct in response to detecting the target delivery resource identifier in the set and receiving a meal fetching notification message corresponding to the target delivery resource identifier within a second time interval.
Further, the verification unit further includes:
and the second checking subunit is configured to, in response to that the target delivery resource identifier is not detected in the set and/or in response to that the target delivery resource identifier is detected in the set and a meal taking notification message corresponding to the target delivery resource identifier is not received within a second time interval, determine that a mapping relationship is checked incorrectly, and delete the target delivery resource identifier and a corresponding device identifier in the mapping relationship.
Further, the second time interval is a time interval from the time when the first target device identifier is acquired to a second time, and the second time is determined according to the time when the first target device identifier is acquired and a second threshold.
Furthermore, the wireless mode is a wireless local area network or Bluetooth;
the device identification is a network address of a wireless local area network or bluetooth.
The method and the device for acquiring the target equipment identifier wirelessly scan and acquire the first target equipment identifier in the preset range, determine the first target distribution resource identifier corresponding to the target equipment identifier according to mapping, and send distribution resource arrival information, wherein the distribution resource arrival information comprises the target distribution resource identifier. Thus, the environmental adaptability and accuracy of store detection can be improved.
Fig. 7 is a schematic diagram of an electronic device of an embodiment of the invention. In this embodiment, the electronic device includes a server, a terminal, and the like. As shown in fig. 7, the electronic device: at least one processor 71; and a memory 72 communicatively coupled to the at least one processor 71; and a communication component 73 communicatively coupled to the scanning device, the communication component 73 receiving and transmitting data under control of the processor 71; wherein the memory 72 stores instructions executable by the at least one processor 71, the instructions being executable by the at least one processor 71 to implement the store-arrival detection method described above.
Specifically, the electronic device includes: one or more processors 71 and a memory 72, one processor 71 being exemplified in fig. 7. The processor 71 and the memory 72 may be connected by a bus or other means, and fig. 7 illustrates the connection by a bus as an example. Memory 72, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 71 executes various functional applications of the device and data processing by running non-volatile software programs, instructions, and modules stored in the memory 72, i.e., implements the store-to-store detection method described above.
The memory 72 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory 72 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 72 may optionally include memory located remotely from the processor 71, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 72, which when executed by the one or more processors 71, perform the store-to-store detection method of any of the above-described method embodiments.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
The embodiment of the invention discloses an arrival detection method, an arrival detection device, a storage medium and electronic equipment. The method comprises the steps of obtaining a first target device identification in a preset range through wireless scanning, determining a first target distribution resource identification corresponding to the target device identification according to mapping, and sending distribution resource arrival information, wherein the distribution resource arrival information comprises the target distribution resource identification. Thus, the environmental adaptability and accuracy of store detection can be improved.
Another embodiment of the invention is directed to a non-transitory storage medium storing a computer-readable program for causing a computer to perform some or all of the above-described method embodiments.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (22)

1. An arrival detection method suitable for an arrival detection apparatus, the method comprising:
scanning and acquiring a device identifier in a preset range in a wireless mode to serve as a first target device identifier;
detecting a first target device identifier in a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the device identifier and a distribution resource identifier;
in response to detecting the first target device identifier in the mapping relationship, determining a distribution resource identifier corresponding to the first target device identifier as a target distribution resource identifier, and sending distribution resource arrival information to a server, where the distribution resource arrival information includes the target distribution resource identifier;
receiving a meal taking notification message sent by a meal taking device, wherein the meal taking notification message comprises a distribution resource identifier and meal taking time corresponding to a taken order;
updating the mapping relation in response to the fact that the delivery resource identifier in the meal taking notification message is not in the mapping relation;
wherein, the updating the mapping relationship specifically includes:
and updating the mapping relation according to the equipment identification scanned and acquired in a first time interval, wherein the first time interval is a time interval from a first time to the meal taking time, and the first time is determined according to the meal taking time and a preset first threshold value.
2. The method of claim 1, wherein the delivery resource arrival information further comprises an identification of a target order;
after determining the delivery resource identifier corresponding to the first target device identifier as the target delivery resource identifier, the method further includes:
acquiring information of each order to be delivered, wherein the information of the order to be delivered comprises a delivery resource identifier bound with the order to be delivered;
determining the order to be distributed corresponding to the target distribution resource identifier as a target order; and
and generating the delivery resource arrival information according to the identification of the target order.
3. The method of claim 1, further comprising:
recording the time for acquiring the first target equipment identifier;
the delivery resource arrival information further includes time when the first target device identifier is acquired.
4. The method of claim 1, wherein the updating the mapping relationship comprises:
determining the equipment identification obtained by scanning in a first time interval;
determining a second target device identifier according to the device identifier obtained by scanning in the first time interval; and
adding the second target device identifier and the delivery resource identifier in the meal taking notification message to the mapping relation;
determining a second target device identifier according to the device identifier obtained by scanning in the first time interval includes:
detecting the device identification obtained by scanning in the first time interval in the mapping relation; and
and in response to that one device identifier obtained by scanning in the first time interval is not in the mapping relationship, taking the device identifier not in the mapping relationship as a second target device identifier.
5. The method of claim 4, wherein determining the second target device identifier according to the device identifiers scanned and obtained in the first time interval comprises:
in response to that a plurality of device identifiers scanned and acquired in the first time interval are not in the mapping relationship, storing the distribution resource identifier in the meal taking notification message and a plurality of device identifiers not in the mapping relationship as corresponding relationships to be confirmed;
acquiring a plurality of stored corresponding relations to be confirmed of the same distribution resource identifier; and
and selecting the device identifier with the largest occurrence frequency from the plurality of corresponding relations to be confirmed as a second target device identifier.
6. The method of claim 3, wherein after obtaining the target delivery resource identifier corresponding to the first target device identifier, the method further comprises:
and verifying the mapping relation according to the target distribution resource information.
7. The method of claim 6, wherein checking the mapping relationship according to the target delivery resource information comprises:
acquiring a set of distribution resource identifiers corresponding to an order to be distributed, wherein the order to be distributed is an order for which a meal taking notification message is not received;
detecting the target delivery resource identification in the set; and
and determining that the mapping relation is checked correctly in response to detecting the target delivery resource identifier in the set and receiving a meal taking notification message corresponding to the target delivery resource identifier in a second time interval.
8. The method of claim 7, wherein verifying the mapping further comprises:
and in response to that the target delivery resource identifier is not detected in the set and/or in response to that the target delivery resource identifier is detected in the set and a meal fetching notification message corresponding to the target delivery resource identifier is not received in a second time interval, determining that a mapping relation is checked to be incorrect, and deleting the target delivery resource identifier and a corresponding device identifier in the mapping relation.
9. The method according to claim 7, wherein the second time interval is a time interval from the time when the first target device identifier is acquired to a second time, and the second time is determined according to the time when the first target device identifier is acquired and a second threshold.
10. The method according to claim 1, wherein the wireless mode is wireless local area network or bluetooth;
the device identification is a network address of a wireless local area network or bluetooth.
11. An arrival detection apparatus, the apparatus comprising:
the scanning unit is used for scanning and acquiring the equipment identifier in the preset range in a wireless mode to be used as a first target equipment identifier;
the device comprises a detection unit, a resource allocation unit and a resource allocation unit, wherein the detection unit is used for detecting a first target device identifier in a mapping relation, and the mapping relation is used for representing the corresponding relation between the device identifier and a distribution resource identifier;
a first determining unit, configured to determine, in response to detecting the first target device identifier in the mapping relationship, a delivery resource identifier corresponding to the first target device identifier as a target delivery resource identifier;
a sending unit, configured to send delivery resource arrival information to a server, where the delivery resource arrival information includes the target delivery resource identifier; and
the mapping relation updating unit is used for receiving a meal taking notification message sent by a meal taking device, wherein the meal taking notification message comprises a delivery resource identifier and meal taking time corresponding to a taken order; updating the mapping relation in response to the fact that the delivery resource identifier in the meal taking notification message is not in the mapping relation;
wherein the mapping relationship updating unit is specifically configured to:
and updating the mapping relation according to the equipment identification scanned and acquired in a first time interval, wherein the first time interval is a time interval from a first time to the meal taking time, and the first time is determined according to the meal taking time and a preset first threshold value.
12. The apparatus of claim 11, wherein the delivered resource arrival information further comprises an identification of a target order;
the device further comprises:
the order information acquiring unit is used for acquiring information of each order to be delivered, and the information of the order to be delivered comprises a delivery resource identifier bound with the order to be delivered;
the target order determining unit is used for determining the order to be distributed corresponding to the target distribution resource identifier as a target order; and
and the delivery resource arrival information generating unit is used for generating the delivery resource arrival information according to the identification of the target order.
13. The apparatus of claim 11, further comprising:
the recording unit is used for recording the time for acquiring the first target equipment identifier;
the delivery resource arrival information further includes time when the first target device identifier is acquired.
14. The apparatus according to claim 11, wherein the mapping relationship updating unit comprises:
the device identification acquisition unit is used for determining the device identification obtained by scanning in a first time interval;
the second determining unit is used for determining a second target device identifier according to the device identifier obtained by scanning in the first time interval; and
an updating unit, configured to add the second target device identifier and the delivery resource identifier in the meal fetching notification message to the mapping relationship;
wherein the second determination unit includes:
the device identifier detection subunit is configured to detect, in the mapping relationship, a device identifier obtained by scanning within the first time interval; and
and the first determining subunit is configured to, in response to that one device identifier obtained through scanning in the first time interval is not in the mapping relationship, take the device identifier that is not in the mapping relationship as the second target device identifier.
15. The apparatus of claim 14, wherein the second determining unit further comprises:
a storage subunit, configured to, in response to that multiple device identifiers obtained by scanning in the first time interval are not in the mapping relationship, store, as to-be-confirmed correspondence relationships, delivery resource identifiers in the meal fetching notification message and multiple device identifiers that are not in the mapping relationship;
the corresponding relation obtaining subunit is used for obtaining a plurality of stored corresponding relations to be confirmed of the same distribution resource identifier; and
and the second determining subunit is configured to select, as the second target device identifier, the device identifier with the largest number of occurrences in the plurality of to-be-confirmed correspondence relationships.
16. The apparatus of claim 13, further comprising:
and the checking unit is used for checking the mapping relation according to the target distribution resource information.
17. The apparatus of claim 16, wherein the inspection unit comprises:
the system comprises a set acquisition subunit, a service acquisition subunit and a service processing subunit, wherein the set acquisition subunit is used for acquiring a set of distribution resource identifiers corresponding to an order to be distributed, and the order to be distributed is an order which does not receive a meal taking notification message;
a set detection subunit, configured to detect the target delivery resource identifier in the set; and
and the first checking subunit is configured to determine that the mapping relationship check is correct in response to detecting the target delivery resource identifier in the set and receiving a meal fetching notification message corresponding to the target delivery resource identifier within a second time interval.
18. The apparatus of claim 17, wherein the inspection unit further comprises:
and the second checking subunit is configured to, in response to that the target delivery resource identifier is not detected in the set and/or in response to that the target delivery resource identifier is detected in the set and a meal taking notification message corresponding to the target delivery resource identifier is not received within a second time interval, determine that a mapping relationship is checked incorrectly, and delete the target delivery resource identifier and a corresponding device identifier in the mapping relationship.
19. The apparatus according to claim 17, wherein the second time interval is a time interval from the time when the first target device identifier is acquired to a second time, and the second time is determined according to the time when the first target device identifier is acquired and a second threshold.
20. The apparatus of claim 11, wherein the wireless mode is a wireless local area network or bluetooth;
the device identification is a network address of a wireless local area network or bluetooth.
21. A computer-readable storage medium on which computer program instructions are stored, which, when executed by a processor, implement the method of any one of claims 1-10.
22. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-10.
CN202010724588.0A 2020-07-24 2020-07-24 Store arrival detection method and device, storage medium and electronic equipment Active CN111915250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724588.0A CN111915250B (en) 2020-07-24 2020-07-24 Store arrival detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724588.0A CN111915250B (en) 2020-07-24 2020-07-24 Store arrival detection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111915250A CN111915250A (en) 2020-11-10
CN111915250B true CN111915250B (en) 2022-03-29

Family

ID=73280680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724588.0A Active CN111915250B (en) 2020-07-24 2020-07-24 Store arrival detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111915250B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112837013B (en) * 2021-02-02 2023-08-11 拉扎斯网络科技(上海)有限公司 Service processing method, device and equipment
CN112566033B (en) * 2021-02-24 2021-05-11 浙江口碑网络技术有限公司 Feature uploading and acquiring method and device for wireless signal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469151A (en) * 2015-11-11 2016-04-06 上海斐讯数据通信技术有限公司 Network meal ordering and delivering method and system
CN106600177A (en) * 2015-10-19 2017-04-26 上海京东到家元信信息技术有限公司 Recognition method for distribution information and spatial position
CN107491075A (en) * 2017-09-19 2017-12-19 歌尔股份有限公司 Food delivery system and food delivery control method
CN108960716A (en) * 2018-06-25 2018-12-07 重庆速占位科技有限公司 Point food delivery management method, device, equipment and medium
CN110620988A (en) * 2018-06-20 2019-12-27 北京三快在线科技有限公司 Information reporting method, device and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020013734A1 (en) * 2000-03-14 2002-01-31 E-Food.Com Corporation Universal internet smart delivery agent

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600177A (en) * 2015-10-19 2017-04-26 上海京东到家元信信息技术有限公司 Recognition method for distribution information and spatial position
CN105469151A (en) * 2015-11-11 2016-04-06 上海斐讯数据通信技术有限公司 Network meal ordering and delivering method and system
CN107491075A (en) * 2017-09-19 2017-12-19 歌尔股份有限公司 Food delivery system and food delivery control method
CN110620988A (en) * 2018-06-20 2019-12-27 北京三快在线科技有限公司 Information reporting method, device and equipment
CN108960716A (en) * 2018-06-25 2018-12-07 重庆速占位科技有限公司 Point food delivery management method, device, equipment and medium

Also Published As

Publication number Publication date
CN111915250A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US9823920B2 (en) Method for updating firmware and configuration file and a firmware-configuration file management system therefor
CN111915250B (en) Store arrival detection method and device, storage medium and electronic equipment
US9301098B2 (en) Location detection in wireless communication networks
US20170171713A1 (en) Method and apparatus for determining location of target portable device
US10715989B2 (en) Systems and methods for implementing peer-to-peer wireless connections
KR102015236B1 (en) A method, terminal device, and server system for connecting communication devices
CN103945007A (en) Information pushing method and device
WO2016145801A1 (en) Base station activation method and device, system and computer storage medium
US10531229B2 (en) Wireless locator system
CN112040407B (en) Beacon data processing method and device, electronic equipment and readable storage medium
US20160021524A1 (en) Method for searching for a device and terminal device
US20220369278A1 (en) Object monitoring methods and apparatuses, electronic devices and computer readable storage media
US20240095654A1 (en) Information output methods and apparatuses, computer equipment and readable storage media
CN112929224A (en) Network distribution method and device of equipment, server and computer readable storage medium
US9277353B2 (en) Methods and systems for locating peripheral devices
CN110620988A (en) Information reporting method, device and equipment
US11010174B2 (en) Information processing apparatus, information processing system, and information processing method
JP2012028840A (en) Communication controller, communication control system, communication control method and program
CN106028326B (en) WiFi configuration method and device of smart watch
CN107942287B (en) Wireless device positioning method, wireless device and computer readable storage medium
JP2020123844A (en) Radio communication apparatus, radio communication method, and radio communication system
JP2021057657A (en) Distribution system, distribution method and program, mobile terminal, gateway, and distribution server
KR101704210B1 (en) Module for measuring communication quality, control method thereof, recording medium for recording program for executing the control method, application saved in the recording medium for executing the control method being combined with hardware
JP2015025691A (en) Radio wave monitoring device and radio wave monitoring method
CN112825053B (en) Data backup method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant