Summary of the invention
In view of this, the invention provides a kind of method of external equipment auto-update.
Particularly, the present invention is achieved through the following technical solutions:
A kind of external equipment automatically updating method, is applied on intelligent terminal, and described method comprises:
In the time that default upgrading event occurs, obtain upgrade data corresponding to described default upgrading event;
Described upgrade data is sent to external equipment by bluetooth, carry out auto-update for external equipment.
Further, when the firmware that is external equipment in described default upgrading event need to be upgraded, the described process of obtaining upgrade data corresponding to this default upgrading event comprises: download the latest edition packet of the firmware of described external equipment from server, and using described latest edition packet as upgrade data corresponding to described upgrading event.
Further, described method also comprises:
Obtain the latest firmware version of described external equipment from described server, the firmware version of described external equipment of preserving in this locality is during lower than described latest firmware version, obtain the current version of firmware of described external equipment by bluetooth, also during lower than described latest firmware version, confirm that the firmware of described external equipment needs upgrading at described current version of firmware.
Further, described external equipment is game paddle;
That this equipment application layer game is while issuing macrodefinition to game paddle, using described macrodefinition as upgrade data corresponding to described upgrading event in described default upgrading event.
Further, the key assignments that described macrodefinition needs for the original key assignments of game paddle being mapped as to application layer game.
A kind of external equipment automatically updating method, is applied on external equipment, and described method comprises:
Receive by bluetooth the upgrade data that intelligent terminal issues;
Judge the upgrading event that described upgrade data is corresponding;
Carry out the auto-update of corresponding event according to described upgrade data.
Further, in the time that described upgrading event is firmware upgrade, the firmware latest edition packet carrying in described upgrade data is stored in default storage area, and in the time that this equipment is under non-operating mode, from described default storage area, obtains described latest edition packet and carry out firmware upgrade.
Further, describedly from default storage area, obtain the process that described latest edition packet carries out firmware upgrade and comprise: from default storage area, obtain described latest edition packet, and judge that whether described packet is complete, in the time that described packet is complete, carry out firmware upgrade.
Further, be while issuing macrodefinition in described upgrading event, described macrodefinition is stored in the configuration file of this equipment, and according to described macrodefinition, the original key assignments of this equipment is mapped as to the key assignments that intelligent terminal needs.
Further, described method also comprises:
Carrying out exporting upgrade tip in auto-update according to described upgrade data.
The upgrading event of external equipment is obtained in the present invention's design by the intelligent terminal of external equipment association, then corresponding upgrade data is sent to external equipment by bluetooth, so that it carries out the auto-update of user's unaware at one's leisure, promotes user and experiences.
Embodiment
For the problems referred to above, the invention provides a kind of scheme of external equipment auto-update.Be embodied as example with software below, describe specific implementation of the present invention in detail.The invention provides a kind of external equipment automatically updating method, it operates in respectively on intelligent terminal and external equipment.Described intelligent terminal includes: intelligent television, Intelligent set top box, smart mobile phone etc.Described external equipment includes: Digiplex, body sense input equipment, game paddle etc. can be connected to described intelligent terminal by Bluetooth technology, the equipment of application layer software of controlling intelligent terminal system or moving it on.Please refer to Fig. 1, in an exemplary embodiment of the present invention, described external equipment automatically updating method comprises following treatment step:
Step 101, intelligent terminal, in the time that default upgrading event occurs, obtains upgrade data corresponding to this default upgrading event.
Step 102, sends to external equipment by described upgrade data by bluetooth.
Step 103, external equipment receives by bluetooth the upgrade data that intelligent terminal issues.
Step 104, external equipment judges the upgrading event that described upgrade data is corresponding.
Step 105, external equipment carries out the auto-update of corresponding event according to described upgrade data.
This shows, the upgrading event of external equipment is obtained in the present invention's design by the intelligent terminal of external equipment association, then corresponding upgrade data is sent to external equipment by bluetooth, so that it carries out the auto-update of user's unaware at one's leisure.
Default upgrading event of the present invention includes: the firmware of external equipment need to upgrade and intelligent terminal in the application layer software that moves issue macrodefinition to external equipment.When the firmware that is external equipment in described default upgrading event need to be upgraded, intelligent terminal is downloaded the latest edition packet of described external equipment firmware from server, using described latest edition packet as upgrade data corresponding to described upgrading event, and by bluetooth by described latest edition Packet Generation to external equipment.
Particularly, please refer to Fig. 2, realizing in the process of external equipment automatically upgrading firmware, intelligent terminal is carried out following treatment step:
Step 201, the regular latest firmware version that obtains described external equipment from server.
Step 202, judges that the local firmware version of preserving described external equipment, whether lower than described latest firmware version, finishes, if not if go to step 203.
Step 203, obtains the current version of firmware of described external equipment by bluetooth, judge that described current version of firmware, whether lower than described latest firmware version, finishes, if not if go to step 204.
Step 204, downloads the firmware latest edition packet of described external equipment, and described latest edition packet is sent to external equipment as upgrade data corresponding to described upgrading event by bluetooth from server.
In above-mentioned steps, after external equipment is associated by bluetooth with intelligent terminal, intelligent terminal can obtain the firmware version of this external equipment of preservation from bluetooth protocol repertory.Then, intelligent terminal can regularly obtain the latest firmware version of described external equipment from server, and compare.Wherein, the cycle that intelligent terminal obtains the latest firmware version of described external equipment from server can be arranged according to the type of external equipment by developer.Generally, for external equipment, the frequency of its firmware upgrade is not high.Be set to 24 hours, one week therefore can obtain the cycle of external equipment latest firmware version, even longer.
The firmware version of preserving at intelligent terminal is during lower than described latest firmware version, intelligent terminal also can obtain by bluetooth the current version of firmware of described external equipment, also during lower than described latest firmware version, just confirm that the firmware of described external equipment needs upgrading at described current version of firmware.This be because, an external equipment may can be associated with on multiple intelligent terminals simultaneously, such as: bluetooth earphone can be simultaneously and two, even more plurality of mobile phones association.One of them intelligent terminal finds that the external equipment firmware version of its preservation is lower than latest edition, confirms that the firmware of described external equipment needs upgrading.But, this intelligent terminal using latest edition packet before upgrade data sends to external equipment, this external equipment may be by another intelligent terminal firmware of upgrading, no longer need again to upgrade.So the present invention designed before the latest edition packet of intelligent terminal download firmware, obtained the current firmware version of external equipment by bluetooth, further confirmed, to avoid external equipment repeatedly upgrading.
When the application layer software that is intelligent terminal in described default upgrading event issues macrodefinition to external equipment, using described macrodefinition as upgrade data corresponding to described upgrading event.For the various application layer softwares that move on intelligent terminal, user can realize the control to software by external equipment.But generally control mode sets, for some complex controls, can not realize by shirtsleeve operation, this will realize this control by more complicated operation with regard to meaning user, affects user's operating experience.That to be game paddle describe as example for intelligent television, described external equipment taking described intelligent terminal below.If user manipulates " boxing king " game of loading on intelligent television by game paddle.User presses game paddle " right side, high and low left and right " key continuously, and game role combination skill accordingly, if user's finger underaction will be difficult to complete within the predetermined time this action so.So external equipment automatically updating method provided by the invention also includes external equipment and receives the macrodefinition that intelligent terminal issues.
Particularly, the key assignments that described macrodefinition needs for the original key assignments of game paddle being mapped as to application layer game.For instance, the combination skill of above-mentioned " boxing king " game is except can realize by " right side, high and low left and right " key, also for user provides a kind of more succinct mode of operation, such as " Start+A " key.This macrodefinition, exactly in the time that user presses " Start+A " key, is mapped as the key assignments of " Start+A " by game paddle the key assignments on " right side, high and low left and right " so.Like this, user just can realize combinations thereof skill by " Start+A " key.Further, for same game, different role can be used different buttons to send combination skill.Such as: for eight refreshing roles in " boxing king " game with do not know fire dance role, user can realize combination skill function by different key combination.Intelligent terminal can, when game role switches, send to game paddle by target game role's macrodefinition by bluetooth.
Correspondingly, external equipment, receiving after the upgrade data that intelligent terminal issues, first judges the upgrading event that described upgrade data is corresponding.Intelligent terminal can add default mark at the data packet head of upgrade data and supply external equipment identification.Such as: the mark 01 of carrying in the data packet head of upgrade data represents firmware upgrade, and 10 representatives issue macrodefinition.Certainly, those skilled in the art also can distinguish upgrading event by other modes, and the present invention does not limit this.
Described external equipment is in the time judging that described upgrading event is firmware upgrade, the firmware latest edition packet carrying in described upgrade data is stored in default storage area, and in the time that this equipment is under non-operating mode, from described default storage area, obtains described latest edition packet and carry out firmware upgrade.Particularly, developer can reserve one section of storage area and be used for the latest edition packet of storing firmware in external equipment.This is because firmware upgrade may impact external equipment, makes its cisco unity malfunction, so the present invention's design is first stored described firmware latest edition packet by external equipment, in the time that external equipment is under non-operating mode, then carries out firmware upgrade.Described non-operating mode is user when not using described external equipment, such as: when bluetooth earphone does not transmit sound, when game paddle is used.In the present invention, external equipment carries out the process of firmware upgrade and is: from default storage area, obtain described latest edition packet, and judge that whether described packet is complete, carry out firmware upgrade in the time that described packet is complete.Wherein, judge that the process whether described packet is complete can be used the verification modes well known to those skilled in the art such as MD5 verification, CS verification, Hash verification, the present invention does not limit this.
Described external equipment, judging that described upgrading event is while issuing macrodefinition, is stored in described macrodefinition in the configuration file of this equipment, and can the original key assignments of this equipment be mapped as to the key assignments that intelligent terminal needs according to described macrodefinition.
Further, external equipment also can be exported upgrade tip in carrying out auto-update according to described upgrade data, in order to point out the current external equipment of user upgrading and cannot use.Described upgrade tip can be arranged according to the type of external equipment by those skilled in the art, such as: light indicator light or flashing indicator light etc.
Can be found out by above description, the present invention obtains the upgrading event of external equipment by the intelligent terminal of external equipment association, then corresponding upgrade data is sent to external equipment by bluetooth, so that it carries out the auto-update of user's unaware at one's leisure, promote user and experience.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.