WO2021103258A1 - 一种腕带设备及其升级方法、系统 - Google Patents
一种腕带设备及其升级方法、系统 Download PDFInfo
- Publication number
- WO2021103258A1 WO2021103258A1 PCT/CN2019/129520 CN2019129520W WO2021103258A1 WO 2021103258 A1 WO2021103258 A1 WO 2021103258A1 CN 2019129520 W CN2019129520 W CN 2019129520W WO 2021103258 A1 WO2021103258 A1 WO 2021103258A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wristband device
- upgrade
- wristband
- version
- package
- Prior art date
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
Definitions
- This application relates to the technical field of equipment upgrades, in particular to a wristband device and an upgrade method and system thereof.
- wristband devices such as smart watches, bracelets, etc.
- smart watches include smart watches for children, smart watches for adults, and smart watches for the elderly.
- functions include reminders, navigation, and detection. Therefore, it is often necessary to upgrade the smart watch system.
- the corresponding App Application
- the APP is usually downloaded on the terminal first, and then the APP is operated correspondingly to realize the upgrade of the smart watch system. For the elderly and children, it is more troublesome and the user experience Poor.
- the purpose of this application is to provide a wristband device and an upgrade method and system thereof.
- This upgrade method once an upgrade event is triggered, subsequent automatic upgrades of the system can be realized without user operation, especially suitable for the elderly and children. Improve the user experience.
- this application provides a method for upgrading a wristband device, which is applied to the first wristband device, including:
- the first BLE broadcast message further includes type information of the first wristband device
- the second BLE broadcast message further includes type information of the second wristband device
- the method further includes:
- both the first BLE broadcast message and the second BLE broadcast message further include message transmission power
- the upgrade method also includes:
- the upgrade event is triggered and includes:
- the acceleration data collected by its own acceleration sensor determines that the user is performing a shaking action.
- the method before sending its own first upgrade package to the second wristband device, the method further includes:
- the method further includes:
- a first upgrade confirmation message is sent to the second wristband device.
- the first prompt information includes the first version number
- the second prompt information includes a second version number
- the second wristband device Before prompting the second prompt message of whether to upgrade sent by the second wristband device, it further includes:
- the method before receiving the second upgrade package sent by the second wristband device, the method further includes:
- the second wristband device Before sending its first upgrade package to the second wristband device, it also includes:
- the method before sending its own first upgrade package to the second wristband device, the method further includes:
- this application also provides a wristband device upgrade system, which is applied to the first wristband device, including:
- the broadcast module is used to send the first BLE broadcast message including the first version number of the own system when the upgrade event is triggered;
- the first judgment module is configured to judge whether a second BLE broadcast message sent by a second wristband device is received, and the second BLE broadcast message includes the second version number of the system of the second wristband device; if yes, then Trigger the version comparison module;
- the version comparison module is configured to determine whether its own system version is higher than the system version of the second wristband device based on the first version number and the second version number; if it is higher, trigger the sending of an upgrade package Module; if it is lower than, trigger the upgrade module;
- the upgrade package sending module is configured to send its own first upgrade package to the second wristband device;
- the upgrade module is configured to receive a second upgrade package sent by the second wristband device, and upgrade itself through the second upgrade package.
- this application also provides a wristband device, including:
- Memory used to store computer programs
- the processor is used to implement the steps of the above-mentioned wristband device upgrade method when executing the computer program.
- This application provides a method for upgrading a wristband device.
- the first wristband device will send a first BLE broadcast message including the version number of its own system.
- the second BLE broadcast message including its version number compare its own system version with the system version of the second wristband device. If its own system version is higher, send its first upgrade package to the second wristband The device realizes the system upgrade of the second wristband device; if its own system version is low, it receives the second upgrade package sent by the second wristband device with the higher system version to realize the system upgrade of its own. It can be seen that using this upgrade method, once an upgrade event is triggered, subsequent automatic upgrades of the system can be realized without user operation, which is especially suitable for the elderly and children, and improves the user experience.
- the application also provides a wristband device upgrade system and wristband device, which have the same beneficial effects as the above-mentioned wristband device upgrade method.
- Figure 1 is a process flow chart of a method for upgrading a wristband device provided by this application
- FIG. 2 is a structural diagram of a BLE broadcast message provided by this application.
- FIG. 3 is a schematic structural diagram of a wristband device upgrade system provided by this application.
- Fig. 4 is a schematic structural diagram of a wristband device provided by this application.
- the core of this application is to provide a wristband device and an upgrade method and system thereof.
- This upgrade method once an upgrade event is triggered, subsequent automatic upgrades of the system can be realized without user operation, especially suitable for the elderly and children. Improve the user experience.
- FIG. 1 is a flowchart of a method for upgrading a wristband device provided by this application.
- the upgrade method is applied to the first wristband device and includes:
- the wristband device may be a watch, a bracelet, etc.
- the upgrade method provided in this application is applied to the first wristband device and also applied to the second wristband device.
- the first wristband device and the second wristband device are in a peer-to-peer relationship.
- This application focuses on the description from the perspective of the first wristband device.
- the upgrade method of the second wristband device is the same as the upgrade method of the first wristband device. This application will not repeat it, and you can refer to the upgrade method of the first wristband device. method.
- the premise of whether the first wristband device is upgraded is to determine whether the upgrade event is triggered.
- the upgrade event here may be: receiving an upgrade instruction sent by the user through the mechanical keys or buttons on the first wristband device or the touch screen , Or, it is detected that the user performs a shaking action, and this application does not specifically limit which upgrade event is used.
- the first wristband device determines that the upgrade event is triggered, it sends out the first BLE broadcast message.
- the first BLE broadcast message includes the first BLE broadcast message of its own system. One version number.
- the distance between the first wristband device and the second wristband device is required to be relatively close, for example, no more than 3m.
- the time difference between the triggering of the upgrade event of the first wristband device and the second wristband device should be as small as possible (for example, no more than 10s), preferably zero, such as the first wristband device Perform a "shake" with the second wristband device at the same time.
- this application does not specifically limit the specific value of the time difference when the upgrade event is triggered, and it is determined according to the actual situation.
- S12 Determine whether the second BLE broadcast message sent by the second wristband device is received, the second BLE broadcast message includes the second version number of the system of the second wristband device; if yes, go to S13;
- the first wristband device and the second wristband device are in a peer-to-peer relationship.
- the second wristband device also determines that the upgrade event is triggered.
- a second BLE broadcast message will be sent out, where the second BLE broadcast message includes the second version number of the system of the second wristband device. If the first wristband device and the second wristband device are within the communication range (for example, the Bluetooth communication range), the first wristband device will receive the second BLE broadcast message sent by the second wristband device, and accordingly, the second The wristband device will also receive the first BLE broadcast message sent by the first wristband device.
- S15 Receive the second upgrade package sent by the second wristband device, and upgrade itself through the second upgrade package.
- the first wristband device After the first wristband device receives the second BLE broadcast message, it uses the first version number and the second version number to determine whether its own system version is higher than the system version of the second wristband device. If it is higher, it means The system version of the second wristband device needs to be upgraded. At this time, the first wristband device sends its first upgrade package to the second wristband device, so that the second wristband device can update its own system through the first upgrade package. Upgrade; if it is lower than, it means that it needs to upgrade its own system. At this time, the first wristband device receives the second upgrade package sent by the second wristband device and upgrades its own system through the second upgrade package.
- the first wristband device may not do any processing, or the first wristband device can send prompt information of the same version to the second wristband device so that the second wristband device can prompt for the prompt information of the same version; at the same time; , The first wristband device will also receive the prompt information of the same version sent by the second wristband device, and the first wristband device will prompt the prompt information of the same version.
- the above-mentioned prompts can be, but not limited to, displayed on the display screen of the wristband device.
- the first wristband device When there are multiple second wristband devices, the first wristband device will receive the second BLE broadcast message sent by multiple second wristband devices, and the first wristband device will sequentially compare its own system version with each second wristband device. The system version of the wristband device is compared, and if it is higher, the first upgrade package of itself is sent to the corresponding second wristband device, and if it is lower, the second upgrade package sent by the corresponding second wristband device is received.
- the first wristband device will receive the second upgrade package sent by these wristband devices, and the first wristband device can be based on the preset It is assumed that the rule selects the corresponding second upgrade package for upgrade, for example, the second upgrade package received first is selected for upgrade, or the second upgrade package with the highest version is selected for upgrade, etc. This application is not specifically limited here.
- 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 system of a wristband device is usually related to its type
- the systems of the two wristband devices are usually the same.
- the type comparison between the first wristband device and the second wristband device is also performed.
- the first BLE broadcast message also includes the type information of the first wristband device
- the second BLE broadcast message also includes the type information of the second wristband device.
- the first wristband device will determine whether its own type is the same as that of the second wristband device based on the type information of the first wristband device and the type information of the second wristband device, and proceed to follow-up only if the type is the same
- the system version of the system version is compared, otherwise, the subsequent system version comparison will not be performed. It can be seen that through this method, the correct upgrade of the wristband device can be ensured, and the reliability of the upgrade of the wristband device can be improved.
- both the first BLE broadcast message and the second BLE broadcast message further include message transmission power
- the upgrade method also includes:
- the BLE Bluetooth communication method requires the distance between wristband devices to be relatively close. It is also considered that the first wristband device and the second wristband device will first perform a handshake when establishing communication, and adjust the transmission power of subsequent messages to be sent according to the signal strength of the handshake signal received during the handshake. Specifically, if the signal strength of the received handshake signal is strong, it means that the distance between the first wristband device and the second wristband device is relatively short, and the message transmission power does not need too much to ensure the success of subsequent messages.
- Reliable transmission if the signal strength of the received handshake signal is weak, it means that the distance between the first wristband device and the second wristband device is relatively long, and a larger message transmission power is required to ensure reliable transmission of subsequent messages . It can be seen that the transmission power of the message is negatively correlated with the distance between the two wristband devices.
- the first wristband device when the first wristband device sends the first BLE broadcast message, the first BLE broadcast message is It also includes the message transmission power; similarly, the second BLE broadcast message sent by the second wristband device also includes the message transmission power.
- the first wristband device obtains the message transmission power, it obtains the distance between itself and the second wristband device according to the message transmission power and the preset power distance mapping relationship, and prompts the distance.
- the prompt here can be but not limited to be displayed on the display screen of the first wristband device. The user can move the first wristband device closer to the second wristband device after seeing a larger distance.
- the user can determine whether to adjust the distance between the first wristband device and the second wristband device according to the current distance between the first wristband device and the second wristband device, and further Improve the reliability of the upgrade.
- FIG. 2 is a structural diagram of a BLE broadcast message provided by this application.
- UUID Universally Unique Identifier
- UUID is a fixed field that identifies the type of wristband device, such as 0100100001001000. If the UUID of two wristband devices is the same, it means that the two wristband devices are of the same type. Otherwise, it means that the two wristband devices are not the same type.
- the version number is divided into the major version number (Major) and the minor version number (Minor).
- Major version number and the minor version number can be converted into numerical values (for example, according to the defined conversion rule: major version*100 +Minor version), only when the major version number and the minor version number are the same (corresponding to the same converted value), it means that the two versions are the same. If the two version numbers are different, it means that the two versions are different.
- TX power represents the message transmission power
- the number of bytes of Data can be 22 bytes, where UUID is 16 bytes, and the major version number, minor version number, and TX power are all 2 bytes.
- the upgrade event is triggered, including:
- the acceleration data collected by its own acceleration sensor determines that the user is performing a shaking action.
- the triggering of the upgrade event in this application can be realized in a variety of ways, except that it can be realized through the existing or additional mechanical keys or buttons on the first wristband device or the upgrade instruction sent by the touch screen. It can also be implemented by the user performing a shaking action, of course, it can also be implemented in other ways, and this application is not specifically limited herein.
- the acceleration sensor in the first wristband device when the user performs a shaking motion, the acceleration sensor in the first wristband device will detect the corresponding acceleration data, and determine whether the user is performing the shaking motion based on the acceleration data and the corresponding algorithm, and if so, , It means that the user wants to upgrade the wristband device. If not, no processing is done.
- the shaking action here can be specifically "shake one shake”.
- the corresponding algorithm can be set according to the characteristics of the shaking action, which is not limited in this application. The shaking action is used to set whether the upgrade event is triggered, the false positive rate is low, and the reliability of the upgrade is further improved.
- the second wristband device before sending its first upgrade package to the second wristband device, it further includes:
- the second wristband device Before receiving the second upgrade package sent by the second wristband device, it also includes:
- the first upgrade confirmation message is sent to the second wristband device.
- the system version of the first wristband device is different from the system version of the second wristband device, it means that the system of the wristband device with a lower system version needs to be upgraded. If the system version of the first wristband device is higher than the system version of the second wristband device, the first wristband device will send its own first upgrade package to the second wristband device, otherwise, the first wristband device will receive The second upgrade package sent to the second wristband device.
- the first wristband device before the first wristband device sends its first upgrade package to the second wristband device, it also sends a first prompt message asking whether to upgrade to the second wristband device. With the device so that the second wristband device prompts the first prompt message. If the second wristband device receives the second upgrade confirmation instruction sent by the user, it will return the second upgrade confirmation message to the first wristband device. The wristband device sends its first upgrade package to the second wristband device after receiving the second upgrade confirmation message. Similarly, the second wristband device will also perform the above operations before sending the second upgrade package, then the first wristband device will receive the second prompt message sent by the second wristband device indicating whether to upgrade, and give the second prompt Information is prompted. If the first wristband device receives the first upgrade confirmation instruction sent by the user, it sends the first upgrade confirmation message to the second wristband device, so that the second wristband device sends the second upgrade after receiving the first upgrade confirmation message package.
- the second wristband device receives the second upgrade cancellation instruction sent by the user, it returns a second upgrade cancellation message to the first wristband device, and the first wristband device does not send itself after receiving the second upgrade cancellation message The first upgrade package to the second wristband device. If the first wristband device receives the first upgrade cancel instruction sent by the user, it sends a first upgrade cancel message to the second wristband device, so that the second wristband device does not send the second upgrade package to the first wristband device.
- the first prompt information when there are multiple second wristband devices, the first prompt information includes the first version number, and the second prompt information includes a second version number;
- the second prompt message of whether to upgrade sent by the second wristband device Before prompting the second prompt message of whether to upgrade sent by the second wristband device, it also includes:
- the first wristband device will receive the first wristband device sent by the multiple second wristband devices.
- the second upgrade package makes the upgrade time longer, the upgrade efficiency is low, and the user experience is reduced.
- the second wristband device after receiving the second prompt message sent by the second wristband device whether to upgrade, before prompting the second prompt message, first determine whether its own system version is lower than multiple The system version of the second wristband device. If it is, it means that the first wristband device will receive the second prompt information sent by multiple second wristband devices that are higher than its own system version.
- the second wristband device with the highest system version is selected from the above-mentioned multiple second wristband devices, and the second prompt information sent by the second wristband device is used as the to-be-prompted information, so that the subsequent prompt information will be prompted, which can be seen, In this way, there is only one second prompt message displayed to the user, and the second prompt message includes the second version number of the system of the second wristband device, so that the user can know that the system of the first wristband device is about to be upgraded To which version.
- the first upgrade confirmation message will be sent to the second wristband device with the highest system version.
- the first wristband device will only receive the second prompt message sent by a second wristband device that is higher than its own system. In this case, directly use the second prompt message as the to-be-prompted information for subsequent prompts. Information is prompted.
- the second prompt message sent by the second wristband device with the highest system version will be selected to proceed. Prompt so that only the second wristband device with the highest system version will send the second upgrade package to the first wristband device in the future, which reduces the package collection time, shortens the upgrade time, and improves the upgrade efficiency and user experience.
- the method before receiving the second upgrade package sent by the second wristband device, the method further includes:
- the second wristband with the highest system version can be directly selected from the multiple second wristband devices And send a first upgrade confirmation message 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.
- the second wristband device sends the second upgrade package to the first wristband device after receiving the first upgrade confirmation message.
- the second wristband device will also make corresponding judgments.
- the first wristband device will send its own first upgrade package to the second wristband device after receiving the second upgrade confirmation message sent by the second wristband device. .
- the upgrade is fully automated without user involvement.
- the system version of multiple second wristband devices is higher than that of the first wristband device.
- the system version is high, the second wristband device with the highest system version will be selected, and the first upgrade confirmation message will be sent to the second wristband device, so that only the second wristband device with the highest system version will send the second upgrade package later To the first wristband device, it reduces the time for receiving packages, shortens the upgrade time, and improves the upgrade efficiency and user experience.
- the second wristband device before sending its first upgrade package to the second wristband device, it further includes:
- the system package corresponding to the first version number is determined based on the first version number and the second version number, which is different from the system package corresponding to the second version number. Then it is judged whether the proportion of the sub-data package to be upgraded in the system package corresponding to the first version number is greater than the proportion threshold (for example, but not limited to 50%), if it is, it indicates that the sub-data package to be upgraded There are many data packages.
- the proportion threshold for example, but not limited to 50%
- a differential package upgrade (partial upgrade) method is adopted, that is, only the sub-data package to be upgraded is used as the first upgrade package.
- the second wristband device after receiving the first upgrade package, performs a flash update according to the first upgrade package, so as to upgrade the version of its own system.
- this embodiment determines which upgrade method to use according to the proportion of the data package to be upgraded in the entire system package, which achieves an effective balance between upgrade reliability and upgrade efficiency.
- FIG. 3 is a schematic structural diagram of a wristband device upgrade system provided by this application.
- the upgrade system is applied to the first wristband device, including:
- the broadcast module 31 is configured to send a first BLE broadcast message including the first version number of the own system when the upgrade event is triggered;
- the first judging module 32 is configured to judge whether a second BLE broadcast message sent by the second wristband device is received, the second BLE broadcast message includes the second version number of the system of the second wristband device; if so, trigger the version comparison Module 33;
- the version comparison module 33 is used to determine whether its own system version is higher than the system version of the second wristband device based on the first version number and the second version number; if it is higher, it triggers the upgrade package sending module 34; if it is lower, Trigger the upgrade module 35;
- the upgrade package sending module 34 is configured to send its own first upgrade package to the second wristband device;
- the upgrade module 35 is configured to receive the second upgrade package sent by the second wristband device, and upgrade itself through the second upgrade package.
- FIG. 4 is a schematic structural diagram of a wristband device provided by this application.
- the wristband device includes:
- the memory 41 is used to store computer programs
- the processor 42 is used to implement the steps of the above-mentioned method for upgrading the wristband device when executing the computer program.
- the steps of the method or algorithm described in the embodiments disclosed in this document can be directly implemented by hardware, a software module executed by a processor, or a combination of the two.
- the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.
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
一种腕带设备的升级方法、系统,所述方法包括:在升级事件被触发时,第一腕带设备发送包括自身系统的第一版本号的第一BLE广播消息,在接收到第二腕带设备发送的包括其版本号的第二BLE广播消息后,将自身的系统版本与第二腕带设备的系统版本进行比较,如果自身的系统版本高,则将自身的第一升级包发送至第二腕带设备以实现对第二腕带设备的系统升级;如果自身的系统版本低,则接收第二腕带设备发送的第二升级包以实现对自身的系统升级。采用该升级方式,升级事件一旦被触发,后续无需用户操作便可实现系统的自动升级,尤其适用于老人和小孩,提高了用户体验。
Description
本申请要求于2019年11月29日提交中国专利局、申请号为201911206919.5、发明名称为“一种腕带设备及其升级方法、系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及设备升级技术领域,特别是涉及一种腕带设备及其升级方法、系统。
近年来,腕带设备(例如智能手表、手环等)得到了快速发展。以智能手表为例,智能手表包括儿童智能手表、成人智能手表和老人智能手表等,每款智能手表根据其发展会进行相应地功能扩展及功能更新,其中,功能包括提醒、导航及检测等,因此,常常需要对智能手表的系统进行升级。现有技术中,通常先在终端上下载相应地App(Application,应用程序),再通过对APP进行相应操作以实现对智能手表的系统的升级,对于老人和小孩来说,比较麻烦,用户体验较差。
发明内容
本申请的目的是提供一种腕带设备及其升级方法、系统,采用该种升级方式,升级事件一旦被触发,后续无需用户操作便可实现系统的自动升级,尤其适用于老人和小孩,提高了用户体验。
为解决上述技术问题,本申请提供了一种腕带设备的升级方法,应用于第一腕带设备,包括:
在升级事件被触发时,发送包括自身系统的第一版本号的第一BLE广播消息;
判断是否接收到第二腕带设备发送的第二BLE广播消息,所述第二BLE广播消息包括所述第二腕带设备的系统的第二版本号;
若是,则基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本;
若高于,则将自身的第一升级包发送至所述第二腕带设备;
若低于,则接收所述第二腕带设备发送的第二升级包,并通过所述第二升级包对自身进行升级。
优选地,所述第一BLE广播消息还包括所述第一腕带设备的类型信息,所述第二BLE广播消息还包括第二腕带设备的类型信息;
基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本之前,还包括:
基于所述第一腕带设备的类型信息和所述第二腕带设备的类型信息判断自身的类型是否与所述第二腕带设备的类型相同;
若是,则进入基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本的步骤。
优选地,所述第一BLE广播消息和所述第二BLE广播消息中均还包括消息发射功率;
该升级方法还包括:
基于所述消息发射功率确定自身与所述第二腕带设备之间的距离;
对所述距离进行提示。
优选地,升级事件被触发,包括:
通过自身的加速度传感器采集到的加速度数据确定用户在执行摇动动作。
优选地,将自身的第一升级包发送至所述第二腕带设备之前,还包括:
发送是否升级的第一提示信息至所述第二腕带设备以进行提示;
若接收到所述第二腕带设备在接收到用户发送的第二升级确认指令后返回的第二升级确认消息,则进入将自身的第一升级包发送至所述第二腕带设备的步骤;
接收所述第二腕带设备发送的第二升级包之前,还包括:
接收所述第二腕带设备发送的是否升级的第二提示信息并进行提示;
若接收到用户发送的第一升级确认指令,则向所述第二腕带设备发送第一升级确认消息。
优选地,在所述第二腕带设备为多个时,所述第一提示信息包括所述第一版本号,所述第二提示信息包括第二版本号;
对所述第二腕带设备发送的是否升级的第二提示信息进行提示之前,还包括:
判断自身的系统版本是否低于多个第二腕带设备的系统版本;若是,则从发送第二提示信息的多个第二腕带设备中选出系统版本最高的第二腕带设备;
将选出的第二腕带设备发送的第二提示信息作为待提示信息;
否则,直接将接收到的第二腕带设备发送的是否升级的第二提示信息作为待提示信息。
优选地,在接收所述第二腕带设备发送的第二升级包之前,还包括:
判断自身的系统版本是否低于多个第二腕带设备的系统版本;
若是,则从所述多个第二腕带设备中选出系统版本最高的第二腕带设备,并向选出的第二腕带设备发送第一升级确认消息,以便选出的第二腕带设备接收到所述第一升级确认消息后发送第二升级包;
否则,直接向系统版本高于自身系统版本的第二腕带设备发送第一升级确认消息;
将自身的第一升级包发送至所述第二腕带设备之前,还包括:
接收所述第二腕带设备发送的第二升级确认消息。
优选地,将自身的第一升级包发送至所述第二腕带设备之前,还包括:
基于所述第一版本号和所述第二版本号确定所述第一版本号对应的系统包中区别于所述第二版本号对应的系统包的待升级子数据包;
判断所述待升级子数据包在所述第一版本号对应的系统包中的占比是否大于占比阈值;
若是,则将所述第一版本号对应的系统包作为第一升级包;
若否,则将所述待升级子数据包作为第一升级包。
为解决上述技术问题,本申请还提供了一种腕带设备的升级系统,应用于第一腕带设备,包括:
广播模块,用于在升级事件被触发时,发送包括自身系统的第一版本号的第一BLE广播消息;
第一判断模块,用于判断是否接收到第二腕带设备发送的第二BLE广播消息,所述第二BLE广播消息包括所述第二腕带设备的系统的第二版本号;若是,则触发版本比较模块;
所述版本比较模块,用于基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本;若高于,则触发升级包发送模块;若低于,触发升级模块;
所述升级包发送模块,用于将自身的第一升级包发送至所述第二腕带设备;
所述升级模块,用于接收所述第二腕带设备发送的第二升级包,并通过所述第二升级包对自身进行升级。
为解决上述技术问题,本申请还提供了一种腕带设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上述所述腕带设备的升级方法的步骤。
本申请提供了一种腕带设备的升级方法,在升级事件被触发时,第一腕带设备会发送包括自身系统的版本号的第一BLE广播消息,在接收到第二腕带设备发送的包括其版本号的第二BLE广播消息后,将自身的系统版本与第二腕带设备的系统版本进行比较,如果自身的系统版本高,则将自身的第一升级包发送至第二腕带设备以实现对第二腕带设备的系统升级;如果自身的系统版本低,则接收系统版本高的第二腕带设备发送的第二升级包以实现对自身的系统升级。可见,采用该种升级方式,升级事件一旦被触发,后续无需用户操作便可实现系统的自动升级,尤其适用于老人和小孩,提高了用户体验。
本申请还提供了一种腕带设备的升级系统及腕带设备,具有与上述腕带设备的升级方法相同的有益效果。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一部分附图,对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请提供的一种腕带设备的升级方法的过程流程图;
图2为本申请提供的一种BLE广播消息的构成图;
图3为本申请提供的一种腕带设备的升级系统的结构示意图;
图4为本申请提供的一种腕带设备的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的核心是提供一种腕带设备及其升级方法、系统,采用该种升级方式,升级事件一旦被触发,后续无需用户操作便可实现系统的自动升级,尤其适用于老人和小孩,提高了用户体验。
请参照图1,图1为本申请提供的一种腕带设备的升级方法的过程流程图。
该升级方法应用于第一腕带设备,包括:
S11:在升级事件被触发时,发送包括自身系统的第一版本号的第一BLE(Bluetooth Low Energy,蓝牙低能耗)广播消息;
首先需要说明的是,本申请中,腕带设备可以为手表、手环等。此外,本申请提供的升级方法应用于第一腕带设备中,也应用于第二腕带设备中,第一腕带设备和第二腕带设备之间是对等的关系。本申请着重站在第一腕带设备的角度来进行描述,第二腕带设备的升级方法与第一腕带设备的升级方法相同,本申请不再赘述,可以参照第一腕带设备的升级方法。
本申请中,第一腕带设备是否进行升级的前提是确定升级事件是否被触发,这里的升级事件可以为:接收到用户通过第一腕带设备上的机械按键或者按钮或者触摸屏发送的升级指令,或者,检测到用户执行摇动动作,对于具体采用哪种升级事件本申请在此不作特别的限定。第一腕带设备在确定升级事件被触发时,向外发送第一BLE广播消息,考虑到腕带类产品在升级时通常采用系统升级的方式,因此,第一BLE广播消息包括自身系统的第一版 本号。在第一腕带设备和第二腕带设备进行BLE广播时,要求第一腕带设备和第二腕带设备之间的距离比较近,例如不超过3m。此外,为了实现腕带设备的系统升级,第一腕带设备和第二腕带设备的升级事件被触发的时间差要尽量小(例如不超过10s),最好为零,例如第一腕带设备和第二腕带设备同时进行“摇一摇”,当然,本申请对于升级事件被触发的时间差的具体数值不作特别的限定,根据实际情况来定。
S12:判断是否接收到第二腕带设备发送的第二BLE广播消息,第二BLE广播消息包括第二腕带设备的系统的第二版本号;若是,则进入S13;
上述提到,第一腕带设备和第二腕带设备是对等的关系,在第一腕带设备向外发送第一BLE广播消息时,第二腕带设备在确定升级事件被触发后也会向外发送第二BLE广播消息,其中,第二BLE广播消息中包括第二腕带设备的系统的第二版本号。若第一腕带设备和第二腕带设备在通信范围(例如蓝牙通信范围)内,则第一腕带设备会接收到第二腕带设备发送的第二BLE广播消息,相应地,第二腕带设备也会接收到第一腕带设备发送的第一BLE广播消息。
S13:基于第一版本号和第二版本号判断自身的系统版本是否高于第二腕带设备的系统版本,若高于,则进入S14,若低于,则进入S15;
S14:将自身的第一升级包发送至第二腕带设备;
S15:接收第二腕带设备发送的第二升级包,并通过第二升级包对自身进行升级。
第一腕带设备在接收到第二BLE广播消息后,则通过第一版本号和第二版本号来判断自身的系统版本是否高于第二腕带设备的系统版本,如果高于,则说明需对第二腕带设备的系统版本进行升级,此时第一腕带设备将自身的第一升级包发送至第二腕带设备,以便第二腕带设备通过第一升级包对自身系统进行升级;如果低于,则说明需要对自身的系统进行升级,此时第一腕带设备接收第二腕带设备发送的第二升级包并通过第二升级包对自身的系统进行升级。
此外,在实际应用中,如果通过第一版本号和第二版本号来判断自身的系统版本与第二腕带设备的系统版本相同,则说明此时无需对第一腕带设备及第二腕带设备升级,第一腕带设备可以不做任何处理,或者,第一腕带设 备发送版本相同的提示信息至第二腕带设备以便第二腕带设备对版本相同的提示信息进行提示;同时,第一腕带设备也会接收到第二腕带设备发送的版本相同的提示信息,第一腕带设备会对版本相同的提示信息进行提示。其中,上述提到的提示可以但不仅限为在腕带设备的显示屏上进行显示。
还需要说明的是,本申请中,第二腕带设备可以为一个,也可以为多个。在第二腕带设备为多个时,第一腕带设备会接收到多个第二腕带设备发送的第二BLE广播消息,第一腕带设备会依次将自身的系统版本与各个第二腕带设备的系统版本进行比较,如果高于,则将自身的第一升级包发送至对应第二腕带设备,如果低于,则接收对应第二腕带设备发送的第二升级包。如果第一腕带设备的系统版本低于多个第二腕带设备的系统版本,则第一腕带设备会接收到这些腕带设备发送的第二升级包,第一腕带设备可以基于预设规则选择相应地第二升级包进行升级,例如选取最先接收到的第二升级包进行升级、又或者选取版本最高的第二升级包进行升级等,本申请在此不作特别的限定。
综上,采用本申请提供的升级方式,升级事件一旦被触发,后续无需用户操作便可实现系统的自动升级,尤其适用于老人和小孩,提高了用户体验。
在上述实施例的基础上:
作为一种优选地实施例,第一BLE广播消息还包括第一腕带设备的类型信息,第二BLE广播消息还包括第二腕带设备的类型信息;
基于第一版本号和第二版本号判断自身的系统版本是否高于第二腕带设备的系统版本之前,还包括:
基于第一腕带设备的类型信息和第二腕带设备的类型信息判断自身的类型是否与第二腕带设备的类型相同;
若是,则进入基于第一版本号和第二版本号判断自身的系统版本是否高于第二腕带设备的系统版本的步骤。
考虑到腕带设备的系统通常与其类型有关,如果两个腕带设备的类型相同,则这两个腕带设备的系统通常也是相同的。基于此,本实施例中,在第一腕带设备和第二腕带设备进行系统版本比较前,还会进行第一腕带设备和第二腕带设备的类型比较。具体地,第一BLE广播消息中还包括第一腕带设 备的类型信息,第二BLE广播消息中还包括第二腕带设备的类型信息。第一腕带设备会基于第一腕带设备的类型信息和第二腕带设备的类型信息判断自身的类型是否与第二腕带设备的类型相同,只有在类型相同的情况下才去进行后续的系统版本比较,否则,则不进行后续的系统版本比较。可见,通过该种方式,能够保证腕带设备的正确升级,提高了腕带设备升级的可靠性。
作为一种优选地实施例,第一BLE广播消息和第二BLE广播消息中均还包括消息发射功率;
该升级方法还包括:
基于消息发射功率确定自身与第二腕带设备之间的距离;
对距离进行提示。
考虑到一些通信方式对腕带设备之间的距离有要求,例如BLE蓝牙通信方式要求腕带设备之间的距离比较近。还考虑到第一腕带设备和第二腕带设备在建立通信时会先进行握手,并根据握手时接收到的握手信号的信号强度来调整后续发送的消息的发射功率。具体地,如果接收到的握手信号的信号强度较强,则说明第一腕带设备和第二腕带设备之间的距离比较近,则不需要太大的消息发射功率便可保证后续消息的可靠发送;如果接收到的握手信号的信号强度较弱,则说明第一腕带设备和第二腕带设备之间的距离比较远,则需要较大的消息发射功率以保证后续消息的可靠发送。可见,消息发射功率与两个腕带设备之间的距离呈负相关。
基于此,为了方便用户根据腕带设备之间的当前距离进行距离调整以保证后续的可靠升级,本实施例中,第一腕带设备在发送第一BLE广播消息时,第一BLE广播消息中还包括消息发射功率;同样地,第二腕带设备发送的第二BLE广播消息中也包括消息发射功率。第一腕带设备在获取到消息发射功率后,会根据消息发射功率及预设功率距离映射关系得到自身与第二腕带设备之间的距离,并对距离进行提示。其中,这里的提示可以但不仅限为在第一腕带设备的显示屏进行显示。用户在看到距离较大后则可以将第一腕带设备向第二腕带设备靠近。
可见,通过该种方式,使得用户能够根据第一腕带设备和第二腕带设备之间的当前距离判断是否要对第一腕带设备和第二腕带设备之间的距离进行调整,进一步提高了升级的可靠性。
请参照图2,图2为本申请提供的一种BLE广播消息的构成图。
其中,UUID(Universally Unique Identifier,通用唯一识别码)为固定字段,标识腕带设备的类型,例如固定为0100100001001000,若两个腕带设备的UUID相同,则表示两个腕带设备为同一类型,否则,表示两个腕带设备不是同一类型。
版本号分为主版本号(Major)和次版本号(Minor),在进行版本号比较时,可以先将主版本号和次版本号转化为数值(例如根据定义的转换规则:主版本*100+次版本),只有主版本号和次版本号都相同(对应于转换的数值相同)时,才表示两个版本相同,如果两个版本号不同,则表示两版本不同。
TX power表示消息发射功率。
在一种具体实现中,Data的字节数可以为22字节,其中,UUID为16字节,主版本号、次版本号及TX power均为2字节。
作为一种优选地实施例,升级事件被触发,包括:
通过自身的加速度传感器采集到的加速度数据确定用户在执行摇动动作。
上述实施例中提到,本申请中升级事件被触发可以通过多种方式实现,除了可以通过第一腕带设备上已有的或者额外添加的机械按键或者按钮或者触摸屏发送的升级指令来实现,还可以通过用户执行摇动动作来实现,当然,还可以采用其他方式实现,本申请在此不作特别的限定。
具体地,本实施例中,用户在执行摇动动作时,第一腕带设备中的加速度传感器会检测到相应地加速度数据,根据这些加速度数据并结合相应算法判断用户是否在执行摇动动作,如果是,则说明用户要进行腕带设备升级操作。如果否,则不做处理。其中,这里的摇动动作可以具体为为“摇一摇”。此外,相应算法则可以根据摇动动作的特征来进行设定,本申请在此不作限定。通过摇动动作来设定升级事件是否被触发,误判率较低,进一步提高了升级的可靠性。
作为一种优选地实施例,将自身的第一升级包发送至第二腕带设备之前,还包括:
发送是否升级的第一提示信息至第二腕带设备以进行提示;
若接收到第二腕带设备在接收到用户发送的第二升级确认指令后返回的第二升级确认消息,则进入将自身的第一升级包发送至第二腕带设备的步骤;
接收第二腕带设备发送的第二升级包之前,还包括:
接收第二腕带设备发送的是否升级的第二提示信息并进行提示;
若接收到用户发送的第一升级确认指令,则向第二腕带设备发送第一升级确认消息。
具体地,只要第一腕带设备的系统版本和第二腕带设备的系统版本不同,则说明系统版本低的腕带设备的系统需要升级。如果第一腕带设备的系统版本比第二腕带设备的系统版本高,则第一腕带设备会向第二腕带设备发送自身的第一升级包,否则,第一腕带设备会接收到第二腕带设备发送的第二升级包。
为了进一步提高用户体验,本实施例中,在第一腕带设备将自身的第一升级包发送至第二腕带设备之前,还会先发送一个询问是否升级的第一提示信息至第二腕带设备,以便第二腕带设备对第一提示信息进行提示,如果第二腕带设备接收到用户发送的第二升级确认指令,则向第一腕带设备返回第二升级确认消息,第一腕带设备在接收到第二升级确认消息后再将自身的第一升级包发送至第二腕带设备。同样地,第二腕带设备在发送第二升级包之前也会进行上述操作,则第一腕带设备会接收到第二腕带设备发送的是否升级的第二提示信息,并对第二提示信息进行提示。如果第一腕带设备接收到用户发送的第一升级确认指令,则向第二腕带设备发送第一升级确认消息,以便第二腕带设备在接收到第一升级确认消息后发送第二升级包。
此外,如果第二腕带设备接收到用户发送的第二升级取消指令,则向第一腕带设备返回第二升级取消消息,第一腕带设备在接收到第二升级取消消息后不发送自身的第一升级包至第二腕带设备。如果第一腕带设备接收到用户发送的第一升级取消指令,则向第二腕带设备发送第一升级取消消息,以便第二腕带设备不向第一腕带设备发送第二升级包。
可见,通过该种方式,只有在用户同意升级时才继续对系统版本低的腕带设备进行升级,提高了用户体验。
作为一种优选地实施例,在所述第二腕带设备为多个时,所述第一提示信息包括所述第一版本号,所述第二提示信息包括第二版本号;
对第二腕带设备发送的是否升级的第二提示信息进行提示之前,还包括:
判断自身的系统版本是否低于多个第二腕带设备的系统版本;
若是,则从发送第二提示信息的多个第二腕带设备中选出系统版本最高的第二腕带设备;
将选出的第二腕带设备发送的第二提示信息作为待提示信息;
否则,直接将接收到的第二腕带设备发送的是否升级的第二提示信息作为待提示信息。
考虑到比自身的系统版本高的第二腕带设备可能为多个,在该种情况下,如果不做挑选的话,第一腕带设备会接收到上述多个第二腕带设备发送的第二升级包,使得升级时间较长,升级效率较低,降低了用户体验。
为了解决上述技术问题,本实施例中,在接收到第二腕带设备发送的是否升级的第二提示信息后,对第二提示信息进行提示前,首先判断自身的系统版本是否低于多个第二腕带设备的系统版本,如果是,则说明第一腕带设备会接收到比自身系统版本高的多个第二腕带设备发送的第二提示信息,此时第一腕带设备从上述多个第二腕带设备中选出系统版本最高的第二腕带设备,并将该第二腕带设备发送的第二提示信息作为待提示信息,以便后续对待提示信息进行提示,可见,通过该种方式,展现在用户面前的只有一个第二提示信息,且第二提示信息中包括该第二腕带设备的系统的第二版本号,方便用户知道第一腕带设备的系统即将升级至哪个版本。相应地,在接收到用户发送的第一升级确认指令后,会向系统版本最高的第二腕带设备发送第一升级确认消息。
如果否,则说明第一腕带设备只会接收到一个比自身系统高的第二腕带设备发送的第二提示信息,此时直接将该第二提示信息作为待提示信息,以便后续对待提示信息进行提示。
综上,通过该种方式,在多个第二腕带设备的系统版本比第一腕带设备的系统版本高时,会选出系统版本最高的第二腕带设备发送的第二提示信息进行提示,以便后续仅系统版本最高的第二腕带设备发送第二升级包至第一腕带设备,减少了收包时间,缩短了升级时间,提高了升级效率及用户体验。
作为一种优选地实施例,在接收第二腕带设备发送的第二升级包之前,还包括:
判断自身的系统版本是否低于多个第二腕带设备的系统版本;
若是,则从多个第二腕带设备中选出系统版本最高的第二腕带设备,并向选出的第二腕带设备发送第一升级确认消息,以便选出的第二腕带设备接收到第一升级确认消息后发送第二升级包;
否则,直接向系统版本高于自身系统版本的第二腕带设备发送第一升级确认消息;
将自身的第一升级包发送至第二腕带设备之前,还包括:
接收第二腕带设备发送的第二升级确认消息。
考虑到在自身的系统版本低于多个第二腕带设备的系统版本时,如果不做挑选地话,会接收到多个第二腕带设备发送的第二升级包,使得升级时间较长,升级效率较低,降低了用户体验。
具体地,本实施例中,在判定自身的系统版本低于多个第二腕带设备的系统版本时,可直接从这多个第二腕带设备中选出系统版本最高的第二腕带设备,并向选出的第二腕带设备发送第一升级确认消息,第二腕带设备在接收到第一升级确认消息后再向第一腕带设备发送第二升级包。否则,则说明自身的系统版本只比一个第二腕带设备的系统版本低,该种情况下,直接向系统版本高于自身系统版本的第二腕带设备发送第一升级确认消息,以便第二腕带设备在接收到第一升级确认消息后向第一腕带设备发送第二升级包。同样地,第二腕带设备也会作相应地判断,第一腕带设备在接收到第二腕带设备发送的第二升级确认消息后再向第二腕带设备发送自身的第一升级包。
可见,通过该种方式,一方面,在升级事件被触发后,无需用户参与,实现了升级的全自动化,另一方面,在多个第二腕带设备的系统版本比第一腕带设备的系统版本高时,会选出系统版本最高的第二腕带设备,并向该第二腕带设备发送第一升级确认消息,以便后续仅系统版本最高的第二腕带设备发送第二升级包至第一腕带设备,减少了收包时间,缩短了升级时间,提高了升级效率及用户体验。
作为一种优选地实施例,将自身的第一升级包发送至第二腕带设备之前,还包括:
基于第一版本号和第二版本号确定第一版本号对应的系统包中区别于第二版本号对应的系统包的待升级子数据包;
判断待升级子数据包在第一版本号对应的系统包中的占比是否大于占比阈值;
若是,则将第一版本号对应的系统包作为第一升级包;
若否,则将待升级子数据包作为第一升级包。
现有技术中,通过终端上的APP发送升级包至腕带设备时通常采用整包的方式进行发送,但在一些情况下,该次升级仅对系统包中的较少子数据包进行了升级更新,其他大部分子数据包未变,则通过整包的方式发送造成了腕带设备收包时间变长,延长了升级时间。
本实施例中,在向第二腕带设备发送第一升级包之前,先基于第一版本号和第二版本号确定第一版本号对应的系统包中区别于第二版本号对应的系统包的待升级子数据包,然后判断待升级子数据包在第一版本号对应的系统包中的占比是否大于占比阈值(例如可以但不仅限为50%),若是,则说明待升级子数据包较多,为了保证升级可靠性,采用整包升级的方式,也即将整个系统包作为第一升级包发送至第二腕带设备,若否,则说明待升级子数据包较少,为了提高升级效率,采用差分包升级(局部升级)的方式,也即只将待升级子数据包作为第一升级包。在实际应用中,第二腕带设备在接收到第一升级包后,根据第一升级包进行flash更新,以实现对自身系统的版本升级。
可见,本实施例根据待升级数据包在整个系统包中所占比例来判定采用哪种升级方式,实现了升级可靠性和升级效率的有效平衡。
请参照图3,图3为本申请提供的一种腕带设备的升级系统的结构示意图。
该升级系统应用于第一腕带设备,包括:
广播模块31,用于在升级事件被触发时,发送包括自身系统的第一版本号的第一BLE广播消息;
第一判断模块32,用于判断是否接收到第二腕带设备发送的第二BLE广播消息,第二BLE广播消息包括第二腕带设备的系统的第二版本号;若是,则触发版本比较模块33;
版本比较模块33,用于基于第一版本号和第二版本号判断自身的系统版本是否高于第二腕带设备的系统版本;若高于,则触发升级包发送模块34;若低于,触发升级模块35;
升级包发送模块34,用于将自身的第一升级包发送至第二腕带设备;
升级模块35,用于接收第二腕带设备发送的第二升级包,并通过第二升级包对自身进行升级。
对于本申请提供的腕带设备的升级系统的介绍请参照上述方法实施例本申请在此不再赘述。
请参照图4,图4为本申请提供的一种腕带设备的结构示意图。
该腕带设备包括:
存储器41,用于存储计算机程序;
处理器42,用于执行计算机程序时实现如上述腕带设备的升级方法的步骤。
对于本申请提供的腕带设备的介绍请参照上述方法实施例本申请在此不再赘述。
本说明书中各个实施例采用并列或者递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处可参见方法部分说明。
本领域普通技术人员还可以理解,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存 储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
Claims (10)
- 一种腕带设备的升级方法,应用于第一腕带设备,其特征在于,包括:在升级事件被触发时,发送包括自身系统的第一版本号的第一BLE广播消息;判断是否接收到第二腕带设备发送的第二BLE广播消息,所述第二BLE广播消息包括所述第二腕带设备的系统的第二版本号;若是,则基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本;若高于,则将自身的第一升级包发送至所述第二腕带设备;若低于,则接收所述第二腕带设备发送的第二升级包,并通过所述第二升级包对自身进行升级。
- 如权利要求1所述的腕带设备的升级方法,其特征在于,所述第一BLE广播消息还包括所述第一腕带设备的类型信息,所述第二BLE广播消息还包括第二腕带设备的类型信息;基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本之前,还包括:基于所述第一腕带设备的类型信息和所述第二腕带设备的类型信息判断自身的类型是否与所述第二腕带设备的类型相同;若是,则进入基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本的步骤。
- 如权利要求2所述的腕带设备的升级方法,其特征在于,所述第一BLE广播消息和所述第二BLE广播消息中均还包括消息发射功率;该升级方法还包括:基于所述消息发射功率确定自身与所述第二腕带设备之间的距离;对所述距离进行提示。
- 如权利要求1所述的腕带设备的升级方法,其特征在于,升级事件被触发,包括:通过自身的加速度传感器采集到的加速度数据确定用户在执行摇动动作。
- 如权利要求1所述的腕带设备的升级方法,其特征在于,将自身的第一升级包发送至所述第二腕带设备之前,还包括:发送是否升级的第一提示信息至所述第二腕带设备以进行提示;若接收到所述第二腕带设备在接收到用户发送的第二升级确认指令后返回的第二升级确认消息,则进入将自身的第一升级包发送至所述第二腕带设备的步骤;接收所述第二腕带设备发送的第二升级包之前,还包括:接收所述第二腕带设备发送的是否升级的第二提示信息并进行提示;若接收到用户发送的第一升级确认指令,则向所述第二腕带设备发送第一升级确认消息。
- 如权利要求5所述的腕带设备的升级方法,其特征在于,在所述第二腕带设备为多个时,所述第一提示信息包括所述第一版本号,所述第二提示信息包括第二版本号;对所述第二腕带设备发送的是否升级的第二提示信息进行提示之前,还包括:判断自身的系统版本是否低于多个第二腕带设备的系统版本;若是,则从发送第二提示信息的多个第二腕带设备中选出系统版本最高的第二腕带设备;将选出的第二腕带设备发送的第二提示信息作为待提示信息;否则,直接将接收到的第二腕带设备发送的是否升级的第二提示信息作为待提示信息。
- 如权利要求1所述的腕带设备的升级方法,其特征在于,在接收所述第二腕带设备发送的第二升级包之前,还包括:判断自身的系统版本是否低于多个第二腕带设备的系统版本;若是,则从所述多个第二腕带设备中选出系统版本最高的第二腕带设备,并向选出的第二腕带设备发送第一升级确认消息,以便选出的第二腕带设备接收到所述第一升级确认消息后发送第二升级包;否则,直接向系统版本高于自身系统版本的第二腕带设备发送第一升级确认消息;将自身的第一升级包发送至所述第二腕带设备之前,还包括:接收所述第二腕带设备发送的第二升级确认消息。
- 如权利要求1至7任一项所述的腕带设备的升级方法,其特征在于,将自身的第一升级包发送至所述第二腕带设备之前,还包括:基于所述第一版本号和所述第二版本号确定所述第一版本号对应的系统包中区别于所述第二版本号对应的系统包的待升级子数据包;判断所述待升级子数据包在所述第一版本号对应的系统包中的占比是否大于占比阈值;若是,则将所述第一版本号对应的系统包作为第一升级包;若否,则将所述待升级子数据包作为第一升级包。
- 一种腕带设备的升级系统,应用于第一腕带设备,其特征在于,包括:广播模块,用于在升级事件被触发时,发送包括自身系统的第一版本号的第一BLE广播消息;第一判断模块,用于判断是否接收到第二腕带设备发送的第二BLE广播消息,所述第二BLE广播消息包括所述第二腕带设备的系统的第二版本号;若是,则触发版本比较模块;所述版本比较模块,用于基于所述第一版本号和所述第二版本号判断自身的系统版本是否高于所述第二腕带设备的系统版本;若高于,则触发升级包发送模块;若低于,触发升级模块;所述升级包发送模块,用于将自身的第一升级包发送至所述第二腕带设备;所述升级模块,用于接收所述第二腕带设备发送的第二升级包,并通过所述第二升级包对自身进行升级。
- 一种腕带设备,其特征在于,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现如权利要求1至8任一项所述腕带设备的升级方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206919.5A CN110972081B (zh) | 2019-11-29 | 2019-11-29 | 一种腕带设备及其升级方法、系统 |
CN201911206919.5 | 2019-11-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021103258A1 true WO2021103258A1 (zh) | 2021-06-03 |
Family
ID=70032388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/129520 WO2021103258A1 (zh) | 2019-11-29 | 2019-12-28 | 一种腕带设备及其升级方法、系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110972081B (zh) |
WO (1) | WO2021103258A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114172875B (zh) * | 2021-12-03 | 2024-06-25 | 深圳小湃科技有限公司 | 网络摄像机远程升级方法、系统及可读存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615464A (zh) * | 2015-01-30 | 2015-05-13 | 广东欧珀移动通信有限公司 | 一种可穿戴设备的升级方法、装置及系统 |
CN104980886A (zh) * | 2015-06-25 | 2015-10-14 | 上海卓易科技股份有限公司 | 一种软件升级的方法及装置 |
CN107085525A (zh) * | 2017-03-17 | 2017-08-22 | 深圳市战音科技有限公司 | 基于蓝牙电子设备的软件升级方法及装置 |
CN110377316A (zh) * | 2019-07-23 | 2019-10-25 | 拉扎斯网络科技(上海)有限公司 | 蓝牙设备及其升级方法、装置和计算机可读存储介质 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699495B (zh) * | 2013-12-10 | 2018-08-10 | 联想(北京)有限公司 | 信息处理的方法及电子设备 |
CN106535228A (zh) * | 2016-11-30 | 2017-03-22 | 努比亚技术有限公司 | 一种系统升级装置及方法 |
CN109308186A (zh) * | 2018-08-21 | 2019-02-05 | 珠海格力电器股份有限公司 | 一种版本升级的方法和终端 |
CN109831761A (zh) * | 2018-12-17 | 2019-05-31 | 杭州追新科技有限公司 | 一种远程终端自动化升级装置 |
-
2019
- 2019-11-29 CN CN201911206919.5A patent/CN110972081B/zh active Active
- 2019-12-28 WO PCT/CN2019/129520 patent/WO2021103258A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615464A (zh) * | 2015-01-30 | 2015-05-13 | 广东欧珀移动通信有限公司 | 一种可穿戴设备的升级方法、装置及系统 |
CN104980886A (zh) * | 2015-06-25 | 2015-10-14 | 上海卓易科技股份有限公司 | 一种软件升级的方法及装置 |
CN107085525A (zh) * | 2017-03-17 | 2017-08-22 | 深圳市战音科技有限公司 | 基于蓝牙电子设备的软件升级方法及装置 |
CN110377316A (zh) * | 2019-07-23 | 2019-10-25 | 拉扎斯网络科技(上海)有限公司 | 蓝牙设备及其升级方法、装置和计算机可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN110972081B (zh) | 2021-08-24 |
CN110972081A (zh) | 2020-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11107467B2 (en) | Method for voice recognition and electronic device for performing same | |
EP3062567B1 (en) | Electronic device and method for managing power in electronic device | |
EP3370144A1 (en) | Electronic device for processing user input and method for processing user input | |
US9191480B2 (en) | Method for performing alarm function and electronic device thereof | |
US10200528B2 (en) | Method for performing function and electronic device supporting the same | |
CN110869907A (zh) | 一种浏览应用页面的方法及终端 | |
CN108235754A (zh) | 一种提示用户更新应用版本的方法及设备 | |
KR102372188B1 (ko) | 오디오 신호의 잡음을 제거하기 위한 방법 및 그 전자 장치 | |
CN110097884B (zh) | 一种语音交互方法和装置 | |
US9876744B2 (en) | Information sending method and information sending apparatus | |
US20180329675A1 (en) | Electronic device and method for controlling audio output according to the type of earphone | |
CN106095456A (zh) | 引导用户下载应用程序的方法、装置及移动终端 | |
CN106507482A (zh) | 一种网络定位方法及终端设备 | |
US20190057072A1 (en) | Method, device and electronic equipment for switching name of desktop icon folder | |
WO2015143933A1 (en) | Information sending method and information sending apparatus | |
WO2021103258A1 (zh) | 一种腕带设备及其升级方法、系统 | |
CN105468504A (zh) | 程序测试方法及装置 | |
CN105141755A (zh) | 一种信息回复方法、智能手表、终端设备以及系统 | |
CN104702673B (zh) | 一种服务信息的获取方法及可穿戴设备 | |
CN108647070B (zh) | 信息提醒方法、装置、移动终端和计算机可读介质 | |
CN106302101B (zh) | 消息提醒方法、终端及服务器 | |
CN111124627B (zh) | 应用程序的调起者确定方法、装置、终端及存储介质 | |
EP4411544A1 (en) | Electronic device and operation method thereof | |
CN109041212B (zh) | 一种定位方法及可穿戴设备 | |
CN104967598B (zh) | 一种用户多媒体权限资讯的获取方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19954534 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19954534 Country of ref document: EP Kind code of ref document: A1 |