Movatterモバイル変換


[0]ホーム

URL:


CN105430601B - Bluetooth device list display method and device and mobile terminal - Google Patents

Bluetooth device list display method and device and mobile terminal
Download PDF

Info

Publication number
CN105430601B
CN105430601BCN201510796108.0ACN201510796108ACN105430601BCN 105430601 BCN105430601 BCN 105430601BCN 201510796108 ACN201510796108 ACN 201510796108ACN 105430601 BCN105430601 BCN 105430601B
Authority
CN
China
Prior art keywords
bluetooth
target application
key
intelligent hardware
broadcast information
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.)
Active
Application number
CN201510796108.0A
Other languages
Chinese (zh)
Other versions
CN105430601A (en
Inventor
施佩菊
陈昊
刘红杰
何伟
房宋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201510796108.0ApriorityCriticalpatent/CN105430601B/en
Publication of CN105430601ApublicationCriticalpatent/CN105430601A/en
Application grantedgrantedCritical
Publication of CN105430601BpublicationCriticalpatent/CN105430601B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention discloses a method and a device for displaying a Bluetooth device list and a mobile terminal. In the invention, a user does not need to open a target application any more, a Bluetooth scanning button of an application interface is manually triggered to form the search of Bluetooth equipment and the display of a Bluetooth equipment list, and Bluetooth broadcast information is decrypted at the internal layer of the system to complete the scanning of hardware equipment of the target application, so that the description information of the hardware equipment of the target application is displayed in the Bluetooth equipment list; the invention can enable the intelligent hardware to be quickly discovered by the mobile terminal, and improves the connection rate of the intelligent hardware.

Description

Bluetooth device list display method and device and mobile terminal
Technical Field
The invention relates to the technical field of wireless connection, in particular to a method and a device for displaying a Bluetooth device list and a mobile terminal.
Background
With the development of intelligent hardware such as intelligent wristwatches, intelligent bracelets and the like, intelligent hardware developed based on specific applications frequently used by users is produced in order to facilitate better use of the intelligent hardware by users, and the specific applications such as instant messaging applications frequently used by users and the like; against this background, the link for the intelligent hardware to communicate with the mobile terminal held by the user can pass through a specific application frequently used by the user without developing a new independent application for the intelligent hardware to communicate with the mobile terminal.
Under the background of intelligent hardware developed based on specific application, information interaction between the intelligent hardware and the mobile terminal can be realized through a Bluetooth technology; the bluetooth search matching between the intelligent hardware and the mobile terminal can be triggered by the specific application, and specifically, the bluetooth key (the public key of the specific application and the key of the specific application) of the specific application can be defined between the intelligent hardware and the mobile terminal, so that the bluetooth search matching between the intelligent hardware and the mobile terminal is realized by the bluetooth key of the specific application.
In practical application, the intelligent hardware can send Bluetooth broadcast information to the surroundings through a public key of specific application; after a user opens a specific application through the mobile terminal, the user can click a Bluetooth scanning button displayed on an application interface, and the mobile terminal starts to scan surrounding intelligent hardware; after scanning the surrounding intelligent hardware for sending the broadcast, the mobile terminal can decrypt the Bluetooth broadcast information through a private key of specific application to obtain information such as the name of the intelligent hardware for sending the broadcast, and display the information such as the name of the intelligent hardware in a displayed Bluetooth equipment list; and then, the user clicks certain intelligent hardware in the Bluetooth device list to bind, and after the binding is successful, the intelligent hardware is connected to realize Bluetooth communication.
It can be seen that, when the bluetooth device list with the intelligent hardware information is displayed in the mobile terminal in the prior art, a user needs to first search for a specific application in the mobile terminal, then open the specific application, and then click a bluetooth scan button of an application interface, so that the mobile terminal can search for the intelligent hardware based on the specific application, and the information of the searched intelligent hardware is displayed in the bluetooth device list, which causes the problem that the existing mode for displaying the bluetooth device list is complicated to operate.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying a bluetooth device list, and a mobile terminal, so as to solve the problem that an existing manner for displaying a bluetooth device list is complicated to operate.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a presentation method of a Bluetooth device list, the method comprising: maintaining a bluetooth searching state; if the Bluetooth broadcast information is received, judging whether the Bluetooth broadcast information is sent by the intelligent hardware of the target application, wherein the Bluetooth broadcast information sent by the intelligent hardware of the target application is encrypted through a first secret key of the target application; if yes, triggering and calling a second key of the target application corresponding to the first key preset in the system file; decrypting the Bluetooth broadcast information according to the second key to obtain the description information of the intelligent hardware; the first key and the second key are two keys corresponding to the target application; and when a Bluetooth device list display instruction is detected, displaying the Bluetooth device list with the description information.
The embodiment of the invention also provides a device for displaying the Bluetooth equipment list, which comprises: a Bluetooth searching unit for maintaining a Bluetooth searching state; a first receiving unit for receiving Bluetooth broadcast information; the judging unit is used for judging whether the Bluetooth broadcast information is sent by the intelligent hardware of the target application when the receiving unit receives the Bluetooth broadcast information, wherein the Bluetooth broadcast information sent by the intelligent hardware of the target application is encrypted by a first secret key of the target application; the calling unit is used for triggering and calling a second key of the target application corresponding to the first key preset in a system file when the judging unit judges that the Bluetooth broadcast information is sent by the intelligent hardware of the target application; the decryption unit is used for decrypting the Bluetooth broadcast information according to the second key called by the calling unit to obtain the description information of the intelligent hardware; the first key and the second key are two keys corresponding to the target application; the detection unit is used for detecting a Bluetooth equipment list display instruction; and the display unit is used for displaying the Bluetooth equipment list with the description information when the detection unit detects the Bluetooth equipment list display instruction.
An embodiment of the present invention further provides a mobile terminal, including: a Bluetooth chip and a processor;
the Bluetooth chip is used for maintaining the Bluetooth searching state of the Bluetooth chip;
the processor is used for scanning Bluetooth broadcast information in the Bluetooth chip and judging whether the Bluetooth broadcast information is sent by the intelligent hardware of the target application, wherein the Bluetooth broadcast information sent by the intelligent hardware of the target application is encrypted by a first secret key of the target application; if yes, triggering and calling a second key of the target application corresponding to the first key preset in the system file; decrypting the Bluetooth broadcast information according to the second key to obtain the description information of the intelligent hardware; the first key and the second key are two keys corresponding to the target application; and when a Bluetooth device list display instruction is detected, displaying the Bluetooth device list with the description information.
Based on the technical scheme, since the second key corresponding to the first key of the target application is preset in the system file, after the mobile terminal receives the bluetooth broadcast information sent by the intelligent hardware, the mobile terminal can directly call the second key preset in the system file on the internal layer of the system, so that the bluetooth broadcast information is decrypted to obtain the description information of the intelligent hardware, and then when a bluetooth device list display instruction is detected, a bluetooth device list with the description information is displayed; it can be seen that, in the embodiment of the present invention, a user does not need to open a target application any more, and manually triggers a bluetooth scan button of an application interface to form search of a bluetooth device and display of a bluetooth device list, but can decrypt bluetooth broadcast information at an internal level of a system to complete scanning of a hardware device of the target application, thereby realizing display of description information of the hardware device of the target application in the bluetooth device list; meanwhile, the embodiment of the invention can enable the intelligent hardware to be rapidly discovered by the mobile terminal, thereby effectively improving the connection rate of the intelligent hardware.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for presenting a bluetooth device list according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for presenting a bluetooth device list according to an embodiment of the present invention;
fig. 3 is a block diagram of a bluetooth device list display apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram of a determining unit according to an embodiment of the present invention;
FIG. 5 is a block diagram of a detecting unit according to an embodiment of the present invention;
FIG. 6 is a block diagram of a display unit according to an embodiment of the present invention;
fig. 7 is another structural block diagram of a bluetooth device list presentation apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for displaying a bluetooth device list according to an embodiment of the present invention, where the method is applicable to a mobile terminal, such as a smart phone, a tablet computer, and other devices; referring to fig. 1, the method may include:
s101: maintaining a bluetooth searching state;
the display method of the Bluetooth equipment list in the embodiment of the invention is realized based on the Bluetooth technology, so that the Bluetooth search function of the mobile terminal needs to be started in the display process of the Bluetooth equipment list, so that the mobile terminal maintains the Bluetooth search state; optionally, the user may open the bluetooth search function by clicking a bluetooth shortcut operation on the mobile terminal, or may open the bluetooth search function by clicking a bluetooth icon on the mobile terminal, which is not limited in the embodiment of the present invention.
S102: receiving Bluetooth broadcast information;
s103: judging whether the Bluetooth broadcast information is sent by intelligent hardware of a target application;
it should be noted that the smart hardware developed based on the target application sends the bluetooth broadcast information to the surroundings, and the sent bluetooth broadcast information is encrypted by the first key of the target application, for example: the intelligent hardware can encrypt broadcast information through a first secret key of an appointed target application and then send a Bluetooth broadcast of 'i am a Bluetooth device and i ID XXXX' to the periphery;
it should be noted that, the target application in the embodiment of the present invention refers to an application that can be run on the mobile terminal, such as an instant messaging application that can be run on the mobile terminal;
in the embodiment of the invention, the intelligent hardware developed based on the target application is the intelligent hardware which reaches an agreement with the target application running on the mobile terminal; for example: the service provider of the instant messaging application can cooperate with an intelligent hardware manufacturer, and after the mobile terminal of the user loads the instant messaging application, the user can reach an agreement with the manufacturer server through the instant messaging application background to determine the intelligent hardware corresponding to the instant messaging application, so that the key of the target application is used as a Bluetooth key to realize the Bluetooth connection between the mobile terminal and the intelligent hardware;
the intelligent hardware of the target application can send the Bluetooth broadcast information to the periphery, and the sent Bluetooth broadcast information is encrypted through the first secret key of the target application, so that the mobile terminal can judge whether the Bluetooth broadcast information is sent by the intelligent hardware of the target application or not through the information characteristics in the Bluetooth broadcast information;
optionally, the mobile terminal may determine whether the identifier of the target application exists in the bluetooth broadcast information, if so, it may be determined that the bluetooth broadcast information is sent by the intelligent hardware of the target application, and if not, it may be determined that the bluetooth broadcast information is not sent by the intelligent hardware of the target application, and may be a bluetooth broadcast sent based on a standard bluetooth protocol;
optionally, a second key corresponding to the first key of the target application may be set in the mobile terminal, and broadcast information encrypted by the first key of the target application may be decrypted by the second key, based on which, after receiving the bluetooth broadcast information, the mobile terminal may decrypt the bluetooth broadcast information by the second key of the target application, and if decryption is successful, determine that the bluetooth broadcast information is sent by the smart hardware of the target application after being encrypted by the first key, and if decryption is failed, determine that the bluetooth broadcast information is not sent by the smart hardware of the target application, possibly based on the bluetooth broadcast sent by the standard bluetooth protocol;
obviously, the mobile terminal may also receive a bluetooth broadcast sent by a normal bluetooth device, where the bluetooth broadcast sent by the normal bluetooth device is defined based on a standard bluetooth protocol, and there is a difference from the bluetooth broadcast sent by the intelligent hardware encrypted by the first key of the target application in the embodiment of the present invention;
optionally, if the mobile terminal determines that the bluetooth broadcast information is not sent by the intelligent hardware of the target application, the mobile terminal may determine next received bluetooth broadcast information, and determine whether the next received bluetooth broadcast information is sent by the intelligent hardware of the target application.
S104: if the Bluetooth broadcast information is judged to be sent by the intelligent hardware of the target application, triggering and calling a second key of the target application corresponding to the first key and preset in a system file;
in the embodiment of the invention, the second key corresponding to the first key of the target application can be written into a system file in the mobile terminal in advance, so that the second key of the decrypted target application is preset in the mobile terminal system, the target application does not need to be opened in the mobile terminal, the key for decrypting the Bluetooth broadcast information is called, the operations that when the mobile terminal searches for intelligent hardware, a user opens the target application and clicks a Bluetooth searching button of an application interface to call the Bluetooth decryption key of the target application are reduced, and the simplification of the user operation is realized;
the second key is written in the system file of the mobile terminal and is taken over by the mobile terminal system, so that the mobile terminal can directly call the second key corresponding to the first key from the system file when judging that the received Bluetooth broadcast information is sent by the intelligent hardware of the target application;
optionally, in the embodiment of the present invention, a second key corresponding to the first key may be written in the bluetooth configuration file of the system in advance, and correspondingly, the mobile terminal may retrieve the second key corresponding to the first key, which is written in advance, from the bluetooth configuration file of the system.
Of course, the second key corresponding to the first key may also be embedded in the system files of other systems of the mobile terminal, as long as the logic sent by the intelligent hardware that determines that the bluetooth broadcast information is the target application is bound, and the triggering relationship with the logic for calling the second key preset in the system files;
obviously, the embodiment of the present invention may also bind the logic of receiving the bluetooth broadcast information and the triggering relationship of the logic of calling the second key preset in the system file, so that after receiving the bluetooth broadcast information, the mobile terminal directly decrypts the bluetooth broadcast information through the second key, and determines whether the bluetooth broadcast information is sent by the intelligent hardware of the target application according to the success or failure result of decryption; it is worth noting that after the bluetooth broadcast information is directly decrypted through the second secret key and is judged to be sent by the intelligent hardware of the target application, the description information of the intelligent hardware can be directly obtained and displayed in the bluetooth device list;
optionally, the system of the mobile terminal may be provided by a provider of the target application or a vendor who has a cooperation with the provider of the target application, and since the system of the mobile terminal and the target application achieve a predetermined protocol level, the system of the mobile terminal may implement the preset of the second key of the target application; optionally, in the embodiment of the present invention, in a system development stage, the preset completion of the second password of the target application in the system may be realized.
The first key and the second key are two keys corresponding to the target application, one first key corresponds to one second key, and the two keys can be used for encrypting and decrypting each other. The first secret key is a private key of the target application, and the second secret key is a public key of the target application; or, the first secret key is a public key of the target application, and the second secret key is a private key of the target application. In a key pair, the public key is public and does not need to be kept secret, while the private key is held by the individual himself and must be kept in good care and care for the confidentiality. If data is encrypted with one of the keys, only the corresponding key can be decrypted. If decryption of data is possible with one of the keys, the data must be encrypted with the corresponding key.
S105: decrypting the Bluetooth broadcast information according to the second key to obtain the description information of the intelligent hardware;
and description information of the intelligent hardware such as the name of the intelligent hardware and the like.
S106: and when a Bluetooth device list display instruction is detected, displaying the Bluetooth device list with the description information.
It should be noted that the instruction for detecting the list of bluetooth devices disclosed in the embodiment of the present invention includes: if an instruction for entering a Bluetooth setting page from a system setting interface is detected, determining that a Bluetooth equipment list display instruction is detected; or if the trigger operation of the shortcut operation displayed on the bluetooth device list is detected, determining that a bluetooth device list display instruction is detected, or if the trigger operation of the bluetooth device list icon is detected, determining that the bluetooth device list display instruction is detected;
optionally, in order to be different from the display of the bluetooth device searched based on the standard bluetooth protocol in the system bluetooth setting page, when the description information of the intelligent hardware of the target application is displayed in the system bluetooth device list, the embodiment of the present invention may display a first list and a second list in the system bluetooth setting page, where the first list shows the description information of the hardware device of the target application, and the second list shows the information of the bluetooth device searched based on the standard bluetooth protocol.
In the method for displaying the bluetooth device list provided by the embodiment of the invention, since the second key corresponding to the first key of the target application is preset in the system file, after the mobile terminal receives the bluetooth broadcast information sent by the intelligent hardware, the mobile terminal can directly call the second key preset in the system file on the internal layer of the system, so that the bluetooth broadcast information is decrypted to obtain the description information of the intelligent hardware, and the bluetooth device list with the description information is displayed when a bluetooth device list display instruction is detected; it can be seen that, in the embodiment of the present invention, a user does not need to open a target application any more, and manually triggers a bluetooth scan button of an application interface to form search of a bluetooth device and display of a bluetooth device list, but can decrypt bluetooth broadcast information at an internal level of a system to complete scanning of a hardware device of the target application, thereby realizing display of description information of the hardware device of the target application in the bluetooth device list; meanwhile, the embodiment of the invention can enable the intelligent hardware to be rapidly discovered by the mobile terminal, thereby effectively improving the connection rate of the intelligent hardware.
Optionally, because the bluetooth technology belongs to a short-distance wireless connection technology, after a user opens a bluetooth device on a mobile terminal, in a process of generating a bluetooth list, the bluetooth device needs to be maintained in a bluetooth search state, but a bluetooth coverage area changes with the movement of the mobile terminal, and the intelligent hardware searched at the last time cannot be connected currently with the change of the bluetooth coverage area, so that in a process of displaying the bluetooth device list with the description information, a distance between the intelligent hardware decrypted to the description information and the mobile terminal can be calculated, the intelligent hardware decrypted to the description information and having a distance conforming to a preset connection distance is displayed in the bluetooth device list, and the preset connection distance refers to a distance within the bluetooth coverage area;
optionally, in the embodiment of the present invention, the distance between the intelligent hardware and the mobile terminal may be calculated through a bluetooth technology, if the intelligent hardware decrypted to the description information at the previous time detects a bluetooth device list display instruction, and the distance between the intelligent hardware decrypted to the description information and the mobile terminal (the distance exceeding the bluetooth coverage range) cannot be calculated, it may be determined that the distance between the intelligent hardware decrypted to the description information and the mobile terminal exceeds a preset connection distance, and if the intelligent hardware decrypted to the description information at the previous time detects a bluetooth device list display instruction, it may also be determined that the distance between the intelligent hardware decrypted to the description information and the mobile terminal does not exceed the preset connection distance.
Referring to fig. 2, a schematic flow chart of another embodiment of a method for displaying a bluetooth device list according to the present invention is shown, where the method is applied to a mobile terminal, such as a smart phone and a tablet computer; the method specifically comprises the following steps:
s201: maintaining a bluetooth searching state;
the display method of the Bluetooth equipment list in the embodiment of the invention is realized based on the Bluetooth technology, so that the Bluetooth search function of the mobile terminal needs to be started in the display process of the Bluetooth equipment list, so that the mobile terminal maintains the Bluetooth search state; optionally, the user may open the bluetooth search function by clicking a bluetooth shortcut operation on the mobile terminal, or may open the bluetooth search function by clicking a bluetooth icon on the mobile terminal, which is not limited in the embodiment of the present invention.
S202: receiving Bluetooth broadcast information;
s203: judging whether the Bluetooth broadcast information is sent by intelligent hardware of a target application;
it should be noted that the smart hardware developed based on the target application sends the bluetooth broadcast information to the surroundings, and the sent bluetooth broadcast information is encrypted by the first key of the target application, for example: the intelligent hardware can encrypt broadcast information through a first secret key of an appointed target application and then send a Bluetooth broadcast of 'i am a Bluetooth device and i ID XXXX' to the periphery;
it should be noted that, the target application in the embodiment of the present invention refers to an application that can be run on the mobile terminal, such as an instant messaging application that can be run on the mobile terminal;
in the embodiment of the invention, the intelligent hardware developed based on the target application is the intelligent hardware which reaches an agreement with the target application running on the mobile terminal; for example: the service provider of the instant messaging application can cooperate with an intelligent hardware manufacturer, and after the mobile terminal of the user loads the instant messaging application, the user can reach an agreement with the manufacturer server through the instant messaging application background to determine the intelligent hardware corresponding to the instant messaging application, so that the key of the target application is used as a Bluetooth key to realize the Bluetooth connection between the mobile terminal and the intelligent hardware;
because the intelligent hardware of the target application can send the Bluetooth broadcast information to the periphery, and the sent Bluetooth broadcast information is encrypted by the first secret key of the target application, the mobile terminal can judge whether the Bluetooth broadcast information is sent by the intelligent hardware of the target application or not through the information characteristics in the Bluetooth broadcast information.
S204: if the Bluetooth broadcast information is judged to be sent by the intelligent hardware of the target application, triggering and calling a second key of the target application corresponding to the first key and preset in a system file;
in the embodiment of the invention, the second key corresponding to the first key of the target application can be written into a system file in the mobile terminal in advance, so that the second key of the decrypted target application is preset in the mobile terminal system, the target application does not need to be opened in the mobile terminal, the key for decrypting the Bluetooth broadcast information is called, the operations that when the mobile terminal searches for intelligent hardware, a user opens the target application and clicks a Bluetooth searching button of an application interface to call the Bluetooth decryption key of the target application are reduced, and the simplification of the user operation is realized;
the second key is written in the system file of the mobile terminal, and the second key is taken over by the mobile terminal system, so that the mobile terminal can directly call the second key corresponding to the first key from the system file when judging that the received Bluetooth broadcast information is sent by the intelligent hardware of the target application.
S205: decrypting the Bluetooth broadcast information according to the second key to obtain the description information of the intelligent hardware;
and description information of the intelligent hardware such as the name of the intelligent hardware and the like.
S206: when a Bluetooth device list display instruction is detected, displaying a Bluetooth device list with the description information;
the specific implementation of S201-S206 in the embodiment of the present invention has been described in detail in the foregoing method embodiment, and this embodiment is not described again.
S207: receiving a user selection instruction;
s208: and selecting the intelligent hardware needing to be connected from the Bluetooth equipment list according to a user selection instruction to carry out Bluetooth connection.
It should be noted that, after the bluetooth device list with the description information is shown to the user, the user enters the bluetooth device list in the system setting, the description information of a certain intelligent hardware in the bluetooth device list is clicked by the user, the intelligent hardware needing to be connected is selected for binding, after the system displays that the binding is successful, the intelligent hardware starts to be connected, and after the system displays that the connection is successful, the bluetooth connection between the target application and the intelligent hardware is indicated to be successful.
In the embodiment of the invention, the second key corresponding to the first key of the target application is preset in the system file, so that after the mobile terminal receives the Bluetooth broadcast information sent by the intelligent hardware, the mobile terminal can directly call the second key preset in the system file on the internal layer of the system, the Bluetooth broadcast information is decrypted to obtain the description information of the intelligent hardware, and the Bluetooth equipment list with the description information is displayed when a Bluetooth equipment list display instruction is detected; it can be seen that, in the embodiment of the present invention, a user does not need to open a target application any more, and manually triggers a bluetooth scan button of an application interface to form search of a bluetooth device and display of a bluetooth device list, but can decrypt bluetooth broadcast information at an internal level of a system to complete scanning of a hardware device of the target application, thereby realizing display of description information of the hardware device of the target application in the bluetooth device list; meanwhile, the embodiment of the invention can enable the intelligent hardware to be rapidly discovered by the mobile terminal, thereby effectively improving the connection rate of the intelligent hardware.
The method is described in detail in the embodiments disclosed above, and the method of the present invention can be implemented by various types of apparatuses, so that the present invention also discloses an apparatus, and the following detailed description will be given of specific embodiments.
Referring to fig. 3, a schematic structural diagram of a bluetooth device list display apparatus according to the present invention is shown, where the bluetooth device list display apparatus is applied to a mobile terminal, such as a smart phone and a tablet computer. The device specifically comprises the following units:
abluetooth searching unit 11 for maintaining a bluetooth searching state;
the display device of the bluetooth device list in the embodiment of the present invention is implemented based on the bluetooth technology in the process of displaying the bluetooth device list, so that in the process of displaying the bluetooth device list, the bluetooth search function of the mobile terminal needs to be turned on, and the mobile terminal maintains the bluetooth search state through thebluetooth search unit 11.
Afirst receiving unit 12 for receiving bluetooth broadcast information;
the judgingunit 13 is configured to judge whether the bluetooth broadcast information is sent by the intelligent hardware of the target application when the receiving unit receives the bluetooth broadcast information;
it should be noted that the smart hardware developed based on the target application sends the bluetooth broadcast information to the surroundings, and the sent bluetooth broadcast information is encrypted by the first key of the target application, for example: the intelligent hardware can encrypt broadcast information through a first secret key of an appointed target application and then send a Bluetooth broadcast of 'i am a Bluetooth device and i ID XXXX' to the periphery;
it should be noted that, the target application in the embodiment of the present invention refers to an application that can be run on the mobile terminal, such as an instant messaging application that can be run on the mobile terminal;
in the embodiment of the invention, the intelligent hardware developed based on the target application is the intelligent hardware which reaches an agreement with the target application running on the mobile terminal; for example: the service provider of the instant messaging application can cooperate with an intelligent hardware manufacturer, and after the mobile terminal of the user loads the instant messaging application, the user can reach an agreement with the manufacturer server through the instant messaging application background to determine the intelligent hardware corresponding to the instant messaging application, so that the key of the target application is used as a Bluetooth key to realize the Bluetooth connection between the mobile terminal and the intelligent hardware;
since the smart hardware of the target application transmits the bluetooth broadcast information to the surroundings, and the transmitted bluetooth broadcast information is encrypted by the first key of the target application, the mobile terminal can determine whether the bluetooth broadcast information is transmitted by the smart hardware of the target application through the information feature in the bluetooth broadcast information by the determiningunit 13.
The invokingunit 14 is configured to trigger and invoke a second key of the target application, which is preset in a system file and corresponds to the first key, if the determiningunit 13 determines that the bluetooth broadcast information is sent by the intelligent hardware of the target application;
in the embodiment of the invention, the second key corresponding to the first key of the target application can be written into a system file in the mobile terminal in advance, so that the second key of the decrypted target application is preset in the mobile terminal system, the target application does not need to be opened in the mobile terminal, the key for decrypting the Bluetooth broadcast information is called, the operations that when the mobile terminal searches for intelligent hardware, a user opens the target application and clicks a Bluetooth searching button of an application interface to call the Bluetooth decryption key of the target application are reduced, and the simplification of the user operation is realized;
the first key and the second key are two keys corresponding to the target application, one first key corresponds to one second key, and the two keys can be used for encrypting and decrypting each other. The first secret key is a private key of the target application, and the second secret key is a public key of the target application; or, the first secret key is a public key of the target application, and the second secret key is a private key of the target application. In a key pair, the public key is public and does not need to be kept secret, while the private key is held by the individual himself and must be kept in good care and care for the confidentiality. If data is encrypted with one of the keys, only the corresponding key can be decrypted. If decryption of data is possible with one of the keys, the data must be encrypted with the corresponding key.
Thedecryption unit 15 is configured to decrypt the bluetooth broadcast information according to the second key called by the calling unit, so as to obtain description information of the intelligent hardware;
and description information of the intelligent hardware such as the name of the intelligent hardware and the like.
Thedetection unit 16 is used for detecting a Bluetooth device list display instruction;
and thedisplay unit 17 is configured to display the bluetooth device list with the description information when the detection unit detects a bluetooth device list display instruction.
Fig. 4 shows an alternative structure of the determiningunit 13 provided in the embodiment of the present invention, where the determiningunit 13 includes:
a determiningsubunit 131, configured to determine whether an identifier of a target application exists in the bluetooth broadcast information;
the determiningunit 132 determines that the bluetooth broadcast information is sent by the smart hardware of the target application if the determining subunit determines that the identifier of the target application exists in the bluetooth broadcast information, and determines that the bluetooth broadcast information is not sent by the smart hardware of the target application if the identifier of the target application does not exist in the bluetooth broadcast information.
Fig. 5 shows an alternative structure of the detectingunit 16 provided in the embodiment of the present invention, where the detectingunit 16 includes:
the first detectingsubunit 161 is configured to determine that a bluetooth device list display instruction is detected if an instruction to enter a bluetooth setting page from the system setting interface is detected; or the like, or, alternatively,
a second detectingsubunit 162, configured to, if the trigger operation of the shortcut operation for displaying the bluetooth device list is detected, determine that a bluetooth device list display instruction is detected, or,
a third detectingsubunit 162, configured to determine that a bluetooth device list display instruction is detected if a triggering operation on a bluetooth device list icon is detected;
thedisplay unit 17 includes:
the first display subunit is used for displaying the first list on the Bluetooth setting page;
the second display subunit is used for displaying the second list on the Bluetooth setting page;
the first list shows description information of hardware equipment of a target application, and the second list shows information of Bluetooth equipment searched based on a standard Bluetooth protocol.
Further comprising:
the writing unit is used for writing a second key corresponding to the first key in a Bluetooth configuration file of the system in advance;
theretrieval unit 14 includes: and the first calling subunit is used for triggering and calling out a second key which is written in advance and corresponds to the first key from the Bluetooth configuration file of the system.
Fig. 6 shows an alternative structure of thedisplay unit 17 provided by the embodiment of the present invention, wherein thedisplay unit 17 includes:
a calculatingunit 171, configured to calculate a distance between the intelligent hardware decrypted to the description information and the mobile terminal;
and a third displayingsubunit 172, configured to display, in the bluetooth device list, the intelligent hardware with the decrypted description information, where the distance of the intelligent hardware meets the preset connection distance.
Fig. 7 is a schematic structural diagram of another bluetooth device list display apparatus according to the disclosure, where the bluetooth device list display apparatus is applied to a mobile terminal, such as a smart phone and a tablet computer. The device specifically comprises the following units:
abluetooth searching unit 11 for maintaining a bluetooth searching state;
afirst receiving unit 12 for receiving bluetooth broadcast information;
the judgingunit 13 is configured to judge whether the bluetooth broadcast information is sent by the intelligent hardware of the target application when the receiving unit receives the bluetooth broadcast information; the Bluetooth broadcast information sent by the intelligent hardware of the target application is encrypted by a first secret key of the target application;
the invokingunit 14 is configured to trigger and invoke a second key of the target application, which is preset in a system file and corresponds to the first key, when the determining unit determines that the bluetooth broadcast information is sent by the intelligent hardware of the target application;
thedecryption unit 15 is configured to decrypt the bluetooth broadcast information according to the second key called by the calling unit, so as to obtain description information of the intelligent hardware;
thedetection unit 16 is used for detecting a Bluetooth device list display instruction;
thedisplay unit 17 is used for displaying the bluetooth device list with the description information when the detection unit detects a bluetooth device list display instruction;
asecond receiving unit 18 for receiving a user selection instruction;
and theconnection unit 19 is configured to select the intelligent hardware needing to be connected from the bluetooth device list according to the user selection instruction received by the second receiving unit to perform bluetooth connection.
The embodiment of the invention also discloses a mobile terminal, such as a smart phone, a tablet computer and other devices, which is not limited in any way. The method comprises the following steps: a Bluetooth chip and a processor;
the Bluetooth chip is used for maintaining the Bluetooth searching state of the Bluetooth chip;
the processor is used for scanning Bluetooth broadcast information in the Bluetooth chip and judging whether the Bluetooth broadcast information is sent by the intelligent hardware of the target application, wherein the Bluetooth broadcast information sent by the intelligent hardware of the target application is encrypted by a first secret key of the target application; if yes, triggering and calling a second key of the target application corresponding to the first key preset in the system file; decrypting the Bluetooth broadcast information according to the second key to obtain the description information of the intelligent hardware; the first key and the second key are two keys corresponding to the target application; and when a Bluetooth device list display instruction is detected, displaying the Bluetooth device list with the description information.
In summary, the following steps:
the invention discloses a method and a device for displaying a Bluetooth device list and a mobile terminal, wherein a second secret key corresponding to a first secret key of a target application is preset in a system file, so that after the mobile terminal receives Bluetooth broadcast information sent by intelligent hardware, the mobile terminal can directly call the second secret key preset in the system file on the internal layer of a system, the Bluetooth broadcast information is decrypted to obtain description information of the intelligent hardware, and the Bluetooth device list with the description information is displayed when a Bluetooth device list display instruction is detected; it can be seen that, in the embodiment of the present invention, a user does not need to open a target application any more, and manually triggers a bluetooth scan button of an application interface to form search of a bluetooth device and display of a bluetooth device list, but can decrypt bluetooth broadcast information at an internal level of a system to complete scanning of a hardware device of the target application, thereby realizing display of description information of the hardware device of the target application in the bluetooth device list; meanwhile, the embodiment of the invention can enable the intelligent hardware to be rapidly discovered by the mobile terminal, thereby effectively improving the connection rate of the intelligent hardware.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

the processor is used for scanning Bluetooth broadcast information in a Bluetooth chip and determining whether the Bluetooth broadcast information is sent by intelligent hardware of a target application according to whether the Bluetooth broadcast information has an identification of the target application, wherein the Bluetooth broadcast information sent by the intelligent hardware of the target application is encrypted by a first secret key of the target application, the target application is an instant messaging application, and the intelligent hardware of the target application is intelligent hardware which is developed based on the target application and has an agreement with the target application; if the Bluetooth broadcast information contains the identification of the target application, triggering and calling a preset second key of the target application corresponding to the first key in a system file, wherein the second key corresponding to the first key of the target application is written into the system file in the mobile terminal in advance; decrypting the Bluetooth broadcast information according to the second key to obtain the description information of the intelligent hardware; the first key and the second key are two keys corresponding to the target application; and when a Bluetooth device list display instruction is detected, displaying the Bluetooth device list with the description information.
CN201510796108.0A2015-11-182015-11-18Bluetooth device list display method and device and mobile terminalActiveCN105430601B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510796108.0ACN105430601B (en)2015-11-182015-11-18Bluetooth device list display method and device and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510796108.0ACN105430601B (en)2015-11-182015-11-18Bluetooth device list display method and device and mobile terminal

Publications (2)

Publication NumberPublication Date
CN105430601A CN105430601A (en)2016-03-23
CN105430601Btrue CN105430601B (en)2020-02-11

Family

ID=55508473

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510796108.0AActiveCN105430601B (en)2015-11-182015-11-18Bluetooth device list display method and device and mobile terminal

Country Status (1)

CountryLink
CN (1)CN105430601B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107105398A (en)*2017-05-252017-08-29北京京东尚科信息技术有限公司A kind of method and apparatus of communication
CN108551526A (en)*2018-04-192018-09-18深圳市沃特沃德股份有限公司Calculate the method and device of distance
WO2021114264A1 (en)*2019-12-132021-06-17深圳市伊欧乐科技有限公司Data transmission method and device, and computer-readable storage medium
CN112929860B (en)*2021-01-212023-09-19维沃移动通信有限公司Bluetooth connection method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103780285A (en)*2012-10-232014-05-07中兴通讯股份有限公司Method for broadcasting data through Bluetooth and Bluetooth devices
CN104320830A (en)*2014-10-202015-01-28小米科技有限责任公司Wireless device list display method and apparatus, wireless device and broadcasting method thereof
CN104486716A (en)*2014-12-052015-04-01广东欧珀移动通信有限公司Method and device for showing bluetooth name
CN104735607A (en)*2015-02-262015-06-24广东欧珀移动通信有限公司Data transmission method, mobile terminal and system
CN105007257A (en)*2015-05-082015-10-28牛力伟On-site identity verification method based on bluetooth technology and on-site identity verification system based on bluetooth technology
CN105007564A (en)*2015-08-112015-10-28深圳蓝奥声科技有限公司Bluetooth intelligent connection method, device and system based on cloud authorization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103780285A (en)*2012-10-232014-05-07中兴通讯股份有限公司Method for broadcasting data through Bluetooth and Bluetooth devices
CN104320830A (en)*2014-10-202015-01-28小米科技有限责任公司Wireless device list display method and apparatus, wireless device and broadcasting method thereof
CN104486716A (en)*2014-12-052015-04-01广东欧珀移动通信有限公司Method and device for showing bluetooth name
CN104735607A (en)*2015-02-262015-06-24广东欧珀移动通信有限公司Data transmission method, mobile terminal and system
CN105007257A (en)*2015-05-082015-10-28牛力伟On-site identity verification method based on bluetooth technology and on-site identity verification system based on bluetooth technology
CN105007564A (en)*2015-08-112015-10-28深圳蓝奥声科技有限公司Bluetooth intelligent connection method, device and system based on cloud authorization

Also Published As

Publication numberPublication date
CN105430601A (en)2016-03-23

Similar Documents

PublicationPublication DateTitle
US10623963B2 (en)Proactive security for mobile devices
US11934505B2 (en)Information content viewing method and terminal
US10880736B2 (en)Method and apparatus for transmitting and receiving encrypted message between terminals
US20150058972A1 (en)Method And Apparatus For Accessing An Application Program
CN109672523B (en)Information encryption method, device and equipment based on filter and readable storage medium
US20160301530A1 (en)Sensitive operation verification method, apparatus, and system
EP3716184A1 (en)Method and apparatus for paying bus fare, and device
CN103095457A (en)Login and verification method for application program
CN105049410A (en)Method, device and system for logging in account
CN105430601B (en)Bluetooth device list display method and device and mobile terminal
CN111628871B (en)Block chain transaction processing method and device, electronic equipment and storage medium
US9426130B2 (en)Methods, devices and systems for anti-counterfeiting authentication
CN107615294A (en)A kind of identifying code short message display method and mobile terminal
CN112243000B (en)Application data processing method and device, computer equipment and storage medium
CN104573548A (en)Information encryption and decryption methods and devices and terminal
CN108900553B (en) A communication method, apparatus and computer-readable storage medium
CN109547196B (en) A kind of realization method of watch token system, watch token system and device
CN109544732B (en)Electronic lock connection method and device, electronic equipment and storage medium
EP3667530A1 (en)Secure access to encrypted data from a user terminal
JP6307610B2 (en) Data falsification detection device, data falsification detection method, and program
US9854444B2 (en)Apparatus and methods for preventing information disclosure
CN106161365B (en)Data processing method and device and terminal
CN106650416A (en)Password setting and decrypting methods and terminal
CN106254367B (en)Remote control method and system based on double network card intermediate server
CN114637627B (en) Data recovery method and system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp