CN105554295A - Method and device for starting application program - Google Patents
Method and device for starting application program Download PDFInfo
- Publication number
- CN105554295A CN105554295A CN201511010231.1A CN201511010231A CN105554295A CN 105554295 A CN105554295 A CN 105554295A CN 201511010231 A CN201511010231 A CN 201511010231A CN 105554295 A CN105554295 A CN 105554295A
- Authority
- CN
- China
- Prior art keywords
- mac address
- information
- application program
- wireless device
- equipment
- 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
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 37
- 238000012544 monitoring process Methods 0.000 claims description 8
- 238000010295 mobile communication Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000011017 operating method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Power Engineering (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a device for starting an application program. Wherein, the method comprises the following steps: acquiring information of a wireless device connected with a terminal device provided with an application program through wireless communication; judging whether the information of the wireless device is the same as the information of the pre-stored preset device or not, wherein the preset device is bound with the application program; and controlling the application program to be started when the information of the wireless equipment is judged to be the same as the information of the pre-stored preset equipment. The invention solves the technical problem that the application program of the mobile phone can not be automatically started in the prior art.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of open method and device of application program.
Background technology
At present, user uses mobile phone A PP very frequent, and APP also brings a lot of facility to user.But in some cases, during as driven, the operation of user to mobile phone is very inconvenient, when needs use mobile phone A PP, because mobile phone A PP cannot start automatically, cause Consumer's Experience bad.
For above-mentioned problem, at present effective solution is not yet proposed.
Summary of the invention
Embodiments provide a kind of open method and device of application program, cannot automatically actuated technical problem at least to solve application program of mobile phone in prior art.
According to an aspect of the embodiment of the present invention, provide a kind of open method of application program, comprising: the information obtaining the wireless device be connected with the terminal equipment being provided with application program by radio communication; Judge that whether the information of described wireless device is identical with the information of the default equipment prestored, wherein, described default equipment and described application program are bound; When judging that the information of described wireless device is identical with the information of the described default equipment prestored, controlling described application program and opening.
Further, judge that whether the information of described wireless device is identical with the information of the default equipment prestored to comprise: obtain the 2nd mac address comprised in the information of a mac address and the described default equipment comprised in the information of described wireless device; Judge that whether a described mac address is identical with described 2nd mac address; When judging that a described mac address is identical with described 2nd mac address, determine that the information of described wireless device is identical with the information of the described default equipment prestored.
Further, obtain the mac address comprised in the information of described wireless device to comprise: the wireless connection conditions radio receiver to described terminal equipment performs registration, described wireless connection conditions radio receiver for monitoring the information by wireless connected wireless device on described terminal equipment, and sends indication information to described terminal equipment; Receive the described indication information that described wireless connection conditions radio receiver sends, wherein, described indication information carries a described mac address; A described mac address is obtained from described indication information.
Further, before the 2nd mac address comprised in the information obtaining a mac address and the described default equipment comprised in the information of described wireless device, described method also comprises: the 3rd mac address obtaining described default equipment; Use the form of regular expression to described 3rd mac address to verify, be verified result; Judge whether described the result indicates the form of described 3rd mac address to meet the form of default wireless mac address; When judging that the form of the described 3rd mac address of described the result instruction meets the form of described default wireless mac address, using described 3rd mac address as described 2nd mac address.
Further, after judging that the information of described wireless device is identical with the information of the described default equipment prestored, and before the described application program of control is opened, described method also comprises: judge whether described terminal equipment is in horizontal screen state; When judging that described terminal equipment is in horizontal screen state, generating the control command controlling described application program and open, controlling described application program to utilize described control command and opening.
Further, described radio communication comprise following any one: Bluetooth communication, infrared communication and mobile communication.
According to the another aspect of the embodiment of the present invention, additionally provide a kind of opening device of application program, comprising: the first acquiring unit, for obtaining the information of the wireless device be connected with the terminal equipment being provided with application program by radio communication; First judging unit, whether identical with the information of the default equipment prestored for judging the information of described wireless device, wherein, described default equipment and described application program are bound; Control unit, after judging that the information of described wireless device is identical with the information of the described default equipment prestored at described first judging unit, controls described application program and opens.
Further, described first judging unit comprises: obtain subelement, for obtaining the 2nd mac address comprised in the information of a mac address and the described default equipment comprised in the information of described wireless device; Whether judgment sub-unit is identical with described 2nd mac address for judging a described mac address; Determining subelement, for judging that in described judgment sub-unit a described mac address is identical with described 2nd mac address, determining that the information of described wireless device is identical with the information of the described default equipment prestored.
Further, described acquisition subelement comprises: Registering modules, registration is performed for the wireless connection conditions radio receiver to described terminal equipment, described wireless connection conditions radio receiver for monitoring the information by wireless connected wireless device on described terminal equipment, and sends indication information to described terminal equipment; Receiver module, for receiving the described indication information that described wireless connection conditions radio receiver sends, wherein, described indication information carries a described mac address; Acquisition module, for obtaining a described mac address from described indication information.
Further, described device also comprises: second acquisition unit, for obtain the 2nd mac address that comprises in the information of a mac address and the described default equipment comprised in the information of described wireless device at described acquisition subelement before, obtain the 3rd mac address of described default equipment; Authentication unit, for using the form of regular expression to described 3rd mac address to verify, is verified result; Second judging unit, for judging whether described the result indicates the form of described 3rd mac address to meet the form of default wireless mac address; Determining unit, after judging that at described second judging unit the form of the described 3rd mac address of described the result instruction meets the form of described default wireless mac address, using described 3rd mac address as described 2nd mac address.
Further, described device also comprises: the 3rd judging unit, after judging that the information of described wireless device is identical with the information of the described default equipment prestored at described first judging unit, and before described control unit controls the unlatching of described application program, judge whether described terminal equipment is in horizontal screen state; Generation unit, for when described 3rd judging unit judges that described terminal equipment is in horizontal screen state, generates the control command controlling described application program and open, and controls described application program open to utilize described control command.
Further, described radio communication comprise following any one: Bluetooth communication, infrared communication and mobile communication.
In embodiments of the present invention, the information of the wireless device be connected with the terminal equipment being provided with application program by radio communication is obtained; Judge that whether the information of wireless device is identical with the information of the default equipment prestored, wherein, default equipment and application program are bound; When judging that the information of wireless device is identical with the information of the default equipment prestored, controlling application program is opened.When default equipment is by the terminal equipment at application program place that is wirelessly connected to binding, namely controlling application program is opened automatically, achieve the technique effect of automatic opening application program, so solve application program of mobile phone in prior art cannot automatically actuated technical problem.And because when the wireless device do not bound with application program is connected to terminal equipment, application program is not opened, only have the application program when the wireless device bound with application program is connected to terminal equipment just can open, improve the fail safe that user uses application program.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the open method of application program according to an embodiment of the invention;
Fig. 2 is the flow chart of the open method of application program according to further embodiment of this invention; And
Fig. 3 is the schematic diagram of the opening device of application program according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to the embodiment of the present invention, provide a kind of embodiment of open method of application program, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
Fig. 1 is the flow chart of the open method of application program according to an embodiment of the invention, and the open method of this application program can be performed by the application program arranged on the terminal device.As shown in Figure 1, the method comprises the steps:
Step S102, obtains the information of the wireless device be connected with the terminal equipment being provided with application program by radio communication.
Step S104, judges that whether the information of wireless device is identical with the information of the default equipment prestored, and wherein, default equipment and application program are bound.
Step S106, when judging that the information of wireless device is identical with the information of the default equipment prestored, controlling application program is opened.
Terminal equipment can be mobile phone, flat board etc.Default equipment is the wireless device bound with the application program on terminal equipment in advance, can be the equipment be connected with terminal equipment by radio communication, the wireless devices such as such as wireless headset, wireless sound box, onboard wireless.Radio communication can be infrared communication, Bluetooth communication or mobile communication etc., preferred Bluetooth communication.When radio communication is Bluetooth communication, above-mentioned wireless device can be bluetooth equipment, as bluetooth earphone, and Baffle Box of Bluetooth and on-vehicle Bluetooth etc.
When default equipment is by the terminal equipment at application program place that is wirelessly connected to binding, namely controlling application program is opened automatically, achieve the technique effect of automatic opening application program, and then the application program solved in prior art on terminal equipment cannot automatically actuated technical problem.And because when the wireless device do not bound with application program is connected to terminal equipment, application program is not opened, only have the application program when the wireless device bound with application program is connected to terminal equipment just can open, improve the fail safe that user uses application program.
Alternatively, judge that whether the information of wireless device is identical with the information of the default equipment prestored to comprise: obtain the 2nd mac address comprised in the information of a mac address and the default equipment comprised in the information of wireless device; Judge that whether a mac address is identical with the 2nd mac address; When judging that a mac address is identical with the 2nd mac address, determine that the information of wireless device is identical with the information of the default equipment prestored.
Utilize the connection matching function of terminal equipment, make wireless device pass through to be wirelessly connected to this terminal equipment.After this, obtain the mac address (i.e. a mac address) of these wireless devices, the corresponding mac address of each wireless device.The address (i.e. the 2nd mac address) of the wireless device (namely presetting equipment) bound is stored in terminal equipment.Terminal equipment can store the address of multiple default equipment, i.e. multiple 2nd mac address.
If only there is a wireless device to be connected to terminal equipment, and terminal equipment only stores the address of a default equipment, namely a mac address and the 2nd mac address are one, judge that whether a mac address is identical with the 2nd mac address, if judge that a mac address is identical with the 2nd mac address, then determine that default equipment connection is to terminal equipment, controlling application program is opened.
If only there is a wireless device to be connected to terminal equipment, and terminal equipment stores the address of multiple default equipment, namely a mac address is one, and the 2nd mac address is multiple, judge in multiple 2nd mac address, whether to there is a 2nd mac address identical with a mac address, if it is identical with a mac address to judge to there is a 2nd mac address in multiple 2nd mac address, then determine that default equipment connection is to terminal equipment, controlling application program is opened.
If there is multiple wireless device to be connected to terminal equipment, and terminal equipment only stores the address of a default equipment, namely a mac address has multiple, and the 2nd mac address is one, judge in a multiple mac address, whether to there is a mac address identical with the 2nd mac address, if it is identical with the 2nd mac address to judge to there is a mac address in a multiple mac address, then determine that default equipment connection is to terminal equipment, controlling application program is opened.
If there is multiple wireless device to be connected to terminal equipment, and terminal equipment stores the address of multiple default equipment, namely a mac address and the 2nd mac address are multiple, now, travel through a mac address, often traverse a mac address, judge in multiple 2nd mac address, whether to there is a 2nd mac address identical with the current mac address traversed, if it is identical with the current mac address traversed to judge to there is a 2nd mac address in multiple 2nd mac address, then stop the traversal to a mac address, and determine that default equipment connection is to terminal equipment, controlling application program is opened.
Alternatively, obtain the mac address comprised in the information of wireless device to comprise: the wireless connection conditions radio receiver to terminal equipment performs registration, wireless connection conditions radio receiver on monitoring terminal equipment by the information of wireless connected wireless device, and to terminal equipment send indication information; Receive the indication information that wireless connection conditions radio receiver sends, wherein, indication information carries a mac address; A mac address is obtained from indication information.
The wireless connection conditions radio receiver of application program registering terminal equipment, can register this radio receiver at the static system of terminal equipment.Preferably, when application program is not run in internal memory, application program is registered as system-level application.
After having registered, by the information of wireless connected wireless device on wireless connection conditions radio receiver monitoring terminal equipment, and send indication information to terminal equipment, carry the mac address (i.e. a mac address) of the wireless device being connected to terminal equipment in indication information.Application program receives the indication information that wireless connection conditions radio receiver sends, and from this indication information, extract a mac address.
Alternatively, before the 2nd mac address comprised in the information obtaining a mac address and the default equipment comprised in the information of wireless device, the open method of the application program that the embodiment of the present invention provides also comprises: the 3rd mac address obtaining the equipment of presetting; Use the form of regular expression to the 3rd mac address to verify, be verified result; Judge whether the result indicates the form of the 3rd mac address to meet the form of default wireless mac address; When judging that the form of the result instruction the 3rd mac address meets the form of default wireless mac address, using the 3rd mac address as the 2nd mac address.
The process of bound device is such: the mac address (i.e. the 3rd mac address) obtaining the wireless device (namely presetting equipment) wanting to carry out binding.Obtain regular expression, this regular expression can filter out the correct wireless mac address of form.Mated with this regular expression 3rd mac address, if the match is successful, then illustrate that the form of the 3rd mac address is correct, the 3rd mac address is correct mac address; If it fails to match, then the format error of the 3rd mac address is described, the 3rd mac address is the mac address of mistake.Using the 3rd mac address that the match is successful as the 2nd mac address, 2nd mac address is stored in sqlite database, also the 2nd mac address can be stored in configuration file or xml file or json file, so that after getting a mac address, call the 2nd mac address that stored and a mac address compares.
Alternatively, after judging that the information of wireless device is identical with the information of the default equipment prestored, and before controlling application program is opened, the open method of the application program that the embodiment of the present invention provides also comprises: judge whether terminal equipment is in horizontal screen state; When judging that terminal equipment is in horizontal screen state, generating the control command that controlling application program is opened, opening to utilize control command controlling application program.
After judging that terminal equipment passes through to be wirelessly connected to default equipment, then continue to judge whether terminal equipment is in horizontal screen state, if judge that terminal equipment is in horizontal screen state, then generate control command, control command is used for controlling application program and opens.
Generally, user tends to the terminal equipment such as mobile phone, flat board to be in perpendicular screen state and uses, under special circumstances, such as when user drives, tend to terminal equipment to be in horizontal screen state and use, in order to make the unlatching of controlling application program more accurate, avoid misoperation, determining that default equipment is by being wirelessly connected on the basis of terminal equipment, under terminal equipment meets the condition of horizontal screen state, controlling application program starts.
By when judging that terminal equipment passes through to be wirelessly connected to the equipment of binding and terminal equipment is in horizontal screen state, controlling application program is opened, can user need in automatic opening application program, decrease the operating procedure of user to terminal equipment, and can this application program of automatically prompting user can use, improve Consumer's Experience.And because when the wireless device do not bound with application program is connected to terminal equipment, application program is not opened, only have the application program when the wireless device bound with application program is connected to terminal equipment just can open, improve the fail safe that user uses application program.
Fig. 2 is the flow chart of the open method of application program according to further embodiment of this invention.As shown in Figure 2, the method comprises the steps:
Step S202, binds application program and the bluetooth equipment of specifying.The bluetooth equipment of specifying is above-mentioned default equipment.Obtain the mac address (i.e. above-mentioned 2nd mac address) of the bluetooth equipment of binding.
Step S204, receives the broadcast of bluetooth connection status radio receiver.That is, receive the indication information that bluetooth connection status radio receiver sends, in indication information, carry the mac address (i.e. an above-mentioned mac address) of the bluetooth equipment being connected to terminal equipment.The embodiment of step S204 is identical with above-mentioned steps S102.
Step S206, judges whether the bluetooth equipment being connected to terminal equipment is the bluetooth equipment bound.Relatively whether the mac address of the bluetooth equipment of binding is identical with the mac address of the bluetooth equipment being connected to terminal equipment, and whether namely compare the 2nd mac address identical with a mac address.If the mac address of the bluetooth equipment of binding is identical with the mac address of the bluetooth equipment being connected to terminal equipment, then the bluetooth equipment connected is the bluetooth equipment of binding; If the mac address of the bluetooth equipment of binding is not identical with the mac address of the bluetooth equipment being connected to terminal equipment, then the bluetooth equipment connected is not the bluetooth equipment of binding.The embodiment of step S206 is identical with above-mentioned steps S104.When the bluetooth equipment judging to be connected to terminal equipment is the bluetooth equipment of binding, perform step S208; When the bluetooth equipment judging to be connected to terminal equipment is not the bluetooth equipment of binding, the open method of this application program terminates.
Step S208, judges whether terminal equipment is in horizontal screen state.When judging that terminal equipment is in horizontal screen state, perform step S210; When judging that terminal equipment is not in horizontal screen state, the open method of this application program terminates.
Step S210, controlling application program is opened.The embodiment of step S210 is identical with above-mentioned steps S106.
By when judging that terminal equipment is connected to the bluetooth equipment of binding by bluetooth and terminal equipment is in horizontal screen state, controlling application program is opened, can user need in automatic opening application program, decrease the operating procedure of user to terminal equipment, and can this application program of automatically prompting user can use, improve Consumer's Experience.And because when the bluetooth equipment do not bound with application program is connected to terminal equipment, application program is not opened, only have the application program when the bluetooth equipment bound with application program is connected to terminal equipment just can open, improve the fail safe that user uses application program.
According to the embodiment of the present invention, additionally provide a kind of opening device of application program.The opening device of this application program can perform the open method of above-mentioned application program, and the open method of above-mentioned application program also can be implemented by the opening device of this application program.
Fig. 3 is the schematic diagram of the opening device of application program according to the embodiment of the present invention.As shown in Figure 3, this device comprises the first acquiring unit 32, first judging unit 34 and control unit 36.
First acquiring unit 32 is for obtaining the information of the wireless device be connected with the terminal equipment being provided with application program by radio communication.
Whether the first judging unit 34 is identical with the information of the default equipment prestored for judging the information of wireless device, and wherein, default equipment and application program are bound.
Control unit 36 is for after judging that at the first judging unit the information of wireless device is identical with the information of the default equipment prestored, and controlling application program is opened.
Terminal equipment can be mobile phone, flat board etc.Default equipment is the wireless device bound with the application program on terminal equipment in advance, can be the equipment be connected with terminal equipment by radio communication, the wireless devices such as such as wireless headset, wireless sound box, onboard wireless.Radio communication can be infrared communication, Bluetooth communication or mobile communication etc., preferred Bluetooth communication.When radio communication is Bluetooth communication, above-mentioned wireless device can be bluetooth equipment, as bluetooth earphone, and Baffle Box of Bluetooth and on-vehicle Bluetooth etc.
When default equipment is by the terminal equipment at application program place that is wirelessly connected to binding, namely controlling application program is opened automatically, achieve the technique effect of automatic opening application program, and then the application program solved in prior art on terminal equipment cannot automatically actuated technical problem.And because when the wireless device do not bound with application program is connected to terminal equipment, application program is not opened, only have the application program when the wireless device bound with application program is connected to terminal equipment just can open, improve the fail safe that user uses application program.
Alternatively, the first judging unit 34 comprises acquisition subelement, judgment sub-unit and determines subelement.Obtain subelement for obtaining the 2nd mac address comprised in the information of a mac address and the default equipment comprised in the information of wireless device.Whether judgment sub-unit is identical with the 2nd mac address for judging a mac address.When determining subelement for judging that in judgment sub-unit a mac address is identical with the 2nd mac address, determine that the information of wireless device is identical with the information of the default equipment prestored.
Utilize the connection matching function of terminal equipment, make wireless device pass through to be wirelessly connected to this terminal equipment.After this, obtain the mac address (i.e. a mac address) of these wireless devices, the corresponding mac address of each wireless device.The address (i.e. the 2nd mac address) of the wireless device (namely presetting equipment) bound is stored in terminal equipment.Terminal equipment can store the address of multiple default equipment, i.e. multiple 2nd mac address.
If only there is a wireless device to be connected to terminal equipment, and terminal equipment only stores the address of a default equipment, namely a mac address and the 2nd mac address are one, judge that whether a mac address is identical with the 2nd mac address, if judge that a mac address is identical with the 2nd mac address, then determine that default equipment connection is to terminal equipment, controlling application program is opened.
If only there is a wireless device to be connected to terminal equipment, and terminal equipment stores the address of multiple default equipment, namely a mac address is one, and the 2nd mac address is multiple, judge in multiple 2nd mac address, whether to there is a 2nd mac address identical with a mac address, if it is identical with a mac address to judge to there is a 2nd mac address in multiple 2nd mac address, then determine that default equipment connection is to terminal equipment, controlling application program is opened.
If there is multiple wireless device to be connected to terminal equipment, and terminal equipment only stores the address of a default equipment, namely a mac address has multiple, and the 2nd mac address is one, judge in a multiple mac address, whether to there is a mac address identical with the 2nd mac address, if it is identical with the 2nd mac address to judge to there is a mac address in a multiple mac address, then determine that default equipment connection is to terminal equipment, controlling application program is opened.
If there is multiple wireless device to be connected to terminal equipment, and terminal equipment stores the address of multiple default equipment, namely a mac address and the 2nd mac address are multiple, now, travel through a mac address, often traverse a mac address, judge in multiple 2nd mac address, whether to there is a 2nd mac address identical with the current mac address traversed, if it is identical with the current mac address traversed to judge to there is a 2nd mac address in multiple 2nd mac address, then stop the traversal to a mac address, and determine that default equipment connection is to terminal equipment, controlling application program is opened.
Alternatively, obtain subelement and comprise Registering modules, receiver module and acquisition module.Registering modules is used for performing registration to the wireless connection conditions radio receiver of terminal equipment, wireless connection conditions radio receiver on monitoring terminal equipment by the information of wireless connected wireless device, and to terminal equipment transmission indication information.The indication information that receiver module sends for receiving wireless connection conditions radio receiver, wherein, indication information carries a mac address.Acquisition module is used for obtaining a mac address from indication information.
The wireless connection conditions radio receiver of application program registering terminal equipment, can register this radio receiver at the static system of terminal equipment.Preferably, when application program is not run in internal memory, application program is registered as system-level application.
After having registered, by the information of wireless connected wireless device on wireless connection conditions radio receiver monitoring terminal equipment, and send indication information to terminal equipment, carry the mac address (i.e. a mac address) of the wireless device being connected to terminal equipment in indication information.Application program receives the indication information that wireless connection conditions radio receiver sends, and from this indication information, extract a mac address.
Alternatively, the opening device of application program that the embodiment of the present invention provides also comprises second acquisition unit, authentication unit, the second judging unit and determining unit.Second acquisition unit obtains the 3rd mac address of the equipment of presetting before being used for the 2nd mac address comprised in the information obtaining a mac address and the default equipment comprised in the information of subelement acquisition wireless device.Authentication unit is verified for using the form of regular expression to the 3rd mac address, is verified result.Second judging unit is for judging whether the result indicates the form of the 3rd mac address to meet the form of default wireless mac address.Determining unit is used for after the second judging unit judges that the form of the result instruction the 3rd mac address meets the form of default wireless mac address, using the 3rd mac address as the 2nd mac address.
The process of bound device is such: the mac address (i.e. the 3rd mac address) obtaining the wireless device (namely presetting equipment) wanting to carry out binding.Obtain regular expression, this regular expression can filter out the correct wireless mac address of form.Mated with this regular expression 3rd mac address, if the match is successful, then illustrate that the form of the 3rd mac address is correct, the 3rd mac address is correct mac address; If it fails to match, then the format error of the 3rd mac address is described, the 3rd mac address is the mac address of mistake.Using the 3rd mac address that the match is successful as the 2nd mac address, 2nd mac address is stored in sqlite database, also the 2nd mac address can be stored in configuration file or xml file or json file, so that after getting a mac address, call the 2nd mac address that stored and a mac address compares.
Alternatively, the opening device of application program that the embodiment of the present invention provides also comprises the 3rd judging unit and generation unit.3rd judging unit is used for after the first judging unit judges that the information of wireless device is identical with the information of the default equipment prestored, and before control unit controlling application program is opened, judges whether terminal equipment is in horizontal screen state.Generation unit is used for when the 3rd judging unit judges that terminal equipment is in horizontal screen state, generates the control command that controlling application program is opened, opens to utilize control command controlling application program.
After judging that terminal equipment passes through to be wirelessly connected to default equipment, then continue to judge whether terminal equipment is in horizontal screen state, if judge that terminal equipment is in horizontal screen state, then generate control command, control command is used for controlling application program and opens.
Generally, user tends to the terminal equipment such as mobile phone, flat board to be in perpendicular screen state and uses, under special circumstances, such as when user drives, tend to terminal equipment to be in horizontal screen state and use, in order to make the unlatching of controlling application program more accurate, avoid misoperation, determining that default equipment is by being wirelessly connected on the basis of terminal equipment, under terminal equipment meets the condition of horizontal screen state, controlling application program starts.
By when judging that terminal equipment passes through to be wirelessly connected to the equipment of binding and terminal equipment is in horizontal screen state, controlling application program is opened, can user need in automatic opening application program, decrease the operating procedure of user to terminal equipment, and can this application program of automatically prompting user can use, improve Consumer's Experience.And because when the wireless device do not bound with application program is connected to terminal equipment, application program is not opened, only have the application program when the wireless device bound with application program is connected to terminal equipment just can open, improve the fail safe that user uses application program.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiment provided by the present invention, should be understood that, disclosed technology contents, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, can be that a kind of logic function divides, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed on multiple unit.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (12)
1. an open method for application program, is characterized in that, comprising:
Obtain the information of the wireless device be connected with the terminal equipment being provided with application program by radio communication;
Judge that whether the information of described wireless device is identical with the information of the default equipment prestored, wherein, described default equipment and described application program are bound;
When judging that the information of described wireless device is identical with the information of the described default equipment prestored, controlling described application program and opening.
2. method according to claim 1, is characterized in that, judges that whether the information of described wireless device is identical with the information of the default equipment prestored and comprises:
Obtain the 2nd mac address comprised in the information of a mac address and the described default equipment comprised in the information of described wireless device;
Judge that whether a described mac address is identical with described 2nd mac address;
When judging that a described mac address is identical with described 2nd mac address, determine that the information of described wireless device is identical with the information of the described default equipment prestored.
3. method according to claim 2, is characterized in that, obtains the mac address comprised in the information of described wireless device and comprises:
Wireless connection conditions radio receiver to described terminal equipment performs registration, and described wireless connection conditions radio receiver for monitoring the information by wireless connected wireless device on described terminal equipment, and sends indication information to described terminal equipment;
Receive the described indication information that described wireless connection conditions radio receiver sends, wherein, described indication information carries a described mac address;
A described mac address is obtained from described indication information.
4. method according to claim 2, is characterized in that, before the 2nd mac address comprised in the information obtaining a mac address and the described default equipment comprised in the information of described wireless device, described method also comprises:
Obtain the 3rd mac address of described default equipment;
Use the form of regular expression to described 3rd mac address to verify, be verified result;
Judge whether described the result indicates the form of described 3rd mac address to meet the form of default wireless mac address;
When judging that the form of the described 3rd mac address of described the result instruction meets the form of described default wireless mac address, using described 3rd mac address as described 2nd mac address.
5. method according to claim 1, is characterized in that, after judging that the information of described wireless device is identical with the information of the described default equipment prestored, and before the described application program of control is opened, described method also comprises:
Judge whether described terminal equipment is in horizontal screen state;
When judging that described terminal equipment is in horizontal screen state, generating the control command controlling described application program and open, controlling described application program to utilize described control command and opening.
6. method according to any one of claim 1 to 5, is characterized in that, described radio communication comprise following any one: Bluetooth communication, infrared communication and mobile communication.
7. an opening device for application program, is characterized in that, comprising:
First acquiring unit, for obtaining the information of the wireless device be connected with the terminal equipment being provided with application program by radio communication;
First judging unit, whether identical with the information of the default equipment prestored for judging the information of described wireless device, wherein, described default equipment and described application program are bound;
Control unit, after judging that the information of described wireless device is identical with the information of the described default equipment prestored at described first judging unit, controls described application program and opens.
8. device according to claim 7, is characterized in that, described first judging unit comprises:
Obtain subelement, for obtaining the 2nd mac address comprised in the information of a mac address and the described default equipment comprised in the information of described wireless device;
Whether judgment sub-unit is identical with described 2nd mac address for judging a described mac address;
Determining subelement, for judging that in described judgment sub-unit a described mac address is identical with described 2nd mac address, determining that the information of described wireless device is identical with the information of the described default equipment prestored.
9. device according to claim 8, is characterized in that, described acquisition subelement comprises:
Registering modules, registration is performed for the wireless connection conditions radio receiver to described terminal equipment, described wireless connection conditions radio receiver for monitoring the information by wireless connected wireless device on described terminal equipment, and sends indication information to described terminal equipment;
Receiver module, for receiving the described indication information that described wireless connection conditions radio receiver sends, wherein, described indication information carries a described mac address;
Acquisition module, for obtaining a described mac address from described indication information.
10. device according to claim 8, is characterized in that, described device also comprises:
Second acquisition unit, for obtain the 2nd mac address that comprises in the information of a mac address and the described default equipment comprised in the information of described wireless device at described acquisition subelement before, obtains the 3rd mac address of described default equipment;
Authentication unit, for using the form of regular expression to described 3rd mac address to verify, is verified result;
Second judging unit, for judging whether described the result indicates the form of described 3rd mac address to meet the form of default wireless mac address;
Determining unit, after judging that at described second judging unit the form of the described 3rd mac address of described the result instruction meets the form of described default wireless mac address, using described 3rd mac address as described 2nd mac address.
11. devices according to claim 7, is characterized in that, described device also comprises:
3rd judging unit, after judging that the information of described wireless device is identical with the information of the described default equipment prestored at described first judging unit, and before described control unit controls the unlatching of described application program, judge whether described terminal equipment is in horizontal screen state;
Generation unit, for when described 3rd judging unit judges that described terminal equipment is in horizontal screen state, generates the control command controlling described application program and open, and controls described application program open to utilize described control command.
12. devices according to any one of claim 7 to 11, is characterized in that, described radio communication comprise following any one: Bluetooth communication, infrared communication and mobile communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511010231.1A CN105554295A (en) | 2015-12-25 | 2015-12-25 | Method and device for starting application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511010231.1A CN105554295A (en) | 2015-12-25 | 2015-12-25 | Method and device for starting application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105554295A true CN105554295A (en) | 2016-05-04 |
Family
ID=55833226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511010231.1A Pending CN105554295A (en) | 2015-12-25 | 2015-12-25 | Method and device for starting application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105554295A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106127897A (en) * | 2016-06-22 | 2016-11-16 | 江苏巨数智能科技有限公司 | System for unlocking based on iOS or Android or method |
CN106412241A (en) * | 2016-08-31 | 2017-02-15 | 捷开通讯(深圳)有限公司 | Application operating method and system, and mobile terminals |
CN106507160A (en) * | 2016-10-28 | 2017-03-15 | 惠州Tcl移动通信有限公司 | A kind of based on the multimedia application control method for playing back of remote Bluetooth devices, system |
CN106878462A (en) * | 2017-03-28 | 2017-06-20 | 上海与德科技有限公司 | The means of communication and device of equipment room |
CN107678851A (en) * | 2017-10-24 | 2018-02-09 | 深圳市道通智能航空技术有限公司 | A kind of method and first terminal for opening application program |
CN108279948A (en) * | 2018-01-09 | 2018-07-13 | 维沃移动通信有限公司 | A kind of application program launching method and mobile terminal |
CN112261680A (en) * | 2020-10-22 | 2021-01-22 | 珠海格力电器股份有限公司 | Method, device, equipment and storage medium for adjusting network |
WO2022166339A1 (en) * | 2021-02-02 | 2022-08-11 | 青岛海尔空调器有限总公司 | Smart home control method, terminal device, and smart home control system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103857012A (en) * | 2012-11-29 | 2014-06-11 | 广州三星通信技术研究有限公司 | Method, setting method and device for quickly starting wireless service |
CN103997771A (en) * | 2014-05-15 | 2014-08-20 | 无锡风铃电子商务有限公司 | System and method for achieving application and message triggering based on wireless access recognition technology |
CN104202476A (en) * | 2014-08-28 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Mobile phone and automatic application opening method for same |
CN104407894A (en) * | 2014-11-26 | 2015-03-11 | 重庆蓝岸通讯技术有限公司 | Method and system for automatically starting application of intelligent electronic equipment |
US20150341440A1 (en) * | 2014-05-23 | 2015-11-26 | Ford Global Technologies, Llc | Method and system for launching an application |
-
2015
- 2015-12-25 CN CN201511010231.1A patent/CN105554295A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103857012A (en) * | 2012-11-29 | 2014-06-11 | 广州三星通信技术研究有限公司 | Method, setting method and device for quickly starting wireless service |
CN103997771A (en) * | 2014-05-15 | 2014-08-20 | 无锡风铃电子商务有限公司 | System and method for achieving application and message triggering based on wireless access recognition technology |
US20150341440A1 (en) * | 2014-05-23 | 2015-11-26 | Ford Global Technologies, Llc | Method and system for launching an application |
CN104202476A (en) * | 2014-08-28 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Mobile phone and automatic application opening method for same |
CN104407894A (en) * | 2014-11-26 | 2015-03-11 | 重庆蓝岸通讯技术有限公司 | Method and system for automatically starting application of intelligent electronic equipment |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106127897A (en) * | 2016-06-22 | 2016-11-16 | 江苏巨数智能科技有限公司 | System for unlocking based on iOS or Android or method |
CN106412241A (en) * | 2016-08-31 | 2017-02-15 | 捷开通讯(深圳)有限公司 | Application operating method and system, and mobile terminals |
CN106507160A (en) * | 2016-10-28 | 2017-03-15 | 惠州Tcl移动通信有限公司 | A kind of based on the multimedia application control method for playing back of remote Bluetooth devices, system |
CN106507160B (en) * | 2016-10-28 | 2020-03-06 | 惠州Tcl移动通信有限公司 | Multimedia application playing control method and system based on remote Bluetooth equipment |
CN106878462A (en) * | 2017-03-28 | 2017-06-20 | 上海与德科技有限公司 | The means of communication and device of equipment room |
CN107678851A (en) * | 2017-10-24 | 2018-02-09 | 深圳市道通智能航空技术有限公司 | A kind of method and first terminal for opening application program |
WO2019080476A1 (en) * | 2017-10-24 | 2019-05-02 | 深圳市道通智能航空技术有限公司 | Method for launching application and first terminal |
CN108279948A (en) * | 2018-01-09 | 2018-07-13 | 维沃移动通信有限公司 | A kind of application program launching method and mobile terminal |
CN108279948B (en) * | 2018-01-09 | 2021-07-09 | 维沃移动通信有限公司 | Application program starting method and mobile terminal |
CN112261680A (en) * | 2020-10-22 | 2021-01-22 | 珠海格力电器股份有限公司 | Method, device, equipment and storage medium for adjusting network |
WO2022166339A1 (en) * | 2021-02-02 | 2022-08-11 | 青岛海尔空调器有限总公司 | Smart home control method, terminal device, and smart home control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105554295A (en) | Method and device for starting application program | |
CN108206997B (en) | Bluetooth connection method and device | |
US20110292835A1 (en) | Method, and device for configuring wifi parameters | |
CN105208583B (en) | Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment | |
TWI435555B (en) | Method of configuring bluetooth sim access profile of communication device | |
US9906877B2 (en) | Mobile wireless controller for a hearing aid | |
CN105376293A (en) | Method and system for a key fob base station enabling remote car access using a nomadic device | |
EP2999250B1 (en) | Method and apparatus for interconnection between terminal device and gateway device | |
CN104902500A (en) | Automatic connection method and system for wireless network device and wireless access device | |
CN104978957A (en) | Voice control method and system based on voiceprint identification | |
US20150347326A1 (en) | Method and Apparatus for Dynamically Updating a Vehicle Module Configuration Record | |
CN106301910B (en) | A kind of programming system and its method of WiFi equipment | |
CN107222908A (en) | Intelligent appliance and its with network method, router, intelligent domestic system | |
CN105024997A (en) | Method and device for associating control terminal with controlled terminal | |
CN103944983A (en) | Error correction method and system for voice control instruction | |
CN104539320A (en) | Pairing method for Bluetooth devices | |
CN105068829A (en) | Feature data burning method, apparatus and system | |
CN112333807A (en) | Pairing connection method for wireless devices and intelligent electronic equipment | |
CN106856585A (en) | Set up the method and device of short-distance wireless passage | |
CN112351471A (en) | Method for accessing device to gateway, gateway device and computer readable storage medium | |
CN103744707B (en) | A kind of VCI device program upgrade method, device and system | |
CN104180473A (en) | Wind direction switching method and system for air conditioner | |
CN106257940A (en) | A kind of iOS device and bluetooth peripheral hardware matching method and device | |
CN106452828A (en) | Provision protocol transmission-based terminal configuration method and system | |
CN104158993B (en) | Communication mode confirms devices, systems, and methods and household electrical appliance |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160504 |