CN112969166A - Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium - Google Patents

Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium Download PDF

Info

Publication number
CN112969166A
CN112969166A CN202110141576.XA CN202110141576A CN112969166A CN 112969166 A CN112969166 A CN 112969166A CN 202110141576 A CN202110141576 A CN 202110141576A CN 112969166 A CN112969166 A CN 112969166A
Authority
CN
China
Prior art keywords
version number
bluetooth
firmware
mobile terminal
file name
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
CN202110141576.XA
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 CN202110141576.XA priority Critical patent/CN112969166A/en
Publication of CN112969166A publication Critical patent/CN112969166A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a mobile terminal Bluetooth upgrading processing method, a device, terminal equipment and a medium, wherein the method comprises the following steps: acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal; comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number; and when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal. The invention aims to judge the firmware version in advance before downloading the firmware and then decide whether to download the firmware, thereby achieving the purposes of saving the time for downloading the firmware and avoiding the network flow and providing convenience for users to use.

Description

Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a mobile terminal Bluetooth upgrading method, a mobile terminal Bluetooth upgrading device, terminal equipment and a storage medium.
Background
With the development of science and technology and the continuous improvement of the living standard of people, the use of various intelligent terminals such as smart phones is more and more popular, and the smart phones become indispensable communication tools in the life of people.
The mobile terminal upgrading Bluetooth firmware in the prior art generally adopts the steps of firstly downloading the firmware, then carrying out version comparison with the local firmware, and if the downloaded firmware version is new, upgrading to Bluetooth; considering that there is a possibility that the firmware is the latest version of the bluetooth, the time and network traffic for downloading the firmware is wasted and sometimes inconvenient for the user.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The present invention aims to determine the firmware version in advance before downloading the firmware and then determine whether to download the firmware, thereby achieving the purpose of saving the time for downloading the firmware and avoiding the network traffic, and providing convenience for the user to use.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a mobile terminal Bluetooth upgrading processing method comprises the following steps:
acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number;
and when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal.
The mobile terminal Bluetooth upgrading processing method comprises the following steps of comparing the first version number with the second version number, and judging whether the first version number is higher than the second version number:
acquiring a first file name of the Bluetooth firmware with the first version number, and acquiring a second file name of the Bluetooth firmware with the local version number of the mobile terminal as the second version number;
comparing the lengths of the first and second file names;
and when the length of the first file name is larger than that of the second file name, the first version number is judged to be higher than the second version number.
The mobile terminal bluetooth upgrade processing method, wherein the step of comparing the first version number with the second version number and judging whether the first version number is higher than the second version number further comprises:
the actual file name detected during upgrading of the Bluetooth firmware is converted into a 16-system or 2-system numerical value through transcoding in advance, and the numerical value is added with other specific numerical values before and after the numerical value and written into the specified content of the Bluetooth firmware.
The mobile terminal Bluetooth upgrading processing method comprises the steps that a first version number of a current latest Bluetooth firmware is obtained regularly; the step of acquiring the second version number of the latest Bluetooth firmware local to the mobile terminal comprises the following steps:
presetting a timer, and setting the overtime time of the timer as a first time;
when the timer is overtime, acquiring a first file name of the current latest Bluetooth firmware, and acquiring a second file name of the local latest Bluetooth firmware of the mobile terminal;
resetting the timer and waiting for the next time-out of the timer;
the first time ranges from 24 hours to 240 hours.
The mobile terminal Bluetooth upgrading processing method comprises the following steps of:
connecting the mobile terminal with a server for storing the Bluetooth firmware at a far end;
acquiring file names of all Bluetooth firmware stored in a server;
and comparing the acquired file names of all the Bluetooth firmware to obtain the first file name of the Bluetooth firmware with the latest version, wherein the file name with the longest file name length is the first file name of the Bluetooth firmware with the latest version.
The method for upgrading the Bluetooth of the mobile terminal comprises the following steps of:
acquiring file names of all Bluetooth firmware stored in the mobile terminal;
and comparing the acquired file names of all the Bluetooth firmware to obtain the file name with the longest file name length as a second file name.
The mobile terminal Bluetooth upgrading processing method comprises the following steps of controlling to download the Bluetooth firmware of the first version number when the first version number is higher than the second version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal:
the mobile terminal is connected with a server for storing the Bluetooth firmware at the far end;
controlling the Bluetooth firmware with the file name of the first file name stored in the download server to be locally downloaded to the mobile terminal;
updating the downloaded Bluetooth firmware with the first file name: resetting the Bluetooth and switching the Bluetooth to a firmware updating mode; and updating the Bluetooth firmware with the file name stored in the mobile terminal as the first file name into Bluetooth.
A mobile terminal Bluetooth upgrade processing device, wherein the device comprises:
the acquisition module is used for acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
the comparison and judgment module is used for comparing the first version number with the second version number and judging whether the first version number is higher than the second version number;
and the firmware updating control module is used for controlling the downloading of the Bluetooth firmware of the first version number when the first version number is higher than the second version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal.
A terminal device comprises a memory, a processor and a mobile terminal Bluetooth upgrading processing program which is stored on the memory and can run on the processor, wherein when the processor executes the mobile terminal Bluetooth upgrading processing program, the step of realizing any mobile terminal Bluetooth upgrading processing method is realized.
A computer readable storage medium, wherein a mobile terminal bluetooth upgrade processing program is stored thereon, and when being executed by a processor, the mobile terminal bluetooth upgrade processing program realizes the steps of any one of the mobile terminal bluetooth upgrade processing methods.
Has the advantages that: compared with the prior art, the invention provides a mobile terminal Bluetooth upgrading processing method, which comprises the following steps: acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal; comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number; and when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal. The invention aims to judge the firmware version in advance before downloading the firmware and then decide whether to download the firmware, thereby achieving the purposes of saving the time for downloading the firmware and avoiding the network flow and providing convenience for users to use.
Drawings
Fig. 1 is a flowchart of a specific implementation of a bluetooth upgrade processing method for a mobile terminal according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of acquiring device information in a mobile terminal bluetooth upgrade processing method according to embodiment 2 of the present invention.
Fig. 3 is a schematic block diagram of a mobile terminal bluetooth upgrade processing apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Today, people and various terminal devices such as mobile phones, tablets, computers and televisions are surrounded by people and various terminal devices such as videos and videos in life. Terminal devices have slowly penetrated into the corners of people's lives.
With the development of science and technology and the continuous improvement of the living standard of people, the use of various intelligent terminals such as smart phones is more and more popular, and the smart phones become indispensable communication tools in the life of people.
Bluetooth is widely used in mobile terminals such as mobile phones as a technology in wireless communication, and the bluetooth function can be applied to wireless data communication, so that various application software can call bluetooth to perform wireless data communication, for example, album application can call bluetooth to perform photo transmission with other mobile terminals.
At present, the mobile terminal application market is hot, especially aiming at wireless interconnection among mobile terminal devices, and wireless communication technologies among the mobile terminals are not limited to Bluetooth and WIFI; WIFI is generally used for connecting a mobile terminal with Internet, and the interconnection between mobile terminal devices in short distance is the most widely applied to Bluetooth.
In consideration of the fact that various applications based on the interconnection between mobile terminals are developed, the firmware in the old bluetooth may not be adapted to the new technology, and therefore, the bluetooth firmware needs to be updated to adapt the bluetooth to the latest bluetooth technology. Updating the Bluetooth firmware generally comprises the steps of downloading the firmware, comparing the firmware with the local firmware, and updating the Bluetooth if the downloaded firmware is new in version; the time to download the firmware and network traffic is wasted at this point, considering that it is likely that the firmware is already the latest version of the firmware in bluetooth.
That is, the mobile terminal in the prior art generally adopts the steps of downloading firmware, comparing the firmware with the local firmware, and upgrading to the bluetooth if the downloaded firmware is new in version; considering that there is a possibility that the firmware is the latest version of the bluetooth, the time and network traffic for downloading the firmware is wasted and sometimes inconvenient for the user.
In order to solve the problems in the prior art, the present embodiment provides a mobile terminal bluetooth upgrade processing method, and with the method of the present embodiment, the method includes: acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal; comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number; and when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal. The invention aims to judge the firmware version in advance before downloading the firmware and then decide whether to download the firmware, thereby achieving the purposes of saving the time for downloading the firmware and avoiding the network flow and providing convenience for users to use.
The firmware version of the embodiment of the invention refers to the version number of the firmware released by an official, the version number comprises the updating of an application part and the updating of a baseband part, and the main purpose of releasing the official new firmware is to repair BUG existing in the existing firmware and optimize related performance. Usually expressed in the form of a combination of numbers and letters, sometimes named according to the release time of the version, and the naming rules are defined by the production developer.
Exemplary method
Example 1
The mobile terminal bluetooth upgrade processing method of embodiment 1 of the present invention may be applied to a terminal device, and specifically as shown in fig. 1, the mobile terminal bluetooth upgrade processing method includes the following steps:
s100, acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
in the embodiment of the invention, a mobile terminal mobile phone is taken as an example to explain the invention;
specifically, the mobile terminal of the present invention may obtain the first version number of the latest bluetooth firmware from the network or the server at regular time, and obtain the version number of the latest bluetooth firmware on the network or the server.
Meanwhile, the mobile terminal of the invention can also obtain the second version number of the latest Bluetooth firmware local to the mobile terminal. Namely, the version number of the latest Bluetooth firmware which already exists in the local of the mobile terminal is acquired to be the second version number.
Step S200, comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number;
in the embodiment of the invention, the first version number is compared with the second version number, and whether the first version number is higher than the second version number is judged. Namely, whether the version number of the bluetooth firmware which can be updated on the network or at the server side, namely the first version number, is higher than the version number of the bluetooth firmware which is installed on the mobile terminal, namely the second version number, is judged.
And step S300, when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal.
In the embodiment of the invention, when the first version number is higher than the second version number, the Bluetooth firmware of the first version number is controlled to be downloaded, and the downloaded Bluetooth firmware of the first version number is updated to the mobile terminal. Specifically, when the version number of the bluetooth firmware that is updateable on the network or the server side, that is, the first version number, is higher than the version number of the bluetooth firmware that has been installed on the mobile terminal, that is, the second version number, it indicates that the version of the bluetooth firmware on the network or the server is newer than the version that has been installed locally on the mobile terminal, and the bluetooth firmware with the first version number is downloaded from the network or the server side and is updated to the mobile terminal.
In the embodiment of the invention, when the first version number is not higher than the second version number, the Bluetooth firmware of the first version number cannot be downloaded.
Therefore, the invention judges the firmware version before downloading the firmware and determines whether to download the firmware, thereby achieving the purposes of saving the time for downloading the firmware and avoiding the network flow.
Example 2
The invention is explained in more detail below by means of a further specific application example:
the method for upgrading the mobile terminal Bluetooth comprises the following steps:
s10, acquiring the first file name of the current latest Bluetooth firmware at regular time, and acquiring the second file name of the local latest Bluetooth firmware of the mobile terminal at the same time;
when the method is implemented, the Bluetooth firmware for upgrading needs to be manufactured in advance and stored in a certain server side on the network, and the mobile terminal can acquire the first file name of the current latest Bluetooth firmware at regular time.
S20, comparing the lengths of the first file name and the second file name, if so, going to step S30;
and S30, downloading the Bluetooth firmware with the first file name to the local, and updating the Bluetooth firmware.
In the invention, the lengths of the first file name and the second file name are compared, if the lengths of the first file name and the second file name are larger than the lengths of the first file name and the second file name, the Bluetooth firmware of the mobile terminal is judged to need to be upgraded, for example, the second file name of the current Bluetooth firmware of the mobile terminal is nb 123; and if the first file name of the latest Bluetooth firmware on the network or the server is nk1234, the comparison result is longer than the file name of the current Bluetooth firmware of the mobile terminal, and the new Bluetooth firmware with the first file name of nk1234 is controlled to be downloaded and updated to the mobile terminal.
In the embodiment of the invention, considering that the file name of the bluetooth firmware can have more forms, and the mobile terminal manufacturer has the problem that the traditional setting rule of the manufacturer for the setting of the bluetooth firmware can not be suitable for the specified rule sometimes, in order to solve the problem, the embodiment of the invention can adopt the setting of any form for the file name of the bluetooth firmware, convert the actual file name (the file name can be characters, English letters, characters, numbers and the like) detected during the upgrading processing of the bluetooth firmware into a 16-system or 2-system numerical value through transcoding, and write the numerical value added with specific other numerical values (such as 16-system ABCDEF1345689ABCDEF) before and after the actual file name into the specified content of the bluetooth firmware, such as the tail part; specifically, there may be a first other value, followed by the actual file name detected during the upgrade process of the transcoded bluetooth firmware, followed by a second other value; therefore, the mobile terminal manufacturer can conveniently name the Bluetooth firmware in a self-form mode, and the Bluetooth firmware upgrading processing of the invention is not influenced.
In one embodiment, the step S10 specifically includes:
s101, presetting a timer, and setting the overtime time of the timer as a first time; executing steps S102 to S104 after the timer is overtime;
s102, acquiring a first file name of the current latest Bluetooth firmware;
step S102 specifically includes: the mobile terminal is connected with a server for storing the Bluetooth firmware at the far end; acquiring file names of all Bluetooth firmware stored in a server; and comparing the acquired file names of all the Bluetooth firmware to obtain the file name with the longest file name length as the first file name. And comparing the number of the characters of the file names of all the acquired Bluetooth firmware files to obtain the file name with the maximum number of the characters in the file names as the first file name.
Namely, the Bluetooth firmware name with the latest version is acquired from a server for storing the Bluetooth firmware at a remote end and is a first file name.
S103, simultaneously acquiring a second file name of the latest local Bluetooth firmware of the mobile terminal;
wherein, the step S103 specifically includes: acquiring file names of all Bluetooth firmware stored in the mobile terminal; and comparing the acquired file names of all the Bluetooth firmware to obtain the file name with the longest file name length as a second file name. And comparing the number of the characters of the file names of all the acquired Bluetooth firmware files to obtain a file name with the maximum number of characters in the file names as a second file name.
And S104, resetting the timer and waiting for the next time-out of the timer.
In an embodiment of the present invention, the first time may be 24 hours to 240 hours. Preferably, the first time is 120 hours.
In this embodiment, the step S20 specifically includes:
and comparing the number of characters of the first file name with the number of characters of the second file name, if the number of characters of the first file name is more than that of characters of the second file name, entering S30, otherwise, not operating.
In one embodiment, the step S30 specifically includes:
s301, connecting with a server for storing the Bluetooth firmware at the far end;
s302, downloading the Bluetooth firmware with the file name of the first file name stored in the server to the local mobile terminal;
and S303, updating the Bluetooth firmware.
Step S303 specifically includes: resetting the Bluetooth and switching the Bluetooth to a firmware updating mode; and updating the Bluetooth firmware with the file name stored in the mobile terminal as the first file name into Bluetooth.
Exemplary device
As shown in fig. 3, an embodiment of the present invention provides a mobile terminal bluetooth upgrade processing apparatus, including:
the acquisition module 10 is configured to acquire a first version number of a current latest bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
a comparison and judgment module 20, configured to compare the first version number with a second version number, and judge whether the first version number is higher than the second version number;
the firmware update control module 30 is configured to control downloading of the bluetooth firmware of the first version number when the first version number is higher than the second version number, and update the downloaded bluetooth firmware of the first version number to the mobile terminal, which is specifically described above.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 4. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a Bluetooth module which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to realize a mobile terminal Bluetooth upgrading processing method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the Bluetooth module of the terminal equipment is arranged in the terminal equipment in advance.
It will be understood by those skilled in the art that the block diagram of fig. 4 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a mobile terminal bluetooth upgrade processing program stored in the memory and executable on the processor, and when the processor executes the mobile terminal bluetooth upgrade processing program, the following operation instructions are implemented:
acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number;
and when the first version number is higher than the second version number, controlling to download the bluetooth firmware of the first version number, and updating the downloaded bluetooth firmware of the first version number to the mobile terminal, specifically as described above.
Wherein, the step of comparing the first version number with the second version number and judging whether the first version number is higher than the second version number comprises the following steps:
acquiring a first file name of the Bluetooth firmware with the first version number, and acquiring a second file name of the Bluetooth firmware with the local version number of the mobile terminal as the second version number;
comparing the lengths of the first and second file names;
and when the length of the first file name is larger than that of the second file name, the first version number is judged to be higher than the second version number.
Wherein, the step of comparing the first version number with the second version number and judging whether the first version number is higher than the second version number further comprises:
the actual file name detected during upgrading of the Bluetooth firmware is converted into a 16-system or 2-system numerical value through transcoding in advance, and the numerical value is added with other specific numerical values before and after the numerical value and written into the specified content of the Bluetooth firmware.
The method comprises the steps that a first version number of the current latest Bluetooth firmware is obtained regularly; the step of acquiring the second version number of the latest Bluetooth firmware local to the mobile terminal comprises the following steps:
presetting a timer, and setting the overtime time of the timer as a first time;
when the timer is overtime, acquiring a first file name of the current latest Bluetooth firmware, and acquiring a second file name of the local latest Bluetooth firmware of the mobile terminal;
resetting the timer and waiting for the next time-out of the timer;
the first time ranges from 24 hours to 240 hours.
The step of acquiring the current latest first version number of the Bluetooth firmware at regular time comprises the following steps:
connecting the mobile terminal with a server for storing the Bluetooth firmware at a far end;
acquiring file names of all Bluetooth firmware stored in a server;
and comparing the acquired file names of all the Bluetooth firmware to obtain the first file name of the Bluetooth firmware with the latest version, wherein the file name with the longest file name length is the first file name of the Bluetooth firmware with the latest version.
The step of acquiring a second version number of the latest Bluetooth firmware local to the mobile terminal comprises the following steps:
acquiring file names of all Bluetooth firmware stored in the mobile terminal;
and comparing the acquired file names of all the Bluetooth firmware to obtain the file name with the longest file name length as a second file name.
When the first version number is higher than the second version number, the step of controlling to download the bluetooth firmware of the first version number and updating the downloaded bluetooth firmware of the first version number to the mobile terminal comprises the following steps:
the mobile terminal is connected with a server for storing the Bluetooth firmware at the far end;
controlling the Bluetooth firmware with the file name of the first file name stored in the download server to be locally downloaded to the mobile terminal;
updating the downloaded Bluetooth firmware with the first file name: resetting the Bluetooth and switching the Bluetooth to a firmware updating mode; and updating the Bluetooth firmware with the file name stored in the mobile terminal as the first file name into Bluetooth.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a mobile terminal bluetooth upgrade processing method, apparatus, terminal device and storage medium, the method includes: acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal; comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number; and when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal. The invention aims to judge the firmware version in advance before downloading the firmware and then decide whether to download the firmware, thereby achieving the purposes of saving the time for downloading the firmware and avoiding the network flow and providing convenience for users to use.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A mobile terminal Bluetooth upgrading processing method is characterized by comprising the following steps:
acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
comparing the first version number with a second version number, and judging whether the first version number is higher than the second version number;
and when the first version number is higher than the second version number, controlling to download the Bluetooth firmware of the first version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal.
2. The method for upgrading the bluetooth of the mobile terminal according to claim 1, wherein the step of comparing the first version number with the second version number and determining whether the first version number is higher than the second version number comprises:
acquiring a first file name of the Bluetooth firmware with the first version number, and acquiring a second file name of the Bluetooth firmware with the local version number of the mobile terminal as the second version number;
comparing the lengths of the first and second file names;
and when the length of the first file name is larger than that of the second file name, the first version number is judged to be higher than the second version number.
3. The method for upgrading the bluetooth of the mobile terminal according to claim 2, wherein the step of comparing the first version number with the second version number and determining whether the first version number is higher than the second version number further comprises:
the actual file name detected during upgrading of the Bluetooth firmware is converted into a 16-system or 2-system numerical value through transcoding in advance, and the numerical value is added with other specific numerical values before and after the numerical value and written into the specified content of the Bluetooth firmware.
4. The mobile terminal bluetooth upgrade processing method according to claim 2, wherein the first version number of the current latest bluetooth firmware is obtained at regular time; the step of acquiring the second version number of the latest Bluetooth firmware local to the mobile terminal comprises the following steps:
presetting a timer, and setting the overtime time of the timer as a first time;
when the timer is overtime, acquiring a first file name of the current latest Bluetooth firmware, and acquiring a second file name of the local latest Bluetooth firmware of the mobile terminal;
resetting the timer and waiting for the next time-out of the timer;
the first time ranges from 24 hours to 240 hours.
5. The bluetooth upgrade processing method for a mobile terminal according to claim 2, wherein the step of periodically acquiring the current latest first version number of the bluetooth firmware comprises:
connecting the mobile terminal with a server for storing the Bluetooth firmware at a far end;
acquiring file names of all Bluetooth firmware stored in a server;
and comparing the acquired file names of all the Bluetooth firmware to obtain the first file name of the Bluetooth firmware with the latest version, wherein the file name with the longest file name length is the first file name of the Bluetooth firmware with the latest version.
6. The bluetooth upgrade processing method of a mobile terminal according to claim 2, wherein the step of obtaining the second version number of the latest bluetooth firmware local to the mobile terminal comprises:
acquiring file names of all Bluetooth firmware stored in the mobile terminal;
and comparing the acquired file names of all the Bluetooth firmware to obtain the file name with the longest file name length as a second file name.
7. The method for upgrading bluetooth of a mobile terminal according to claim 2, wherein the step of controlling to download the bluetooth firmware of the first version number and update the downloaded bluetooth firmware of the first version number to the mobile terminal when the first version number is higher than the second version number includes:
the mobile terminal is connected with a server for storing the Bluetooth firmware at the far end;
controlling the Bluetooth firmware with the file name of the first file name stored in the download server to be locally downloaded to the mobile terminal;
updating the downloaded Bluetooth firmware with the first file name: resetting the Bluetooth and switching the Bluetooth to a firmware updating mode; and updating the Bluetooth firmware with the file name stored in the mobile terminal as the first file name into Bluetooth.
8. A mobile terminal Bluetooth upgrade processing device, the device comprising:
the acquisition module is used for acquiring a first version number of the current latest Bluetooth firmware at regular time; acquiring a second version number of the local latest Bluetooth firmware of the mobile terminal;
the comparison and judgment module is used for comparing the first version number with the second version number and judging whether the first version number is higher than the second version number;
and the firmware updating control module is used for controlling the downloading of the Bluetooth firmware of the first version number when the first version number is higher than the second version number, and updating the downloaded Bluetooth firmware of the first version number to the mobile terminal.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a mobile terminal bluetooth upgrade processing program stored in the memory and operable on the processor, and when the processor executes the mobile terminal bluetooth upgrade processing program, the steps of the mobile terminal bluetooth upgrade processing method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, having stored thereon a mobile terminal bluetooth upgrade processing program, which, when executed by a processor, performs the steps of the mobile terminal bluetooth upgrade processing method according to any one of claims 1 to 7.
CN202110141576.XA 2021-02-02 2021-02-02 Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium Pending CN112969166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110141576.XA CN112969166A (en) 2021-02-02 2021-02-02 Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110141576.XA CN112969166A (en) 2021-02-02 2021-02-02 Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium

Publications (1)

Publication Number Publication Date
CN112969166A true CN112969166A (en) 2021-06-15

Family

ID=76273248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110141576.XA Pending CN112969166A (en) 2021-02-02 2021-02-02 Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN112969166A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095788A (en) * 2021-11-16 2022-02-25 深圳康佳电子科技有限公司 Wifi drive and firmware hot update processing method, device, terminal and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006313560A (en) * 1996-11-29 2006-11-16 Hitachi Ltd Microcomputer control system
CN102662699A (en) * 2012-03-27 2012-09-12 惠州Tcl移动通信有限公司 Method for updating NFC (Near Field Communication) firmware of mobile terminal and mobile terminal
CN111459536A (en) * 2020-03-31 2020-07-28 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth firmware updating method and device, terminal equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006313560A (en) * 1996-11-29 2006-11-16 Hitachi Ltd Microcomputer control system
CN102662699A (en) * 2012-03-27 2012-09-12 惠州Tcl移动通信有限公司 Method for updating NFC (Near Field Communication) firmware of mobile terminal and mobile terminal
CN111459536A (en) * 2020-03-31 2020-07-28 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth firmware updating method and device, terminal equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095788A (en) * 2021-11-16 2022-02-25 深圳康佳电子科技有限公司 Wifi drive and firmware hot update processing method, device, terminal and medium

Similar Documents

Publication Publication Date Title
US9134989B2 (en) System and method for updating dataset versions resident on a wireless device
CN106897086B (en) Method, device and system for upgrading robot operating system
JP4813331B2 (en) Mobile electronic device
CN101662533B (en) Software updating system and method
US20100235617A1 (en) System recovery method and embedded system with automatic recovery function
EP3007062A1 (en) Firmware upgrade method and apparatus, and communication device
US20030084206A1 (en) Method for installing two or more operating systems/user interfaces into an electronic device and an electronic device
CN103685495A (en) Method and system for upgrading software
JP2003032381A (en) Information communication terminal and program
CN106951284B (en) User interface upgrading method and device based on android system application and intelligent terminal
CN106663016A (en) Upgrade method, apparatus and device for terminal device
CN110851154B (en) Computer-implemented method, system, and medium for updating read-only memory code
CN109117153B (en) Application processing method, device, terminal and storage medium
CN111966372A (en) Firmware upgrading method, device and equipment for portable printer
JP2003216430A (en) Software automatic renewal system and terminal
CN112969166A (en) Mobile terminal Bluetooth upgrading processing method and device, terminal equipment and medium
CN112148337A (en) Firmware upgrading method and device
US7401127B2 (en) Communication terminal device and program
CN105824660A (en) Application program updating method and terminal
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN112416384A (en) Software upgrading method and device and computer equipment
CN111651067A (en) Terminal control method, terminal and storage medium
US7991390B2 (en) Program updating method of wireless communication terminal and wireless communication terminal using the same
CN107908634B (en) Cache control method of browser and mobile terminal
US20220334820A1 (en) System and method for intermediate software upgrades for information handling systems

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: 20210615

RJ01 Rejection of invention patent application after publication