It is a kind of based on the automatically vending system weighed and methodTechnical field
The present invention relates to automatic vending machine technical field, and in particular to a kind of based on the automatically vending system weighed and sideMethod.
Background technology
Because automatic vending machine has, commodity purchasing is convenient, management is simple, floor space is small, it is artificial needed for sale to reduceThe advantages that taking, therefore just developed rapidly since its appearance, in all a large amount of popularizations in each place.
Common automatic vending machine is also relatively simple in commodity selection in the market, relates generally to bottled drink, perfume (or spice)Cigarette, the food for having independent packaging etc. calculate the automatic vending machine of commodity price in units of number, rare to sell water fruit and vegetableDish, grain etc. are to be weighed as the automatic vending machine of main identification and means of settlement, because based on the automatic vending machine weighedNeed solve more technical problems relative to non-vending machine of weighing, one of them critically important technical problem is:How to be based onWeigh and identify type of merchandize
In the prior art, patent document occurs using the automatic vending machine weighed, existing vending machine of weighingIdentification type of merchandize is realized by following two modes:
Mode one, same automatic vending machine only sell same commodity.
Mode two, same automatic vending machine have different cargo layers, same commodity are placed in each cargo layer, oftenThe corresponding weighing sensor of individual cargo layer, by the kind for judging the identification of sensor commodity that user picks up or put downClass.
Mode three, same automatic vending machine have different cargo layers, and multiple cargo layers share same weighing and sensingDevice, the species for the commodity picked up or put down is identified by setting complicated algorithm.
For mode one, it greatly limit the usage scenario of automatic vending machine.
For mode two, due to needing that a weighing sensor is separately configured for each cargo layer, considerably increase automaticVolume, manufacturing cost and the maintenance cost of vending machine.
For mode three, the calculating time is longer, algorithm design time length, and because algorithm artificially designs, vending machineThe situation faced can not possibly be to accomplish limit in algorithm for design, and BUG inevitably occurs, cause to identify when usingPrecision is not high, error is larger.
To sum up, need that a kind of simple, easily technical scheme solves based on identification type of merchandize of weighing badly in the prior artTechnical problem.
The content of the invention
(1) goal of the invention
It is above-mentioned each in the prior art for solving it is an object of the invention to provide a kind of based on the automatically vending system weighedKind automatic vending machine problem encountered.
(2) technical scheme
To solve the above problems, the first aspect of the present invention provide it is a kind of based on the automatically vending system weighed, including:Rack and multiple stock storehouses and the weighing sensor for being arranged at rack, in addition to control module;The weighing sensor, is arranged onThe bottom in the multiple stock storehouse simultaneously carries the multiple stock storehouse, and the weighing sensor is used for the weight for sensing multiple stock storehousesAmount, and the weight information measured is sent to control module;Each stock storehouse has a door, is set on the doorLock sensor is controlled, the control lock sensor is used to sense being turned on and off for door, and by the door switching information of sensingIt is sent to control module;The control module, communicated to connect respectively with the weighing sensor and control lock sensor, for baseIn the door switching information that weight information and control lock sensor that the weighing sensor measures measure, bill of goods is generated.
Further, based on the automatically vending system weighed, in addition to memory module, the memory module is used to store doorId information and type of merchandize corresponding table.
Further, included based on the automatically vending system weighed, the control module:Commodity weight generation unit, doorId information generation unit, type of merchandize generation unit and bill of goods generation unit.Wherein, commodity weight generation unit, it is used forCalculated based on the weight information, the commodity weight for being removed or being placed into;Door id information generation unit, is based onThe door switching information for controlling lock sensor to send, confirms the id information of door opened;Type of merchandize generation unit, with instituteThe id information for the door opened is stated to index in the door id information with being retrieved in type of merchandize corresponding table, obtains businessKind class;Bill of goods generation unit, based on the commodity weight and type of merchandize generation bill of goods.
Further, also included based on the automatically vending system weighed, the control module:Commodity amount generation unit, businessProduct quantity generation unit based on the commodity weight for being removed or being placed into and the particular commodity weight to prestore based on being carried outCalculate, obtain commodity amount;The bill of goods generation unit, based on the commodity amount and type of merchandize generation bill of goods.
Further, the control of rack is arranged at based on the automatically vending system weighed, the control module and memory moduleIn chip;Or the control module and memory module are arranged in the host computer communicated to connect with rack.
Further, based on the automatically vending system weighed, the multiple stock storehouse is with side that is vertical, laterally or anyhow intersectingFormula is arranged.
Further, cabinet and the cabinet for closing the cabinet are included based on the automatically vending system weighed, the rackDoor;The multiple stock storehouse and weighing sensor are arranged in the cabinet;Attemperator is additionally provided with the cabinet, it is describedAttemperator has heating refrigerating function, to provide heat or cold to the multiple stock storehouse.
Further, based on the automatically vending system weighed, user identification module is additionally provided with the rack, is used forGather subscriber identity information;The user identification module is radio frequency identification module, Quick Response Code acquisition module or NFC module.
Further, based on the automatically vending system weighed, image capture module is additionally provided with the rack, for working asWhen control lock sensor senses door switching information, IMAQ is carried out.
According to another aspect of the present invention, there is provided it is a kind of based on the automatic vending method weighed, comprise the following steps:
Obtain the weight in multiple stock storehouses, and the weight information that will be measured;
Obtain the door switching information being turned on and off of each door;
Based on the weight information and door switching information generation bill of goods.
Further, it is described based on the automatic vending method weighed, it is described to be based on the weight information and door switching informationBill of goods is generated, is comprised the following steps:
Calculated based on the weight information, the commodity weight for being removed or being placed into;
The door switching information sent based on control lock sensor, confirms the id information of door opened;
Using the id information of the door opened as index in the door id information with entering in type of merchandize corresponding tableRow retrieval, obtains type of merchandize;
Based on the commodity weight and type of merchandize generation bill of goods.
Further, it is described based on the automatic vending method weighed, it is described to be based on the weight information and door switching informationBill of goods is generated, is comprised the following steps:
Calculated based on the weight information, the commodity weight for being removed or being placed into;
Calculated based on the commodity weight for being removed or being placed into and the particular commodity weight to prestore, obtain commodityQuantity;
The door switching information sent based on control lock sensor, confirms the id information of door opened;
Using the id information of the door opened as index in the door id information with entering in type of merchandize corresponding tableRow retrieval, obtains type of merchandize;
Based on the commodity amount and type of merchandize generation bill of goods.
(3) beneficial effect
The above-mentioned technical proposal of the present invention has following beneficial technique effect:
1st, it is provided by the invention based on the automatically vending system weighed, it both can be used for selling bottled drink, packed foodDeng the commodity with independent packaging, can be also used for selling the commodity in bulk such as water fruits and vegetables;
2nd, it is provided by the invention based on the automatically vending system weighed, it can realize in the feelings using same weighing sensorUnder condition, a variety of different types of commodity are sold, referring now to needing to identify difference using multiple weighing sensors in the prior artType of merchandize, greatly reduce the manufacturing cost and maintenance cost of every vending machine;
3rd, the present invention is proposed based on the id information of door to identify type of merchandize, and identification process is simple and easy.
Brief description of the drawings
Fig. 1 is the module relationship schematic diagram of the invention based on the automatically vending system weighed;
Fig. 2 is the relation schematic diagram of each functional unit in control module in Fig. 1;
Fig. 3 is the structural representation of the rack of the invention based on the automatically vending system weighed;
Fig. 4 is a kind of step flow chart based on the automatic vending method weighed of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention of greater clarity, with reference to embodiment and joinAccording to accompanying drawing, the present invention is described in more detail.It should be understood that these descriptions are merely illustrative, and it is not intended to limit this hairBright scope.In addition, in the following description, the description to known features and technology is eliminated, to avoid unnecessarily obscuring thisThe concept of invention.
Fig. 1 is the module relationship schematic diagram of the invention based on the automatically vending system weighed.
As shown in figure 1, provided by the invention based in the one embodiment for the automatically vending system weighed, automatic vendingSystem includes:Rack and multiple stock storehouses and the weighing sensor for being arranged at rack, in addition to control module.
Wherein, weighing sensor, it is arranged on the bottom in multiple stock storehouses and carries multiple stock storehouses, weighing sensor is used forThe weight in multiple stock storehouses is sensed, and the weight information measured is sent to control module.
Each stock storehouse has a door, and control lock sensor is set on door, and control lock sensor is used to sense storehouseDoor is turned on and off, and the door switching information of sensing is sent into control module.
Control module, communicated to connect respectively with weighing sensor and control lock sensor, for being surveyed based on weighing sensorThe door switching information that the weight information and control lock sensor obtained measures, generates bill of goods.
Further, on the basis of above-described embodiment, in another embodiment of the present invention, automatically vending system also wrapsMemory module is included, the memory module is used to store door id information and type of merchandize corresponding table.
Each door has unique id information.The id information can be MAC Address or the programming people for controlling lock sensorThe unique identifier that member pre-sets.Each stock storehouse memory storage same commodity, when using automatically vending system, Shang JiakeWith type of merchandize corresponding to the customized each stock storehouse of editor, door id information and type of merchandize corresponding table are formed.
The beneficial effect of the embodiment of the present invention is:It is provided in an embodiment of the present invention based on the automatically vending system weighed, energyRealize using in the case of same weighing sensor, sell a variety of different types of commodity, referring now to needing in the prior artDifferent types of merchandize is identified using multiple weighing sensors, greatly reduces manufacturing cost and the maintenance of every vending machineCost.
Fig. 2 is the relation schematic diagram of each functional unit in control module in Fig. 1.
As shown in Fig. 2 on the basis of above-described embodiment, in another embodiment of the present invention, control module includes:Commodity weight generation unit, door id information generation unit, type of merchandize generation unit and bill of goods generation unit.
Wherein, commodity weight generation unit is used to be calculated based on weight information, the business for being removed or being placed intoProduct weight.Specifically, the weight information that commodity weight generation unit receives is multiple gravimetric values in the scheduled time, for example,In the period of 20 second time, the multiple gravimetric values transmitted by weighing sensor received are:56、56、56、54、53、52、50th, 48,48,48,48, commodity weight generation unit is calculated based on multiple gravimetric values, such as:56-48=8, obtain by byThe weight for the commodity walked is 8.
Wherein, the door switching information that door id information generation unit is sent based on control lock sensor, confirms to be openedDoor id information.Specifically, lock sensor is controlled to be communicated to connect with control module, the communication can be that long-range or near field leads toLetter, can be it is wired can also be wireless.
Type of merchandize generation unit, the id information using the door opened are index in door id information and type of merchandize pairAnswer in table and retrieved, obtain type of merchandize.
Bill of goods generation unit, based on commodity weight and type of merchandize generation bill of goods.Bill of goods is for example:AppleTwo jin;4 jin of rice;Bill of goods is for example:After commodity weight and type of merchandize is obtained, according to the cargo price to prestore to goodsProduct inventory is calculated, and obtains bill.
On the basis of above-described embodiment, in another embodiment of the present invention, control module also includes:Commodity amountGeneration unit.
Wherein, commodity amount generation unit, for based on the commodity weight for being removed or being placed into and the single business to prestoreProduct weight is calculated, and obtains commodity amount.Bill of goods generation unit, it is clear based on commodity amount and type of merchandize generation kinds of goodsIt is single.
The beneficial effect of the embodiment of the present invention is:The embodiment of the present invention can extend the usage scenario of automatically vending system,On the one hand kinds of goods in bulk can be sold, list of doing accounts in units of weight, on the other hand can also sell itself has independent bagThe kinds of goods of dress, the weight and type of merchandize of the kinds of goods for confirming to be lifted or put down by weighing first, it is somebody's turn to do afterwards based on defaultThe Unit Weight of species commodity is worth to the quantity of commodity, and then based on commodity amount and type of merchandize generation bill of goods.
Control module and memory module are arranged in the control chip of rack;Or control module and memory module be arranged atIn the host computer or server of rack communication connection.
Fig. 3 is the structural representation of the rack of the invention based on the automatically vending system weighed.
As shown in figure 3, on the basis of above-described embodiment, in another embodiment of the present invention, stock storehouse is with verticalMode is arranged, and is placed on weighing sensor, but protection scope of the present invention not limited to this, and multiple stock storehouses also may be usedArranged in a manner of laterally or anyhow intersecting.
As shown in figure 3, rack includes cabinet 1 and the cabinet door 2 for closing cabinet;Multiple stock storehouses 3 and weighing sensor 4It is arranged in cabinet 1.Each stock storehouse 3 has a door 5, and attemperator is additionally provided with cabinet 1, and attemperator, which has, to be addedRefrigeration heat function, to provide heat or cold to multiple stock storehouses, so as to play the effect of guaranteeing the quality to the commodity placed in stock storehouse.
On the basis of above-described embodiment, in another embodiment of the present invention, user identity is additionally provided with rackIdentification module, for gathering subscriber identity information;User identification module be radio frequency identification module, Quick Response Code acquisition module orNFC module.
On the basis of above-described embodiment, in another embodiment of the present invention, IMAQ is additionally provided with rackModule 6, for when controlling lock sensor to sense door switching information, carrying out IMAQ.
Fig. 4 is a kind of step flow chart based on the automatic vending method weighed of the present invention.
As shown in figure 4, according to another aspect of the present invention, there is provided it is a kind of based on the automatic vending method weighed, includingFollowing steps:
Step S1, obtain the weight in multiple stock storehouses, and the weight information that will be measured;
Step S2, obtain the door switching information being turned on and off of each door;
Step S3, based on the weight information and door switching information generation bill of goods.
Further, step S3 is based on the weight information and door switching information generation bill of goods, comprises the following steps:
Step S31, calculated based on the weight information, the commodity weight for being removed or being placed into;
Step S32, the door switching information sent based on control lock sensor, confirms the id information of door opened;
Step S33, it is to index in the door id information and type of merchandize pair using the id information of the door openedAnswer in table and retrieved, obtain type of merchandize;
Step S34, based on the commodity weight and type of merchandize generation bill of goods.
Further, in another embodiment based on the automatic vending method weighed, the step S3 is based on described heavyInformation and door switching information generation bill of goods are measured, is comprised the following steps:
Step S31 ', calculated based on the weight information, the commodity weight for being removed or being placed into;
Step S32 ', counted based on the commodity weight for being removed or being placed into and the particular commodity weight to prestoreCalculate, obtain commodity amount;
Step S33 ', the door switching information sent based on control lock sensor, confirms the id information of door opened;
Step S34 ', it is to index in the door id information and type of merchandize pair using the id information of the door openedAnswer in table and retrieved, obtain type of merchandize;
Step S35 ', based on the commodity amount and type of merchandize generation bill of goods.
It should be appreciated that the above-mentioned embodiment of the present invention is used only for exemplary illustration or explains the present invention'sPrinciple, without being construed as limiting the invention.Therefore, that is done without departing from the spirit and scope of the present invention is anyModification, equivalent substitution, improvement etc., should be included in the scope of the protection.In addition, appended claims purport of the present inventionCovering the whole changes fallen into scope and border or this scope and the equivalents on border and repairingChange example.