CN108509818B - Two-dimensional code scanning method and device and computer readable storage medium - Google Patents

Two-dimensional code scanning method and device and computer readable storage medium Download PDF

Info

Publication number
CN108509818B
CN108509818B CN201810249787.3A CN201810249787A CN108509818B CN 108509818 B CN108509818 B CN 108509818B CN 201810249787 A CN201810249787 A CN 201810249787A CN 108509818 B CN108509818 B CN 108509818B
Authority
CN
China
Prior art keywords
dimensional code
dimension code
wireless communication
short
current
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
CN201810249787.3A
Other languages
Chinese (zh)
Other versions
CN108509818A (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.)
Xian Irain IoT Technology Service Co Ltd
Original Assignee
Xian Irain IoT Technology Service 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 Xian Irain IoT Technology Service Co Ltd filed Critical Xian Irain IoT Technology Service Co Ltd
Priority to CN201810249787.3A priority Critical patent/CN108509818B/en
Priority to CN202110151391.7A priority patent/CN112800802B/en
Publication of CN108509818A publication Critical patent/CN108509818A/en
Application granted granted Critical
Publication of CN108509818B publication Critical patent/CN108509818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06K7/14172D bar codes
    • 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

Abstract

The invention discloses a two-dimension code scanning method, which comprises the following steps: when a code scanning instruction is received, scanning a current two-dimensional code object, and monitoring a corresponding short-distance wireless communication signal; the two-dimension code is provided with a near field communication device which is associated with a corresponding transmitting near field communication signal; when the short-distance wireless communication signal is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object; and executing corresponding operation according to the two-dimension code information. The invention also discloses a two-dimensional code scanning device and a computer readable storage medium. The invention realizes the standard use of the two-dimension code.

Description

Two-dimensional code scanning method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of two-dimensional codes, in particular to a two-dimensional code scanning method and device and a computer readable storage medium.
Background
With the development of the times, the two-dimensional code is applied to the aspects of daily life of users, such as subway advertisements, newspapers, train tickets, airline tickets, fast food restaurants, movie theaters, group buying websites and various commodity outsourcing packages, and the users can perform corresponding operations of payment, access links and the like by scanning the two-dimensional code, so that great convenience is brought to the life of the users. However, the two-dimensional code can be quickly spread on a social platform such as a QQ, a wechat, a microblog and the like through a static picture, so that the two-dimensional code is easily used randomly, for example, a coupon is stolen or used for many times. Therefore, the two-dimensional code has the problem of non-standard use at present.
Disclosure of Invention
The invention mainly aims to provide a two-dimensional code scanning method, a two-dimensional code scanning device and a computer readable storage medium, and aims to solve the technical problem that two-dimensional codes in the prior art are not used in a standard mode.
In order to achieve the above object, the present invention provides a two-dimensional code scanning method, which comprises the following steps:
when a code scanning instruction is received, scanning a current two-dimensional code object, and monitoring a corresponding short-distance wireless communication signal; the two-dimension code is provided with a near field communication device which is associated with a corresponding transmitting near field communication signal;
when the short-distance wireless communication signal is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object;
and executing corresponding operation according to the two-dimension code information.
Preferably, the short-distance wireless communication device is embedded in the two-dimensional code.
Preferably, the short-distance wireless communication device is deployed in a preset range area where the two-dimensional code is located.
Preferably, the near field communication device comprises at least one of a sound generator, a bluetooth module, an NFC near field communication module, and an NB-IOT cellular network-based narrowband internet of things module.
Preferably, when the short-range wireless communication device is an NFC module and the short-range wireless communication signal is monitored, the step of reading the two-dimensional code information correspondingly included in the current two-dimensional code object includes:
and when the NFC signal transmitted by the NFC module is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object.
Preferably, when the short-distance wireless communication device is a bluetooth module, the step of scanning the current two-dimensional code object and monitoring the corresponding short-distance wireless communication signal when receiving the code scanning instruction includes:
when a code scanning instruction is received, scanning a current two-dimensional code object, and performing Bluetooth search;
when the short-distance wireless communication signal is monitored, the step of reading the two-dimension code information correspondingly contained in the current two-dimension code object comprises the following steps:
and when the Bluetooth module is searched, reading the two-dimension code information correspondingly contained in the current two-dimension code object.
Preferably, before the step of performing bluetooth search, the method further includes:
detecting whether a Bluetooth function of the mobile terminal is started or not;
if the Bluetooth function of the mobile terminal is not started, sending corresponding Bluetooth function starting prompt information to enable a user to start the Bluetooth function of the mobile terminal;
and when the Bluetooth function of the mobile terminal is started, executing the step of carrying out Bluetooth search.
Preferably, after the step of scanning the current two-dimensional code object and monitoring the corresponding short-range wireless communication signal when the code scanning instruction is received, the method further includes:
and sending out corresponding two-dimension code identification failure prompt information when the short-distance wireless communication signal is not monitored.
In addition, in order to achieve the above object, the present invention further provides a two-dimensional code scanning device, including: the two-dimensional code scanning system comprises a memory, a processor and a two-dimensional code scanning program which is stored on the memory and can run on the processor, wherein the two-dimensional code scanning program is configured to realize the steps of the two-dimensional code scanning method.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a two-dimensional code scanning program is stored, and when executed by a processor, the two-dimensional code scanning program implements the steps of the two-dimensional code scanning method as described above.
According to the scheme provided by the invention, when a code scanning instruction is received, the current two-dimensional code object is scanned, the short-distance wireless communication signal transmitted by the short-distance wireless communication device associated with the two-dimensional code is monitored, only when the short-distance wireless communication signal is monitored, namely only when the scanned current two-dimensional code object is the two-dimensional code but not a plane picture corresponding to the two-dimensional code, the corresponding two-dimensional code information is read, and corresponding operation is executed according to the read two-dimensional code information. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a two-dimensional code scanning method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a two-dimensional code scanning method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: when a code scanning instruction is received, a current two-dimension code object is scanned, a short-distance wireless communication signal emitted by a corresponding short-distance wireless communication device associated with the two-dimension code is monitored, corresponding two-dimension code information is read only when the short-distance wireless communication signal is monitored, namely, only when the scanned current two-dimension code object is the two-dimension code but not a plane picture corresponding to the two-dimension code, and corresponding operation is executed according to the read two-dimension code information. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code. By the technical scheme of the embodiment of the invention, the problem of non-standard use of the two-dimensional code is solved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the mobile terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a two-dimensional code scan program.
The processor 1001 and the memory 1005 in the mobile terminal of the present invention may be disposed in a two-dimensional code scanning apparatus, and the two-dimensional code scanning apparatus calls a two-dimensional code scanning program stored in the memory 1005 through the processor 1001 and performs the following operations:
when a code scanning instruction is received, scanning a current two-dimensional code object, and monitoring a corresponding short-distance wireless communication signal; the two-dimension code is provided with a near field communication device which is associated with a corresponding transmitting near field communication signal;
when the short-distance wireless communication signal is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object;
and executing corresponding operation according to the two-dimension code information.
Further, when the near field communication device is an NFC module, the processor 1001 may call a two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and when the NFC signal transmitted by the NFC module is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object.
Further, when the short-range wireless communication device is a bluetooth module, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
when a code scanning instruction is received, scanning a current two-dimensional code object, and performing Bluetooth search;
and when the Bluetooth module is searched, reading the two-dimension code information correspondingly contained in the current two-dimension code object.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
detecting whether a Bluetooth function of the mobile terminal is started or not;
if the Bluetooth function of the mobile terminal is not started, sending corresponding Bluetooth function starting prompt information to enable a user to start the Bluetooth function of the mobile terminal;
and when the Bluetooth function of the mobile terminal is started, executing the step of carrying out Bluetooth search.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and sending out corresponding two-dimension code identification failure prompt information when the short-distance wireless communication signal is not monitored.
According to the scheme, when a code scanning instruction is received, the current two-dimensional code object is scanned, the corresponding short-distance wireless communication signal transmitted by the short-distance wireless communication device associated with the two-dimensional code is monitored, only when the short-distance wireless communication signal is monitored, namely only when the scanned current two-dimensional code object is the two-dimensional code but not a plane picture corresponding to the two-dimensional code, the corresponding two-dimensional code information is read, and corresponding operation is executed according to the read two-dimensional code information. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
Based on the hardware structure, the embodiment of the two-dimension code scanning method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a two-dimensional code scanning method according to a first embodiment of the present invention.
In a first embodiment, the two-dimensional code scanning method includes the following steps:
step S10, when a code scanning instruction is received, scanning the current two-dimensional code object and monitoring a corresponding short-distance wireless communication signal; the two-dimension code is provided with a near field communication device which is associated with a corresponding transmitting near field communication signal;
step S20, when the short-distance wireless communication signal is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object;
and step S30, executing corresponding operation according to the two-dimension code information.
With the development of the times, the two-dimensional code is applied to the aspects of daily life of users, such as subway advertisements, newspapers, train tickets, airline tickets, fast food restaurants, movie theaters, group buying websites and various commodity outsourcing packages, and the users can perform corresponding operations of payment, access links and the like by scanning the two-dimensional code, so that great convenience is brought to the life of the users. However, the two-dimensional code can be quickly spread on a social platform such as a QQ, a wechat, a microblog and the like through a static picture, so that the two-dimensional code is easily used randomly, for example, a coupon is stolen or used for many times. Therefore, the two-dimensional code has the problem of non-standard use at present.
In this embodiment, to avoid the confusion of the two-dimensional code, the two-dimensional code is used in a standard manner, and the two-dimensional code is associated with the corresponding short-range wireless communication device. Optionally, a corresponding short-distance wireless communication device is embedded in the two-dimensional code; or, corresponding short-range wireless communication devices are deployed around the two-dimensional code, for example, the corresponding short-range wireless communication devices are deployed in a preset range area where the two-dimensional code is located. The short-range wireless Communication device includes, but is not limited to, an acoustic wave generator, a bluetooth module, an NFC (Near Field Communication) module, an NB-IOT (Narrow Band Internet of Things) module, and the like. The near field communication device is used for transmitting corresponding near field communication signals, such as sound wave signals, Bluetooth signals, NFC signals, NB-IOT signals and the like.
When a user needs to identify a corresponding two-dimension code object, the user performs code scanning operation on the current two-dimension code object by using a mobile terminal such as a smart phone and a PAD (PAD), and triggers a corresponding code scanning instruction. The current two-dimensional code object may be a two-dimensional code associated with the corresponding short-range wireless communication device, or may be only a plane picture corresponding to the two-dimensional code. When the mobile terminal receives the code scanning instruction, the current two-dimensional code object is scanned, that is, the two-dimensional code may be scanned, or a plane picture corresponding to the two-dimensional code may be scanned.
In addition, the mobile terminals such as the smart phones and the PADs are correspondingly provided with corresponding components for sensing the short-distance wireless communication signals, for example, the mobile terminals are correspondingly provided with corresponding sound wave receivers, bluetooth modules, NFC modules, NB-IOT modules, and the like. And when the code scanning instruction is received, the mobile terminal simultaneously monitors the corresponding short-distance wireless communication signal. For example, assuming that the NFC module is set in association with the two-dimensional code, when the code scanning instruction is received, the mobile terminal monitors a corresponding NFC signal. For another example, if a sound wave generator is set in association with the two-dimensional code, when a code scanning instruction is received, the mobile terminal monitors a corresponding sound wave signal.
If the current two-dimension code object scanned by the mobile terminal is a two-dimension code, the mobile terminal can monitor a corresponding short-distance wireless communication signal transmitted by the short-distance wireless communication device because the two-dimension code is associated with a corresponding short-distance wireless communication device. If the current two-dimension code object scanned by the mobile terminal is a plane picture corresponding to the two-dimension code, the mobile terminal cannot monitor the corresponding short-distance wireless communication signal.
When the mobile terminal does not monitor the corresponding short-distance wireless communication signal, it is also indicated that the current two-dimensional code object scanned by the mobile terminal is likely to be only a plane picture corresponding to the two-dimensional code, and the source of the two-dimensional code object may not be a spectrum. At the moment, the mobile terminal does not perform two-dimensional code reading operation, the two-dimensional code scanning fails, and the user cannot perform corresponding operations such as payment and access linking, so that the disorder of the two-dimensional code is avoided.
When the mobile terminal monitors a corresponding short-distance wireless communication signal, that is, the current two-dimensional code object scanned by the mobile terminal is a two-dimensional code, not a plane picture corresponding to the two-dimensional code, at this time, the mobile terminal reads two-dimensional code information correspondingly contained in the current two-dimensional code object, and the two-dimensional code scanning is successful. And the mobile terminal executes various operations such as corresponding payment, access link and the like according to the obtained two-dimension code information.
For example, if the two-dimensional code sets the associated near field communication device to be an NFC module, step S20 includes:
step a, when the NFC signal emitted by the NFC module is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object.
If the two-dimension code is provided with the associated near field communication device as the NFC module, when the current two-dimension code object scanned by the mobile terminal is the two-dimension code, the NFC signal emitted by the NFC module can be monitored. When the mobile terminal monitors an NFC signal transmitted by the NFC module, two-dimension code information correspondingly contained in a scanned current two-dimension code object is read, namely the two-dimension code information correspondingly contained in the two-dimension code is read, and the two-dimension code scanning is successful.
For another example, if the two-dimensional code sets the associated short-range wireless communication device to be a bluetooth module, step S10 includes:
b, when a code scanning instruction is received, scanning a current two-dimensional code object, and performing Bluetooth search;
the step S20 includes:
and c, reading the two-dimension code information correspondingly contained in the current two-dimension code object when the Bluetooth module is searched.
And assuming that the two-dimension code is provided with a related short-distance wireless communication device as a Bluetooth module, when the mobile terminal receives a scanning instruction, scanning the current two-dimension code object and performing Bluetooth search. And if the current two-dimension code object scanned by the mobile terminal is the two-dimension code, searching for a corresponding Bluetooth module. When the mobile terminal searches for the corresponding Bluetooth module, the two-dimension code information correspondingly contained in the scanned current two-dimension code object is read, namely the two-dimension code information correspondingly contained in the two-dimension code is read, and the two-dimension code scanning is successful.
Optionally, the step b includes:
step b1, when receiving the code scanning instruction, scanning the current two-dimension code object and detecting whether the Bluetooth function of the mobile terminal is started;
b2, if the Bluetooth function of the mobile terminal is not started, sending out corresponding Bluetooth function starting prompt information for a user to start the Bluetooth function of the mobile terminal;
step b3, when the Bluetooth function of the mobile terminal is started, carrying out Bluetooth search.
Because under normal conditions, the bluetooth function of the mobile terminal is not always on. Therefore, the close-range wireless communication device which is set to be associated with the two-dimension code is a Bluetooth module, when the code scanning instruction is received, the mobile terminal scans the current two-dimension code object and detects whether the Bluetooth function of the mobile terminal is started or not. And if the Bluetooth function of the mobile terminal is started, the mobile terminal directly performs Bluetooth search. Otherwise, if the bluetooth function of the mobile terminal is not started, the mobile terminal sends out corresponding bluetooth function starting prompt information, and the user starts the bluetooth function of the mobile terminal when checking and receiving the bluetooth function starting prompt information. After the Bluetooth function of the mobile terminal is started, the mobile terminal performs Bluetooth search. When the mobile terminal searches for the corresponding Bluetooth module, the two-dimension code information correspondingly contained in the scanned current two-dimension code object is read, namely the two-dimension code information correspondingly contained in the two-dimension code is read, and the two-dimension code scanning is successful.
The two-dimensional code scanning method is exemplified by taking a reserved car taking of a stereo garage as an example.
In this example, a corresponding reserved vehicle-taking two-dimensional code is set at a corresponding position of the stereo garage, and the reserved vehicle-taking two-dimensional code is associated with a corresponding short-distance wireless communication device. When a user needs to make a reservation for getting a car, the user must reach the stereo garage area to scan the reserved car-getting two-dimensional code, and when the short-distance wireless communication signal transmitted by the short-distance wireless communication device associated with the reserved car-getting two-dimensional code is monitored, the code can be successfully scanned to reserve the car-getting two-dimensional code, corresponding reserved car-getting information is obtained, and then a corresponding reserved car-getting instruction is sent to get the car. If the user shoots the reserved car taking two-dimensional code before, a plane picture corresponding to the reserved car taking two-dimensional code is obtained, and then the plane picture corresponding to the reserved car taking two-dimensional code is scanned when the user does not reach the stereo garage, at the moment, the mobile terminal cannot monitor a short-distance wireless communication signal transmitted by the short-distance wireless communication device associated with the reserved car taking two-dimensional code, the reserved car taking two-dimensional code fails to be scanned, reserved car taking information cannot be obtained, and therefore a corresponding reserved car taking instruction cannot be sent to take a car, so that the situation that follow-up vehicles jam due to the fact that the user does not reach the stereo garage after car taking is avoided, and the car taking order is guaranteed.
According to the scheme provided by the embodiment, when a code scanning instruction is received, the current two-dimensional code object is scanned, the short-distance wireless communication signals transmitted by the short-distance wireless communication device associated with the two-dimensional code are monitored, only when the short-distance wireless communication signals are monitored, namely only when the scanned current two-dimensional code object is the two-dimensional code but not a plane picture corresponding to the two-dimensional code, the corresponding two-dimensional code information is read, and corresponding operation is executed according to the read two-dimensional code information. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
Further, as shown in fig. 3, a second embodiment of the two-dimensional code scanning method according to the present invention is proposed based on the first embodiment, and in this embodiment, after step S10, the method further includes:
and step S40, when the short-distance wireless communication signal is not monitored, sending out corresponding two-dimensional code identification failure prompt information.
In this embodiment, when the mobile terminal scans the current two-dimensional code object and monitors the corresponding short-range wireless communication signal, if the corresponding short-range wireless communication signal is not monitored, it is also indicated that the current two-dimensional code object scanned by the mobile terminal is likely to be only a planar picture corresponding to the two-dimensional code, and at this time, the mobile terminal sends out corresponding two-dimensional code identification failure prompt information. For example, a text prompt message such as "two-dimensional code recognition failed" is displayed on the current display interface of the mobile terminal. In another example, a voice prompt message such as "two-dimensional code recognition failed" is played through a speaker. In this embodiment, the specific form of the two-dimensional code identification failure prompt information is not limited. The two-dimension code identification failure prompt information is sent out, so that a user can timely know the two-dimension code identification failure, and the user experience is improved.
Further, in order to improve monitoring accuracy, when the mobile terminal does not monitor the corresponding short-distance wireless communication signal, the mobile terminal continues to monitor the short-distance wireless communication signal until the short-distance wireless communication signal is not monitored for a period of time, and at this time, corresponding two-dimension code identification failure prompt information is sent out again. For example, a corresponding monitoring duration is preset, when the mobile terminal scans the current two-dimension code object and does not monitor a corresponding short-range wireless communication signal, the mobile terminal continues to monitor the short-range wireless communication signal according to the preset monitoring duration until the short-range wireless communication signal is not monitored in the monitoring duration, and at this time, a corresponding two-dimension code identification failure prompt message is sent.
According to the scheme provided by the embodiment, when the mobile terminal does not monitor the corresponding short-distance wireless communication signal, the corresponding prompt information of the failure of the two-dimension code identification is sent out, so that a user can timely know the two-dimension code identification, and the user experience is further improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a two-dimensional code scanning program is stored on the computer-readable storage medium, and when executed by a processor, the two-dimensional code scanning program implements the following operations:
when a code scanning instruction is received, scanning a current two-dimensional code object, and monitoring a corresponding short-distance wireless communication signal; the two-dimension code is provided with a near field communication device which is associated with a corresponding transmitting near field communication signal;
when the short-distance wireless communication signal is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object;
and executing corresponding operation according to the two-dimension code information.
Further, when the near field communication device is an NFC module, the two-dimensional code scanning program further implements the following operations when executed by the processor:
and when the NFC signal transmitted by the NFC module is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object.
Further, when the short-distance wireless communication device is a bluetooth module, the two-dimensional code scanning program is executed by the processor to further implement the following operations:
when a code scanning instruction is received, scanning a current two-dimensional code object, and performing Bluetooth search;
and when the Bluetooth module is searched, reading the two-dimension code information correspondingly contained in the current two-dimension code object.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
detecting whether a Bluetooth function of the mobile terminal is started or not;
if the Bluetooth function of the mobile terminal is not started, sending corresponding Bluetooth function starting prompt information to enable a user to start the Bluetooth function of the mobile terminal;
and when the Bluetooth function of the mobile terminal is started, executing the step of carrying out Bluetooth search.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
and sending out corresponding two-dimension code identification failure prompt information when the short-distance wireless communication signal is not monitored.
According to the scheme, when a code scanning instruction is received, the current two-dimensional code object is scanned, the corresponding short-distance wireless communication signal transmitted by the short-distance wireless communication device associated with the two-dimensional code is monitored, only when the short-distance wireless communication signal is monitored, namely only when the scanned current two-dimensional code object is the two-dimensional code but not a plane picture corresponding to the two-dimensional code, the corresponding two-dimensional code information is read, and corresponding operation is executed according to the read two-dimensional code information. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A two-dimension code scanning method is applied to a mobile terminal and is characterized by comprising the following steps:
when a code scanning instruction is received, scanning a current two-dimensional code object, and monitoring a corresponding short-distance wireless communication signal; the two-dimension code is provided with a near field communication device which is associated with a corresponding transmitting near field communication signal;
reading two-dimension code information correspondingly contained in the current two-dimension code object when monitoring a signal of a short-distance wireless communication device associated with the two-dimension code; executing corresponding operation according to the two-dimension code information; executing corresponding operations including payment or access linking operations according to the two-dimension code information;
and when the signal of the short-distance wireless communication device associated with the two-dimension code is not monitored, the two-dimension code scanning operation fails.
2. The two-dimensional code scanning method according to claim 1, wherein the short-range wireless communication device is embedded in the two-dimensional code.
3. The two-dimensional code scanning method according to claim 1, wherein the short-range wireless communication device is deployed in a preset range area where the two-dimensional code is located.
4. The two-dimensional code scanning method according to claim 1, wherein the close-range wireless communication device comprises at least one of a sound generator, a bluetooth module, an NFC near field communication module, and an NB-IOT narrowband internet of things module based on a cellular network.
5. The two-dimension code scanning method according to claim 4, wherein when the short-distance wireless communication device is an NFC module and the short-distance wireless communication signal is monitored, the step of reading the two-dimension code information correspondingly included in the current two-dimension code object includes:
and when the NFC signal transmitted by the NFC module is monitored, reading two-dimension code information correspondingly contained in the current two-dimension code object.
6. The two-dimension code scanning method of claim 4, wherein when the short-distance wireless communication device is a bluetooth module, the step of scanning the current two-dimension code object and monitoring the corresponding short-distance wireless communication signal when receiving the code scanning instruction comprises:
when a code scanning instruction is received, scanning a current two-dimensional code object, and performing Bluetooth search;
when the short-distance wireless communication signal is monitored, the step of reading the two-dimension code information correspondingly contained in the current two-dimension code object comprises the following steps:
and when the Bluetooth module is searched, reading the two-dimension code information correspondingly contained in the current two-dimension code object.
7. The two-dimensional code scanning method according to claim 6, wherein the step of performing bluetooth search is preceded by the steps of:
detecting whether a Bluetooth function of the mobile terminal is started or not;
if the Bluetooth function of the mobile terminal is not started, sending corresponding Bluetooth function starting prompt information to enable a user to start the Bluetooth function of the mobile terminal;
and when the Bluetooth function of the mobile terminal is started, executing the step of carrying out Bluetooth search.
8. The two-dimensional code scanning method according to any one of claims 1 to 7, wherein after the steps of scanning the current two-dimensional code object and monitoring the corresponding short-range wireless communication signal when receiving the code scanning instruction, the method further comprises:
and sending out corresponding two-dimension code identification failure prompt information when the short-distance wireless communication signal is not monitored.
9. The utility model provides a two-dimensional code sweeps a yard device, its characterized in that, the two-dimensional code sweeps a yard device and includes: a memory, a processor, and a two-dimensional code scanning program stored on the memory and executable on the processor, the two-dimensional code scanning program configured to implement the steps of the two-dimensional code scanning method of any one of claims 1 to 8.
10. A computer-readable storage medium, wherein a two-dimensional code scanning program is stored on the computer-readable storage medium, and when executed by a processor, the two-dimensional code scanning program implements the steps of the two-dimensional code scanning method according to any one of claims 1 to 8.
CN201810249787.3A 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium Active CN108509818B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810249787.3A CN108509818B (en) 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium
CN202110151391.7A CN112800802B (en) 2018-03-23 2018-03-23 Reserved vehicle taking method and device for stereo garage and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810249787.3A CN108509818B (en) 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110151391.7A Division CN112800802B (en) 2018-03-23 2018-03-23 Reserved vehicle taking method and device for stereo garage and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108509818A CN108509818A (en) 2018-09-07
CN108509818B true CN108509818B (en) 2021-09-21

Family

ID=63378374

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110151391.7A Active CN112800802B (en) 2018-03-23 2018-03-23 Reserved vehicle taking method and device for stereo garage and computer readable storage medium
CN201810249787.3A Active CN108509818B (en) 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110151391.7A Active CN112800802B (en) 2018-03-23 2018-03-23 Reserved vehicle taking method and device for stereo garage and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN112800802B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962979B (en) * 2019-03-15 2021-11-09 深圳市沃特沃德信息有限公司 Two-dimensional code scanning method and device, storage medium and computer equipment
CN110533826B (en) * 2019-09-02 2021-04-20 创新先进技术有限公司 Information identification method and system
CN111464604A (en) * 2020-03-27 2020-07-28 杭州雄芯物联科技有限公司 Device and method for realizing offline social contact

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270460A (en) * 2014-10-20 2015-01-07 深圳市智凌无线科技有限公司 Method and system for downloading control software of wireless terminal
CN104954974A (en) * 2015-06-23 2015-09-30 惠州Tcl移动通信有限公司 Bluetooth pairing method and system for connection between mobile terminal and intelligent equipment
CN205068795U (en) * 2015-10-27 2016-03-02 神猫科技(北京)有限公司 Parking management device and system
CN206563977U (en) * 2017-01-12 2017-10-17 浙江元欣信息科技有限公司 Based on RFID with the false proof label of tracing to the source of the harmful influence that Quick Response Code is combined
CN107451633A (en) * 2017-08-10 2017-12-08 深圳市鹏力凯科技有限公司 A kind of shared card reader device and its application process

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8440952B2 (en) * 2008-11-18 2013-05-14 The Regents Of The University Of California Methods for optical amplified imaging using a two-dimensional spectral brush
GB201309869D0 (en) * 2013-06-03 2013-07-17 Ocado Ltd Head-mounted code scanner
CN111651797B (en) * 2014-11-20 2023-05-16 创新先进技术有限公司 Information display method and device
CN106023332B (en) * 2016-06-13 2018-10-16 常熟理工学院 Based on Quick Response Code, location technology and the attendance checking system of recognition of face and method
CN106845311A (en) * 2016-11-09 2017-06-13 北京鼎九信息工程研究院有限公司 A kind of reading method and device of figure Quick Response Code
CN107423785B (en) * 2017-07-17 2020-09-08 深圳市敢为软件技术有限公司 Work task confirmation method, system, device and storage medium based on two-dimension code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270460A (en) * 2014-10-20 2015-01-07 深圳市智凌无线科技有限公司 Method and system for downloading control software of wireless terminal
CN104954974A (en) * 2015-06-23 2015-09-30 惠州Tcl移动通信有限公司 Bluetooth pairing method and system for connection between mobile terminal and intelligent equipment
CN205068795U (en) * 2015-10-27 2016-03-02 神猫科技(北京)有限公司 Parking management device and system
CN206563977U (en) * 2017-01-12 2017-10-17 浙江元欣信息科技有限公司 Based on RFID with the false proof label of tracing to the source of the harmful influence that Quick Response Code is combined
CN107451633A (en) * 2017-08-10 2017-12-08 深圳市鹏力凯科技有限公司 A kind of shared card reader device and its application process

Also Published As

Publication number Publication date
CN112800802A (en) 2021-05-14
CN108509818A (en) 2018-09-07
CN112800802B (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US10680978B2 (en) Generating recommended responses based on historical message data
KR101541263B1 (en) Method and apparatus for executing user action commands
CN106487998B (en) Method and device for calling function interface and terminal equipment
CN108509818B (en) Two-dimensional code scanning method and device and computer readable storage medium
US20160314292A1 (en) Security verification method and apparatus
US10412534B2 (en) Method and device for providing service using data broadcasting of mobile device
US20150327000A1 (en) Apparatus, method and system for local wireless data communication of hybrid form
CN107911818B (en) Method and device for data transmission between mobile terminals and mobile terminal
CN105515887B (en) application testing method, server and system
CN111818499B (en) Quick pairing method, device, equipment and computer readable storage medium
CN109032491A (en) Data processing method, device and mobile terminal
WO2019072207A1 (en) Electronic messaging device and electronic messaging method
US10862698B2 (en) Method and device for searching for and controlling controllees in smart home system
KR102200825B1 (en) Method for delivering a policy information in order to offload between different radio communication systems and electronic device implementing the same
KR102209729B1 (en) Apparatas and method for detecting contents of a recognition area in an electronic device
CN111867003A (en) Equipment network distribution method, device, equipment and computer readable storage medium
CN105100005A (en) Identity verification method and device
KR102114113B1 (en) User terminals performing short range wireless communication and client server coupled to the same
CN108363937B (en) Two-dimensional code scanning method and device and computer readable storage medium
CN110944320B (en) Smart card identification method, smart card identification system and computer-readable storage medium
US20180253751A1 (en) User equipment, service providing apparatus, pos terminal, payment system including the same, control method thereof, and non-transitory computer readable storage medium
KR102366746B1 (en) User equipment for recommending customized membership card and/or coupon based on using pattern, control method thereof and computer readable medium having computer program recorded thereon
CN108416246B (en) Two-dimensional code scanning method and device and computer readable storage medium
KR101874078B1 (en) Apparatus for measuring End-to-End delay of application and method thereof
KR20150139714A (en) Location based service apparatus, method and system using local wireless data communication

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