A kind of moving 2 D code acquisition terminal based on embedded system
Technical field
The present invention relates to Quick Response Code acquisition terminal, is a kind of moving 2 D code acquisition terminal based on embedded system specifically.
Background technology
Quick Response Code collection based on all kinds of mobile phone terminal general-purpose platforms, cannot meet working environment harsh in industrial or agricultural and business environment and high-speed, high fault-tolerant Quick Response Code solution code requirement, and the hardware needing without industrial machine, be not easy to input, output and other subsequent treatment of the obtaining of image, information, also cannot be few for gathering Quick Response Code and gathering Quick Response Code kind for a long time, scope of application relative narrower;
Based on the general-purpose built-in type terminal of some Quick Response Code decoding stamen sheet, not only complex structure, and be subject to it to use Quick Response Code decoding stamen sheet to limit, can only decode to popular in the world Quick Response Code, cannot for example, decode to some independent intellectual property right Quick Response Codes (Z-code), also cannot carry out secondary development to Quick Response Code decoded portion.
Summary of the invention
Task of the present invention is will be for above-mentioned technical matters, and a kind of simple in structure, convenient and swift, accuracy is high, fault-tolerance is strong, applicability is wide moving 2 D code acquisition terminal based on embedded system is provided.
Technological means: the invention discloses a kind of moving 2 D code acquisition terminal based on embedded system, it is characterized in that: described acquisition terminal comprises handheld terminal, handheld terminal comprises primary module, input/output module, interface module and driver module, primary module comprises CPU module, in input/output module, be electrically connected with forward type photographing module, driver module comprises shooting driver module, interface module is called shooting driver module, the driver module that makes to make a video recording drives photographing module to carry out image taking, interface module and then an image photographing carry out Quick Response Code decoding, in interface module, be also provided with the application programming interface API for application program secondary development.
Described moving 2 D code acquisition terminal, using open source operating system Linux as basic kernel, increases described shooting driver module and described interface module on open source operating system.
Described forward type photographing module comprises the industrial camera of resolution higher than 3,000,000 pixels.
Described input/output module also comprises inputoutput data bus and respectively connected display apparatus module, wireless communication module, Keysheet module, USB module, and described photographing module is connected with inputoutput data bus.
Described primary module also comprises system bus and difference connected power module, memory module and clock module, and described CPU module is connected with system bus.
Described primary module also comprises the FLASH module being connected with system bus, and described memory module comprises RAM module, ROM module.
Described input/output module also comprises inputoutput data bus, and described primary module comprises system bus, and inputoutput data bus is connected with system bus.
Described handheld terminal is technical grade handheld terminal, and described CPU module adopts arm processor.
Described API support comprises calling of C language, java language, and described interface module comprises Quick Response Code decoding interface module, and it comprises the decoding interface of Z-code, QR code and DM code, supports Z-code and the QR code of CNS, the decoding of DM code.
Beneficial effect: the moving 2 D code acquisition terminal based on embedded system disclosed by the invention, be provided with forward type camera, adopt integrated packaged type handheld terminal, simple in structure, easy to use, can Quick Acquisition image in 2 D code, the setting of interface module, in interface module, increase the decoder module of respective two-dimensional code, can realize simultaneously and comprise Z-code, QR code, DM code is in the decoding of interior Quick Response Code, applicability is wide, and can carry out high speed, high fault-tolerant Quick Response Code decoding, and be provided with API, can be as required to program secondary development, make it can be more flexible, open.
Brief description of the drawings
Fig. 1 is one of structural representation of a kind of moving 2 D code acquisition terminal based on embedded system of the present invention;
Fig. 2 be a kind of moving 2 D code acquisition terminal based on embedded system of the present invention structural representation two;
Fig. 3 is the Quick Response Code acquisition process schematic flow sheet of a kind of moving 2 D code acquisition terminal based on embedded system of the present invention.
Wherein: 1-primary module, 2-input/output module, 11-CPU module, 12-system bus, 13-power module, 14-FLASH module, 15-memory module, 151-RAM module, 152-ROM module, 16-clock module, 21-photographing module, 22-inputoutput data bus, 23-display apparatus module, 24-wireless communication module, 25-Keysheet module, 26-USB module.
Embodiment
Embodiment 1
As depicted in figs. 1 and 2, the invention discloses a kind of moving 2 D code acquisition terminal based on embedded system, it comprises handheld terminal, handheld terminal comprises primary module 1, input/output module 2, interface module and driver module, primary module 1 comprises CPU module 11, in input/output module 2, be electrically connected with forward type photographing module 21, driver module comprises shooting driver module, interface module is called shooting driver module, the driver module that makes to make a video recording drives photographing module 21 to carry out image taking, interface module and then an image photographing carry out Quick Response Code decoding, in interface module, be also provided with the application programming interface API for application program secondary development, API supports to comprise C language, java language is at interior language call, can carry out according to specific needs secondary development, increase the applicability of Quick Response Code acquisition terminal, interface module comprises Quick Response Code decoding interface module, it comprises Z-code, the decoding interface of QR code and DM code, support the QR code of Z-code and CNS, the decoding of DM code, legacy interface module majority is decoded for single kind Quick Response Code, docking port module of the present invention is improved, designed Z-code simultaneously, QR code, the decoding interface of DM code, can realize the decoding of multiple Quick Response Code.Preferably moving 2 D code acquisition terminal, using open source operating system Linux as basic kernel, increases shooting driver module and interface module on open source operating system.
Preferably forward type photographing module 21 comprises the industrial camera of resolution higher than 3,000,000 pixels; Preferably handheld terminal is technical grade handheld terminal, and CPU module 11 adopts the arm processor of excellent performance.
Preferably input/output module 2 also comprises inputoutput data bus 22 and distinguishes connected display apparatus module 23, wireless communication module 24, Keysheet module 25, USB module 26, photographing module 21 is connected with inputoutput data bus, and being provided with of these equipment is beneficial to transmission, analysis, the processing of Quick Response Code related data.
Preferably primary module 1 also comprises system bus 12 and the connected power module 13 of difference, FLASH module 14, the preferred memory module 15 of memory module 15(comprises RAM module 151, ROM module 152) and clock module 16, CPU module 11 is connected with system bus 12, power module 13 can adopt high capacity cell, can carry out permanent supply to whole Quick Response Code acquisition terminal, memory module 15 also can first be used mass-memory unit, increase data storage capacities, in the time that being more applicable to the extensive length of the needs such as industry and commerce, mobile devices such as passing mobile phone gathers the field of Quick Response Code.
Preferably input/output module 2 also comprises inputoutput data bus 22, and primary module 1 comprises system bus 12, and inputoutput data bus 22 is connected with system bus 12.
Further describe to the preferred structure of this invention and for flow process, the principle of Quick Response Code collection below in conjunction with Fig. 1, Fig. 2, Fig. 3:
Hardware aspect, taking a general technical grade handheld terminal as hardware foundation, the CPU module of handheld terminal is selected ARM series, on this handheld terminal basis, (this module hardware adopts the industrial camera of resolution higher than 3,000,000 pixels to increase a forward type specialty photographing module, software respective two-dimensional code photographing module, corresponding shooting driver module), this camera is as an optional equipment of " input system " of whole hardware system, this module is connected by circuit with the data bus of the input system in handheld terminal input/output module, the data bus of input system is connected with inputoutput data bus again, photographing module is for image in 2 D code scanning, for this embedded system provides shooting, video capture function.Software aspect, first be that the embedded OS Linux that increases income makes basic kernel, carry out on this basis secondary development, increase respective two-dimensional code photographing module, corresponding shooting driver module, Quick Response Code decoding interface module, application programming interface (API), application program is by API Calls Quick Response Code decoding interface module, Quick Response Code decoding interface module is called shooting driver module, and then drive photographing module to take image in 2 D code (shooting driver module drives Quick Response Code photographing module control camera to take image), again by the decoding of Quick Response Code decoding interface module, decoded result is returned to API by successfully decoded, decode and unsuccessfully continue to call shooting driver module driving photographing module shooting image in 2 D code, as shown in Figure 3.
Fig. 1 mainly shows hardware system, and Fig. 2 shows main software system, and Fig. 3 shows Quick Response Code acquisition process flow process, and Fig. 1, Fig. 2 and Fig. 3 are as the reference diagram of the present embodiment, not in order to limit the present invention.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.