Content of the invention
Based on this it is necessary to provide a kind of identification and matching method and apparatus of medicine serial number.
A kind of identification and matching method of medicine serial number, methods described includes:
First terminal generates the message comprising default medicine serial number;
First terminal adds a CRC in the end of described serial number, and described message is converted to a verification reportLiterary composition;
First terminal described checking prediction message is carried in a wireless signal and is transmitted;
Second terminal receives checking prediction message and extracts the serial number in described checking prediction message;
Second terminal identifies whether described serial number is correct serial number, if so, then rejects described CRC.
Wherein in an embodiment, described serial number is included for embodying the classification of medicine, the character of packaging information.
Wherein in an embodiment, described CRC is the check code of a crc standard.
Wherein in an embodiment, described second terminal identifies whether described serial number is that correct serial number includes:
Extract former font sizes of described serial number, described former font sizes are compared with preset standard;
If comparing correct, judge the correct serial number of described Serial No..
Wherein in an embodiment, described second terminal identifies whether described serial number is that correct serial number includes:
Extract the rear several font sizes of described serial number, described rear several font sizes are compared with preset standard;
If comparing correct, judge the serial number of described Serial No. mistake.
A kind of identification and matching device of medicine serial number, described system includes first terminal and second terminal;
Described first terminal includes:
Generation module, for generating the message comprising default medicine serial number;
Modular converter, for adding a CRC in the end of described serial number, described message is converted to oneChecking prediction message;
Sending module, is transmitted for being carried on described checking prediction message in one wireless signal;
Described second terminal includes:
Receiver module, for receiving checking prediction message and extracting the serial number in described checking prediction message;
Identification module, for identifying whether described serial number is correct serial number, if so, then rejects described cyclic redundancy check (CRC)Code.
Wherein in an embodiment, described serial number is included for embodying the classification of medicine, the character of packaging information.
Wherein in an embodiment, described CRC is the check code of a crc standard.
Wherein in an embodiment, described identification module includes:
First extraction unit, for extracting former font sizes of described serial number, described former font sizes is entered with preset standardRow compares;
First judging unit, if correct for comparing, judges the correct serial number of described Serial No..
Wherein in an embodiment, described second terminal identifies whether described serial number is that correct serial number includes:
Second extraction unit, for extracting the rear several font sizes of described serial number, described rear several font sizes is entered with preset standardRow compares;
Second judging unit, if correct for comparing, judges the serial number of described Serial No. mistake.
Beneficial effect:
The invention provides a kind of identification and matching method of medicine serial number, methods described includes: first terminal generate comprise pre-If the message of medicine serial number;First terminal adds a CRC in the end of described serial number, by described reportLiterary composition is converted to a checking prediction message;First terminal described checking prediction message is carried in a wireless signal and is transmitted;Second terminalReceive checking prediction message and extract the serial number in described checking prediction message;Second terminal identifies whether described serial number is correct sequenceRow number, if so, then rejects described CRC.The identification and matching method intelligent of this medicine serial number, and canTo add password, compare safety.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, rightThe present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, andIt is not used in the restriction present invention.
Refer to Fig. 1, a kind of identification and matching method of medicine serial number, methods described includes:
S101: first terminal generates the message comprising default medicine serial number;
S102: first terminal adds a CRC in the end of described serial number, and described message is converted to oneChecking prediction message;
S103: first terminal described checking prediction message is carried in a wireless signal and is transmitted;
S104: second terminal receives checking prediction message and extracts the serial number in described checking prediction message;
S105: second terminal identifies whether described serial number is correct serial number, if so, then rejects described cyclic redundancy check (CRC)Code.
Wherein in an embodiment, described serial number is included for embodying the classification of medicine, the character of packaging information.
Wherein in an embodiment, described CRC is the check code of a crc standard.
Wherein in an embodiment, described second terminal identifies whether described serial number is that correct serial number includes:
Extract former font sizes of described serial number, described former font sizes are compared with preset standard;
If comparing correct, judge the correct serial number of described Serial No..
Wherein in an embodiment, described second terminal identifies whether described serial number is that correct serial number includes:
Extract the rear several font sizes of described serial number, described rear several font sizes are compared with preset standard;
If comparing correct, judge the serial number of described Serial No. mistake.
Refer to Fig. 2, a kind of identification and matching device of medicine serial number, described system includes first terminal and second eventuallyEnd;Described first terminal includes:
Generation module 100, for generating the message comprising default medicine serial number;
Modular converter 200, for adding a CRC in the end of described serial number, described message is converted toOne checking prediction message;
Sending module 300, is transmitted for being carried on described checking prediction message in one wireless signal;
Described second terminal includes:
Receiver module 400, for receiving checking prediction message and extracting the serial number in described checking prediction message;
Identification module 500, for identifying whether described serial number is correct serial number, if so, then rejects described cyclic redundancyCheck code.
Wherein in an embodiment, described serial number is included for embodying the classification of medicine, the character of packaging information.
Wherein in an embodiment, described CRC is the check code of a crc standard.
Wherein in an embodiment, described identification module includes:
First extraction unit, for extracting former font sizes of described serial number, described former font sizes is entered with preset standardRow compares;
First judging unit, if correct for comparing, judges the correct serial number of described Serial No..
Wherein in an embodiment, described second terminal identifies whether described serial number is that correct serial number includes:
Second extraction unit, for extracting the rear several font sizes of described serial number, described rear several font sizes is entered with preset standardRow compares;
Second judging unit, if correct for comparing, judges the serial number of described Serial No. mistake.
The invention provides a kind of identification and matching method of medicine serial number, methods described includes: first terminal generates bagMessage containing default medicine serial number;First terminal adds a CRC in the end of described serial number, by instituteState message and be converted to a checking prediction message;First terminal described checking prediction message is carried in a wireless signal and is transmitted;SecondTerminal receives checking prediction message and extracts the serial number in described checking prediction message;Second terminal identifies whether described serial number is correctSerial number, if so, then reject described CRC.The identification and matching method intelligent of this medicine serial number, andAnd password can be added, compare safety.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functionThe division of module is illustrated, and in practical application, can distribute above-mentioned functions by different function moulds as desiredBlock completes, and the internal structure of device will be divided into different functional modules, to complete all or part of work(described aboveEnergy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodimentJourney, will not be described here.
In several embodiments provided herein it should it is understood that disclosed mobile terminal and choose networkMethod, can realize in other way.For example, mobile terminal embodiment described above is only schematically,Described module or the division of unit, only a kind of division of logic function, actual can have other dividing mode, example when realizingAs multiple units or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, fillPut or the INDIRECT COUPLING of unit or communication connection, can make electrically, mechanical or other forms.
The described unit illustrating as separating component can make or may not be physically separate, show as unitThe part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multipleOn NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention schemePurpose.
In addition, can be integrated in a chip unit in each functional unit in each embodiment of the present invention it is also possible toIt is that unit is individually physically present it is also possible to two or more units are integrated on a unit.Above-mentioned integrated listUnit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unitWhen, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantiallyThe part in other words prior art being contributed or all or part of this technical scheme can be in the form of software productsEmbody, this computer software product is stored in a storage medium, including some instructions with so that a computerEquipment (can be personal computer, server or the network equipment etc.) or processor (processor) execution the present invention eachThe all or part of step of embodiment methods described.And aforesaid storage medium includes: u disk, portable hard drive, read only memory(rom, read-only memory), random access memory (ram, random access memory), magnetic disc or CDVarious can be with the medium of store program codes.
Above operation logic of the present invention is described in detail, the explanation of above-mentioned operation logic is only intended to help understandThe method of the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, in toolAll will change on body embodiment and range of application, in sum, this specification content should not be construed as to the present inventionRestriction.