CN104298508B - The method and apparatus for performing operation - Google Patents

The method and apparatus for performing operation Download PDF

Info

Publication number
CN104298508B
CN104298508B CN201410502849.9A CN201410502849A CN104298508B CN 104298508 B CN104298508 B CN 104298508B CN 201410502849 A CN201410502849 A CN 201410502849A CN 104298508 B CN104298508 B CN 104298508B
Authority
CN
China
Prior art keywords
data
data format
correspondence
format
module
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
CN201410502849.9A
Other languages
Chinese (zh)
Other versions
CN104298508A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410502849.9A priority Critical patent/CN104298508B/en
Publication of CN104298508A publication Critical patent/CN104298508A/en
Application granted granted Critical
Publication of CN104298508B publication Critical patent/CN104298508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to a kind of method and apparatus for performing operation, belong to field of communication technology.The method includes:Near-field communication NFC label is read, obtains the data stored in the NFC label;According to the data, the data format of the data is determined;According to the correspondence between data format and operation, the corresponding operation of the data format is inquired;Based on the data, the operation is performed.The disclosure passes through in the data stored in obtaining NFC label, a certain operation is not performed directly, but first according to the correspondence between data format and operation, determine on-unit, then for same NFC label, for different terminals in the data stored in obtaining the NFC label, the operation of execution may be different, flexibility is improved, meets the individual demand of terminal user.

Description

The method and apparatus for performing operation
Technical field
The disclosure is directed to field of communication technology, specifically about the method and apparatus for performing operation.
Background technology
With universal and wireless communication technique the development of intelligent terminal, NFC (Near Field Communication, near-field communication) technology application it is more and more extensive, NFC chip can be configured in many terminals, with NFC mark Label interact.
Terminal, by the NFC chip being configured, can read the data in NFC chip close to NFC label, when the terminal is read When getting the data in the NFC chip, can corresponding operation be performed according to the form of the data.For example, when the NFC chip In data when being a web page address, which opens webpage, when the data in the NFC chip are according to the web page address During one application identities, which starts application according to the application identities.
During the disclosure is realized, inventor has found the relevant technologies existing defects, such as:Same NFC is marked For label, when different terminals reads the data in the NFC label, identical operation can be all performed, mode of operation is excessively single, The individual demand of user can not be met.
Invention content
In order to solve the problems, such as the relevant technologies, present disclose provides a kind of method and apparatus for performing operation.Institute It is as follows to state technical solution:
According to the embodiment of the present disclosure in a first aspect, provide it is a kind of perform operation method, the method includes:
Near-field communication NFC label is read, obtains the data stored in the NFC label;
According to the data, the data format of the data is determined;
According to the correspondence between data format and operation, the corresponding operation of the data format is inquired;
Based on the data, the operation is performed.
Before the correspondence according between data format and operation, the method further includes:
For each data format, the operation of user setting is obtained;
Establish the correspondence between the data format and the operation.
The method further includes:
When not inquiring the corresponding operation of the data format, based on the user identifier used, send and grasp to server Make inquiry request, the action queries request carries the data, and action queries request is for number described in requesting query According to data format corresponding to operation;
When receiving the operation that the server is sent, based on the data, the operation is performed.
It is described when not inquiring the corresponding operation of the data format, based on the user identifier used, sent out to server Before sending action queries request, the method further includes:
Based on the user identifier, the corresponding pass between established data format and operation is sent to the server System.
The data format includes at least one in text, picture, video, audio, web page address.
According to the second aspect of the embodiment of the present disclosure, a kind of method for performing operation is provided, the method includes:
Based on user identifier, the first correspondence between data format and on-unit is received;
Establish the second correspondence between the user identifier, the data format and the operation.
It is described to establish after the second correspondence between the user identifier, the data format and the operation, institute The method of stating further includes:
Based on the user identifier, action queries request is received, the action queries request carries data;
According to the data, the data format of the data is determined;
According to second correspondence, operation corresponding with the user identifier and the data format is returned.
According to the third aspect of the embodiment of the present disclosure, a kind of device for performing operation is provided, described device includes:
Read module for reading near-field communication NFC label, obtains the data stored in the NFC label;
Format determination module, for according to the data, determining the data format of the data;
Action queries module, for according to the correspondence between data format and operation, inquiring the data format pair The operation answered;
Operation executing module for being based on the data, performs the operation.
Described device further includes:
Operation setting module, for for each data format, obtaining the operation of user setting;
Corresponding relation building module, for establishing the correspondence between the data format and the operation.
Described device further includes:
Inquiry request sending module, for when not inquiring the corresponding operation of the data format, based on the use used Family identifies, and sends action queries request to server, the action queries request carries the data, and the action queries please Ask the operation corresponding to for the data format of data described in requesting query;
The operation executing module is additionally operable to, when receiving the operation that the server is sent, based on the data, hold The row operation.
Described device further includes:
For being based on the user identifier, established data format and operation are sent to the server for sending module Between correspondence.
The data format includes at least one in text, picture, video, audio, web page address.
According to the fourth aspect of the embodiment of the present disclosure, a kind of device for performing operation is provided, described device includes:
Receiving module for being based on user identifier, receives the first corresponding pass between data format and on-unit System;
Corresponding relation building module, for establishing between the user identifier, the data format and the operation Two correspondences.
Described device further includes:
Inquiry request receiving module for being based on the user identifier, receives action queries request, and the action queries please Seek carrying data;
Data format determining module, for according to the data, determining the data format of the data;
Operation returns to module, for according to second correspondence, returning and the user identifier and the data lattice The corresponding operation of formula.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Method and apparatus provided in this embodiment, by the data stored in obtaining NFC label, not performing directly A certain operation, but first according to the correspondence between data format and operation, determine on-unit, then for same For NFC label, for different terminals in the data stored in obtaining the NFC label, the operation of execution may be different, improve Flexibility meets the individual demand of terminal user.
It should be understood that above general description and following detailed description is only exemplary, this can not be limited It is open.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the signal of the implementation environment involved by the method operated according to a kind of execution shown in an exemplary embodiment Figure;
Fig. 2 is the flow chart of the method operated according to a kind of execution shown in an exemplary embodiment;
Fig. 3 is the flow chart of the method operated according to a kind of execution shown in an exemplary embodiment;
Fig. 4 is the flow chart of the method operated according to a kind of execution shown in an exemplary embodiment;
Fig. 5 is the block diagram of the device operated according to a kind of execution shown in an exemplary embodiment;
Fig. 6 is the block diagram of the device operated according to a kind of execution shown in an exemplary embodiment;
Fig. 7 is the block diagram according to a kind of device for execution operation shown in an exemplary embodiment;
Fig. 8 is the block diagram according to a kind of device for execution operation shown in an exemplary embodiment.
Specific embodiment
Purpose, technical scheme and advantage to make the disclosure are more clearly understood, right with reference to embodiment and attached drawing The disclosure is described in further details.Here, the exemplary embodiment and its explanation of the disclosure are for explaining the disclosure, but simultaneously Not as the restriction to the disclosure.
The embodiment of the present disclosure provides a kind of method and apparatus for performing operation, the disclosure is carried out below in conjunction with attached drawing detailed Explanation.
Fig. 1 is the signal of the implementation environment involved by the method operated according to a kind of execution shown in an exemplary embodiment Figure, referring to Fig. 1, which includes:NFC label, terminal and server.
For the NFC label for storing data, which is configured with NFC chip, can read the NFC by the NFC chip The data stored in label.Between the terminal and the server clothes can be provided by network connection, the server for the terminal If the terminal can send information to the server, the information is preserved by the server for the terminal for business.
Fig. 2 is the flow chart of the method operated according to a kind of execution shown in an exemplary embodiment, as shown in Figure 1, should The method of operation is performed in terminal, including the following steps:
In step 201, NFC label is read, obtains the data stored in the NFC label.
In step 202, according to the data, the data format of the data is determined.
In step 203, according to the correspondence between data format and operation, the corresponding behaviour of the data format is inquired Make.
In step 204, based on the data, the operation is performed.
Method provided in this embodiment by terminal in the data stored in obtaining NFC label, does not perform certain directly One operation, but first according to the correspondence between data format and operation, determine on-unit, then for same NFC For label, for different terminals in the data stored in obtaining the NFC label, the operation of execution may be different, improve spirit Activity meets the individual demand of terminal user.
Before this is according to the correspondence between data format and operation, this method further includes:
For each data format, the operation of user setting is obtained;
Establish the correspondence between the data format and the operation.
This method further includes:
When not inquiring the corresponding operation of the data format, based on the user identifier used, send and operate to server Inquiry request, action queries request carries the data, and action queries request is for the data lattice of the requesting query data Operation corresponding to formula;
When the operation for receiving server transmission, based on the data, the operation is performed.
When should not inquire the corresponding operation of the data format, based on the user identifier used, send and grasp to server Before making inquiry request, this method further includes:
Based on the user identifier, the correspondence between established data format and operation is sent to the server.
The data format includes at least one in text, picture, video, audio, web page address.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 3 is the flow chart of the method operated according to a kind of execution shown in an exemplary embodiment, as shown in figure 3, should The method of operation is performed in server, including the following steps:
In step 301, based on user identifier, the first corresponding pass between data format and on-unit is received System.
In step 302, the second correspondence between the user identifier, the data format and the operation is established.
Method provided in this embodiment is based on user identifier by server, receives data format and pending behaviour During the first correspondence between work, the second correspondence between the user identifier, the data format and the operation is established, then Terminal can determine pending in the data stored in obtaining NFC label according to the second correspondence of server offer Operation, then for same NFC label, different terminals is in the data stored in obtaining the NFC label, the behaviour of execution Making may be different, improves flexibility, meets the individual demand of terminal user.
This method further includes:
Based on the user identifier, action queries request is received, action queries request carries data;
According to the data, the data format of the data is determined;
According to second correspondence, operation corresponding with the user identifier and the data format is returned.
Fig. 4 is the flow chart of the method operated according to a kind of execution shown in an exemplary embodiment, as shown in figure 4, should The interaction agent for performing the method for operation is NFC label, terminal and server, is included the following steps:
In step 401, for each data format, which obtains the operation of user setting, establishes the data format The first correspondence between the operation, and preserve first correspondence.
In the present embodiment, when the terminal reads NFC label, the data stored in the NFC label can be obtained, are based on The data perform operation.And the data stored in NFC label may be there are many form, such as text, picture, video, audio, net Page address etc., the present embodiment does not limit this.
In order to meet the individual demand of user, avoid different terminals that the data of each form are carried out with identical behaviour Make, which can establish the first correspondence between data format and operation, and preserve first correspondence, with after an action of the bowels It is continuous when obtaining the data stored in NFC label, according to first correspondence, determine on-unit.
For example, the first correspondence that the terminal is established can be as shown in table 1 below.
Table 1
Data format Operation
Picture Start social networking application, issue picture
Text Search for text
Video Play video
Audio Play audio
Web page address Open webpage
Wherein, the corresponding operation of picture format is " starting social networking application, issue picture ", and the corresponding operation of text formatting is " search text ", the corresponding operation of video format are " playing video ", and audio format is corresponding to be operated as " playing audio ", webpage The corresponding operation of address format is " opening webpage ".
It should be noted that first correspondence can be determined according to the setting of user.For each data format, use Family can set the operation corresponding to the data format, then the terminal obtains the operation of the user setting, establish the data format The first correspondence between the operation.In practical setting up procedure, for each data format, which can be to use Family provides a variety of operations, and user can select a kind of operation from a variety of operations, which obtains the operation of user's selection, makees For the corresponding operation of the data format.
For example, for text formatting, which provides three kinds of operations:" display text " " starts social networking application, by text Transmission acquiescence contact person ", " starting social networking application, issue text ".When the terminal detects the selection operation to " display text " When, determine that the operation of user setting is operated for " display text ", and when the terminal is detected to " text being sent acquiescence contact When people " operates, the social networking applications such as the short message application, microblogging application, wechat application of terminal installation are shown, when the terminal detects During the selection operation applied to short message to user, show the telephonic communication record of the terminal, determine that user records in the telephonic communication The acquiescence contact person of middle selection, the terminal determine that the corresponding operation of text formatting is " to the short of acquiescence contact person's sending information Information ".
Certainly, which can also pre-set the corresponding default action of each data format, establish data format with writing from memory The first correspondence between operation is recognized, in the corresponding operation of a certain data format of user setting, further according to user setting Operation updates first correspondence.Wherein, which can be determined by the terminal or by the server to each end The set operation in end is sent to the terminal after being counted, and the present embodiment does not limit this.
It should be noted that the present embodiment is illustrated only for data format, and in fact, coming from the content of data It says, the data stored in NFC label there may also be multiple types, if the data in NFC label can be application identities, businessman Information, user identifier etc., the application identities can be Apply Names or application manufacturer etc. for identifying some application, The user identifier can be user account or user's pet name etc., the present embodiment does not also do this for identifying some user It limits.Different types of data can also be included in the data of same form, for multiple data class of each data format For type, which can also establish the correspondence between data type and operation.For example, the data for text formatting are come It says, the correspondence which establishes can be as shown in table 2 below.
Table 2
The data type of text formatting Operation
Application identities Start application
User identifier Start social networking application, pay close attention to user identifier
Business Information Show Business Information
Wherein, the corresponding operation of application identities type is " starting application ", and the corresponding operation of user identifier type is " starts Social networking application pays close attention to user identifier ", the corresponding operation of Business Information type is " display Business Information ".
In step 402, which sends the data format and the operation based on the user identifier used to the server Between the first correspondence.
After the terminal establishes first correspondence, first correspondence can be preserved, this first can also be corresponded to Relationship is uploaded to the server, and first correspondence is preserved by the server, then the terminal is based on the user identifier, to the clothes Business device sends the first correspondence between the data format and the operation.Wherein, which is used to identify the terminal User can be user account, user's pet name or telephone number etc., and the present embodiment does not limit this.
In step 403, when the server receives first correspondence, the user identifier, the data lattice are established The second correspondence between formula and the operation.
When the server receives first correspondence, for the ease of the inquiry of subsequent user, which establishes The second correspondence between the user identifier, the data format and the operation.
It should be noted that the terminal can also only local preserve first correspondence, without being sent out to the server First correspondence is given, i.e., does not perform above-mentioned steps 402-403;It is closed alternatively, the terminal can not also preserve first correspondence System, but first correspondence is sent to the server, it is preserved by the server, the present embodiment does not limit this.
In step 404, which reads NFC label, obtains the data stored in the NFC label.
The NFC label can emit fixed signal, when the terminal is close to the NFC label, and the terminal has been turned on NFC function When, which can establish data connection by the signal with the NFC label, so as to read the NFC label, obtain NFC marks The data stored in label.
In step 405, which determines the data format of the data, according between established data format and operation The first correspondence, inquire the corresponding operation of the data format.
When the terminal obtains the data, the data format of the data is determined.At this point, the terminal is closed according to first correspondence System, inquires the corresponding operation of the data format.If the terminal inquiry is to the corresponding operation of the data format, you can based on the number According to the execution operation.
If the terminal has set the corresponding operation of different types of data in the data format, which can be to the number According to being analyzed, the data type of the data is determined, according to the correspondence between data type and operation, inquire the data class The corresponding operation of type, if inquiring the corresponding operation of the data type, you can perform the operation based on the data.
In a step 406, when terminal inquiry operation corresponding to the data format, the behaviour is performed based on the data Make.
Based on the citing in above-mentioned table 1, it is assumed that data of the data stored in NFC label for picture format, the terminal root According to first correspondence, the corresponding operation of picture format is determined as " starting social networking application, issue picture ", then the terminal starts Social networking application based on the social user identifier that the terminal uses, issues the picture.
Based on the citing in above-mentioned table 2, it is assumed that data of the data stored in the NFC label for text formatting, and the end Correspondence as shown in Table 2 has been established in end, and the data stored in the terminal-pair NFC label are analyzed, and determine the data During for an application identities, according to the application identities, start application.
It should be noted that the present embodiment is by taking the terminal inquiry to the corresponding operation of the data format as an example, in fact, should Terminal is also possible to not inquire the corresponding operation of the data format, i.e., after step 405, this method can also include following steps Rapid 407-410:
In step 407, when the terminal does not inquire the corresponding operation of the data format, based on the user identifier, to The server sends action queries request, and action queries request carries the data.
When the terminal does not inquire the corresponding operation of the data format, represent that the terminal does not preserve the data format and behaviour Correspondence between work, then the terminal to the server send action queries request, the action queries request carry the data, The server to be asked to inquire the corresponding operation of the data format.
In a step 408, when the server receives action queries request, the data format of the data, root are determined According to second correspondence, operation corresponding with the user identifier and the data format is determined.
The server is previously created second correspondence, when the server receives action queries request, obtains The user identifier and the action queries is taken to ask the data carried, according to second correspondence, determine with the user identifier and The corresponding operation of the data format, is sent to the terminal.
In step 409, which is based on the user identifier, and the operation is sent to the terminal.
In step 410, when the terminal receives the operation, the operation is performed based on the data.
Method provided in this embodiment by terminal in the data stored in obtaining NFC label, does not perform certain directly One operation, but first according to the correspondence between data format and operation, determine on-unit, then for same NFC For label, for different terminals in the data stored in obtaining the NFC label, the operation of execution may be different, improve spirit Activity meets the individual demand of terminal user.
Fig. 5 is the block diagram of the device operated according to a kind of execution shown in an exemplary embodiment, referring to Fig. 5, the device Including read module 501, format determination module 502, action queries module 503 and operation executing module 504.
Read module 501 is configurable for reading near-field communication NFC label, obtains the data stored in the NFC label;
Format determination module 502 is configurable for, according to the data, determining the data format of the data;
Action queries module 503 is configurable for, according to the correspondence between data format and operation, inquiring the number According to the corresponding operation of form;
Operation executing module 504 is configurable for, based on the data, performing the operation.
Device provided in this embodiment, by the data stored in obtaining NFC label, not performing a certain behaviour directly Make, but first according to the correspondence between data format and operation, determine on-unit, then for same NFC label For, for different devices in the data stored in obtaining the NFC label, the operation of execution may be different, improve flexibility, Meet the individual demand of terminal user.
The device further includes:
Operation setting module is configurable for, for each data format, obtaining the operation of user setting;
Corresponding relation building module is configurable for establishing the correspondence between the data format and the operation.
The device further includes:
Inquiry request sending module is configurable for when not inquiring the corresponding operation of the data format, based on use User identifier, to server send action queries request, the action queries request carry the data, and the action queries ask For the operation corresponding to the data format of the requesting query data;
The operation executing module 504 be additionally configured to for when receive the server transmission operation when, based on the number According to performing the operation.
The device further includes:
Sending module is configurable for based on the user identifier, and established data format and behaviour are sent to the server Correspondence between work.
The data format includes at least one in text, picture, video, audio, web page address.
Fig. 6 is the block diagram of the device operated according to a kind of execution shown in an exemplary embodiment, referring to Fig. 6, the device Including receiving module 601 and corresponding relation building module 602.
Receiving module 601 is configurable for, based on user identifier, receiving between data format and on-unit First correspondence;
Corresponding relation building module 602 is configurable for establishing between the user identifier, the data format and the operation The second correspondence.
Device provided in this embodiment by being based on user identifier, is received between data format and on-unit The first correspondence when, establish the second correspondence between the user identifier, the data format and the operation, then terminal exists When obtaining the data stored in NFC label, can on-unit be determined according to the second correspondence of device offer, Then for same NFC label, for different terminals in the data stored in obtaining the NFC label, the operation of execution may Difference improves flexibility, meets the individual demand of terminal user.
The device further includes:
Inquiry request receiving module is configurable for based on the user identifier, receives action queries request, which looks into It askes request and carries data;
Data format determining module is configurable for, according to the data, determining the data format of the data;
Operation returns to module and is configurable for, according to second correspondence, returning and the user identifier and the data lattice The corresponding operation of formula.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:The device of execution operation that above-described embodiment provides is when performing operation, only with above-mentioned each work( Can module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different functions Module is completed, i.e., the internal structure of terminal and server is divided into different function modules, to complete whole described above Or partial function.In addition, the device of execution operation that above-described embodiment provides belongs to same with performing the embodiment of the method for operation One design, specific implementation process refer to embodiment of the method, and which is not described herein again.
Fig. 7 is the block diagram according to a kind of device 700 for execution operation shown in an exemplary embodiment.For example, dress It can be mobile phone to put 700, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 7, device 700 can include following one or more components:Processing component 702, memory 704, power supply Component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714 and Communication component 716.
The integrated operation of 702 usual control device 700 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing element 702 can refer to including one or more processors 720 to perform It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 can include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 can include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in equipment 700.These data are shown Example includes the instruction of any application program or method for being operated on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 706 provides electric power for the various assemblies of device 700.Electric power assembly 706 can include power management system System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 700.
Multimedia component 708 is included in the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When equipment 700 is in operation mode, such as screening-mode or During video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loud speaker, for exports audio signal.
I/O interfaces 712 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detect opening/closed state of equipment 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor module 714 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor module 714 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 704 of instruction, above-metioned instruction can be performed to complete the above method by the processor 720 of device 700.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is performed by the processor of terminal When so that terminal is able to carry out a kind of method for performing operation, and this method includes:
Near-field communication NFC label is read, obtains the data stored in the NFC label;
According to the data, the data format of the data is determined;
According to the correspondence between data format and operation, the corresponding operation of the data format is inquired;
Based on the data, the operation is performed.
Before this is according to the correspondence between data format and operation, this method further includes:
For each data format, the operation of user setting is obtained;
Establish the correspondence between the data format and the operation.
This method further includes:
When not inquiring the corresponding operation of the data format, based on the user identifier used, send and operate to server Inquiry request, action queries request carries the data, and action queries request is for the data lattice of the requesting query data Operation corresponding to formula;
When the operation for receiving server transmission, based on the data, the operation is performed.
When should not inquire the corresponding operation of the data format, based on the user identifier used, send and grasp to server Before making inquiry request, this method further includes:
Based on the user identifier, the correspondence between established data format and operation is sent to the server.
The data format includes at least one in text, picture, video, audio, web page address.
Fig. 8 is the block diagram according to a kind of device 800 for execution operation shown in an exemplary embodiment.For example, dress It puts 800 and may be provided as a server.With reference to Fig. 8, device 800 includes processing component 822, further comprises one or more A processor and as the memory resource representated by memory 832, can be by the finger of the execution of processing component 822 for storing It enables, such as application program.The application program stored in memory 832 can include it is one or more each correspond to The module of one group of instruction.In addition, processing component 822 is configured as execute instruction, to perform the method for above-mentioned execution operation.
Device 800 can also include the power management that a power supply module 826 is configured as executive device 800, and one has Line or radio network interface 850 are configured as device 800 being connected to network and input and output (I/O) interface 858.Dress Putting 800 can operate based on the operating system for being stored in memory 832, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.

Claims (8)

  1. A kind of 1. method for performing operation, which is characterized in that the method includes:
    Near-field communication NFC label is read, obtains the data stored in the NFC label;
    According to the data, the data format of the data is determined;
    According to the correspondence between data format and operation, the corresponding operation of the data format is inquired;
    Based on the data, the operation is performed;
    Wherein, the method further includes:
    When not inquiring the corresponding operation of the data format, based on the user identifier used, send operation to server and look into Request is ask, the action queries request carries the data, and action queries request is for data described in requesting query Operation corresponding to data format;
    When receiving the operation that the server is sent, based on the data, the operation is performed;
    Wherein, based on the data, the operation is performed, including:
    If corresponding operate of the data format is a variety of, the operation that user chooses from a variety of operations is obtained, based on described Data, the operation chosen described in execution;Or,
    Data type of the data under the data format is obtained, according to the correspondence between data type and operation, Determined in the corresponding operation of the data format with the matched operation of the data type, based on the data, described in execution Matched operation;
    Wherein, before the correspondence according between data format and operation, the method further includes:
    For each data format, the operation of user setting is obtained;
    Establish the correspondence between the data format and the operation.
  2. 2. according to the method described in claim 1, it is characterized in that, described ought not inquire the corresponding operation of the data format When, based on the user identifier used, before sending action queries request to server, the method further includes:
    Based on the user identifier, the correspondence between established data format and operation is sent to the server.
  3. 3. according to claim 1-2 any one of them methods, which is characterized in that the data format includes text, picture, regards Frequently, at least one in audio, web page address.
  4. A kind of 4. method for performing operation, which is characterized in that the method includes:
    Based on user identifier, the first correspondence between data format and on-unit is received, described first corresponds to pass System is that terminal is established after the operation that user setting is obtained for each data format;
    Establish the second correspondence between the user identifier, the data format and the operation;
    Wherein, it is described to establish after the second correspondence between the user identifier, the data format and the operation, institute The method of stating further includes:
    Based on the user identifier, action queries request is received, the action queries request carries data, and the action queries please Seeking Truth terminal is sent in the corresponding operation of the local data format for not inquiring the data, and the data are existed by the terminal It reads and obtains in near-field communication NFC label, the data are the data stored in the NFC label;
    According to the data, the data format of the data is determined;
    According to second correspondence, operation corresponding with the user identifier and the data format is returned to, so that described Terminal is based on the data and performs the operation;
    Wherein, in the corresponding operation of data format of local search to the data, if the terminal is used for the data lattice The corresponding operation of formula is a variety of, then obtains the operation that user chooses from a variety of operations, based on the data, chosen described in execution Operation;Or, data type of the data under the data format is obtained, according to corresponding between data type and operation Relationship, the determining and matched operation of the data type in the corresponding operation of the data format based on the data, perform The matched operation.
  5. 5. a kind of device for performing operation, which is characterized in that described device includes:
    Read module for reading near-field communication NFC label, obtains the data stored in the NFC label;
    Format determination module, for according to the data, determining the data format of the data;
    Action queries module, for according to the correspondence between data format and operation, it is corresponding to inquire the data format Operation;
    Operation executing module for being based on the data, performs the operation;
    Wherein, described device further includes:
    Inquiry request sending module, for when not inquiring the corresponding operation of the data format, based on the user's mark used Know, send action queries request to server, the action queries request carries the data, and action queries request is used The operation corresponding to data format in data described in requesting query;
    The operation executing module is additionally operable to when receiving the operation that the server is sent, and based on the data, performs institute State operation;
    The operation executing module if being a variety of for the corresponding operation of the data format, obtains user from a variety of operations In the operation chosen, based on the data, the operation chosen described in execution;Or, the data are obtained under the data format Data type, according to the correspondence between data type and operation, determined in the corresponding operation of the data format with The matched operation of data type based on the data, performs the matched operation;
    Wherein, described device further includes:
    Operation setting module, for for each data format, obtaining the operation of user setting;
    Corresponding relation building module, for establishing the correspondence between the data format and the operation.
  6. 6. device according to claim 5, which is characterized in that described device further includes:
    Sending module for being based on the user identifier, is sent to the server between established data format and operation Correspondence.
  7. 7. according to claim 5-6 any one of them devices, which is characterized in that the data format includes text, picture, regards Frequently, at least one in audio, web page address.
  8. 8. a kind of device for performing operation, which is characterized in that described device includes:
    Receiving module for being based on user identifier, receives the first correspondence between data format and on-unit, institute It is that terminal is established after the operation that user setting is obtained for each data format to state the first correspondence;
    Corresponding relation building module, for establishing the second couple between the user identifier, the data format and the operation It should be related to;
    Wherein, described device further includes:
    Inquiry request receiving module for being based on the user identifier, receives action queries request, and the action queries request is taken Band data, the action queries request are that terminal is sent out in the corresponding operation of the local data format for not inquiring the data It send, the data are read in near-field communication NFC label by the terminal and obtained, and the data are to be stored in the NFC label Data;
    Data format determining module, for according to the data, determining the data format of the data;
    Operation returns to module, for according to second correspondence, returning and the user identifier and the data format pair The operation answered, so that the terminal is based on the data and performs the operation;
    Wherein, in the corresponding operation of data format of local search to the data, if the terminal is used for the data lattice The corresponding operation of formula is a variety of, then obtains the operation that user chooses from a variety of operations, based on the data, chosen described in execution Operation;Or, data type of the data under the data format is obtained, according to corresponding between data type and operation Relationship, the determining and matched operation of the data type in the corresponding operation of the data format based on the data, perform The matched operation.
CN201410502849.9A 2014-09-26 2014-09-26 The method and apparatus for performing operation Active CN104298508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410502849.9A CN104298508B (en) 2014-09-26 2014-09-26 The method and apparatus for performing operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410502849.9A CN104298508B (en) 2014-09-26 2014-09-26 The method and apparatus for performing operation

Publications (2)

Publication Number Publication Date
CN104298508A CN104298508A (en) 2015-01-21
CN104298508B true CN104298508B (en) 2018-07-06

Family

ID=52318251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410502849.9A Active CN104298508B (en) 2014-09-26 2014-09-26 The method and apparatus for performing operation

Country Status (1)

Country Link
CN (1) CN104298508B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412315B (en) * 2016-10-31 2020-05-01 努比亚技术有限公司 NFC tag, method for setting NFC tag, NFC tag system and mobile terminal
CN112188458A (en) * 2020-09-29 2021-01-05 深圳市创新佳电子标签有限公司 NFC social software system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838849A (en) * 2014-02-13 2014-06-04 北京数字天域科技股份有限公司 Information query method, device and system and data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646184B (en) * 2012-05-04 2014-10-22 上海天臣防伪技术股份有限公司 Method for reading ISO15693 (International Standard Organization) labels by utilizing NFC (Near Field Communication) mobile phone
CN102929595A (en) * 2012-09-20 2013-02-13 腾讯科技(深圳)有限公司 Method and device for realizing action command
CN102970063B (en) * 2012-10-26 2015-12-16 北京三星通信技术研究有限公司 The method of near-field communication and equipment thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838849A (en) * 2014-02-13 2014-06-04 北京数字天域科技股份有限公司 Information query method, device and system and data processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
android NFC学习笔记;w969272198;《http://blog.csdn.net/w969272198/article/details/8651517》;20130308;第1-4页 *
怎么设置程序的默认打开方式;鲍学利;《http://jingyan.***.com/article/c45ad29cf71476051753e219.html》;20120721;第1-4页 *

Also Published As

Publication number Publication date
CN104298508A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104780155B (en) Apparatus bound method and device
CN104468329B (en) Member adding method and device based on instant messaging
CN105208631B (en) Method for connecting network and device
CN104038536B (en) Plug-in unit communication means and device
CN105487389A (en) Method and device for controlling intelligent equipment
CN105372998A (en) A method and a device for binding of intelligent apparatuses
CN108768803A (en) Add the method, apparatus and storage medium of smart machine
CN105093949A (en) Method and apparatus for controlling device
CN104159230B (en) Call recognition methods and device
CN105549944B (en) Equipment display methods and device
CN105516508A (en) Method and device for activating virtual SIM card
CN104837154B (en) The control method and device of wireless access points
CN107948926A (en) The method and apparatus that smart machine is shared
CN104636453A (en) Illegal user data identification method and device
CN105100355A (en) Method and device for identifying calling user
CN105208176B (en) Contact person record processing method and processing device
CN104618267A (en) Access control method and device
CN106775224A (en) Remark information method to set up and device
CN106209604A (en) Add the method and device of good friend
CN105554215A (en) Automatic selection dialing method and device, and mobile terminal
CN105407160B (en) Interface display method and device
CN106384586A (en) Method and device for reading text information
CN105515923A (en) Equipment control method and device
CN105491518A (en) Method and device for social reminding based on wearable devices
CN107272896A (en) The method and device switched between VR patterns and non-VR patterns

Legal Events

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