CN117135764A - Information processing method, device and storage medium - Google Patents

Information processing method, device and storage medium Download PDF

Info

Publication number
CN117135764A
CN117135764A CN202210557844.0A CN202210557844A CN117135764A CN 117135764 A CN117135764 A CN 117135764A CN 202210557844 A CN202210557844 A CN 202210557844A CN 117135764 A CN117135764 A CN 117135764A
Authority
CN
China
Prior art keywords
connection
equipment
bluetooth
connection mode
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210557844.0A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210557844.0A priority Critical patent/CN117135764A/en
Publication of CN117135764A publication Critical patent/CN117135764A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses an information processing method, an information processing device and a storage medium, wherein the method can be applied to the field of communication and comprises the following steps: receiving a user confirmation request message sent by a second device which is not connected with the first device yet; if the connection mode used for establishing the Bluetooth connection between the first device and the second device is a preset connection mode, it is determined that the connection prompt information is not displayed on the user interface UI after the user confirmation request message is received. If the connection mode between the first device and the second device is the preset connection mode, the connection prompt information does not need to be displayed on the UI, whether Bluetooth connection between the first device and the second device is allowed or not is determined without detecting user input of the connection prompt information by a user, and a user confirmation response message for confirming the connection is directly sent to the second device.

Description

Information processing method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an information processing method, an information processing device, and a storage medium.
Background
With the continuous development of electronic technology, particularly the rapid development of bluetooth technology, more and more devices have bluetooth functions, and short-distance data transmission can be realized through the bluetooth functions.
Before carrying out data transmission through bluetooth, need carry out bluetooth connection earlier, bluetooth connection flow among the prior art is comparatively complicated, and the time that the time spent is longer when leading to two equipment to carry out bluetooth connection is felt poorly.
Disclosure of Invention
The embodiment of the application provides an information processing method, an information processing device and a storage medium.
In a first aspect, an information processing method provided by an embodiment of the present application is applied to a first device, where the method includes:
receiving a user confirmation request message sent by a second device which is not connected with the first device yet;
if the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is a preset connection mode, determining that connection prompt information is not displayed on a User Interface (UI) after receiving the user confirmation request message;
transmitting a user acknowledgement response message to the second device indicating acknowledgement of the connection;
and displaying the connected prompt information.
Optionally, before the displaying the connected prompt information, the method further includes:
Determining whether a connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode;
before the displaying of the connected prompt information, the method further comprises:
and setting the connection state between the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment to be connected according to the user confirmation request message sent by the second equipment.
Optionally, the setting the connection state between the first device and the second device in the bluetooth protocol stack of the first device to be connected includes:
if the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode, setting the binding attribute as temporary binding;
and when the binding attribute is the temporary binding, modifying the connection state between the first device and the second device in the Bluetooth protocol stack of the first device to be connected through a binding transfer function.
Optionally, the determining whether the connection mode used for establishing the bluetooth connection between the first device and the second device is a predetermined connection mode includes:
determining whether a broadcast message sent by the second device monitored on a bluetooth broadcast channel contains predetermined information;
And determining whether a connection mode used by Bluetooth connection between the first equipment and the second equipment is the preset connection mode according to whether the broadcast message contains the preset information.
Optionally, the predetermined information includes: and the equipment identification information indicates that the second equipment and the first equipment have a preset association relation.
Optionally, the indicating that the second device has a preset association relationship with the first device includes at least one of the following:
indicating that the second device and the first device are devices manufactured by the same manufacturer;
indicating that the second device and the first device are vendor-generated devices;
indicating that the second device and the first device agree on a device adopting the predetermined connection mode.
In a second aspect, an embodiment of the present application provides an information processing apparatus, applied to a first device, including:
the receiving module is used for receiving a user confirmation request message sent by a second device which is not connected with the first device yet;
the first display module is used for determining that connection prompt information is not displayed on a User Interface (UI) after receiving the user confirmation request message if a connection mode used for establishing Bluetooth connection between the first device and the second device is a preset connection mode;
A first sending module, configured to send a user acknowledgement response message indicating that connection is acknowledged to the second device;
and the second display module is used for displaying the connected prompt information.
Optionally, the apparatus further comprises:
the determining module is used for determining whether a connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode;
before the displaying of the connected prompt information, the device further comprises:
and the setting module is used for setting the connection state between the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment as connected according to the user confirmation request message sent by the second equipment.
Optionally, the setting module is configured to:
if the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode, setting the binding attribute as temporary binding;
and when the binding attribute is the temporary binding, modifying the connection state between the first device and the second device in the Bluetooth protocol stack of the first device to be connected through a binding transfer function.
Optionally, the determining module includes:
A first determining unit, configured to determine whether a broadcast message sent by the second device monitored on a bluetooth broadcast channel includes predetermined information;
and the second determining unit is used for determining whether the connection mode used by Bluetooth connection between the first equipment and the second equipment is the preset connection mode according to whether the broadcast message contains the preset information.
Optionally, the predetermined information includes: and the equipment identification information indicates that the second equipment and the first equipment have a preset association relation.
Optionally, the indicating that the second device has a preset association relationship with the first device includes at least one of the following:
indicating that the second device and the first device are devices manufactured by the same manufacturer;
indicating that the second device and the first device are vendor-generated devices;
indicating that the second device and the first device agree on a device adopting the predetermined connection mode.
In a third aspect, embodiments of the present application provide a non-transitory computer-readable storage medium, which when executed by a processor of a computer, enables the computer to perform an information processing method as described above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, if the connection mode between the first equipment and the second equipment is the preset connection mode, the connection prompt information does not need to be displayed on the UI, whether the PIN code input by the user based on the connection prompt information is correct or not does not need to be detected, bluetooth connection is allowed to be established between the first equipment and the second equipment after the PIN code is determined to be correct, and a user confirmation response message for confirming the connection is directly sent to the second equipment.
In addition, when the first device and the second device are connected by using the predetermined connection mode, pairing prompt information is not displayed on the UI, that is, PIN code input is not performed, which may cause that the user cannot acquire the connection progress. Based on the connection, in the embodiment of the application, after the first device sends the user confirmation response message indicating confirmation of connection to the second device, the connected prompt information is displayed on the UI, so that the user can acquire the connection progress of the first device and the second device in time, and the user experience is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart illustrating a PIN code connection manner, according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of information processing according to an exemplary embodiment;
fig. 3 is a flow chart illustrating a bluetooth connection using a predetermined connection scheme in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a Bluetooth connection that is not made using a predetermined connection scheme, according to an exemplary embodiment;
FIG. 5 is a schematic diagram of connection hints displayed on a UI according to an exemplary embodiment;
FIG. 6 is a schematic diagram of another connection hint information displayed on a UI shown according to an exemplary embodiment;
FIG. 7 is a flowchart illustrating a Bluetooth connection using SSP connection, according to an example embodiment;
fig. 8 is a flowchart illustrating a bluetooth connection using a predetermined connection scheme in accordance with an exemplary embodiment;
fig. 9 is a block diagram of an information processing apparatus according to an exemplary embodiment;
fig. 10 is a schematic structural view of a first apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus consistent with aspects of the application as detailed in the accompanying claims.
Referring to fig. 1, in the related art, a specific procedure of performing bluetooth connection by using a connection manner of a personal identification number (Personal identification number, PIN) between a first device and a second device is as follows:
s101: transmitting a broadcast message on a bluetooth broadcast channel after detecting that at least a portion of the second device leaves the charging box;
s102: the first device sends an ACL link establishment request to the second device after monitoring a broadcast message sent by the second device on a broadcast channel;
s103: receiving first response information sent by second equipment, wherein the first response information is used for indicating that the second equipment agrees to establish an ACL link with the first equipment or that the second equipment refuses to establish the ACL link with the first equipment;
S104: after the first equipment and the second equipment establish an ACL link, checking whether the first equipment and the second equipment store a connection key corresponding to the second equipment or not, and if not, sending rejection response information to the second equipment, wherein the rejection response information is used for indicating that the first equipment does not store the connection key corresponding to the second equipment;
s105: receiving an input/output (I/O) capability acquisition request sent by the second equipment based on the rejection response information;
s106: transmitting the I/O capability of the second device to the second device;
s107: receiving the I/O capability of the second device sent by the second device;
s108: determining the type of a user confirmation request message according to the I/O capability of the first equipment and the second equipment, and receiving the user confirmation request message sent by the second equipment;
s109: displaying a PIN code input box on a User Interface (UI), when detecting the PIN code input by a User, verifying whether the PIN code is a PIN code corresponding to the second equipment, and if so, sending a User confirmation response message to the second equipment;
s110: and receiving the connected response information sent by the second equipment.
S111: and generating a connection key and displaying the connected prompt information on the UI.
According to the connection process, when the first equipment and the second equipment are connected in a PIN (personal identification number) connection mode, at least one equipment can display connection prompt information to a user in the Bluetooth connection process so as to prompt the user to input the PIN, and when the PIN input by the user is received, the PIN is stored locally. Because the user needs to display the input interface of the PIN code and wait for the user to input the PIN code, the Bluetooth connection time is prolonged, and the Bluetooth connection process of the two devices is complex. In addition, after the PIN code is locally stored, the PIN code can be stolen by a third party, and the risk of disclosure is increased.
Based on this, the embodiment of the application provides an information processing method, which specifically comprises the following steps:
referring to fig. 2, an embodiment of the present application provides an information processing method, applied to a first device, including:
s201: receiving a user confirmation request message sent by a second device which is not connected with the first device yet;
s202: if the connection mode used for establishing Bluetooth connection between the first device and the second device is a preset connection mode, determining that connection prompt information is not displayed on a User Interface (UI) after receiving the User confirmation request message;
s203: transmitting a user acknowledgement response message to the second device indicating acknowledgement of the connection;
s204: and displaying the connected prompt information.
The first device may be various electronic devices including a bluetooth communication chip and a display module, for example, the first device may be a smart phone including a bluetooth communication chip, a tablet computer, a notebook computer, a vehicle-mounted terminal, a wearable device including a display screen, and the like.
The second device may be the same type of device as the first device, for example, a smart phone including a bluetooth communication chip, a tablet computer. In addition, the second device may also be a bluetooth device that does not include a display module, such as a bluetooth headset, a bluetooth speaker, virtual Reality (VR) glasses, and so on.
Illustratively, a bluetooth connection established between the first device and the second device may be used for file transfer. The file includes, but is not limited to: various multimedia information files, illustratively audio files, video files and/or picture files.
For example, the first device sends the audio file to the second device over a bluetooth connection, and audio is output by the second device based on the received audio file.
For another example, the first device sends the video file to the second device via a bluetooth connection, and video is played by the second device based on the received video file.
The preset connection mode is as follows: the connection prompt information does not need to be displayed on the UI, and the connection mode of whether to connect with the second device is determined based on the connection prompt information acted on by the user.
The predetermined connection may be, for example, a quick connection, such as a millet quick connection, a chinese quick connection, or the like.
In the embodiment of the application, if the connection mode between the first equipment and the second equipment is the preset connection mode, the connection prompt information does not need to be displayed on the UI, whether the PIN code input by the user based on the connection prompt information is correct or not does not need to be detected, bluetooth connection is allowed to be established between the first equipment and the second equipment after the PIN code is determined to be correct, and a user confirmation response message for confirming the connection is directly sent to the second equipment.
In addition, when the first device and the second device are connected by using the predetermined connection mode, pairing prompt information is not displayed on the UI, and PIN code is not input, which may cause that the user cannot acquire the connection progress. Based on the connection, in the embodiment of the application, after the first device sends the user confirmation response message indicating confirmation of connection to the second device, the connected prompt information is displayed on the UI, so that the user can acquire the connection progress of the first device and the second device in time, and the user experience is further improved.
In one embodiment, after receiving a user confirmation request message sent by a second device that is not yet connected to the first device, the first device determines whether a connection manner used for establishing a bluetooth connection between the first device and the second device is a predetermined connection manner, specifically as follows:
the first equipment monitors broadcast messages on a Bluetooth broadcast channel;
determining whether a broadcast message sent by a second device listening on a bluetooth broadcast channel contains predetermined information;
and determining whether a connection mode used by Bluetooth connection between the first device and the second device is a preset connection mode according to whether the broadcast message contains preset information.
An embodiment of the present disclosure provides an information processing method, executable by a second device, including:
detecting whether the second device has Bluetooth connection requirements;
and after detecting the Bluetooth connection requirement of the second device, sending a broadcast message on a Bluetooth broadcast channel.
The detecting whether the second device has bluetooth connection requirements includes, but is not limited to, at least one of:
detecting whether at least part of the second device leaves the charging cartridge;
detecting whether the second device is powered on;
and detecting whether a Bluetooth connection event built in the second device is triggered.
Illustratively, the second device may be a bluetooth speaker and/or a bluetooth headset, etc.
When the second device is a Bluetooth headset, after the charging box is opened, a part of the Bluetooth headset moves from the charging box to the outside of the charging box, and the second device is determined to have Bluetooth connection requirements.
When the second device is a Bluetooth sound box, the plug of the Bluetooth sound box is connected to the socket, and the second device is determined to have Bluetooth connection requirements.
When the second equipment is a Bluetooth sound box, a power button of the Bluetooth sound box detects an opening operation and the like.
In an embodiment of the disclosure, the broadcast message sent by the second device on the bluetooth broadcast channel includes predetermined information, where the predetermined information may be used by the first device to determine that a bluetooth connection may be established with the second device using a preset connection manner. The predetermined information may be any of a variety of information that may be used by the first device to determine whether to make a bluetooth connection with the second device using a predetermined connection scheme.
In an exemplary embodiment, after the first device monitors the broadcast message sent by the at least one device on the broadcast channel, the second device may determine, from the broadcast signals sent by the at least one device, a device corresponding to the broadcast signal with the strongest signal strength, and use the device as the second device. Then, it is detected whether the broadcast message sent by the second device contains predetermined information.
The predetermined information may include device identification information indicating that the first device and the second device have a preset association relationship.
The device identification information may identify the entire second device, or may identify a bluetooth chip included in the second device.
The device identification information may be a manufacturer identification of a manufacturer that produces the device, or a manufacturer identification of a manufacturer that produces the bluetooth chip, or other device identification information, which is not limited in the embodiment of the present application.
For example, when the second device is a millet quick connect device, an "AA FD" field may be included in the broadcast message.
In other embodiments, the predetermined information may be information decoded from other fields. For example, the broadcast message includes a device number of the second device, where the device number includes a code segment corresponding to the vendor and/or the device type, and thus the predetermined information may be: information decoded by the coding section corresponding to the manufacturer and/or the equipment type.
When the broadcast message sent by the second device contains the predetermined information, it is indicated that the first device and the second device have a preset association relationship, and at this time, the first device may perform bluetooth connection with the second device using a predetermined connection manner. The predetermined connection mode may be a quick connection mode, such as a quick connection of millet.
When the broadcast message sent by the second device does not contain the predetermined information, the first device and the second device are indicated to have no preset association relation, and the first device can carry out Bluetooth connection with the second device without using a predetermined connection mode.
The first device may make a bluetooth connection with the second device using a pairing mode of secure simple pairing (Secure Simple Pairing, SSP) in case the first device determines not to make a bluetooth connection with the second device using a predetermined connection mode. Other available bluetooth connection methods may be used to connect with the second device, which is not limited in the embodiment of the present application.
I.e. the predetermined connection means in the present application does not at least comprise the secure simple pairing means described above.
In addition, the connection mode in the embodiment of the application does not include a connection mode of PIN code pairing, that is, in the process of connecting the first device and the second device, there is no process of inputting the PIN code or performing PIN code interaction.
The preset association relationship between the second device and the first device includes various situations, and the following several optional embodiments are provided by way of example:
alternative one: the second equipment and the first equipment are produced by the same manufacturer;
for example, smart phones, bluetooth headsets, and/or smart televisions, etc. manufactured by the same manufacturer.
And (2) selecting the following steps: the second device and the first device are devices generated by a vendor;
option three: the second device and the first device jointly agree on a device adopting a preset connection mode.
If one or more of the above selectable items are satisfied, the second device may be considered to have a preset association relationship with the first device.
Of course, the above is merely an example of the device association relationship between the first device and the second device, and the specific implementation is not limited to any of the above examples.
When the first device and the second device have a preset association relationship, the first device and the second device are trusted devices, so that Bluetooth connection can be performed in a preset connection mode without confirmation by a user, connection flow is simplified, bluetooth connection duration is shortened, and user experience is improved.
The first device, after determining to connect with the second device using the predetermined connection, may receive an asynchronous connectionless (asynchronous connection less, ACL) link setup request sent by the second device. Accordingly, after receiving the ACL link establishment request, the second device sends first response information to the first device based on the ACL link establishment request. As can be seen from the above description, the first response information is used to indicate that the second device agrees to establish an ACL link with the first device or that the second device refuses to establish an ACL link with the first device.
When the first response information received by the first equipment is that the second equipment agrees to establish an ACL link with the first equipment, the ACL link is established with the second equipment;
when the first response information received by the first device is that the second device refuses to establish the ACL link with the first device, the connection flow is ended.
If the second device agrees to establish an ACL link with the first device, after establishing the ACL link, the second device transmits a user confirmation request message to the first device, and accordingly, the first device receives the user confirmation request message transmitted by the second device.
Referring to fig. 3, S301: when the determined connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is a preset connection mode;
s302: the first equipment receives a user confirmation request message sent by the second equipment;
s303: the first device does not display connection prompt information on the user interface UI after receiving the user confirmation request message, but directly transmits a user confirmation response message indicating confirmation of the connection to the second device.
That is, if the connection manner used by the first device and the second device to establish the bluetooth connection is a predetermined connection manner, it is indicated that the first device and the second device have a preset association relationship, that is, the first device and the second device are devices that trust each other. Therefore, after receiving the user confirmation request message sent by the second device, the first device may not generate the connection prompt information, and the default user agrees that the first device and the second device perform bluetooth connection. Based on this, the first device may send a user confirmation response message agreeing to the connection directly to the second device.
Because the first device does not display the connection prompt information on the UI in the process of adopting the preset connection mode to connect, the first device does not need to generate the connection prompt information, and the occupation of the computing resource of the first device is reduced.
In addition, as the connection prompt information is not displayed on the UI, the user does not need to wait for confirmation of the connection prompt information, the Bluetooth connection time is shortened, and the user experience is improved.
In one embodiment, the information processing method further includes:
s304: if the connection mode used for establishing the Bluetooth connection between the first device and the second device is a preset connection mode, setting the connection state between the first device and the second device in the Bluetooth protocol stack of the first device as connected according to the user confirmation request message sent by the second device.
As can be seen from the above description, in the case where the first device and the second device adopt a predetermined connection manner, the first device defaults to allow the user to make bluetooth connection with the second device. Therefore, after receiving the user confirmation request message sent by the second device, the first device may directly set the connection state between the first device and the second device in the bluetooth protocol stack of the first device to be connected, so as to indicate that the first device completes the bluetooth connection procedure with the second device.
In this embodiment, the connection state between the first device and the second device in the bluetooth protocol stack of the first device is modified after receiving the user acknowledgement message, and the user request message is sent under the condition that the second device determines to connect with the first device, so that the first device connects after receiving the user acknowledgement message sent by the second device, and accuracy of the connection state in the bluetooth protocol stack of the first device can be ensured.
In other embodiments, if the connection mode used by the first device is determined to be the preset connection mode, the connection state in the bluetooth protocol stack of the first device may be directly modified to be connected, instead of being modified after receiving the user acknowledgement message sent by the second device. If the connection state is changed to connected in the Bluetooth protocol stack, and then the user confirmation message is received, the user confirmation response message indicating the connection is directly sent to the second device according to the connected connection state.
In one embodiment, the information processing method further includes:
and when the connection state of the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment is connected, displaying the connected prompt information. Based on the connected prompt information, the user can know that the first device and the second device have established Bluetooth connection in time, namely, the data which needs to be sent by the user in the first device can be sent to the second device through the established Bluetooth connection, or the data sent by the second device can be received, so that the user experience is improved.
In one embodiment, the information processing method further includes:
s305: setting a binding attribute to be a TEMPORARY binding (bind_type_temporary) when a connection mode used for establishing a bluetooth connection between the first device and the second device is a predetermined connection mode;
when the binding attribute is temporary binding, the connection state between the first device and the second device in the Bluetooth protocol stack of the first device is changed to be connected through the binding transfer function.
In one embodiment, the information processing method further includes:
when the first device detects that the connection state between the first device and the second device in the Bluetooth protocol stack is connected, a key pair comprising a first public key and a first private key is generated, and the first public key is sent to the second device.
Similarly, the first device may also receive a second public key sent by the second device and generate a connection key based on the second public key. The connection key is used to encrypt data when the first device is transmitting data to the second device.
After the first device generates the connection key, the first device can encrypt the data sent to the second device by using the connection key, so that the security of data transmission is improved.
In one embodiment, after the first device generates the connection key, the first device may detect its own binding attribute, and when its own binding attribute is a temporary binding, the generated connection key is not stored locally.
Because the first device does not locally store the connection key, not only is the occupation of the storage space in the first device reduced, but also a third party cannot acquire the connection key by attacking the storage system of the first device, and the risk of leakage of the connection key is reduced.
In the connection process of the first device and the second device in the embodiment of the application, the Bluetooth of the first device omits a confirmation process of confirming whether the user agrees to connect with the first device and the second device and a process of exchanging the PIN code according to the protocol stack layer, but directly defaults the first device to agree to connect with the second device, thereby simplifying the connection process and shortening the connection time.
In addition, in the embodiment of the application, the second device can play the audio data sent by the first device and send the audio data to the first device by recognizing the binding (Bond) which does not need to prevent the attack (MITM Protection not required) of the third person as the bound (bound) state, so that the operations of listening to songs and/or answering calls and the like by using another device based on Bluetooth are realized by adopting the predetermined connection mode of the embodiment of the application.
Referring to fig. 4, S401: when the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is not a preset connection mode;
s402: receiving a user confirmation request message sent by the second equipment;
s403, displaying the connection prompt information on a UI according to the user confirmation request message;
s404: detecting user input acting on connection prompt information;
s405: and sending a user confirmation response message to the second equipment according to the user input aiming at the connection prompt information.
For example, after receiving the user confirmation request message sent by the second device, the first device may generate connection prompt information based on the user confirmation request message, and display the connection prompt information on the UI.
Referring to fig. 5 to 6, the connection prompt information displayed on the UI may be a box including two options of "connect" and "do not connect", or may be a box including a connection code and an input box. Other connection prompt information may also be used, which is not limited in the embodiment of the present application.
For example, connection prompt information including a box of two options of "connect" and "do not connect" is displayed on the UI. At this time, the first device may send a user confirmation response message to the second device according to the detected option of the user by triggering "connect" or "do not connect".
If the user-triggered bullet frame is detected to be connected, the first device sends a user confirmation acceptance message to the second device, wherein the user confirmation acceptance message agrees that the first device and the second device are connected in Bluetooth.
S406: when the user input indicates confirmation of connection, a connection state between the first device and the second device in the bluetooth protocol stack of the first device is set to connected.
If the user-triggered popup frame is 'not connected', the first device sends a user confirmation rejection message to the second device, wherein the user confirmation rejection message does not agree that the first device and the second device are in Bluetooth connection. The second device ends the connection flow after receiving the user confirmation response message.
If the user input indicates that the connection is not connected, the connection state is maintained as the disconnection state in the Bluetooth protocol stack of the first device.
In one embodiment, the information processing method further includes:
s407: if the connection mode used for establishing the Bluetooth connection between the first device and the second device is not the preset connection mode, the binding attribute is set as formal binding (BOND_TYPE).
If the binding attribute is set to be formal binding, after detecting a confirmation instruction for the connection prompt information, an operating system or an application of the first device will call a binding transfer function (btm_sec_bond_by_transport), and the called binding transfer function will modify the connection state between the first device and the second device in the bluetooth protocol stack of the first device to be connected.
Referring to fig. 7, in an embodiment, if a connection manner used for establishing a bluetooth connection between a first device and a second device is not a predetermined connection manner, an SSP connection procedure is taken as an example, and a connection procedure for establishing a bluetooth connection between the first device and the second device is described specifically as follows:
s701: after monitoring a broadcast message sent by the second device on a broadcast channel, sending an ACL link establishment request to the second device;
s702: receiving first response information sent by second equipment, wherein the first response information is used for indicating that the second equipment agrees to establish an ACL link with the first equipment or that the second equipment refuses to establish the ACL link with the first equipment;
if the second device agrees to establish an ACL link with the first device, step S703 is performed, and if the second device refuses to establish an ACL link with the first device, the connection flow is ended.
S703: after the first device and the second device establish the ACL link, checking whether the ACL link stores the connection key corresponding to the second device, if so, executing S704, and if not, executing S705;
s704: establishing a Bluetooth connection directly with the second device;
s705: transmitting refusal response information to the second equipment, wherein the refusal response information is used for indicating that the connection key corresponding to the second equipment is not stored in the first equipment;
S706: receiving an input/output (I/O) capability acquisition request sent by the second equipment based on the rejection response information;
s707: transmitting the I/O capability of the second device to the second device;
s708: receiving the I/O capability of the second device sent by the second device;
s709: determining the type of a user confirmation request message according to the I/O capability of the first equipment and the second equipment, and receiving the user confirmation request message sent by the second equipment;
s710: under the condition that the broadcast message does not contain the preset information, according to the type of the User confirmation request message, the connection prompt information is displayed on a User Interface (UI);
s711: when the consent connection input acting on the connection prompt information is detected, setting the connection state between the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment to be connected, and sending a user confirmation response message to the second equipment;
s712: a connection key between the first device and the second device is generated and stored locally.
Referring to fig. 8, in another embodiment, if a connection manner used for establishing a bluetooth connection between a first device and a second device is a predetermined connection manner, a connection procedure for establishing a bluetooth connection between the first device and the second device is described as follows:
S801: after monitoring a broadcast message sent by the second device on a broadcast channel, sending an ACL link establishment request to the second device;
s802: receiving first response information sent by second equipment, wherein the first response information is used for indicating that the second equipment agrees to establish an ACL link with the first equipment or that the second equipment refuses to establish the ACL link with the first equipment;
if the second device agrees to establish an ACL link with the first device, step S803 is executed, and if the second device refuses to establish an ACL link with the first device, the connection flow is ended.
S803: after the first device and the second device establish the ACL link, checking whether the ACL link stores the connection key corresponding to the second device, if so, executing S804, and if not, executing S805;
s804: establishing a Bluetooth connection directly with the second device;
s805: transmitting refusal response information to the second equipment, wherein the refusal response information is used for indicating that the connection key corresponding to the second equipment is not stored in the first equipment;
s806: receiving an I/O capability acquisition request sent by the second equipment based on the refusal response information;
s807: transmitting the I/O capability of the second device to the second device;
s808: receiving the I/O capability of the second device sent by the second device;
S809: determining the type of a user confirmation request message according to the I/O capability of the first equipment and the second equipment, and receiving the user confirmation request message sent by the second equipment;
s810: under the condition that the broadcast message comprises the preset information, directly sending a user confirmation response message to the second equipment, and setting the connection state of the first equipment and the second equipment in the Bluetooth protocol stack to be connected;
s811: and generating a connection key corresponding to the second device, and not storing the connection key locally.
As shown in fig. 9, an embodiment of the present application provides an information processing apparatus including:
a receiving module 901, configured to receive a user acknowledgement request message sent by a second device that is not yet connected to the first device;
a first display module 902, configured to determine not to display connection prompt information on a user interface UI after receiving the user confirmation request message if a connection manner used for establishing a bluetooth connection between the first device and the second device is a predetermined connection manner;
a first sending module 903, configured to send a user acknowledgement response message indicating that connection is acknowledged to the second device;
and a second display module 904, configured to display the connected prompt message.
Optionally, the apparatus further comprises:
a determining module 905, configured to determine whether a connection manner used for establishing a bluetooth connection between the first device and the second device is the predetermined connection manner;
a setting module 906, configured to set, according to a user acknowledgement request message sent by the second device, a connection state between the first device and the second device in a bluetooth protocol stack of the first device to be connected.
Optionally, the setting module 906 is configured to:
when the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode, setting the binding attribute as temporary binding;
and when the binding attribute is the temporary binding, modifying the connection state between the first device and the second device in the Bluetooth protocol stack of the first device to be connected through a binding transfer function.
Optionally, the determining module includes:
a first determining unit, configured to determine whether a broadcast message sent by the second device monitored on a bluetooth broadcast channel includes predetermined information;
and the second determining unit is used for determining whether the connection mode used by Bluetooth connection between the first equipment and the second equipment is the preset connection mode according to whether the broadcast message contains the preset information.
Optionally, the predetermined information includes: and the equipment identification information indicates that the second equipment and the first equipment have a preset association relation.
Optionally, the indicating that the second device has a preset association relationship with the first device includes at least one of the following:
indicating that the second device and the first device are devices manufactured by the same manufacturer;
indicating that the second device and the first device are vendor-generated devices;
indicating that the second device and the first device agree on a device adopting the predetermined connection mode.
Referring to fig. 10, in an embodiment of the present application, there is provided a first apparatus 1000 including:
a memory 1004 for storing processor-executable instructions;
a processor 1020 coupled to the memory 1004;
wherein the processor 1020 is configured to perform the information processing method provided by any of the foregoing technical solutions.
A block diagram of a first device 1000 is shown in accordance with an exemplary embodiment. For example, the first device 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 10, a first device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input/output (I/O) interface 1012, a sensor component 1014, and a communication component 1016.
The processing component 1002 generally controls overall operation of the first device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1002 can include one or more modules that facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the first device 1000. Examples of such data include instructions for any application or method operating on the first device 1000, contact data, phonebook data, messages, pictures, video, and the like. The memory 1004 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 1006 provides power to the various components of the first device 1000. The power components 1006 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the first device 1000.
The multimedia component 1008 includes a screen between the first device 1000 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia assembly 1008 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the first device 1000 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the first device 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, the audio component 1010 further comprises a speaker for outputting audio signals.
The I/O interface 1012 provides an interface between the processing assembly 1002 and peripheral interface modules, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects for the first device 1000. For example, the sensor assembly 1014 may detect an on/off state of the first device 1000, a relative positioning of the components, such as a display and keypad of the first device 1000, the sensor assembly 1014 may also detect a change in position of the first device 1000 or a component of the first device 1000, the presence or absence of a user's contact with the first device 1000, an orientation or acceleration/deceleration of the first device 1000, and a change in temperature of the first device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communication between the first device 1000 and other devices, either wired or wireless. The first device 1000 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the first device 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1004, including instructions executable by processor 1020 of first device 1000 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The disclosed embodiments provide a non-transitory computer-readable storage medium, which when executed by a processor of a computer, enables the computer to perform the information processing method of one or more of the foregoing technical solutions.
The processor, when executing the instructions, is capable of performing at least the steps of:
receiving a user confirmation request message sent by a second device which is not connected with the first device yet;
if the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is a preset connection mode, determining that connection prompt information is not displayed on a User Interface (UI) after receiving the user confirmation request message;
transmitting a user acknowledgement response message to the second device indicating acknowledgement of the connection;
and displaying the connected prompt information.
Optionally, the method further comprises:
determining whether a connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode;
and setting the connection state between the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment to be connected according to the user confirmation request message sent by the second equipment.
Optionally, the setting the connection state between the first device and the second device in the bluetooth protocol stack of the first device to be connected includes:
when the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode, setting the binding attribute as temporary binding;
and when the binding attribute is the temporary binding, modifying the connection state between the first device and the second device in the Bluetooth protocol stack of the first device to be connected through a binding transfer function.
Optionally, the determining whether the connection mode used for establishing the bluetooth connection between the first device and the second device is a predetermined connection mode includes:
determining whether a broadcast message sent by the second device monitored on a bluetooth broadcast channel contains predetermined information;
and determining whether a connection mode used by Bluetooth connection between the first equipment and the second equipment is the preset connection mode according to whether the broadcast message contains the preset information.
Optionally, the predetermined information includes: and the equipment identification information indicates that the second equipment and the first equipment have a preset association relation.
Optionally, the indicating that the second device has a preset association relationship with the first device includes at least one of the following:
indicating that the second device and the first device are devices manufactured by the same manufacturer;
indicating that the second device and the first device are vendor-generated devices;
indicating that the second device and the first device agree on a device adopting the predetermined connection mode.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. An information processing method, applied to a first device, comprising:
receiving a user confirmation request message sent by a second device which is not connected with the first device yet;
if the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is a preset connection mode, determining that connection prompt information is not displayed on a User Interface (UI) after receiving the user confirmation request message;
transmitting a user acknowledgement response message to the second device indicating acknowledgement of the connection;
and displaying the connected prompt information.
2. The method according to claim 1, wherein the method further comprises:
determining whether a connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode;
before the displaying of the connected prompt information, the method further comprises:
and setting the connection state between the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment to be connected according to the user confirmation request message sent by the second equipment.
3. The method of claim 2, wherein setting the connection state between the first device and the second device in the bluetooth protocol stack of the first device to connected comprises:
If the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode, setting the binding attribute as temporary binding;
and when the binding attribute is the temporary binding, modifying the connection state between the first device and the second device in the Bluetooth protocol stack of the first device to be connected through a binding transfer function.
4. The method of claim 2, wherein determining whether the connection used to establish the bluetooth connection between the first device and the second device is a predetermined connection comprises:
determining whether a broadcast message sent by the second device monitored on a bluetooth broadcast channel contains predetermined information;
and determining whether a connection mode used by Bluetooth connection between the first equipment and the second equipment is the preset connection mode according to whether the broadcast message contains the preset information.
5. The method of claim 4, wherein the predetermined information comprises: and the equipment identification information indicates that the second equipment and the first equipment have a preset association relation.
6. The method of claim 5, wherein the indicating that the second device has a preset association with the first device comprises at least one of:
Indicating that the second device and the first device are devices manufactured by the same manufacturer;
indicating that the second device and the first device are vendor-generated devices;
indicating that the second device and the first device agree on a device adopting the predetermined connection mode.
7. An information processing apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a user confirmation request message sent by a second device which is not connected with the first device yet;
the first display module is used for determining that connection prompt information is not displayed on a User Interface (UI) after receiving the user confirmation request message if a connection mode used for establishing Bluetooth connection between the first device and the second device is a preset connection mode;
a first sending module, configured to send a user acknowledgement response message indicating that connection is acknowledged to the second device;
and the second display module is used for displaying the connected prompt information.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the determining module is used for determining whether a connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode;
Before the displaying of the connected prompt information, the device further comprises:
and the setting module is used for setting the connection state between the first equipment and the second equipment in the Bluetooth protocol stack of the first equipment as connected according to the user confirmation request message sent by the second equipment.
9. The apparatus of claim 8, wherein the setting module is to:
if the connection mode used for establishing Bluetooth connection between the first equipment and the second equipment is the preset connection mode, setting the binding attribute as temporary binding;
and when the binding attribute is the temporary binding, modifying the connection state between the first device and the second device in the Bluetooth protocol stack of the first device to be connected through a binding transfer function.
10. The apparatus of claim 8, wherein the means for determining comprises:
a first determining unit, configured to determine whether a broadcast message sent by the second device monitored on a bluetooth broadcast channel includes predetermined information;
and the second determining unit is used for determining whether the connection mode used by Bluetooth connection between the first equipment and the second equipment is the preset connection mode according to whether the broadcast message contains the preset information.
11. The apparatus of claim 10, wherein the predetermined information comprises: and the equipment identification information indicates that the second equipment and the first equipment have a preset association relation.
12. The apparatus of claim 11, wherein the indication that the second device has a preset association with the first device comprises at least one of:
indicating that the second device and the first device are devices manufactured by the same manufacturer;
indicating that the second device and the first device are vendor-generated devices;
indicating that the second device and the first device agree on a device adopting the predetermined connection mode.
13. A non-transitory computer readable storage medium, which when executed by a processor of a computer, enables the computer to perform the information processing method provided in any one of claims 1 to 6.
CN202210557844.0A 2022-05-19 2022-05-19 Information processing method, device and storage medium Pending CN117135764A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210557844.0A CN117135764A (en) 2022-05-19 2022-05-19 Information processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210557844.0A CN117135764A (en) 2022-05-19 2022-05-19 Information processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN117135764A true CN117135764A (en) 2023-11-28

Family

ID=88855192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210557844.0A Pending CN117135764A (en) 2022-05-19 2022-05-19 Information processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117135764A (en)

Similar Documents

Publication Publication Date Title
EP3070905B1 (en) Method and apparatus for binding device
CN106453052B (en) Message interaction method and device
US10064000B2 (en) Method, apparatus, and storage medium for acquiring terminal information
US10291608B2 (en) Method and device for establishing wireless connection
EP3076716A1 (en) Method and apparatus for network access
CN109039860B (en) Method and device for sending and displaying message and method and device for identity authentication
EP3462367B1 (en) Method and apparatus for displaying application interface
JP2017503289A (en) Terminal verification method, apparatus, program, and recording medium
EP3163855B1 (en) Method and device for making call
US20220240247A1 (en) A time domain configuration method, device, and storage media
CN107612058B (en) Charging method and device
CN112640569B (en) Connection establishment method and device
CN117135764A (en) Information processing method, device and storage medium
CN111212413B (en) Unlocking communication method and device and computer storage medium
CN115706966A (en) Method and device for connecting network and readable storage medium
CN108011882B (en) Method, device and system for data synchronization
CN110708427A (en) Information processing method, device and storage medium
US20230269590A1 (en) Ranging method
CN111885561B (en) Wireless network connection, NFC information writing method, device and storage medium
WO2022147764A1 (en) Method and apparatus for accessing unlicensed channel, and device and storage medium
CN107645505B (en) Information acquisition method, device and storage medium
CN115348570A (en) Method and device for searching terminal equipment and storage medium
CN115552941A (en) Relay communication method, device, communication apparatus, and storage medium
CN117580192A (en) Bluetooth connection method and device and readable storage medium
CN116233818A (en) Terminal identification method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination