CN108230558A - The detection method and device of a kind of vending machine - Google Patents

The detection method and device of a kind of vending machine Download PDF

Info

Publication number
CN108230558A
CN108230558A CN201810092479.4A CN201810092479A CN108230558A CN 108230558 A CN108230558 A CN 108230558A CN 201810092479 A CN201810092479 A CN 201810092479A CN 108230558 A CN108230558 A CN 108230558A
Authority
CN
China
Prior art keywords
state
microswitch
type sensor
code
opposite type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810092479.4A
Other languages
Chinese (zh)
Other versions
CN108230558B (en
Inventor
李潜杰
伍朝阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yijia Network Co Ltd
Original Assignee
Shenzhen Yijia Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yijia Network Co Ltd filed Critical Shenzhen Yijia Network Co Ltd
Priority to CN201810092479.4A priority Critical patent/CN108230558B/en
Publication of CN108230558A publication Critical patent/CN108230558A/en
Application granted granted Critical
Publication of CN108230558B publication Critical patent/CN108230558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F11/00Coin-freed apparatus for dispensing, or the like, discrete articles
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

The present invention provides the detection method and device of a kind of vending machine, the technical field for the machine testing that is related to selling goods, including:In a goods purchase process, the conditional code of microswitch or opposite type sensor during object run at least once is performed in vending machine is detected;Server and server are sent to according to the conditional code received according to the feedback states code of microswitch or opposite type sensor, the working condition of vending machine is judged, to determine whether vending machine breaks down according to working condition.There is the technical issues of situation for blocking either more to fall can not obtain timely feedbacking so as to reach the situation that the commodity for timely feedbacking and solving in traditional vending machine are stuck or fall more in the commodity that the present invention is solved in traditional vending machine.

Description

The detection method and device of a kind of vending machine
Technical field
The present invention relates to the technical field for machine testing of selling goods, more particularly, to the detection method and device of a kind of vending machine.
Background technology
Shaft in prior art vending machine can only be rotated according to specified requirement, but if shaft is not according to finger Either shaft rotation is stuck or since microswitch breaks down for fixed requirement rotation, leads to shaft rotation always so that sell Commodity in cargo aircraft, which are stuck in vending machine, not to be fallen or commodity are fallen always.When there is the above situation, vending machine owns Person timely can not be confirmed and be fed back.
In view of the above-mentioned problems, effective solution is not proposed also.
Invention content
In view of this, the purpose of the present invention is to provide the detection method and device of a kind of vending machine, to solve tradition Vending machine in the commodity situation that occurs blocking or fall more the technical issues of can not obtaining timely feedbacking.
In a first aspect, an embodiment of the present invention provides a kind of detection method of vending machine, this method includes:In a commodity In purchasing process, the microswitch or opposite type sensor in detection vending machine are during object run at least once is performed Conditional code, wherein, the object run is the state switched repeatedly in closed state and opening state, and the conditional code is The microswitch or opposite type sensor perform the error code that failure returns later when performing an object run;By institute The conditional code for stating microswitch or opposite type sensor is sent to server and the server according to the shape received State code, determines whether the vending machine breaks down.
Further, conditional code packet of the microswitch during object run at least once is performed in vending machine is detected It includes:Whether the original state for detecting the microswitch is in an open state;If detecting the original state as closed state, The microswitch is then controlled to initialize to opening state;Detect whether the microswitch is initialized to the opening state; If it is judged that it is no, then first state code is returned to, and continue to detect whether the microswitch is initialized to the opening state, Until when meeting stop condition, stop the step of whether microswitch is initialized to the opening state is stated in detection.
Further, detecting microswitch in vending machine, the conditional code during object run is also performing at least once Including:In the case where the original state of the microswitch is in an open state, alternatively, having detected the microswitch In the case of initialization to the opening state, the microswitch is controlled to be in closed state by shaft;In the shaft In first preset time period of rotation, it is whether varied for the closed state to detect the microswitch;It is if described micro- Dynamic switch then returns to the second conditional code, and continue whether to detect the microswitch still in opening state to the server Varied is the closed state, until when meeting stop condition, stops detection and states whether microswitch changes as closed form The step of state.
Further, detecting microswitch in vending machine, the conditional code during object run is also performing at least once Including:If the varied microswitch is the closed state, the microswitch is controlled to be in by shaft and beaten Open state;In the second preset time period of shaft rotation, it is described beat whether varied to detect the microswitch Open state;If the microswitch returns to third state code, and continue to detect still in closed state to the server The whether varied microswitch is the opening state, until when meeting stop condition, stops detection and states microswitch The step of whether variation is in an open state.
Further, the conditional code of the microswitch is sent to server to include:It is described by the first state code Second conditional code and the third state code are sent to the server, wherein, when the conditional code that the server is got When meeting following stop condition, it is determined that the vending machine breaks down:The quantity of the first state code got is N It is a;The quantity of second conditional code got is N number of;The quantity of the third state code got is N number of;It gets The first state code, the summation quantity of second conditional code and the third state is N number of.
Further, conditional code of the opposite type sensor during object run at least once is performed in vending machine is detected Including:Detect whether the opposite type sensor is in the state of penetrating;If detecting the opposite type sensor as occlusion state, The opposite type sensor is controlled to be in the state of penetrating;Detect whether the opposite type sensor is initialized to the state of penetrating;If sentence Breaking, it is no, then returns to first state code, and continues to detect whether the opposite type sensor is initialized to the state of penetrating, until meeting During stop condition, stop detecting the opposite type sensor whether initialize to described pair penetrate state the step of.
Conditional code of the opposite type sensor during object run at least once is performed in detection vending machine further includes: In the case that the original state of the opposite type sensor is occlusion state, the opposite type sensor is controlled to be in penetrating by shaft State;In the first preset time period of shaft rotation, detection institute opposite type sensor is varied to penetrate state for described pair; If the opposite type sensor returns to the second conditional code, and continue described in detection still in occlusion state to the server Whether varied opposite type sensor is described to the state of penetrating, until when meeting stop condition, stops described pair of detection and penetrates biography The step of whether sensor changes as to penetrating state.
Further, conditional code of the opposite type sensor during object run at least once is performed in vending machine is detected It further includes:If the opposite type sensor is varied to penetrate state for described pair, controlled at the microswitch by shaft Occlusion state is in opening state or opposite type sensor;In the second preset time period of shaft rotation, institute is detected It is whether varied for the occlusion state to state opposite type sensor;If the opposite type sensor still in the state of penetrating, to The server returns to third state code, and it is the occlusion state to continue whether varied to detect the opposite type sensor, Until when meeting stop condition, stop the step of whether opposite type sensor changes as occlusion state is stated in detection.
Further, the conditional code of the opposite type sensor is sent to server to include:By the first state code, institute It states the second conditional code and the third state code is sent to the server, wherein, when the state that the server is got When code meets following stop condition, it is determined that the vending machine breaks down:The quantity of the first state code got is N It is a;The quantity of second conditional code got is N number of;The quantity of the third state code got is N number of;It gets The first state code, the summation quantity of second conditional code and the third state is N number of.
Second aspect, an embodiment of the present invention provides a kind of detection device of vending machine, which includes:Detection module and Judgment module, wherein, the detection module, in a goods purchase process, detect microswitch in vending machine or Conditional code of person's opposite type sensor during object run at least once is performed, wherein, object run is being closed for microswitch The state that conjunction state and opening state are switched repeatedly, alternatively, object run is opposite type sensor to the state of penetrating and blocking The state that state is switched repeatedly, the conditional code perform failure when performing an object run for the microswitch The error code returned afterwards;The judgment module, for by the conditional code of the microswitch or the opposite type sensor Conditional code is sent to server and the server according to the conditional code received, judges the work of the vending machine State, to determine whether the vending machine breaks down according to the working condition.
In embodiments of the present invention, first, in a goods purchase process, detect vending machine in microswitch or Conditional code of the opposite type sensor during object run at least once is performed, wherein, object run is being closed for microswitch The state that state and opening state are switched repeatedly, alternatively, object run is opposite type sensor to the state of penetrating and blocking shape The state that state is switched repeatedly, conditional code perform mistake for microswitch or opposite type sensor when performing an object run Lose the error code returned later;Then, the conditional code of microswitch or opposite type sensor is sent to server and clothes Device be engaged according to the conditional code received, determines whether vending machine breaks down.By above-mentioned detection method, can in time find simultaneously Solve the problems, such as the interim card of vending machine, and then the situation that the commodity solved in traditional vending machine occur blocking or fall more can not The technical issues of obtaining timely feedbacking is stuck or more so as to reach the commodity for timely feedbacking and solving in traditional vending machine Situation about falling.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and is obtained in attached drawing.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to tool in order to illustrate more clearly of the specific embodiment of the invention or technical solution of the prior art Body embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, it is described below In attached drawing be some embodiments of the present invention, for those of ordinary skill in the art, do not making the creative labor Under the premise of, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow chart of the detection method of vending machine provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the detection method of another vending machine provided in an embodiment of the present invention;
Fig. 3 is a kind of detail flowchart of the detection method of vending machine provided in an embodiment of the present invention;
Fig. 4 is the detail flowchart of the detection method of another vending machine provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of the detection device of vending machine provided in an embodiment of the present invention;
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiment be part of the embodiment of the present invention rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower all other embodiments obtained, shall fall within the protection scope of the present invention.
Embodiment one:
According to embodiments of the present invention, a kind of detection method embodiment of vending machine is provided, it should be noted that in attached drawing Flow the step of illustrating can be performed in the computer system of such as a group of computer-executable instructions, although also, Show logical order in flow charts, but in some cases, can be performed with the sequence being different from herein it is shown or The step of person describes.
Fig. 1 is a kind of detection method of vending machine according to embodiments of the present invention, as shown in Figure 1, this method is including as follows Step:
Step S102, in a goods purchase process, the microswitch or opposite type sensor that detect in vending machine exist Perform the conditional code at least once during object run, wherein, the object run be closed state and opening state into The state that row switches repeatedly, the conditional code are held for the microswitch or opposite type sensor when performing an object run The error code that row failure returns later.
The conditional code of the microswitch or the opposite type sensor is sent to server, Yi Jisuo by step S104 Server is stated according to the conditional code received, determines whether the vending machine breaks down.
In embodiments of the present invention, first, in a goods purchase process, detect vending machine in microswitch or Conditional code of the opposite type sensor during object run at least once is performed, wherein, object run is being closed for microswitch The state that state and opening state are switched repeatedly, alternatively, object run is opposite type sensor to the state of penetrating and blocking shape The state that state is switched repeatedly, conditional code perform mistake for microswitch or opposite type sensor when performing an object run Lose the conditional code returned later;Then, the conditional code of microswitch or opposite type sensor is sent to server and service Device determines whether vending machine breaks down according to the conditional code received.By above-mentioned detection method, it can find and solve in time The certainly interim card problem of vending machine, and then the situation that the commodity solved in traditional vending machine occur blocking or fall more can not obtain To the technical issues of timely feedbacking, it is stuck or falls more so as to reach the commodity for timely feedbacking and solving in traditional vending machine Situation.
In embodiments of the present invention, as shown in Fig. 2, the step S102, detects the microswitch or right in vending machine Conditional code of the sensor during object run at least once is performed is penetrated to include:
Step S1021, in a goods purchase process, the microswitch detected in vending machine is performing mesh at least once Mark the conditional code in operating process.
Step S1022, in a goods purchase process, the opposite type sensor detected in vending machine is performing at least once Conditional code during object run.
In embodiments of the present invention, as shown in figure 3, the step S1021, in a goods purchase process, detection is sold Conditional code of the microswitch during object run at least once is performed in cargo aircraft includes:
Step S111 detects the original state of the microswitch;
Step S121, if detecting the original state as closed state, control the microswitch initialize to Opening state;
Step S131, detects whether the microswitch is initialized to the opening state;
Whether step S141 if it is judged that no, then returns to first state code, and continue to detect the microswitch initial Change to the opening state, until when meeting stop condition, stop detection and state whether microswitch is initialized to the open shape The step of state.
In embodiments of the present invention, the original state of microswitch is detected first, if the original state of microswitch is Closed state then initializes the microswitch to opening state.Then, then detect whether microswitch has been initialised To opening state, if detecting that microswitch is not initialized to opening state, first state code is returned to server (for example, number 1).Then proceed to whether detection microswitch is initialized to opening state, until continuous n times return to the first shape During state code, stop that the step of whether detection microswitch has been initialized to opening state performed;Wherein, the quantity of the N By vending machine owner's self-defining, it is set as 3 under normal circumstances.
In embodiments of the present invention, as shown in figure 3, the step S1021, in a goods purchase process, detection is sold Conditional code of the microswitch during object run at least once is performed in cargo aircraft, further includes:
Step S211, in the case where the original state of the microswitch is in an open state, alternatively, described detecting Microswitch in the case of the opening state, controls the microswitch to be in closed form by shaft State;
Step S221 in the first preset time period of shaft rotation, detects whether the microswitch has become Turn to the closed state;
Step S231, if the microswitch sends the second conditional code still in opening state, to the server, And it is the closed state to continue whether varied to detect the microswitch, until when meeting stop condition, stops detection The step of whether microswitch is initialized to the opening state stated.
In embodiments of the present invention, after above-mentioned steps S121 is performed, if detecting the original state of microswitch Or the state after microswitch initialization is in an open state, alternatively, after step S131, if detecting that the fine motion is opened The opening state is closed, then vending machine controls microswitch to become closed form from opening state by shaft State.Simultaneously in the first preset time of shaft rotation, whether the state for detecting microswitch from opening state becomes closed form State, wherein, first preset time has vending machine owner's sets itself, and under normal circumstances, first preset time is 3s.If detecting that microswitch does not become closed state in the first preset time from opening state, returned to server The second conditional code (for example, number 2) is returned, and continues to detect whether microswitch becomes closed state, until continuous n times return to the After two condition code, stop the step of whether microswitch changes as closed state is stated in detection.
In embodiments of the present invention, as shown in figure 3, the step S1021, in a goods purchase process, detection is sold Conditional code of the microswitch during object run at least once is performed in cargo aircraft, further includes:
Step S311 if it is the closed state that the microswitch is varied, is controlled described micro- by shaft Dynamic switch is in opening state;
Step S321 in the second preset time period of shaft rotation, detects whether the microswitch has become Turn to the opening state;
Step S331, if the microswitch returns to third state code still in closed state, to the server, And it is the opening state to continue whether varied to detect the microswitch, until when meeting stop condition, stops detection State whether microswitch changes the step of being in an open state.
In embodiments of the present invention, after above-mentioned steps S221 is performed, it is if detecting that microswitch is varied The closed state, then vending machine by shaft control microswitch from closed state change be in an open state.Turn simultaneously in shaft In the second dynamic preset time, whether the state for detecting microswitch is in an open state by closed state change, wherein, described second Preset time has vending machine owner's sets itself, and under normal circumstances, second preset time is 3s.If detect fine motion Switch is not in an open state in the second preset time from closed state change, then to server return third state code (for example, 3) number, and continues to detect whether microswitch becomes and be in an open state, after continuous n times return to third state code, stop inspection Survey states whether microswitch changes the step of being in an open state.
Optionally, in embodiments of the present invention, as shown in figure 4, the step S1022, in a goods purchase process, Conditional code of the opposite type sensor during object run at least once is performed in detection vending machine includes:
Step S112 detects the original state of the opposite type sensor;
Step S122, if detecting that the original state for occlusion state, controls the opposite type sensor to initialize To the state of penetrating;
Whether step S132 detects the opposite type sensor and initializes to described pair and penetrate state;
Step S142, if it is judged that it is no, then first state code is returned to, and whether just to continue to detect the opposite type sensor Beginningization penetrates state to described pair, until when meeting stop condition, stops detection and states whether opposite type sensor is initialized to described right The step of penetrating state.
In embodiments of the present invention, the original state of opposite type sensor is detected first, if the initial shape of opposite type sensor State is occlusion state, then initializes the opposite type sensor to the state of penetrating.Then, then whether opposite type sensor is detected It is initialized to the state of penetrating, if detecting that opposite type sensor is not initialized to the state of penetrating, is returned to server First state code (for example, number 1).Then proceed to whether detection opposite type sensor is initialized to the state of penetrating, until continuous N During secondary return first state code, stop that the step of whether detection opposite type sensor has been initialized to penetrating state performed;Its In, the quantity of the N is set as 3 under normal circumstances by vending machine owner's self-defining.
In embodiments of the present invention, as shown in figure 4, the step S1022, in a goods purchase process, detection is sold Conditional code of the opposite type sensor during object run at least once is performed in cargo aircraft, further includes:
Step S212, the opposite type sensor original state be to the state of penetrating in the case of, alternatively, detecting It states in the case that initialized to described pair of opposite type sensor penetrates state, the opposite type sensor is controlled to be in by shaft and hidden Gear state;
Whether step S222 in the first preset time period of shaft rotation, detects the opposite type sensor Change as the occlusion state;
Step S232, if the opposite type sensor sends the second state still in the state of penetrating to the server Code, and it is the occlusion state to continue whether varied to detect the opposite type sensor, until when meeting stop condition, is stopped Detection state opposite type sensor whether initialize to described pair penetrate state the step of.
In embodiments of the present invention, after above-mentioned steps S122 is performed, if detecting the initial shape of opposite type sensor State after state or opposite type sensor initialization be to the state of penetrating, alternatively, after step S132, if detect it is described right It penetrates initialized to described pair of sensor and penetrates state, then vending machine controls opposite type sensor to become to the state of penetrating by shaft Occlusion state.Simultaneously in the first preset time of shaft rotation, whether the state of opposite type sensor is detected by becoming to penetrating state For occlusion state, wherein, first preset time has vending machine owner's sets itself, and under normal circumstances, described first is pre- If the time is 3s.If detecting that opposite type sensor does not become occlusion state in the first preset time to the state of penetrating, The second conditional code (for example, number 2) is returned to, and continue to detect whether opposite type sensor becomes occlusion state to server, until After continuous n times return to the second conditional code, stop the step of whether opposite type sensor changes as occlusion state is stated in detection.
In embodiments of the present invention, as shown in figure 4, the step S1022, in a goods purchase process, detection is sold Conditional code of the opposite type sensor during object run at least once is performed in cargo aircraft, further includes:
Step S312, if the opposite type sensor is varied for the occlusion state, controlled by shaft described in Opposite type sensor is in the state of penetrating;
Whether step S322 in the second preset time period of shaft rotation, detects the opposite type sensor Change and penetrate state for described pair;
Step S332, if the opposite type sensor returns to the third state still in occlusion state to the server Code, and continue to detect whether the opposite type sensor is varied penetrates state for described pair, until when meeting stop condition, stop The step of whether opposite type sensor changes as to penetrating state is stated in detection.
In embodiments of the present invention, after above-mentioned steps S222 is performed, if detecting that opposite type sensor is varied For the occlusion state, then vending machine controls opposite type sensor to become from occlusion state to the state of penetrating by shaft.Turning simultaneously In the second preset time that shaft rotation is moved, whether the state for detecting opposite type sensor is become from occlusion state to the state of penetrating, wherein, institute Stating the second preset time has vending machine owner's sets itself, and under normal circumstances, second preset time is 3s.If detection Go out opposite type sensor not becoming to the state of penetrating, then returning to the third state to server from occlusion state in the second preset time Code (for example, number 3), and continue to detect whether opposite type sensor becomes to the state of penetrating, until continuous n times return to third state code Afterwards, stop the step of whether opposite type sensor changes as to penetrating state is stated in detection.
In embodiments of the present invention, in above-mentioned steps S104, the conditional code of the microswitch is sent to server, with And the server judges the working condition of the vending machine, with according to the work shape according to the conditional code received State determines the process whether vending machine breaks down, with the conditional code of the opposite type sensor is sent to server, with And the server judges the working condition of the vending machine, with according to the work shape according to the conditional code received During state determines whether the vending machine breaks down, only the above process is introduced for one herein.For example, with fine motion The above process is introduced for switch.
In embodiments of the present invention, as shown in Figure 3 and Figure 4, step S104, by the conditional code of the microswitch (or The conditional code of the opposite type sensor) server and the server are sent to according to the conditional code received, judge The working condition of the vending machine, with according to the working condition determine the vending machine whether break down including:
The first state code returned every time is sent to the server by step S1041.
In embodiments of the present invention, as shown in Figure 3 and Figure 4, step S104, by the conditional code of the microswitch (or The conditional code of the opposite type sensor) server and the server are sent to according to the conditional code received, judge The working condition of the vending machine to determine whether the vending machine breaks down according to the working condition, further includes:
Second conditional code returned every time is sent to the server by step S1042, wherein
In embodiments of the present invention, as shown in Figure 3 and Figure 4, step S104 penetrates the opposite type sensor or described pair The conditional code of sensor is sent to server and the server according to the conditional code received, sells goods described in judgement The working condition of machine to determine whether the vending machine breaks down according to the working condition, further includes:
The third state code returned every time is sent to the server by step S1043.
In embodiments of the present invention, by the first state code, second conditional code and the third state code It is sent to after the server, when server is judged to meet following stop condition, stops above-mentioned detection process, and judge Go out vending machine failure:
When the conditional code that the server is got meets following stop condition, it is determined that event occurs in the vending machine Barrier:The quantity of the first state code got is N number of;The quantity of second conditional code got is N number of;It gets The third state code quantity to be N number of;The first state code got, second conditional code and the third shape The summation quantity of state is N number of.
In embodiments of the present invention, during single purchase, the first state code that is received according to server is described Second conditional code and the third state synchronous codes number judge the working condition of vending machine, if server receive it is described The summation quantity of first state code, second conditional code and the third state synchronous codes number reaches preset quantity, then says Bright vending machine breaks down, if the first state code that server receives, second conditional code and the third shape The summation quantity of state synchronous codes number does not reach preset quantity, then illustrates that vending machine works normally, wait for purchase next time Journey.
If that is, performing above-mentioned steps S111 to step S141 (or above-mentioned steps S112 to step S142) During, if continuous n times (such as 3 times) get first state code, it is determined that failure occurs in vending machine.And then, During above-mentioned steps S211 to step S231 (or above-mentioned steps S212 to step S232) is performed, if continuous n times (such as 3 times) get the second conditional code, it is determined that failure occurs in vending machine.And then, above-mentioned steps S311 is being performed extremely During step S331 (or above-mentioned steps S312 to step S332), if continuous n times (such as 3 times) get third shape State code, it is determined that failure occurs in vending machine.
If in addition, in the mistake for performing above-mentioned steps S111 to step S141 (or above-mentioned steps S112 to step S142) Cheng Zhong if 2 times continuous (being less than n times, such as 3 times) gets first state code, then continues to execute step S211 to step S231 (or step S212 to step S232).Performing step S211 to step S231 (or step S212 to step S232) During, if getting second conditional code, it is determined that the accumulative number of conditional code got is 3 times, at this point, really It makes vending machine and failure occurs.Based on this, if (or step S212 is to step performing step S211 to step S231 S232 it during), has not been obtained to the second conditional code, then continues to execute above-mentioned steps S311 to step S331 (or above-mentioned steps Rapid S312 to step S332) process.Performing step S311 to step S331 (or above-mentioned steps S312 to step S332) During, if getting a third state code, it is determined that the accumulative number of conditional code got is 3 times, at this point, really It makes vending machine and failure occurs.
Embodiment two:
The embodiment of the present invention additionally provides a kind of detection device of vending machine, and the detection device of the vending machine is mainly used for holding The detection method of a kind of vending machine that row the above of the embodiment of the present invention is provided, sells below to provided in an embodiment of the present invention The detection device of cargo aircraft does specific introduction.
Fig. 5 is a kind of schematic diagram of the detection device of vending machine according to embodiments of the present invention, as shown in figure 5, this is sold goods The detection device of machine mainly includes:Detection module 10 and judgment module 20, wherein:
The detection module 10 in a goods purchase process, detects the microswitch in vending machine or is passed to penetrating Conditional code of the sensor during object run at least once is performed, wherein, the object run is being closed for the micro-control switch The state that conjunction state and opening state are switched repeatedly, alternatively, the object run for the opposite type sensor to penetrating shape The state that state and occlusion state are switched repeatedly, the conditional code are performing one for the microswitch or opposite type sensor The error code that failure returns later is performed during secondary object run.
The judgment module 20, for the conditional code of the microswitch or the opposite type sensor to be sent to service Device and the server judge the working condition of the vending machine, with according to the work according to the conditional code received Determine whether the vending machine breaks down as state.
In embodiments of the present invention, first, in a goods purchase process, detect vending machine in opposite type sensor or Conditional code of person's opposite type sensor during object run at least once is performed, wherein, object run exists for opposite type sensor The state that occlusion state and opening state are switched repeatedly, alternatively, object run for opposite type sensor to the state of penetrating and screening The state that gear state is switched repeatedly, conditional code are opposite type sensor or opposite type sensor when performing an object run Perform the error code that failure returns later;Then, the conditional code of opposite type sensor or opposite type sensor is sent to service Device and server determine whether vending machine breaks down according to the conditional code received.It, can by above-mentioned detection method Find and solve the problems, such as the interim card of vending machine, and then the commodity solved in traditional vending machine occur blocking or fall more in time Situation the technical issues of can not obtaining timely feedbacking, timely feedback so as to reach and solve the commodity quilt in traditional vending machine The situation blocked or fallen more.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected or be integrally connected; Can be mechanical connection or electrical connection;It can be directly connected, can also be indirectly connected by intermediary, it can be with It is the connection inside two elements.For the ordinary skill in the art, it can understand that above-mentioned term exists with concrete condition Concrete meaning in the present invention.
In the description of the present invention, it should be noted that term " " center ", " on ", " under ", "left", "right", " vertical ", Either position relationship is based on orientation shown in the drawings or position relationship in the orientation of the instructions such as " level ", " interior ", " outer ", is only The device or element of the invention and simplified for describing rather than indicating that either hint is signified must have specific for ease of description Orientation, with specific azimuth configuration and operation, therefore be not considered as limiting the invention.In addition, term " first ", " second ", " third " are only used for description purpose, and it is not intended that instruction or hint relative importance.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of division of logic function, can there is other dividing mode in actual implementation, in another example, multiple units or component May be combined or can be integrated into another system, either some features can be ignored or does not perform.Another point is shown Show that the mutual coupling either discussed or direct-coupling or communication connection can be by some communication interfaces, device The either INDIRECT COUPLING of unit or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.
If the function realized in the form of SFU software functional unit and be independent product sale or in use, can To be stored in the non-volatile computer read/write memory medium that a processor can perform.Based on such understanding, this hair The part or the part of the technical solution that bright technical solution substantially in other words contributes to the prior art can be with soft The form of part product embodies, which is stored in a storage medium, including some instructions making Computer equipment (can be personal computer, server or the network equipment etc.) performs each embodiment of the present invention The all or part of step of the method.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various The medium of program code can be stored.
Finally it should be noted that:Embodiment described above, only specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art In the technical scope disclosed by the present invention, it can still modify to the technical solution recorded in previous embodiment or can It readily occurs in variation or equivalent replacement is carried out to which part technical characteristic;And these modifications, variation or replacement, not The essence of corresponding technical solution is made to be detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover the guarantor in the present invention Within the scope of shield.Therefore, protection scope of the present invention described should be subject to the protection scope in claims.

Claims (10)

1. a kind of detection method of vending machine, which is characterized in that including:
In a goods purchase process, the microswitch or opposite type sensor that detect in vending machine are performing mesh at least once The conditional code in operating process is marked, wherein, the object run carries out repeatedly for micro-control switch in closed state and opening state The state of switching, alternatively, the object run for opposite type sensor in the shape switched repeatedly to the state of penetrating and occlusion state State, the conditional code perform failure when performing an object run and return later for the microswitch or opposite type sensor Error code;
The conditional code of the microswitch or the opposite type sensor is sent to server and the server according to connecing The conditional code received, determines whether the vending machine breaks down.
2. according to the method described in claim 1, it is characterized in that, the microswitch in detection vending machine is performing at least once Conditional code during object run includes:
Whether the original state for detecting the microswitch is in an open state;
If detect that the original state for closed state, controls the microswitch to initialize to opening state;
Detect whether the microswitch is initialized to opening state;
If it is judged that it is no, then first state code is returned to, and continue to detect whether the microswitch is initialized to the opening State until when meeting stop condition, stops the step of whether microswitch is initialized to the opening state is stated in detection.
3. according to the method described in claim 2, it is characterized in that, the microswitch in detection vending machine is performing at least once Conditional code during object run further includes:
In the case where the original state of the microswitch is in an open state, the microswitch is controlled to be in by shaft and closed Conjunction state;
In the first preset time period of shaft rotation, it is whether varied for the closed form to detect the microswitch State;
If the microswitch returns to the second conditional code, and continue to detect institute still in opening state to the server It is the closed state whether varied to state microswitch, until when meeting stop condition, microswitch is stated in stopping detection is The step of no variation is closed state.
4. according to the method described in claim 3, it is characterized in that, the microswitch in detection vending machine is performing at least once Conditional code during object run further includes:
If the varied microswitch is the closed state, the microswitch is controlled to be in by shaft and opened State;
In the second preset time period of shaft rotation, it is whether varied for the open shape to detect the microswitch State;
If the microswitch returns to third state code, and continue to detect institute still in closed state to the server It is the opening state whether varied to state microswitch, until when meeting stop condition, microswitch is stated in stopping detection is The step of no variation is in an open state.
5. according to the method described in claim 4, it is characterized in that, the conditional code of the microswitch is sent to server packet It includes:
By the first state code, second conditional code and the third state code are sent to the server,
Wherein, when the conditional code that the server is got meets following stop condition, it is determined that event occurs in the vending machine Barrier:The quantity of the first state code got is N number of;The quantity of second conditional code got is N number of;It gets The third state code quantity to be N number of;The first state code got, second conditional code and the third shape The summation quantity of state is N number of.
6. according to the method described in claim 1, it is characterized in that, the opposite type sensor in detection vending machine is performing at least one Conditional code during secondary object run includes:
Whether the original state for detecting the opposite type sensor is to the state of penetrating;
If detect that the opposite type sensor for occlusion state, controls the opposite type sensor to be in the state of penetrating;
Detect whether the opposite type sensor is initialized to the state of penetrating;
If it is judged that it is no, then first state code is returned to, and continue to detect whether the opposite type sensor is initialized to penetrating shape State, until when meeting stop condition, stop detecting the opposite type sensor whether initialize to described pair penetrate state the step of.
7. according to the method described in claim 6, it is characterized in that, the opposite type sensor in detection vending machine is performing at least one Conditional code during secondary object run further includes:
In the case where the original state of the opposite type sensor is occlusion state, controlled at the opposite type sensor by shaft In to the state of penetrating;
In the first preset time period of shaft rotation, detection institute opposite type sensor is varied to penetrate state for described pair;
If the opposite type sensor returns to the second conditional code, and continue to detect still in occlusion state to the server The whether varied opposite type sensor is described to the state of penetrating, until when meeting stop condition, it is described right to stop detecting The step of whether sensor changes as to penetrating state penetrated.
8. the method according to the description of claim 7 is characterized in that the opposite type sensor in detection vending machine is performing at least one Conditional code during secondary object run further includes:
If the opposite type sensor is varied to penetrate state for described pair, the opposite type sensor is controlled to be in by shaft Occlusion state;
In the second preset time period of shaft rotation, it is described block whether varied to detect the opposite type sensor State;
If the opposite type sensor returns to third state code, and continue to detect still in the state of penetrating to the server The whether varied opposite type sensor is the occlusion state, until when meeting stop condition, stops detection and states to penetrating biography The step of whether sensor changes as occlusion state.
9. according to the method described in claim 8, it is characterized in that, the conditional code of the opposite type sensor is sent to server Including:
By the first state code, second conditional code and the third state code are sent to the server,
Wherein, when the conditional code that the server is got meets following stop condition, it is determined that event occurs in the vending machine Barrier:The quantity of the first state code got is N number of;The quantity of second conditional code got is N number of;It gets The third state code quantity to be N number of;The first state code got, second conditional code and the third shape The summation quantity of state is N number of.
10. a kind of detection device of vending machine, which is characterized in that described device includes:Detection module and judgment module, wherein,
The detection module, in a goods purchase process, detecting the microswitch in vending machine or to penetrating sensing Conditional code of the device during object run at least once is performed, wherein, object run in closed state and is beaten for microswitch The state that open state is switched repeatedly, alternatively, object run carries out instead for opposite type sensor to the state of penetrating and occlusion state The state switched again, the conditional code perform the mistake for failing and returning later when performing an object run for the microswitch Accidentally code;
The judgment module, for the conditional code of the conditional code of the microswitch or the opposite type sensor to be sent to clothes Business device and the server judge the working condition of the vending machine, with according to according to the conditional code received Working condition determines whether the vending machine breaks down.
CN201810092479.4A 2018-01-30 2018-01-30 Detection method and device for vending machine Active CN108230558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810092479.4A CN108230558B (en) 2018-01-30 2018-01-30 Detection method and device for vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810092479.4A CN108230558B (en) 2018-01-30 2018-01-30 Detection method and device for vending machine

Publications (2)

Publication Number Publication Date
CN108230558A true CN108230558A (en) 2018-06-29
CN108230558B CN108230558B (en) 2020-04-17

Family

ID=62669983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810092479.4A Active CN108230558B (en) 2018-01-30 2018-01-30 Detection method and device for vending machine

Country Status (1)

Country Link
CN (1) CN108230558B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112381996A (en) * 2020-10-16 2021-02-19 深圳市智莱科技股份有限公司 Vending machine lifting platform control method, vending machine and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101871795A (en) * 2009-04-24 2010-10-27 英业达股份有限公司 Method for detecting sensor function
KR20140052475A (en) * 2012-10-24 2014-05-07 롯데알미늄 주식회사 Apparatus for failure information in multi vending machine and method thereof
CN103903362A (en) * 2012-12-24 2014-07-02 航天信息股份有限公司 Self-service roll invoice selling device
CN105005093A (en) * 2015-06-23 2015-10-28 深圳怡化电脑股份有限公司 Detection circuit of opposite-emitting type photoelectric sensor
CN106502848A (en) * 2016-11-01 2017-03-15 浪潮(苏州)金融技术服务有限公司 A kind of using method of malfunction elimination device, system and malfunction elimination device
CN206675256U (en) * 2016-12-08 2017-11-28 北京融安特智能科技股份有限公司 Compact shelving with equipment automatic detection function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101871795A (en) * 2009-04-24 2010-10-27 英业达股份有限公司 Method for detecting sensor function
KR20140052475A (en) * 2012-10-24 2014-05-07 롯데알미늄 주식회사 Apparatus for failure information in multi vending machine and method thereof
CN103903362A (en) * 2012-12-24 2014-07-02 航天信息股份有限公司 Self-service roll invoice selling device
CN105005093A (en) * 2015-06-23 2015-10-28 深圳怡化电脑股份有限公司 Detection circuit of opposite-emitting type photoelectric sensor
CN106502848A (en) * 2016-11-01 2017-03-15 浪潮(苏州)金融技术服务有限公司 A kind of using method of malfunction elimination device, system and malfunction elimination device
CN206675256U (en) * 2016-12-08 2017-11-28 北京融安特智能科技股份有限公司 Compact shelving with equipment automatic detection function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112381996A (en) * 2020-10-16 2021-02-19 深圳市智莱科技股份有限公司 Vending machine lifting platform control method, vending machine and readable storage medium

Also Published As

Publication number Publication date
CN108230558B (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN103761160B (en) Detect fault state the method and apparatus subsequently recovering using user context information
CN101052971B (en) Object detection utilizing a rotated version of an image
CN103793288A (en) Software watchdog system and method
AU2021265722A1 (en) Product identification systems and methods
CN103197914B (en) Multiprocessor postpones the method and system performed
CN106932707B (en) Test the method, apparatus and product of digital circuit
EP3327528A1 (en) Information processing apparatus, information processing system, information processing method, and information processing program
CN109166000A (en) A kind of Intelligent cargo cabinet and the method for creating order
CN108230558A (en) The detection method and device of a kind of vending machine
CN104268979A (en) Method and device for detecting overlapped bank note
JP2006014110A (en) Rfid tag and rfid tag system
CN107678868A (en) Resource access management assembly and its method
CN109671211B (en) Intelligent container tearing and signing behavior monitoring method, intelligent container and computer storage medium
CN112487838B (en) Information prompting method, device, electronic equipment and storage medium
CN110347532A (en) Multi-partitioned systems backup method and device
CN108083188A (en) Arm support control device and method, aerial work platform and computer readable storage medium
CN107369016A (en) Method of payment and device
CN207684828U (en) Arm support control device and aerial work platform
KR101416020B1 (en) Apparatus for failure information in multi vending machine and method thereof
CN108765710A (en) The long-range method for running of self-service frame, device, storage medium and server
JP7499449B2 (en) System and method for detecting presence of a seat
CN109753404A (en) Control system status monitoring circuit, method and control system central processing unit
CN212862482U (en) Accommodation equipment
CN108121929A (en) The control method of card reader and card reader
KR100402762B1 (en) Controller system for game machine by using network and controlling method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Wu Chaoyang

Inventor after: Li Qianjie

Inventor before: Li Qianjie

Inventor before: Wu Chaoyang

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant