CN111104186A - Bluetooth configuration file loading method and device, storage medium and terminal equipment - Google Patents

Bluetooth configuration file loading method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN111104186A
CN111104186A CN201911370418.0A CN201911370418A CN111104186A CN 111104186 A CN111104186 A CN 111104186A CN 201911370418 A CN201911370418 A CN 201911370418A CN 111104186 A CN111104186 A CN 111104186A
Authority
CN
China
Prior art keywords
bluetooth
configuration file
storage area
profile
version information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911370418.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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201911370418.0A priority Critical patent/CN111104186A/en
Publication of CN111104186A publication Critical patent/CN111104186A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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 application provides a loading method and device of a Bluetooth configuration file, a storage medium and terminal equipment. According to the method and the device, the first storage area and the second storage area are defined in the memory of the terminal device and are respectively used for storing the first Bluetooth configuration file and the second Bluetooth configuration file, when the fact that the version number in the version information of the first Bluetooth configuration file is smaller than the version number in the version information of the second Bluetooth configuration file is found in the Bluetooth using process, the second Bluetooth configuration file is updated to the first storage area, Bluetooth is initialized according to the second Bluetooth configuration file in the first storage area, the Bluetooth is prevented from being restarted to load the Bluetooth configuration file of the new version, and therefore connection pairing with a new Bluetooth product is achieved more quickly.

Description

Bluetooth configuration file loading method and device, storage medium and terminal equipment
Technical Field
The application relates to the technical field of mobile communication, in particular to a method and a device for loading a Bluetooth configuration file, a storage medium and terminal equipment.
Background
Bluetooth Profile (Profile) is an important feature of bluetooth, i.e., all bluetooth products do not have to implement the full bluetooth protocol specification. Because bluetooth is mostly applied to small electronic products such as bluetooth mice, mobile phones and the like, bluetooth configuration files enable the devices to pay attention to functions required by the devices without realizing all bluetooth protocol specifications, which is beneficial to the simplification of bluetooth. In order to more easily maintain compatibility between bluetooth devices, profiles are defined in the bluetooth protocol specification. The configuration file defines how a device implements a connection or application, i.e. the configuration file refers to a connection layer or application layer protocol. Among all profiles, there are four basic profiles that are used by other profiles, including Generic Access Profile (GAP), Service Discovery Application Profile (SDAP), Serial Port Profile (SPP), Generic Object Exchange Profile (GOEP), and the rest of the bluetooth profiles are selectively loaded. In consideration of the fact that terminal equipment products are extremely competitive, the development and test periods of the products are short, electronic products based on Bluetooth are increasing, and some new Bluetooth products may adopt a different configuration file, so that the terminal equipment needs to load a new configuration file to realize connection pairing. Therefore, a problem that connection pairing with a new bluetooth product is realized more quickly by avoiding restarting bluetooth to load a new version of bluetooth configuration file needs to be solved in the field.
Disclosure of Invention
The embodiment of the application provides a loading method and device of a Bluetooth configuration file, a storage medium and a terminal device, wherein a first storage area and a second storage area are defined in a memory of the terminal device and are respectively used for storing a first Bluetooth configuration file and a second Bluetooth configuration file, when the fact that the version number in the version information of the first Bluetooth configuration file is smaller than the version number in the version information of the second Bluetooth configuration file is found in the Bluetooth using process, the second Bluetooth configuration file is updated to the first storage area, and Bluetooth is initialized according to the second Bluetooth configuration file in the first storage area, so that the situation that the Bluetooth is restarted to load the Bluetooth configuration file with the new version is avoided, and connection and pairing with a new Bluetooth product are realized more quickly.
According to a first aspect of the present application, an embodiment of the present application provides a method for loading a bluetooth profile, which is applied to a terminal device, where the terminal device is provided with a memory, the memory is provided with a first storage area and a second storage area, and the method for loading the bluetooth profile includes: acquiring version information of a first Bluetooth configuration file in a first storage area and version information of a second Bluetooth configuration file in a second storage area; judging the size of the version number in the version information of the first Bluetooth configuration file and the version number in the version information of the second Bluetooth configuration file; updating the second Bluetooth configuration file to the first storage area when the version number in the version information of the first Bluetooth configuration file is judged to be smaller than the version number in the version information of the second Bluetooth configuration file; and initializing bluetooth according to the second bluetooth profile of the first storage area.
Further, before the step of obtaining the version information of the first bluetooth profile of the first storage area and the version information of the second bluetooth profile of the second storage area, the method further comprises the following steps: starting Bluetooth; and transmitting the second bluetooth profile to the second storage area.
Further, before the step of turning on bluetooth, the method further comprises the steps of: defining the first storage area and the second storage area; and storing the first bluetooth profile in the first storage area.
Further, in the step of updating the second bluetooth profile to the first storage area, the profile table of the first bluetooth profile is updated to the profile table of the second bluetooth profile, and the version information of the first bluetooth profile is updated to the version information of the second bluetooth profile.
According to a second aspect of the present application, an embodiment of the present application provides a loading apparatus for a bluetooth profile, which is applied to a terminal device, where the terminal device is provided with a memory, the memory is provided with a first storage area and a second storage area, and the loading apparatus for the bluetooth profile includes: the acquisition module is used for acquiring version information of a first Bluetooth configuration file in a first storage area and version information of a second Bluetooth configuration file in a second storage area; the judging module is used for judging the size of the version number in the version information of the first Bluetooth configuration file and the size of the version number in the version information of the second Bluetooth configuration file; the updating module is used for updating the second Bluetooth configuration file to the first storage area when the version number in the version information of the first Bluetooth configuration file is judged to be smaller than the version number in the version information of the second Bluetooth configuration file; and the initialization module is used for initializing Bluetooth according to the second Bluetooth configuration file of the first storage area.
Further, the loading device of the bluetooth configuration file further includes: the starting module is used for starting the Bluetooth; and the transmission module is used for transmitting the second Bluetooth configuration file to the second storage area.
Further, the loading device of the bluetooth configuration file further includes: a defining module for defining the first storage area and the second storage area; and the storage module is used for storing the first Bluetooth configuration file to the first storage area.
Further, the update module includes a first update submodule and a second update submodule, the first update submodule is configured to update the profile table of the first bluetooth profile to the profile table of the second bluetooth profile, and the second update submodule is configured to update the version information of the first bluetooth profile to the version information of the second bluetooth profile.
According to a third aspect of the present application, an embodiment of the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute the loading method of the bluetooth profile.
According to a fourth aspect of the present application, an embodiment of the present application provides a terminal device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the above-mentioned bluetooth profile loading method.
The embodiment of the application provides a loading method and device of a Bluetooth configuration file, a storage medium and a terminal device, wherein a first storage area and a second storage area are defined in a memory of the terminal device and are respectively used for storing a first Bluetooth configuration file and a second Bluetooth configuration file, when the fact that the version number in the version information of the first Bluetooth configuration file is smaller than the version number in the version information of the second Bluetooth configuration file is found in the Bluetooth using process, the second Bluetooth configuration file is updated to the first storage area, and Bluetooth is initialized according to the second Bluetooth configuration file in the first storage area, so that the situation that the Bluetooth is restarted to load the Bluetooth configuration file with the new version is avoided, and connection and pairing with a new Bluetooth product are realized more quickly.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart illustrating steps of a method for loading a bluetooth profile according to an embodiment of the present application.
Fig. 2 is a schematic flowchart illustrating a preprocessing step of a bluetooth profile loading method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a bluetooth profile loading apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an update module according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of another bluetooth profile loading apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
In particular embodiments, the drawings discussed below and the various embodiments used to describe the principles of the present disclosure are by way of illustration only and should not be construed to limit the scope of the present disclosure. Those skilled in the art will understand that the principles of the present application may be implemented in any suitably arranged system. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. Further, a terminal device according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the present application. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it will be understood that terms such as "including," "having," and "containing" are intended to specify the presence of the features, integers, steps, acts, or combinations thereof disclosed in the specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a method for loading a bluetooth configuration file, where the method for loading a bluetooth configuration file is used for a terminal device, the terminal device is provided with a memory, the memory is provided with a first storage area and a second storage area, and the method for loading a bluetooth configuration file includes the following steps.
Step S11, bluetooth is turned on.
Step S12, transmitting the second bluetooth profile to the second storage area.
In this embodiment of the present application, the second bluetooth profile may be obtained by downloading from the internet or by other means of device transmission.
Step S13, the version information of the first bluetooth profile in the first storage area and the version information of the second bluetooth profile in the second storage area are obtained.
In the embodiment of the present application, the version information includes a version number, and the version number can be arranged by numbers or letters according to a predetermined rule, for example, the first two digits of 19a161536 represent a year, the third digit represents a month, the fourth and fifth digits represent a date, and the last four digits represent a time. Of course, the version number may be arranged according to other rules, which are not limited herein.
Step S14, determining the size of the version number in the version information of the first bluetooth configuration file and the version number in the version information of the second bluetooth configuration file.
In the embodiment of the present application, the time represented by the version number in the version information of the first bluetooth profile is before the time represented by the version number in the version information of the second bluetooth profile, which means that the version of the first bluetooth profile is smaller (older) than the version of the first bluetooth profile; the time represented by the version number in the version information of the first bluetooth profile is after the time represented by the version number in the version information of the second bluetooth profile, which represents that the version of the first bluetooth profile is greater (newer) than the version of the first bluetooth profile. The time represented by the version number in the version information of the first bluetooth profile is the same as the time represented by the version number in the version information of the second bluetooth profile, which means that the version of the first bluetooth profile is the same as the version of the first bluetooth profile.
Step S15, when it is determined that the version number in the version information of the first bluetooth profile is smaller than the version number in the version information of the second bluetooth profile, update the second bluetooth profile to the first storage area.
In an embodiment of the present application, the bluetooth profile includes version information and a profile table. The specific operation of updating the second bluetooth profile to the first storage area includes: and updating the configuration file table of the first Bluetooth configuration file into the configuration file table of the second Bluetooth configuration file, and updating the version information of the first Bluetooth configuration file into the version information of the second Bluetooth configuration file.
Step S16, initializing bluetooth according to the second bluetooth profile of the first storage area.
In the embodiment of the present application, the profile table in the bluetooth profile includes profile information of bluetooth at initialization, such as:
general Access Profile (GAP for short): how the two Bluetooth units discover each other and establish connection is defined, and the two Bluetooth units can exchange information through Bluetooth regardless of manufacturers and applications carried out by the two Bluetooth units, so that the two Bluetooth units can discover what applications are supported by each unit. All bluetooth units must support GAPs to ensure basic interoperability and coexistence.
Service Discovery Application Profile (SDAP for short): defining how to discover services supported by the bluetooth unit, the profile can be used to search for known specific services, as well as to perform general service browsing searches.
Serial Port Profile (SPP for short): defines how a virtual serial port is established between two devices and connected using bluetooth. Serial port profiles that can guarantee data rates up to 128kbit/s can be used to emulate RS-232 control signaling based serial cables on bluetooth units.
General Object Exchange Profile (GOEP for short): defining the protocols and procedures to be adopted by the applications that handle object exchanges, the GOEP-based application model (e.g. file transfer, synchronization, etc.) assumes that the links and channels have been established as described by GAP, describes the procedures for transferring data from one bluetooth device to another, and specifies how to synchronize data between the two units.
Referring to fig. 2, before step S11, the following preprocessing steps are also included.
Step S21, defining the first storage area and the second storage area.
In the embodiment of the application, two storage areas are defined in a power-down memory of the terminal device, and the two storage areas are not intersected and respectively used as a first storage area and a second storage area. The first storage area and the second storage area are used for storing Bluetooth configuration files.
Step S22, storing the first bluetooth profile in the first storage area.
In the embodiment of the application, the first storage area stores the first Bluetooth configuration file during the production so as to realize the Bluetooth function.
According to the embodiment of the application, the first storage area and the second storage area are defined in the memory of the terminal device and are respectively used for storing the first Bluetooth configuration file and the second Bluetooth configuration file, when the fact that the version number in the version information of the first Bluetooth configuration file is smaller than the version number in the version information of the second Bluetooth configuration file is found in the Bluetooth using process, the second Bluetooth configuration file is updated to the first storage area, Bluetooth is initialized according to the second Bluetooth configuration file in the first storage area, the Bluetooth is prevented from being restarted to load the Bluetooth configuration file with the new version, and therefore connection pairing with a new Bluetooth product is achieved more quickly.
Referring to fig. 3, an embodiment of the present application provides a loading apparatus for bluetooth configuration files, including an opening module 11, a transmission module 12, an obtaining module 13, a determining module 14, an updating module 15, and an initializing module 16. The loading device of the Bluetooth configuration file is used for terminal equipment, the terminal equipment is provided with a memory, and the memory is provided with a first storage area and a second storage area.
The starting module 11 is used for starting the Bluetooth.
The transmission module 12 is connected to the opening module 11. The transmission module 12 is configured to transmit the second bluetooth profile to the second storage area.
In this embodiment of the present application, the second bluetooth profile may be obtained by downloading from the internet or by other means of device transmission.
The acquisition module 13 is connected to the transmission module 12. The obtaining module 13 is configured to obtain version information of a first bluetooth profile in a first storage area and version information of a second bluetooth profile in a second storage area.
In the embodiment of the present application, the version information includes a version number, and the version number can be arranged by numbers or letters according to a predetermined rule, for example, the first two digits of 19a161536 represent a year, the third digit represents a month, the fourth and fifth digits represent a date, and the last four digits represent a time. Of course, the version number may be arranged according to other rules, which are not limited herein.
The judging module 14 is connected with the acquiring module 13. The determining module 14 is configured to determine a version number in the version information of the first bluetooth configuration file and a version number in the version information of the second bluetooth configuration file.
In the embodiment of the present application, the time represented by the version number in the version information of the first bluetooth profile is before the time represented by the version number in the version information of the second bluetooth profile, which means that the version of the first bluetooth profile is smaller (older) than the version of the first bluetooth profile; the time represented by the version number in the version information of the first bluetooth profile is after the time represented by the version number in the version information of the second bluetooth profile, which represents that the version of the first bluetooth profile is greater (newer) than the version of the first bluetooth profile; the time represented by the version number in the version information of the first bluetooth profile is the same as the time represented by the version number in the version information of the second bluetooth profile, which means that the version of the first bluetooth profile is the same as the version of the first bluetooth profile.
The updating module 15 is connected with the judging module 14. The updating module 15 is configured to update the second bluetooth configuration file to the first storage area when it is determined that the version number in the version information of the first bluetooth configuration file is smaller than the version number in the version information of the second bluetooth configuration file.
In an embodiment of the present application, the bluetooth profile includes version information and a profile table. Referring to fig. 4, the update module 15 includes a first update submodule 151 and a second update submodule 152, the first update submodule 151 is configured to update the profile table of the first bluetooth profile to the profile table of the second bluetooth profile, the second update submodule 152 is configured to update the version information of the first bluetooth profile to the version information of the second bluetooth profile, update the profile table of the first bluetooth profile to the profile table of the second bluetooth profile, and update the version information of the first bluetooth profile to the version information of the second bluetooth profile.
The initialization module 16 is connected to the update module 15. The initialization module 16 is configured to initialize bluetooth according to the second bluetooth profile of the first storage area.
In the embodiment of the present application, the profile table in the bluetooth profile includes profile information of bluetooth at initialization, such as:
general Access Profile (GAP for short): how the two Bluetooth units discover each other and establish connection is defined, and the two Bluetooth units can exchange information through Bluetooth regardless of manufacturers and applications carried out by the two Bluetooth units, so that the two Bluetooth units can discover what applications are supported by each unit. All bluetooth units must support GAPs to ensure basic interoperability and coexistence.
Service Discovery Application Profile (SDAP for short): defining how to discover services supported by the bluetooth unit, the profile can be used to search for known specific services, as well as to perform general service browsing searches.
Serial Port Profile (SPP for short): defines how a virtual serial port is established between two devices and connected using bluetooth. Serial port profiles that can guarantee data rates up to 128kbit/s can be used to emulate RS-232 control signaling based serial cables on bluetooth units.
General Object Exchange Profile (GOEP for short): defining the protocols and procedures to be adopted by the applications that handle object exchanges, the GOEP-based application model (e.g. file transfer, synchronization, etc.) assumes that the links and channels have been established as described by GAP, describes the procedures for transferring data from one bluetooth device to another, and specifies how to synchronize data between the two units.
Referring to fig. 5, the loading apparatus of the bluetooth profile further includes a defining module 17 and a storing module 18.
The defining module 17 is used for defining the first storage area and the second storage area.
In the embodiment of the application, two storage areas are defined in a power-down memory of the terminal device, and the two storage areas are not intersected and respectively used as a first storage area and a second storage area. The first storage area and the second storage area are used for storing Bluetooth configuration files.
The storage module 18 is configured to store the first bluetooth profile in the first storage area.
In the embodiment of the application, the first storage area stores the first Bluetooth configuration file during the production so as to realize the Bluetooth function.
According to the embodiment of the application, the first storage area and the second storage area are defined in the memory of the terminal device and are respectively used for storing the first Bluetooth configuration file and the second Bluetooth configuration file, when the fact that the version number in the version information of the first Bluetooth configuration file is smaller than the version number in the version information of the second Bluetooth configuration file is found in the Bluetooth using process, the second Bluetooth configuration file is updated to the first storage area, Bluetooth is initialized according to the second Bluetooth configuration file in the first storage area, the Bluetooth is prevented from being restarted to load the Bluetooth configuration file with the new version, and therefore connection pairing with a new Bluetooth product is achieved more quickly.
Referring to fig. 6, an embodiment of the present invention further provides a terminal device 200, where the terminal device 200 may be a mobile phone, a tablet, a computer, or other devices. As shown in fig. 6, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
starting Bluetooth; and
transmitting the second bluetooth profile to the second storage area;
acquiring version information of a first Bluetooth configuration file in a first storage area and version information of a second Bluetooth configuration file in a second storage area;
judging the size of the version number in the version information of the first Bluetooth configuration file and the version number in the version information of the second Bluetooth configuration file;
updating the second Bluetooth configuration file to the first storage area when the version number in the version information of the first Bluetooth configuration file is judged to be smaller than the version number in the version information of the second Bluetooth configuration file; and
initializing Bluetooth according to the second Bluetooth configuration file of the first storage area.
Referring to fig. 7, fig. 7 is a specific block diagram of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 may be used to implement the loading method of the bluetooth profile provided in the foregoing embodiment. The terminal device 300 may be a mobile phone or a tablet.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the loading method of the bluetooth profile in the above embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, functions of implementing the loading method of the bluetooth profile. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means 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 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 7, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
starting Bluetooth; and
transmitting the second bluetooth profile to the second storage area;
acquiring version information of a first Bluetooth configuration file in a first storage area and version information of a second Bluetooth configuration file in a second storage area;
judging the size of the version number in the version information of the first Bluetooth configuration file and the version number in the version information of the second Bluetooth configuration file;
updating the second Bluetooth configuration file to the first storage area when the version number in the version information of the first Bluetooth configuration file is judged to be smaller than the version number in the version information of the second Bluetooth configuration file; and
initializing Bluetooth according to the second Bluetooth configuration file of the first storage area.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods for loading a bluetooth profile provided in the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any method for loading a bluetooth profile provided in the embodiment of the present invention, beneficial effects that can be achieved by any method for loading a bluetooth profile provided in the embodiment of the present invention may be achieved, which are detailed in the foregoing embodiments and will not be described herein again. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The embodiment of the application provides a loading method and device of a Bluetooth configuration file, a storage medium and a terminal device, wherein a first storage area and a second storage area are defined in a memory of the terminal device and are respectively used for storing a first Bluetooth configuration file and a second Bluetooth configuration file, when the fact that the version number in the version information of the first Bluetooth configuration file is smaller than the version number in the version information of the second Bluetooth configuration file is found in the Bluetooth using process, the second Bluetooth configuration file is updated to the first storage area, and Bluetooth is initialized according to the second Bluetooth configuration file in the first storage area, so that the situation that the Bluetooth is restarted to load the Bluetooth configuration file with the new version is avoided, and connection and pairing with a new Bluetooth product are realized more quickly.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The method and the device for loading the bluetooth configuration file, the storage medium, and the terminal device provided in the embodiment of the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation manner of the present application, and the description of the above embodiment is only used to help understanding the technical scheme and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A loading method of a Bluetooth configuration file is applied to terminal equipment and is characterized in that the terminal equipment is provided with a memory, the memory is provided with a first storage area and a second storage area, and the loading method of the Bluetooth configuration file comprises the following steps:
acquiring version information of a first Bluetooth configuration file in a first storage area and version information of a second Bluetooth configuration file in a second storage area;
judging the size of the version number in the version information of the first Bluetooth configuration file and the version number in the version information of the second Bluetooth configuration file;
updating the second Bluetooth configuration file to the first storage area when the version number in the version information of the first Bluetooth configuration file is judged to be smaller than the version number in the version information of the second Bluetooth configuration file; and
initializing Bluetooth according to the second Bluetooth configuration file of the first storage area.
2. The method for loading bluetooth profiles according to claim 1, further comprising the following steps before the step of obtaining the version information of the first bluetooth profile in the first storage area and the version information of the second bluetooth profile in the second storage area:
starting Bluetooth; and
and transmitting the second Bluetooth configuration file to the second storage area.
3. The method for loading bluetooth profiles according to claim 2, characterized in that before the step of turning on bluetooth, it further comprises the steps of:
defining the first storage area and the second storage area; and
and storing the first Bluetooth configuration file in the first storage area.
4. The method of claim 1, wherein in the step of updating the second bluetooth profile to the first storage area, the profile table of the first bluetooth profile is updated to the profile table of the second bluetooth profile, and the version information of the first bluetooth profile is updated to the version information of the second bluetooth profile.
5. A loading device of Bluetooth configuration files is applied to terminal equipment and is characterized in that the terminal equipment is provided with a memory, the memory is provided with a first storage area and a second storage area, and the loading device of the Bluetooth configuration files comprises:
the acquisition module is used for acquiring version information of a first Bluetooth configuration file in a first storage area and version information of a second Bluetooth configuration file in a second storage area;
the judging module is used for judging the size of the version number in the version information of the first Bluetooth configuration file and the size of the version number in the version information of the second Bluetooth configuration file;
the updating module is used for updating the second Bluetooth configuration file to the first storage area when the version number in the version information of the first Bluetooth configuration file is judged to be smaller than the version number in the version information of the second Bluetooth configuration file; and
and the initialization module is used for initializing Bluetooth according to the second Bluetooth configuration file of the first storage area.
6. The apparatus for loading a bluetooth profile as claimed in claim 5, wherein the apparatus for loading a bluetooth profile further comprises:
the starting module is used for starting the Bluetooth; and
and the transmission module is used for transmitting the second Bluetooth configuration file to the second storage area.
7. The apparatus for loading a bluetooth profile as claimed in claim 6, wherein the apparatus for loading a bluetooth profile further comprises:
a defining module for defining the first storage area and the second storage area; and
and the storage module is used for storing the first Bluetooth configuration file to the first storage area.
8. The apparatus for loading bluetooth profiles as claimed in claim 5, wherein the update module comprises a first update submodule and a second update submodule, the first update submodule is configured to update the profile table of the first bluetooth profile to the profile table of the second bluetooth profile, and the second update submodule is configured to update the version information of the first bluetooth profile to the version information of the second bluetooth profile.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of loading a bluetooth profile of any of claims 1 to 4.
10. A terminal device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the loading method of the Bluetooth configuration file according to any one of claims 1 to 4.
CN201911370418.0A 2019-12-26 2019-12-26 Bluetooth configuration file loading method and device, storage medium and terminal equipment Pending CN111104186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911370418.0A CN111104186A (en) 2019-12-26 2019-12-26 Bluetooth configuration file loading method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911370418.0A CN111104186A (en) 2019-12-26 2019-12-26 Bluetooth configuration file loading method and device, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN111104186A true CN111104186A (en) 2020-05-05

Family

ID=70424678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911370418.0A Pending CN111104186A (en) 2019-12-26 2019-12-26 Bluetooth configuration file loading method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN111104186A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022068517A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Bluetooth communication system, bluetooth connection method, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system
CN106293786A (en) * 2015-05-25 2017-01-04 特变电工新疆新能源股份有限公司 A kind of FPGA configuration file update method and equipment
CN108509509A (en) * 2018-03-05 2018-09-07 广东欧珀移动通信有限公司 Webpage display process, device, mobile terminal and storage medium
CN109062790A (en) * 2018-07-19 2018-12-21 北京首汽智行科技有限公司 The upgrading test method of car-mounted terminal bluetooth firmware

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system
CN106293786A (en) * 2015-05-25 2017-01-04 特变电工新疆新能源股份有限公司 A kind of FPGA configuration file update method and equipment
CN108509509A (en) * 2018-03-05 2018-09-07 广东欧珀移动通信有限公司 Webpage display process, device, mobile terminal and storage medium
CN109062790A (en) * 2018-07-19 2018-12-21 北京首汽智行科技有限公司 The upgrading test method of car-mounted terminal bluetooth firmware

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022068517A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Bluetooth communication system, bluetooth connection method, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN111142711B (en) Firmware configuration method and device, storage medium and mobile terminal
US11023296B2 (en) Method for managing multiple operating systems in a terminal
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN111277991B (en) Operator name display method and device, mobile terminal and storage medium
CN113141575B (en) Method, device and equipment for updating tracking area list and storage medium
US10176123B2 (en) Communication method and mobile terminal
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110225106B (en) Data transmission method, device and storage medium
CN111104186A (en) Bluetooth configuration file loading method and device, storage medium and terminal equipment
CN111327343A (en) Common receiving channel radio frequency device, method and mobile terminal
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN111885591A (en) Network connection method, device, storage medium and terminal
CN112492554A (en) Data transmission method, device, storage medium and terminal
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111031038A (en) Network processing method and device, storage medium and terminal equipment
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN105278967B (en) System updating method, device and system of mobile terminal
CN111031588B (en) Network searching method, device, terminal equipment and storage medium
CN106657666B (en) mobile terminal, mobile phone ring processing method thereof and corresponding device

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