CN103228059B - Method and device for processing bluetooth pairing information - Google Patents
Method and device for processing bluetooth pairing information Download PDFInfo
- Publication number
- CN103228059B CN103228059B CN201310113368.4A CN201310113368A CN103228059B CN 103228059 B CN103228059 B CN 103228059B CN 201310113368 A CN201310113368 A CN 201310113368A CN 103228059 B CN103228059 B CN 103228059B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- pairing
- interface
- operation instruction
- mobile 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012545 processing Methods 0.000 title claims abstract description 27
- 230000001960 triggered effect Effects 0.000 claims abstract description 35
- 238000012790 confirmation Methods 0.000 claims description 35
- 238000012217 deletion Methods 0.000 claims description 32
- 230000037430 deletion Effects 0.000 claims description 32
- 238000012544 monitoring process Methods 0.000 claims description 30
- 238000003672 processing method Methods 0.000 claims description 11
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a method and device for processing bluetooth pairing information. The method comprises the following steps: displaying a bluetooth pairing information main interface through responding an instruction triggered by a user through starting the mobile device with a bluetooth connection mode; responding an operation instruction and performing the corresponding operation when the receiving of the operation instruction triggered by a user based on the bluetooth pairing information main interface during the preset period is monitored; selecting a paired mobile device from a history recording list according to a preset rule if the operation instruction is not received during the preset period; and sending out a bluetooth connecting request to the selected paired mobile device. The method and device have the benefit that the bluetooth is adopted to automatically attempt to connect with the mobile device capable of connecting, achieve the aim of uniformly processing the bluetooth pairing information through the friendly bluetooth pairing information main interface, and improve the usability of the connection of a bluetooth intelligent code key and the mobile device.
Description
Technical Field
The invention relates to the technical field of intelligent password keys, in particular to a method and a device for processing Bluetooth pairing information.
Background
In an actual application scenario, an intelligent password key with a bluetooth function (hereinafter referred to as a "bluetooth type intelligent password key") and a plurality of mobile devices are generally required to be connected through a bluetooth technology; at present, when a bluetooth type intelligent password key is in bluetooth connection with a mobile device every time, a user is required to start the operation of bluetooth connection, but the bluetooth connection cannot be automatically performed with the searched mobile device with the current connectable condition; and the existing bluetooth type intelligent password key cannot prompt a user to carry out unified management on information corresponding to the paired mobile equipment through a friendly interface.
Disclosure of Invention
The invention mainly aims to provide a method and a device for processing Bluetooth pairing information, aiming at automatically connecting with mobile equipment with connectable conditions through a Bluetooth technology and uniformly processing the Bluetooth pairing information through a display interface.
The embodiment of the invention discloses a processing method of Bluetooth pairing information, which comprises the following steps:
responding to a trigger instruction of a user for starting up in a Bluetooth connection mode, and displaying a Bluetooth pairing information main interface; the Bluetooth pairing information main interface comprises a history record list of paired mobile equipment and prompt information connected with unpaired new mobile equipment;
monitoring whether an operation instruction triggered by a user based on the Bluetooth pairing information main interface is received within a preset time length;
if the operation instruction is received within the preset time length, responding to the operation instruction and executing corresponding operation;
and if the operation instruction is not received within the preset time, selecting paired mobile equipment from the historical record list according to a preset rule, and sending a Bluetooth connection request to the selected paired mobile equipment.
Preferably, the step of executing the corresponding operation in response to the operation instruction includes:
responding to an operation instruction of a user for selecting paired mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
and sending a request for carrying out Bluetooth connection with the selected paired mobile equipment, switching the Bluetooth pairing information main interface to a connection waiting sub-interface, and waiting for the mobile equipment to return a Bluetooth connection response.
Preferably, the step of waiting for the mobile device to return a bluetooth connection reply further comprises:
if the Bluetooth connection response returned by the mobile equipment is received as connection establishment, switching the connection waiting sub-interface to a welcome interface with successful Bluetooth connection;
if the Bluetooth connection response returned by the mobile equipment is received as connection refusal, switching the connection waiting sub-interface to a prompt interface of Bluetooth connection failure;
and if an operation instruction of a user for pressing a cancel key based on the connection waiting sub-interface is received in the process of waiting for the mobile equipment to return a Bluetooth connection response, responding to the operation instruction for pressing the cancel key, closing the Bluetooth connection, and switching the connection waiting sub-interface to the Bluetooth pairing information main interface.
Preferably, the step of executing the corresponding operation in response to the operation instruction includes:
responding to an operation instruction of a user for selecting the paired mobile equipment through an upturning key and/or a downturning key and a canceling key based on the Bluetooth pairing information main interface;
switching the Bluetooth pairing information main interface to a paired information deletion sub-interface;
monitoring an operation instruction of a user for deleting a sub-interface based on the paired information;
if an operation instruction that a user presses a confirmation key is monitored in the paired information deletion sub-interface, the operation instruction that the user presses the confirmation key is responded, the selected information corresponding to the paired mobile equipment is deleted, the history list is updated, and the paired information deletion sub-interface is switched to the Bluetooth pairing information main interface;
and if an operation instruction that a user presses a cancel key is monitored in the matched information deleting sub-interface, responding to the operation instruction that the cancel key is pressed, and switching the matched information deleting sub-interface to the Bluetooth matched information main interface.
Preferably, the step of executing the corresponding operation in response to the operation instruction includes:
responding to an operation instruction of a user for selecting connection with unpaired new mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
enabling a Bluetooth scanning mode and a Bluetooth discoverable state, and switching the Bluetooth pairing information main interface to a pairing waiting sub-interface;
identifying whether a pairing request sent by the new mobile equipment is received;
if the pairing request is not received within a preset time period, or an operation instruction that a user presses a cancel key is received within the preset time period, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing request is received within the preset time period, executing corresponding operation according to the pairing request and a trigger instruction of a user.
Preferably, the step of executing the corresponding operation according to the pairing request and the trigger instruction of the user includes:
displaying a comparison code on the pairing waiting sub-interface according to the pairing request;
monitoring an operation instruction of a user based on the pairing waiting sub-interface;
if an operation instruction that a user presses a confirmation key is detected, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the operation instruction that the user presses a cancel key is detected, terminating the pairing with the new mobile equipment, and canceling and displaying the comparison code on the pairing waiting sub-interface.
Preferably, the executing the corresponding operation according to the pairing request and the trigger instruction of the user includes:
according to the pairing request, displaying a randomly generated pairing code on the pairing waiting sub-interface;
monitoring whether a pairing response returned by the new mobile equipment is received within a preset time;
if a pairing response returned by the new mobile equipment is received within preset time, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing response returned by the new mobile equipment is not received within the preset time, terminating the pairing with the new mobile equipment, and canceling the display of the pairing code on the pairing waiting sub-interface.
Preferably, the step of adding the information of the new mobile device to the history list and updating the history list comprises:
after the information of the new mobile equipment is added to the history list, whether the number of the information pieces of the paired mobile equipment stored in the history list reaches a preset threshold value is identified;
and if the preset threshold value is reached, deleting the information meeting the preset condition in the history list, and updating the history list.
Preferably, the method for processing bluetooth pairing information according to the embodiment of the present invention further includes:
if receiving an operation instruction that a user presses a cancel key to reach a preset duration, triggering an automatic shutdown operation on the Bluetooth pairing information main interface, and executing the automatic shutdown operation;
or,
after responding to an operation instruction triggered by a user, if the operation instruction triggered by pressing a key by the user is not received within the preset standby time and the pairing connection request is not executed, executing the operation of automatic shutdown.
The embodiment of the invention also discloses a processing device of the Bluetooth pairing information, which comprises:
the starting-up starting module is used for responding to a triggering instruction of starting up the Bluetooth connection mode of a user and displaying a Bluetooth pairing information main interface; the Bluetooth pairing information main interface comprises a history record list of paired mobile equipment and prompt information connected with unpaired new mobile equipment;
the instruction monitoring module is used for monitoring whether an operation instruction triggered by a user based on the Bluetooth pairing information main interface is received within a preset time length;
the instruction execution module is used for responding to an operation instruction of a user based on the Bluetooth pairing information main interface and executing corresponding operation when the operation instruction is received within the preset time length;
and the default execution module is used for selecting the paired mobile equipment from the historical record list according to a preset rule and sending a Bluetooth connection request to the selected paired mobile equipment when an operation instruction of the user based on the Bluetooth pairing information main interface is not received within the preset time length.
Preferably, the instruction execution module is further configured to:
responding to an operation instruction of a user for selecting paired mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
and sending a request for carrying out Bluetooth connection with the selected paired mobile equipment, switching the Bluetooth pairing information main interface to a connection waiting sub-interface, and waiting for the mobile equipment to return a Bluetooth connection response.
Preferably, the instruction execution module is further configured to:
if the Bluetooth connection response returned by the mobile equipment is received as connection establishment, switching the connection waiting sub-interface to a welcome interface with successful Bluetooth connection;
if the Bluetooth connection response returned by the mobile equipment is received as connection refusal, switching the connection waiting sub-interface to a prompt interface of Bluetooth connection failure;
and if an operation instruction of a user for pressing a cancel key based on the connection waiting sub-interface is received in the process of waiting for the mobile equipment to return a Bluetooth connection response, responding to the operation instruction for pressing the cancel key, closing the Bluetooth connection, and switching the connection waiting sub-interface to the Bluetooth pairing information main interface.
Preferably, the instruction execution module is further configured to:
responding to an operation instruction of a user for selecting the paired mobile equipment through an upturning key and/or a downturning key and a canceling key based on the Bluetooth pairing information main interface;
switching the Bluetooth pairing information main interface to a paired information deletion sub-interface;
monitoring an operation instruction of a user for deleting a sub-interface based on the paired information;
if an operation instruction that a user presses a confirmation key is monitored in the paired information deletion sub-interface, the operation instruction that the user presses the confirmation key is responded, the selected information corresponding to the paired mobile equipment is deleted, the history list is updated, and the paired information deletion sub-interface is switched to the Bluetooth pairing information main interface;
and if an operation instruction that a user presses a cancel key is monitored in the matched information deleting sub-interface, responding to the operation instruction that the cancel key is pressed, and switching the matched information deleting sub-interface to the Bluetooth matched information main interface.
Preferably, the instruction execution module is further configured to:
responding to an operation instruction of a user for selecting connection with unpaired new mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
enabling a Bluetooth scanning mode and a Bluetooth discoverable state, and switching the Bluetooth pairing information main interface to a pairing waiting sub-interface;
identifying whether a pairing request sent by the new mobile equipment is received;
if the pairing request is not received within a preset time period, or an operation instruction that a user presses a cancel key is received within the preset time period, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing request is received within the preset time period, executing corresponding operation according to the pairing request and a trigger instruction of a user.
Preferably, the instruction execution module is further configured to:
displaying a randomly generated comparison code on the pairing waiting sub-interface according to the pairing request;
monitoring an operation instruction of a user based on the pairing waiting sub-interface;
if an operation instruction that a user presses a confirmation key is detected, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the operation instruction that the user presses a cancel key is detected, terminating the pairing with the new mobile equipment, and canceling and displaying the comparison code on the pairing waiting sub-interface.
Preferably, the instruction execution module is further configured to:
according to the pairing request, displaying a randomly generated pairing code on the pairing waiting sub-interface;
monitoring whether a pairing response returned by the new mobile equipment is received within a preset time;
if a pairing response returned by the new mobile equipment is received within preset time, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing response returned by the new mobile equipment is not received within the preset time, terminating the pairing with the new mobile equipment, and canceling the display of the pairing code on the pairing waiting sub-interface.
Preferably, the instruction execution module is further configured to:
after the information of the new mobile equipment is added to the history list, whether the number of the information pieces of the paired mobile equipment stored in the history list reaches a preset threshold value is identified;
and if the preset threshold value is reached, deleting the information meeting the preset condition in the history list, and updating the history list.
Preferably, the apparatus for processing bluetooth pairing information according to the embodiment of the present invention further includes:
the automatic shutdown module is used for triggering an automatic shutdown operation instruction and executing an automatic shutdown operation if receiving a preset time length when a cancel key is pressed by a user on the Bluetooth pairing information main interface;
or,
after responding to an operation instruction triggered by a user, if the operation instruction triggered by pressing a key by the user is not received within the preset standby time and the pairing connection request is not executed, executing the operation of automatic shutdown.
The method comprises the steps of responding to a trigger instruction of a user for starting up in a Bluetooth connection mode, displaying a Bluetooth pairing information main interface, and monitoring whether an operation instruction of the user based on the Bluetooth pairing information main interface is received within a preset time; if the operation instruction is received within the preset time length, responding to the operation instruction and executing corresponding operation; if the operation instruction is not received within the preset time, the paired mobile equipment is selected from the historical record list according to the preset rule, and the Bluetooth connection request is sent to the selected paired mobile equipment.
Drawings
Fig. 1 is a flowchart illustrating a method for processing bluetooth pairing information according to an embodiment of the present invention;
fig. 2 is a schematic view of a bluetooth pairing information main interface according to an embodiment of the present invention;
FIG. 3 is a schematic view of a window of an embodiment of a connection waiting sub-interface in the method for processing Bluetooth pairing information according to the present invention;
FIG. 4 is a schematic view of a window of an embodiment of a matched information deletion sub-interface in the method for processing Bluetooth matching information according to the present invention;
FIG. 5 is a schematic view of a window of an embodiment of a pairing wait sub-interface in the method for processing Bluetooth pairing information according to the present invention;
fig. 6 is a schematic view of a window of an embodiment of a pairing code displayed on a pairing waiting sub-interface or a pairing code generated randomly in the processing method of bluetooth pairing information according to the present invention;
FIG. 7 is a functional block diagram of an embodiment of a device for processing Bluetooth pairing information according to the present invention;
fig. 8 is a schematic functional block diagram of a processing apparatus for bluetooth pairing information according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings and the specific embodiments in the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the embodiment of the processing method and the processing device for the Bluetooth pairing information, the mobile equipment has a Bluetooth connection function and can perform Bluetooth connection through a Bluetooth technology.
Referring to fig. 1, fig. 1 is a schematic flowchart of an embodiment of a processing method for bluetooth pairing information according to the present invention; as shown in fig. 1, the processing method of bluetooth pairing information of the present invention includes the following steps:
step S01, responding to a trigger instruction of a user for starting up in a Bluetooth connection mode, and displaying a Bluetooth pairing information main interface;
for the Bluetooth type intelligent password key, when a user selects to start up in a Bluetooth connection mode, the intelligent password key responds to a trigger instruction of starting up in the Bluetooth connection mode by the user to start up; after the Bluetooth pairing information main interface is started, the Bluetooth pairing information main interface is directly displayed.
The Bluetooth pairing information main interface comprises a history list of paired mobile equipment and prompt information connected with unpaired new mobile equipment. Because the intelligent password key display screen can display N (N is a positive integer larger than 1) lines of characters, prompt information for connecting new mobile equipment can be displayed on the first line or the last line in the Bluetooth pairing information main interface, and the rest (N-1) lines can display information of the paired mobile equipment. Referring to fig. 2, fig. 2 is a schematic view of a bluetooth pairing information main interface according to an embodiment of the processing method of the bluetooth pairing information of the present invention; as shown in fig. 2, in the bluetooth pairing information main interface, a total of 4 pieces of information are displayed, and "new mobile device" is set in the last row for display; the remaining 3 rows display paired mobile device information; in the bluetooth pairing information main interface shown in fig. 2, the first 3 rows display the paired mobile device information as the name of the mobile device. Since the names of the mobile devices may include a plurality of types, one mobile device name may correspond to only one mobile device entity, or may correspond to two or more mobile device entities. Taking a mobile terminal as an example, the displayed name of the mobile terminal may be a natural name of the mobile device, such as "plum (1)", "plum (2)", and the like, and at this time, one mobile terminal name may be understood as corresponding to only one mobile terminal entity; the displayed mobile terminal name may also be an operating system name used by the mobile device, such as "android system mobile device", "iOS system mobile device", and the like, where one terminal name may correspond to two or more mobile terminal entities.
The intelligent password key display screen can adopt a display mode that each line displays one piece of equipment information, and can also display the information of the same equipment by using a plurality of lines of characters according to the mobile equipment information; the embodiment does not limit the display mode of the intelligent password key display screen for displaying the information of the mobile equipment; the preferred embodiment is a display mode in which one piece of device information is displayed per line. The paired mobile device information displayed on the smart key display screen includes the name of the mobile device, and may also display a Media Access Control (MAC) address corresponding to each mobile device according to a user requirement.
Step S02, monitoring whether an operation instruction triggered by a user based on the Bluetooth pairing information main interface is received within a preset time length; if not, go to step S03; if yes, go to step S04;
the method comprises the steps that an intelligent password key monitors whether an operation instruction based on a Bluetooth pairing information main interface is received by a user within a preset time, namely whether the user performs corresponding operation such as pressing a cancel button and the like on the Bluetooth pairing information main interface displayed by the intelligent password key within the preset time; the preset duration can be set according to system requirements or actual requirements of users, for example, the preset duration can be set to 2 seconds, and the preset duration can also be set to 5 seconds and the like.
Step S03, selecting paired mobile equipment from the history record list according to a preset rule, and sending a Bluetooth connection request to the selected paired mobile equipment;
and step S04, responding to the operation instruction, and executing corresponding operation.
If no effective operation instruction of the user is received within the preset time length, namely the user does not execute any effective operation within the preset time length, the intelligent password key selects the paired mobile equipment from the history record list displayed on the Bluetooth pairing information main interface according to the preset rule, sends a Bluetooth connection request to the selected paired mobile equipment, and tries to establish Bluetooth connection with the selected paired mobile equipment. The preset rule may be that paired mobile devices pointed by the cursor after startup are selected, for example, after the bluetooth-type intelligent password key is started, the default cursor points to the paired mobile devices that are used recently; the preset rule can also be that android mobile equipment in the paired mobile equipment is selected.
If the effective operation instruction of the user is received within the preset time length, namely the user executes the corresponding effective operation within the preset time length, the intelligent password key responds to the operation instruction triggered by the user and executes the corresponding operation.
In a preferred embodiment, the smart key performs operations in response to an operation command triggered by a user, including:
after selecting the paired mobile devices through the up-turning key and/or the down-turning key on the bluetooth pairing information main interface shown in fig. 2, the user presses the confirmation key to trigger the corresponding operation instruction; the intelligent password key responds to an operation instruction of the user for selecting the paired mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface, starts a Bluetooth connection service, sends a request for carrying out Bluetooth connection with the paired mobile equipment selected by the user, and actively initiates a connection attempt; at this time, the smart key restricts the connection with the selected mobile device, and at the same time, switches the bluetooth pairing information main interface shown in fig. 2 to the connection waiting sub-interface shown in fig. 3, and waits for the mobile device corresponding to the paired mobile device information selected by the user to return a bluetooth connection response.
Referring to fig. 3, fig. 3 is a schematic view of a window of an embodiment of a connection waiting sub-interface in the processing method of bluetooth pairing information according to the present invention; on the connection waiting sub-interface shown in fig. 3, if the smart key receives the bluetooth connection response returned by the mobile device as the connection establishment, it indicates that the connection with the mobile device is successful, and then the connection waiting sub-interface shown in fig. 3 is switched to the welcome interface in which the bluetooth connection is successful. On the connection waiting sub-interface shown in fig. 3, if the smart password key receives that the bluetooth connection response returned by the mobile device is connection refusal, it indicates that the connection with the mobile device is unsuccessful, and then the connection waiting sub-interface shown in fig. 3 is switched to a bluetooth connection failure prompt interface.
If the user presses the cancel key on the connection waiting sub-interface shown in fig. 3, that is, the smart key receives an operation instruction that the user presses the cancel key on the connection waiting sub-interface shown in fig. 3 in the process of waiting for the mobile device to return a bluetooth connection response on the basis of the connection waiting sub-interface shown in fig. 3, the smart key responds to the operation instruction of pressing the cancel key, closes the bluetooth connection service, and switches the connection waiting sub-interface shown in fig. 3 to the bluetooth pairing information main interface shown in fig. 2.
In a preferred embodiment, the smart key, in response to an operation command triggered by a user, performs corresponding operations further including:
after the user selects the paired mobile device through the up-turning key and/or the down-turning key on the bluetooth pairing information main interface shown in fig. 2, the user presses the cancel key to trigger a corresponding operation instruction; the intelligent password key responds to an operation instruction of a user for selecting paired mobile equipment through an upturning key and/or a downturning key and a canceling key based on the Bluetooth pairing information main interface, and switches the Bluetooth pairing information main interface shown in the figure 2 to the paired information deleting sub-interface shown in the figure 4; referring to fig. 4, fig. 4 is a schematic view of a window of an embodiment of a matched information deleting sub-interface in the method for processing bluetooth matching information according to the present invention; on the paired information deletion sub-interface shown in fig. 4, the user selects whether to continue to execute the operation of deleting the selected paired mobile device information; the intelligent password key monitors an operation instruction of a user for deleting the sub-interface based on the paired information in real time; if the user presses a confirmation key on the matched information deletion sub-interface based on the information shown in fig. 4, triggering an operation instruction for confirming deletion, responding to the operation instruction for confirming deletion corresponding to the pressed confirmation key by the intelligent password key, deleting the selected information corresponding to the matched mobile equipment, updating the stored history list, and switching the matched information deletion sub-interface shown in fig. 4 to the bluetooth matching information main interface shown in fig. 2; if the user presses a cancel key on the paired information deletion sub-interface based on fig. 4, an operation instruction for canceling deletion is triggered, and the intelligent password key responds to the operation instruction for canceling deletion corresponding to the pressed cancel key, so as to directly switch the paired information deletion sub-interface shown in fig. 4 to the bluetooth pairing information main interface shown in fig. 2. Since the smart key does not delete the paired mobile device information in the history list, the corresponding information stored in the history list is not changed.
In a preferred embodiment, the smart key, in response to an operation command triggered by a user, performs corresponding operations further including:
after selecting a new mobile device through the up-turning key and/or the down-turning key on the bluetooth pairing information main interface shown in fig. 2, the user presses the confirmation key to trigger a corresponding operation instruction; the intelligent password key responds to an operation instruction of a user for selecting connection with unpaired new mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface; enabling a bluetooth scanning mode and a bluetooth discoverable state, and switching the bluetooth pairing information main interface shown in fig. 2 to the pairing waiting sub-interface shown in fig. 5; referring to fig. 5, fig. 5 is a window schematic diagram of a pairing wait sub-interface in the method for processing bluetooth pairing information according to an embodiment of the present invention.
When the intelligent password key displays the pairing waiting sub-interface shown in fig. 5, whether a pairing request sent by the new mobile device is received or not is identified; if the intelligent password key does not receive the pairing request within a preset time period or receives an operation instruction that a user presses a cancel key within the preset time period, the intelligent password key closes the bluetooth scanning mode and the bluetooth discoverable state, and switches the pairing wait sub-interface shown in fig. 5 to the bluetooth pairing information main interface shown in fig. 2; the preset time period can be set according to system requirements, or can be set by a user according to self requirements, for example, the preset time period is set to 10 seconds.
And if the intelligent password key receives the pairing request within the preset time period, executing corresponding operation according to the pairing request and a trigger instruction of a user.
The smart key displays the pairing code or the randomly generated pairing code on the pairing wait sub-interface shown in fig. 5 according to the pairing request sent by the new mobile device, and the interface when displaying the pairing code or the pairing code refers to fig. 6, where fig. 6 is a schematic view of a window of an embodiment of displaying the pairing code or the randomly generated pairing code on the pairing wait sub-interface in the processing method of the bluetooth pairing information of the present invention.
The working principle of pairing the intelligent password key and the new mobile device is as follows: according to the bluetooth protocol version supported by the current mobile device, the matching code or the matching code displayed on the matching waiting sub-interface shown in fig. 6 is a 6-bit character ". times.. Specifically, if the bluetooth protocol version supported by the new mobile device is 2.0, the smart cryptographic key displays a randomly generated 6-bit pairing code "×") on the pairing wait sub-interface shown in fig. 6; at the moment, if a user presses a cancel key, the mobile equipment is matched, the Bluetooth scanning mode is closed, and the Bluetooth discoverable state returns to the main interface; according to the Bluetooth protocol 2.0 pairing specification, if the new mobile equipment receives the 6-bit pairing code input by the user, connection is established with the intelligent password key; when the smart password key receives the response returned by the new mobile device, the smart password key is successfully paired with the new mobile device through the bluetooth technology, the bluetooth scanning mode is turned off by the bluetooth type smart password key, the bluetooth discoverable state is updated, the paired bluetooth device list is updated, and the new mobile device which is just paired is selected and jumps to the connection waiting sub-interface shown in fig. 3. If the bluetooth protocol version supported by the new mobile device is 2.1, the intelligent password key displays a 6-bit comparison code on the pairing waiting sub-interface shown in fig. 6 for the user to compare with the 6-bit comparison code displayed on the new mobile device, if the user presses a confirmation key, the comparison result is consistent, pairing is performed, after pairing is successful, the bluetooth scanning mode and the bluetooth discoverable state are closed, the paired bluetooth device list is updated, the new mobile device which is just paired is selected, and the connection waiting sub-interface shown in fig. 3 is skipped to; if the cancel button is pressed, the pairing with the mobile device is stopped, the bluetooth scanning mode is turned off, the bluetooth discoverable state is realized, and the bluetooth pairing information main interface shown in fig. 2 is returned.
Based on the pairing principle, the intelligent password key monitors an operation instruction of a user based on the pairing waiting sub-interface; if a pairing response returned by the new mobile equipment is received or an operation instruction that a user presses a confirmation key is detected, the pairing with the new mobile equipment is successful, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and a pairing waiting sub-interface shown in figure 6 is switched to a Bluetooth pairing information main interface shown in figure 2; the information of the new mobile device includes information such as the name and the MAC address of the new mobile device. If the intelligent password key detects that the user presses an operation instruction of a cancel key, the pairing with the new mobile device is terminated, the comparison code or the pairing code on the pairing waiting sub-interface is canceled and displayed, and the pairing waiting sub-interface shown in fig. 5 is returned.
Adding, by the smart key, information of the new mobile device to the history list, and updating the history list includes:
adding the information of the new mobile device to the history list, wherein a preferred implementation is as follows: adding the information of the new mobile equipment to the forefront of the history list according to a latest use principle; of course, the information of the new mobile device may also be added to any location in the history list.
In a preferred embodiment, when adding information corresponding to a new mobile device to a history list, the smart password key identifies whether the number of pieces of information of paired mobile devices stored in the history list reaches a preset threshold. If the number of the information of the paired mobile devices stored in the history list reaches a preset threshold value, the intelligent password key automatically deletes the information meeting preset conditions in the history list; for example, the last piece of paired mobile device information stored in the history list is deleted; or deleting the mobile equipment information using the shift system stored in the history list, and the like; subsequently, the history list is updated.
In a preferred embodiment, when the display screen of the smart key displays the main interface of the bluetooth pairing information shown in fig. 2, if the user presses the cancel button for a long time (for example, 3 seconds), an operation instruction for automatically powering off the smart key is triggered, and the smart key responds to the operation instruction for automatically powering off the smart key to execute automatic powering off.
In a preferred embodiment, after the smart key responds to an operation instruction triggered by a user, if the smart key does not receive the operation instruction triggered by the key pressed by the user and does not execute the pairing connection request within a preset standby time, the smart key is automatically turned off. The preset standby time can be set according to system requirements, or can be set by a user according to the needs of the user, for example, the preset standby time is set to 10 seconds; the preset standby time is not limited in this embodiment.
The embodiment displays a Bluetooth pairing information main interface by responding to a trigger instruction of a user for starting up in a Bluetooth connection mode, and monitors whether an operation instruction of the user based on the Bluetooth pairing information main interface is received within a preset time length; if the operation instruction is received within the preset time length, responding to the operation instruction and executing corresponding operation; if the operation instruction is not received within the preset time, selecting the paired mobile equipment from the historical record list according to a preset rule, and sending a Bluetooth connection request to the selected paired mobile equipment, so that the method has the beneficial effect of automatically trying to connect the mobile equipment with connectable conditions through a Bluetooth technology, achieves the purpose of uniformly processing Bluetooth pairing information through a friendly Bluetooth pairing information main interface, and improves the usability of connection between the Bluetooth type intelligent password key and the mobile equipment; and the Bluetooth type intelligent password key also has an automatic shutdown function, so that the safety is improved, the power consumption is reduced to a certain extent, and the energy is saved.
Referring to fig. 7, fig. 7 is a schematic diagram of functional modules of a processing apparatus for bluetooth pairing information according to an embodiment of the present invention. The processing device of the bluetooth pairing information of the present invention can execute the processing method of the bluetooth pairing information described in the embodiment of fig. 1; as shown in fig. 7, the processing apparatus of bluetooth pairing information of the present invention includes: the system comprises a starting-up module 01, an instruction monitoring module 02, a default execution module 03 and an instruction execution module 04.
The starting-up starting module 01 is used for responding to a triggering instruction of starting up the Bluetooth connection mode of a user and displaying a Bluetooth pairing information main interface;
for the bluetooth type intelligent password key, when the user selects to start up in the bluetooth connection mode, the start-up module 01 responds to a trigger instruction of the user to start up in the bluetooth connection mode to start up; after the Bluetooth pairing information main interface is started, the Bluetooth pairing information main interface is directly displayed.
The Bluetooth pairing information main interface comprises a history list of paired mobile equipment and prompt information connected with unpaired new mobile equipment. Because the intelligent password key display screen can display N (N is a positive integer larger than 1) lines of characters, prompt information for connecting new mobile equipment can be displayed on the first line or the last line in the Bluetooth pairing information main interface, and the rest (N-1) lines can display information of the paired mobile equipment. Referring to fig. 2, in the bluetooth pairing information main interface, a total of 4 pieces of information are displayed, and "new mobile device" is set in the last row for display; the remaining 3 rows display paired mobile device information; in the bluetooth pairing information main interface shown in fig. 2, the first 3 rows display the paired mobile device information as the name of the mobile device. Since the names of the mobile devices may include a plurality of types, one mobile device name may correspond to only one mobile device entity, or may correspond to two or more mobile device entities. Taking a mobile terminal as an example, the displayed name of the mobile terminal may be a natural name of the mobile device, such as "plum (1)", "plum (2)", and the like, and at this time, one mobile terminal name may be understood as corresponding to only one mobile terminal entity; the displayed mobile terminal name may also be an operating system name used by the mobile device, such as "android system mobile device", "iOS system mobile device", and the like, where one terminal name may correspond to two or more mobile terminal entities.
The intelligent password key display screen can adopt a display mode that each line displays one piece of equipment information, and can also display the information of the same equipment by using a plurality of lines of characters according to the mobile equipment information; the embodiment does not limit the display mode of the intelligent password key display screen for displaying the information of the mobile equipment; the preferred embodiment is a display mode in which one piece of device information is displayed per line. The startup module 01 controls the paired mobile device information displayed on the smart key display screen to include the names of the mobile devices, and may also display the MAC address corresponding to each mobile device according to the user requirements.
The instruction monitoring module 02 is used for monitoring whether an operation instruction triggered by a user based on the bluetooth pairing information main interface is received within a preset time length;
the instruction monitoring module 02 monitors whether an operation instruction based on the bluetooth pairing information main interface is received by the user within a preset time, that is, whether the user performs a corresponding operation, such as pressing a cancel button and the like, on the bluetooth pairing information main interface displayed by the intelligent password key within the preset time; the preset duration can be set according to system requirements or actual requirements of users, for example, the preset duration can be set to 2 seconds, and the preset duration can also be set to 5 seconds and the like.
The default execution module 03 is configured to, when an operation instruction of the user based on the bluetooth pairing information main interface is not received within the preset time, select paired mobile equipment from the history list according to a preset rule, and send a bluetooth connection request to the selected paired mobile equipment.
If the monitoring module 02 monitors that no effective operation instruction of the user is received within the preset time length, that is, the user does not execute any effective operation within the preset time length, the default execution module 03 selects the paired mobile device from the history list displayed on the bluetooth pairing information main interface according to the preset rule, sends a bluetooth connection request to the selected paired mobile device, and tries to establish bluetooth connection with the selected paired mobile device. The preset rule may be that paired mobile devices pointed by the cursor after startup are selected, for example, after the bluetooth-type intelligent password key is started, the default cursor points to the paired mobile devices that are used recently; the preset rule can also be that android mobile equipment in the paired mobile equipment is selected.
The instruction execution module 04 is configured to, when receiving an operation instruction of the user based on the bluetooth pairing information main interface within the preset time period, respond to the operation instruction and execute a corresponding operation;
if the instruction monitoring module 02 monitors that an effective operation instruction of the user is received within the preset time length, that is, the user executes a corresponding effective operation within the preset time length, the instruction execution module 04 responds to the operation instruction triggered by the user to execute a corresponding operation.
In a preferred embodiment, the instruction execution module 04 responds to an operation instruction triggered by a user, and the executing of the corresponding operation includes:
after selecting the paired mobile devices through the up-turning key and/or the down-turning key on the bluetooth pairing information main interface shown in fig. 2, the user presses the confirmation key to trigger the corresponding operation instruction; the instruction execution module 04 responds to the operation instruction of the user for selecting the paired mobile equipment through the upturning key and/or the downturning key and the confirmation key based on the Bluetooth pairing information main interface, starts a Bluetooth connection service, sends a request for carrying out Bluetooth connection with the paired mobile equipment selected by the user, and actively initiates a connection attempt; at this time, the instruction executing module 04 restricts the connection with the selected mobile device, and at the same time, switches the bluetooth pairing information main interface shown in fig. 2 to the connection waiting sub-interface shown in fig. 3, and waits for the mobile device corresponding to the paired mobile device information selected by the user to return a bluetooth connection response.
On the connection waiting sub-interface shown in fig. 3, if receiving a bluetooth connection response returned by the mobile device as establishing a connection, it indicates that the connection with the mobile device is successful, and the instruction execution module 04 switches the connection waiting sub-interface shown in fig. 3 to a welcome interface where the bluetooth connection is successful. On the connection waiting sub-interface shown in fig. 3, if the bluetooth connection response returned by the mobile device is received as connection rejection, it indicates that the connection with the mobile device is unsuccessful, and the instruction execution module 04 switches the connection waiting sub-interface shown in fig. 3 to the bluetooth connection failure prompt interface.
If the user presses the cancel key on the connection waiting sub-interface shown in fig. 3, that is, the smart password key receives an operation instruction that the user presses the cancel key on the connection waiting sub-interface shown in fig. 3 in the process of waiting for the mobile device to return a bluetooth connection response on the basis of the connection waiting sub-interface shown in fig. 3, the instruction execution module 04 responds to the operation instruction that the cancel key is pressed, closes the bluetooth connection service, and switches the connection waiting sub-interface shown in fig. 3 to the bluetooth pairing information main interface shown in fig. 2.
In a preferred embodiment, the instruction execution module 04 responds to an operation instruction triggered by a user, and the executing of the corresponding operation further includes:
after the user selects the paired mobile device through the up-turning key and/or the down-turning key on the bluetooth pairing information main interface shown in fig. 2, the user presses the cancel key to trigger a corresponding operation instruction; the instruction execution module 04 responds to an operation instruction of selecting the paired mobile equipment through an up-turning key and/or a down-turning key and a cancel key based on the bluetooth pairing information main interface, and switches the bluetooth pairing information main interface shown in fig. 2 to the paired information deletion sub-interface shown in fig. 4; referring to fig. 4, on the paired information deletion sub-interface shown in fig. 4, the user selects whether to continue to execute the operation of deleting the selected paired mobile device information; the instruction monitoring module 02 monitors the operation instruction of the user deleting the sub-interface based on the paired information in real time; if the user presses a confirmation key on the matched information deletion sub-interface shown in fig. 4, an operation instruction for confirming deletion is triggered, the instruction execution module 04 responds to the operation instruction for confirming deletion corresponding to the pressed confirmation key, deletes the selected information corresponding to the matched mobile device, updates the stored history list, and switches the matched information deletion sub-interface shown in fig. 4 to the bluetooth matching information main interface shown in fig. 2; if the user presses a cancel key on the paired information deletion sub-interface shown in fig. 4, an operation instruction for canceling deletion is triggered, and the instruction execution module 04 responds to the operation instruction for canceling deletion corresponding to the pressed cancel key, and directly switches the paired information deletion sub-interface shown in fig. 4 to the bluetooth pairing information main interface shown in fig. 2. Since the instruction execution module 04 does not delete the paired mobile device information in the history list, the corresponding information saved in the history list is not changed.
In a preferred embodiment, the instruction execution module 04 responds to an operation instruction triggered by a user, and the executing of the corresponding operation further includes:
after selecting a new mobile device through the up-turning key and/or the down-turning key on the bluetooth pairing information main interface shown in fig. 2, the user presses the confirmation key to trigger a corresponding operation instruction; the instruction execution module 04 responds to an operation instruction of a user for selecting connection with unpaired new mobile equipment through an up-turning key and/or a down-turning key and a confirmation key based on the Bluetooth pairing information main interface; the bluetooth scan mode and the bluetooth discoverable state are enabled, and the bluetooth pairing information main interface shown in fig. 2 is switched to the pairing waiting sub-interface shown in fig. 5.
When the intelligent password key displays the pairing waiting sub-interface shown in fig. 5, whether a pairing request sent by the new mobile device is received or not is identified; if the intelligent password key does not receive the pairing request within the preset time period or receives an operation instruction that the user presses a cancel key within the preset time period, the instruction execution module 04 closes the bluetooth scanning mode and the bluetooth discoverable state, and switches the pairing wait sub-interface shown in fig. 5 to the bluetooth pairing information main interface shown in fig. 2; the preset time period can be set according to system requirements, or can be set by a user according to self requirements, for example, the preset time period is set to 10 seconds.
If the intelligent password key receives the pairing request within the preset time period, the instruction execution module 04 executes corresponding operation according to the pairing request and a trigger instruction of the user.
The instruction executing module 04 displays the pairing code or the randomly generated pairing code on the pairing waiting sub-interface shown in fig. 5 according to the pairing request sent by the new mobile device, and please refer to fig. 6 for an interface when the pairing code or the pairing code is displayed.
The working principle of pairing the intelligent password key and the new mobile device is as follows: according to the bluetooth protocol version supported by the current mobile device, the matching code or the matching code displayed on the matching waiting sub-interface shown in fig. 6 is a 6-bit character ". times.. Specifically, if the bluetooth protocol version supported by the new mobile device is 2.0, the smart cryptographic key displays a randomly generated 6-bit pairing code "×") on the pairing wait sub-interface shown in fig. 6; at the moment, if a user presses a cancel key, the mobile equipment is matched, the Bluetooth scanning mode is closed, and the Bluetooth discoverable state returns to the main interface; according to the Bluetooth protocol 2.0 pairing specification, if the new mobile equipment receives the 6-bit pairing code input by the user, connection is established with the intelligent password key; when the smart password key receives the response returned by the new mobile device, the smart password key is successfully paired with the new mobile device through the bluetooth technology, the bluetooth scanning mode is turned off by the bluetooth type smart password key, the bluetooth discoverable state is updated, the paired bluetooth device list is updated, and the new mobile device which is just paired is selected and jumps to the connection waiting sub-interface shown in fig. 3. If the bluetooth protocol version supported by the new mobile device is 2.1, the intelligent password key displays a 6-bit comparison code on the pairing waiting sub-interface shown in fig. 6 for the user to compare with the 6-bit comparison code displayed on the new mobile device, if the user presses a confirmation key, the comparison result is consistent, pairing is performed, after pairing is successful, the bluetooth scanning mode and the bluetooth discoverable state are closed, the paired bluetooth device list is updated, the new mobile device which is just paired is selected, and the connection waiting sub-interface shown in fig. 3 is skipped to; if the cancel button is pressed, the pairing with the mobile device is stopped, the bluetooth scanning mode is turned off, the bluetooth discoverable state is realized, and the bluetooth pairing information main interface shown in fig. 2 is returned.
Based on the pairing principle, the instruction monitoring module 02 monitors an operation instruction of the user based on the pairing waiting sub-interface; if a pairing response returned by the new mobile device is received, or an operation instruction that the user presses an acknowledgement key is detected, indicating that pairing with the new mobile device is successful, instructing the execution module 04 to close a bluetooth scanning mode and a bluetooth discoverable state, adding information of the new mobile device to the history list, updating the history list, and switching the pairing waiting sub-interface shown in fig. 6 to the bluetooth pairing information main interface shown in fig. 2; the information of the new mobile device includes information such as the name and the MAC address of the new mobile device. If the instruction monitoring module 02 detects that the user presses the cancel button, the instruction executing module 04 terminates the pairing with the new mobile device, cancels the display of the comparison code or the pairing code on the pairing wait sub-interface, and returns to the pairing wait sub-interface shown in fig. 5.
The instruction execution module 04 adds the information of the new mobile device to the history list, and updates the history list includes:
adding the information of the new mobile device to the history list, wherein a preferred implementation is as follows: adding the information of the new mobile equipment to the forefront of the history list according to a latest use principle; of course, the information of the new mobile device may also be added to any location in the history list.
In a preferred embodiment, when adding information corresponding to a new mobile device to the history list, the instruction execution module 04 identifies whether the number of pieces of information of paired mobile devices stored in the history list reaches a preset threshold. If the number of the information of the paired mobile devices stored in the history list reaches a preset threshold, the instruction execution module 04 automatically deletes the information meeting the preset condition in the history list; for example, the last piece of paired mobile device information stored in the history list is deleted; or deleting the mobile equipment information using the shift system stored in the history list, and the like; subsequently, the history list is updated.
The embodiment displays a Bluetooth pairing information main interface by responding to a trigger instruction of a user for starting up in a Bluetooth connection mode, and monitors whether an operation instruction of the user based on the Bluetooth pairing information main interface is received within a preset time length; if the operation instruction is received within the preset time length, responding to the operation instruction and executing corresponding operation; if the operation instruction is not received within the preset time, the paired mobile equipment is selected from the historical record list according to a preset rule, and a Bluetooth connection request is sent to the selected paired mobile equipment.
Referring to fig. 8, fig. 8 is a schematic functional module diagram of a processing apparatus for bluetooth pairing information according to an embodiment of the present invention; the difference between this embodiment and the embodiment described in fig. 7 is that only the auto-off module 05 is added; in this embodiment, only the automatic shutdown module 05 is specifically described, and please refer to the specific description of the related embodiments about other modules related to the processing apparatus for bluetooth pairing information of the present invention, which is not described herein again.
As shown in fig. 8, in the processing apparatus for bluetooth pairing information according to the present invention, the automatic shutdown module 05 is configured to:
the Bluetooth pairing information main interface is used for triggering an automatic shutdown operation instruction and executing an automatic shutdown operation if a cancel key pressed by a user is received and reaches a preset duration;
or,
after responding to an operation instruction triggered by a user, if the operation instruction triggered by pressing a key by the user is not received within the preset standby time and the pairing connection request is not executed, executing the operation of automatic shutdown.
That is, when the display screen of the smart key displays the main interface of the bluetooth pairing information shown in fig. 2, if the user presses the cancel button for a long time (for example, 3 seconds), an operation instruction for automatically shutting down the smart key is triggered, and the automatic shutdown module 05 responds to the operation instruction for automatically shutting down the smart key to shut down the smart key.
In a preferred embodiment, after the instruction executing module 04 responds to an operation instruction triggered by a user, if the instruction monitoring module 02 monitors that the operation instruction triggered by pressing a key by the user is not received and the pairing connection request is not executed within a preset standby time, the automatic shutdown module 05 executes an automatic shutdown operation. The preset standby time can be set according to system requirements, or can be set by a user according to the needs of the user, for example, the preset standby time is set to 10 seconds; the preset standby time is not limited in this embodiment.
The embodiment automatically closes the Bluetooth type intelligent password key through the automatic shutdown module under the condition of meeting the requirement of automatic shutdown, so that the safety is improved, and the power consumption of the Bluetooth type intelligent password key is reduced to a certain extent, so that the Bluetooth type intelligent password key is more energy-saving.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes that can be directly or indirectly applied to other related technical fields using the contents of the present specification and the accompanying drawings are included in the scope of the present invention.
Claims (18)
1. A processing method of Bluetooth pairing information is used for uniformly processing the Bluetooth pairing information of a Bluetooth intelligent password key on the Bluetooth intelligent password key, and is characterized by comprising the following steps:
responding to a trigger instruction of a user for starting up in a Bluetooth connection mode, and displaying a Bluetooth pairing information main interface; the Bluetooth pairing information main interface comprises a history record list of paired mobile equipment and prompt information connected with unpaired new mobile equipment;
monitoring whether an operation instruction triggered by a user based on the Bluetooth pairing information main interface is received within a preset time length;
if the operation instruction is received within the preset time length, responding to the operation instruction and executing corresponding operation;
and if the operation instruction is not received within the preset time, selecting paired mobile equipment from the historical record list according to a preset rule, and sending a Bluetooth connection request to the selected paired mobile equipment.
2. The method of claim 1, wherein the step of performing a corresponding operation in response to the operation instruction comprises:
responding to an operation instruction of a user for selecting paired mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
and sending a request for carrying out Bluetooth connection with the selected paired mobile equipment, switching the Bluetooth pairing information main interface to a connection waiting sub-interface, and waiting for the mobile equipment to return a Bluetooth connection response.
3. The method of claim 2, wherein the step of waiting for the mobile device to return a bluetooth connection reply further comprises:
if the Bluetooth connection response returned by the mobile equipment is received as connection establishment, switching the connection waiting sub-interface to a welcome interface with successful Bluetooth connection;
if the Bluetooth connection response returned by the mobile equipment is received as connection refusal, switching the connection waiting sub-interface to a prompt interface of Bluetooth connection failure;
and if an operation instruction of a user for pressing a cancel key based on the connection waiting sub-interface is received in the process of waiting for the mobile equipment to return a Bluetooth connection response, responding to the operation instruction for pressing the cancel key, closing the Bluetooth connection, and switching the connection waiting sub-interface to the Bluetooth pairing information main interface.
4. The method of claim 1, wherein the step of performing a corresponding operation in response to the operation instruction comprises:
responding to an operation instruction of a user for selecting the paired mobile equipment through an upturning key and/or a downturning key and a canceling key based on the Bluetooth pairing information main interface;
switching the Bluetooth pairing information main interface to a paired information deletion sub-interface;
monitoring an operation instruction of a user for deleting a sub-interface based on the paired information;
if an operation instruction that a user presses a confirmation key is monitored in the paired information deletion sub-interface, the operation instruction that the user presses the confirmation key is responded, the selected information corresponding to the paired mobile equipment is deleted, the history list is updated, and the paired information deletion sub-interface is switched to the Bluetooth pairing information main interface;
and if an operation instruction that a user presses a cancel key is monitored in the matched information deleting sub-interface, responding to the operation instruction that the cancel key is pressed, and switching the matched information deleting sub-interface to the Bluetooth matched information main interface.
5. The method of claim 1, wherein the step of performing a corresponding operation in response to the operation instruction comprises:
responding to an operation instruction of a user for selecting connection with unpaired new mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
enabling a Bluetooth scanning mode and a Bluetooth discoverable state, and switching the Bluetooth pairing information main interface to a pairing waiting sub-interface;
identifying whether a pairing request sent by the new mobile equipment is received;
if the pairing request is not received within a preset time period, or an operation instruction that a user presses a cancel key is received within the preset time period, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing request is received within the preset time period, executing corresponding operation according to the pairing request and a trigger instruction of a user.
6. The method of claim 5, wherein the step of performing the corresponding operation according to the pairing request and a triggering instruction of a user comprises:
displaying a comparison code on the pairing waiting sub-interface according to the pairing request;
monitoring an operation instruction of a user based on the pairing waiting sub-interface;
if an operation instruction that a user presses a confirmation key is detected, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the operation instruction that the user presses a cancel key is detected, terminating the pairing with the new mobile equipment, and canceling and displaying the comparison code on the pairing waiting sub-interface.
7. The method of claim 5, wherein the performing corresponding operations according to the pairing request and a triggering instruction of a user comprises:
according to the pairing request, displaying a randomly generated pairing code on the pairing waiting sub-interface;
monitoring whether a pairing response returned by the new mobile equipment is received within a preset time;
if a pairing response returned by the new mobile equipment is received within preset time, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing response returned by the new mobile equipment is not received within the preset time, terminating the pairing with the new mobile equipment, and canceling the display of the pairing code on the pairing waiting sub-interface.
8. The method of claim 6 or 7, wherein the step of adding information of the new mobile device to the history list and updating the history list comprises:
after the information of the new mobile equipment is added to the history list, whether the number of the information pieces of the paired mobile equipment stored in the history list reaches a preset threshold value is identified;
and if the preset threshold value is reached, deleting the information meeting the preset condition in the history list, and updating the history list.
9. The method of claim 1, further comprising:
if receiving an operation instruction that a user presses a cancel key to reach a preset duration, triggering an automatic shutdown operation on the Bluetooth pairing information main interface, and executing the automatic shutdown operation;
or,
after responding to an operation instruction triggered by a user, if the operation instruction triggered by pressing a key by the user is not received within the preset standby time and the pairing connection request is not executed, executing the operation of automatic shutdown.
10. The utility model provides a processing apparatus of information is paired to bluetooth for pair information is unified to bluetooth type intelligent encryption key on bluetooth type intelligent encryption key handles, its characterized in that includes:
the starting-up starting module is used for responding to a triggering instruction of starting up the Bluetooth connection mode of a user and displaying a Bluetooth pairing information main interface; the Bluetooth pairing information main interface comprises a history record list of paired mobile equipment and prompt information connected with unpaired new mobile equipment;
the instruction monitoring module is used for monitoring whether an operation instruction triggered by a user based on the Bluetooth pairing information main interface is received within a preset time length;
the instruction execution module is used for responding to an operation instruction of a user based on the Bluetooth pairing information main interface and executing corresponding operation when the operation instruction is received within the preset time length;
and the default execution module is used for selecting the paired mobile equipment from the historical record list according to a preset rule and sending a Bluetooth connection request to the selected paired mobile equipment when an operation instruction of the user based on the Bluetooth pairing information main interface is not received within the preset time length.
11. The apparatus of claim 10, wherein the instruction execution module is further to:
responding to an operation instruction of a user for selecting paired mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
and sending a request for carrying out Bluetooth connection with the selected paired mobile equipment, switching the Bluetooth pairing information main interface to a connection waiting sub-interface, and waiting for the mobile equipment to return a Bluetooth connection response.
12. The apparatus of claim 10 or 11, wherein the instruction execution module is further to:
if the Bluetooth connection response returned by the mobile equipment is received as connection establishment, switching the connection waiting sub-interface to a welcome interface with successful Bluetooth connection;
if the Bluetooth connection response returned by the mobile equipment is received as connection refusal, switching the connection waiting sub-interface to a prompt interface of Bluetooth connection failure;
and if an operation instruction of a user for pressing a cancel key based on the connection waiting sub-interface is received in the process of waiting for the mobile equipment to return a Bluetooth connection response, responding to the operation instruction for pressing the cancel key, closing the Bluetooth connection, and switching the connection waiting sub-interface to the Bluetooth pairing information main interface.
13. The apparatus of claim 10, wherein the instruction execution module is further to:
responding to an operation instruction of a user for selecting the paired mobile equipment through an upturning key and/or a downturning key and a canceling key based on the Bluetooth pairing information main interface;
switching the Bluetooth pairing information main interface to a paired information deletion sub-interface;
monitoring an operation instruction of a user for deleting a sub-interface based on the paired information;
if an operation instruction that a user presses a confirmation key is monitored in the paired information deletion sub-interface, the operation instruction that the user presses the confirmation key is responded, the selected information corresponding to the paired mobile equipment is deleted, the history list is updated, and the paired information deletion sub-interface is switched to the Bluetooth pairing information main interface;
and if an operation instruction that a user presses a cancel key is monitored in the matched information deleting sub-interface, responding to the operation instruction that the cancel key is pressed, and switching the matched information deleting sub-interface to the Bluetooth matched information main interface.
14. The apparatus of claim 10, wherein the instruction execution module is further to:
responding to an operation instruction of a user for selecting connection with unpaired new mobile equipment through an upturning key and/or a downturning key and a confirmation key based on the Bluetooth pairing information main interface;
enabling a Bluetooth scanning mode and a Bluetooth discoverable state, and switching the Bluetooth pairing information main interface to a pairing waiting sub-interface;
identifying whether a pairing request sent by the new mobile equipment is received;
if the pairing request is not received within a preset time period, or an operation instruction that a user presses a cancel key is received within the preset time period, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing request is received within the preset time period, executing corresponding operation according to the pairing request and a trigger instruction of a user.
15. The apparatus of claim 14, wherein the instruction execution module is further to:
displaying a comparison code on the pairing waiting sub-interface according to the pairing request;
monitoring an operation instruction of a user based on the pairing waiting sub-interface;
if an operation instruction that a user presses a confirmation key is detected, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the operation instruction that the user presses a cancel key is detected, terminating the pairing with the new mobile equipment, and canceling and displaying the comparison code on the pairing waiting sub-interface.
16. The apparatus of claim 14, wherein the instruction execution module is further to:
according to the pairing request, displaying a randomly generated pairing code on the pairing waiting sub-interface;
monitoring whether a pairing response returned by the new mobile equipment is received within a preset time;
if a pairing response returned by the new mobile equipment is received within preset time, a Bluetooth scanning mode and a Bluetooth discoverable state are closed, information of the new mobile equipment is added to the history list, the history list is updated, and the pairing waiting sub-interface is switched to the Bluetooth pairing information main interface;
and if the pairing response returned by the new mobile equipment is not received within the preset time, terminating the pairing with the new mobile equipment, and canceling the display of the pairing code on the pairing waiting sub-interface.
17. The apparatus of claim 15 or 16, wherein the instruction execution module is further to:
after the information of the new mobile equipment is added to the history list, whether the number of the information pieces of the paired mobile equipment stored in the history list reaches a preset threshold value is identified;
and if the preset threshold value is reached, deleting the information meeting the preset condition in the history list, and updating the history list.
18. The apparatus of claim 10, further comprising:
the automatic shutdown module is used for triggering an automatic shutdown operation instruction and executing an automatic shutdown operation if receiving a preset time length when a cancel key is pressed by a user on the Bluetooth pairing information main interface;
or,
after responding to an operation instruction triggered by a user, if the operation instruction triggered by pressing a key by the user is not received within the preset standby time and the pairing connection request is not executed, executing the operation of automatic shutdown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310113368.4A CN103228059B (en) | 2013-04-02 | 2013-04-02 | Method and device for processing bluetooth pairing information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310113368.4A CN103228059B (en) | 2013-04-02 | 2013-04-02 | Method and device for processing bluetooth pairing information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103228059A CN103228059A (en) | 2013-07-31 |
CN103228059B true CN103228059B (en) | 2017-02-08 |
Family
ID=48838260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310113368.4A Expired - Fee Related CN103228059B (en) | 2013-04-02 | 2013-04-02 | Method and device for processing bluetooth pairing information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103228059B (en) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103458025B (en) * | 2013-08-30 | 2017-01-11 | 广东明创软件科技有限公司 | File sharing method and system based on geographical location |
CN103702184A (en) * | 2013-12-26 | 2014-04-02 | Tcl集团股份有限公司 | Method and system for managing multi-screen interactive equipment |
KR102279301B1 (en) * | 2014-09-29 | 2021-07-20 | 현대모비스 주식회사 | Mirroring device in vehicle and pairng method thereof |
CN104902476B (en) * | 2015-05-28 | 2019-02-05 | 神州融安科技(北京)有限公司 | A kind of control method of bluetooth security management |
CN104936137B (en) * | 2015-06-09 | 2018-08-24 | 深圳市文鼎创数据科技有限公司 | Bluetooth binding method and bluetooth equipment |
CN106412843B (en) * | 2015-07-31 | 2020-05-26 | 浙江大华技术股份有限公司 | Method, device and system for pairing gateway and terminal |
CN105338402B (en) * | 2015-11-04 | 2020-08-07 | 北京数码视讯科技股份有限公司 | Method and device for Bluetooth connection |
CN105450268A (en) * | 2015-12-02 | 2016-03-30 | 惠州Tcl移动通信有限公司 | Bluetooth-based method and system for automatically connecting wearable device with mobile terminal |
CN105550137B (en) * | 2015-12-14 | 2019-02-05 | Oppo广东移动通信有限公司 | Bluetooth pairing setting method and system |
CN105847950A (en) * | 2016-01-26 | 2016-08-10 | 乐视致新电子科技(天津)有限公司 | Bluetooth list display method and apparatus |
CN106102129A (en) * | 2016-05-23 | 2016-11-09 | 深圳Tcl数字技术有限公司 | Connect the method and device of bluetooth equipment |
CN105897314A (en) * | 2016-06-24 | 2016-08-24 | 维沃移动通信有限公司 | Bluetooth connection control method and terminal |
CN113891513B (en) * | 2016-07-11 | 2024-04-16 | 佛山市顺德区美的电热电器制造有限公司 | Cooking apparatus and control method of cooking apparatus |
CN106851530A (en) * | 2016-12-14 | 2017-06-13 | 青岛海信电器股份有限公司 | The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment |
CN106850091A (en) * | 2017-02-03 | 2017-06-13 | 珠海市杰理科技股份有限公司 | Bluetooth equipment method of testing and system |
CN108289298A (en) * | 2017-03-25 | 2018-07-17 | 深圳雷柏科技股份有限公司 | A kind of method and apparatus intelligently switched between multiple bluetooth equipments |
WO2019127322A1 (en) * | 2017-12-29 | 2019-07-04 | 深圳市名宗科技有限公司 | Wireless pairing system and pairing method |
CN108184225B (en) * | 2017-12-29 | 2021-09-28 | 飞天诚信科技股份有限公司 | Method for canceling Bluetooth connection in real time in Bluetooth connection process and intelligent terminal |
CN108769960A (en) * | 2018-04-27 | 2018-11-06 | 努比亚技术有限公司 | A kind of apparatus interconnection method, terminal and computer readable storage medium |
CN108834116B (en) * | 2018-04-27 | 2022-03-04 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method, electronic device and storage medium |
CN108852393A (en) * | 2018-05-22 | 2018-11-23 | 深圳市宝润科技有限公司 | Exposal control method, system and the readable storage medium storing program for executing of X-ray exposure system |
CN112445548A (en) * | 2019-09-02 | 2021-03-05 | 广州皓醒湾科技有限公司 | Method and system for processing Bluetooth device operation command and readable storage medium |
CN110972334B (en) * | 2019-12-09 | 2023-04-25 | 上海传英信息技术有限公司 | Bluetooth pairing connection method, device and readable storage medium |
CN111629366B (en) * | 2020-04-27 | 2023-06-09 | Oppo(重庆)智能科技有限公司 | Interaction method and device between Bluetooth devices, storage medium and electronic device |
CN111615090B (en) * | 2020-04-27 | 2023-07-14 | Oppo(重庆)智能科技有限公司 | Interaction method and device between Bluetooth devices, storage medium and electronic device |
CN112667336A (en) * | 2020-12-25 | 2021-04-16 | 歌尔光学科技有限公司 | Method, device, storage medium and device for inputting text information |
CN117201660A (en) * | 2022-05-31 | 2023-12-08 | 广州星际悦动股份有限公司 | Equipment pairing method, system and storage medium based on oral cleaning interaction system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1836405A (en) * | 2003-08-11 | 2006-09-20 | 皇家飞利浦电子股份有限公司 | Radio communication system |
CN101835279A (en) * | 2009-12-29 | 2010-09-15 | 闻泰集团有限公司 | Method for simplifying mobile terminal connecting bluetooth equipment |
CN202135194U (en) * | 2011-06-25 | 2012-02-01 | 北京播思软件技术有限公司 | Mobile terminal system with intelligent Bluetooth earphone |
CN102779544A (en) * | 2012-07-25 | 2012-11-14 | Tcl集团股份有限公司 | Method and device for generating media information list |
CN102983892A (en) * | 2012-11-19 | 2013-03-20 | 深圳市文鼎创数据科技有限公司 | Method and system for bluetooth pairing |
-
2013
- 2013-04-02 CN CN201310113368.4A patent/CN103228059B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1836405A (en) * | 2003-08-11 | 2006-09-20 | 皇家飞利浦电子股份有限公司 | Radio communication system |
CN101835279A (en) * | 2009-12-29 | 2010-09-15 | 闻泰集团有限公司 | Method for simplifying mobile terminal connecting bluetooth equipment |
CN202135194U (en) * | 2011-06-25 | 2012-02-01 | 北京播思软件技术有限公司 | Mobile terminal system with intelligent Bluetooth earphone |
CN102779544A (en) * | 2012-07-25 | 2012-11-14 | Tcl集团股份有限公司 | Method and device for generating media information list |
CN102983892A (en) * | 2012-11-19 | 2013-03-20 | 深圳市文鼎创数据科技有限公司 | Method and system for bluetooth pairing |
Also Published As
Publication number | Publication date |
---|---|
CN103228059A (en) | 2013-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103228059B (en) | Method and device for processing bluetooth pairing information | |
CN103235680B (en) | The processing method and processing device that bluetooth connects | |
US9742868B2 (en) | Method, device and system for processing instant messaging information and setting terminal priority | |
CN103227862A (en) | Method and device for processing connection of bluetooth | |
CN105262652A (en) | Network configuration method for network household appliance | |
CN105530600A (en) | Anti-loss method and anti-loss system for mobile terminal, and mobile terminal | |
US10560969B2 (en) | Communication apparatus, control method for communication apparatus, and program | |
CN104853373A (en) | Method and device for switching operating modes of wireless module | |
KR20150042643A (en) | Terminal appartus and method for connecting to virtual server in a vritual desktop infrastructure | |
CN111882707A (en) | Lock control method and device | |
CN108039990B (en) | Household appliance operation method and system, household appliance and computer readable storage medium | |
US20150173002A1 (en) | Terminal and connection method for same | |
CN106302957A (en) | Control method, device and the relevant device of the anti-lost contact of a kind of terminal | |
CN103236096A (en) | Bluetooth smart key | |
CN105812584A (en) | Wearable device-based information anti-theft method, device and apparatus | |
CN201608697U (en) | Short-message interactive remote switch | |
EP3160212A1 (en) | Method, apparatus and system for managing mobile hotspot | |
CN112543493A (en) | Wifi connection method, terminal and computer storage medium | |
CN112333849A (en) | Equipment connection disconnection processing method and device, mobile terminal and storage medium | |
JP6246353B2 (en) | Communication apparatus and communication control method | |
CN203366405U (en) | Bluetooth type smart password key | |
CN113915947A (en) | Refrigerator and remote control method thereof | |
CN105786534B (en) | Information acquisition method and device | |
KR101285818B1 (en) | System for sensing departure and access of user using wireless network | |
CN109862109B (en) | Internet-based mobile terminal control method, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170208 Termination date: 20190402 |