System and method for determining item count in rack using magnetic sensor
The rack design with magnetic sensors addresses the inefficiencies of manual inventory tracking by providing real-time, accurate item counting and theft detection, optimizing shelf space and reducing losses.
Patent Information
- Application Number
- JP2024022546
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2024-02-19
- Publication Date
- 2024-08-30
AI Technical Summary
Current inventory tracking methods for store shelves are labor-intensive, prone to human error, and lead to inaccurate data, resulting in inefficient use of shelf space and lost sales.
A rack design using magnetic sensors to detect the position of magnets along its length, allowing for real-time and accurate counting of items by monitoring voltage values produced by sensors, which are processed by a processor to determine the number of items stored.
Enables real-time, accurate counting of items, reducing human error and ensuring timely replenishment, thereby optimizing shelf space utilization and reducing theft detection.
Smart Images

Figure 2024118454000001
Abstract
Description
[Technical Field]
[0001] FIELD OF THE DISCLOSURE The present disclosure relates generally to data processing, and more particularly to a system and method for determining item counts in a rack using magnetic sensors. [Background technology]
[0002] Managing inventory on store shelves is a daunting task. Inaccurate data about how much merchandise remains on store shelves often leads to underutilization of shelf space and reduced sales. Current inventory tracking procedures are labor-intensive, time-consuming, and prone to error. Efficient and accurate tracking of merchandise on store shelves is needed. Summary of the Invention
[0003] Currently, the only way to count the quantity / number of items (e.g., cigarette packs) stored on a shelf / rack is to manually inspect the rack and count the number of items stored on the rack. For example, to count the number of cigarette packs stored on a cigarette rack, a store clerk must open the rack and manually count the number of cigarette packs stored on the rack. A typical store has hundreds of such racks across several shelves. Thus, tracking items stored across several racks / shelves becomes labor-intensive and tedious. Furthermore, current methods for tracking inventory on store shelves are prone to human error. In addition, inaccurate and / or infrequent inspection and recording of product quantities can lead to underutilization of shelf space and lost revenue, as well as inaccurate inventory tracking and replenishment. Thus, conventional techniques are flawed, at least in part, because they rely on human operation.
[0004] The system and method implemented by the system disclosed in this disclosure provides a technical solution to the above-mentioned technical problem by implementing a technology for effectively and efficiently managing inventory on store shelves. The disclosed system and method offer several practical applications and technical advantages. For example, the disclosed system provides a practical application for determining count information for products stored in racks placed on store shelves by using a rack design that uses magnetic sensors to detect the position of magnets along the length of the rack to determine the item count in the rack. For example, an embodiment of the present disclosure provides an intelligent rack design used to count packs of cigarettes or other products stored in the rack. The rack includes a shoe movably mounted on the rack so that each cigarette pack is loaded into the rack at the front end of the shoe and the shoe is pushed back toward the rear end of the rack, a magnet coupled to the shoe, and a longitudinal circuit board positioned along the length of the rack. The circuit board includes an array of sensors along the length of the rack, each sensor generating a voltage value based on the position of the magnet relative to the sensor. In one embodiment, the spacing between each pair of sensors corresponds to the thickness of the cigarette packs stored in the rack, such that for any number of packs stored in the rack, the magnet is directly above one of the sensors. In this case, each sensor of the sensors generates a maximum voltage value when the magnet is directly above the sensor. The circuit board further includes a processor configured to monitor the voltage values generated by at least a subset of the sensors of the array of sensors, detect when a particular sensor of the array of sensors has generated a maximum voltage value, and determine the number of packs of cigarettes actually stored in the rack based on the particular number of packs corresponding to the particular sensor detected as generating the maximum voltage value. This embodiment provides the technical advantage of real-time and accurate counting of standard-sized packs of cigarettes or other goods / items stored in the rack. This helps avoid human error that would otherwise be associated with a human counting items stored in the rack.Furthermore, by quickly and accurately determining product count information for items stored on racks, the disclosed systems and methods enable effective and accurate monitoring of shelf inventory, allowing shelves to be quickly replenished when needed, thereby avoiding underutilization of shelf space.
[0005] The disclosed system and method provides an additional practical application for intelligently counting cigarette packs or other items of non-standard size stored in a rack using a single rack design by interpolating the distance between pairs of sensors based on the voltage responses of the sensors. In this rack design, the magnets are longitudinal magnets positioned with the shoes so that the longitudinal axes of the magnets are parallel to the longitudinal circuit board. Based on monitoring voltage values generated by at least a subset of the sensors, a processor detects that a first sensor generates a first absolute voltage value and a second sensor generates a second absolute voltage value. The processor determines a shoe / magnet position along the length of the rack based at least in part on a first distance of the first sensor from the front end of the rack and a second distance of the second sensor from the front end of the rack, the shoe position including the distance of the shoe from the front end of the rack. The processor determines the number of cigarette packs of a particular thickness stored in the rack based on the shoe position along the length of the rack. By counting items of different thicknesses that can be stored in a rack using a single design of rack, the disclosed system and method saves costs that would otherwise be associated with designing and manufacturing customized rack designs for items of different sizes.
[0006] The disclosed system and method provide an additional practical application for quickly and accurately detecting merchandise theft from store shelves by using a master controller to detect items removed from a rack based on an intelligent rack design and monitor data interactions involving the removed items processed by an interaction device. As described according to an embodiment of the present disclosure, the master controller is communicatively coupled to an interaction device configured to process data interactions involving items stored in the rack and to a rack storing merchandise (such as packs of cigarettes or other items). The master controller includes a processor configured to receive from the rack a first message indicating that a first number of items have been removed from the rack and a universal product code associated with the type of item stored in the rack. The processor monitors communication signals received from the interaction device, the communication signals indicating data interactions performed by the interaction device. Based on monitoring the communication signals received from the interaction device, the processor determines whether the first number of packs removed from the rack have been processed in one or more data interactions by the interaction device within a preset time period. In response to determining that the first number of packs removed from the rack have not been processed in one or more data interactions by the interaction device within a preset time period, the processor transmits a warning message including the rack number of the rack, the number of items removed from the rack, and a UPC associated with the type of item stored in the rack. In addition, the warning message may include the identification of the user operating the interaction device when the items were removed from the rack. Timely detection and warning of potential theft, along with the identification of the user operating the interaction device, helps to quickly identify the party responsible for the theft and recover the stolen merchandise. Furthermore, the system may deter potential thieves from attempting to steal merchandise, which also aids in shrinkage reduction.
[0007] For a more complete understanding of the present disclosure, reference is now made to the following brief description taken in conjunction with the accompanying drawings and detailed description, wherein like reference numerals represent like parts. [Brief explanation of the drawings]
[0008] [Figure 1] 1 illustrates an exemplary rack for storing multiple packs of cigarettes, according to certain embodiments of the present disclosure. [Figure 2A] 1A-1C show two different views of a rack for storing multiple packs of cigarettes, according to certain embodiments of the present disclosure. [Figure 2B] 1A-1C show two different views of a rack for storing multiple packs of cigarettes, according to certain embodiments of the present disclosure. [Figure 3] 2 shows a schematic diagram of the circuit board shown in FIG. 1 according to certain embodiments of the present disclosure. [Figure 4] 1 is a flowchart of an exemplary method for determining the number of cigarette packs stored in a rack, according to certain embodiments of the present disclosure. [Figure 5] 1 illustrates an exemplary placement of magnets relative to an array of sensors, according to certain embodiments of the present disclosure. [Figure 6] 6 shows an example plot of voltage response for each magnet shown in FIG. 5, according to certain embodiments of the present disclosure. [Figure 7] 1 is a flowchart of an exemplary method for determining the number of non-standard size cigarette packs stored in a rack, according to certain embodiments of the present disclosure. [Figure 8] 1 is a flowchart of an exemplary method for determining the number of standard-sized cigarette packs stored in a rack, according to certain embodiments of the present disclosure. [Figure 9] 1 shows a schematic diagram of a system for detecting theft of cigarette packs, according to certain embodiments of the present disclosure; [Figure 10] 1 is a flowchart of an exemplary method for detecting theft of cigarette packs stored in a rack, according to certain embodiments of the present disclosure. [Figure 11] 2 illustrates an exemplary network topology for connecting the multiple racks shown in FIG. 1 in accordance with certain embodiments of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0009] (System Overview) 1 illustrates an exemplary rack 100 for storing multiple packs of cigarettes, according to certain embodiments of the present disclosure. Although the present disclosure is described in detail with respect to packs of cigarettes, the present disclosure also applies to other products that may be stored in the rack.
[0010] As shown in FIG. 1 , the rack 100 includes a longitudinal track 112 with a shoe 106 movably mounted on the longitudinal track 112 such that the shoe 106 moves back and forth on the track 112 between the front end 102 and the rear end 104 of the rack 100. The rack 100 is designed to store multiple packs 202 of cigarettes along the length of the rack 100 (as shown in FIGS. 2A and 2B ) between the front end 102 and the rear end 104 of the rack 100. FIGS. 2A and 2B show two views 200a and 200b, respectively, of the rack 100 storing multiple packs 202 of cigarettes, as shown in FIGS. 2A and 2B . The packs 202 of cigarettes are positioned adjacent to the front end 108 of the shoe 106 (as shown in FIG. 1 ) such that the shoe 106 is pushed back toward the rear end 104 of the rack 100 when each pack 202 is loaded into the rack 100. Generally, a mechanism (not shown) is coupled to the shoe 106 that drives the shoe 106 toward the front end 102 of the rack 100, causing the foremost pack 202 a stored in the rack 100 to press against the front wall 114 of the rack 100 near the front end 102 of the rack 100. In some embodiments, the mechanism may include a coil spring coupled to the shoe 106 that drives the shoe 106 toward the front end 102 of the rack 100. As shown in FIG. 1 , when no packs 202 are stored in the rack 100, the shoe 106 is positioned at the front end 102 of the rack 100 adjacent the front wall 114. With reference to FIGS. 2A and 2B , when a pack 202 of cigarettes is loaded into the rack 100, the shoe 106 is pushed back on the track 112 along the length of the rack 102 toward the rear end 104 of the rack 100.
[0011] A typical store will generally have multiple racks 100 arranged next to each other in one or more shelves, with different subsets of the racks 100 storing different types of cigarette packs 202.
[0012] Embodiments of the present disclosure discuss techniques for intelligently counting cigarette packs 202 stored in a rack 100.
[0013] Referring back to FIG. 1 , the rack 100 further includes a longitudinal circuit board 120 disposed along the length of the rack 100. As shown in FIG. 1 , the circuit board 120 includes an array of sensors 122 disposed along the length of the circuit board 120, with the spacing between each pair of the sensors 122 corresponding to a preselected spacing. In one embodiment, the spacing between each pair of the sensors 122 is equal to the thickness of the packs 202 of cigarettes stored in the rack 100. For example, the thickness of most packs 202 of cigarettes is 23.5 mm. Thus, each pair of the sensors 122 may be spaced 23.5 mm apart.
[0014] As shown in FIG. 1 , the rack 100 may further include a magnet carrier 124 positioned adjacent to or attached to the rear end 110 of the shoe 106 so that the magnet carrier 124 moves back and forth along the length of the rack 100 in line with the movement of the shoe 106. The magnet carrier 124 is designed to hold the magnet 126 at a preselected distance above the circuit board 120. The magnet carrier 124 is sized so that the magnet 126 is positioned directly above one of the sensors 122 at any given time. Each sensor 122 generates a voltage signal corresponding to the strength of the magnetic field associated with the magnet 126, as detected by the sensor 122. The magnetic field associated with the magnet 126, as detected by the sensor 122, changes as the magnet moves closer to or further away from the sensor 122. Thus, in certain embodiments, the voltage signal generated by the sensor 122 corresponds to the position of the magnet 126 relative to the sensor 122. In one example, each of the sensors 122 is a Hall Effect sensor. Although certain embodiments of the present disclosure describe aspects of the present invention with respect to Hall effect sensors, those skilled in the art will appreciate that other types of sensors capable of generating a voltage signal corresponding to the detected strength of a magnetic field may be used.
[0015] The magnet 126 may correspond to one of several combinations of shape and size. In one embodiment, the magnet 126 is a cylindrical magnet positioned with the magnet carrier 124 so that the longitudinal axis of the magnet is perpendicular to the longitudinal axis of the circuit board 120. In this case, the sensor 122 generates a maximum voltage value when the magnet 126 is positioned directly above or otherwise closest to the sensor 122. In this case, the sensor 122 may not generate a voltage signal or may generate a minimum voltage value when the magnet 126 is not positioned directly above the sensor 122. In an alternative embodiment, the magnet 126 is a cylindrical magnet positioned with the magnet carrier 124 so that the longitudinal axis of the magnet 126 is parallel to the circuit board 120. In this case, when the center of the magnet 126 is positioned directly above the sensor 122 and the magnetic poles of the magnet 126 are positioned on either side of the sensor 122, the sensor 122 generates no voltage signal (e.g., 0 millivolts (mV)). In this case, the sensor 122 may generate a positive voltage value when the magnet 126 (e.g., the center of the magnet) is positioned on one side of the sensor 122 on the rack 100 (e.g., toward the front end 102 or the back end 104) and may generate a negative voltage value when the magnet 126 (e.g., the center of the magnet) is positioned on the other side of the sensor 122 on the rack (e.g., toward the front end 102 or the back end 104). Additionally, the sensor 122 may generate a larger absolute value as the magnet 126 moves away from the sensor 122.
[0016] As mentioned above, the spacing between each pair of sensors 122 is equal to the thickness of the packs 202 of cigarettes stored in the rack 100. Additionally, the magnet carrier 124 is designed so that the magnet 126 is positioned directly above one of the sensors 122 at any time (e.g., for any number of packs 202 stored in the rack 100). For example, in an embodiment in which the magnet 126 is arranged with the magnet carrier 124 so that the longitudinal axis of the magnet is perpendicular to the circuit board 120, the magnet carrier 124 is designed so that the magnet 126 is directly above one of the sensors 122 at any time. This means that at any given time, one of the sensors 122 generates the maximum voltage value. In an alternative embodiment, when the magnet 126 is arranged with the magnet carrier 124 so that the longitudinal axis of the magnet 126 is parallel to the circuit board 120, the magnet carrier 124 is designed so that the center of the magnet 126 is positioned directly above one of the sensors 122 at any time (e.g., for any number of packs 202 stored in the rack 100). This means that at any given time, one of the sensors will produce either a "0" voltage value or a minimum voltage value.
[0017] In an alternative embodiment, the magnet 126 is coupled (e.g., attached or built-in) to the shoe 106 so that the magnet moves back and forth along the length of the rack 100 with the movement of the shoe 106. It may be noted that the discussion in the embodiments of the present disclosure applies regardless of whether the magnet 126 is disposed within the magnet carrier 124 or directly coupled to the shoe 106. For example, when the magnet 126 is coupled to the shoe 106, the magnet 126 can be positioned with the shoe 106 so that the magnet 126 is positioned directly above one of the sensors 122 at all times. In this embodiment, when the magnet 126 is a cylindrical magnet, the magnet 126 can be positioned with the shoe 106 so that the longitudinal axis of the magnet is perpendicular to the longitudinal axis of the circuit board 120. In an alternative embodiment, the magnet 126 can be positioned with the shoe 106 so that the longitudinal axis of the magnet 126 is parallel to the circuit board 120.
[0018] In certain embodiments, each sensor 122 is oriented on circuit board 120 so that the plane of sensor 122 is perpendicular to the direction of the magnetic field at the poles of magnet 126. For example, each sensor 122 is oriented on circuit board 120 so that the plane of sensor 122 is coplanar with the plane of magnet 126 through which magnetic flux flows. For example, when magnet 126 is a cylindrical magnet, this means that the plane of each sensor 122 is coplanar with the circular planes at either end of the cylindrical magnet through which magnetic flux flows.
[0019] In one embodiment, sensor 122 may have multiple measurement planes, any one of which may be used to measure the magnetic field generated by magnet 126. In such a case, sensor 122 may be oriented with respect to magnet 126 such that one of the measurement planes of sensor 126 is perpendicular to the direction of the magnetic field at the poles of magnet 126.
[0020] In an alternative embodiment, the sensor 122 outputs a digital magnetic flux density, for example in millitesla (mT). In this case, the magnetic flux density measurement produced by the sensor 122 corresponds to the strength of the magnetic field associated with the magnet 126 as detected by the sensor 122. While this disclosure discusses an embodiment using a sensor 122 that outputs a voltage measurement, it may be noted that any of the embodiments apply when a sensor 122 that outputs a magnetic flux density measurement is used.
[0021] FIG. 3 illustrates a schematic diagram 300 of the circuit board 120 of FIG. 1 in accordance with certain embodiments of the present disclosure. As shown in FIG. 3, the circuit board 120 includes an array of sensors 122 (denoted as 122a-122n), an array of signal pins 302, a processor 304, a memory 306, and a network interface 308. Each sensor 122 is electrically coupled to one of the signal pins 302 and outputs a voltage signal 310 (denoted as 310a-310n) generated by the sensor 122 to the signal pin 302. The processor 304 is communicatively coupled to the array of signal pins 302, the memory 306, and the network interface 308. In certain embodiments, the processor 304 is configured to execute instructions 320 to intelligently count the number of cigarette packs 202 stored in the rack 100 based on voltage values 322 corresponding to the voltage signals 310 generated by at least a subset of the sensors 122. Each sensor 122 is assigned a preselected sensor number 324 that corresponds to the sensor's 122's location on the circuit board 120. For example, the sensor number 324 assigned to each sensor 122 is equal to the number of packs 202 stored in the rack 100 when the magnet 126 is directly over the sensor 122. For example, the first sensor 122a on the circuit board 120, being the first sensor from the front end 102 of the rack, is assigned the number "1," representing one pack 202 of cigarettes stored in the rack. The last sensor 122n on the circuit board 120 adjacent the rear end 104 of the rack 100 is assigned the number "n," representing "n" number of packs 202 stored in the rack. Each signal pin 302 is assigned the same number as the sensor 122 electrically coupled to it.
[0022] The memory 306 is configured to store voltage values 322 corresponding to the voltage signals generated by the sensor 122 and received at the signal pin 302. Additionally or alternatively, the memory 306 may be configured to store instructions 320 (e.g., software programs / code) that are executed by the processor 304 to implement the operations described in the embodiments of the present disclosure, including operations for counting the packs 202 of cigarettes.
[0023] The processor 304 includes one or more processors operatively coupled to the memory 306. The processor 304 is any electronic circuit, including, but not limited to, a state machine, one or more central processing unit (CPU) chips, a logic unit, a core (e.g., a multi-core processor), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a digital signal processor (DSP). The processor 304 may be a programmable logic device, a microcontroller, a microprocessor, or any suitable combination thereof. The processor 904 is communicatively coupled to the memory 306 and is in signal communication with the memory 306. The one or more processors 304 are configured to process data and may be implemented in hardware or software. For example, the processor 304 may be an 8-bit, 16-bit, 32-bit, 64-bit, or any other suitable architecture. The processor 304 may include an arithmetic logic unit for performing arithmetic and logical operations, processor registers that provide operands to the ALU and store the results of ALU operations, and a control unit that fetches instructions from memory and executes instructions by directing the cooperative operation of the ALU, registers, and other components.
[0024] The one or more processors 304 are configured to implement various instructions 320. For example, the one or more processors 304 are configured to execute the instructions 320 to implement particular operations described in this disclosure. In this manner, the processor 304 may be a special-purpose computer designed to implement the functionality disclosed herein. In one or more embodiments, the functionality of the processor 304 is implemented using a logic unit, an FPGA, an ASIC, a DSP, or any other suitable hardware. The processor 304 is configured to operate as described with reference to FIGS. 1-10. For example, the processor 304 may be configured to perform at least a portion of the methods 400 and 700 as described in FIGS. 4 and 7, respectively.
[0025] The memory 306 may include one or more disks, tape drives, or solid state drives, and may be used as overflow data storage to store programs when such programs are selected for execution and to store instructions and data read during program execution. The memory 306 may be volatile or non-volatile and may include read-only memory (ROM), random access memory (RAM), ternary content addressable memory (TCAM), dynamic random access memory (DRAM), and static random access memory (SRAM).
[0026] The memory 306 is operable to store, among other things, voltage values 322 generated by the sensors 122, sensor numbers 324, and instructions 320 for implementing the functionality described herein. As described in further detail below, the memory 306 may further store a distance (dn) 326 of each sensor (n) 122 from the front end 102 of the rack 100, a voltage response 328 of each sensor 122 based on voltage values generated by the sensor 122 for different positions of the magnet 126 relative to the sensor 122, and a slope 330 of a response curve associated with the voltage response 328 of each sensor 122. The instructions stored in the memory 306 may include any suitable set of instructions, logic, rules, or code operable to implement the functionality disclosed herein.
[0027] The network interface 308 is configured to enable wired and / or wireless communication. The network interface 308 is configured to communicate data between the circuit board 120 and other devices, systems, or domains (e.g., a master controller, a cloud infrastructure, etc.). For example, the network interface 308 may include a Wi-Fi interface, a LAN interface, a WAN interface, a modem, a switch, or a router. The processor 304 is configured to send and receive data using the network interface 308. The network interface 308 may be configured to use any suitable type of communication protocol, as will be appreciated by those skilled in the art.
[0028] The processor 304 is configured to monitor a voltage value corresponding to the voltage signal received at the signal pin 302 and determine the number of cigarette packs 202 stored in the rack 100 based on the voltage value corresponding to the voltage signal generated by the sensor 122.
[0029] (Counting a standard size cigarette pack 202 when the longitudinal axis of the magnet 126 is perpendicular to the circuit board 120) As mentioned above, depending on the number of packs 202 stored in the rack 100, only one of the sensors 122 will generate a maximum voltage value. The maximum voltage value generated by the sensors 122 may correspond to a voltage value or range of voltage values generated by the sensors 122 when the magnets 126 are directly above the sensors 122. As mentioned above, the spacing between each pair of sensors 122 is equal to the thickness of the packs 202 of cigarettes stored in the rack 100. In addition, the magnet carrier 124 is designed so that at any time (e.g., for any number of packs 202 stored in the rack 100), the magnets 126 are positioned directly above one of the sensors 122. This setup causes the magnets 126 to be positioned directly above one of the sensors 122, causing each sensor 122 to generate a maximum voltage value, regardless of how many packs 202 are stored in the rack 100. For example, when the first pack 202 is loaded into the rack 100, the magnet 126 is positioned directly above the first sensor 122a, causing the sensor 122a to generate a maximum voltage value. As each additional pack 202 of cigarettes is loaded into the rack 100, the shoe 106 moves rearward toward the rear end 104 of the rack 100, moving the magnet 126 to a position directly above the next sensor 122 on the circuit board 120 until a pack 202 is fully loaded into the rack 202, positioning the magnet 126 directly above the last sensor 122n on the circuit board 120 adjacent the rear end 104 of the rack 100. Regardless of the number of packs 202 stored in the rack, it is possible to position the magnet 126 directly above one of the sensors 122 because the spacing between each pair of sensors 122 is equal to the thickness of the packs 202 stored in the rack. In one embodiment, when the rack is empty and the shoe is positioned adjacent to the front wall 114, the magnet 126 is not positioned over any of the sensors 122, which means that none of the sensors generate a valid voltage value indicating that the rack is empty.
[0030] 4 is a flowchart of an exemplary method 400 for determining the number of cigarette packs stored in rack 100, according to certain embodiments of the present disclosure. Method 400 may be performed by processor 304, as shown in FIG. 3 and described above.
[0031] At operation 402, the processor 304 monitors voltage values 322 corresponding to voltage signals 310 generated by at least a subset of the sensors 122 in the circuit board 120. For example, the processor 304 monitors the voltage values 322 generated by the subset of sensors 122 by monitoring the voltage signals 310 received at signal pins 302 electrically coupled to the sensors 122 and measuring the voltage values 322 corresponding to the voltage signals 310 using a voltage measurement device (not shown). For example, the circuit board 120 may include a voltage measurement device (e.g., a voltmeter) that measures the voltage signals 310 received at the signal pins 302.
[0032] It may be noted that only a subset of sensors 122 in the array of sensors 122 may generate a measurable voltage signal 310. For example, when a magnet 126 is positioned over a particular sensor 122, depending on the strength of the magnetic field generated by the magnet 126, the particular sensor 122 and one or more neighboring sensors 122 of the particular sensor 122 may generate a measurable voltage signal 310. The magnetic field may be too low or non-existent at the remaining sensors 122, and as a result, the remaining sensors 122 may not generate a measurable voltage signal 310.
[0033] At operation 404, the processor 304 checks whether a maximum voltage value is detected from one of the sensors 122. For example, the processor 304 may monitor the signal pins 302 to check whether any one of the signal pins 302 is receiving the maximum voltage value. After detecting the maximum voltage value at the signal pin 302, the method 400 proceeds to operation 406.
[0034] At operation 406, based on monitoring the voltage signal 310 received at the signal pin 302, the processor 304 detects that a particular sensor 122 has generated a maximum voltage value. As described above, the sensor 122 generates a maximum voltage value when the magnet 126 is positioned directly above or closest to the sensor 122.
[0035] At operation 408, the processor 304 determines the number of cigarette packs 202 actually stored in the rack 100 based on the particular sensor 122 detected to produce the maximum voltage value. As described above, each sensor 122 is assigned a particular number (e.g., sensor number 324) of the packs 202 placed in the rack 100 based on the position of the sensor 122 on the circuit board 120, and the particular number corresponding to each sensor is equal to the number of packs stored in the rack 100 when the magnet is above or closest to the sensor. In addition, each signal pin 302 is assigned the same number as the sensor 122 electrically coupled to it. Based on the signal pin 302 that received the voltage signal having the maximum voltage value, the processor 304 determines the particular number corresponding to the particular sensor 122 that produced the maximum voltage value. The processor assigns the particular number corresponding to the particular sensor 122 as the number of packs 202 actually stored in the rack 100.
[0036] It may be noted that the method discussed with reference to Figure 4 may be used to count packs 202 of cigarettes of any thickness, so long as the spacing between each pair of sensors 122 is equal to the thickness of the packs of cigarettes stored in the rack. Most standard-sized cigarette packs have a thickness of 23.5 mm. Thus, in one embodiment, the spacing between each pair of sensors 122 may be set to 23.5 mm, which allows an apparatus such as that shown in Figures 1, 2A, and 2B to be used to count most standard-sized packs 202.
[0037] It may be noted that the processor 304 may be configured to count packs periodically at pre-scheduled times in response to receiving a command (e.g., from a master controller) and / or in response to detecting a particular event (e.g., a change in a sensor producing a maximum voltage value).
[0038] Counting non-standard size cigarette packs 202 with fixed spacing between pairs of sensors 122 Embodiments of the present disclosure describe techniques for intelligently counting packs 202 of cigarettes of any thickness by interpolating the distance between pairs of sensors 122 based on the voltage responses of the sensors 122. The techniques discussed in this disclosure allow for counting packs 202 of any thickness using a single device (rack 100) shown in Figures 1, 2A, 2B, and 3. By counting items of different thicknesses that may be stored in a rack using a single design of the rack, the disclosed systems and methods save processing resources and network bandwidth that would otherwise be associated with implementing customized rack designs for different size packs.
[0039] For ease of illustration and discussion, the exemplary embodiments of the present disclosure describe pack count determination assuming that the spacing between each pair of sensors 122 is 20 mm and that each sensor has a voltage response range of -100 mV to +100 mV. However, those skilled in the art will appreciate that other sensor spacings and sensors having other response ranges may be used. For example, the spacing between each pair of sensors may be 23.5 mm, which is the thickness of a standard pack of cigarettes (even if non-standard-sized cigarette packs 202 are stored in the rack 100). It may be noted further that one or more sensors 122 in the array of sensors 122 disposed on the circuit board 120 may have different voltage response curves and different response ranges. Furthermore, while the embodiments of the present disclosure describe techniques for counting the number of cigarette packs 202 stored in the rack 100, it may be noted that the same techniques may be used to count other items that may be stored in the rack 100.
[0040] When the rack 100 is loaded with cigarette packs 202 of a non-standard thickness, the magnet 126 may assume any position along the length of the circuit board 120. This means that for a particular number of packs 202 stored in the rack 100, the magnet 126 may be positioned above one of the sensors 122 or between a pair of sensors 122. As will be explained in more detail below, as part of determining the count of packs 202 stored in the rack 100, the processor 304 uses the voltage responses of one or more sensors 122 to determine the actual position of the magnet 126 between successive pairs of sensors 122. The voltage response of each sensor 122 represents the voltage value generated by the sensor 122 for different positions of the magnet 126 relative to the sensor 122. In a particular embodiment, the magnet 126 is selected as a cylindrical magnet arranged with the magnet carrier 124 so that the longitudinal axis of the magnet 126 is parallel to the circuit board 120.
[0041] In certain embodiments, each sensor 122 is oriented on circuit board 120 so that the plane of sensor 122 is perpendicular to the direction of the magnetic field at the poles of magnet 126. For example, each sensor 122 is oriented on circuit board 120 so that the plane of sensor 122 is coplanar with the plane of magnet 126 through which magnetic flux flows. For example, when magnet 126 is a cylindrical magnet, this means that the plane of each sensor 122 is coplanar with the circular planes at either end of the cylindrical magnet through which magnetic flux flows.
[0042] In one embodiment, sensor 122 may have multiple measurement planes, any one of which may be used to measure the magnetic field generated by magnet 126. In such a case, sensor 122 may be oriented with respect to magnet 126 such that one of the measurement planes of sensor 126 is perpendicular to the direction of the magnetic field at the poles of magnet 126.
[0043] In an alternative embodiment, the sensor 122 outputs a digital magnetic flux density, for example, in millitesla (mT). In this case, the magnetic flux density measurements generated by the sensor 122 correspond to the strength of the magnetic field associated with the magnet 126 detected by the sensor 122. While this disclosure discusses embodiments using sensors 122 that output voltage measurements, it may be noted that any of the embodiments apply when sensors 122 that output magnetic flux density measurements are used. For example, as part of determining the count of pucks 202 stored in the rack 100, the processor 304 may use the magnetic flux density response of one or more sensors 122 (e.g., instead of a voltage response) to determine the actual position of the magnet 126 between pairs of consecutive sensors 122. In this case, all voltage measurements may be replaced with magnetic flux density measurements.
[0044] FIG. 5 illustrates an exemplary configuration 500 of magnets 126 relative to an array of sensors 122, according to certain embodiments of the present disclosure.
[0045] 5, the magnet 126 is an elongated cylindrical magnet, and the longitudinal axis 502 of the magnet 126 is parallel to the circuit board 120. The exemplary configuration 500 includes sensors 122 (shown as S1, S2, S3, S4, and S5) disposed on the circuit board 120. It may be noted that in the following description, the reference numerals "122" and "S1-S5" may be used interchangeably to refer to the sensors. In this configuration, the sensor 122 does not generate a voltage signal (e.g., a 0 millivolt (mv) value) when the center 504 of the magnet 126 is positioned above the sensor 122 and the magnetic poles 506 and 508 of the magnet 126 are positioned on either side of the sensor 122. The sensor 122 may generate a positive voltage value when the magnet 126 (e.g., the center 504 of the magnet 126) is positioned on one side of the sensor 122 on the circuit board 120 (e.g., the left or right side along the length of the circuit board 120) and may generate a negative voltage value when the magnet 126 (e.g., the center 504 of the magnet) is positioned on the other side of the sensor 122 on the circuit board 120 (e.g., the left or right side along the length of the circuit board 120). For example, the sensor 122 may generate a positive voltage value when the center 504 of the magnet 126 is positioned to the left of the magnet 126 along the length of the circuit board 120 and a negative voltage value when the center 504 of the magnet 126 is positioned to the right of the magnet 126 along the length of the circuit board 120. Additionally, the sensor 122 may generate larger absolute voltage values as the magnet 126 moves away from the sensor 122 on either side of the sensor 122.
[0046] FIG. 6 shows an example plot 600 of voltage responses for each magnet shown in FIG. 5 , according to certain embodiments of the present disclosure. The X-axis indicates the position of the magnet 126 along the length of the rack 100, including the distance from the front end 102 of the rack. In alternative embodiments, the distance on the X-axis may be measured from the front end of the circuit board 120. It may be noted that the front end of the circuit board 120 may or may not coincide with the front end 102 of the rack 100. In either case, the following method works when the distance is measured from the front end 102 of the rack or from the front end of the circuit board 120. The following discussion assumes that the distance is measured from the front end 102 of the rack 100.
[0047] As shown in FIG. 6, each pair of sensors 122 is spaced 20 mm apart, with S1 located 30 mm, S2 located 50 mm, S3 located 70 mm, S4 located 90 mm, and S5 located 110 mm from the front end 102 of the rack. The Y-axis shows the voltage response (e.g., in millivolts (mv)) for each of sensors S1-S5 as the magnet moves from the front end 102 of the rack 100 to the rear end 104 of the rack 100. As shown in FIG. 6, each sensor 122 produces 0 mv when the magnet 126 is located above the sensor 122, a positive voltage value when the magnet 126 is positioned within a certain distance to the left of the sensor 122, and a negative voltage value when the magnet 126 is positioned within a certain distance to the right of the sensor 122. As can be seen from the exemplary plot 600, when the magnet 126 is positioned beyond a certain distance on either side of each sensor 122, the sensor 122 does not detect the magnetic field associated with the magnet 126 and therefore generates a 0 mv voltage. As shown in the exemplary plot 600, the voltage range of each sensor 122 is -100 mv to +100 mv. The following discussion assumes that the length of the magnet is the same as the spacing between each pair of sensors, which in this example is 20 mm. In this case, when the center of the magnet 126 is positioned above a particular sensor 122, the adjacent sensor generates half or approximately half of the maximum absolute voltage value. For example, when the center 504 of the magnet 126 is positioned above S2, S2 generates 0 mv, and adjacent sensors S1 and S3 generate -50 mv (or approximately -50 mv) and +50 mv (or approximately +50 mv), respectively. Furthermore, when the center of the magnet 126 is positioned at the midpoint of two consecutive sensors 122, the two sensors generate a maximum or near maximum absolute voltage value. For example, when the center 504 of the magnet 126 is positioned approximately midway between S1 and S2, S1 and S2 generate -100 mv (or near -100 mv) and +100 mv (or near +100 mv), respectively.
[0048] It may be noted that other lengths may be selected for the magnets 126. In one embodiment, the maximum spacing between each pair of sensors 122 is equal to the length of the magnets 126.
[0049] To determine the number of pucks 202 stored in the rack 100, the processor 304 is configured to first determine the position of the magnet 126 along the length of the rack 100 by calculating the distance (d) of the magnet from the front end 102 of the rack. The processor 304 then calculates the number of pucks 202 stored in the rack based on the determined distance of the magnet from the front end of the rack 100.
[0050] The memory 306 may store a voltage response 328 for each sensor 122 based on the voltage values 322 generated by the sensor 122 for different positions of the magnet 126 relative to the sensor 122. For example, the memory 306 may store the voltage responses 328 for sensors S1-S5 as shown in FIG. 6 . Additionally or alternatively, the memory 306 may store a slope 330 of a response curve associated with the voltage response 328 of each sensor 122. For example, the memory 306 stores the slope 330 of each of the response curves associated with sensors S1-S5. The slope 330 associated with a sensor 122's response curve indicates the amount of voltage change recorded by the sensor for each millimeter of distance that the center of the magnet 126 moves away from the sensor 122. As can be seen from the exemplary plot 600, the slope associated with the response curve for each sensor S1-S5 is linear. This linear characteristic of the response curve associated with the sensor 122 will be used below to determine the position of the magnet between two sensors 122. Additionally, the memory 306 may store the distance (dn) 326 of each sensor n from the front edge of the rack 100. For example, the memory stores d1=30 mm, d2=50 mm, d3=70 mm, d4=90 mm, and d5=110 mm.
[0051] 7 is a flowchart of an exemplary method 700 for determining the number of non-standard size cigarette packs stored in rack 100, according to certain embodiments of the present disclosure. Method 700 may be performed by processor 304, as shown in FIG. 3 and described above.
[0052] At operation 702, the processor 304 monitors voltage values 322 corresponding to voltage signals 310 generated by at least a subset of the sensors 122. For example, the processor 304 monitors the voltage values 322 generated by the subset of sensors 122 by monitoring the voltage signals 310 received at signal pins 302 electrically coupled to the sensors 122 and measuring the voltage values 322 corresponding to the voltage signals 310 using a voltage measurement device (not shown). For example, the circuit board 120 may include a voltage measurement device (e.g., a voltmeter) that measures the voltage signals 310 received at the signal pins.
[0053] It may be noted that only a subset of sensors 122 in the array of sensors 122 may generate a measurable voltage signal 310. For example, when a magnet 126 is positioned over a particular sensor 122, depending on the strength of the magnetic field generated by the magnet 126, the particular sensor 122 and one or more neighboring sensors of the particular sensor 122 may generate a measurable voltage signal 310. The magnetic field may be too low or non-existent for the remaining sensors 122, and as a result, the remaining sensors 122 may not generate a measurable voltage signal 310.
[0054] At operation 704, the processor 304 detects that a first sensor 122 generated a first maximum absolute voltage value and a second sensor 122 generated a second maximum absolute voltage value, where the first maximum absolute voltage value and the second maximum absolute voltage value are the two largest voltage values from among the voltage values 322 generated by the sensors 122 in the array. For example, from among the subset of sensors 122 that generate voltage values, two sensors 122 of the subset may generate the two largest voltage values of all voltage values generated by the subset of sensors 122. In other words, the processor 304 is configured to select the two sensors 122 that were detected to have generated the two largest voltage values from the voltage values generated by the subset of sensors 122.
[0055] At operation 706, the processor 304 checks whether the first sensor 122 and the second sensor 122 are consecutive sensors 122 on the circuit board 120. The processor 304 may make this determination based on the signal pins 302 that received the first and second maximum absolute voltage values. For example, each signal pin 302 may correspond to a pin number. As described above, each signal pin 302 is electrically coupled to a single sensor 122 and receives a voltage signal generated by that sensor 122. The pin number of the signal pin 302 may correspond to the location of the sensor 122 electrically coupled to the signal pin 302. For example, signal pin 1 may correspond to sensor S1, signal pin 2 may correspond to sensor S2, and signal pin n may correspond to sensor Sn. Thus, the processor 304 may determine the locations of the first and second sensors 122 on the circuit board 120 by examining the pin numbers of the signal pins 302 that received the respective voltage signals 310 from the first and second sensors 122. When the pin numbers of the two signal pins corresponding to the first and second sensors 122 are consecutive, the processor 304 determines that the first and second sensors 122 are consecutively arranged on the circuit board 120. On the other hand, when the pin numbers of the two signal pins corresponding to the first and second sensors 122 are not consecutive, the processor 304 determines that the third sensor 122 is arranged between the first and second sensors 122 on the circuit board 120. It may be noted that based on the design of the rack 100 described in this disclosure, only the above-mentioned two alternatives are possible regarding the arrangement of the first and second sensors 122 that generate the two maximum voltage values. In other words, the first sensor 122 and the second sensor 122 are either consecutively arranged on the circuit board 120, or a single third sensor 122 is arranged between the first sensor 122 and the second sensor 122.
[0056] When the processor 304 determines that the first sensor 122 and the second sensor 122 are not consecutive sensors and that the third sensor 122 is located between the first sensor 122 and the second sensor 122, the method 700 proceeds to operation 708. At operation 708, the processor 304 determines the position of the third sensor 122 located between the first sensor 122 and the second sensor 122. As described above, the memory 306 stores the distance 326 of each sensor 122 from the front end of the rack 100. The processor 304 may determine the position of the third sensor 122 by retrieving the distance of the third sensor 122 from the front end of the rack 100 from the memory 306. For example, referring back to FIG. 5 , if the first sensor is S2 and the second sensor is S4, the third sensor located between S2 and S4 is S3. The processor 304 retrieves the distance 326 of the sensor S3 from the front end of the sensor from the memory 306. For example, referring back to the exemplary plot 600 shown in Figure 3, the distance of S3 from the front end of the sensor is 70 mm.
[0057] At operation 710, the processor 304 determines the position of the shoe 106 along the length of the rack 100 based at least in part on the distance of the third sensor 122 from the front end of the rack 100. As described above, the position of the shoe 106 corresponds to the position of the magnet 126 along the length of the rack 100. Thus, the processor 304 determines the position of the magnet 126 along the length of the rack 100. The assumption here is that when the first sensor 122 and the second sensor 122 generate the two largest voltage values, the magnet 126 is positioned above the third sensor 122 located between them. As described above, when the center of the magnet 126 is positioned above a particular sensor 122, the adjacent sensor generates half (or approximately half) of the maximum absolute voltage. For example, when the center 504 of the magnet 126 is positioned above S3, S3 generates 0 mv (or approximately 0 mv), and the adjacent sensors S2 and S4 generate -50 mv (or approximately -50 mv) and +50 mv (or approximately +50 mv), respectively. Thus, when S2 and S4 generate the two maximum absolute voltage values of 50 mv or approximately 50 mv, it may be assumed that the center of the magnet 126 is positioned above S3. In this case, the position of the magnet 126 is the same as the position of S3. Thus, the processor 304 calculates the distance 326 of the third sensor from the front end of the rack 100 as the distance (d m For example, the processor 304 determines the distance of the sensor S3 from the front end of the rack 100 (dS3=70 mm) as the distance of the magnet from the front end 102 of the rack 100 (d m ) is determined as follows.
[0058] In one embodiment, as an optional confirmation step, the processor 304 may detect that the third sensor 122 generates a voltage value of 0 mv or approximately 0 mv, which serves as confirmation that the center of the magnet 126 is positioned above the third sensor 122.
[0059] If the processor 304 determines in operation 706 that the first sensor 122 and the second sensor 122 are consecutive sensors, then the method 700 proceeds to operation 712 .
[0060] In operation 712, in response to determining that the first sensor 122 and the second sensor 122 are consecutive sensors on the circuit board 120, the processor 304 determines the position of the magnet 126 between the first sensor 122 and the second sensor 122 based on the positions of the two sensors 122 on the circuit board, the voltage responses of the two sensors 122, and the actual voltage values 322 generated by the two sensors. The assumption here is that the magnet 126 (e.g., the center of the magnet 126) is positioned between the two consecutive sensors 122 when the two consecutive sensors 122 generate the two maximum absolute voltage values. For example, if the consecutively positioned first and second sensors are S2 and S3, respectively, this indicates that the center of the magnet 126 is positioned between sensors S2 and S3.
[0061] Assuming that the magnet 126 (e.g., the center of the magnet 126) is positioned between the first sensor 122 and the second sensor 122, the processor 304 determines the distance (d m ) may be determined.
number
[0062] As mentioned above, memory 306 stores the distance 326 of each sensor 122 from the front end of rack 100. Memory 306 also stores the slope 330 of the response curve associated with the voltage response 328 of each sensor 122. Thus, in the above example, processor 304 retrieves the values of dS1, SlopeS1, dS2, and SlopeS2 from memory to calculate the distance 326 of magnet 126 from the front end of rack 100 (d m ) As discussed above, the determined position of the magnet 126 corresponds to the position of the shoe 106 along the length of the rack 100.
[0063] Referring back to FIG. 6, in an exemplary calculation of dm assuming the first sensor is S2 and the second sensor is S3, where dS1=50 mm, SlopeS1=(-10) mv / mm, dS2=70 mm, SlopeS2=(+10) mv / mm, VS1=-100 mv, and VS2=+100 mv, dm may be calculated according to the following equation (a):
number
[0064] Thus, the distance of the magnet 126 from the front end of the sensor is 60 mm.
[0065] At operation 714, the processor 304 determines the number of cigarette packs 202 actually stored in the rack based at least in part on the distance (dm) of the magnet 126 from the front end of the rack 100 (e.g., the dm determined in the previous operation 712).
[0066] The processor 304 may determine the number (N) of packs 202 actually stored in the rack based on the following equation (2):
number
[0067] In a particular embodiment, for pucks 202 of a particular thickness, memory 306 stores the distance (D) 332 that magnet 126 travels for every puck 202 loaded in rack 100. It may be noted that the value of D 332 will be different for every pack or item of a different thickness.
[0068] Continuing with the example from the previous paragraph, if dm=60 mm and D=20 mm, the number of packs actually stored in the rack (N) can be calculated as follows:
number
[0069] In certain embodiments, the value of D 332 may be determined during a calibration step. For example, in response to receiving a command to calibrate the rack 100, the processor 304 may initiate a calibration mode. While the processor 304 is in the calibration mode, a user (e.g., a store clerk) may load a known number of packs 202 of a particular thickness into the rack 100. Each time a specific number of packs 202 of a particular thickness are loaded into the rack 100, the processor 304 calculates the distance (dm) of the magnet 126 from the front end 102 of the rack 100 for the known number of packs 202 stored in the rack 100. The processor 304 may determine the distance (D) 332 that the magnet 126 will travel for every pack 202 of a particular thickness loaded into the rack 100 based on values of dm associated with at least two different known numbers of packs 202 loaded into the rack 100.
[0070] For example, in a first step, while processor 304 is in calibration mode, a user loads one puck 202 of a particular thickness into rack 100. In response, the processor calculates dm=20 mm. In a second step, a user loads three pucks 202 of the same particular thickness into rack 100. In response, the processor calculates dm=60 mm. Processor 304 may determine the distance (D) 332 that magnet 126 will travel for every puck 202 of a particular thickness that is loaded into rack 100 based on equation (3) below:
number
[0071] Continuing with the above example, the processor 304 may calculate D332 as follows:
number
[0072] This means that the magnet 126 travels 20 mm along the length of the rack 100 for every puck 202 of a particular size that is loaded into the rack 100 .
[0073] Once the processor 304 determines the value of D332 for a pack 202 of a particular thickness, the processor 304 exits the calibration mode and stores the determined value of D332 in memory 306 for subsequent use in calculating packs 202 of the same particular thickness actually stored in the rack 100. It may be noted that because the value of D332 will be different for packs 202 having different thicknesses, the calibration step described above may need to be performed before storing packs 202 of an uncalibrated thickness in the rack 100.
[0074] It may be noted that although the method 700 is described with respect to counting the number of packs 202 of cigarettes, the method 700 may be used to count any product / item of uniform thickness that can be stored on the rack 100.
[0075] (Counting a standard size cigarette pack 202 when the longitudinal axis of the magnet 126 is parallel to the circuit board 120) 8 is a flowchart of an exemplary method 800 for determining the number of standard-sized cigarette packs stored in rack 100, according to certain embodiments of the present disclosure. Method 800 may be performed by processor 304, as shown in FIG. 3 and described above.
[0076] At operation 802, the processor 304 monitors voltage values 322 corresponding to the voltage signals 310 generated by at least a subset of the sensors 122. For example, the processor 304 monitors the voltage values 322 generated by the subset of the sensors 122 by monitoring the voltage signals 310 received at signal pins 302 electrically coupled to the sensors 122 and by measuring the voltage values 322 corresponding to the voltage signals 310 using a voltage measurement device (not shown). For example, the circuit board 120 may include a voltage measurement device (e.g., a voltmeter) that measures the voltage signals 310 received at the signal pins 302.
[0077] It may be noted that only a subset of sensors 122 in the array of sensors 122 may generate a measurable voltage signal 310. For example, when a magnet 126 is positioned over a particular sensor 122, depending on the strength of the magnetic field generated by the magnet 126, the particular sensor 122 and one or more neighboring sensors of the particular sensor 122 may generate a measurable voltage signal 310. The magnetic field may be too low or non-existent at the remaining sensors 122, and as a result, the remaining sensors 122 may not generate a measurable voltage signal 310.
[0078] At operation 804, the processor 304 checks whether two maximum voltage values 322 are detected across the voltage values 322 generated by the subset of sensors 122. For example, the processor 304 may receive two maximum voltage values 322 at two of the signal pins 302. If the processor 304 detects two maximum voltage values 322 at two of the signal pins 302, the method 800 proceeds to operation 806.
[0079] At operation 806, the processor 304 detects that a first sensor 122 generated a first maximum absolute voltage value and a second sensor 122 generated a second maximum absolute voltage value, where the first maximum absolute voltage value and the second maximum absolute voltage value are the two largest voltage values from among the voltage values 322 generated by the sensors 122 in the array. For example, from among the subset of sensors 122 that generate voltage values, two sensors 122 of the subset may generate the two largest voltage values of all voltage values 322 generated by the subset of sensors 122. In other words, the processor 304 is configured to select the two sensors 122 that are detected as having generated the two largest voltage values from among the voltage values 322 generated by the subset of sensors 122.
[0080] As described above, the magnet carrier 124 may be designed such that, for any number of pucks 202 stored in the rack 100, the center of the magnet 126 is positioned above one of the sensors 122 when the spacing between each pair of sensors 122 is equal to the thickness of the pucks 202 stored in the rack 100. Also as described above, when the center 504 of the magnet 126 is positioned above a particular sensor 122, the adjacent sensor generates half (or approximately half) of the maximum absolute voltage. For example, when the center 504 of the magnet 126 is positioned above sensor S3, sensor S3 generates 0 mv (or approximately 0 mv), and adjacent sensors S2 and S4 generate −50 mv (or approximately −50 mv) and +50 mv (or approximately +50 mv), respectively. Thus, it may be assumed that the center of the magnet 126 is positioned above S3 when S2 and S4 generate the two maximum absolute voltage values of 50 mv or approximately 50 mv. In this case, the position of the magnet 126 is the same as the position of S3.
[0081] Thus, in operation 808, in response to detecting that the first sensor 122 has generated a first maximum absolute voltage value and the second sensor 122 has generated a second maximum absolute voltage value, the processor 304 determines that the magnet 126 (e.g., the center of the magnet 126) is positioned above the third sensor 122 that is disposed between the first sensor 122 and the second sensor 122, and that the first sensor 122, the third sensor 122, and the second sensor 122 are consecutive sensors 122 on the circuit board 120.
[0082] At operation 810, the processor 304 determines the number of cigarette packs 202 actually stored in the rack 100 based on the specific number of packs 202 corresponding to the third sensor 122 located between the first sensor 122 and the second sensor 122. As described above, each signal pin 302 may correspond to a pin number. Furthermore, each signal pin 302 is electrically coupled to a single sensor 122 and receives a voltage signal 310 generated by that sensor 122. The pin number of a signal pin 302 may correspond to the position of the sensor 122 electrically coupled to the signal pin 302. For example, signal pin 1 may correspond to sensor S1, signal pin 2 may correspond to sensor S2, and signal pin n may correspond to sensor Sn. Thus, the processor 304 may determine the positions of the first and second sensors 122 on the circuit board 120 by examining the pin numbers of the signal pins 302 that received the respective voltage signals 310 from the first and second sensors 122. The processor 304 may determine the pin number of the third sensor 122 based on the pin numbers of the first and second sensors 122. For example, when the pin numbers of the signal pins 302 corresponding to the first and second sensors 122 are 2 and 4, respectively, the processor 304 may determine the pin number of the signal pin 302 corresponding to the third sensor 122 as 3.
[0083] As described above, each sensor 122 is assigned a specific number of the packs 202 placed in the rack 100 based on the position of the sensor 122 on the circuit board 120, and the specific number corresponding to each sensor 122 (e.g., sensor number 324) is equal to the number of packs stored in the rack 100 when the magnet 126 is above or closest to the sensor 122. In addition, each signal pin 302 is assigned the same number as the sensor 122 electrically coupled to it. Thus, based on the pin number of the signal pin 302 of the third sensor 122, the processor 304 determines the specific number corresponding to the third sensor 122. The processor assigns the specific number corresponding to the third sensor 122 as the number of packs 202 actually stored in the rack 100. For example, when the pin number of the third sensor 122 is 3, the processor determines the number of packs 202 actually stored in the rack 100 to be 3.
[0084] In one or more embodiments, the processor 304 may be configured to generate a warning message when the number of packs 202 stored in the rack 100 equals or falls below a preset threshold number of packs 202. For example, the processor 304 may be configured to generate a warning message in response to determining whether the number of packs 202 stored in the rack 100 equals or falls below a preset threshold number of packs 202 to be maintained in the rack 100. The warning message may include an identifier of the rack and the number of packs 202 actually stored in the rack. The processor may be configured to send the warning message to a master controller or cloud infrastructure using the network interface 308. For example, an inventory manager or store clerk may view the warning message and restock the rack 100.
[0085] (Reducing store shrinkage) Theft of goods from store shelves is a serious problem that causes substantial losses to stores. Rapid and accurate detection of stolen goods from store shelves will help catch the thieves and recover the stolen goods. Cigarette packs are often stolen by store personnel who have access to the cigarette rack 100. Currently, there is no effective technical solution that can quickly and accurately detect theft of cigarette packs from the cigarette rack.
[0086] Embodiments of the present disclosure discuss techniques for intelligently detecting theft of cigarette packs 202 from racks 100 .
[0087] FIG. 9 shows a schematic diagram of a system 900 for detecting theft of cigarette packs, according to certain embodiments of the present disclosure.
[0088] 9, the system 900 includes a rack 100, an interaction device 920, and a master controller 902 communicatively coupled to the rack 100 and the interaction device 920. The master controller 902 includes a memory 908, a network interface 906, and a processor 904 communicatively coupled to the memory 908 and the network interface 906.
[0089] The processor 904 includes one or more processors operatively coupled to the memory 908. The processor 904 is any electronic circuit configuration, including, but not limited to, a state machine, one or more central processing unit (CPU) chips, a logic unit, a core (e.g., a multi-core processor), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a digital signal processor (DSP). The processor 904 may be a programmable logic device, a microcontroller, a microprocessor, or any suitable combination thereof. The processor 904 is communicatively coupled to and in signal communication with the memory 908. The one or more processors are configured to process data and may be implemented in hardware or software. For example, the processor 904 may be an 8-bit, 16-bit, 32-bit, 64-bit, or any other suitable architecture. The processor 904 may include an arithmetic logic unit (ALU) for performing arithmetic and logical operations, processor registers that supply operands to the ALU and store results of ALU operations, and a control unit that retrieves instructions from memory and executes them by directing the cooperative operation of the ALU, registers, and other components.
[0090] The one or more processors 904 are configured to implement various instructions 910. For example, the one or more processors 904 are configured to execute the instructions 910 to implement the master controller 902. In this manner, the processor 904 may be a special-purpose computer designed to implement the functionality disclosed herein. In one or more embodiments, the master controller 902 is implemented using a logic unit, an FPGA, an ASIC, a DSP, or any other suitable hardware. The master controller 902 is configured to operate as described with reference to FIGS. 9-10. For example, the master controller 902 may be configured to perform at least a portion of a method 1000 as described in FIG. 10.
[0091] The memory 908 may include one or more disks, tape drives, or solid state drives, and may be used as overflow data storage to store programs when such programs are selected for execution and to store instructions 910 and data read during program execution. The memory 908 may be volatile or non-volatile and may include read-only memory (ROM), random access memory (RAM), ternary content addressable memory (TCAM), dynamic random access memory (DRAM), and static random access memory (SRAM).
[0092] Memory 908 is operable to store, among other things, messages 912, including messages 912 received from rack 100 (e.g., circuit board 120), messages 912 received from interaction devices 920, and instructions 910 for implementing the functionality of master controller 902. The instructions 910 stored in memory 908 may include any suitable set of instructions, logic, rules, or code operable to execute master controller 902.
[0093] The network interface 906 is configured to enable wired and / or wireless communication. The network interface 906 is configured to communicate data between the master controller 902 and other devices, systems, or domains (e.g., the circuit boards 120 of the rack 100, the interaction devices 920, etc.). For example, the network interface 906 may include a Wi-Fi interface, a LAN interface, a WAN interface, a modem, a switch, or a router. The processor 904 is configured to send and receive data using the network interface 906. The network interface 906 may be configured to use any suitable type of communication protocol, as will be appreciated by those skilled in the art.
[0094] It may be noted that the interaction device 920 may be implemented similarly to the master controller 902 as shown in Figure 9. For example, the interaction device 920 may include a processor and a memory that stores instructions that, when executed by the processor, implement respective functionality.
[0095] The interaction device 920 may include a point-of-sale (POS) device / terminal. This disclosure may use the terms “interaction device 920” and “POS device / terminal 920” interchangeably. POS devices 920 may be used in numerous establishments, including, but not limited to, grocery stores, gas stations, home improvement stores, clothing stores, and restaurants, to allow users to make payments using a variety of payment instruments, such as credit cards, debit cards, smart cards, automated teller machine (ATM) cards, and other touchless payment methods. POS devices 920 may include a card reader 922 that captures account information stored on the magnetic stripe on the back of a credit card or ATM / debit card. The POS device 920 additionally includes a keypad 924 having multiple buttons with alphanumeric symbols and several additional buttons, such as "ENTER," "CLEAR," and "CANCEL," to allow a user to enter a PIN associated with an ATM / debit or credit card, a zip code associated with a credit card, and / or other information that needs to be entered by the user to complete a payment transaction. The POS device 920 may also include a display screen 926 that provides a visual interface for communicating with the user. To perform a payment transaction, a user of the POS device 920 swipes a card through the card reader 922. Transaction details are then displayed to the user on the display 926. The user can then enter additional information regarding the transaction, such as a security verification code or PIN number, via the keypad 924. The information entered by the user is encrypted and transmitted to a bank or other transaction clearinghouse through a secure communication channel. Once the transaction is approved, the user is notified via the display 926. It may be noted that the POS device 920 shown in FIG. 9 is for illustrative purposes only, and one skilled in the art may recognize that any type of POS device / terminal may be used in embodiments of the present disclosure.
[0096] The interaction device 920 is configured to process a data interaction involving one or more packs of cigarettes 202. The data interaction involving one or more packs of cigarettes 202 may include processing a sale of one or more packs of cigarettes by the interaction device 920.
[0097] 10 is a flowchart of an exemplary method 1000 for detecting theft of cigarette packs stored in rack 100, according to certain embodiments of the present disclosure. Method 1000 may be performed by master controller 902, as shown in FIG. 9 and described above.
[0098] At operation 1002, the master controller 902 receives a first communication signal 930 (see back to FIG. 9 ) from the rack 100. For example, the first communication signal 930 is transmitted by the processor 304 of the circuit board 120 associated with the rack 100 using the network interface 308 and is received by the master controller 902 using the network interface 906. The first communication signal 930 includes a first message indicating that a first number of cigarette packs 202 have been removed from the rack 100, and further includes a Universal Product Code (UPC) associated with the type of cigarette packs 202 stored in the rack 100.
[0099] A UPC or UPC code is a barcode symbol widely used worldwide to track items in stores. A UPC typically consists of 12 digits that are uniquely assigned to each item. For example, each different type of pack 202 of cigarettes is associated with a different UPC that is typically printed on the pack 202. Thus, the UPC associated with the pack 202 uniquely identifies the type of pack 202, and all packs 202 of the same type are associated with the same UPC.
[0100] In certain embodiments, when a processor 304 associated with the circuit board 120 of the rack 100 detects that one or more packs 202 of cigarettes have been removed from the rack 100, the processor 304 generates a first message including at least an indication of the number of packs 202 removed from the rack 100 and the UPCs associated with the packs 202 removed from the rack 100. The memory 306 of the circuit board 120 of the rack 100 may store the UPCs associated with the packs 202 stored in the rack 100. The processor 304 may retrieve the UPCs associated with the packs 202 from the memory 306 and include the UPCs in the first message. In one or more embodiments, the indication included in the first message of the number of packs 202 removed from the rack 100 includes the number of packs 202 actually stored in the rack 100. For example, the processor 304 may be configured to count the number of packs 202 stored in the rack 100, generate a first message including the counted number of packs 202 and a UPC associated with the packs 202, and send a first communication signal 930 including the first message to the master controller 902. The processor 304 may be configured to count the number of packs 202 stored in the rack 100 in response to detecting that the magnet 126 has moved along the length of the rack. The processor 304 may detect that the magnet 126 has moved in response to detecting a change in the voltage value generated by the sensor 122. The processor 304 may be configured to send the first communication signal 930 including the first message to the master controller 902 each time the processor 304 counts a pack 202 stored in the rack 100. Additionally or alternatively, the processor 304 may send a first communication signal 930 to the master controller 902 in response to receiving a command from the master controller 902 periodically based on a preset schedule and / or based on a preset trigger (e.g., movement of the shoe 106 / magnet 126). The master controller 902 may be configured to store in memory 908 a count of the pucks 202 received from the rack 100.After receiving the first communication signal 930 from the rack 100, the master controller 902 may be configured to extract the number of packs 202 from the first message and compare the received number of packs 202 with the previous number of packs 202 stored in the memory 908. After determining, based on the comparison, that the number of packs 202 received in the latest first message is less than the previous number of packs 202 stored in the memory, the master controller 902 determines that at least one pack 202 has been removed from the rack 100. Additionally, based on comparing the latest number of packs with the previous number of packs, the master controller 902 may determine the number of packs removed from the rack 100.
[0101] In additional or alternative embodiments, the indication included in the first message of the number of packs 202 removed from the rack 100 includes the actual number of packs 202 removed from the rack 100. For example, the processor 304 may be configured to store in the memory 306 at least the most recent count of packs 202 stored in the rack 100 from the most recent count of packs 202 stored in the rack 100. As the processor 304 counts the packs 202 stored in the rack 100, the processor 304 compares the new count of packs to the previous count of packs stored in the memory 306. After determining that the new count is less than the previous count, the processor 304 determines that one or more packs have been removed from the rack 100 and further determines the number of packs removed based on a comparison of the new count and the previous count. The processor 304 includes the determined number of packs removed from the rack 100 in the first message to send a first communication signal 930 to the master controller 902.
[0102] At operation 1004, the master controller 902 monitors a communication signal 940 (see back to FIG. 9 ) received from the interaction device 920. The master controller 902 may receive the communication signal 940 from the interaction device 920 using the network interface 906. In one embodiment, the master controller 902 may begin monitoring the communication signal 940 received from the interaction device 920 in response to determining that a first number of packs of cigarettes 202 have been removed from the rack 100 (e.g., based on a first communication signal 930 received from the rack 100). The communication signal 940 received from the interaction device 902 may indicate a data interaction performed at the interaction device 920. For example, when a data interaction including a product (e.g., including the sale of an item such as one or more packs of cigarettes 202) is performed at the interaction device 920, the interaction device 920 may be configured to send the communication signal 940 to the master controller 902. The communication signal 940 may include a message having information regarding one or more data interactions processed by the interaction device 920. For example, the message may include information regarding a data interaction processed by the interaction device 920 including one or more packs 202 of cigarettes. This information regarding a data interaction including one or more packs 202 of cigarettes may include the number of packs included as part of the data interaction and the UPC associated with each pack 202 included in the data interaction. For example, a data interaction including one or more packs 202 may correspond to the sale of one or more packs processed by the interaction device 920. As described in further detail below, based on monitoring the communication signal 940 received from the interaction device 920, the master controller 902 may determine whether one or more data interactions including a pack 202 removed from the rack 100 have been processed by the interaction device 920. In one embodiment, the interaction device 920 may be configured to send the communication signal 940 regarding the data interaction including the pack 202 of cigarettes to the master controller 902.
[0103] At operation 1006, based on the communication signal 940 received from the interaction device 920, the master controller 902 checks whether a data interaction involving the first number of packs 202 of cigarettes removed from the rack 100 has been processed by the interaction device 920 for a preset time period from when the first number of packs 202 were removed from the rack 100. As described above, the communication signal 940 received from the interaction device 920 may include a message having information about the data interaction involving the packs 202 of cigarettes processed by the interaction device 920. This information may include the number of packs included as part of the data interaction and the UPC associated with each pack 202 included in the data interaction. Based on the information about the data interactions processed by the interaction device 920, the master controller 902 may determine whether one or more data interactions involving the packs 202 removed from the rack 100 have been processed by the interaction device 920. For example, the master controller 902 may compare the UPC associated with each pack included in the data interaction with the UPC associated with the first number of packs removed from the rack 100. When the UPC associated with the packs included in the data interaction matches the UPC associated with the first number of packs removed from the rack 100, the master controller 902 determines that the data interaction including the packs removed from the rack 100 has been completed by the interaction device. When the master controller 902 is able to confirm a UPC match for the first number of packs removed from the rack 100 with the same number of packs included in one or more data interactions with the interaction device 920, the master controller 902 determines that the first number of packs 202 removed from the rack 100 have been processed in a data interaction with the interaction device 920.On the other hand, when a communication signal 940 is not received from the interaction device 920 or when the UPC of a pack included in one or more data interactions processed by the interaction device 920 does not match the UPC associated with the pack removed from the rack 100, the master controller 902 determines that the first number of packs 202 removed from the rack 100 were not processed in a data interaction at the interaction device 920, which indicates potential theft of the first number of packs 202.
[0104] The master controller 902 may be configured to determine whether the first number of packs 202 removed from the rack 100 have been processed in a data interaction with the interaction device 920 within a preset time period from when the first number of packs 202 were removed from the rack 100. In one embodiment, the master controller 902 starts a timer in response to determining (based on the first communication signal 930) that the first number of packs 202 have been removed from the rack 100, the timer being set to expire after the preset time period. If the master controller 902 determines that the first number of packs 202 removed from the rack 100 have been processed in a data interaction with the interaction device 920 before the expiration of the timer, the master controller 902 determines that the first number of packs 202 have been processed by the interaction device 920 within the preset time period. In a second embodiment, the first message received as part of the first communication signal 930 from the rack 100 may include a timestamp including the time the first number of packs 202 were removed from the rack 100. If the master controller 902 determines that the first number of packs 202 removed from the rack 100 were processed in a data interaction with the interaction device 920 within a preset time period from the timestamp, the master controller 902 determines that the first number of packs 202 were processed by the interaction device 920 within the preset time period. In a third embodiment, the master controller 902 may be configured to record the time the first communication signal 930 was received from the rack 100. If the master controller 902 determines that the first number of packs 202 removed from the rack 100 were processed in a data interaction with the interaction device 920 within a preset time period from the recorded time, the master controller 902 determines that the first number of packs 202 were processed by the interaction device 920 within the preset time period.
[0105] If the master controller 902 determines (at operation 1006) that the first number of packs 202 removed from the rack 100 have been processed in a data interaction with the interaction device 920 within a predetermined time period, the method 1000 proceeds to operation 1010, where the master controller 902 records that the first number of packs 202 removed from the rack 100 have been processed in one or more data interactions with the interaction device 920.
[0106] If the master controller determines (e.g., at operation 1006) that the first number of packs 202 removed from the rack 100 have not been processed in a data interaction at the interaction device 920 within a preset time period, the method 1000 proceeds to operation 1008, where the master controller 902 sends a warning message (e.g., to a computing device of a store manager or asset protection team). The warning message may include at least one of an indication that the packs 202 of cigarettes removed from the rack 100 have not been processed by the interaction device 920, the first number of packs 202 removed from the rack 100, a UPC associated with the packs 202, a rack number associated with the rack 100, and a timestamp including the time the packs 202 were removed from the rack 100. In one embodiment, the first message received as part of the first communication signal 930 from the rack 100 includes the rack number associated with the rack. Additionally or alternatively, the warning message may include the identification of the user (e.g., a store clerk) operating the interaction device 920 when the first number of packs 202 was removed from the rack 100. Generally, to operate the interaction device 920, a user is required to enter security credentials unique to the user. The security credentials are typically associated with the user's identity. The interaction device 920 may transmit the identification of the user currently operating the interaction device 920 as part of the communication signal 940 sent to the master controller 902. Timely detection and warning of potential theft, along with the identity of the user operating the interaction device, can help identify the party responsible for the theft and recover the stolen merchandise. Furthermore, the system may deter potential thieves from attempting to steal merchandise, which also aids in shrinkage reduction.
[0107] It may be noted that although the method 1000 is described with respect to a pack of cigarettes 202, the method 1000 may be used with respect to any product / item of uniform thickness that can be stored on the rack 100.
[0108] FIG. 11 illustrates an exemplary network topology 1100 for connecting multiple racks shown in FIG. 1, according to certain embodiments of the present disclosure.
[0109] A typical store has multiple racks 100 arranged on one or more shelves. Network topology 1100 is an exemplary network configuration of multiple racks 100 in communication with a master controller 902. As shown in FIG. 11 , network topology 1100 includes multiple racks 100 (designated as 100a, 100b, 100c...100n) and a master controller 902 connected in a daisy chain. Each rack 100 includes an inbound connector (e.g., one or more input pins on a circuit board 120) and an outbound connector (e.g., one or more output pins on a circuit board 120). The inbound connector may be used to receive data from other devices (e.g., other racks 100 or the master controller 902), and the outbound connector may be used to send data to other devices (e.g., other racks 100 or the master controller 902). Each rack 100 may send and receive data using its respective network interface 308. For example, data received at an inbound connector may be routed to the network interface 308. Additionally, the network interface 308 may send the data via an outbound connector.
[0110] As shown in Figure 11, the master controller 902 is connected to the inbound connector of a first rack 100a. The first rack 100a is then connected through its outbound connector to the inbound connector of a second rack 100b. This connection sequence is repeated until all racks 100a-100n are connected, and the outbound connector of the last rack 100n is connected back to the master controller, forming a ring topology. As shown, data in the daisy chain flows serially from the master controller 902 to the first rack 100a, from one rack to the next, and then from the last rack 100n in the daisy chain back to the master controller 902.
[0111] Each rack 100 stores an address in its respective memory 306. The address of a particular rack 100 is what the master controller 902 uses to issue commands to the particular rack 100 and to interpret and associate data coming from the particular rack 100. The address may be a simple sequence number and is initially undefined. Upon system startup (e.g., a cold start or a reset of the master controller 902), the master controller 902 passes a "Clear Address" command to the first rack 100a, instructing the rack 100a to clear its address. The first rack 100a clears its address and then sends / forwards the same command to the second rack 100b. This continues to the end of the daisy chain until the last rack 100n sends a "Clear Address" command back to the master controller 902, indicating to the master controller 902 that all racks have cleared their addresses.
[0112] After clearing all addresses for all racks 100, the master controller 902 begins a sequence that results in the assignment of addresses to all racks 100 in the network. This begins with a "Set Address" command with an address value of 0x0001 (hexadecimal) passed by the master controller 902 to the first rack 100a. After receiving this command, the first rack 100a sets its address to 0x0001, increments the value by one, and passes the "Set Address" command and the new value to the second rack 100b. The second rack 100b sets its own address, increments the value, and passes the command to the third rack 100c. This continues down the chain until the last rack 100n sets its address, increments the value, and returns a "Set Address" command to the master controller. When the master controller 902 sees this command and the address returned to it, it has a count of the number of racks to which it is attached (e.g., the last address value received minus one). In fact, unless a rack 100 is never added, removed, reconfigured, or experiences a failure, the rack 100 will always have the same address, even during resets, power cycles, etc.
[0113] Once all racks 100 have selected addresses, the master controller 902 may command any one rack for the current count of packs 202 stored in the rack. For example, the master controller 902 may send a “Get Current Count” command along with the address of the rack 100. The command is passed down the chain until a target rack with a matching address included in the command receives the command. The target rack sends a “Current Count” response to the next rack in the chain, which includes the most recent count of packs 202 stored in the target rack and the address of the target rack. The response is passed down the chain to the master controller 902, which interprets the response as having been received from the target rack from the address included in the response. In some embodiments, as described above, a rack 100 in the chain may send an unsolicited “Count Changed” message (e.g., the first message in FIG. 10 ) to the master controller 902. As mentioned above, the “changed count” message may be used to determine whether one or more packs removed from the rack have been processed by the interaction device 920 .
[0114] Although several embodiments are provided in this disclosure, it should be understood that the disclosed systems and methods may be embodied in many other specific forms without departing from the spirit or scope of the disclosure. The examples should be considered illustrative rather than restrictive, and the intention is not to be limited to the details provided herein. For example, various elements or components may be combined or integrated in another system, or certain features may be omitted or not implemented.
[0115] Additionally, techniques, systems, subsystems, and methods described and illustrated in various embodiments as individual or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items illustrated or discussed as coupled or directly coupled or in communication with each other may indirectly couple or communicate through some interface, device, or intermediate component, whether electrical, mechanical, or otherwise. Other examples of changes, substitutions, and alterations will be ascertainable by those skilled in the art and could be made without departing from the spirit and scope disclosed herein.
[0116] To assist the Patent Office and any reader of any patent that may issue on this application in interpreting the claims appended hereto, Applicant notes that none of the appended claims are intended to invoke 35 U.S.C. 112(f) as they existed on the filing date of this application, unless the words "means for" or "step for" are expressly used in a particular claim.
Claims
1. 1. A system for counting cigarette packs in a rack, comprising: a longitudinal rack storing a plurality of cigarette packs of a first thickness along a length of the rack between a front end and a rear end of the rack; a shoe movably mounted on the rack such that the shoe travels between the front and rear ends of the rack, the packs of cigarettes being positioned adjacent the front end of the shoe, and the shoe being pushed back towards the rear end of the rack with each pack of cigarettes loaded onto the rack; a magnet coupled to the shoe; a longitudinal circuit board disposed along the length of the rack, the circuit board comprising: an array of sensors disposed along a length of the circuit board, the spacing between each pair of sensors corresponds to a preselected spacing; the magnet is positioned with the shoe such that a longitudinal axis of the magnet is parallel to the longitudinal circuit board; at least a subset of the sensors generate a signal corresponding to a strength of a magnetic field associated with the magnet; the signals generated by the subset of sensors are based at least in part on a position of the magnet relative to the sensors. an array of sensors; a memory for storing values corresponding to the signals generated by the subset of the sensors; a processor communicatively coupled to the sensor and the memory, the processor comprising: configured to monitor the values generated by the subset of the sensors; configured to detect when a first sensor has generated a first maximum absolute value and when a second sensor has generated a second maximum absolute value, the first maximum absolute value and the second maximum absolute value being two maximum values among the values generated by the sensors in the array; configured to determine a position of the shoe along the length of the rack based at least in part on a first distance of the first sensor from the front end of the rack and a second distance of the second sensor from the front end of the rack, the position of the shoe comprising a distance of the shoe from the front end of the rack; configured to determine a number of packs of the cigarettes of the first thickness to be stored in the rack based on the position of the shoe along the length of the rack. system.
2. The system of claim 1 , wherein the signal is a voltage signal and the value corresponding to the signal is a voltage value.
3. the position of the shoe along the length of the rack corresponds to the position of the magnet along the length of the longitudinal circuit board; The memory includes: a signal response of each sensor based on the position of the magnet relative to the sensor; and further storing the distance of each sensor from the front end of the rack. The system of claim 1 .
4. The processor, Detecting that a third sensor is positioned between the first sensor and the second sensor; determining that the magnet is positioned above the third sensor in response to detecting that the third sensor is positioned between the first sensor and the second sensor; obtaining from the memory a third distance of the third sensor from the front end of the rack; determining the position of the shoe along the length of the rack based at least in part on the third distance of the third sensor from the front end of the rack, configured to determine the position of the shoe along the length of the rack. The system of claim 3.
5. The processor, detecting that the first sensor and the second sensor are positioned consecutively to one another on the longitudinal circuit board, indicating that the magnet is positioned between the first sensor and the second sensor; obtaining a first gradient related to a first signal response of the first sensor with respect to a position of the magnet between the first sensor and the second sensor; calculating a third distance of the magnet from the first sensor by multiplying a first actual value corresponding to the first maximum absolute value by the inverse of the first gradient; obtaining a second gradient related to a second signal response of the second sensor related to a position of the magnet between the second sensor and the first sensor; calculating a fourth distance of the magnet from the second sensor by multiplying a second actual value corresponding to the second maximum absolute value by the inverse of the second gradient; calculating a first intermediate value by adding the third distance to the first distance of the first sensor from the front end of the rack; calculating a second intermediate value by subtracting the fourth distance from the second distance of the second sensor from the front end of the rack; calculating a third intermediate value by adding the first intermediate value and the second intermediate value; determining a fifth distance of the magnet from the front end of the rack by dividing the third intermediate value by two; determining the position of the shoe along the length of the rack based at least in part on the fifth distance of the magnet from the front end of the rack, further configured to determine the position of the shoe along the length of the rack. The system of claim 3.
6. the memory stores a distance that the shoe travels for every pack of cigarettes of the first thickness that is applied to the rack; the processor determines the number of packs of cigarettes of the first thickness to be stored in the rack by dividing the distance of the shoe from the front end of the rack by the distance the shoe travels for every pack of cigarettes added to the rack. The system of claim 1 .
7. The processor, receiving a first indication that a first number of cigarette packs are stored in the rack; determining a first distance of the shoe from the front end of the rack in response to receiving the first indication; receiving a second indication that a second number of cigarette packs are stored in the rack, the second number being greater than the first number; determining a second distance of the shoe from the front end of the rack in response to receiving the second indication; calculating the distance traveled by the shoe on the rack between receiving the first indicia and receiving the second indicia by subtracting the second distance from the first distance; calculating a change in the number of packs stored in the rack between receiving the first indication and receiving the second indication by subtracting the second number of cigarette packs from the first number of cigarette packs; determining the distance traveled by the shoe on the rack for every pack of cigarettes added to the rack by dividing the distance traveled by the shoe on the rack by the change in the number of the packs stored on the rack; determining the distance that the shoe travels for every pack of cigarettes added to the rack; The system of claim 6.
8. 2. The system of claim 1, wherein the preselected spacing between each pair of the sensors corresponds to a thickness of a standard pack of cigarettes.
9. The system of claim 1 , wherein each sensor in the array comprises a Hall Effect sensor.
10. the circuit board further includes an array of signal pins, each sensor being electrically coupled to one of the signal pins and outputting the signal generated by the sensor to the signal pin; the processor is configured to monitor the value generated by each sensor by monitoring the signal received at each of the signal pins; The system of claim 1 .
11. the circuit board further includes a communication interface coupled to the processor; The processor, determining that the number of packs stored in the rack is less than or equal to a threshold; generating a warning message including an identifier of the rack and the determined number of packs actually stored in the rack; transmitting the alert message using the communication interface; further comprising: The system of claim 1 .
12. The system of claim 1 , further comprising a magnet carrier attached to the shoe and configured to hold the magnet.
13. A circuit board for counting cigarette packs stored in a rack, comprising: a longitudinal rack for storing a plurality of cigarette packs of a first thickness along a length of the rack between a front end and a rear end of the rack; a shoe movably mounted on the rack such that the shoe travels between the front and rear ends of the rack, the packs of cigarettes being positioned adjacent the front end of the shoe, and the shoe being pushed back towards the rear end of the rack with each pack of cigarettes loaded onto the rack; a magnet coupled to the shoe; a longitudinal circuit board disposed along the length of the rack, the circuit board comprising: an array of sensors disposed along a length of the circuit board, the circuit board is disposed along a length of the rack for storing a plurality of cigarette packs of a first thickness along the length of the rack between a front end and a rear end of the rack; a magnet runs along the length of the rack between the front and rear ends of the rack; the spacing between each pair of sensors corresponds to a preselected spacing; the magnet is positioned with respect to the circuit board such that a longitudinal axis of the magnet is parallel to the circuit board; at least a subset of the sensors generate a signal corresponding to a strength of a magnetic field associated with the magnet; the signals generated by the subset of sensors are based at least in part on a position of the magnet relative to the sensors. an array of said sensors; a memory for storing values corresponding to the signals generated by the subset of the sensors; a processor communicatively coupled to the sensor and the memory, the processor comprising: configured to monitor the values generated by the subset of the sensors; configured to detect when a first sensor has generated a first maximum absolute value and when a second sensor has generated a second maximum absolute value, the first maximum absolute value and the second maximum absolute value being the two largest values among the values generated by the sensors in the array; configured to determine a position of the magnet along the length of the rack based at least in part on a first distance of the first sensor from the front end of the rack and a second distance of the second sensor from the front end of the rack, the position of the magnet including a distance of the magnet from the front end of the rack; configured to determine a number of packs of cigarettes of the first thickness to be stored in the rack based on the position of the magnet along the length of the rack. Circuit board.
14. 14. The circuit board of claim 13, wherein the signal is a voltage signal and the value corresponding to the signal is a voltage value.
15. The memory includes: a signal response of each sensor based on the position of the magnet relative to the sensor; and further storing the distance of each sensor from the front end of the rack. The circuit board according to claim 13.
16. The processor, detecting that a third sensor is positioned between the first sensor and the second sensor; determining that the magnet is positioned above the third sensor in response to detecting that the third sensor is positioned between the first sensor and the second sensor; obtaining from the memory a third distance of the third sensor from the front end of the rack; determining the position of the magnet along the length of the rack based at least in part on the third distance of the third sensor from the front end of the rack, configured to determine the position of the magnet along the length of the rack.
16. The circuit board according to claim 15.
17. The processor, detecting that the first sensor and the second sensor are positioned consecutively to one another on the longitudinal circuit board, indicating that the magnet is positioned between the first sensor and the second sensor; obtaining a first gradient related to a first signal response of the first sensor with respect to a position of the magnet between the first sensor and the second sensor; calculating a third distance of the magnet from the first sensor by multiplying a first actual value corresponding to the first maximum absolute value by the inverse of the first gradient; obtaining a second gradient related to a second signal response of the second sensor related to a position of the magnet between the second sensor and the first sensor; calculating a fourth distance of the magnet from the second sensor by multiplying a second actual value corresponding to the second maximum absolute value by the inverse of the second gradient; calculating a first intermediate value by adding the third distance to the first distance of the first sensor from the front end of the rack; calculating a second intermediate value by subtracting the fourth distance from the second distance of the second sensor from the front end of the rack; calculating a third intermediate value by adding the first intermediate value and the second intermediate value; determining a fifth distance of the magnet from the front end of the rack by dividing the third intermediate value by two; determining the position of the magnet along the length of the rack based at least in part on the fifth distance of the magnet from the front end of the rack, and further configured to determine the position of the magnet along the length of the rack.
16. The circuit board according to claim 15.
18. said memory stores the distance that said magnet travels for every pack of said cigarettes of said first thickness that is applied to said rack; the processor determines the number of packs of cigarettes of the first thickness to be stored in the rack by dividing the distance of the magnet from the front end of the rack by the distance that the magnet travels for every pack of cigarettes added to the rack. The circuit board according to claim 13.
19. 1. A system for counting items stored in a rack, comprising: a longitudinal rack storing a plurality of items of a first thickness along a length of the rack between a front end and a rear end of the rack; a shoe movably mounted to the rack such that the shoe travels between the front and rear ends of the rack, the items being positioned adjacent the front end of the shoe and the shoe being pushed back toward the rear end of the rack with each item loaded onto the rack; a magnet coupled to the shoe; a longitudinal circuit board disposed along a length of the rack, the circuit board comprising: an array of sensors disposed along a length of the circuit board, the spacing between each pair of sensors corresponds to a preset spacing; the magnet is positioned with the shoe such that a longitudinal axis of the magnet is parallel to the longitudinal circuit board; at least a subset of the sensors generate a signal corresponding to a strength of a magnetic field associated with the magnet; the signals generated by the subset of sensors are based at least in part on a position of the magnet relative to the sensors. an array of said sensors; a memory for storing values corresponding to the signals generated by the subset of the sensors; a processor communicatively coupled to the sensor and the memory, the processor comprising: configured to monitor the values generated by the subset of the sensors; configured to detect when a first sensor has generated a first maximum absolute value and when a second sensor has generated a second maximum absolute value, said first maximum absolute value and said second maximum absolute value being the two largest values among the values generated by said sensors in said array; configured to determine a position of the shoe along the length of the rack based at least in part on a first distance of the first sensor from the front end of the rack and a second distance of the second sensor from the front end of the rack, the position of the shoe comprising a distance of the shoe from the front end of the rack; configured to determine a number of the items of the first thickness to be stored on the rack based on the position of the shoe along the length of the rack. system.
20. 20. The system of claim 19, wherein the signal is a voltage signal and the value corresponding to the signal is a voltage value.
21. the position of the shoe along the length of the rack corresponds to the position of the magnet along the length of the longitudinal circuit board; The memory includes: a signal response of each sensor based on the position of the magnet relative to the sensor; and further storing the distance of each sensor from the front end of the rack.
20. The system of claim 19.
22. The processor, Detecting that a third sensor is positioned between the first sensor and the second sensor; determining that the magnet is positioned above the third sensor in response to detecting that the third sensor is positioned between the first sensor and the second sensor; obtaining from the memory a third distance of the third sensor from the front end of the rack; and determining the position of the shoe along the length of the rack based at least in part on the third distance of the third sensor from the front end of the rack. configured to determine the position of the shoe along the length of the rack.
22. The system of claim 21.
23. The processor, detecting that the first sensor and the second sensor are positioned consecutively to one another on the longitudinal substrate, indicating that the magnet is positioned between the first sensor and the second sensor; obtaining a first gradient related to a first signal response of the first sensor with respect to a position of the magnet between the first sensor and the second sensor; calculating a third distance of the magnet from the first sensor by multiplying a first actual value corresponding to the first maximum absolute value by the inverse of the first gradient; obtaining a second gradient related to a second signal response of the second sensor related to a position of the magnet between the second sensor and the first sensor; calculating a fourth distance of the magnet from the second sensor by multiplying a second actual value corresponding to the second maximum absolute value by the inverse of the second gradient; calculating a first intermediate value by adding the third distance to the first distance of the first sensor from the front end of the rack; calculating a second intermediate value by subtracting the second distance of the second sensor from the front end of the rack from the fourth distance; calculating a third intermediate value by adding the first intermediate value and the second intermediate value; determining a fifth distance of the magnet from the front end of the rack by dividing the third intermediate value by two; determining the position of the magnet along the length of the rack based at least in part on the fifth distance of the magnet from the front end of the rack, further configured to determine the position of the shoe along the length of the rack.
22. The system of claim 21.
24. the memory stores a distance that the shoe travels for every item of the first thickness that is added to the rack; the processor determines the number of items of the first thickness to be stored on the rack by dividing the distance of the shoe from the front end of the rack by the distance the shoe travels for every item added to the rack.
20. The system of claim 19.
