CN105744465A - Near-field communication event generation method and electronic equipment - Google Patents
Near-field communication event generation method and electronic equipment Download PDFInfo
- Publication number
- CN105744465A CN105744465A CN201610041506.6A CN201610041506A CN105744465A CN 105744465 A CN105744465 A CN 105744465A CN 201610041506 A CN201610041506 A CN 201610041506A CN 105744465 A CN105744465 A CN 105744465A
- Authority
- CN
- China
- Prior art keywords
- field communication
- event
- near field
- electronic equipment
- unit
- 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
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to the technical field of communication, and discloses a near-field communication event generation method and electronic equipment. The near-field communication event generation method is applied to the electronic equipment which comprises a mode recognition unit, a near-field communication unit, and a pre-created background processing thread. The method comprises the following steps: the mode recognition unit sends the recognized current mode of the electronic equipment to the near-field communication unit; the near-field communication unit sends acquired near-field communication data to the background processing thread if judging that the current mode is a dormant mode; and the background processing thread generates a near-field communication event according to the near-field communication data. Through the method, the electronic equipment can carry out near-field communication in a dormant or standby mode, the low-power state of the electronic equipment in a standby mode is ensured, and the manufacture cost of the electronic equipment is not increased.
Description
Technical field
The present invention relates to communication technical field, particularly to production method and the electronic equipment of a kind of near field communication event.
Background technology
Along with the development of science and technology, the radiotechnics that NFC (near-field communication, NearFieldCommunication) is this short distance high frequency is increasingly widely used on the electronic equipments such as bracelet, wrist-watch, mobile phone.
Under prior art, when electronic equipment is in running order, NFC chip and main equipment communication, by the data that gather by CPU computing, it is achieved the NFC function such as match, swipe the card.But, when electronic equipment in a dormant state time, owing to CPU is also at resting state, though NFC work, also the data collected cannot be carried out calculation process, also just cannot realize correlation function.Want to be always maintained at NFC function, it is necessary to make electronic equipment be maintained at duty, increase the power consumption of electronic equipment.In order to make up this shortcoming, adding coprocessor sensorhub, but add coprocessor sensorhub in current electronic equipment, the manufacturing cost causing electronic equipment increases.
Summary of the invention
It is an object of the invention to provide the production method of a kind of near field communication event so that electronic equipment also can carry out near-field communication, the low power consumpting state of electronic equipment when not only ensure that standby when dormancy is standby, and does not increase the cost of manufacture of electronic equipment.
For solving above-mentioned technical problem, embodiments of the present invention provide the production method of a kind of near field communication event, are applied to electronic equipment, and electronic equipment comprises pattern recognition unit, near field communication unit and the background process thread being pre-created;The production method of near field communication event comprises the steps of
The present mode of the electronic equipment that pattern recognition unit will identify that sends near field communication unit;If near field communication unit judges that present mode is park mode, then the near-field communication data obtained is sent to background process thread by near field communication unit;Background process thread produces near field communication event according to near-field communication data.
Embodiments of the present invention additionally provide a kind of electronic equipment, comprise: pattern recognition unit, near field communication unit and the background process thread being pre-created.
Pattern recognition unit is for identifying the present mode of electronic equipment, and the present mode that will identify that sends near field communication unit;Near field communication unit is used for obtaining near-field communication data;Near field communication unit is additionally operable to judge whether present mode is park mode;If present mode is park mode, then near-field communication data is sent to background process thread by near field communication unit;Background process thread is for producing near field communication event according to background process data.
Embodiment of the present invention is in terms of existing technologies, there is near field communication unit and background process thread due to electronic equipment, so when the present mode that near field communication unit judges electronic equipment is park mode, near-field communication data near field communication unit obtained sends to background process thread, background process thread just can produce near field communication event according to near-field communication data, make electronic equipment also can carry out near-field communication when dormancy is standby, user-friendly, and the electricity that electronic equipment consumes in the standby state is far less than the electricity consumed under duty, thus the low power consumpting state of electronic equipment when ensure that standby;Meanwhile, electronic equipment is without increasing extra element, from the cost of manufacture without increasing electronic equipment.
It addition, near-field communication data comprises current event mark;Background process thread produces the step of near field communication event according to near-field communication data, comprises following sub-step: background process thread judges whether that a predeterminable event mark and current event mark match;If existing, then the background process thread default corresponding relation according to event flag Yu event argument information, obtain the event argument information that current event mark is corresponding;Background process thread produces near field communication event according to the event argument information obtained.Wherein, event flag is stored in the memory element of electronic equipment with the default corresponding relation of event argument information.This step makes embodiment of the present invention can obtain the event argument information corresponding with current event mark of storage in memory element, then near field communication event is produced according to event argument information, this judgment mode has evidence, thus ensureing the processing speed of background process thread and processing quality.
It addition, near field communication event is bankcard consumption event;Event argument information comprises remaining cost and single card-stamping charge in card;Background process thread produces in the step of near field communication event according to event argument information, and background process thread calculates the difference of remaining cost and single card-stamping charge in card, and using the difference calculated as remaining cost in the card after updating.Near field communication event is bankcard consumption event so that embodiment of the present invention is more plentiful, is conducive to user to understand and uses embodiments of the present invention, thus being conducive to the popularization of embodiment of the present invention.
It addition, electronic equipment also comprises application processing unit;If near field communication unit judges that present mode is mode of operation, then near-field communication data is sent to applying processing unit by near field communication unit.This step makes embodiment of the present invention more perfect, enters the electronic equipment after duty, by application processing unit processes near field communication event, more conforms to the demand of practical application and user.
Accompanying drawing explanation
Fig. 1 is the flow chart of the production method according to first embodiment of the invention near field communication event;
Fig. 2 is the block diagram according to second embodiment of the invention electronic equipment;
Fig. 3 is according to the block diagram of background process thread in second embodiment of the invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, it will be understood by those skilled in the art that in each embodiment of the present invention, propose many ins and outs in order to make reader be more fully understood that the application.But, even without these ins and outs with based on the many variations of following embodiment and amendment, it is also possible to realize the application each claim technical scheme required for protection.
First embodiment of the present invention relates to the production method of a kind of near field communication event.The production method of this near field communication event is applied to electronic equipment.Wherein, this electronic equipment comprises mode determination, near field communication unit and the background process thread being pre-created.The idiographic flow of the method is as shown in Figure 1.
Step 101, the present mode that pattern recognition unit will identify that sends near field communication unit.
Specifically, pattern recognition unit is for identifying the present mode of electronic equipment, and the present mode being additionally operable to will identify that sends near field communication unit.
Step 102, near field communication unit judges whether present mode is park mode.If being judged as YES, then enter step 103;If being judged as NO, then process ends.
Step 103, the near-field communication data obtained is sent to background process thread by near field communication unit.
Wherein, background process thread is a kind of single-threaded meter step program that can work under monokaryon, low frequency state.
Step 104, background process thread produces near field communication event according to near-field communication data.
In the present embodiment, step 104 comprises sub-step 1041,1042 and 1043.
Sub-step 1041, background process thread judges whether that a predeterminable event mark and current event mark match.If being judged as YES, then enter sub-step 1042,;If being judged as NO, then process ends.
In present embodiment, near-field communication data comprises current event mark, and current event mark can be bankcard consumption event 1, door open event 2 etc. of swiping the card, and event and mark have relation one to one.
Specifically, if the predeterminable event being previously stored and mark thereof as shown in Table 1.
Form 1
If current event is masked as 1, so according to form 1, background process thread judges whether that a predeterminable event mark and current event mark match, owing to form 1 existing predeterminable event mark 1, so, background process thread may determine that one predeterminable event mark of existence matches with current event mark, and this current event is bankcard consumption event.Certainly, predeterminable event mark is not limited to adopt numeral, it is also possible to adopt letter, symbol, even word etc..
Sub-step 1042, the background process thread default corresponding relation according to event flag Yu event argument information, obtain the event argument information that current event mark is corresponding.
Specifically, if the default corresponding relation of event flag and event argument information as shown in Table 2.
Event flag | Event argument information |
1 | Remaining cost and single card-stamping charge in card |
2 | Identity code |
Form 2
If judging in sub-step 1042, event flag is 1, say, that near field communication event is bankcard consumption event, then may determine that the event argument information that corresponding event flag is 1 comprises remaining cost and single card-stamping charge in card according to form 2.Certainly, event flag and event argument information in form 2 are not limited to this, and event flag can also adopt letter, symbol, even word etc., and event argument information can adopt concrete expense, computing formula etc., does not repeat herein.
Sub-step 1043, background process thread produces near field communication event according to the event argument information obtained.
Specifically, background process thread, according to the event argument information corresponding to current event mark obtained, produces near field communication event.Such as, current event is masked as 1, is bankcard consumption event according to the known current event of form 1, according to form 2 it can be seen that the event argument information of bankcard consumption event comprises remaining cost and single card-stamping charge in card.Background process thread calculates residue and the difference of single card-stamping charge in card, using the difference calculated as remaining cost in the card after updating.Also the interior remaining cost-single card-stamping charge of remaining cost=card in the card after updating just is said.
For bankcard consumption event for park event, in card, remaining cost is 100 yuan, and single card-stamping charge is 20 yuan, then remaining cost-single card-stamping charge=80 yuan in remaining cost=card in the card after renewal.
Step 105, near-field communication data is sent to applying processing unit by near field communication unit.
Step 106, the near-field communication data received is processed by application processing unit.
That is, application process is single judges the whether corresponding default event argument information of near-field communication data;Concrete processing mode is similar with the concrete processing mode of background process thread in step 104, repeats no more herein.
It is noted that only have mode of operation and park mode two kinds due to the present mode of electronic equipment, therefore, if the present mode that inertial sensor judges is not park mode, then the present mode that just can be defaulted as electronic equipment is mode of operation.Therefore, when under electronic equipment is in running order, by application processing unit processes near-field communication data, tally with the actual situation the demand with user.And, apply the process of processing unit processes near-field communication data and the similar process of background process thread process near-field communication data, do not repeat herein.
In terms of existing technologies, there is near field communication unit and background process thread due to electronic equipment, so when the present mode that near field communication unit judges electronic equipment is park mode, near-field communication data near field communication unit obtained sends to background process thread, background process thread just can produce near field communication event according to near-field communication data, make electronic equipment also can carry out near-field communication when dormancy is standby, user-friendly, and the electricity that electronic equipment consumes in the standby state is far less than the electricity consumed under duty, thus the low power consumpting state of electronic equipment when ensure that standby;Meanwhile, electronic equipment is without increasing extra element, from the cost of manufacture without increasing electronic equipment.
The step of various methods divides above, is intended merely to description clear, it is achieved time can be merged into a step or some step is split, and is decomposed into multiple step, as long as comprising identical logical relation, all in the protection domain of this patent;To adding inessential amendment in algorithm or in flow process or introducing inessential design, but do not change the core design of its algorithm and flow process all in the protection domain of this patent.
Second embodiment of the invention relates to a kind of electronic equipment, as in figure 2 it is shown, comprise: pattern recognition unit, near field communication unit, the background process thread being pre-created, memory element and application processing unit.
Pattern recognition unit, for identifying the present mode of electronic equipment, and the present mode that will identify that sends near field communication unit.Near field communication unit, is used for obtaining near-field communication data;Being additionally operable to judge whether present mode is park mode, if present mode is park mode, then near-field communication data is sent to background process thread by near field communication unit;Background process thread is for producing near field communication event according to background process data;Application processing unit is for producing near field communication event according to background process data.
Wherein, described near field communication unit is additionally operable to judge whether described present mode is mode of operation;If described present mode is mode of operation, then described near-field communication data is sent to described application processing unit by described near field communication unit.
As it is shown on figure 3, background process thread comprises tag match unit, parameter acquiring unit and event generation unit;Near-field communication data comprises current event mark.
Tag match unit, is used for judging whether that a predeterminable event mark and current event mark match;Parameter acquiring unit, for the default corresponding relation according to event flag Yu event argument information, obtains the event argument information that current event mark is corresponding.Event generation unit, for producing near field communication event according to the event argument information obtained.Wherein, event flag is stored in the memory element of electronic equipment with the default corresponding relation of event argument information.
When near field communication event is bankcard consumption event, event argument information comprises remaining cost and single card-stamping charge in card;Event generation unit comprises computing unit;Computing unit is for calculating the difference of remaining cost and single card-stamping charge in card, and using the difference calculated as remaining cost in the card after renewal.
It is seen that, present embodiment is the system embodiment corresponding with the first embodiment, and present embodiment can be worked in coordination enforcement with the first embodiment.The relevant technical details mentioned in first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the first embodiment.
It is noted that each module involved in present embodiment is logic module, in actual applications, a logical block can be a physical location, it is also possible to be a part for a physical location, it is also possible to realize with the combination of multiple physical locations.Additionally, for the innovative part highlighting the present invention, do not introduced by the unit less close with solving technical problem relation proposed by the invention in present embodiment, but this is not intended that in present embodiment to be absent from other unit.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the invention, and in actual applications, it is possible in the form and details it is done various change, without departing from the spirit and scope of the present invention.
Claims (9)
1. the production method of a near field communication event, it is characterised in that be applied to electronic equipment, described electronic equipment comprises pattern recognition unit, near field communication unit and the background process thread being pre-created;The production method of described near field communication event comprises the steps of
The present mode of the described electronic equipment that described pattern recognition unit will identify that sends to described near field communication unit;
If described near field communication unit judges that described present mode is park mode, then the near-field communication data obtained is sent to described background process thread by described near field communication unit;
Described background process thread produces near field communication event according to described near-field communication data.
2. the production method of near field communication event according to claim 1, it is characterised in that described near-field communication data comprises current event mark;
Described background process thread produces the step of near field communication event according to described near-field communication data, comprises following sub-step:
Described background process thread judges whether that a predeterminable event mark and described current event mark match;
If existing, then the described background process thread default corresponding relation according to event flag Yu event argument information, obtain the event argument information that described current event mark is corresponding;
Described background process thread produces described near field communication event according to the described event argument information obtained;
Wherein, described event flag is stored in the memory element of electronic equipment with the default corresponding relation of event argument information.
3. the production method of near field communication event according to claim 2, it is characterised in that described near field communication event is bankcard consumption event;Described event argument information comprises remaining cost and single card-stamping charge in card;
Described background process thread produces in the step of described near field communication event according to described event argument information, described background process thread calculates the difference of remaining cost and described single card-stamping charge in described card, and using the described difference calculated as remaining cost in the card after updating.
4. the production method of near field communication event according to claim 1, it is characterised in that described electronic equipment also comprises application processing unit;
If described near field communication unit judges that described present mode is mode of operation, then described near-field communication data is sent to described application processing unit by described near field communication unit.
5. an electronic equipment, it is characterised in that comprise: pattern recognition unit, near field communication unit and the background process thread being pre-created;
Described pattern recognition unit is for identifying the present mode of described electronic equipment, and the described present mode that will identify that sends to described near field communication unit;
Described near field communication unit is used for obtaining near-field communication data;Described near field communication unit is additionally operable to judge whether described present mode is park mode;If described present mode is park mode, then described near-field communication data is sent to described background process thread by described near field communication unit;
Described background process thread is for producing near field communication event according to described background process data.
6. electronic equipment according to claim 5, it is characterised in that described near-field communication data comprises current event mark;Described background process thread comprises tag match unit, parameter acquiring unit and event generation unit;
Described tag match unit is used for judging whether that a predeterminable event mark and described current event mark match;
Described parameter acquiring unit, for the default corresponding relation according to event flag Yu event argument information, obtains the event argument information that described current event mark is corresponding;
Described event generation unit is for producing described near field communication event according to the described event argument information obtained;
Wherein, described event flag is stored in the memory element of electronic equipment with the default corresponding relation of event argument information.
7. electronic equipment according to claim 6, it is characterised in that described near field communication event is bankcard consumption event;Described event argument information comprises remaining cost and single card-stamping charge in card;
Described event generation unit comprises computing unit;Described computing unit is for calculating the difference of remaining cost and described single card-stamping charge in described card, and using the described difference calculated as remaining cost in the card after updating.
8. electronic equipment according to claim 5, it is characterised in that described electronic equipment also comprises application processing unit;
Described application processing unit is for producing described near field communication event according to described background process data;
Wherein, described near field communication unit is additionally operable to judge whether described present mode is mode of operation;If described present mode is mode of operation, then described near-field communication data is sent to described application processing unit by described near field communication unit.
9. electronic equipment according to claim 5, it is characterised in that described electronic equipment is mobile phone or wearable device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610041506.6A CN105744465A (en) | 2016-01-21 | 2016-01-21 | Near-field communication event generation method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610041506.6A CN105744465A (en) | 2016-01-21 | 2016-01-21 | Near-field communication event generation method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105744465A true CN105744465A (en) | 2016-07-06 |
Family
ID=56247338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610041506.6A Pending CN105744465A (en) | 2016-01-21 | 2016-01-21 | Near-field communication event generation method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105744465A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101657836A (en) * | 2007-01-09 | 2010-02-24 | 维萨美国股份有限公司 | Mobile phone payment process including threshold indicator |
US20150099465A1 (en) * | 2011-08-12 | 2015-04-09 | Felica Networks, Inc. | Communication device, control method, and program |
CN105117908A (en) * | 2015-09-30 | 2015-12-02 | 联想(北京)有限公司 | Transaction payment prompt method and electronic equipment |
-
2016
- 2016-01-21 CN CN201610041506.6A patent/CN105744465A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101657836A (en) * | 2007-01-09 | 2010-02-24 | 维萨美国股份有限公司 | Mobile phone payment process including threshold indicator |
US20150099465A1 (en) * | 2011-08-12 | 2015-04-09 | Felica Networks, Inc. | Communication device, control method, and program |
CN105117908A (en) * | 2015-09-30 | 2015-12-02 | 联想(北京)有限公司 | Transaction payment prompt method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108090567B (en) | Fault diagnosis method and device for power communication system | |
CN105224201A (en) | A kind of method of interface display and terminal | |
CN112650858B (en) | Emergency assistance information acquisition method and device, computer equipment and medium | |
CN108255602A (en) | Task combined method and terminal device | |
CN105827798A (en) | Processing method of position information and electronic device | |
CN105739884A (en) | Gesture event generation method and electronic device | |
CN103516517A (en) | Production method, RFID transponder, authentication method, and reader device | |
CN109769015A (en) | Anti-fake component, system, method and computer readable storage medium | |
CN112419312B (en) | Similar house source information detection method and device, electronic equipment and readable medium | |
CN105744465A (en) | Near-field communication event generation method and electronic equipment | |
Menaldi et al. | Remarks on risk-sensitive control problems | |
CN109147101A (en) | The reader device and card-reading system of access control system and the control method of access control system | |
CN112433753A (en) | Interface document generation method, device, equipment and medium based on parameter information | |
CN106998315B (en) | Method, device and system for registration authentication | |
CN105718266A (en) | Software step counting method and module, as well as electronic equipment | |
CN106651803A (en) | House type data identification method and device | |
CN109946538A (en) | A kind of mobile device monitoring method and system based on magnetic strength induction signal | |
CN109739574A (en) | Data capture method and electronic equipment, scaling method and device | |
CN208538118U (en) | A kind of cipher card based on PCIe104 interface | |
CN113761576A (en) | Privacy protection method and device, storage medium and electronic equipment | |
CN106775750A (en) | The method and device that terminal device wakes up | |
CN203966165U (en) | For the electronic tag of accurately locating and controlling | |
CN104158903A (en) | Method and system of encoding OAM (Operation Administration and Maintenance) protocol stack | |
CN112182539A (en) | Fingerprint verification method | |
CN107194014B (en) | Data source calling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160706 |
|
RJ01 | Rejection of invention patent application after publication |