CN110972081B - Wrist strap equipment and upgrading method and system thereof - Google Patents
Wrist strap equipment and upgrading method and system thereof Download PDFInfo
- Publication number
- CN110972081B CN110972081B CN201911206919.5A CN201911206919A CN110972081B CN 110972081 B CN110972081 B CN 110972081B CN 201911206919 A CN201911206919 A CN 201911206919A CN 110972081 B CN110972081 B CN 110972081B
- Authority
- CN
- China
- Prior art keywords
- wrist strap
- upgrading
- wristband
- version
- version number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/60—Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a wrist strap device and an upgrading method and a system thereof, when an upgrading event is triggered, a first wrist strap device can send a first BLE broadcast message comprising the version number of the self system, after a second BLE broadcast message comprising the version number of the second wrist strap device is received, the self system version is compared with the system version of the second wrist strap device, and if the self system version is high, a first upgrading packet of the self is sent to the second wrist strap device to realize system upgrading of the second wrist strap device; and if the system version of the wrist band device is low, receiving a second upgrading packet sent by a second wrist band device with a high system version to upgrade the system of the wrist band device. Therefore, by adopting the upgrading mode, once the upgrading event is triggered, the automatic upgrading of the system can be realized without user operation subsequently, the method is particularly suitable for the old and children, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of equipment upgrading, in particular to a wrist strap equipment and an upgrading method and system thereof.
Background
In recent years, wristband devices (e.g., smartwatches, bracelets, etc.) have been rapidly developed. Use intelligent wrist-watch as an example, intelligent wrist-watch includes children's intelligence wrist-watch, adult's intelligence wrist-watch and old man intelligence wrist-watch etc. and every section intelligence wrist-watch can carry out corresponding function extension and function update according to its development, and wherein, the function is including reminding, navigation and detection etc. consequently, often need upgrade the system of intelligent wrist-watch. In the prior art, usually, a corresponding App (Application) is downloaded on a terminal, and then corresponding operation is performed on the App to upgrade a system of the smart watch, so that the old and children are more troublesome, and user experience is poor.
Disclosure of Invention
The invention aims to provide a wrist strap device and an upgrading method and system thereof.
In order to solve the above technical problem, the present invention provides an upgrading method for a wristband device, which is applied to a first wristband device, and includes:
when an upgrade event is triggered, sending a first BLE broadcast message including a first version number of the own system;
determining whether a second BLE broadcast message sent by a second wristband device is received, wherein the second BLE broadcast message comprises a second version number of a system of the second wristband device;
if yes, judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number;
if the number of the first upgrade packages is higher than the number of the second wrist strap devices, the first upgrade packages of the second wrist strap devices are sent to the second wrist strap devices;
and if the number of the mobile terminals is less than the preset value, receiving a second upgrading packet sent by the second wrist band device, and upgrading the mobile terminals by the second upgrading packet.
Preferably, the first BLE broadcast message further includes type information of the first wristband device, the second BLE broadcast message further includes type information of a second wristband device;
judging whether the system version of the wristband device is higher than the system version of the second wristband device or not based on the first version number and the second version number, and further comprising:
judging whether the type of the wrist strap device is the same as that of the second wrist strap device or not based on the type information of the first wrist strap device and the type information of the second wrist strap device;
if yes, the step of judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number is carried out.
Preferably, the first BLE broadcast message and the second BLE broadcast message each further include a message transmission power;
the upgrading method further comprises the following steps:
determining a distance between itself and the second wristband device based on the message transmit power;
and prompting the distance.
Preferably, an upgrade event is triggered, comprising:
and determining that the user is performing the shaking action through acceleration data collected by the acceleration sensor of the user.
Preferably, before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
sending first prompt information of whether upgrading is carried out to the second wrist strap equipment for prompting;
if a second upgrading confirmation message returned by the second wrist strap equipment after receiving a second upgrading confirmation instruction sent by a user is received, the step of sending a first upgrading packet of the second wrist strap equipment to the second wrist strap equipment is carried out;
before receiving the second upgrade package sent by the second wristband device, the method further includes:
receiving second prompt information which is sent by the second wrist strap equipment and is used for prompting whether to upgrade;
and if a first upgrading confirmation instruction sent by the user is received, sending a first upgrading confirmation message to the second wrist strap equipment.
Preferably, when a plurality of second wristband devices are provided, the first prompt information includes the first version number, and the second prompt information includes a second version number;
before prompting the second prompting information whether the second wrist strap device is upgraded or not, the method further comprises the following steps:
judging whether the system version of the wrist strap device is lower than the system versions of the second wrist strap devices; if so, selecting a second wrist strap device with the highest system version from a plurality of second wrist strap devices which send second prompt messages;
taking the second prompt information sent by the selected second wrist strap device as the information to be prompted;
otherwise, directly using the received second prompting information whether the second wrist band device is upgraded or not as the information to be prompted.
Preferably, before receiving the second upgrade package sent by the second wristband device, the method further includes:
judging whether the system version of the wrist strap device is lower than the system versions of the second wrist strap devices;
if so, selecting a second wristband device with the highest system version from the plurality of second wristband devices, and sending a first upgrading confirmation message to the selected second wristband device, so that the selected second wristband device sends a second upgrading package after receiving the first upgrading confirmation message;
otherwise, directly sending a first upgrading confirmation message to second wrist strap equipment with the system version higher than the system version of the second wrist strap equipment;
before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
and receiving a second upgrading confirmation message sent by the second wrist strap equipment.
Preferably, before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
determining a sub data packet to be upgraded, which is different from the system packet corresponding to the second version number, in the system packet corresponding to the first version number based on the first version number and the second version number;
judging whether the proportion of the sub-data packet to be upgraded in the system packet corresponding to the first version number is larger than a proportion threshold value;
if so, taking the system package corresponding to the first version number as a first upgrade package;
if not, the sub-data packet to be upgraded is used as a first upgrade packet.
In order to solve the above technical problem, the present invention further provides an upgrade system for a wristband device, which is applied to a first wristband device, and includes:
the broadcasting module is used for sending a first BLE broadcasting message comprising a first version number of a self system when an upgrading event is triggered;
a first determining module, configured to determine whether a second BLE broadcast message sent by a second wristband device is received, where the second BLE broadcast message includes a second version number of a system of the second wristband device; if yes, triggering a version comparison module;
the version comparison module is used for judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number; if the number is higher than the preset value, triggering an upgrade package sending module; if the number is less than the preset value, triggering an upgrading module;
the upgrading package sending module is used for sending a first upgrading package of the upgrading package sending module to the second wrist strap equipment;
and the upgrading module is used for receiving a second upgrading packet sent by the second wrist strap equipment and upgrading the second wrist strap equipment by the second upgrading packet.
In order to solve the above technical problem, the present invention also provides a wristband apparatus, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the upgrading method of the wrist strap equipment when the computer program is executed.
The invention provides an upgrading method of wrist strap equipment, wherein when an upgrading event is triggered, first wrist strap equipment can send a first BLE broadcast message comprising the version number of a self system, after a second BLE broadcast message comprising the version number of the second wrist strap equipment is received, the self system version is compared with the system version of the second wrist strap equipment, and if the self system version is high, a self first upgrading packet is sent to the second wrist strap equipment to realize system upgrading of the second wrist strap equipment; and if the system version of the wrist band device is low, receiving a second upgrading packet sent by a second wrist band device with a high system version to upgrade the system of the wrist band device. Therefore, by adopting the upgrading mode, once the upgrading event is triggered, the automatic upgrading of the system can be realized without user operation subsequently, the method is particularly suitable for the old and children, and the user experience is improved.
The invention also provides an upgrading system of the wrist strap equipment and the wrist strap equipment, and the upgrading system and the wrist strap equipment have the same beneficial effects as the upgrading method of the wrist strap equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a process flow diagram of an upgrading method of a wristband apparatus according to the present invention;
figure 2 is a block diagram of a BLE broadcast message provided in the present invention;
fig. 3 is a schematic structural diagram of an upgrading system of a wristband device according to the present invention;
fig. 4 is a schematic structural diagram of a wristband apparatus according to the present invention.
Detailed Description
The core of the invention is to provide a wrist strap device and an upgrading method and system thereof, by adopting the upgrading mode, once an upgrading event is triggered, the automatic upgrading of the system can be realized without user operation subsequently, the wrist strap device is especially suitable for old people and children, and the user experience is improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a process flow chart of an upgrading method for a wristband device according to the present invention.
The upgrading method is applied to a first wristband device and comprises the following steps:
s11: when an upgrade event is triggered, sending a first BLE (Bluetooth Low Energy) broadcast message including a first version number of the own system;
first, it should be noted that, in the present application, the wristband device may be a watch, a bracelet, or the like. In addition, the upgrading method provided by the application is applied to the first wrist strap device and also applied to the second wrist strap device, and the first wrist strap device and the second wrist strap device are in a peer-to-peer relationship. The method for upgrading the second wrist strap device is described in terms of standing on the first wrist strap device, the upgrading method of the second wrist strap device is the same as that of the first wrist strap device, and the method for upgrading the second wrist strap device is not repeated and can refer to the upgrading method of the first wrist strap device.
In this application, the premise of whether the first wristband device is upgraded is to determine whether an upgrade event is triggered, where the upgrade event may be: receiving an upgrade instruction sent by a user through a mechanical key or button or a touch screen on the first wristband device, or detecting that the user performs a shaking action, which specific upgrade event is adopted is not particularly limited in this application. And when determining that the upgrading event is triggered, the first wristband device sends a first BLE broadcast message outwards, and considering that the wristband type product generally adopts a system upgrading mode during upgrading, the first BLE broadcast message comprises a first version number of the system of the wristband device. When the first wristband device and the second wristband device perform BLE broadcasting, it is required that the distance between the first wristband device and the second wristband device is relatively short, for example, not more than 3 m. In addition, in order to realize system upgrade of the wristband device, the time difference between the triggering of the upgrade events of the first wristband device and the second wristband device is as small as possible (for example, not more than 10s), and is preferably zero, for example, the first wristband device and the second wristband device perform "shake-and-shake" simultaneously, although the specific value of the time difference between the triggering of the upgrade events is not particularly limited in the present application and is determined according to the actual situation.
S12: judging whether a second BLE broadcast message sent by the second wrist strap device is received, wherein the second BLE broadcast message comprises a second version number of a system of the second wrist strap device; if yes, go to S13;
as mentioned above, the first wristband device and the second wristband device are in a peer-to-peer relationship, and when the first wristband device sends out a first BLE broadcast message, the second wristband device also sends out a second BLE broadcast message after determining that an upgrade event is triggered, where the second BLE broadcast message includes a second version number of a system of the second wristband device. If the first wristband device and the second wristband device are within a communication range (e.g., a bluetooth communication range), the first wristband device may receive the second BLE broadcast message sent by the second wristband device, and accordingly, the second wristband device may also receive the first BLE broadcast message sent by the first wristband device.
S13: judging whether the system version of the wristband device is higher than that of the second wristband device or not based on the first version number and the second version number, if so, entering S14, and if not, entering S15;
s14: sending the first upgrade package of the mobile terminal to second wrist strap equipment;
s15: and receiving a second upgrading packet sent by the second wrist strap equipment, and upgrading the second upgrading packet.
After receiving the second BLE broadcast message, the first wristband device judges whether the system version of the first wristband device is higher than that of the second wristband device or not according to the first version number and the second version number, if so, the system version of the second wristband device needs to be upgraded, and at the moment, the first wristband device sends a first upgrade package of the first wristband device to the second wristband device so that the second wristband device can upgrade the system of the second wristband device through the first upgrade package; if the number of the mobile terminals is less than the number of the mobile terminals, it indicates that the mobile terminals need to be upgraded, and at this time, the first wristband device receives a second upgrade package sent by the second wristband device and upgrades the mobile terminals through the second upgrade package.
In addition, in practical application, if the system version is judged to be the same as that of the second wristband device according to the first version number and the second version number, it is indicated that the first wristband device and the second wristband device do not need to be upgraded at this time, and the first wristband device may not perform any processing, or the first wristband device sends prompt information with the same version to the second wristband device so that the second wristband device prompts the prompt information with the same version; meanwhile, the first wrist strap device can also receive prompt information with the same version sent by the second wrist strap device, and the first wrist strap device can prompt the prompt information with the same version. Wherein the above mentioned prompt may be, but not limited to, displayed on the display screen of the wristband device.
In the present application, one or more second wristband apparatuses may be provided. When the second wrist strap device is multiple, the first wrist strap device receives second BLE broadcast messages sent by the multiple second wrist strap devices, the first wrist strap device compares the system version of the first wrist strap device with the system versions of the second wrist strap devices in sequence, if the system versions are higher than the system versions, the first upgrade package of the first wrist strap device is sent to the corresponding second wrist strap device, and if the system versions are lower than the system versions, the second upgrade package sent by the corresponding second wrist strap device is received. If the system version of the first wristband device is lower than the system versions of the plurality of second wristband devices, the first wristband device may receive the second upgrade packages sent by the plurality of wristband devices, and the first wristband device may select the corresponding second upgrade package to upgrade based on a preset rule, for example, select the first received second upgrade package to upgrade, or select the second upgrade package with the highest version to upgrade, and the like, which is not particularly limited herein.
In summary, by adopting the upgrading method provided by the application, once the upgrading event is triggered, the automatic upgrading of the system can be realized without user operation subsequently, and the upgrading method is particularly suitable for the old and children, and improves the user experience.
On the basis of the above-described embodiment:
as a preferred embodiment, the first BLE broadcast message further includes type information of the first wristband device, and the second BLE broadcast message further includes type information of the second wristband device;
whether the system version of the wristband device is higher than that of the second wristband device or not is judged based on the first version number and the second version number, and the method further comprises the following steps:
judging whether the type of the wrist strap device is the same as that of the second wrist strap device or not based on the type information of the first wrist strap device and the type information of the second wrist strap device;
if yes, the step of judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number is carried out.
Considering that the system of the wristband devices is generally related to its type, if the type of two wristband devices is the same, the system of the two wristband devices is also generally the same. In this regard, in this embodiment, a comparison of the types of the first wristband device and the second wristband device is also performed before the system version comparison is performed between the first wristband device and the second wristband device. Specifically, the first BLE broadcast message further includes type information of the first wristband device, and the second BLE broadcast message further includes type information of the second wristband device. The first wristband device judges whether the type of the first wristband device is the same as that of the second wristband device or not based on the type information of the first wristband device and the type information of the second wristband device, and subsequent system version comparison is performed only under the condition that the types of the first wristband device and the second wristband device are the same, otherwise, subsequent system version comparison is not performed. Therefore, through the mode, correct upgrading of the wrist strap equipment can be guaranteed, and the upgrading reliability of the wrist strap equipment is improved.
As a preferred embodiment, the first BLE broadcast message and the second BLE broadcast message each further include a message transmission power;
the upgrading method further comprises the following steps:
determining a distance between itself and the second wristband device based on the message transmit power;
and prompting the distance.
Considering that some communication modes require a distance between the wrist band devices, for example, the BLE bluetooth communication mode requires a relatively short distance between the wrist band devices. It is also contemplated that the first wristband device and the second wristband device may handshake first when establishing communication and adjust the transmit power of subsequently transmitted messages based on the signal strength of the handshake signal received at the time of the handshake. Specifically, if the signal strength of the received handshake signal is strong, it indicates that the distance between the first wristband device and the second wristband device is relatively short, and reliable transmission of subsequent messages can be ensured without too much message transmission power; if the signal strength of the received handshake signal is weak, which indicates that the distance between the first wristband device and the second wristband device is relatively long, a large message transmission power is required to ensure reliable transmission of subsequent messages. It can be seen that the message transmit power is inversely related to the distance between the two wristband devices.
Based on this, in order to facilitate a user to perform distance adjustment according to a current distance between the wristband devices to ensure subsequent reliable upgrade, in this embodiment, when the first wristband device sends the first BLE broadcast message, the first BLE broadcast message further includes message transmission power; likewise, the message transmit power is also included in the second BLE broadcast message sent by the second wristband device. After the first wrist strap device obtains the message transmitting power, the distance between the first wrist strap device and the second wrist strap device can be obtained according to the message transmitting power and the preset power distance mapping relation, and the distance is prompted. The prompt may be, but is not limited to being, displayed on the display of the first wristband device. The user may then bring the first wristband device closer to the second wristband device after seeing a greater distance.
Therefore, by the mode, a user can judge whether to adjust the distance between the first wrist strap device and the second wrist strap device according to the current distance between the first wrist strap device and the second wrist strap device, and the upgrading reliability is further improved.
Referring to fig. 2, fig. 2 is a structural diagram of a BLE broadcast message according to the present invention.
The UUID (Universally Unique Identifier) is a fixed field, which identifies the type of the wristband device, for example, 0100100001001000 is fixed, if the UUIDs of two wristband devices are the same, it indicates that the two wristband devices are of the same type, otherwise, it indicates that the two wristband devices are not of the same type.
The version number is divided into a Major version number (Major) and a Minor version number (Minor), when comparing the version numbers, the Major version number and the Minor version number may be converted into numerical values (for example, according to a defined conversion rule: Major version x 100+ Minor version), and only when the Major version number and the Minor version number are the same (corresponding to the same converted numerical values), the two versions are the same, or if the two version numbers are different, the two versions are different.
TX power denotes message transmit power.
In one specific implementation, the number of bytes of Data may be 22 bytes, where UUID is 16 bytes, and major version number, minor version number, and TX power are all 2 bytes.
As a preferred embodiment, the upgrade event is triggered, including:
and determining that the user is performing the shaking action through acceleration data collected by the acceleration sensor of the user.
In the above embodiments, it is mentioned that the triggering of the upgrade event in the present application may be implemented in various ways, except that the triggering may be implemented by an upgrade instruction sent by an existing or additionally added mechanical key or button on the first wristband device or a touch screen, or may be implemented by a user performing a shaking action, which, of course, may also be implemented in other ways, and the present application is not limited in particular herein.
Specifically, in this embodiment, when the user performs a shaking motion, the acceleration sensor in the first wristband device detects corresponding acceleration data, and determines whether the user performs the shaking motion by combining a corresponding algorithm according to the acceleration data, and if so, indicates that the user needs to perform a wristband device upgrading operation. If not, no processing is carried out. Here, the shaking motion may be specifically "shake-shake". The algorithm may be set according to the characteristics of the swing motion, and the present application is not limited thereto. Whether the upgrading event is triggered or not is set through shaking, the misjudgment rate is low, and the upgrading reliability is further improved.
As a preferred embodiment, before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
sending first prompt information of whether upgrading is carried out to the second wrist strap equipment for prompting;
if a second upgrading confirmation message returned by the second wrist strap equipment after receiving a second upgrading confirmation instruction sent by the user is received, the step of sending the first upgrading packet of the second wrist strap equipment to the second wrist strap equipment is carried out;
before receiving the second upgrade package sent by the second wristband device, the method further includes:
receiving second prompting information whether the second wrist strap equipment is upgraded or not and prompting the second wrist strap equipment;
and if a first upgrading confirmation instruction sent by the user is received, sending a first upgrading confirmation message to the second wrist strap equipment.
Specifically, as long as the system version of the first wristband device and the system version of the second wristband device are different, it is indicated that the system of the wristband device with the low system version needs to be upgraded. If the system version of the first wrist strap device is higher than that of the second wrist strap device, the first wrist strap device sends a first upgrade package of the first wrist strap device to the second wrist strap device, and otherwise, the first wrist strap device receives a second upgrade package sent by the second wrist strap device.
In order to further improve user experience, in this embodiment, before the first wristband device sends the first upgrade package of itself to the second wristband device, a first prompt message inquiring whether to upgrade is sent to the second wristband device, so that the second wristband device prompts the first prompt message, if the second wristband device receives a second upgrade confirmation instruction sent by the user, a second upgrade confirmation message is returned to the first wristband device, and the first wristband device sends the first upgrade package of itself to the second wristband device after receiving the second upgrade confirmation message. Similarly, the second wristband device also performs the above operation before sending the second upgrade package, and the first wristband device receives the second prompt message sent by the second wristband device whether to upgrade or not, and prompts the second prompt message. And if the first wrist strap equipment receives a first upgrading confirmation instruction sent by the user, sending a first upgrading confirmation message to the second wrist strap equipment, so that the second wrist strap equipment sends a second upgrading package after receiving the first upgrading confirmation message.
In addition, if the second wristband device receives a second upgrade canceling instruction sent by the user, a second upgrade canceling message is returned to the first wristband device, and the first wristband device does not send the first upgrade package of the first wristband device to the second wristband device after receiving the second upgrade canceling message. And if the first wristband equipment receives a first upgrade canceling instruction sent by the user, sending a first upgrade canceling message to the second wristband equipment so that the second wristband equipment does not send a second upgrade package to the first wristband equipment.
Therefore, through the mode, the wristband equipment with the low system version is continuously upgraded only when the user agrees to upgrade, and the user experience is improved.
As a preferred embodiment, when the number of the second wristband devices is plural, the first prompt information includes the first version number, and the second prompt information includes a second version number;
before prompting the second prompting information whether the second wrist strap device is upgraded or not, the method further comprises the following steps:
judging whether the system version of the wrist strap device is lower than the system versions of the second wrist strap devices;
if so, selecting a second wrist strap device with the highest system version from a plurality of second wrist strap devices which send second prompt messages;
taking the second prompt information sent by the selected second wrist strap device as the information to be prompted;
otherwise, directly using the received second prompting information whether the second wrist band device is upgraded or not as the information to be prompted.
Considering that there may be a plurality of second wristband devices with a system version higher than that of the second wristband device itself, in this case, if no selection is made, the first wristband device receives the second upgrade packages sent by the plurality of second wristband devices, so that the upgrade time is longer, the upgrade efficiency is lower, and the user experience is reduced.
In order to solve the above technical problem, in this embodiment, after receiving the second prompting message sent by the second wristband device for whether to upgrade, before prompting the second prompting message, it is first determined whether the system version of the first wristband device is lower than the system versions of the plurality of second wristband devices, and if so, it is determined that the first wristband device will receive the second prompting messages sent by the plurality of second wristband devices with the system version higher than the system version of the first wristband device, at this time, the first wristband device selects the second wristband device with the highest system version from the plurality of second wristband devices, and uses the second prompting message sent by the second wristband device as the message to be prompted, so as to prompt the message to be prompted subsequently, and as a result, only one second prompting message in front of the user is displayed in this manner, and the second prompting message includes the second version number of the system of the second wristband device, it is convenient for the user to know to which version the system of the first wristband device is about to be upgraded. Accordingly, after receiving the first upgrade confirmation instruction sent by the user, the first upgrade confirmation message is sent to the second wristband device with the highest system version.
If not, the first wrist strap device only receives second prompt information sent by a second wrist strap device higher than the system of the first wrist strap device, and the second prompt information is directly used as the information to be prompted so as to prompt the information to be prompted subsequently.
In conclusion, in this way, when the system versions of the plurality of second wristband devices are higher than the system version of the first wristband device, the second prompt information sent by the second wristband device with the highest system version is selected for prompting, so that only the second wristband device with the highest system version sends the second upgrade package to the first wristband device in the following process, the package receiving time is reduced, the upgrade time is shortened, and the upgrade efficiency and the user experience are improved.
As a preferred embodiment, before receiving the second upgrade package sent by the second wristband device, the method further includes:
judging whether the system version of the wrist strap device is lower than the system versions of the second wrist strap devices;
if so, selecting a second wrist strap device with the highest system version from the plurality of second wrist strap devices, and sending a first upgrading confirmation message to the selected second wrist strap device so that the selected second wrist strap device sends a second upgrading package after receiving the first upgrading confirmation message;
otherwise, directly sending a first upgrading confirmation message to second wrist strap equipment with the system version higher than the system version of the second wrist strap equipment;
before sending the first upgrade package of self to second wrist strap equipment, still include:
and receiving a second upgrading confirmation message sent by the second wrist strap equipment.
Considering that when the system version of the mobile terminal is lower than the system versions of the plurality of second wristband devices, if the second wristband devices are not selected, the second upgrade packages sent by the plurality of second wristband devices are received, so that the upgrade time is long, the upgrade efficiency is low, and the user experience is reduced.
Specifically, in this embodiment, when it is determined that the system version of the second wristband device is lower than the system versions of the plurality of second wristband devices, the second wristband device with the highest system version may be directly selected from the plurality of second wristband devices, and a first upgrade confirmation message may be sent to the selected second wristband device, and the second wristband device sends a second upgrade package to the first wristband device after receiving the first upgrade confirmation message. Otherwise, the system version of the second wristband device is lower than that of a second wristband device, and in this case, the first upgrade confirmation message is directly sent to the second wristband device with the system version higher than that of the second wristband device, so that the second wristband device sends the second upgrade package to the first wristband device after receiving the first upgrade confirmation message. Similarly, the second wristband device also makes a corresponding judgment, and the first wristband device sends its own first upgrade package to the second wristband device after receiving the second upgrade confirmation message sent by the second wristband device.
Therefore, through the mode, on one hand, after the upgrading event is triggered, the user does not need to participate, the full automation of upgrading is realized, on the other hand, when the system version of the second wrist strap devices is higher than that of the first wrist strap device, the second wrist strap device with the highest system version can be selected, and the first upgrading confirmation message is sent to the second wrist strap device, so that the second upgrading package is sent to the first wrist strap device only by the second wrist strap device with the highest system version, the package receiving time is shortened, the upgrading time is shortened, and the upgrading efficiency and the user experience are improved.
As a preferred embodiment, before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
determining a sub data packet to be upgraded, which is different from the system packet corresponding to the second version number, in the system packet corresponding to the first version number based on the first version number and the second version number;
judging whether the proportion of the sub-data packet to be upgraded in the system packet corresponding to the first version number is larger than a proportion threshold value;
if so, taking the system package corresponding to the first version number as a first upgrade package;
if not, the sub-data packet to be upgraded is used as the first upgrade packet.
In the prior art, the upgrade package is usually sent to the wristband device through the APP on the terminal in a whole package manner, but in some cases, the upgrade only updates a few sub-data packages in the system package, and most other sub-data packages are not changed, so that the time for receiving the package by the wristband device is prolonged through the whole package manner, and the upgrade time is prolonged.
In this embodiment, before sending the first upgrade package to the second wristband device, it is determined, based on the first version number and the second version number, whether a ratio of the sub data package to be upgraded in the system package corresponding to the first version number is greater than a ratio threshold (for example, may be, but is not limited to, 50%), if so, it is determined that there are more sub data packages to be upgraded, in order to ensure upgrade reliability, an entire-package upgrade manner is adopted, that is, the entire system package is sent to the second wristband device as the first upgrade package, and if not, it is determined that there are fewer sub data packages to be upgraded, in order to improve upgrade efficiency, a differential-package upgrade manner (local upgrade) is adopted, that is, only the sub data package to be upgraded is taken as the first upgrade package. In practical application, after receiving the first upgrade package, the second wristband device performs flash update according to the first upgrade package to upgrade the version of the system of the second wristband device.
Therefore, the embodiment determines which upgrading mode is adopted according to the proportion of the data packet to be upgraded in the whole system, and the effective balance of the upgrading reliability and the upgrading efficiency is realized.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an upgrading system of a wristband device according to the present invention.
The upgrade system is applied to a first wristband device, and includes:
a broadcasting module 31, configured to send a first BLE broadcast message including a first version number of its own system when an upgrade event is triggered;
a first determining module 32, configured to determine whether a second BLE broadcast message sent by the second wristband device is received, where the second BLE broadcast message includes a second version number of a system of the second wristband device; if yes, the version comparison module 33 is triggered;
a version comparison module 33, configured to determine whether the system version of the wristband device is higher than the system version of the second wristband device based on the first version number and the second version number; if the value is higher than the preset value, the upgrade package sending module 34 is triggered; if the value is lower than the preset value, the upgrading module 35 is triggered;
an upgrade package sending module 34, configured to send a first upgrade package of the wristband to the second wristband device;
and the upgrading module 35 is configured to receive a second upgrading packet sent by the second wristband device, and upgrade itself through the second upgrading packet.
For the description of the upgrading system of the wristband device provided by the present invention, please refer to the above method embodiments, which are not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a wristband device according to the present invention.
The wristband apparatus includes:
a memory 41 for storing a computer program;
a processor 42 for implementing the steps of the upgrading method of the wristband device as described above when executing the computer program.
For the description of the wristband device provided by the present invention, please refer to the above method embodiments, which are not described herein again.
It is to be noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A method for upgrading a wristband device is applied to a first wristband device and is characterized by comprising the following steps:
when an upgrade event is triggered, sending a first BLE broadcast message including a first version number of the own system;
determining whether a second BLE broadcast message sent by a second wristband device is received, wherein the second BLE broadcast message comprises a second version number of a system of the second wristband device;
if yes, judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number;
if the number of the first upgrade packages is higher than the number of the second wrist strap devices, the first upgrade packages of the second wrist strap devices are sent to the second wrist strap devices;
if the number of the wrist strap devices is less than the first number, receiving a second upgrading packet sent by the second wrist strap device, and upgrading the wrist strap device by the second upgrading packet;
before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
determining a sub data packet to be upgraded, which is different from the system packet corresponding to the second version number, in the system packet corresponding to the first version number based on the first version number and the second version number;
judging whether the proportion of the sub-data packet to be upgraded in the system packet corresponding to the first version number is larger than a proportion threshold value;
if so, taking the system package corresponding to the first version number as a first upgrade package;
if not, taking the subdata packet to be upgraded as a first upgrade packet;
each of the first BLE broadcast message and the second BLE broadcast message further includes a message transmit power;
the upgrading method further comprises the following steps:
determining a distance between itself and the second wristband device based on the message transmit power;
and prompting the distance.
2. The method of upgrading a wristband device according to claim 1, wherein the first BLE broadcast message further includes type information of the first wristband device, the second BLE broadcast message further includes type information of a second wristband device;
judging whether the system version of the wristband device is higher than the system version of the second wristband device or not based on the first version number and the second version number, and further comprising:
judging whether the type of the wrist strap device is the same as that of the second wrist strap device or not based on the type information of the first wrist strap device and the type information of the second wrist strap device;
if yes, the step of judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number is carried out.
3. The method for upgrading a wristband device according to claim 1, wherein an upgrade event is triggered, comprising:
and determining that the user is performing the shaking action through acceleration data collected by the acceleration sensor of the user.
4. The upgrading method of wristband device according to claim 1, wherein before sending the first upgrade package of the wristband device to the second wristband device, further comprising:
sending first prompt information of whether upgrading is carried out to the second wrist strap equipment for prompting;
if a second upgrading confirmation message returned by the second wrist strap equipment after receiving a second upgrading confirmation instruction sent by a user is received, the step of sending a first upgrading packet of the second wrist strap equipment to the second wrist strap equipment is carried out;
before receiving the second upgrade package sent by the second wristband device, the method further includes:
receiving second prompt information which is sent by the second wrist strap equipment and is used for prompting whether to upgrade;
and if a first upgrading confirmation instruction sent by the user is received, sending a first upgrading confirmation message to the second wrist strap equipment.
5. The method of upgrading a wristband device according to claim 4, wherein when the second wristband device is plural, the first prompt information includes the first version number, and the second prompt information includes a second version number;
before prompting the second prompting information whether the second wrist strap device is upgraded or not, the method further comprises the following steps:
judging whether the system version of the wrist strap device is lower than the system versions of the second wrist strap devices;
if so, selecting a second wrist strap device with the highest system version from a plurality of second wrist strap devices which send second prompt messages;
taking the second prompt information sent by the selected second wrist strap device as the information to be prompted;
otherwise, directly using the received second prompting information whether the second wrist band device is upgraded or not as the information to be prompted.
6. The upgrading method of the wristband device according to claim 1, further comprising, before receiving the second upgrade package sent by the second wristband device:
judging whether the system version of the wrist strap device is lower than the system versions of the second wrist strap devices;
if so, selecting a second wristband device with the highest system version from the plurality of second wristband devices, and sending a first upgrading confirmation message to the selected second wristband device, so that the selected second wristband device sends a second upgrading package after receiving the first upgrading confirmation message;
otherwise, directly sending a first upgrading confirmation message to second wrist strap equipment with the system version higher than the system version of the second wrist strap equipment;
before sending the first upgrade package of the wristband itself to the second wristband device, the method further includes:
and receiving a second upgrading confirmation message sent by the second wrist strap equipment.
7. An upgrading system of a wrist strap device is applied to a first wrist strap device and is characterized by comprising:
the broadcasting module is used for sending a first BLE broadcasting message comprising a first version number of a self system when an upgrading event is triggered;
a first determining module, configured to determine whether a second BLE broadcast message sent by a second wristband device is received, where the second BLE broadcast message includes a second version number of a system of the second wristband device; if yes, triggering a version comparison module;
the version comparison module is used for judging whether the system version of the wrist strap device is higher than that of the second wrist strap device or not based on the first version number and the second version number; if the number is higher than the preset value, triggering an upgrade package sending module; if the number is less than the preset value, triggering an upgrading module;
the upgrading package sending module is used for sending a first upgrading package of the upgrading package sending module to the second wrist strap equipment;
the upgrading module is used for receiving a second upgrading packet sent by the second wrist strap equipment and upgrading the upgrading module by the second upgrading packet;
before sending the first upgrade package of the mobile device to the second wristband device, the upgrade system is further configured to:
determining a sub data packet to be upgraded, which is different from the system packet corresponding to the second version number, in the system packet corresponding to the first version number based on the first version number and the second version number;
judging whether the proportion of the sub-data packet to be upgraded in the system packet corresponding to the first version number is larger than a proportion threshold value;
if so, taking the system package corresponding to the first version number as a first upgrade package;
if not, taking the subdata packet to be upgraded as a first upgrade packet;
each of the first BLE broadcast message and the second BLE broadcast message further includes a message transmit power;
the upgrade system further comprises:
determining a distance between itself and the second wristband device based on the message transmit power;
and prompting the distance.
8. A wristband apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the upgrading method of the wristband device according to any one of claims 1 to 6 when executing the computer program.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206919.5A CN110972081B (en) | 2019-11-29 | 2019-11-29 | Wrist strap equipment and upgrading method and system thereof |
PCT/CN2019/129520 WO2021103258A1 (en) | 2019-11-29 | 2019-12-28 | Wristband device and upgrading method and system therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206919.5A CN110972081B (en) | 2019-11-29 | 2019-11-29 | Wrist strap equipment and upgrading method and system thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110972081A CN110972081A (en) | 2020-04-07 |
CN110972081B true CN110972081B (en) | 2021-08-24 |
Family
ID=70032388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911206919.5A Active CN110972081B (en) | 2019-11-29 | 2019-11-29 | Wrist strap equipment and upgrading method and system thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110972081B (en) |
WO (1) | WO2021103258A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114172875B (en) * | 2021-12-03 | 2024-06-25 | 深圳小湃科技有限公司 | Remote upgrading method and system for network camera and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535228A (en) * | 2016-11-30 | 2017-03-22 | 努比亚技术有限公司 | System upgrading device and method |
CN109308186A (en) * | 2018-08-21 | 2019-02-05 | 珠海格力电器股份有限公司 | Version upgrading method and terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699495B (en) * | 2013-12-10 | 2018-08-10 | 联想(北京)有限公司 | The method and electronic equipment of information processing |
CN104615464A (en) * | 2015-01-30 | 2015-05-13 | 广东欧珀移动通信有限公司 | Updating method, device and system for wearable equipment |
CN104980886A (en) * | 2015-06-25 | 2015-10-14 | 上海卓易科技股份有限公司 | Software upgrade method and device |
CN107085525A (en) * | 2017-03-17 | 2017-08-22 | 深圳市战音科技有限公司 | Method for upgrading software and device based on Bluetooth electronic devices |
CN109831761A (en) * | 2018-12-17 | 2019-05-31 | 杭州追新科技有限公司 | A kind of remote terminal automatic updating device |
CN110377316A (en) * | 2019-07-23 | 2019-10-25 | 拉扎斯网络科技(上海)有限公司 | Bluetooth device, upgrading method and device thereof, and computer-readable storage medium |
-
2019
- 2019-11-29 CN CN201911206919.5A patent/CN110972081B/en active Active
- 2019-12-28 WO PCT/CN2019/129520 patent/WO2021103258A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535228A (en) * | 2016-11-30 | 2017-03-22 | 努比亚技术有限公司 | System upgrading device and method |
CN109308186A (en) * | 2018-08-21 | 2019-02-05 | 珠海格力电器股份有限公司 | Version upgrading method and terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2021103258A1 (en) | 2021-06-03 |
CN110972081A (en) | 2020-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10667153B2 (en) | Network selection method and apparatus therefor | |
CN115226117A (en) | Beam indication method, device, equipment and medium | |
CN108566312A (en) | Off-line checking method, device and computer readable storage medium | |
EP1963996A1 (en) | Methods and systems for calendar based delivery of downloadable content | |
US7574270B2 (en) | Terminal control method, terminal apparatus and program | |
CN105162979B (en) | A kind of incoming call mute control method and smartwatch | |
CN108347719A (en) | Connection method of Bluetooth device, device, storage medium, mobile terminal and server | |
CN110972081B (en) | Wrist strap equipment and upgrading method and system thereof | |
CN113645352A (en) | Bluetooth headset anti-loss method, device and system and computer readable storage medium | |
CN108513365B (en) | Control method and device of intelligent equipment, intelligent equipment and medium | |
CN105988841A (en) | Update method of application program, and mobile terminal | |
CN107911777B (en) | Processing method and device for return-to-ear function and mobile terminal | |
KR20130039053A (en) | Method and apparatus for generating user configurable user interface in a portable terminal | |
CN115174418A (en) | Communication environment safety early warning method and device, electronic equipment and storage medium | |
CN113709055B (en) | BLE-based communication method, BLE-based communication device, BLE-based communication equipment, BLE-based communication system and BLE-based storage medium | |
CN104811549A (en) | Calling method and mobile terminal | |
CN112702143A (en) | Dial data management method and device, wearable device and storage medium | |
CN108880696B (en) | Frequency configuration handshaking method and system, terminal and computer readable storage medium | |
CN106412029A (en) | Configuration information receiving method and device, and configuration information transmitting method and device | |
CN110831114A (en) | Connection method with wireless device, terminal and readable storage medium | |
CN107979688B (en) | application program management method and mobile terminal | |
CN107819761B (en) | Data processing method and device and readable storage medium | |
CN115550089B (en) | Intelligent home system, communication method and related equipment | |
EP1452970A1 (en) | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium | |
CN114095295A (en) | Intelligent doorbell information inheritance method, intelligent doorbell and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |