Have cabinet and open the lottery ticket machine of monitoring function
Technical field
The present invention relates to a kind of lottery ticket machine, especially relate to a kind of lottery ticket machine that cabinet is opened monitoring function that has.
Background technology
Lottery ticket is raised social public purse as country, subsidizes the important channel of work for the public good development such as physical culture, welfare, education, and the development course in nearly ten years has been arranged in China.In recent years, Chinese lottery ticket market is flourish, the release one after another lottery ticket of various playing methods of all parts of the country, and China's issue of lottery volume hits new peak continuously.To calendar year 2001, lottery ticket sales reaches 26,000,000,000, and national lottery fan's number has risen to more than 3,000 ten thousand, and this numeral is also increasing progressively in the speed with annual 30%.The development of China's lottery ticket cause is less than 20 years, but the effect that lottery ticket is brought into play in China's economic and social development is increasing.By by 2004, raise more than 300 hundred million yuan of public welfare funds by the accumulative total of issuing welfare lottery tickets, be mainly used in social and welfare services and other utility of subsidizing the elderly, disabled person, orphan and helping poor crowd.Raise more than 300 hundred million yuan of public welfare funds by the distribution sports lottery ticket, be mainly used in the body building plan of people of whole country, the plan of winning honour in Olympics, set up making arrangements for of teenager's after-school activities place, 2008 Olympic Games etc. and other utility.
Lottery ticket equipment needs highly reliable data security; to prevent that data are stolen and revise; in existing lottery ticket machine product; the protection of entity lockset can arbitrarily be opened or only use to cabinet; exist and destroy the possibility that the back lockset is replaced; have hidden danger on data security, Sports Lottery Center can't know whether cabinet was illegally opened, lottery ticket sales data safety whether.
As application number is that the application for a patent for invention of CN201010221034.5 discloses a kind of portable lottery ticket machine, comprise the casing body, Box Cover, display, main frame, printer and keyboard, described display is installed on the described Box Cover, described main frame and described printer are installed in the described casing body, described main frame top is provided with the main frame seal closure, described keyboard is installed on the described main frame seal closure, described printer is connected with described main frame by different data lines respectively with described keyboard, also be provided with the box casing locking device that is used to lock described Box Cover and described casing body on the described portable lottery ticket machine, portable lottery ticket machine with said structure, there is the possibility that is replaced after the destruction in box casing locking device, has serious hidden danger on data security.
Summary of the invention
Purpose of the present invention overcomes deficiency of the prior art exactly, a kind of easy to use, low-power consumption is provided, can prevent cabinet illegal open have a lottery ticket machine that cabinet is opened monitoring function.
For solving the problems of the prior art, the present invention has the lottery ticket machine that cabinet is opened monitoring function, comprise cabinet and chassis lid thereof, also comprise the master control borad that is arranged in the described cabinet, wherein, be provided with cabinet open detection module in the described cabinet, described cabinet open detection module is connected with described master control borad by serial line interface.
Further, described cabinet open detection module comprises microcontroller, storer that is connected with described microcontroller and switching value input/output interface module respectively, also comprise the microswitch that is connected with described switching value input/output interface module, described microswitch is arranged on described cabinet and described chassis lid junction, also is provided with in the described microcontroller to be used for judging level signal judge module that whether described chassis lid is unlocked and opening the number of times computing module according to the be unlocked cabinet of number of times of the described chassis lid of judged result accumulative total of described level signal judge module according to the level signal that described switching value input/output interface module is received.
Further, described cabinet open detection module also comprises the battery charging module that is connected with described microcontroller, and described battery charging module is connected with described master control borad.
Further, promising described microcontroller power supply and be 5VSB (standby voltage) the stand-by circuit module of described battery charging module charging is set in the described master control borad.
Further, described microcontroller adopts the vacant working pattern.
The advantage that the present invention has the lottery ticket machine of cabinet unlatching monitoring function is:
1) cabinet open detection module is set, can prevents effectively that cabinet from illegally being opened, and guaranteed the lottery ticket sales safety of data;
2) battery charging module is set, and microcontroller is low-power consumption and adopts the vacant working pattern, can guarantee that the work of cabinet open detection module is more than 6 months and the influence that not whether powered by the lottery ticket machine is easy to use.
In sum, the present invention has the lottery ticket machine that cabinet is opened monitoring function, can prevent effectively that cabinet from illegally being opened, and has guaranteed the lottery ticket sales safety of data, has self charge function simultaneously, has avoided the restriction on outdoor power free environment for use.
Description of drawings
Fig. 1 has the structural representation that cabinet is opened the lottery ticket machine of monitoring function for the present invention.
Fig. 2 is the structural representation of master control borad and cabinet open detection module among Fig. 1.
Embodiment
The present invention will be further described in detail below in conjunction with accompanying drawing.
As shown in Figure 1, the present invention has the lottery ticket machine that cabinet is opened monitoring function, comprise cabinet 1 and chassis lid 2 thereof, also comprise the master control borad 11 and the cabinet open detection module 12 that are arranged in the cabinet 1, cabinet open detection module 12 is connected with master control borad 11 by serial line interface 13.
As shown in Figure 2, cabinet open detection module 12 comprises microcontroller 121, storer 122, switching value input/output interface module 123, microswitch 124 and battery charging module 125, wherein storer 122, switching value input/output interface module 123 and battery charging module 125 are connected with microcontroller 121 respectively, microswitch 124 is connected with switching value input/output interface module 123, is provided with level signal judge module 1211 and cabinet in the microcontroller 121 and opens number of times computing module 1212.
As shown in Figure 2, be provided with 5VSB stand-by circuit module 111 in the master control borad 11, when master control borad 11 has the external power supply power supply, the microcontroller 121 of cabinet open detection module 12 is by 111 power supplies of 5VSB stand-by circuit module, meanwhile, 5VSB stand-by circuit module 111 adopts the mode of trickle charge to battery charging module 125 chargings; When master control borad 11 does not have the external power supply power supply, then power, and the battery charging module 125 of charging fully can guarantee that 12 work of cabinet open detection module are more than 6 months by the battery charging module 125 of charging.
In the present embodiment, described microswitch 124 is arranged on cabinet 1 and chassis lid 2 junctions.
In the present embodiment, described microcontroller 121 adopts low-power scm, and adopts the vacant working pattern.
In the present embodiment, described storer 122 is the Flash storer, has the open record information of chassis lid 2.
In the present embodiment, described serial line interface 13 is I
2The C serial line interface is for cabinet open detection module 12 and master control borad 11 provide data communication.
In the present embodiment, described level signal judge module 1211 is used for judging according to the level signal that the microswitch 124 that switching value input/output interface module 123 is received is sent whether chassis lid 2 is unlocked, and the recorded information of judged result is stored in the storer 122.
In the present embodiment, described cabinet unlatching number of times computing module 1212 adds up the number of times that chassis lid 2 is unlocked according to the judged result of level signal judge module 1211, and result of calculation is stored in the storer 122.
The course of work that the present invention has the lottery ticket machine of cabinet unlatching monitoring function is: when chassis lid 2 is unlocked, be positioned at cabinet 1 and give switching value input/output interface module 123 with the microswitch 124 transmission level signals of chassis lid 2 junctions, the level signal analysis just that level signal judge module 1211 in the microcontroller 121 is accepted by switch amount input/output interface module 123, judge whether chassis lid 2 is opened, if low level signal, judge that then chassis lid 2 is unlocked, and with the open record information stores of chassis lid 2 in storer 122, the number of times that is unlocked of the chassis lid 2 that the cabinets unlatching number of times computing modules 1212 accumulative total level signal judge modules 1211 in the while microcontroller 121 are judged, and result of calculation is stored in the device 122, master control borad 11 can be at any time by communicate by letter with the microcontroller 121 open record information of reading machine case lid 2 of serial line interface 13, and this information can be uploaded to the data server of sports lottery ticket administrative center by network, compare by the maintenance record of storing with data server, just can know that according to comparison result sports lottery ticket administrative center there is not illegal open operation in this lottery ticket machine.
In a word, what embodiments of the invention were announced is its preferred implementation, but is not limited to this.Those of ordinary skill in the art understands spirit of the present invention very easily according to the foregoing description, and makes different amplifications and variation, but only otherwise break away from spirit of the present invention, all within protection scope of the present invention.