[go: up one dir, main page]

CN111079464B - Data terminal and data acquisition method thereof - Google Patents

Data terminal and data acquisition method thereof Download PDF

Info

Publication number
CN111079464B
CN111079464B CN201911376968.3A CN201911376968A CN111079464B CN 111079464 B CN111079464 B CN 111079464B CN 201911376968 A CN201911376968 A CN 201911376968A CN 111079464 B CN111079464 B CN 111079464B
Authority
CN
China
Prior art keywords
signal
decoding
trigger
core
data
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
CN201911376968.3A
Other languages
Chinese (zh)
Other versions
CN111079464A (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.)
Shenzhen Yingda Information Technology Co ltd
Original Assignee
Shenzhen Yingda Information 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 Shenzhen Yingda Information Technology Co ltd filed Critical Shenzhen Yingda Information Technology Co ltd
Priority to CN202410260237.7A priority Critical patent/CN118114691A/en
Priority to CN201911376968.3A priority patent/CN111079464B/en
Publication of CN111079464A publication Critical patent/CN111079464A/en
Application granted granted Critical
Publication of CN111079464B publication Critical patent/CN111079464B/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/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
    • G06K7/1098Methods 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 the scanning arrangement having a modular construction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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
    • G06K7/1486Setting the threshold-width for bar codes to be decoded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • 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
    • G06K7/10881Methods 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 constructional details of hand-held scanners

Landscapes

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

Abstract

The invention provides a data terminal and a data acquisition method, wherein the data terminal is characterized by comprising a trigger, a trigger and a data acquisition unit, wherein the trigger is used for triggering to generate a trigger signal and generating a trigger ending signal when the triggering is ended; the data acquisition device is used for acquiring data; a memory for providing a memory space; the processor is used for sequentially storing the trigger signal and the trigger ending signal into the signal queue in real time, calling the signal in the signal queue and triggering the decoding of the data acquired by the data acquisition unit when the signal is the trigger signal; and ending decoding when the signal is a trigger end signal; wherein: the processor preferentially judges the decoding process before invoking the signal in the signal queue or before judging whether the signal is a trigger ending signal each time, so that the signal in the signal queue is continuously invoked when judging that the signal is not decoded; and when decoding is performed, judging whether the decoding time reaches a preset threshold value or not, and then continuing to call signals in the signal queue.

Description

Data terminal and data acquisition method thereof
Technical Field
The invention relates to a data terminal 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 invention aims at the problems and provides a novel data terminal and a data acquisition method thereof, which adopt novel methods and technical means to solve the problems.
Disclosure of Invention
Aiming at the problems faced by the background technology, the invention aims to provide a data terminal and a data acquisition method thereof, wherein the processing process of a trigger signal and a trigger ending signal is parallel to the decoding and ending decoding processes.
In order to achieve the above purpose, the invention adopts the following technical means:
The invention provides a data terminal, which is characterized by comprising: the trigger is used for triggering to generate a trigger signal and generating a trigger ending signal when the triggering is ended; the data acquisition device is used for acquiring data; a memory for providing a memory space; the processor is used for sequentially storing the trigger signal and the trigger ending signal into the signal queue in real time, calling the signal in the signal queue and triggering the decoding of the data acquired by the data acquisition unit when the signal is the trigger signal; and ending decoding when the signal is a trigger end signal; wherein: the processor preferentially judges the decoding process before invoking the signal in the signal queue or before judging whether the signal is a trigger ending signal each time, so that the signal in the signal queue is continuously invoked when judging that the signal is not decoded; and when decoding is performed, judging whether the decoding time reaches a preset threshold value or not, and then continuing to call signals in the signal queue.
Optionally, the processor is a multi-core processor, wherein the first core is configured to establish a signal queue, and the second core is configured to periodically invoke signals in the signal queue.
Optionally, a third core of the processor is configured to decode data acquired by the data acquisition unit.
Optionally, the method comprises a decoding chip, the process of decoding the data is performed in the decoding chip, and the processor judges the decoding process.
Optionally, the trigger is a key, the user presses the key to trigger the key to generate a trigger signal, and generates a trigger end signal when the key is released.
The invention provides a data acquisition method which is characterized by comprising the following steps of: s1, sequentially generating a trigger signal and a trigger ending signal through a trigger; s2, sequentially storing a trigger signal and a trigger ending signal into a signal queue in real time through a processor; s3, judging whether decoding is performed, if so, judging whether the decoding time reaches a preset threshold value and executing S4; if not, directly executing S4; and S4, calling the signal in the signal queue, triggering the data acquired by the data acquisition unit to be decoded and executing S3 when the signal is a trigger signal, and ending the decoding and executing S3 when the signal is a trigger ending signal.
Optionally, the processor is a multi-core processor, wherein the first core is configured to establish a signal queue, and the second core is configured to periodically invoke signals in the signal queue.
Optionally, a third core of the processor is configured to decode data acquired by the data acquisition unit.
Optionally, the process of decoding the data is performed in a decoding chip, and the processor determines the decoding process.
Optionally, in S4, when the signal queue is empty, S3 is performed.
Compared with the prior art, the invention has the following beneficial effects:
according to the data terminal and the data acquisition method thereof, the trigger signal and the trigger ending signal are sequentially stored into the signal queue in real time through the processor, signals in the signal queue are called, and when the signals are the trigger signals, the data acquired by the data acquisition device are triggered to be decoded; and ending decoding when the signal is a trigger end signal; the processor preferentially judges the decoding process before invoking the signal in the signal queue or before judging whether the signal is a trigger ending signal each time, so that the signal in the signal queue is continuously invoked when judging that the signal is not decoded; while decoding, it is judged whether the decoding time reaches the preset threshold value and the signals in the signal queue are continuously called. The processing process of the trigger signal and the trigger ending signal is parallel to the decoding and ending decoding processes, and the judging priority of the decoding process is higher than that of the trigger ending signal, so that the ongoing decoding process is preferentially controlled by a preset threshold value, and when the trigger ending signal is generated and the decoding process is ongoing, the decoding process can still be continued, thereby ensuring the integrity of the decoding process, reducing the code loss rate, improving the decoding efficiency and preventing the bar code from being missed.
Drawings
FIG. 1 is a perspective view of a data terminal 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 terminal according to one embodiment of the present invention;
FIG. 4 is a flow chart of the invention for establishing a signal queue for a data terminal;
FIG. 5 is a flow chart of a data terminal processing data in an embodiment of the invention;
FIG. 6 is a flow chart of a data terminal processing data according to another embodiment of the present invention;
Fig. 7 is a block diagram of a data terminal according to still another embodiment of the present invention.
Reference numerals of the specific embodiments illustrate:
Data terminal 100 Shell 1 Key 2 Display 3 Window 4 Data collector 5
Camera 6 Light filling lamp 7 Processor 8 Memory 9 Decoding chip 10
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 terminal 100 of the present invention is a hand-held terminal (PDA), and the structure, function and usage of the data terminal 100 will be described in detail below by taking the hand-held terminal as an example.
As shown in fig. 1,2 and 3, the data terminal 100 includes a housing 1 for protection, and a data collector 5, a processor 8 and a memory 9 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 a multi-core processor 8, and preferably four-core and above processors 8, including a first core, a second core, and a third core, the processor 8 is electrically connected to the key 2, the data collector 5, and the memory 9 is used for providing a storage space to store data and programs, such as a decoding library.
Referring to fig. 4 for assistance, the first core of the processor 8 is configured to receive a trigger signal and a trigger end signal generated by triggering the key 2, and further store the trigger signal and the trigger end signal in the memory 9 in real time to form a signal queue, specifically, when the user presses the key 2, the key 2 generates the trigger signal, and when the user releases the key 2, the key 2 generates the trigger end signal, and the first core stores the trigger signal and the trigger end signal in the signal queue as a first thread.
Referring to fig. 5 in an auxiliary manner, the second core is configured to determine a decoding process of the third core, and the determining process is started along with startup, and when the second core determines that the third core is decoding, it is further determined whether the decoding time reaches a preset threshold, and then the decoding process of the third core is controlled by the preset threshold. This process is referred to as the second thread and will be described in more detail later.
The preset threshold is set to be slightly larger than the average decoding time of the third core by people, and is preferably 150-200ms, and more preferably 200ms, because the average decoding time of most processors 8 on most digital barcodes is about 150 ms. For some bar codes which are difficult to decode, the decoding time may exceed 200ms, and the preset threshold value can be properly prolonged according to the requirement, otherwise, the preset threshold value can be shortened.
The second core is further configured to periodically invoke the signals in the signal queue in a first-in first-out manner, where the period is set to be within 50ms, preferably 5-30ms, and further preferably 10ms, which is far less than the average decoding time of the processor 8, so that the process of periodically invoking the signals can be fast performed, and the second core can have enough time to invoke the signals and make a judgment. This process is referred to as the third thread. When the second core invokes a trigger signal, an instruction is sent to control the data collector 5to collect data, specifically, the processor 8 is triggered by the trigger signal, controls the light supplementing lamp 7 of the data collector 5to supplement light and controls the camera 6 to collect an image with light supplementing, and the third core further invokes a decoding library in the memory 9 to decode the image data collected by the data collector 5; ending decoding when the second core invokes a trigger ending signal; when the signal queue is empty, the second thread will be executed again.
Since both the third thread and the second thread are periodically performed in the second core, the priority of the second thread is set to be higher than that of the third thread. Specifically, in the second thread, when the decoding time does not reach the preset threshold value and the third core is successfully decoded, the third core will end decoding and trigger the second core to end the second thread and start the third thread, when the decoding time does not reach the preset threshold value and the third core is still decoding, the next cycle is entered, and when the decoding time reaches the preset threshold value and the third core is still decoding, the second core will directly end the second thread and start the third thread; and when the second core judges that the third core is not decoded, directly ending the second thread and starting the third thread. Because the priority of the second thread is higher than that of the third thread, the decoding process is controlled by the preset threshold preferentially, and the trigger ending signal is called to end decoding only when the decoding time exceeds the preset threshold, so that the decoding process has enough time to go on. For example, when the time interval from the pressing of the key 2 to the releasing of the key 2 by the user is only 130ms, and the time from the acquisition of the decoded bar code by the data terminal 100 is 156ms, in the first 10ms period, the second core judges that the third core is not decoded and starts the third thread in the second thread, judges that the signal is a trigger signal in the third thread and starts the third core to decode and ends the current period; in the next 10ms period, the second core judges that the third core is still decoding, and the decoding time does not reach the preset threshold value of 200ms, and the second core directly enters the next 10ms period; the 13 cycles are repeated as such for 130ms, at which point the trigger end signal has been generated, however, since the second thread has a higher priority than the third thread, the decoding process in the third core will continue until decoding is successful at 156ms, the third core ends decoding and triggers the second core to start the third thread.
Setting a timeout time in a third thread for the situation that a user presses the key 2 for a long time, wherein when the second core judges that the decoding time of the third core reaches a preset threshold value, judging whether the total decoding time of the decoding process triggered by the previous trigger signal reaches the timeout time or not in the third thread again, if the total decoding time reaches the timeout time, triggering the third core to finish decoding, and finishing the current period by the second core to start the next period; if the timeout has not been reached, the next cycle is started directly until the decoding is successful or the decoding times out.
Taking a preset threshold of 200ms, a period of 10ms and a timeout time of 6s as an example, a timeout procedure will be described in detail: when the user presses the key 2 for a long time, the key 2 only sends out a trigger signal, the first core stores the trigger signal into the signal queue, at the same time, the second core executes a second thread and a third thread in a period of 10ms, the second core firstly judges that the third thread is not decoded, so as to start the signal in the signal queue for calling the third thread, when the second core judges that the called signal is the trigger signal, namely, the light supplementing lamp 7 is triggered for supplementing light, the data collector 5 transmits collected data to the third core for decoding, the period is ended after 10ms, the next 10ms period is entered, in the next period, the second core judges that the third core is decoding and the decoding time is not accumulated to a preset threshold value, and repeats the period again, 20 times, so that the decoding time is accumulated to a preset threshold value of 200ms, the second core ends the second thread and starts the third thread, since the signal queue is empty (only one time of trigger signal is called, and the user is pressing the key 2 for a long time, the trigger end signal is generated), the second core is not generated, the decoding time is not accumulated until the third core reaches the current decoding time reaches the third timeout period, and the current decoding time reaches the third timeout period, namely, the third decoding time reaches the next period is ended, and reaches the third timeout period, and reaches the current time of 600 s.
The above is merely illustrated for the convenience of those skilled in the art to understand the entire technical solution, and the purpose of the entire technical solution is: the acquisition (signal queue establishment) of the trigger signal and the trigger ending signal is parallel to the call, and the control is carried out through the period time, the preset threshold value, the overtime time and the thread priority in the process of signal call, so that the decoding process is controlled preferentially through the preset threshold value and the decoding result before the trigger ending signal is called to finish decoding, the condition that the decoding is not successfully finished when the quick key 2 is avoided, and the trigger ending signal directly triggers to finish decoding is realized.
In order to achieve the above objective, as shown in fig. 6, in yet another embodiment, the second thread may be incorporated into the third thread, that is, the second thread is only required to be set before the trigger end signal is invoked in the third thread, that is, the decoding process is firstly judged before judging whether the invoked signal is the trigger end signal, and when decoding is being performed, the decoding process is controlled by a preset threshold value, so as to avoid that the trigger end signal is invoked preferentially to directly end decoding.
In this embodiment, a plurality of threads are performed in a plurality of cores of the processor 8; in other embodiments, the processor 8 may be an on-chip multiprocessor 8 or a simultaneous multithreaded processor 8, even a symmetric multiprocessor or the like, which is capable of processing multiple threads simultaneously.
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.
In another embodiment, as shown in fig. 7, the data collector 5 may include a decoding chip 10 (or decoding board), that is, the decoding chip 10 is integrated on the data collector 5 to decode the data collected by the data collector 5, without integrating a decoding function onto the processor 8; or the decoding chip 10, the data collector 5 and the processor 8 are separately arranged. So that the decoding process takes place in said decoding chip 10 and the decision on the decoding process takes place in the processor 8.
Referring to fig. 4 and 5 again, a flowchart of the data terminal 100 according to the present invention for collecting data includes the following steps:
and S1, sequentially generating a trigger signal and a trigger ending signal through a trigger.
As described above, when the user presses the key 2, the key 2 generates a trigger signal, and when the user releases the key 2, the key 2 generates a trigger end signal.
And S2, sequentially storing the trigger signal and the trigger ending signal into a signal queue in real time through the processor 8.
As mentioned above, the processor 8 is a multi-core processor 8, the first core is configured to sequentially store the received trigger signal and the trigger end signal into the signal queue in the memory 9 in real time, the second core is configured to call the signal in the signal queue, and the third core is configured to decode the time.
S3, judging whether decoding is performed, if so, judging whether the decoding time reaches a preset threshold value and executing S4; if not, S4 is directly executed.
As described above, the second core of the processor 8 determines whether the third core is decoding, and when the third core is decoding, determines whether the decoding time reaches a preset threshold, and when the decoding time reaches the preset threshold, executes S4; and when the decoding time does not reach the preset threshold value, decoding is finished, and the decoding is successful, the third core automatically stops decoding, and the second core continues to execute S4. If the third core is not decoded, S4 is directly performed.
And S4, calling the signal in the signal queue, triggering the data acquired by the data acquisition unit 5 to be decoded and executing S3 when the signal is a trigger signal, and ending the decoding and executing S3 when the signal is a trigger ending signal.
Specifically, when the second core determines that the signal is the trigger signal, the light supplementing lamp 7 is triggered to supplement light, so that the camera 6 can collect a clear image, the data collector 5 converts the image into a digital signal and then transmits the digital signal to the third core, the third core further invokes a decoding library stored in the memory 9 to decode data, and the step S3 is repeated again; when the second core judging signal is a trigger ending signal, directly triggering the third core to end decoding, turning off the light supplementing lamp 7, and repeating the step S3 again; and when the second core judges that the signal queue is empty, S3 is executed again, when the second core judges that the signal queue is not decoded, the decoding is finished, the user stops operating, and the whole data acquisition flow is finished, and when the second core judges that the signal queue is still decoded, the user further judges whether the decoding time reaches a preset threshold value when the user presses the key 2 for a long time. In case the user presses the key 2 for a long time, this is controlled by setting a timeout period, as described above.
Finally, upon successful decoding, the processor 8 displays the decoded information on the display 3.
In other embodiments, as shown in fig. 6, the second thread may be incorporated into the third thread, that is, the second thread is only required to be set before the trigger end signal is invoked in the third thread, that is, the decoding process is firstly judged before judging whether the invoked signal is the trigger end signal, and when the decoding process is being performed, the decoding process is controlled through a preset threshold value, so that the priority invoking the trigger end signal is avoided from directly ending the decoding.
In other embodiments, the data terminal 100 may include a decoding chip 10, and the process of decoding the data collected by the data collector 5 may be performed in the decoding chip 10, and other steps are the same as those of the above embodiments.
The data terminal and the data acquisition method thereof have the following beneficial effects:
According to the data terminal 100 and the data acquisition method thereof, a trigger signal and a trigger end signal are sequentially stored in a signal queue in real time through the processor 8, signals in the signal queue are called, and when the signals are the trigger signals, the data acquired by the data acquisition unit 5 are triggered to be decoded; and ending decoding when the signal is a trigger end signal; the processor 8 preferentially judges the decoding process before invoking the signal in the signal queue or before judging whether the signal is a trigger ending signal each time, so that the signal in the signal queue is continuously invoked when judging that the signal is not decoded; while decoding, it is judged whether the decoding time reaches the preset threshold value and the signals in the signal queue are continuously called. The processing process of the trigger signal and the trigger ending signal is parallel to the decoding and ending decoding processes, and the judging priority of the decoding process is higher than that of the trigger ending signal, so that the ongoing decoding process is preferentially controlled by a preset threshold value, and when the trigger ending signal is generated and the decoding process is ongoing, the decoding process can still be continued, thereby ensuring the integrity of the decoding process, reducing the code loss rate, improving the decoding efficiency and preventing the bar code 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 (3)

1. A data terminal, comprising:
The trigger is used for triggering to generate a trigger signal and generating a trigger ending signal when the triggering is ended;
The data acquisition device is used for acquiring data;
A memory for providing a memory space;
The processor is provided with a first core, a second core and a third core, wherein the first core is used for sequentially storing a trigger signal and a trigger ending signal into the signal queue in real time, the second core is used for periodically calling the signal in the signal queue, and the third core is triggered to decode the data acquired by the data acquisition device when the signal is the trigger signal; and ending decoding when the signal is a trigger end signal; wherein:
The second core of the processor preferentially judges the decoding process of the third core before calling the signal in the signal queue or before judging whether the signal is a trigger ending signal each time, so that the signal in the signal queue is continuously called when the third core is not decoded; when the third core decodes, judging whether the decoding time reaches a preset threshold, and when the decoding time does not reach the preset threshold and the third core successfully decodes, ending decoding by the third core and then continuously calling signals in a signal queue; when the decoding time does not reach the preset threshold value and the third core is still decoding, entering the next period to continuously call the signal in the signal queue; when the decoding time reaches a preset threshold value and the third core is still decoding, the second core directly ends decoding of the third core and then continues to call signals in a signal queue;
The period of the second core calling signal is 5-30ms, the average decoding time of the third core is 150ms, and the preset threshold value is 150-200ms.
2. The data terminal of claim 1, wherein: the decoding device comprises a decoding chip, wherein the process of decoding data is carried out in the decoding chip, and the processor judges the decoding process.
3. The data terminal of claim 1, wherein: the trigger is a key, and the user presses the key to trigger the key to generate a trigger signal, and generates a trigger end signal when the key is released.
CN201911376968.3A 2019-12-27 2019-12-27 Data terminal and data acquisition method thereof Active CN111079464B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202410260237.7A CN118114691A (en) 2019-12-27 2019-12-27 Data acquisition method
CN201911376968.3A CN111079464B (en) 2019-12-27 2019-12-27 Data terminal and data acquisition method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911376968.3A CN111079464B (en) 2019-12-27 2019-12-27 Data terminal and data acquisition method thereof

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410260237.7A Division CN118114691A (en) 2019-12-27 2019-12-27 Data acquisition method

Publications (2)

Publication Number Publication Date
CN111079464A CN111079464A (en) 2020-04-28
CN111079464B true CN111079464B (en) 2024-04-19

Family

ID=70318521

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201911376968.3A Active CN111079464B (en) 2019-12-27 2019-12-27 Data terminal and data acquisition method thereof
CN202410260237.7A Pending CN118114691A (en) 2019-12-27 2019-12-27 Data acquisition method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202410260237.7A Pending CN118114691A (en) 2019-12-27 2019-12-27 Data acquisition method

Country Status (1)

Country Link
CN (2) CN111079464B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114689932B (en) * 2020-12-29 2025-03-18 南宁富联富桂精密工业有限公司 Data collection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5914476A (en) * 1997-11-04 1999-06-22 Welch Allyn, Inc. Optical reader configured to accurately and rapidly read multiple symbols
CN101675441A (en) * 2007-02-05 2010-03-17 手持产品公司 Be used to improve the dual-task decoder that symbol reads
CN109740393A (en) * 2018-12-06 2019-05-10 无锡盈达聚力科技有限公司 Bar code scanning system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7926721B2 (en) * 2008-03-26 2011-04-19 Hand Held Products, Inc. Processing scheme for an indicia reader
US8636212B2 (en) * 2011-08-24 2014-01-28 Metrologic Instruments, Inc. Decodable indicia reading terminal with indicia analysis functionality
US8695880B2 (en) * 2011-12-22 2014-04-15 Honeywell International, Inc. Imaging devices and methods for inhibiting or removing captured aiming pattern

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5914476A (en) * 1997-11-04 1999-06-22 Welch Allyn, Inc. Optical reader configured to accurately and rapidly read multiple symbols
CN101675441A (en) * 2007-02-05 2010-03-17 手持产品公司 Be used to improve the dual-task decoder that symbol reads
CN109740393A (en) * 2018-12-06 2019-05-10 无锡盈达聚力科技有限公司 Bar code scanning system and method

Also Published As

Publication number Publication date
CN118114691A (en) 2024-05-31
CN111079464A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
US10489572B2 (en) Method for screen unlocking of terminal based on fingerprint identification and terminal
RU2550540C2 (en) Visual compensation method and device
CN112613475B (en) Code scanning interface display method and device, mobile terminal and storage medium
EP3057309B1 (en) Method for controlling camera system, electronic device, and storage medium
US20160337581A1 (en) Photographing Method and Mobile Terminal
EP3153989A1 (en) Fingerprint recognition method and apparatus, computer program and recording medium
CN105812553A (en) Rapid shooting method and mobile terminal
US20170126962A1 (en) Method and system for quickly starting camera based on eyeprint identification
US10824891B2 (en) Recognizing biological feature
KR20180090696A (en) Sensor for capturing image and method for controlling thereof
CN111079464B (en) Data terminal and data acquisition method thereof
JP2011043876A (en) Image display device
EP2563005A1 (en) Image capture device, image capture method and programme
EP3065393A1 (en) System, method, and apparatus for controlling camera operations
WO2017156920A1 (en) Electronic terminal screen unlocking method, image acquisition method and device
EP3062515B1 (en) Image processing method and electronic device supporting the same
TW201235954A (en) Image reader
KR20130054576A (en) Method and apparatus for taking a self camera recording
CN103760978B (en) A kind of information processing method and electronic equipment
US10091367B2 (en) Information processing device, image forming apparatus and information processing method
CN112291475A (en) Photographing method and device and electronic equipment
CN106022048B (en) Unlocking screen method, image-pickup method and the device of a kind of electric terminal
CN111885302B (en) Image shooting method and device and electronic equipment
CN113268211B (en) Image acquisition method, device, electronic equipment and storage medium
CN105450927A (en) Image obtaining method and system based on pressure sensing and mobile terminal

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