Summary of the invention
The present invention provides a kind of electronic equipment of the NFC of having module and the method for being controlled through NFC by other electronic equipment thereof; It adopts the NFC transmission means to let the man-machine interface of some electronic equipment such as mobile phone reach for the more original man-machine interface of other electronic equipment, to solve the other electronic equipment owing to having the technical problem that more original man-machine interface is difficult to operate.
The object of the invention is realized like this: electronic equipment is through the method for other electronic equipment of NFC control; This method has been used first electronic equipment and second electronic equipment; Two electronic equipments all have the NFC module and can carry out transfer of data, and this method may further comprise the steps: steps A, send read command step; Two electronic equipments near and can carry out the NFC transfer of data, first electronic equipment sends the menucommand information that reads through the NFC data transfer mode to second electronic equipment; Step B, menu reads transmitting step, and reception of second electronic equipment and demodulating information are also carried out and are read menucommand, and second electronic equipment sends menu data information through the NFC data transfer mode to first electronic equipment; Step C, the menu setting step, reception of first electronic equipment and demodulating information draw menu data and are presented on the display screen of the first electronic equipment man-machine interface, through the keyboard setup menu control command of man-machine interface; Step D sends the menucommand step, two electronic equipments near and can carry out the NFC transfer of data, first electronic equipment sends menu setting information through the NFC data transfer mode to second electronic equipment; Step e, the menu setting execution in step, the second electronic equipment reception and demodulating information are also carried out menucommand according to menu setting.
Further comprising the steps of: step F, execution result passback step, second electronic equipment is back to first electronic equipment with the menucommand execution result information through the NFC data transfer mode, and reception of first electronic equipment and demodulating information are to judge execution result.
This second electronic equipment includes control unit at least; Be connected with operating part, NFC module and memory on the control unit; Be connected with bi-directional communication interface between NFC module and the control unit; Wherein this control unit also is provided with interrupt module, and an output pin of NFC module connects the interruption input pin of control unit;
Step B in this method, menu reads transmitting step, comprising: step B1, the interrupt requests step, the NFC module of second electronic equipment receives and demodulating information, and sends interrupt request singal through the output pin of NFC module to interrupting input pin; Step B2, interrupt step, the control unit of second electronic equipment receives interrupt request singal, promptly calls interrupt module with the background work of interruption controls unit and carry out scene protection; Step B3; Step is returned in transfer of data and interruption; The control module of second electronic equipment reads the menucommand that reads that the NFC module received; Menucommand is read in execution, and current state and menu structure data are write in the NFC module, and interrupt module recovers on-the-spot and interrupts turning back in the background work then; Step B4, menu reads transmitting step, and the NFC module of second electronic equipment is sent to first electronic equipment with the second electronic equipment current state and menu structure data information through the NFC data transfer mode.
Step e in this method, the menu setting execution in step comprises: step e 1, the interrupt requests step, the NFC module of second electronic equipment receives and demodulating information, and sends interrupt request singal through the output pin of NFC module to interrupting input pin; Step e 2, interrupt step, the control unit of second electronic equipment receives interrupt request singal, promptly calls interrupt module with the background work of interruption controls unit and carry out scene protection; Step e 3, menu setting execution in step, the control module of second electronic equipment read the menu setting order that the NFC module is received, and interrupt module recovers on-the-spot and interrupts turning back in the background work then, and beginning is according to the menu setting fill order.
The steps A of this method, send read command step and comprise: steps A 1, detect step, whether first electronic equipment detects has other NFC equipment; Steps A 2 is sent read command step, two electronic equipments near and can carry out the NFC transfer of data, first electronic equipment has detected other NFC equipment, first electronic equipment sends the menucommand information that reads to second electronic equipment.
The step C of this method, the menu setting step comprises: step C1, the storage step, reception of first electronic equipment and demodulating information draw menu data and it are stored in the internal memory; Step C2, the menu setting step, first electronic equipment sends instructions and notifies man-machine interface work, and the display screen display menu of man-machine interface is followed the keyboard setup menu control command through man-machine interface.
This first electronic equipment is mobile phone, PDA or notebook computer.
The object of the invention also can be realized like this: a kind of electronic equipment; This electronic equipment includes control unit at least; Be connected with operating part, NFC module and memory on the control unit; Be connected with bi-directional communication interface between NFC module and the control unit, wherein control unit can outwards transmit menu data information through the NFC module, and can receive the menu setting data and carry out menucommand according to menu setting through the NFC module.
This control unit is provided with interrupt module; One output pin of NFC module connects the interruption input pin of control unit; Wherein, The NFC module receives data and promptly sends interrupt requests through output pin to interrupting input pin, and control unit receives interrupt request singal and promptly calls interrupt module with the background work of interruption controls unit and carry out scene protection, and the interruption controls unit recovers on-the-spot and interrupts turning back in the background work behind the NFC module data end of transmission.
Technical scheme of the present invention; Closely NFC communication between the electronic equipment (second electronic equipment) that utilize that some man-machine interface is more perfect, the electronic equipment (first electronic equipment) that has NFC and the man-machine interface of other are more original, has NFC; First electronic equipment obtains setting, the Control-Menu of second electronic equipment; Then utilize the man-machine interface of the first electronic equipment hommization to show, import option and carry out menu setting, should be provided with then, the Control-Menu order beams back in second electronic equipment for it according to the menu fill order.The invention property ground adopts the NFC transmission means to let the man-machine interface of some electronic equipment such as mobile phone reach for the more original man-machine interface of other electronic equipment, solves the other electronic equipment owing to having the technical problem that more original man-machine interface is difficult to operate; And has advantage: need not all electronic equipments and all be provided with perfect man-machine interface, practice thrift social resources and cost, reduce user cost; The present technique scheme not only has outstanding substantive distinguishing features but also also has significant technological progress, and is therefore creative.Adopt the present technique scheme also to have following advantage: amount of user information is more, as showing more detailed help information, can let the user not rely on specification and operate; More humane and the better user experience of man-machine interface; If electronic equipment adopts liquid crystal to do demonstration, use the scheme price of NFC can be lower so merely.
Embodiment
Please refer to Fig. 1, first electronic equipment 10 is a mobile phone, and it has central processing unit 11, is connected with man-machine interface (MMI) 12, memory 13 and NFC module 14 on the central processing unit 11.
Please refer to Fig. 1; Second electronic equipment 20 includes control unit 21 at least; Be connected with operating part 22, memory 23 and NFC module 24 on the control unit 21, NFC module 24 is through bi-directional communication interface, like I2C; Be connected in control unit 21, a GPIO output pin of the chip of NFC module 14 is connected on the interruption output pin of control unit 21.Control unit 21 can outwards transmit second electronic equipment, 20 menu data information through NFC module 24, and can receive the menu setting data and carry out menucommand according to menu setting through NFC module 24.Before second electronic equipment 20 generally is divided into/and background system, important work is generally accomplished by foreground (be exactly interrupt), and other less important work can be placed in the systemic circulation on backstage and work, so at control unit 21 interrupt module are set according to these needs.NFC module 24 receives data and promptly sends interrupt requests through the GPIO output pin to interrupting input pin; Control unit 21 receives interrupt request singal and promptly calls interrupt module with the background work of interruption controls unit 21 and carry out scene protection, and the NFC module 24 transfer of data interruption controls unit, back 21 that finishes recovers on-the-spot and interrupts turning back in the background work.
Please refer to Fig. 2, mobile phone 10 is as the promoter in this method, and second electronic equipment 20 is a target device as slave unit.This method may further comprise the steps:
Steps A is sent read command step, comprising:
Steps A 1, mobile phone detects step, and whether the NFC module 14 of mobile phone 10 detects periphery has other NFC equipment;
Steps A 2 is sent read command step, and mobile phone 10 is near second electronic equipment 20 and can carry out the NFC transfer of data, and then mobile phone 10 has detected other NFC equipment, and mobile phone 10 sends the menucommand information that reads to second electronic equipment 20;
Step B, menu reads transmitting step, comprising:
Step B1, interrupt requests step, the NFC module 24 of second electronic equipment 20 receive the information that mobile phones 10 send and demodulate and read menucommand, and the GPIO output pin of NFC module 24 sends interrupt request singal to the interruption input pin of control unit 21;
Step B2, interrupt step, the control unit 21 of second electronic equipment 20 receives interrupt request singal, promptly calls interrupt module with the background work of interruption controls unit 21 and carry out scene protection;
Step B3; Step is returned in transfer of data and interruption; The control module 21 of second electronic equipment 20 reads the menucommand that reads that NFC module 24 received; Menucommand is read in execution, and current state and menu structure data are write in the NFC module 24, and interrupt module recovers on-the-spot and interrupts turning back in the background work then;
Step B4, menu reads transmitting step, and the NFC module 24 of second electronic equipment 20 is sent to second electronic equipment, 20 current states and menu structure data information the NFC module 14 of mobile phone 10 through the NFC data transfer mode;
Step C, the menu setting step, it comprises:
Step C1, the storage step, the NFC module 14 reception information and the demodulating information of mobile phone 10 draw menu data, it are stored in the internal memory again;
Step C2, the menu setting step, notice man-machine interface 11 work that send instructions of mobile phone 10, the display screen display menu of man-machine interface 11 is followed the keyboard setup menu control command through man-machine interface 11;
Step D sends the menucommand step, two electronic equipments near and can carry out the NFC transfer of data, mobile phone 10 sends the menu setting information through the NFC data transfer mode to second electronic equipment 20;
Step e, the menu setting execution in step, it comprises:
Step e 1, the interrupt requests step, the NFC module of second electronic equipment 20 receives and demodulating information, and sends interrupt request singal through the output pin of NFC module to interrupting input pin;
Step e 2, interrupt step, the control unit of second electronic equipment receives interrupt request singal, promptly calls interrupt module with the background work of interruption controls unit and carry out scene protection;
Step e 3, menu setting execution in step, the control module of second electronic equipment read the menu setting order that the NFC module received, and interrupt module recovers on-the-spot and interrupts turning back in the background work then, with beginning according to the menu setting fill order;
Step F, execution result passback step, second electronic equipment is back to mobile phone 10 with the menucommand execution result information through the NFC data transfer mode, and mobile phone 10 receptions and demodulating information are to judge execution result.
Please refer to Fig. 3, further understand the present invention in order to make the reader, the workflow of accompanying drawings mobile phone 10 in said method, it comprises:
Mobile phone detects step, and whether the NFC module 14 of mobile phone 10 detects periphery has other NFC equipment;
Send read command step, mobile phone 10 is near second electronic equipment 20 and can carry out the NFC transfer of data, and mobile phone 10 has detected other NFC equipment, and mobile phone 10 sends the menucommand information that reads to second electronic equipment 20;
Whether detect has the response step, does the NFC module 14 of mobile phone 10 detects other NFC equipment have response? If have, then carry out next step, if do not have, then return mobile phone and detect step;
Menu read step, the central processing unit 11 of mobile phone 10 read NFC module 14 receive and separate current state and the menu structure data information of being transferred to, then it is stored in the internal memory;
Send out message informing MMI step, mobile phone 10 central processing units 11 send instructions and notify man-machine interface 11 work, the display screen display menu of man-machine interface 11;
Step is set: through the keyboard setup menu control command of man-machine interface 11;
Send the menucommand step, mobile phone 10 sends menu setting information through the NFC data transfer mode to second electronic equipment 20, turns back to mobile phone then and detects step.
Please refer to Fig. 4, further understand the present invention in order to make the reader, the workflow of accompanying drawings second electronic equipment 20 in said method, it comprises:
Background program, constantly whether detection has interrupt requests, if do not have, then continues periodic duty, for example begins periodic duty from flag=1, if having then interrupt background work and carry out following steps:
Foreground program, both interrupt service routines comprises:
The scene protection step, interrupt module carries out scene protection;
Read step, control unit 21 reads the order data of NFC module;
Analyze commands steps; Judge order for reading menu data order or setup menu data command (writing the menu data order), as for read the menu data order or, execution transmission data step then; As be the setup menu data command, then carry out the menu setting commands steps;
Send data step, control unit 21 fill orders are sent to the NFC module 14 of mobile phone 10 with second electronic equipment, 20 current states and menu structure data information through the NFC data transfer mode, carry out on-the-spot recovering step then;
Carry out the menu setting commands steps, control unit 21 receives the setup menu data, and assignment gives (C-id) value of Switch (C-id), flag=1 is set then, so that promptly carry out work according to menu setting after on-the-spot the recovery;
On-the-spot recovering step, interrupt module are recovered on-the-spot and are interrupted turning back in the background work.
Existing NFC mobile phone has comprised the hardware components of NFC; So only needing increases software section to this application, and in mobile phone and second electric room definition standard; Data structure like the data structure of menu, icon, animation, sound can realize present embodiment.
The above is merely preferred embodiment of the present invention, so can not limit the scope that the present invention implements with this, the equivalence of promptly doing according to claim of the present invention and description changes and modifies, and all should still belong in the scope that patent of the present invention contains.