CN105550621A - Laser barcode scanning system and method based on mobile intelligent terminal - Google Patents

Laser barcode scanning system and method based on mobile intelligent terminal Download PDF

Info

Publication number
CN105550621A
CN105550621A CN201510982919.XA CN201510982919A CN105550621A CN 105550621 A CN105550621 A CN 105550621A CN 201510982919 A CN201510982919 A CN 201510982919A CN 105550621 A CN105550621 A CN 105550621A
Authority
CN
China
Prior art keywords
module
scan
interface
data
intelligent terminal
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
CN201510982919.XA
Other languages
Chinese (zh)
Other versions
CN105550621B (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.)
PERCEIVE WORLD TECHNOLOGY Co Ltd
Original Assignee
PERCEIVE WORLD TECHNOLOGY 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 PERCEIVE WORLD TECHNOLOGY Co Ltd filed Critical PERCEIVE WORLD TECHNOLOGY Co Ltd
Priority to CN201510982919.XA priority Critical patent/CN105550621B/en
Publication of CN105550621A publication Critical patent/CN105550621A/en
Application granted granted Critical
Publication of CN105550621B publication Critical patent/CN105550621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code

Abstract

The invention discloses a laser barcode scanning system and method based on a mobile intelligent terminal, and belongs to the technical field of laser barcode scanning. The system comprises a barcode scanning sensing module, a level conversion module, a signal processing module, a serial port driving module, a JNI (Java Native Interface) module, a scanning service module, an application system module and a display module. The method comprises the following steps: 1) starting serial port equipment, and controlling a scanning mode; 2) scanning and processing data; 3) receiving the data, and carrying out data conversion; 4) registering a callback interface, and calling the JNI module to provide a service interface for an upper-layer application; and 5) controlling the system to select a UI (User Interface) display way, and displaying a result. The laser barcode scanning system and method are completely realized on the basis of the mobile intelligent terminal, scanning accuracy is improved, scanning is not restricted by environment, barcode scanning speed is quickened, and the equipment is convenient in carrying, is small and portable and is especially suitable for occasions of mobile office.

Description

A kind of laser scan code system based on mobile intelligent terminal and method
Technical field
The present invention is specifically related to a kind of laser scan code system based on mobile intelligent terminal and method, belongs to laser barcode scanning technical field.
Background technology
Laser barcode scanning, be a kind of Bar Code generally applied now, bar code comprises one-dimension code and Quick Response Code.In prior art, as described in the bar code scan rifle that the scanister of specialty is announced as patent documentation CN104123521A, it comprises rifle body and wireless launcher, described wireless launcher is connected with described rifle body and uses, described rifle body lower end is provided with handle, described handle one end is provided with a data-interface, described rifle body front end is provided with scanner head, described scanner head is connected with the circuit board be located in described rifle body, described circuit board connects described data-interface, described data-interface socket end is connected with wireless launcher, not only hardware configuration is complicated to use this system, and rely on computer equipment, carry inconvenience, be unfavorable for mobile office.
Although have part mobile phone to provide scan pattern at present, it requires higher to illumination, accuracy, improves environmental baseline and the manual control factor of use.
Summary of the invention
Therefore, the object of the invention is to provide a kind of and realizes based on mobile intelligent terminal equipment, portably use conveniently, scan effective, not by the laser scan code system based on mobile intelligent terminal that environment and human factor affect, comprise bar code scan sensing module, for one-dimension code or Quick Response Code being converted to the digital signal that processor can identify, described laser scan code system also comprises level switch module, signal processing module, serial port drive module, JNI (JavaNativeInterface) module, scan service module, application system module, display module, the digital signal level that level switch module exports for reducing bar code scan sensor, signal processing module is used for realizing digital signal processing and display, serial port drive module is for obtaining the data of hardware serial ports, for upper strata provides the method opening serial equipment and the startup of gated sweep module, JNI module is used for gated sweep interface, c language program is converted to java language program, scan service module is used for registered callbacks interface, calling JNI module for upper layer application provides service interface, application system module is for providing different scan patterns and selective system UI (UserInterface) interface, display module is used for reading scan result.
Present invention also offers the laser barcode scanning method based on mobile intelligent terminal using said system, described method comprises:
A dozen open string jaws equipments of step, gated sweep pattern;
Open bar code scan sensing module by serial port drive module, application system module provides scan pattern;
Step 2 scans and processes data;
Bar code scan sensing module carries out bar code scan, one-dimension code or Quick Response Code is converted to the digital signal that processor can identify, level switch module reduces the digital signal level that bar code scan sensor exports, and signal processing module realizes digital signal processing and display;
Step 3 receives data, and data are changed;
Serial port drive module obtains the data of hardware serial ports, and JNI module gated sweep interface, is converted to java language program c language program;
Step 4 registered callbacks interface, calls JNI module for upper layer application and provides service interface;
Scan service Module registers callback interface, calls JNI module for upper layer application and provides service interface;
Step 5 control system selects UI interface display mode, display result;
Application system model choice system UI interface, signal processing module controls display module reading scan result.
Further, the startup of described bar code scan sensing module bottom control engine is realized by ioctl function.
Further, described serial port drive module is use epoll function to intercepting of scan-data, with the mode Real-time Obtaining scan-data of process blocking.
Further, serial communication is adopted between described bar code scan sensing module, level switch module, signal processing module.
Further, the method at described application system model choice system UI interface is: the call back function that different UI interfaces is corresponding different, adopts Observer Pattern, and when serial port drive module has data to input, the data that readjustment is corresponding give corresponding UI interface.
Beneficial effect of the present invention is: a kind of laser scan code system based on mobile intelligent terminal of the present invention and method, realize based on mobile intelligent terminal completely, barcode scanning accuracy rate improves, barcode scanning error rate is zero substantially, scanning is not by the restriction of environment, bright dark, the temperature height of illumination, do not affect and be scanned into power, barcode scanning speed is accelerated, from aim at one dimension or Quick Response Code to display screen reading scan to a peacekeeping Quick Response Code substantially there is no time delay, equipment carries more convenient, and equipment is small and exquisite, light, be better than the scanner equipment of computing machine.The occasion being particularly suitable for mobile office uses.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of laser scan code system based on mobile intelligent terminal of the present invention;
Fig. 2 is the process flow diagram of a kind of laser barcode scanning method based on mobile intelligent terminal of the present invention.
Embodiment
Below the specific embodiment of the present invention is described:
As shown in Figure 1, a kind of laser scan code system based on mobile intelligent terminal, comprise bar code scan sensing module, for one-dimension code or Quick Response Code being converted to the digital signal that processor can identify, laser scan code system also comprises level switch module, signal processing module, serial port drive module, JNI module, scan service module, application system module, display module, the digital signal level that level switch module exports for reducing bar code scan sensor, signal processing module is used for realizing digital signal processing and display, serial port drive module is for obtaining the data of hardware serial ports, for upper strata provides the method opening serial equipment and the startup of gated sweep module, JNI module is used for gated sweep interface, c language program is converted to java language program, scan service module is used for registered callbacks interface, calling JNI module for upper layer application provides service interface, application system module is for providing different scan patterns and selective system UI interface, display module is used for reading scan result.
Native system is based on mobile terminal resource, the camera (compatible conventional scanhead) that bar code scan sensing module can utilize mobile intelligent terminal to carry carries out data acquisition, decoding, signal processing module uses the processor of mobile intelligent terminal to process, serial port drive module, JNI module, scan service module, application system module all realizes based on the android system of mobile intelligent terminal, display module utilizes the display of mobile intelligent terminal to realize, when mobile terminal presses scanning key, bar code scan sensing module is responsible for image data and is decoded, decoded data is by after level conversion, serial port drive module goes to read decoded data, by this data upload to JNI module, JNI module upload the data to scan service module after carrying out format conversion to data, data are carried out data transmission according to the request of application system module by scan service module, data are presented to user by display module by application system module in charge.
As shown in Figure 2, use the laser barcode scanning method based on mobile intelligent terminal of said system, comprising:
A dozen open string jaws equipments of step, gated sweep pattern;
Open bar code scan sensing module by serial port drive module, application system module provides scan pattern;
Step 2 scans and processes data;
Bar code scan sensing module carries out bar code scan, one-dimension code or Quick Response Code is converted to the digital signal that processor can identify, level switch module reduces the digital signal level that bar code scan sensor exports, and signal processing module realizes digital signal processing and display;
Step 3 receives data, and data are changed;
Serial port drive module obtains the data of hardware serial ports, and JNI module gated sweep interface, is converted to java language program c language program;
Step 4 registered callbacks interface, calls JNI module for upper layer application and provides service interface;
Scan service Module registers callback interface, calls JNI module for upper layer application and provides service interface;
Step 5 control system selects UI interface display mode, display result;
Application system model choice system UI interface, signal processing module controls display module reading scan result.
Preferably, system can comprise by adaptive different scanner head: the New World, Motorola, mores, Honeywell.
Preferably, scanner head can adopt " reverse collection " (retro-collective) optical design can provide larger sweep limit.
Preferably, serial communication is adopted between bar code scan sensing module, level switch module, signal processing module.Per secondly can transmit 115200 bytes, transfer efficiency is high.
Preferably, the startup of scanning and closedown are the engine pins by gated sweep head.The object adding level switch module is mainly considered between scanner head and processor different to the identification of high level.
Preferably, the logic of system relative complex allows c language realize, the treatment effeciency improved like this.
Preferably, realize the startup of scanner head with button, the startup of bar code scan sensing module bottom control engine is realized by ioctl function.
Preferably, the method at application system model choice system UI interface is: the call back function that different UI interfaces is corresponding different, adopts Observer Pattern, and when serial port drive module has data to input, the data that readjustment is corresponding give corresponding UI interface.
Preferably, serial port drive module is use epoll function to intercepting of scan-data, with the mode Real-time Obtaining scan-data of process blocking, improves execution efficiency.
During use, in software, factory mode can be adopted by adaptive different scanner head.System service module and application program module can be run in different processes, which enhance execution efficiency, definitely the function of module.
System and method of the present invention can be used for utilizing mobile intelligent terminal to realize one dimension two-dimensional laser barcode scanning, while guarantee barcode scanning effect, realize the requirement reduced costs, the logic of system relative complex allows c language realize, by JNI module gated sweep interface, c language program is converted to java language program, which enhances treatment effeciency.
It is more than the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (6)

1. the laser scan code system based on mobile intelligent terminal, comprise bar code scan sensing module, for one-dimension code or Quick Response Code being converted to the digital signal that processor can identify, it is characterized in that, described laser scan code system also comprises level switch module, signal processing module, serial port drive module, JNI module, scan service module, application system module, display module, the digital signal level that level switch module exports for reducing bar code scan sensor, signal processing module is used for realizing digital signal processing and display, serial port drive module is for obtaining the data of hardware serial ports, for upper strata provides the method opening serial equipment and the startup of gated sweep module, JNI module is used for gated sweep interface, c language program is converted to java language program, scan service module is used for registered callbacks interface, calling JNI module for upper layer application provides service interface, application system module is for providing different scan patterns and selective system UI interface, display module is used for reading scan result.
2. utilize the laser barcode scanning method based on mobile intelligent terminal of the laser scan code system described in claim 1, it is characterized in that, described method comprises:
A dozen open string jaws equipments of step, gated sweep pattern;
Open bar code scan sensing module by serial port drive module, application system module provides scan pattern;
Step 2 scans and processes data;
Bar code scan sensing module carries out bar code scan, one-dimension code or Quick Response Code is converted to the digital signal that processor can identify, level switch module reduces the digital signal level that bar code scan sensor exports, and signal processing module realizes digital signal processing and display;
Step 3 receives data, and data are changed;
Serial port drive module obtains the data of hardware serial ports, and JNI module gated sweep interface, is converted to java language program c language program;
Step 4 registered callbacks interface, calls JNI module for upper layer application and provides service interface;
Scan service Module registers callback interface, calls JNI module for upper layer application and provides service interface;
Step 5 control system selects UI interface display mode, display result;
Application system model choice system UI interface, signal processing module controls display module reading scan result.
3., as claimed in claim 2 based on the laser barcode scanning method of mobile intelligent terminal, it is characterized in that, the startup of described bar code scan sensing module bottom control engine is realized by ioctl function.
4., as claimed in claim 2 based on the laser barcode scanning method of mobile intelligent terminal, it is characterized in that, described serial port drive module is use epoll function to intercepting of scan-data, with the mode Real-time Obtaining scan-data of process blocking.
5., as claimed in claim 2 based on the laser barcode scanning method of mobile intelligent terminal, it is characterized in that, between described bar code scan sensing module, level switch module, signal processing module, adopt serial communication.
6. as claimed in claim 2 based on the laser barcode scanning method of mobile intelligent terminal, it is characterized in that, the method at described application system model choice system UI interface is: the call back function that different UI interfaces is corresponding different, adopt Observer Pattern, when serial port drive module has data to input, the data that readjustment is corresponding give corresponding UI interface.
CN201510982919.XA 2015-12-24 2015-12-24 Laser barcode scanning system and method based on mobile intelligent terminal Active CN105550621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510982919.XA CN105550621B (en) 2015-12-24 2015-12-24 Laser barcode scanning system and method based on mobile intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510982919.XA CN105550621B (en) 2015-12-24 2015-12-24 Laser barcode scanning system and method based on mobile intelligent terminal

Publications (2)

Publication Number Publication Date
CN105550621A true CN105550621A (en) 2016-05-04
CN105550621B CN105550621B (en) 2017-04-19

Family

ID=55829805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510982919.XA Active CN105550621B (en) 2015-12-24 2015-12-24 Laser barcode scanning system and method based on mobile intelligent terminal

Country Status (1)

Country Link
CN (1) CN105550621B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951237A (en) * 2017-03-09 2017-07-14 江苏智联天地科技有限公司 A kind of bar code scan transmission method based on Android frameworks
WO2018090203A1 (en) * 2016-11-15 2018-05-24 肖莉 Barcode scanning control system and apparatus
CN110188848A (en) * 2019-05-29 2019-08-30 江苏智联天地科技有限公司 A kind of laser barcode scanning data Bluetooth HID system and method based on Android device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661553A (en) * 2009-09-11 2010-03-03 深圳市民德电子科技有限公司 Mini laser scanning device and portable terminal thereof
US20140131441A1 (en) * 2011-08-24 2014-05-15 Metrologic Instruments, Inc. Decodable indicia reading terminal with indicia analysis functionality
CN104679513A (en) * 2015-02-12 2015-06-03 无锡识凌科技有限公司 Device driver architecture development method in intelligent terminal
CN104700059A (en) * 2013-12-05 2015-06-10 航天信息股份有限公司 One-dimensional code scanning method based on Android system and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661553A (en) * 2009-09-11 2010-03-03 深圳市民德电子科技有限公司 Mini laser scanning device and portable terminal thereof
US20140131441A1 (en) * 2011-08-24 2014-05-15 Metrologic Instruments, Inc. Decodable indicia reading terminal with indicia analysis functionality
CN104700059A (en) * 2013-12-05 2015-06-10 航天信息股份有限公司 One-dimensional code scanning method based on Android system and device thereof
CN104679513A (en) * 2015-02-12 2015-06-03 无锡识凌科技有限公司 Device driver architecture development method in intelligent terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090203A1 (en) * 2016-11-15 2018-05-24 肖莉 Barcode scanning control system and apparatus
CN106951237A (en) * 2017-03-09 2017-07-14 江苏智联天地科技有限公司 A kind of bar code scan transmission method based on Android frameworks
CN110188848A (en) * 2019-05-29 2019-08-30 江苏智联天地科技有限公司 A kind of laser barcode scanning data Bluetooth HID system and method based on Android device

Also Published As

Publication number Publication date
CN105550621B (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN1815518A (en) Method and system for long-distance controlling device
CN105550621A (en) Laser barcode scanning system and method based on mobile intelligent terminal
WO2015003522A1 (en) Face recognition method, apparatus, and mobile terminal
CN102682267A (en) Method for quickly positioning and extracting one-dimensional and two-dimensional code graphics aiming at digital images
KR20130097381A (en) Apparatus and method for identifying operating system of host device in portable terminal
CN105573176A (en) Robot rapid connection method and robot
US20060262096A1 (en) Optical mouse/barcode scanner built into cellular telephone
CN106375935A (en) Rapid connection mode for Bluetooth input method and Bluetooth bar code scanner
CN110691165A (en) Navigation operation method and electronic equipment
CN106548574B (en) POS system and Bluetooth connection device
CN103955661B (en) A kind of moving 2 D code acquisition terminal based on embedded system
CN105786177A (en) Gesture recognition device and method
CN101102403A (en) Video input system and method for using mobile phone camera as external camera of external device
CN101179654B (en) Embedded system based image acquisition method of camera device
KR20070023429A (en) Infrared ray communication apparatus for universal serial bus
CN112672035A (en) Thumbnail generation method and terminal
CN202736067U (en) Fingerstall type scanner
CN105278417A (en) A single-chip-microcomputer-based computer book borrowing recording system
CN1801047A (en) Remote control system for computer and implementing method thereof
CN201955800U (en) Integrated networking certificate acquisition instrument with touch control input function
CN210573864U (en) Laser code scanning data Bluetooth HID system based on Android device
CN208673355U (en) A kind of fingerprint acquisition device
CN201145883Y (en) Hand-hold mobile terminal with motion recognition function and hereby being operated and controlled
CN202513989U (en) Mobile terminal pick-up device with two-dimensional code hardware decoding recognition
CN215181950U (en) Data transmission system and data transmission equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant