CN111353322A - Method for setting equipment time by scanning bar code - Google Patents

Method for setting equipment time by scanning bar code Download PDF

Info

Publication number
CN111353322A
CN111353322A CN202010171909.9A CN202010171909A CN111353322A CN 111353322 A CN111353322 A CN 111353322A CN 202010171909 A CN202010171909 A CN 202010171909A CN 111353322 A CN111353322 A CN 111353322A
Authority
CN
China
Prior art keywords
time
bar code
scanner
setting
scanning
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.)
Pending
Application number
CN202010171909.9A
Other languages
Chinese (zh)
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 Hefeng Technology Co ltd
Original Assignee
Shenzhen Hefeng 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 Hefeng Technology Co ltd filed Critical Shenzhen Hefeng Technology Co ltd
Priority to CN202010171909.9A priority Critical patent/CN111353322A/en
Publication of CN111353322A publication Critical patent/CN111353322A/en
Pending legal-status Critical Current

Links

Images

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 method for setting equipment time by scanning bar codes, which comprises the following steps: the display terminal dynamically generates a time bar code according to the current time, the time bar code is automatically or manually refreshed, and the time bar code comprises time and/or time zone information; after the scanner scans the time bar code on the display terminal, the current time and/or time zone is obtained and set in the scanner, thus completing the time setting function of the scanner. The invention can conveniently and quickly set the time of the scanner, and the time of the scanner can be set only by scanning one bar code. The method has the advantages that the requirement on hardware of the equipment is simple, the network function is not required, the excessive key and display functions are not required, and the time can be set only by the scanning function. The setting time is high in precision and can be accurate to the second level. The compatibility is good, and no additional software tool is needed. The customer can open a specific webpage through a computer, a mobile phone and a tablet to display the bar code, and the scanner can set time for scanning.

Description

Method for setting equipment time by scanning bar code
Technical Field
The invention relates to the technical field of time calibration, in particular to a method for setting equipment time by scanning bar codes.
Background
Many devices have real-time clock capability and the device is able to know the current date and time during operation. In actual operation, it is necessary to set an initial time for these apparatuses and calibrate the time periodically. However, many devices lack input channels, resulting in very complex setup times. Existing setup time methods and drawbacks:
1. key input setup time: the date and time are set bit by bit through a key and a display module on the equipment. This method is cumbersome to set up and requires the device to have a display screen and the device needs to be equipped with enough keys to set up.
2. Time is set using NTP network: after the equipment is networked, the current time is obtained from the time server through the NTP network protocol and is set as the time of the equipment. The method can quickly and conveniently set the time of the equipment, but the equipment is required to have network function and is connected to the network.
3. The time is set through communication interfaces such as USB and serial ports: the lower computer software is developed aiming at the equipment, the equipment is communicated with the lower computer through a USB or a serial port, and the lower computer acquires the current time and sets the time of the equipment through the USB or the serial port. The method needs to develop special lower computer software for setting, and because the tool has the factors of operating system compatibility problem, difficulty in obtaining the tool by a client and the like, the end user has difficulty in setting time by using the tool.
Disclosure of Invention
In view of the above, in order to solve the above problems in the prior art, the present invention provides a method for setting a device time by scanning a barcode.
The invention solves the problems through the following technical means:
a method for setting equipment time by scanning bar codes comprises the following steps:
the display terminal dynamically generates a time bar code according to the current time, the time bar code is automatically or manually refreshed, and the time bar code comprises time and/or time zone information;
after the scanner scans the time bar code on the display terminal, the current time and/or time zone is obtained and set in the scanner, thus completing the time setting function of the scanner.
Further, the method for dynamically generating the time bar code by the display terminal according to the current time comprises the following steps:
A. the display terminal accesses a webpage by using a browser, and the webpage dynamically generates a time bar code according to the current time;
B. running an application program on the PC or notebook computer terminal, wherein the application program dynamically generates a time bar code according to the current time;
C. the method comprises the steps that a specific APP is operated by a mobile phone or a tablet device, and a time bar code is generated by the APP according to the current time;
D. and the equipment with the display function generates a time bar code according to the current time.
Further, after scanning the time barcode on the display terminal, the scanner obtains the current time and/or time zone, and the setting into the scanner specifically includes:
A. the image acquisition module acquires time bar code image information at high frequency and then transmits the time bar code image information to the CPU for processing;
B. after receiving the image information, the CPU performs image preprocessing, including: noise filtering, image sharpening and fuzzy part complementing;
C. the CPU decodes the preprocessed picture, and if the decoding is successful, corresponding bar code information can be obtained;
D. recognizing the decoded bar code, and if the bar code is not the set time bar code, processing according to a common bar code processing flow;
E. if the bar code is identified to be the time setting bar code, whether the time information is legal or not needs to be judged firstly, and if the time information is illegal, an error is prompted through sound or an indicator light;
F. if the time information is judged to be legal, time delay correction processing is needed; because the bar code can produce the time delay error in generating and scanning, need to reduce the time delay error with the algorithm;
G. and setting the corrected time information into a real-time clock system of the scanner to finish the time setting operation of the scanner.
Further, the display terminal is a PC, a notebook, a mobile phone or a tablet.
Further, the time barcode is a one-dimensional code or a two-dimensional code.
Compared with the prior art, the invention has the beneficial effects that at least:
1. the time of the scanner can be conveniently and rapidly set, and the time of the scanner can be set only by scanning one bar code.
2. The method has the advantages of simple hardware requirement on equipment, no need of network function, no need of excessive keys and display function, and capability of completing the time setting function only by the scanning function.
3. The setting time has high precision and can be set to the second-level time accurately.
4. The compatibility is good, and no additional software tool is needed. The customer can open a specific webpage through a computer, a mobile phone and a tablet to display the bar code, and the scanner can set time for scanning.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method of setting device time by bar code scanning according to the present invention;
FIG. 2 is a topological diagram of the method for setting the device time by bar-code scanning according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be noted that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work based on the embodiments of the present invention belong to the protection scope of the present invention.
Examples
For a device with a barcode scanning function (a device capable of scanning a one-dimensional code or a two-dimensional code, hereinafter referred to as a scanner for short), scanner time may be set by scanning the one-dimensional code or the two-dimensional code (hereinafter, the one-dimensional code and the two-dimensional code are collectively referred to as a barcode). The display terminal is a device with a display function, and can be a PC, a notebook, a mobile phone, a tablet and the like.
As shown in fig. 1 and 2, the present invention provides a method for setting device time by scanning bar code, comprising the following steps:
and S1, dynamically generating a bar code according to the current time by the display terminal, wherein the bar code can be refreshed automatically or manually (or the time can be designated manually), the bar code comprises time and time zone information, and the time zone information can be selected. The method for generating the bar code by the display terminal generally comprises the following steps:
A. the display terminal uses the browser to access the webpage, and the webpage dynamically generates the bar code containing the time information according to the current time.
B. And running an application program on the PC or the notebook computer, wherein the application program dynamically generates the time information bar code according to the current time.
C. And the mobile phone or the tablet device runs a specific APP, and the APP generates a time information bar code according to the current time.
D. And other equipment with a display function generates the time information bar code according to the current time.
And S2, after scanning the bar code on the display terminal by the scanner, acquiring the current time and time zone, and setting the current time and time zone into the scanner. This completes the time-setting function of the scanner. The specific treatment process comprises the following steps:
A. the image acquisition module acquires the barcode image information at high frequency and then transmits the barcode image information to the CPU for processing.
B. After receiving the image information, the CPU performs image preprocessing, including: noise filtering, image sharpening, fuzzy part complementing and the like.
C. And the CPU decodes the preprocessed picture, and if the decoding is successful, corresponding bar code information can be obtained.
D. And identifying the decoded bar code, and if the bar code is not the set time bar code, processing according to a common bar code processing flow, wherein the common bar code processing flow is out of the scope of the patent.
E. If the bar code is identified to be the time setting bar code, whether the time information is legal or not needs to be judged firstly, and if the time information is illegal, a sound or an indicator light prompts an error.
F. And if the time information is judged to be legal, time delay correction processing is required. Because barcodes can experience delay errors during generation and scanning, algorithms are needed to reduce delay errors.
G. And setting the corrected time information into an RTC (real time clock) system of the scanner to finish the time setting operation of the scanner.
The invention can conveniently and quickly set the time of the scanner, and the time of the scanner can be set only by scanning one bar code.
The invention has simple hardware requirement on equipment, does not need to have network function, does not need to have excessive keys and display function, and can complete the time setting function only by having the scanning function.
The invention has high time setting precision and can accurately set the time to the second level.
The invention has good compatibility and does not need additional software tools. The customer can open a specific webpage through a computer, a mobile phone and a tablet to display the bar code, and the scanner can set time for scanning.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (5)

1. A method for setting equipment time by scanning bar codes is characterized by comprising the following steps:
the display terminal dynamically generates a time bar code according to the current time, the time bar code is automatically or manually refreshed, and the time bar code comprises time and/or time zone information;
after the scanner scans the time bar code on the display terminal, the current time and/or time zone is obtained and set in the scanner, thus completing the time setting function of the scanner.
2. The method for setting the equipment time by scanning the bar code according to the claim 1, wherein the method for dynamically generating the time bar code according to the current time by the display terminal comprises the following steps:
A. the display terminal accesses a webpage by using a browser, and the webpage dynamically generates a time bar code according to the current time;
B. running an application program on the PC or notebook computer terminal, wherein the application program dynamically generates a time bar code according to the current time;
C. the method comprises the steps that a specific APP is operated by a mobile phone or a tablet device, and a time bar code is generated by the APP according to the current time;
D. and the equipment with the display function generates a time bar code according to the current time.
3. The method for setting the equipment time by scanning the barcode according to claim 1, wherein the scanner scans the time barcode on the display terminal to obtain the current time and/or time zone, and the setting into the scanner specifically comprises:
A. the image acquisition module acquires time bar code image information at high frequency and then transmits the time bar code image information to the CPU for processing;
B. after receiving the image information, the CPU performs image preprocessing, including: noise filtering, image sharpening and fuzzy part complementing;
C. the CPU decodes the preprocessed picture, and if the decoding is successful, corresponding bar code information can be obtained;
D. recognizing the decoded bar code, and if the bar code is not the set time bar code, processing according to a common bar code processing flow;
E. if the bar code is identified to be the time setting bar code, whether the time information is legal or not needs to be judged firstly, and if the time information is illegal, an error is prompted through sound or an indicator light;
F. if the time information is judged to be legal, time delay correction processing is needed; because the bar code can produce the time delay error in generating and scanning, need to reduce the time delay error with the algorithm;
G. and setting the corrected time information into a real-time clock system of the scanner to finish the time setting operation of the scanner.
4. The method for setting the equipment time by scanning the bar code according to claim 1, wherein the display terminal is a PC, a notebook, a mobile phone or a tablet.
5. The method for setting the time of the equipment by scanning the barcode according to claim 1, wherein the time barcode is a one-dimensional code or a two-dimensional code.
CN202010171909.9A 2020-03-12 2020-03-12 Method for setting equipment time by scanning bar code Pending CN111353322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010171909.9A CN111353322A (en) 2020-03-12 2020-03-12 Method for setting equipment time by scanning bar code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010171909.9A CN111353322A (en) 2020-03-12 2020-03-12 Method for setting equipment time by scanning bar code

Publications (1)

Publication Number Publication Date
CN111353322A true CN111353322A (en) 2020-06-30

Family

ID=71196144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010171909.9A Pending CN111353322A (en) 2020-03-12 2020-03-12 Method for setting equipment time by scanning bar code

Country Status (1)

Country Link
CN (1) CN111353322A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593637A (en) * 2013-11-20 2014-02-19 深圳市太和物联信息技术有限公司 Two-dimension code scanning system and scanning and calibration method and system thereof
CN105306689A (en) * 2015-09-25 2016-02-03 重庆蓝岸通讯技术有限公司 Bluetooth-based mobile phone time acquisition method
US20160371633A1 (en) * 2015-05-13 2016-12-22 Asda Stores Limited Barcode scanner device and inventory management system
CN109743127A (en) * 2019-01-04 2019-05-10 四川金互通科技股份有限公司 A kind of processing method of information code, electronic equipment and storage medium
CN109871923A (en) * 2019-02-19 2019-06-11 深圳市西克智能技术有限公司 Time-correcting method, terminal device and storage medium based on two dimensional code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593637A (en) * 2013-11-20 2014-02-19 深圳市太和物联信息技术有限公司 Two-dimension code scanning system and scanning and calibration method and system thereof
US20160371633A1 (en) * 2015-05-13 2016-12-22 Asda Stores Limited Barcode scanner device and inventory management system
CN105306689A (en) * 2015-09-25 2016-02-03 重庆蓝岸通讯技术有限公司 Bluetooth-based mobile phone time acquisition method
CN109743127A (en) * 2019-01-04 2019-05-10 四川金互通科技股份有限公司 A kind of processing method of information code, electronic equipment and storage medium
CN109871923A (en) * 2019-02-19 2019-06-11 深圳市西克智能技术有限公司 Time-correcting method, terminal device and storage medium based on two dimensional code

Similar Documents

Publication Publication Date Title
CN112235326B (en) Internet of things equipment data analysis method and device and electronic equipment
CN109462848B (en) Method for accessing Wi-Fi hotspot device, Wi-Fi hotspot device and user device
US9323970B2 (en) Trading interface retrieved based upon barcode data
US8881973B2 (en) Connection setting method using barcode pattern, connection setting system and user equipment thereof
TW201426593A (en) Method and apparatus for information verification
US20220027591A1 (en) Bar code generation scanning, and display method, apparatus, storage medium, and electronic device
CN104883343A (en) Online sharing method, system and transaction machine thereof
CN112135186B (en) Screen projection method, device, equipment and storage medium based on small program
CN108399540B (en) Code scanning payment method and device based on mobile terminal, terminal and storage medium
CN111353322A (en) Method for setting equipment time by scanning bar code
EP3496016A1 (en) Method and system for reading information codes
CN113709740A (en) Method and system for displaying account information on authorized login page
JP5107241B2 (en) Synchronous 1-bit interface protocol or data structure
US20030035137A1 (en) Image processing apparatus management method and image processing apparatus
CN111258625A (en) Software flashing detection method and device, storage medium and electronic equipment
CN103064967A (en) Method and device used for establishing user binary relation bases
WO2017080309A1 (en) Usage log determination method and apparatus
CN111352023B (en) Crystal oscillator detection method and device and computer readable storage medium
CN114513334A (en) Risk management method and risk management device
JPH06181523A (en) Encoding device and decoding device of predictive coding system
CN112235277A (en) Resource request method, resource response method and related equipment
CN113672497A (en) Method, device and equipment for generating non-buried point event and storage medium
CN109241728B (en) Method and device for acquiring password information, computer equipment and storage medium
CN116137183A (en) Identification code generation method for activating medical component, activation method and device
EP3885943B1 (en) Electronic device, and function limit cancel method and 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