CN111160056B - Data acquisition device and data acquisition method thereof - Google Patents

Data acquisition device and data acquisition method thereof Download PDF

Info

Publication number
CN111160056B
CN111160056B CN201911286759.XA CN201911286759A CN111160056B CN 111160056 B CN111160056 B CN 111160056B CN 201911286759 A CN201911286759 A CN 201911286759A CN 111160056 B CN111160056 B CN 111160056B
Authority
CN
China
Prior art keywords
data acquisition
data
decoding
trigger signal
trigger
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.)
Active
Application number
CN201911286759.XA
Other languages
Chinese (zh)
Other versions
CN111160056A (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.)
Wuxi Idata Technology Co ltd
Original Assignee
Wuxi Idata 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 Wuxi Idata Technology Co ltd filed Critical Wuxi Idata Technology Co ltd
Priority to CN201911286759.XA priority Critical patent/CN111160056B/en
Publication of CN111160056A publication Critical patent/CN111160056A/en
Application granted granted Critical
Publication of CN111160056B publication Critical patent/CN111160056B/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/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10366Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications
    • G06K7/10376Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable
    • 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • 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/146Methods for optical code recognition the method including quality enhancement steps
    • 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
    • G06K2007/10524Hand-held scanners

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a data acquisition device, which comprises a trigger, a first control unit, a second control unit and a third control unit, wherein the trigger is used for triggering to generate a trigger signal and ending to generate the trigger signal when the triggering is ended; the data acquisition device is used for acquiring data; the processor is used for receiving the trigger signal to control the data acquisition device to acquire data, and is further used for decoding the data acquired by the data acquisition device, judging the decoding process when the trigger signal disappears so as to add specific delay to the ongoing decoding process. When the trigger signal disappears, the decoding process in progress in the processor can be continued, and the decoding process can not be stopped along with the disappearance of the trigger signal, so that the integrity of the decoding process is ensured, the decoding efficiency is improved, and the barcode is prevented from being missed.

Description

Data acquisition device and data acquisition method thereof
Technical Field
The invention relates to a data acquisition device and a data acquisition method thereof.
The background technology is as follows:
when the existing bar code collector scans bar codes, a user triggers scanning by pressing a button, and meanwhile, the main control unit starts decoding; and when the user releases the button, the scanning is finished, and the main control unit finishes decoding. Since the decoding time of the barcode collector is usually about 150ms, for some barcodes which are difficult to decode, the decoding time even needs 200ms. However, when the user presses the button rapidly, the time of pressing the button each time can reach below 200ms, so that sometimes the user releases the button when the bar code collector is decoding, decoding is stopped, decoding failure is caused, scanning efficiency is reduced, and bar codes are easy to miss during continuous scanning.
The present invention addresses the above problems by providing a new data acquisition device and data acquisition method thereof, which employ new methods and techniques to solve these problems.
Disclosure of Invention
Aiming at the problems faced by the background technology, the invention aims to provide a data acquisition device and a data acquisition method for prolonging the ongoing decoding process when a trigger signal disappears.
In order to achieve the above purpose, the invention adopts the following technical means:
the invention provides a data acquisition device, which is characterized by comprising: the trigger is used for triggering to generate a trigger signal and ending generating the trigger signal when the triggering is ended; the data acquisition device is used for acquiring data; the processor is used for receiving the trigger signal to control the data acquisition device to acquire data, and is further used for decoding the data acquired by the data acquisition device, judging the decoding process when the trigger signal disappears so as to add specific delay to the ongoing decoding process.
Optionally, when the trigger finishes generating the trigger signal, the data collector finishes data collection.
Optionally, the trigger is a key, the user presses the key to trigger the key to generate a trigger signal, and the generation of the trigger signal is ended when the key is released.
Optionally, the device comprises a memory for storing the data collected by the data collector and a decoding library, and the processor is used for calling the decoding library to decode the collected data.
Optionally, the specific delay is positively correlated with the average decoding time of the processor.
The invention provides a data acquisition device, which is characterized by comprising: the trigger is used for triggering to generate a trigger signal and ending generating the trigger signal when the triggering is ended; the data acquisition device is used for acquiring data and comprises a decoding chip for decoding the acquired data; and the processor is used for receiving the trigger signal to trigger the data acquisition device to acquire data, and judging the decoding process of the decoding chip when the trigger signal disappears so as to add specific delay to the ongoing decoding process.
The invention provides a data acquisition method which is characterized by comprising the following steps of: sending a trigger signal through a trigger; collecting data through a data collector; decoding the data acquired by the data acquisition unit; the trigger terminates sending the trigger signal; and judging the decoding process, and adding a specific delay to the decoding process if the decoding process is in progress.
Optionally, when the trigger terminates sending the trigger signal, the data collector ends the data collection.
Optionally, the process of decoding the data is performed in a decoding chip, and the processor determines the decoding process.
Optionally, the process of decoding the data and the determination of the decoding process are both performed in the processor.
Compared with the prior art, the invention has the following beneficial effects:
according to the data acquisition device and the data acquisition method thereof, the data acquisition is triggered by the trigger signal sent by the trigger, the acquired data is decoded by the processor, and the decoding process is judged when the trigger signal disappears, so that specific delay is added to the ongoing decoding process. When the trigger signal disappears, the decoding process in progress in the processor can be continued, and the decoding process can not be stopped along with the disappearance of the trigger signal, so that the integrity of the decoding process is ensured, the decoding efficiency is improved, and the barcode is prevented from being missed.
Drawings
FIG. 1 is a perspective view of a data acquisition device of the present invention;
FIG. 2 is an enlarged view of the data collector of the present invention;
FIG. 3 is a block diagram of a data acquisition device of the present invention;
FIG. 4 is a block diagram of a data acquisition device according to another embodiment of the present invention;
fig. 5 is a flowchart of a method for collecting data by the data collecting device of the present invention.
Reference numerals of the specific embodiments illustrate:
data acquisition device 100 Shell 1 Key 2 Display 3 Window 4
Data collector 5 Camera 6 Light filling lamp 7 Processor 8 Decoding chip 9
Detailed Description
For a better understanding of the invention with objects, structures, features, and effects, the invention will be described further with reference to the drawings and to the detailed description.
As shown in fig. 1, an example of the data acquisition device 100 of the present invention is a handheld terminal (PDA), and the structure, function and usage of the data acquisition device 100 will be described in detail below using the handheld terminal as an example.
As shown in fig. 1, 2 and 3, the data acquisition device 100 includes a housing 1 for protection, and a data acquisition unit 5 and a processor 8 accommodated in the housing 1.
A plurality of keys 2 are arranged on the shell 1, and at least one key 2 forms a trigger. The front of the shell 1 is provided with a display screen 3, and the front end face is provided with a window 4, so that the data collector 5 can collect data through the window 4.
The data collector 5 is used for collecting image data, such as one-dimensional codes, two-dimensional codes or other graphic data. The data collector 5 comprises a camera 6 and a light supplementing lamp 7, wherein the camera 6 is used for collecting images and converting image signals into digital signals through photoelectric conversion and transmitting the digital signals to the processor 8; the light supplementing lamp 7 is used for supplementing light to the target image, so that the camera 6 can acquire a clearer image.
The processor 8 is electrically connected to the key 2 and the data collector 5, so as to receive a trigger signal generated by triggering the key 2, and further send an instruction to control the data collector 5 to collect data, specifically, the processor 8 is triggered by the trigger signal, controls the light supplementing lamp 7 of the data collector 5 to supplement light, and controls the camera 6 to collect an image with light supplementing, and the processor 8 is further used for decoding the image data collected by the data collector 5, and displaying the decoded information on the display screen 3.
When the trigger signal is removed (e.g. the user releases the key 2), the processor 8 will determine the decoding process, where there are several possible scenarios: firstly, the processor 8 decodes successfully before the user releases the key 2, and the decoding process is finished at the moment, and the processor 8 finishes the whole process; secondly, decoding overtime is caused before the user releases the key 2, and the decoding process is finished at the moment, and the processor 8 finishes the whole process; and thirdly, decoding is still performed before and after the user releases the key 2, and the decoding process is performed. Although the light filling lamp 7 stops filling light when the trigger signal is disappeared, and the data collector 5 stops collecting data or transmitting data to the processor 8, for the ongoing decoding process, the processor 8 will add a specific delay, i.e. the decoding process will not terminate with the disappearance of the trigger signal, but will extend the decoding process by a specific delay, so that the decoding process has sufficient decoding time, after which the processor 8 ends the whole process again. The duration of the specific delay is positively correlated with the average decoding time of the processor 8, that is, the longer the processor 8 needs to decode, the specific delay can be set to be longer manually, so the specific delay can be set according to statistics of how long the processor 8 decodes the average decoding time; or because the decoding time of different processors 8 is different, the specific delay can be set according to different processor 8 models; or the specific delay can be set according to different code systems because the decoding time of the same processor 8 for the code systems is different. Since the decoding time of most of the code bar codes by most of the processors 8 is around 150ms, and the time for the user to quickly press the key 2 can reach below 200ms as measured, the specific delay is preferably 50ms, so that the processors 8 have sufficient decoding time.
In this embodiment, the trigger is a key 2; in other embodiments (not shown, the same applies below), the trigger may be a virtual key on the touch screen; or the trigger may be a sensor (such as a gravity sensor, an acceleration sensor, a gyroscope, etc.) that may be used to detect a particular gesture of the user (such as a gravity sensor) to trigger generation of a trigger signal; or the trigger is a distance sensor (such as an IR proximity sensor), when the object is detected to be close, the trigger is triggered to generate a trigger signal, and when the object is moved away, the trigger signal disappears.
As shown in fig. 4, in other embodiments, the data collector 5 may include a decoding chip 9 (or decoding board), that is, the decoding chip 9 is integrated on the data collector 5 to decode the data collected by the data collector 5, without integrating a decoding function into the processor 8; or the decoding chip 9, the data collector 5 and the processor 8 are arranged separately. So that the decoding process takes place in said decoding chip 9 and the decision on the decoding process takes place in the processor 8.
As shown in fig. 5, a flowchart of a method for collecting data by the data collecting device 100 according to the present invention includes the following steps:
s1: the trigger signal is sent through the trigger.
When the trigger is triggered by the outside, namely, a trigger signal is sent to the controller, the controller further sends out an instruction to control the data collector 5 to collect data. In this embodiment, the trigger is a key 2, and the user triggers the trigger to send a trigger signal by pressing the key 2.
S2: data is acquired by the data acquisition unit 5.
The data collector 5 receives the instruction sent by the controller, namely, controls the light supplementing lamp 7 to supplement light, simultaneously controls the camera 6 to have bar code images for supplementing light, and converts image signals into digital signals through photoelectric conversion and transmits the digital signals to the processor 8.
S3: the data acquired by the data acquirer 5 are decoded.
The processor 8 further decodes the data.
S4: the trigger terminates the transmission of the trigger signal.
In this embodiment, when the user releases the key 2, the trigger stops sending the trigger signal, and the data collector 5 stops collecting data or stops transmitting data to the processor 8.
S5: and judging the decoding process.
S6, if decoding is completed, ending the whole process; if decoding is in progress, a specific delay is added to the decoding process.
When the trigger signal is removed (e.g. the user releases the key 2), the processor 8 will determine the decoding process, where there are several possible scenarios: firstly, the processor 8 decodes successfully before the user releases the key 2, and the decoding process is finished at the moment, and the processor 8 finishes the whole process; secondly, decoding overtime is caused before the user releases the key 2, and the decoding process is finished at the moment, and the processor 8 finishes the whole process; and thirdly, the decoding process is still performed before and after the user releases the key 2, and for the ongoing decoding process, the processor 8 adds a specific delay, that is, the decoding process is not terminated with the disappearance of the trigger signal, but the decoding process is prolonged by the specific delay, and then the processor 8 ends the whole process.
Finally, the processor 8 displays the decoded information on the display 3.
In other embodiments, the data collector 5 may include a decoding chip 9, and the step S3 may be performed in the decoding chip 9, and other steps are the same as those of the above embodiments.
The data acquisition device and the data acquisition method thereof have the following beneficial effects:
according to the data acquisition device 100 and the data acquisition method thereof, the data acquisition is triggered by the trigger signal sent by the trigger, the acquired data is decoded by the processor 8, and the decoding process is judged when the trigger signal disappears, so that a specific delay is added to the ongoing decoding process. When the trigger signal disappears, the decoding process in progress in the processor 8 can be continued, and the decoding process can not be stopped along with the disappearance of the trigger signal, so that the integrity of the decoding process is ensured, the decoding efficiency is improved, and the barcode is prevented from being missed.
The above detailed description is merely illustrative of the preferred embodiments of the invention and is not intended to limit the scope of the invention, so that all equivalent technical changes that can be made by the present specification and illustrations are included in the scope of the invention.

Claims (10)

1. A data acquisition device, comprising:
the trigger is used for triggering to generate a trigger signal and ending generating the trigger signal when the triggering is ended;
the data acquisition device is used for acquiring data;
the processor is used for receiving the trigger signal to control the data acquisition device to acquire data, and is further used for decoding the data acquired by the data acquisition device, judging the decoding process when the trigger signal disappears so as to add specific delay to the ongoing decoding process.
2. The data acquisition device of claim 1, wherein: and when the trigger finishes generating the trigger signal, the data acquisition unit finishes data acquisition.
3. The data acquisition device of claim 1, wherein: the trigger is a key, the user presses the key to trigger the key to generate a trigger signal, and the trigger signal is generated when the key is released.
4. The data acquisition device of claim 1, wherein: the data acquisition device comprises a memory for storing the data acquired by the data acquisition device and a decoding library, and the processor is used for calling the decoding library to decode the acquired data.
5. The data acquisition device of claim 1, wherein: the particular delay is positively correlated with the average decoding time of the processor.
6. A data acquisition device, comprising:
the trigger is used for triggering to generate a trigger signal and ending generating the trigger signal when the triggering is ended;
the data acquisition device is used for acquiring data and comprises a decoding chip for decoding the acquired data;
and the processor is used for receiving the trigger signal to trigger the data acquisition device to acquire data, and judging the decoding process of the decoding chip when the trigger signal disappears so as to add specific delay to the ongoing decoding process.
7. The data acquisition method is characterized by comprising the following steps of:
sending a trigger signal through a trigger;
collecting data through a data collector;
decoding the data acquired by the data acquisition unit;
the trigger terminates sending the trigger signal;
and judging the decoding process, and adding a specific delay to the decoding process if the decoding process is in progress.
8. The data acquisition method of claim 7, wherein: and when the trigger stops sending the trigger signal, the data acquisition unit ends data acquisition.
9. The data acquisition method of claim 7, wherein: the process of decoding the data is performed in a decoding chip, and the processor judges the decoding process.
10. The data acquisition method of claim 7, wherein: the process of decoding the data and the determination of the decoding process are both performed in the processor.
CN201911286759.XA 2019-12-14 2019-12-14 Data acquisition device and data acquisition method thereof Active CN111160056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911286759.XA CN111160056B (en) 2019-12-14 2019-12-14 Data acquisition device and data acquisition method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911286759.XA CN111160056B (en) 2019-12-14 2019-12-14 Data acquisition device and data acquisition method thereof

Publications (2)

Publication Number Publication Date
CN111160056A CN111160056A (en) 2020-05-15
CN111160056B true CN111160056B (en) 2023-10-03

Family

ID=70557124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911286759.XA Active CN111160056B (en) 2019-12-14 2019-12-14 Data acquisition device and data acquisition method thereof

Country Status (1)

Country Link
CN (1) CN111160056B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009260761A (en) * 2008-04-18 2009-11-05 Clarion Co Ltd Digital broadcast receiver, and decoder control method
CN106658176A (en) * 2016-11-07 2017-05-10 广州视源电子科技股份有限公司 Remote video display method and system
CN109740393A (en) * 2018-12-06 2019-05-10 无锡盈达聚力科技有限公司 Bar code scanning system and method
CN110012235A (en) * 2019-05-24 2019-07-12 上海商米科技有限公司 Imagewise exposure control method and device, computer readable storage medium, system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009260761A (en) * 2008-04-18 2009-11-05 Clarion Co Ltd Digital broadcast receiver, and decoder control method
CN106658176A (en) * 2016-11-07 2017-05-10 广州视源电子科技股份有限公司 Remote video display method and system
CN109740393A (en) * 2018-12-06 2019-05-10 无锡盈达聚力科技有限公司 Bar code scanning system and method
CN110012235A (en) * 2019-05-24 2019-07-12 上海商米科技有限公司 Imagewise exposure control method and device, computer readable storage medium, system

Also Published As

Publication number Publication date
CN111160056A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
TW378159B (en) Input position detection device and entertainment system
CN111368578A (en) Information processing method and electronic equipment
JP2004094353A (en) Identity discrimination system based on reading of pda/portable telephone picture multiple one-dimensional bar code
CA2491771A1 (en) Universal computing device
CN105227855B (en) A kind of image processing method and terminal
CN106896996B (en) Information image display method and device
CN109446940B (en) Fingerprint identification method, electronic device and computer readable medium
US7631811B1 (en) Optical headset user interface
CN111325045A (en) Bar code positioning system and bar code positioning method for scanner
CN107729833B (en) Face detection method and related product
CN111160056B (en) Data acquisition device and data acquisition method thereof
CN107577973B (en) image display method, image identification method and equipment
US9313581B2 (en) Hybrid optical code scanner user alert
US10896361B2 (en) High ambient light electronic screen communication method
CN108052895A (en) The method that remote handle aids in self-service lottery ticket terminal recognition minor
CN116562318A (en) Encoding format detection method and device based on PDA terminal and electronic equipment
CN111045529A (en) Data input method, system and related equipment
CN111079464B (en) Data terminal and data acquisition method thereof
JP6853973B2 (en) Monitoring system using an electronic payment terminal
CN111885302B (en) Image shooting method and device and electronic equipment
CN111935439B (en) Identification method and device and electronic equipment
CN110210397B (en) Fingerprint input method and related equipment
CN109523270B (en) Information processing method and terminal equipment
CN118114691A (en) Data acquisition method
JP6938952B2 (en) Mobile terminal device and serial code extraction program

Legal Events

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