CN110809267A - Device connection method, electronic device and computer readable storage medium - Google Patents

Device connection method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN110809267A
CN110809267A CN201911053519.5A CN201911053519A CN110809267A CN 110809267 A CN110809267 A CN 110809267A CN 201911053519 A CN201911053519 A CN 201911053519A CN 110809267 A CN110809267 A CN 110809267A
Authority
CN
China
Prior art keywords
parameter information
connection
information
historical
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911053519.5A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911053519.5A priority Critical patent/CN110809267A/en
Publication of CN110809267A publication Critical patent/CN110809267A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention provides a device connection method, an electronic device and a computer readable storage device, wherein the method comprises the following steps: acquiring historical connection records with other equipment; acquiring historical parameter information from the historical connection record; generating current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request; and establishing connection with the other equipment by using the parameter information. In the method, the electronic equipment establishes Bluetooth connection with other equipment according to the dynamic parameter information and the historical parameter information, and the electronic equipment reduces the information exchange times with other equipment by using the pre-recorded historical parameter information, so that the Bluetooth connection speed is increased, and the efficiency of using the Bluetooth function by a user is improved.

Description

Device connection method, electronic device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an apparatus connection method, an electronic apparatus, and a computer-readable storage medium.
Background
With the rapid development of mobile terminals, the mobile terminals have more and more functions. The Bluetooth function is widely applied in various functions of the mobile terminal, and can be connected with Bluetooth devices such as a Bluetooth earphone and a Bluetooth sound box through the Bluetooth function, so that the application range of the mobile terminal is greatly enriched. However, the existing bluetooth connection process takes a long time, which reduces the efficiency of using the bluetooth function for the user.
Disclosure of Invention
The invention provides a device connection method, electronic equipment and a computer readable storage medium, and aims to solve the problems that the existing Bluetooth connection process consumes a long time and the Bluetooth function using efficiency is low.
In a first aspect, an embodiment of the present invention provides an apparatus connection method, which is applied to an electronic apparatus, and the method includes:
acquiring historical connection records with other equipment;
acquiring historical parameter information from the historical connection record;
generating current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request;
and establishing connection with the other equipment by using the parameter information.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
the historical connection record acquisition module is used for acquiring historical connection records of other equipment;
the parameter information acquisition module is used for acquiring historical parameter information from the historical connection record;
the current information determining module is used for generating the current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request;
and the first connection establishing module is used for establishing connection with the other equipment by utilizing the parameter information.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the device connection method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the device connection method according to the first aspect.
In the embodiment of the invention, historical connection records with other equipment are obtained; acquiring historical parameter information from the historical connection record; generating the current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request; and establishing connection with the other equipment by using the parameter information. In the method, the electronic equipment establishes Bluetooth connection with other equipment according to the dynamic parameter information and the historical parameter information, and the electronic equipment reduces the information exchange times with other equipment by using the pre-recorded historical parameter information, so that the Bluetooth connection speed is increased, and the efficiency of using the Bluetooth function by a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 shows one of the flow charts of the device connection method provided in the embodiment of the present invention;
fig. 2 shows a second flowchart of a device connection method provided in the embodiment of the present invention;
fig. 3 shows one of the structural block diagrams of the electronic apparatus provided in the embodiment of the present invention;
fig. 4 shows a second block diagram of the electronic device according to the embodiment of the invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments 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 some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making an invasive task, are within the scope of the present invention.
Referring to fig. 1, one of flowcharts of a device connection method provided in an embodiment of the present invention is shown. The method is applied to an electronic device, and the electronic device described in the embodiment of the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The equipment connection method specifically comprises the following steps:
step 101, obtaining historical connection records with other devices.
In the embodiment of the invention, the electronic device is a master device for initiating the Bluetooth connection, and the other devices are slave devices for receiving the Bluetooth connection.
The electronic device may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, an intelligent bracelet, a pedometer, etc. having a bluetooth function, and a fixed terminal such as a Digital TV, a desktop computer, etc.; the electronic device may also be a digital device such as a digital camera, a digital video camera, or the like; or an electronic wallet and an electronic lock which are formed by the Bluetooth technology, or traditional household appliances such as a microwave oven, a washing machine, a refrigerator, an air conditioner and the like which are embedded into a Bluetooth system; the other devices may be peripheral devices of electronic devices such as a bluetooth headset, a bluetooth sound box, a mouse, a keyboard, a speaker, and the like, or any one of the electronic devices.
In this document, taking an electronic device as a mobile terminal and other devices as earphones as examples, the detailed description of the embodiments of the present invention is given, and the case where the electronic device and the other devices are other objects, or the case where the electronic device is an earphone and the other devices are mobile terminals is also applicable to the scheme of the present application, and the reference may be made to the implementation.
First, the bluetooth connection between the electronic device and other devices in the prior art generally requires the following steps:
step S1: the electronic equipment pages other equipment in a frequency hopping mode, the other equipment scans external paging at fixed intervals, and when the external paging is scanned, the paging is responded and paired; extracting clock components from the received information code stream by two parties, and carrying out clock synchronization; exchanging related parameters of ACL (Asynchronous connection loss) connection, supporting the Bluetooth feature by the two parties, and finally establishing ACL connection.
Step S2: the electronic device initiates a connection request of a channel, acquires a2dp (advanced audio distribution Profile, advanced audio transmission Protocol) and hfp (Hands Free Profile) related information supported by other devices through sdp (service discovery Profile, service discovery Protocol), and sends a channel id (signaling channel identifier) used this time and its own related connection layer or application layer Protocol information to other devices, and finally establishes a connection of L2CAP (Logical Link Control and Adaptation Protocol).
Step S3: the electronic equipment adopts SDP (Service Discovery protocol) to inquire the hands-free Service of other equipment, obtains the channel number of rfcom (serial port simulation protocol), and then initiates the connection request of the rfcom to establish the connection of the rfcom.
The above process may be represented as a link estimate (link establishment), channel estimate (channel establishment), rfcomm estimate (serial port simulation protocol establishment), and connection (connection).
The inventor has found that, in the above steps S1, S2, and S3, except for the step of paging other devices and performing clock synchronization by using a frequency hopping method in step S1 and the step of transmitting the channel id information used this time in step S2, all the other connection procedures are protocol information supported by the electronic device and the other devices during exchange, and the protocol information is information inherent to the electronic device and the other devices and does not change due to the connection scenario between the two devices. Therefore, in the embodiment of the present invention, when the electronic device pages another device in a frequency hopping manner, the other device responds to the page and performs pairing when scanning the page of the electronic device, and after the two devices perform clock synchronization, the electronic device detects an ACL and bluetooth connection instruction sent by the electronic device and the other device to be paired. The historical connection record is pre-recorded during the process that the electronic equipment and other equipment establish the Bluetooth connection in advance.
Optionally, the historical connection record is pre-recorded by the following steps a 1-a 2:
step A1, acquiring parameter information in the connection process under the condition that the electronic equipment and the other equipment establish successful connection by exchanging information of both sides; the parameter information includes fixed parameter information and dynamic parameter information, and the fixed parameter information at least includes: asynchronous connectionless parameter information, logical link control and adaptation protocol parameter information, serial port simulation protocol parameter information, and connection timing sequence information.
In the embodiment of the present invention, when the electronic device and the other device establish a connection for the first time, the bluetooth connection is established through the above steps S1 to S3, and after the connection is established, the electronic device serving as the main device records and stores information acquired in the process of exchanging information between the two devices as parameter information. In order to ensure that the historical connection record is not changed by the user, the electronic device may set corresponding read-write permission for the historical connection record.
Specifically, the parameter information includes fixed parameter information that does not change in each connection of the electronic device and the other device and dynamic parameter information that changes in each connection. The fixed parameter information at least comprises parameter information for establishing ACL (asynchronous connectionless) connection between the electronic equipment and other equipment, parameter information for establishing L2CAP (logical link control and adaptation protocol) connection, parameter information for establishing rfcomm (serial port simulation protocol) connection and connection timing sequence information. The ACL parameter information at least comprises the support condition of the electronic equipment and other equipment for Bluetooth feature, such as the setting of time-out, whether the role switching between an active initiator and a passive receiver can be performed, whether a link can enter a sleep mode and the like; the L2CAP parameter information includes at least: input/output MTU (Maximum Transmission Unit), input/output stream and error control information, input/output FCS (Frame Check Sequence), input/output Frame format information, and the like; the rfcomm parameter information includes at least: general control parameters of the simulation serial port, port parameter setting information and the like; the connection timing information indicates which of the electronic device and the other device initiates a connection request and which responds to the request. In the embodiment of the invention, the electronic equipment sends a connection request to other equipment, the other equipment responds to the connection request, and the electronic equipment is used as main equipment to record corresponding parameter information; conversely, in other embodiments, the other device may also send a connection request to the electronic device, and the electronic device responds to the connection request, and the other device records the corresponding parameter information as the master device.
In addition, the parameter information also includes dynamic parameter information. The dynamic parameter information is information that may dynamically change in each connection, and includes at least channel id (signaling channel identifier) information. The channel ID is parameter information during L2DAP connection, the end point of a signaling channel is represented by a channel mark channel ID, 65536 channels can exist in an ACL link at most, the channels comprise a signaling channel and a data channel, the data channel is established through the signaling channel, and then the data channel transmits data. The channeld here refers to a signaling channel.
Step A2, storing the parameter information as a history connection record in the electronic device.
After the connection is established, the electronic device serving as the main device stores the parameter information as a historical connection record. In order to ensure that the historical connection record is not changed by the user, the electronic device may set corresponding read-write permission for the historical connection record.
And 102, acquiring historical parameter information from the historical connection record.
In the embodiment of the invention, the electronic device searches the historical connection record when being connected with other devices before in the memory, and if the historical connection record exists, the electronic device indicates that the electronic device and other devices have successfully performed Bluetooth connection previously, and the electronic device has recorded the parameter information of the electronic device and other devices. At this time, parameter information may be acquired from the historical connection record, and the parameter information may include fixed parameter information and dynamic parameter information.
If there is no historical connection record, it indicates that the electronic device and the other device have not previously performed bluetooth connection, and a method of exchanging information of both parties, that is, the method of step S1-step S3, may be adopted to establish bluetooth connection. And after the connection is successful, recording the parameter information of the connection, and storing the parameter information as historical parameter information of the electronic equipment and other equipment in the electronic equipment for the next connection.
And 103, generating the current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request.
In the embodiment of the invention, the information which can be dynamically changed in each connection is regenerated to obtain the dynamic parameter information. And updating the corresponding information in the historical parameter information by using the dynamic parameter information to obtain the current parameter information.
Compared with the prior art that the parameter information is obtained by exchanging information between two parties for multiple times, the embodiment of the invention directly obtains the historical connection information from the historical connection record, regenerates the dynamic parameter information, and updates the historical connection information by using the dynamic parameter information to obtain the connection information. Because the dynamic parameter information only occupies a small proportion of the parameter information, the time consumption for generating the dynamic parameter information is less, and other fixed parameter information is directly acquired through the historical connection record, so that the time consumed by Bluetooth connection is greatly reduced.
And 104, establishing connection with the other equipment by using the parameter information.
In the embodiment of the invention, the current parameter information, namely the historical parameter information and the dynamic parameter information is utilized to establish ACL connection, L2CAP connection and rfcomm connection with other equipment in sequence, and finally the Bluetooth connection is successfully established.
In summary, in the embodiment of the present invention, a historical connection record with other devices is obtained; acquiring historical parameter information from the historical connection records; generating current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request; and establishing connection with the other equipment by using the parameter information. In the method, the electronic equipment establishes Bluetooth connection with other equipment according to the dynamic parameter information and the historical parameter information, and the electronic equipment reduces the information exchange times with other equipment by using the pre-recorded historical parameter information, so that the Bluetooth connection speed is increased, and the efficiency of using the Bluetooth function by a user is improved.
Referring to fig. 2, a second flowchart of a device connection method provided in the embodiment of the present invention is shown, where the method is applied to an electronic device, and specifically may include the following steps.
Step 201, obtaining historical connection records with other devices.
In the embodiment of the present invention, step 201 may refer to step 101, which is not described herein again.
Step 202, obtaining historical parameter information from the historical connection record.
In the embodiment of the present invention, step 202 may refer to step 102, which is not described herein again.
Step 203, generating signaling channel information according to the channel identifier allocated by the system, and updating the historical signaling channel information in the historical parameter information by using the signaling channel information to obtain the current parameter information.
In the embodiment of the present invention, after acquiring the historical parameter information, the electronic device needs to regenerate the dynamic parameter information, so as to update the corresponding information in the historical parameter information according to the dynamic parameter information. In the normal bluetooth connection process, the dynamic parameter information that may be dynamically changed in each connection mainly includes a channel id allocated by the system to the electronic device and other devices in the connection, that is, signaling channel information. An electronic device may connect multiple devices at once, and then the signaling channel assigned to each device at a time may be different. This signaling channel is not a physical frequency band channel, but rather a logical channel. The end points of the channel are indicated by channel identifiers, channel ids, which are two bytes long, for example, the channel id of a signaling channel may be 0x 0001. Electronic devices can have a maximum of 65536 channels, i.e. an ACL link can have a maximum of 65536 channels. A data channel is established through the signaling channel and then data is transmitted by the data channel.
Specifically, the current signaling channel information is used to update the historical signaling channel information in the historical parameter information, that is, the current channel id information is used to update the channel id information in the historical parameter information, so that the current parameter information can be obtained.
And step 204, sending the parameter information to the other equipment.
In the embodiment of the present invention, after obtaining the current parameter information, the electronic device sends the current parameter information to other devices at one time, and if the data size is too large, the electronic device may also send the current parameter information to other devices in multiple times, so that the other devices extract the relevant information of the electronic device, for example, ACL parameter information of the electronic device, currently used channeld and relevant connection layer or application layer protocol information, rfcomm parameter information, and the like.
After step 204, step 205 or step 206 may be executed according to the feedback situation of the other device for the current parameter information.
Step 205, if receiving the confirmation information replied by the other device for the current parameter information, establishing a connection with the other device by using the current parameter information.
In the embodiment of the present invention, if other devices support the device connection method in the embodiment of the present invention, after receiving the current parameter information sent by the electronic device, the other devices analyze the current parameter information and determine whether the information is incorrect. And if the judgment is accurate, establishing connection with the electronic equipment by using the parameter information, and returning confirmation information to the electronic equipment after the connection is successful.
Step 206, if the confirmation information replied by the other device for the current parameter information is not received, or if the error information replied by the other device for the current parameter information is received, establishing connection by exchanging information of both parties.
In the embodiment of the present invention, if the other device does not support the device connection method in the embodiment of the present invention, the non-support information is returned to the electronic device; if other equipment supports the equipment connection method in the embodiment of the invention, but the parameter information is analyzed and then the information is wrong or missing, the error information is returned to the electronic equipment; if the communication channel between the other equipment and the electronic equipment fails, the electronic equipment cannot receive the reply information of the other equipment. If the above three situations occur, it indicates that the electronic device cannot establish a bluetooth connection with another device by the method in the embodiment of the present invention, and at this time, the electronic device and the other device may adopt the conventional method of step S1-step S3 in the prior art, that is, establish a bluetooth connection by exchanging information of both parties.
In summary, the device connection method provided in the embodiment of the present invention, besides the beneficial effects of the device connection method in fig. 1, also generates signaling channel information according to a channel identifier allocated by a system, and updates historical signaling channel information in the historical parameter information by using the signaling channel information to obtain the current parameter information, because the signaling channel information belongs to dynamic parameter information, after updating the historical parameter information by using the signaling channel information, the accurate current parameter information can be obtained, so that the electronic device and other devices successfully implement bluetooth connection; and when the confirmation information replied by the other equipment for the current parameter information is not received, or if the error information replied by the other equipment for the current parameter information is received, establishing Bluetooth connection by exchanging information of both sides, so as to provide another connection solution for the situation that the electronic equipment and the other equipment cannot realize Bluetooth connection by using the current parameter information, so that the electronic equipment and the other equipment can still successfully realize Bluetooth connection.
Referring to fig. 3, which is one of the structural block diagrams of the electronic device according to the embodiment of the present invention, the electronic device 300 may specifically include:
a historical connection record obtaining module 301, configured to obtain a historical connection record with other devices;
a parameter information obtaining module 302, configured to obtain historical parameter information from the historical connection record;
the current information determining module 303 is configured to generate current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request;
a first connection establishing module 304, configured to establish a connection with the other device by using the parameter information of this time.
The electronic device provided by the embodiment of the present invention can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Therefore, the electronic equipment provided by the embodiment of the invention acquires the historical connection records with other equipment; acquiring historical parameter information from the historical connection record; generating current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request; and establishing connection with the other equipment by using the parameter information. In the method, the electronic equipment establishes Bluetooth connection with other equipment according to the dynamic parameter information and the historical parameter information, and the electronic equipment reduces the information exchange times with other equipment by using the pre-recorded historical parameter information, so that the Bluetooth connection speed is increased, and the efficiency of using the Bluetooth function by a user is improved.
Referring to fig. 4, a second block diagram of the electronic device according to the embodiment of the present invention is shown, where the electronic device 300 further includes:
the information determining module 303 includes:
and the updating submodule 3031 is configured to generate signaling channel information according to a channel identifier allocated by a system, and update historical signaling channel information in the historical parameter information by using the signaling channel information to obtain the current parameter information.
The historical connection record is pre-recorded through the following modules:
the information acquisition module is used for acquiring parameter information in the connection process under the condition that the electronic equipment and the other equipment establish connection successfully by exchanging information of both sides; the parameter information includes fixed parameter information and dynamic parameter information, and the fixed parameter information at least includes: asynchronous connectionless parameter information, logical link control and adaptation protocol parameter information, serial port simulation protocol parameter information, and connection timing information;
and the information storage module is used for storing the parameter information as a historical connection record in the electronic equipment.
The first connection establishing module 304 comprises:
a sending submodule 3041, configured to send the parameter information of this time to the other device;
the first connection sub-module 3042 is configured to, if receiving the confirmation information replied by the other device for the current parameter information, establish a connection with the other device by using the current connection parameter.
The electronic device 300 further comprises:
a second connection establishing module 305, configured to establish a connection by exchanging information of the two parties if the confirmation information replied by the other device for the parameter information of the current time is not received, or if the error information replied by the other device for the parameter information of the current time is received.
The electronic device provided in the embodiment of the present invention can implement each process implemented in the method embodiment of fig. 2, and is not described here again to avoid repetition.
The electronic device according to the embodiment of the present invention, in addition to the beneficial effects of the electronic device in fig. 3, generates signaling channel information according to a channel identifier allocated by a system, and updates historical signaling channel information in the historical parameter information by using the signaling channel information to obtain the current parameter information, because the signaling channel information belongs to dynamic parameter information, after updating the historical parameter information by using the signaling channel information, accurate current parameter information can be obtained, so that the electronic device and other devices successfully implement bluetooth connection; and when the confirmation information replied by the other equipment aiming at the current parameter information is not received, or if the error information replied by the other equipment aiming at the current parameter information is received, establishing Bluetooth connection by exchanging information of the two parties, and providing another connection solution for the condition that the electronic equipment and the other equipment cannot realize Bluetooth connection by using the current parameter information, so that the electronic equipment and the other equipment can still successfully realize Bluetooth connection.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 500 includes, but is not limited to: radio frequency unit 501, network module 502, sound output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 510 is configured to:
acquiring historical connection records with other equipment;
acquiring historical parameter information from the historical connection record;
generating current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request;
and establishing connection with the other equipment by using the parameter information.
In the embodiment of the invention, historical connection records with other equipment are obtained; acquiring historical parameter information from the historical connection record; generating the current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request; and establishing connection with the other equipment by using the parameter information. In the method, the electronic equipment establishes Bluetooth connection with other equipment according to the dynamic parameter information and the historical parameter information, and the electronic equipment reduces the information exchange times with other equipment by using the pre-recorded historical parameter information, so that the Bluetooth connection speed is increased, and the efficiency of using the Bluetooth function by a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The sound output unit 503 may convert sound data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into a sound signal and output as sound. Also, the sound output unit 503 may also provide sound output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The sound output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive a sound or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sound, and may be capable of processing such sound into sound data. The processed voice data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer and tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. Specifically, the other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, a sound input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as voice data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for powering the various components, and the power supply 511 may be preferably logically coupled to the processor 510 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the display method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
Based on the hardware structure of the mobile terminal, the following detailed description will be made of embodiments of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A device connection method is applied to an electronic device, and is characterized by comprising the following steps:
acquiring historical connection records with other equipment;
acquiring historical parameter information from the historical connection record;
generating current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request;
and establishing connection with the other equipment by using the parameter information.
2. The method according to claim 1, wherein the generating the current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request includes:
and generating signaling channel information according to the channel identifier distributed by the system, and updating historical signaling channel information in the historical parameter information by using the signaling channel information to obtain the current parameter information.
3. The method of claim 1, wherein the historical connection record is pre-recorded by:
acquiring parameter information in a connection process under the condition that the electronic equipment and the other equipment establish connection successfully by exchanging information of both sides; the parameter information includes fixed parameter information and dynamic parameter information, and the fixed parameter information at least includes: asynchronous connectionless parameter information, logical link control and adaptation protocol parameter information, serial port simulation protocol parameter information, and connection timing sequence information;
storing the parameter information as a historical connection record in the electronic device.
4. The method according to claim 1, wherein the establishing a connection with the other device using the current parameter information includes:
sending the parameter information to the other equipment;
and if receiving confirmation information replied by the other equipment aiming at the current parameter information, establishing connection with the other equipment by using the current parameter information.
5. The method according to claim 4, further comprising, after sending the current parameter information to the other device:
and if the confirmation information replied by the other equipment aiming at the current parameter information is not received, or if the error information replied by the other equipment aiming at the current parameter information is received, establishing connection by exchanging information of the two parties.
6. An electronic device, characterized in that the electronic device comprises:
the historical connection record acquisition module is used for acquiring historical connection records of other equipment;
the parameter information acquisition module is used for acquiring historical parameter information from the historical connection record;
the current information determining module is used for generating the current parameter information according to the historical parameter information and the dynamic parameter information corresponding to the current connection request;
and the first connection establishing module is used for establishing connection with the other equipment by utilizing the parameter information.
7. The electronic device of claim 6, wherein the current information determining module comprises:
and the updating submodule is used for generating signaling channel information according to the channel identifier distributed by the system and updating the historical signaling channel information in the historical parameter information by using the signaling channel information to obtain the current parameter information.
8. The electronic device of claim 6, wherein the historical connection record is pre-recorded by:
the information acquisition module is used for acquiring parameter information in the connection process under the condition that the electronic equipment and the other equipment establish connection successfully by exchanging information of both sides; the parameter information includes fixed parameter information and dynamic parameter information, and the fixed parameter information at least includes: asynchronous connectionless parameter information, logical link control and adaptation protocol parameter information, serial port simulation protocol parameter information, and connection timing sequence information;
and the information storage module is used for storing the parameter information as a historical connection record in the electronic equipment.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the device connection method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the device connection method according to any one of claims 1 to 5.
CN201911053519.5A 2019-10-31 2019-10-31 Device connection method, electronic device and computer readable storage medium Pending CN110809267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911053519.5A CN110809267A (en) 2019-10-31 2019-10-31 Device connection method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053519.5A CN110809267A (en) 2019-10-31 2019-10-31 Device connection method, electronic device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110809267A true CN110809267A (en) 2020-02-18

Family

ID=69489914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053519.5A Pending CN110809267A (en) 2019-10-31 2019-10-31 Device connection method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110809267A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629366A (en) * 2020-04-27 2020-09-04 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111935277A (en) * 2020-08-07 2020-11-13 上海汉枫电子科技有限公司 Router connection method, router connection device, computer equipment and storage medium
CN112235806A (en) * 2020-10-20 2021-01-15 Tcl通讯(宁波)有限公司 Bluetooth parameter configuration method, device, storage medium and mobile terminal
CN112367647A (en) * 2020-09-27 2021-02-12 浙江三维万易联科技有限公司 Bluetooth connection parameter updating method and device, Bluetooth system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706379A (en) * 2013-11-11 2016-06-22 Lg电子株式会社 Method and apparatus for bluetooth connection
CN106102129A (en) * 2016-05-23 2016-11-09 深圳Tcl数字技术有限公司 Connect the method and device of bluetooth equipment
CN106535104A (en) * 2016-12-16 2017-03-22 中南大学 Adaptive Bluetooth transmission method based on flow perception
CN109121183A (en) * 2017-06-22 2019-01-01 德州仪器公司 It is reconnected using the acceleration network of previous Connecting quantity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706379A (en) * 2013-11-11 2016-06-22 Lg电子株式会社 Method and apparatus for bluetooth connection
CN106102129A (en) * 2016-05-23 2016-11-09 深圳Tcl数字技术有限公司 Connect the method and device of bluetooth equipment
CN106535104A (en) * 2016-12-16 2017-03-22 中南大学 Adaptive Bluetooth transmission method based on flow perception
CN109121183A (en) * 2017-06-22 2019-01-01 德州仪器公司 It is reconnected using the acceleration network of previous Connecting quantity

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629366A (en) * 2020-04-27 2020-09-04 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111629366B (en) * 2020-04-27 2023-06-09 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111935277A (en) * 2020-08-07 2020-11-13 上海汉枫电子科技有限公司 Router connection method, router connection device, computer equipment and storage medium
CN112367647A (en) * 2020-09-27 2021-02-12 浙江三维万易联科技有限公司 Bluetooth connection parameter updating method and device, Bluetooth system and storage medium
CN112367647B (en) * 2020-09-27 2023-02-03 三维通信股份有限公司 Bluetooth connection parameter updating method and device, bluetooth system and storage medium
CN112235806A (en) * 2020-10-20 2021-01-15 Tcl通讯(宁波)有限公司 Bluetooth parameter configuration method, device, storage medium and mobile terminal
CN112235806B (en) * 2020-10-20 2023-08-18 深圳市智创一切科技有限公司 Bluetooth parameter configuration method and device, storage medium and mobile terminal

Similar Documents

Publication Publication Date Title
CN109587789B (en) Random access method, mobile terminal and network equipment
CN110034876B (en) PUCCH resource indication and processing method, network side equipment and user terminal
CN110809267A (en) Device connection method, electronic device and computer readable storage medium
JP2021530914A (en) Paging instruction method, equipment and system
WO2020200096A1 (en) Ssb transmission indication method and apparatus, terminal, device, and medium
WO2020228537A1 (en) Resource determination method, resource indication method, terminal and network side device
CN113973326A (en) Wireless capability identifier transmission method, terminal equipment and network node
CN111615205B (en) Configuration method, equipment and system for semi-static scheduling configuration
CN110022551B (en) Information interaction method and terminal equipment
CN109151741B (en) Multimedia message receiving method and terminal
WO2019242633A1 (en) Measurement interval processing method, terminal and network node
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN111132073B (en) Multicast communication link layer identifier updating method, device and terminal equipment
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN107770811B (en) Data processing method, mobile terminal and computer readable storage medium
CN111263428A (en) Data processing method and user equipment
CN111343618B (en) Display method and electronic equipment
WO2020244477A1 (en) Sending method and receiving method for network identification information, and communication device
JP7249436B2 (en) PC5 link establishment method, device and system
CN111435902B (en) Control signal sending method and transmission node
CN109412986B (en) Communication channel setting method and mobile terminal
CN108811037B (en) Data transmission method and communication equipment
CN108377291B (en) Communication method based on earphone interface, mobile terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200218

RJ01 Rejection of invention patent application after publication