Pharmacy (sales counter) safety monitoring device and method for supervising based on wireless transmission
Technical field:
The present invention relates to a kind of safety detection technology field, more specifically to a kind of pharmacy (sales counter) safety monitoring device and method for supervising based on wireless transmission.
Background technology:
Though food, medicine are a kind of commodity, but be different from other commodity, this is determined by their attribute.Because food, the medicine direct relation public's healthy and life security.Therefore, need carry out tighten management for food, medicine.The inventor thinks that carrying out tighten management in the field of circulation of medicine has implication aspect two: the one, and the management of the supervision of food, medicine.All kinds of management organizations of both the central and local governments relevant regulations that occur frequently, as: " about the decision of further reinforcement food, drug safety work ", and for example: " management method of narcotics ", " medical toxicant management system " etc., in addition to the management of food and medicine, specifically implement to the person liable and guarantee its security on the system.The 2nd, the supervision and management of food, medicine quality.The regulations of this respect have: the GSP, and expressly providing in standard to have: the equipment that detects and regulate temperature, humidity; Dustproof, protection against the tide, mildew-resistant, anti-pollution and insect protected, protection against rodents, prevent equipment such as bird.The inventor thinks except implementing from the management rules system, should utilize high-tech means to lay the foundation for implementing tighten management, and along with the progress at full speed of science and technology, especially the fast development of electronic technology provides possibility for developing novel equipment.For large enterprise, accomplish that these are not so difficult, and for medium-sized and small enterprises, lack of funds, lack equipment, shortage of staff, lack technological means, big multiple enterprises is difficult to up to standard.For really the management rules of central authorities and local government's reinforcement drug control and medicine quality being fulfilled, the equipment of developing novel suitable medium-sized and small enterprises use is necessary.To these equipment requirements one is that management to medicine specifically implements to the person liable, the possibility of stopping to defalcate; The 2nd, implement the management of medicine quality, stop the rotten possibility of medicine.
Summary of the invention:
The objective of the invention is to provide at the prior art weak point a kind of will strengthen the medicine supervision implement to person liable's fingerprint management and that contain temperature, humidity medicine character surveillance device, implement remote transmission and record and implement the pharmacy based on wireless transmission (sales counter) safety monitoring device that supervisory system is adjusted.
Another object of the present invention provides a kind of method for supervising of above-mentioned safety monitoring device.
The objective of the invention is to realize: a kind of pharmacy (sales counter) safety monitoring device based on wireless transmission by following measure, include host computer and slave computer by wireless data connects, transport module and continuous safety monitoring center server thereof are formed, its special character is: described slave computer is by temperature, humidity detecting module, key-press module, display module, little processing and control module, wireless data connect, transport module, and fingerprint identification module is formed; Described display module connects little processing and control module output terminal, and key-press module connects little processing and control module input end, temperature, humidity detecting module, and wireless data connects, transport module, and fingerprint identification module is connected with the control bus of little processing and control module.
Described display module is the HF12864B2 LCD MODULE.
Described key-press module contains " temperature, humidity detection ", " fingerprint monitoring ", " comprehensive monitoring " key button.
Described little processing and control module is made up of little process chip P89C669FA.
Described temperature, humidity detecting module are that numeral temperature, humidity sensor SHT1x module are formed.
Described fingerprint identification module is the ZFM-201SA fingerprint identification module.
Described wireless data connects, transport module is the G24 of Motorola module.
To achieve these goals, the technical scheme that method for supervising of the present invention adopts is: by the step of the little processing and control module of operation, and the step of temperature, humidity detecting module, the step of fingerprint identification module, wireless data connects, the step of transport module is finished; Its concrete steps are:
The step of little processing and control module:
The first step starts and carries out hardware initialization and netinit, sets up network;
In second step, wait for safety monitoring center instruction and each module information;
The 3rd step, handle safety monitoring center instruction or user by the instruction of key-press module selection operation, operational order contains " temperature, humidity detection ", " fingerprint monitoring ", " comprehensive monitoring " three kinds of operator schemes;
In the 4th step, instruction sends to each sensor, waits for return information, handles after receiving information; When transmission is unsuccessful, reenter user's operational order and select, send instruction once more;
The 5th step, the information that the priority processing fingerprint identification module is sent to, temperature, humidity detecting module are sent to information and are taken second place;
The 6th step, after receiving fingerprint characteristic data, by the agreement form by wireless data connect, transport module sends to safety monitoring center, waits for safety monitoring center server feedback matching result, according to the feedback matching result on display screen, show, finish the specific people register or sign-out;
The 7th step, after the information warm when receiving, that humidity detecting module is sent to, the acquisition of information data are in safe range the time, instruction sensor is pressed the normal speed image data, and by wireless data connect, transport module sends to safety monitoring center server with the information of handling, data show on display screen simultaneously;
The 8th step, when the acquisition of information data were critical range, instruction sensor added the rapid rate image data, by wireless data connect, transport module sends to safety monitoring center server with the information of handling, data show on display screen simultaneously, require to pay attention to closely field condition;
The 9th step, wait for the information that continues detection, when the acquisition of information data fell after rise in safe range, instruction sensor was pressed the normal speed image data, and by wireless data connect, transport module sends to safety monitoring center server with the information of handling, data show on display screen simultaneously;
The tenth step, when the acquisition of information data stay in critical range, instruction sensor further adds the rapid rate image data, and by wireless data connect, transport module sends to safety monitoring center server with the information of handling, display module sends early warning information simultaneously, requires managerial personnel to keep in repair;
In the 11 step, when the acquisition of information data still surpassed critical range, display module showed guilty culprit;
In the 12 step, fix a breakdown and resume operation;
The operation steps of temperature, humidity detecting module:
The first step starts module, carries out the initialization of hardware;
Second step, finish after the initial work, enter the wait command status;
In the 3rd step, receive the instruction of little processing and control module and carry out it, by the sensor acquisition data;
The 4th step, gather finish after little processing and control module by wireless data connect, transport module sends to safety monitoring center server with the information of handling;
In the 5th step, wait for command status, or rate image data in tempo, or quicken or slow down the speed image data by new instruction;
The operation steps of fingerprint identification module:
The first step starts module, carries out the initialization of hardware;
Second step, finish after the initial work, enter holding state;
In the 3rd step, when managerial personnel's active typing fingerprint, after Flame Image Process, i.e. request sends fingerprint characteristic data;
The 4th step, wait for safety monitoring center server feedback matching result, finish the specific people register or sign-out;
The 5th step sent and to resend when unsuccessful, was returned to holding state after sending successfully;
Wireless data connects, the operation steps of transport module:
The first step starts module, carries out the initialization of hardware and the initialization of network, adds wireless network;
Second step, finish after the initial work, enter the wait command status;
The 3rd step, receive the instruction of little processing and control module and carry out it, send handshake to safety monitoring center server, prepare to connect, transmit for information about;
The 4th goes on foot, and receives the back-signalling of safety monitoring center server, just the information in the data storage area is sent to safety monitoring center server;
The 5th step resend if send when getting nowhere, and sent and successfully was returned to the wait command status.
Compared with prior art, because the safety monitoring device and the method for supervising that are used for pharmacy (sales counter) that have adopted the present invention to propose, adopted advanced electronic technology, the fingerprint management that the medicine supervision implements to the person liable will be strengthened, adopt temperature simultaneously, Humidity Detection is carried out scientific management to the medicine quality, stopped the possibility of going mouldy of medicine, particularly the present invention adopts wireless interface, the mode of transmission information, implement remote monitoring and record, be the instant safety case of understanding a plurality of pharmacies (sales counter), the tighten management mode of in time handling of pinpointing the problems at any time provides possibility.
Description of drawings:
Fig. 1 is the example structure block scheme that the present invention proposes.
Embodiment:
Below in conjunction with accompanying drawing embodiment is elaborated:
In one embodiment of the present of invention shown in Figure 1, a kind of pharmacy (sales counter) safety monitoring device based on wireless transmission, this device is by temperature, humidity detecting module, key-press module, display module, little processing and control module, wireless data connects, transport module, and fingerprint identification module is formed.Described display module connects little processing and control module output terminal, and key-press module connects little processing and control module input end, temperature, humidity detecting module, and wireless data connects, transport module, and fingerprint identification module is connected with the control bus of little processing and control module.
Described display module is the HF12864B2 LCD MODULE, it is a 12864B2 Chinese character image dot matrix lcd module, can show Chinese character and figure, built-in 8192 Chinese characters (16X16 dot matrix), 128 characters (8X16 dot matrix) and 64X256 dot matrix display random access memory (GDRAM).
Described key-press module contains: " humiture monitoring ", " fingerprint monitoring ", " comprehensive monitoring " key button.The user realizes different functions by the order of key-press module selection operation according to actual needs.
Described little processing and control module is made up of little process chip P89C669FA, and its inside solidification has control program, and the course of work of whole device is exactly the process of little process chip executive routine.
Described temperature, humidity detecting module are that digital hygro sensor SHT1x module is formed, its sensor comprises a capacitive character condensate hygrometric sensing assembly, a thermometric assembly made from gap material, and on same chip, realize seamless link with A/D converter and serial interface circuit.
Described fingerprint identification module is the ZFM-201SA fingerprint identification module, is to be the circuit of core with SynoChip high-speed dsp processor, and it has the intelligent modules of functions such as fingerprint typing, Flame Image Process, fingerprint comparison, search and template storage simultaneously.
Described wireless data connects, transport module is the G24 of Motorola module, and this is a commercial comparatively ripe product.
The method for supervising of this device is made up of the following step: this monitoring by the operation little processing and control module step, the temperature, humidity detecting module step, the step of fingerprint identification module, data connect, the step of transport module is finished; Its method for supervising is:
The step of little processing and control module:
The first step starts and carries out hardware initialization and netinit, sets up network;
In second step, wait for safety monitoring center instruction and each module information;
The 3rd step, handle safety monitoring center instruction or user by the order of key-press module selection operation, operational order contains " temperature, humidity detection ", " fingerprint monitoring ", " comprehensive monitoring " three kinds of operator schemes; Wherein " comprehensive monitoring " operator scheme is an operator scheme commonly used, its content has contained the content of operation of " temperature, humidity detection " and " fingerprint monitoring " pattern, normal operating conditions is selected " comprehensive monitoring " pattern for use, select " temperature, humidity detection " pattern when nobody works for use when night, when safety monitoring center has special order, select " fingerprint monitoring " pattern for use;
In the 4th step, operational order sends to each module sensors through serial bus, waits for return information, handles after receiving information; When transmission is unsuccessful, reenter user's operational order and select, send instruction once more;
The 5th step, the information that the priority processing fingerprint identification module is sent to, temperature, humidity detecting module are sent to information and are taken second place.The regulation that strictness is arranged because of the sale of narcotics and medical toxicant, medicine is sold the people and is got it filled and must the verification fingerprint just can open the medicine-chest of narcotics and medical toxicant, and its sale has random nature, so put prior in data processing;
The 6th step, after receiving fingerprint characteristic data, by the agreement form by wireless data connect, transport module sends to safety monitoring center, waits for safety monitoring center server feedback matching result, according to the feedback matching result on display screen, show, finish the specific people register or sign-out;
The 7th step, after the information warm when receiving, that humidity detecting module is sent to, the acquisition of information data are in safe range the time, instruction sensor is pressed the normal speed image data, and by wireless data connect, transport module sends to safety monitoring center server with the information of handling, data show on display screen simultaneously;
The 8th step when the acquisition of information data are critical range, showed the ecological deterioration of depositing medicine, and instruction sensor adds the rapid rate image data on the one hand, gathered a secondary data half an hour as former appointment, and is existing every 15 minutes collection one secondary data; And by wireless data connect, transport module sends to safety monitoring center with the information of handling, data show that display module sends early warning information simultaneously, requires managerial personnel to pay attention to field condition closely, finds out the reason of ecological deterioration simultaneously on display screen;
The 9th step, wait for the information that continues detection, when the acquisition of information data fell after rise in safe range, instruction sensor was pressed the normal speed image data, and by wireless data connect, transport module sends to safety monitoring center server with the information of handling, data show on display screen simultaneously;
In the tenth step, when the acquisition of information data stayed in critical range, instruction sensor further added the rapid rate image data, changed per 5 minutes collection one secondary data into as gathering a secondary data by original per 15 minutes; And by wireless data connect, transport module sends to safety monitoring center server with the information of handling, display module sends early warning information simultaneously, requires the preliminary work before managerial personnel carry out maintenance;
In the 11 step, when the acquisition of information data still surpassed critical range, display module showed guilty culprit, organizes the maintenance personal to rush to repair, and fixes a breakdown;
In the 11 step, resume operation after fixing a breakdown;
The operation steps of temperature, humidity detecting module:
The first step starts module, carries out the initialization of hardware;
Second step, finish after the initial work, enter the wait command status;
The 3rd step, receive the instruction of little processing and control module and carry out it, press the set rate image data by sensor;
The 4th step, gather finish after little processing and control module by wireless data connect, transport module sends to safety monitoring center with the information of handling, send unsuccessfully to continue to resend, until sending successfully;
In the 5th step, wait for command status, or rate image data in tempo, or quicken or slow down the speed image data by new instruction;
The operation steps of fingerprint identification module:
The first step starts module, carries out the initialization of hardware and the initialization of network, adds network;
Second step, finish after the initial work, enter holding state;
In the 3rd step, when managerial personnel's active typing fingerprint, after Flame Image Process, i.e. request sends fingerprint characteristic data;
The 4th step, wait for safety monitoring center server feedback matching result, show on display screen according to the feedback matching result, can open relevant medicine-chest after being confirmed to be the management litigant of narcotics and medical toxicant, finish the specific people register or sign-out;
The 5th step sent and to resend when unsuccessful, was returned to holding state after sending successfully;
Wireless data connects, the operation steps of transport module:
The first step starts module, carries out the initialization of hardware and the initialization of network, adds network;
Second step, finish after the initial work, enter the wait command status;
The 3rd step, receive the instruction of little processing and control module and carry out it, send handshake to safety monitoring center, prepare transmission for information about;
The 4th goes on foot, and receives the back-signalling of safety monitoring center, just the information in the data storage area is sent to safety monitoring center;
The 5th step resend if send when getting nowhere, and sent and successfully was returned to the wait command status.
Facts have proved, pharmacy based on wireless transmission of the present invention (sales counter) safety monitoring device and method for supervising, strengthen the fingerprint management that the medicine supervision implements to the person liable, method with wireless transmission is implemented remote transmission and record with environment temperature, the humidity of pharmacy (sales counter), and the method that the enforcement supervisory system is adjusted has satisfied the monitoring needs of people at similar applications.
The foregoing description is not construed as limiting the invention, and adopts the technical scheme that form obtained that is equal to replacement or equivalent transformation in every case, all drops within protection scope of the present invention.