CN107229889A - A kind of operating method based on Quick Response Code, equipment and computer-readable recording medium - Google Patents
A kind of operating method based on Quick Response Code, equipment and computer-readable recording medium Download PDFInfo
- Publication number
- CN107229889A CN107229889A CN201710373736.7A CN201710373736A CN107229889A CN 107229889 A CN107229889 A CN 107229889A CN 201710373736 A CN201710373736 A CN 201710373736A CN 107229889 A CN107229889 A CN 107229889A
- Authority
- CN
- China
- Prior art keywords
- quick response
- response code
- command information
- text message
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9554—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
Abstract
The application describes a kind of operating method based on Quick Response Code, equipment and computer-readable recording medium, and this method includes:Quick Response Code is recognized, and obtains the text message in Quick Response Code;Judge whether comprising the command information prestored in the text message, if so, then performing the operation corresponding with the command information.For example, by recognizing that Quick Response Code realizes the setting of quarter-bell;By recognizing that Quick Response Code realizes the setting of timing shutdown;By recognizing that Quick Response Code realizes the switching of contextual model.In this application, the compound action for completing to need many clicks or input operation to complete by a simple operation for recognizing Quick Response Code, so as to simplify operation, improves user experience.
Description
Technical field
The application is related to Quick Response Code applied technical field, more particularly to a kind of operating method based on Quick Response Code, equipment and
Computer-readable recording medium.
Background technology
With the development and the popularization and application of smart mobile phone of mobile Internet, the application of Quick Response Code is more and more extensive.Very
Many mobile terminals can obtain image in 2 D code by its camera, and recognize two dimension by related application program
Information in code image.Image in 2 D code is the black and white partition image with certain queueing discipline.When taking the photograph by mobile terminal
When recognizing Quick Response Code as head, the camera of mobile terminal is located at the front of Quick Response Code, is read by obtaining image in 2 D code
With the information in identification image in 2 D code.Current two-dimension technology be all obtained by reading image in 2 D code text message,
Website information, card information, pictorial information etc..The exploitation based on Quick Response Code is more single in the prior art.
The content of the invention
The main purpose of the application is to propose a kind of operating method based on Quick Response Code, equipment and computer-readable storage
Medium, by reading and recognizing Quick Response Code, performs setting operation, so as to complete specific function.
To achieve the above object, this application provides a kind of operating method based on Quick Response Code, applied to mobile terminal, institute
The method of stating includes:
Quick Response Code is recognized, and obtains the text message in Quick Response Code;
Judge whether comprising the command information prestored in the text message, if so, then performing and the command information
Corresponding operation.
Optionally, in identification Quick Response Code, and before obtaining the text message in Quick Response Code, methods described also includes:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
Optionally, whether the judgement includes the command information prestored in the text message, including:
Whether judge in the text message comprising the command information being stored in the instruction database.
Optionally, the execution operation corresponding with the command information, including:
The text message for including command information is converted into script information, and performs the script information.
Optionally, methods described also includes:
According to the text message for including command information, control instruction is generated, and the control instruction is sent to other
Mobile terminal, to control other mobile terminals to perform the operation corresponding with the control instruction.
In addition, to achieve the above object, the application also proposes a kind of operation equipment based on Quick Response Code, applied to mobile whole
End, the operation equipment based on Quick Response Code includes processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the operation sequence based on Quick Response Code stored in memory, to realize following steps:
Quick Response Code is recognized, and obtains the text message in Quick Response Code;
Judge whether comprising the command information prestored in the text message, if so, then performing and the command information
Corresponding operation.
Optionally, in identification Quick Response Code, and before obtaining the text message in Quick Response Code, the processor is additionally operable to perform
The operation sequence based on Quick Response Code, to realize following steps:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
Optionally, the processor is performing the operation sequence based on Quick Response Code, to realize the judgement described
When whether including the step of the command information prestored in text message, specifically include:
Whether judge in the text message comprising the command information being stored in the instruction database.
Optionally, the processor is performing the operation sequence based on Quick Response Code, with realize the execution with it is described
During the step of the corresponding operation of command information, specifically include:
The text message for including command information is converted into script information, and performs the script information.
In addition, to achieve the above object, the application also proposes a kind of computer-readable recording medium, described computer-readable
Storage medium is stored with the operation sequence based on Quick Response Code;
When the operation sequence based on Quick Response Code is by least one computing device, cause at least one described processing
The step of device performs the operating method based on Quick Response Code of above-mentioned introduction.
The application propose the operating method based on Quick Response Code, equipment and computer-readable recording medium, by read and
Quick Response Code is recognized, specific operation is performed, so as to complete specific function.Quick Response Code can only be converted to text envelope by prior art
Breath, and acquisition website information, card information, pictorial information etc. from text message.The application is that Quick Response Code is converted into text
Information, then text message is converted into executable script information, by perform script information to complete specific function.This Shen
The compound action for please completing to need many clicks or input operation to complete by a simple operation for recognizing Quick Response Code,
So as to simplify operation, user experience is improved.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the application;
Fig. 2 is the communications network system Organization Chart of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of the operating method based on Quick Response Code of the application first embodiment;
Fig. 4 is the flow chart of the operating method based on Quick Response Code of the application second embodiment;
Fig. 5 is the flow chart of the operating method based on Quick Response Code of the application 3rd embodiment;
Realization, functional characteristics and the advantage of the application purpose will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
As shown in figure 3, the first embodiment of the application proposes a kind of operating method based on Quick Response Code, applied to above-mentioned
The mobile terminal of introduction, methods described specifically includes following steps:
Step S301:Quick Response Code is recognized, and obtains the text message in Quick Response Code.
Specifically, step S301, including:
Quick Response Code is recognized by the rear camera of mobile terminal, and obtains the text message in the Quick Response Code;Or,
The image for including Quick Response Code prestored is obtained from mobile terminal, mobile terminal is by reading two in described image
Code is tieed up to obtain the text message in the Quick Response Code.
Quick Response Code is in a coffin, by different distributions of the black, white pixel in the space of matrices, to enter
The image of row coding.What what the black pixel in Quick Response Code was represented be that white pixel in binary one, Quick Response Code represents is binary system
“0”.Black, white pixel permutation and combination determines the content of matrix two-dimensional barcode, in order to which computer enters to two-dimensional code symbol
Row coding and analysis.
Include text message in Quick Response Code, such as card information, website information.When reading Quick Response Code, by knowing
Other Quick Response Code, obtains the text message in Quick Response Code.It is prior art that text message is obtained from Quick Response Code, is not the application
Innovative point, therefore be no longer described in detail herein.
Further, before step S301, methods described also includes:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
When establishment has instruction database in the terminal, storage can be used for performing some operations in the instruction database
Command information, when mobile terminal performs the corresponding operation of the command information, it is possible to achieve specific function.The data
Each command information in storehouse is used to realize different functions, for example:Quarter-bell setting command information is used in the mobile terminal
Middle progress quarter-bell setting;Shutdown command information is used for the setting that shutdown is timed in the mobile terminal;Contextual model refers to
Information is made to be used to set different contextual models in the mobile terminal.
Further, the acquisition command information includes:
Command information is obtained by way of recognizing Quick Response Code.
For the ease of updating the command information in the instruction database, the two dimension for including new command information can be generated
Code, mobile terminal is believed by recognizing that the Quick Response Code comprising new command information adds new instruction in the instruction database
Breath.
Step S302:Whether judge in the text message comprising the command information prestored, if so, then perform with it is described
The corresponding operation of command information.
For example:Include the quarter-bell setting command information prestored in the text message, when mobile terminal execution is described
When quarter-bell sets command information, quarter-bell setting is carried out in the mobile terminal according to quarter-bell setting command information.
Specifically, whether the judgement includes the command information prestored in the text message, including:
Whether judge in the text message comprising the command information being stored in the instruction database.
Further, the execution operation corresponding with the command information, including:
The text message for including command information is converted into script information, and performs the script information.
Script is the extension of autoexec, is the program that a kind of plain text is preserved, computer script journey in general
A series of combination for control computer arithmetic operations action that sequence is to determine, can realize certain logic branch etc. wherein.
Shell script is an interpreter by system upon execution, and script is translated as to machine recognizable instruction one by one, and according to
Program order performs these instructions successively, to realize specific function.In the present embodiment, by the way that text message is converted into pin
This information, is more beneficial for mobile terminal execution.
In the prior art to the use of Quick Response Code merely by the text message extracted in Quick Response Code, network address letter is obtained
Breath, card information etc..And the present embodiment is by extracting the text message in Quick Response Code, and judge whether have in the text message
The command information of setting.In the case of including command information in the text message of Quick Response Code, perform and the command information phase
Corresponding operation, so as to realize specific function.For example, by recognizing that Quick Response Code realizes the setting of quarter-bell;By recognizing two dimension
Code realizes the setting of timing shutdown;By recognizing that Quick Response Code realizes the switching of contextual model.In the present embodiment, a letter is passed through
The compound action that the operation of single identification Quick Response Code is completed to need much to click on or input operation could be completed, so as to simplify behaviour
Make, improve user experience.
As shown in figure 4, the second embodiment of the application proposes a kind of operating method based on Quick Response Code, applied to above-mentioned
The mobile terminal of introduction, methods described specifically includes following steps:
Step S401:Quick Response Code is recognized, and obtains the text message in Quick Response Code.
Specifically, step S401, including:
Quick Response Code is recognized by the rear camera of mobile terminal, and obtains the text message in the Quick Response Code;Or,
The image for including Quick Response Code prestored is obtained from mobile terminal, mobile terminal is by reading two in described image
Code is tieed up to obtain the text message in the Quick Response Code.
Quick Response Code is in a coffin, by different distributions of the black, white pixel in the space of matrices, to enter
The image of row coding.What what the black pixel in Quick Response Code was represented be that white pixel in binary one, Quick Response Code represents is binary system
“0”.Black, white pixel permutation and combination determines the content of matrix two-dimensional barcode, in order to which computer enters to two-dimensional code symbol
Row coding and analysis.
Include text message in Quick Response Code, such as card information, website information.When reading Quick Response Code, by knowing
Other Quick Response Code, obtains the text message in Quick Response Code.It is prior art that text message is obtained from Quick Response Code, is not the application
Innovative point, therefore be no longer described in detail herein.
Further, before step S401, methods described also includes:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
When establishment has instruction database in the terminal, storage can be used for performing some operations in the instruction database
Command information, when mobile terminal performs the corresponding operation of the command information, it is possible to achieve specific function.The data
Each command information in storehouse is used to realize different functions, for example:Quarter-bell setting command information is used in the mobile terminal
Middle progress quarter-bell setting;Shutdown command information is used for the setting that shutdown is timed in the mobile terminal;Contextual model refers to
Information is made to be used to set different contextual models in the mobile terminal.
Further, the acquisition command information includes:
Command information is obtained by way of recognizing Quick Response Code.
For the ease of updating the command information in the instruction database, the two dimension for including new command information can be generated
Code, mobile terminal is believed by recognizing that the Quick Response Code comprising new command information adds new instruction in the instruction database
Breath.
Step S402:Whether judge in the text message comprising the command information prestored, if so, then perform with it is described
The corresponding operation of command information.
For example:Include the quarter-bell setting command information prestored in the text message, when mobile terminal execution is described
When quarter-bell sets command information, quarter-bell setting is carried out in the mobile terminal according to quarter-bell setting command information.
Specifically, whether the judgement includes the command information prestored in the text message, including:
Whether judge in the text message comprising the command information being stored in the instruction database.
Further, the execution operation corresponding with the command information, including:
The text message for including command information is converted into script information, and performs the script information.
In the present embodiment, by the way that text message is converted into script information, it is more beneficial for mobile terminal execution.Script is
The extension of autoexec, is the program that a kind of plain text is preserved, and what computer script program in general was to determine one is
The combination of row control computer arithmetic operation action, can realize certain logic branch etc. wherein.Shell script is being performed
When, it is an interpreter by system, script is translated as to machine recognizable instruction one by one, and hold successively according to program order
These instructions of row, to realize specific function.
Step S403:According to the text message for including command information, control instruction is generated, and the control instruction is sent out
Other mobile terminals are given, to control other mobile terminals to perform the operation corresponding with the control instruction.
Specifically, the first mobile terminal is by recognizing that Quick Response Code acquires text message, and the text message includes
Control the command information of the second mobile terminal;First mobile terminal is generated for controlling by performing the text message
The control information of second mobile terminal;The control information is sent to second movement eventually by first mobile terminal
End, to control second mobile terminal to perform operate corresponding with the control information.
For example, the first mobile terminal is by recognizing that Quick Response Code obtains closing the command information of the second mobile terminal, described the
One mobile terminal produces control information according to the command information, and the control information is sent into second movement eventually
End, so that second mobile terminal performs power-off operation according to the control information.
In the present embodiment, first terminal is by simply recognizing the action of Quick Response Code, it is possible to performs control second and moves
The operation of dynamic terminal, so as to simplify operation, improves user experience.
As shown in figure 5, the 3rd embodiment of the application proposes a kind of operating method based on Quick Response Code, applied to above-mentioned
The mobile terminal of introduction, methods described specifically includes following steps:
Step S501:The instruction database for store instruction information is created in the terminal.
Specifically, mobile terminal stores the command information got into the instruction database.Each command information
Corresponding to different operations, mobile terminal is by performing the operation corresponding to each command information, to realize different functions.Example
Such as:Quarter-bell setting command information is used in the mobile terminal carry out quarter-bell setting;Shutdown command information is used to move described
The setting of shutdown is timed in dynamic terminal;Contextual model command information is used to set different scenes in the mobile terminal
Pattern.
Further, mobile terminal can be obtained newly by way of identification includes the Quick Response Code of new command information
Command information, and new command information is stored into the instruction database.
For the ease of updating the command information in the instruction database, the two dimension for including new command information can be generated
Code, mobile terminal is believed by recognizing that the Quick Response Code comprising new command information adds new instruction in the instruction database
Breath.
Step S502:Mobile terminal recognizes Quick Response Code, and obtains the text message in Quick Response Code.
Specifically, step S502, including:
Quick Response Code is recognized by the rear camera of mobile terminal, and obtains the text message in the Quick Response Code;Or,
The image for including Quick Response Code prestored is obtained from mobile terminal, mobile terminal is by reading two in described image
Code is tieed up to obtain the text message in the Quick Response Code.
Quick Response Code is in a coffin, by different distributions of the black, white pixel in the space of matrices, to enter
The image of row coding.What what the black pixel in Quick Response Code was represented be that white pixel in binary one, Quick Response Code represents is binary system
“0”.Black, white pixel permutation and combination determines the content of matrix two-dimensional barcode, in order to which computer enters to two-dimensional code symbol
Row coding and analysis.
Include text message in Quick Response Code, such as card information, website information.When reading Quick Response Code, by knowing
Other Quick Response Code, obtains the text message in Quick Response Code.It is prior art that text message is obtained from Quick Response Code, is not the application
Innovative point, therefore be no longer described in detail herein.
Step S503:Mobile terminal judges whether include command information in the text message, if so, then performing step
Rapid S504, if it is not, then terminating process.
Specifically, whether the judgement is surrounded by command information in the text message, including:
Whether judge in the text message comprising the command information being stored in the instruction database.
For example, the command information " shutdown " that is stored with the instruction database, " shutdown " corresponding operation
For power-off operation.When mobile terminal execute instruction information " shutdown ", mobile terminal can perform power-off operation.If mobile whole
It is " at 22 to hold by the text message for recognizing Quick Response Code and acquiring:00shutdown ", then include finger in the text message
Make information " shutdown ".
Step S504:The text message for including command information is converted into script information by mobile terminal.
In the present embodiment, by the way that text message is converted into script information, it is more beneficial for mobile terminal execution.Script is
The extension of autoexec, is the program that a kind of plain text is preserved, and what computer script program in general was to determine one is
The combination of row control computer arithmetic operation action, can realize certain logic branch etc. wherein.Shell script is being performed
When, it is an interpreter by system, script is translated as to machine recognizable instruction one by one, and hold successively according to program order
These instructions of row, to realize specific function.
Step S505:Mobile terminal performs the script information to realize specific function.
For example, the text message in Quick Response Code is " at 22:00shutdown ", script is converted to by the text message
Information, mobile terminal is by performing the script information to perform mobile terminal every night 22:The behaviour of 00 automatic shutdown
Make.
The present embodiment is combined Quick Response Code with script, expands out more wider array of application forms based on Quick Response Code.This
Text message in Quick Response Code is converted to script information by embodiment, and by performing the script information to realize specific work(
Energy.Action of the present embodiment by simply recognizing Quick Response Code can just realize the function of artificially being set the need for complexity.
The fourth embodiment of the application proposes a kind of operation equipment based on Quick Response Code, the movement applied to above-mentioned introduction
Terminal, as shown in figure 1, the operation equipment based on Quick Response Code is specifically included:Processor 110, memory 109 and communication are total
Line;
The communication bus is used to realize the connection communication between processor 110 and memory 109;
Processor 110 is used to perform the operation sequence based on Quick Response Code stored in memory 109, to realize following step
Suddenly:
Quick Response Code is recognized, and obtains the text message in Quick Response Code;
Judge whether comprising the command information prestored in the text message, if so, then performing and the command information
Corresponding operation.
Specifically, in identification Quick Response Code, and before obtaining the text message in Quick Response Code, processor 110 is additionally operable to perform
The operation sequence based on Quick Response Code, to realize following steps:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
When establishment has instruction database in the terminal, storage can be used for performing some operations in the instruction database
Command information, when mobile terminal performs the corresponding operation of the command information, it is possible to achieve specific function.The data
Each command information in storehouse is used to realize different functions, for example:Quarter-bell setting command information is used in the mobile terminal
Middle progress quarter-bell setting;Shutdown command information is used for the setting that shutdown is timed in the mobile terminal;Contextual model refers to
Information is made to be used to set different contextual models in the mobile terminal.
Further, processor 110 is performing the operation sequence based on Quick Response Code, to realize the identification two dimension
Code, and when obtaining the step of text message in Quick Response Code, specifically include:
Quick Response Code is recognized by the rear camera of mobile terminal, and obtains the text message in the Quick Response Code;Or,
The image for including Quick Response Code prestored is obtained from mobile terminal, mobile terminal is by reading two in described image
Code is tieed up to obtain the text message in the Quick Response Code.
Quick Response Code is in a coffin, by different distributions of the black, white pixel in the space of matrices, to enter
The image of row coding.What what the black pixel in Quick Response Code was represented be that white pixel in binary one, Quick Response Code represents is binary system
“0”.Black, white pixel permutation and combination determines the content of matrix two-dimensional barcode, in order to which computer enters to two-dimensional code symbol
Row coding and analysis.
Include text message in Quick Response Code, such as card information, website information.When reading Quick Response Code, by knowing
Other Quick Response Code, obtains the text message in Quick Response Code.It is prior art that text message is obtained from Quick Response Code, is not the application
Innovative point, therefore be no longer described in detail herein.
Further, processor 110 is performing the operation sequence based on Quick Response Code, to realize the judgement described
When whether including the step of the command information prestored in text message, specifically include:
Whether judge in the text message comprising the command information being stored in the instruction database.
Further, processor 110 is performing the operation sequence based on Quick Response Code, with realize the execution with it is described
During the step of the corresponding operation of command information, specifically include:
The text message for including command information is converted into script information, and performs the script information.
Script is the extension of autoexec, is the program that a kind of plain text is preserved, computer script journey in general
A series of combination for control computer arithmetic operations action that sequence is to determine, can realize certain logic branch etc. wherein.
Shell script is an interpreter by system upon execution, and script is translated as to machine recognizable instruction one by one, and according to
Program order performs these instructions successively, to realize specific function.In the present embodiment, by the way that text message is converted into pin
This information, is more beneficial for mobile terminal execution.
Further, processor 110 is additionally operable to perform the operation sequence based on Quick Response Code, to realize following steps:
According to the text message for including command information, control instruction is generated, and the control instruction is sent to other
Mobile terminal, to control other mobile terminals to perform the operation corresponding with the control instruction.
Specifically, the first mobile terminal is by recognizing that Quick Response Code acquires text message, and the text message includes
Control the command information of the second mobile terminal;First mobile terminal is generated for controlling by performing the text message
The control information of second mobile terminal;The control information is sent to second movement eventually by first mobile terminal
End, to control second mobile terminal to perform operate corresponding with the control information.
In the present embodiment, complete to need many click on or input operation by the operation of a simple identification Quick Response Code
The compound action that could be completed, so as to simplify operation, improves user experience.
The 5th embodiment of the application proposes a kind of computer-readable recording medium, the computer-readable recording medium
Be stored with the operation sequence based on Quick Response Code;
When the operation sequence based on Quick Response Code is by least one computing device, cause at least one described processing
Device performs following operate:
Quick Response Code is recognized, and obtains the text message in Quick Response Code;
Judge whether comprising the command information prestored in the text message, if so, then performing and the command information
Corresponding operation.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of operating method based on Quick Response Code, it is characterised in that applied to mobile terminal, methods described includes:
Quick Response Code is recognized, and obtains the text message in Quick Response Code;
Judge whether comprising the command information prestored in the text message, if so, then performing relative with the command information
The operation answered.
2. the operating method according to claim 1 based on Quick Response Code, it is characterised in that in identification Quick Response Code, and obtain
Before text message in Quick Response Code, methods described also includes:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
3. the operating method according to claim 2 based on Quick Response Code, it is characterised in that the judgement is in the text envelope
Whether comprising the command information prestored in breath, including:
Whether judge in the text message comprising the command information being stored in the instruction database.
4. the operating method according to claim 1 based on Quick Response Code, it is characterised in that the execution is believed with the instruction
The corresponding operation of manner of breathing, including:
The text message for including command information is converted into script information, and performs the script information.
5. the operating method according to claim 1 based on Quick Response Code, it is characterised in that methods described also includes:
According to the text message for including command information, control instruction is generated, and the control instruction is sent to other movements
Terminal, to control other mobile terminals to perform the operation corresponding with the control instruction.
6. a kind of operation equipment based on Quick Response Code, it is characterised in that applied to mobile terminal, the operation based on Quick Response Code
Equipment includes processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the operation sequence based on Quick Response Code stored in memory, to realize following steps:
Quick Response Code is recognized, and obtains the text message in Quick Response Code;
Judge whether comprising the command information prestored in the text message, if so, then performing relative with the command information
The operation answered.
7. the operation equipment according to claim 6 based on Quick Response Code, it is characterised in that in identification Quick Response Code, and obtain
Before text message in Quick Response Code, the processor is additionally operable to perform the operation sequence based on Quick Response Code, with realize with
Lower step:
Create instruction database;
Command information is obtained, and by the command information got storage into the instruction database.
8. the operation equipment according to claim 7 based on Quick Response Code, it is characterised in that the processor is described in execution
Operation sequence based on Quick Response Code, to realize whether the judgement includes the step of the command information prestored in the text message
When rapid, specifically include:
Whether judge in the text message comprising the command information being stored in the instruction database.
9. the operation equipment according to claim 6 based on Quick Response Code, it is characterised in that the processor is described in execution
Operation sequence based on Quick Response Code, with realize it is described perform the operation corresponding with the command information step when, specifically wrap
Include:
The text message for including command information is converted into script information, and performs the script information.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has based on two dimension
The operation sequence of code;
When the operation sequence based on Quick Response Code is by least one computing device, at least one described processor is caused to be held
The step of operating method based on Quick Response Code any one of the row claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710373736.7A CN107229889A (en) | 2017-05-24 | 2017-05-24 | A kind of operating method based on Quick Response Code, equipment and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710373736.7A CN107229889A (en) | 2017-05-24 | 2017-05-24 | A kind of operating method based on Quick Response Code, equipment and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107229889A true CN107229889A (en) | 2017-10-03 |
Family
ID=59933989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710373736.7A Pending CN107229889A (en) | 2017-05-24 | 2017-05-24 | A kind of operating method based on Quick Response Code, equipment and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107229889A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108040202A (en) * | 2017-11-30 | 2018-05-15 | 深圳岚锋创视网络科技有限公司 | A kind of method and apparatus of camera and its execute instruction |
CN113176347A (en) * | 2020-01-27 | 2021-07-27 | 株式会社岛津制作所 | Analysis system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969510A (en) * | 2010-10-29 | 2011-02-09 | 东莞宇龙通信科技有限公司 | Method, equipment and system for automatically adjusting mobile phone state |
CN102624697A (en) * | 2012-01-13 | 2012-08-01 | 孟智平 | Medium interaction method based on two-dimensional codes and medium interaction system |
CN102929595A (en) * | 2012-09-20 | 2013-02-13 | 腾讯科技(深圳)有限公司 | Method and device for realizing action command |
CN103795863A (en) * | 2014-01-28 | 2014-05-14 | 广州三星通信技术研究有限公司 | Automatic power-off method and device for mobile terminal |
CN104217315A (en) * | 2014-09-09 | 2014-12-17 | 福建升腾资讯有限公司 | Method for controlling intelligent express box based on two-dimensional code scanning |
-
2017
- 2017-05-24 CN CN201710373736.7A patent/CN107229889A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969510A (en) * | 2010-10-29 | 2011-02-09 | 东莞宇龙通信科技有限公司 | Method, equipment and system for automatically adjusting mobile phone state |
CN102624697A (en) * | 2012-01-13 | 2012-08-01 | 孟智平 | Medium interaction method based on two-dimensional codes and medium interaction system |
CN102929595A (en) * | 2012-09-20 | 2013-02-13 | 腾讯科技(深圳)有限公司 | Method and device for realizing action command |
CN103795863A (en) * | 2014-01-28 | 2014-05-14 | 广州三星通信技术研究有限公司 | Automatic power-off method and device for mobile terminal |
CN104217315A (en) * | 2014-09-09 | 2014-12-17 | 福建升腾资讯有限公司 | Method for controlling intelligent express box based on two-dimensional code scanning |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108040202A (en) * | 2017-11-30 | 2018-05-15 | 深圳岚锋创视网络科技有限公司 | A kind of method and apparatus of camera and its execute instruction |
CN108040202B (en) * | 2017-11-30 | 2020-08-11 | 影石创新科技股份有限公司 | Camera and method and device for executing instructions thereof |
CN112016338A (en) * | 2017-11-30 | 2020-12-01 | 影石创新科技股份有限公司 | Camera and method and device for executing instructions thereof |
CN113176347A (en) * | 2020-01-27 | 2021-07-27 | 株式会社岛津制作所 | Analysis system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562336A (en) | A kind of method, equipment and computer-readable recording medium for controlling suspension ball | |
CN107229402A (en) | Dynamic screenshotss method, device and the readable storage medium storing program for executing of terminal | |
CN106961706A (en) | Method, mobile terminal and the computer-readable recording medium of communication pattern switching | |
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN107145385A (en) | A kind of multitask interface display methods, mobile terminal and computer-readable storage medium | |
CN107133302A (en) | Realize method, system, terminal and the computer-readable recording medium of data consistency | |
CN107707450A (en) | A kind of method, apparatus and computer-readable recording medium for transmitting file | |
CN107347011A (en) | A kind of group message processing method, equipment and computer-readable recording medium | |
CN107333056A (en) | Image processing method, device and the computer-readable recording medium of moving object | |
CN106953684A (en) | A kind of method for searching star, mobile terminal and computer-readable recording medium | |
CN107147803A (en) | A kind of way of recording, terminal device and computer-readable recording medium | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107818459A (en) | Red packet sending method, terminal and storage medium based on augmented reality | |
CN107122817A (en) | Processing method and Quick Response Code terminal based on Quick Response Code | |
CN107844230A (en) | A kind of advertisement page method of adjustment, mobile terminal and computer-readable recording medium | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN107506163A (en) | Adjust method, terminal and the computer-readable recording medium of screen display | |
CN107483804A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN107276991A (en) | Load method, equipment and the computer-readable recording medium of Web page | |
CN107368241A (en) | A kind of information processing method, equipment and computer-readable recording medium | |
CN107613206A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107659726A (en) | A kind of method, equipment and computer-readable recording medium for recovering end message | |
CN107133795A (en) | A kind of method, equipment and computer-readable recording medium for switching payment environment | |
CN107809527A (en) | A kind of method and apparatus that prompt operation is presented | |
CN107423065A (en) | Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171003 |