Wearable device, watchband identification method thereof and computer-readable storage medium

文档序号:7001 发布日期:2021-09-17 浏览:89次 中文

1. A wearable device, characterized in that the wearable device comprises:

a wearable device body;

the watchband comprises a first watchband and a second watchband which are respectively connected with two sides of the wearable equipment body, and magnetic parts are arranged at the end parts of the first watchband and the second watchband which are used for being connected with the wearable equipment body;

the Hall sensor is arranged on the wearable equipment body, is positioned at the joint of the wearable equipment body and the watchband, and is used for acquiring first magnetic piece information of the first watchband and second magnetic piece information of the second watchband;

and the control chip is arranged on the wearable equipment body and used for determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation.

2. The wearable device of claim 1, wherein the control chip is further to:

determining a target working mode corresponding to the current watchband according to a mapping relation between a preset watchband type and the working mode;

and switching the current working mode of the wearable equipment to the target working mode.

3. The wearable device of claim 2, wherein the control chip is further to:

receiving a working mode setting request, and acquiring working mode setting information carried in the working mode setting request;

and updating the mapping relation between the preset watchband type and the working mode according to the working mode setting information.

4. The wearable device of claim 2, wherein the control chip is further to:

generating switching confirmation information, and displaying or broadcasting in voice;

and when a switching confirmation instruction fed back by a user is received, switching the current working mode of the wearable device to the target working mode.

5. The wearable device of claim 1, wherein the control chip is further to:

acquiring the real-time level of the Hall sensor, and detecting whether the real-time level changes;

when the real-time level is detected to be changed, judging whether the change condition of the real-time level meets a preset condition;

if the preset conditions are met, the watchband is judged to be replaced.

6. The wearable device of claim 1, wherein the wearable device body further comprises:

the light sensor is arranged at the joint of the wearable equipment body and the watchband and used for detecting the light intensity variation trend of the environment where the wearable equipment body is located;

the control chip is further configured to: judging whether the light intensity variation trend accords with a preset trend or not; if the preset trend is met, the watchband is judged to be replaced.

7. The wearable device according to any one of claims 1 to 6, wherein the magnetic member is a magnet, and the first magnetic member information and the second magnetic member information each include one or more of magnetic pole information, magnetic field strength information.

8. The wearable device of any of claims 1-6, wherein the control chip is further to:

when the watchband is detected to be disconnected, timing is started to obtain disconnection duration;

and controlling the wearable equipment to stop working when the disconnection duration is detected to exceed the preset duration.

9. A watchband identification method of a wearable device is characterized by comprising the following steps:

acquiring first magnetic piece information of a first watchband and second magnetic piece information of a second watchband;

and determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a watchband identification program, which when executed by a processor implements the steps of the watchband identification method of a wearable device according to claim 9.

Background

Along with the continuous progress and the development of scientific and technological, wearable equipment has risen rapidly, and wearable equipment in the market is of a great variety, like intelligent wrist-watch and intelligent bracelet etc.. In order to meet the requirements of consumers on individuation and diversification of product experience, watchbands of various styles are designed by enterprises for users to match according to own preferences. However, after the watchband is replaced, if the display part of the intelligent watch/bracelet is required to correspond to the watchband, the working mode is often required to be manually switched by a user, the operation is complex, and the user experience is poor. Therefore, how to intelligently identify the watchband type of the wearable device is a technical problem which needs to be solved urgently at present.

Disclosure of Invention

The invention mainly aims to provide a wearable device, a watchband identification method thereof and a computer-readable storage medium, and aims to realize automatic identification of a watchband of the wearable device.

To achieve the above object, the present invention provides a wearable device, including:

a wearable device body;

the watchband comprises a first watchband and a second watchband which are respectively connected with two sides of the wearable equipment body, and magnetic parts are arranged at the end parts of the first watchband and the second watchband which are used for being connected with the wearable equipment body;

the Hall sensor is arranged on the wearable equipment body, is positioned at the joint of the wearable equipment body and the watchband, and is used for acquiring first magnetic piece information of the first watchband and second magnetic piece information of the second watchband;

and the control chip is arranged on the wearable equipment body and used for determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation.

Optionally, the control chip is further configured to:

determining a target working mode corresponding to the current watchband according to a mapping relation between a preset watchband type and the working mode;

and switching the current working mode of the wearable equipment to the target working mode.

Optionally, the control chip is further configured to:

receiving a working mode setting request, and acquiring working mode setting information carried in the working mode setting request;

and updating the mapping relation between the preset watchband type and the working mode according to the working mode setting information.

Optionally, the control chip is further configured to:

generating switching confirmation information, and displaying or broadcasting in voice;

and when a switching confirmation instruction fed back by a user is received, switching the current working mode of the wearable device to the target working mode.

Optionally, the control chip is further configured to:

acquiring the real-time level of the Hall sensor, and detecting whether the real-time level changes;

when the real-time level is detected to be changed, judging whether the change condition of the real-time level meets a preset condition;

if the preset conditions are met, the watchband is judged to be replaced.

Optionally, the wearable device body further includes:

the light sensor is arranged at the joint of the wearable equipment body and the watchband and used for detecting the light intensity variation trend of the environment where the wearable equipment body is located;

the control chip is further configured to: judging whether the light intensity variation trend accords with a preset trend or not; if the preset trend is met, the watchband is judged to be replaced.

Optionally, the magnetic member is a magnet, and the first magnetic member information and the second magnetic member information each include one or more of magnetic pole information and magnetic field strength information.

Optionally, the control chip is further configured to:

when the watchband is detected to be disconnected, timing is started to obtain disconnection duration;

and controlling the wearable equipment to stop working when the disconnection duration is detected to exceed the preset duration.

In addition, to achieve the above object, the present invention further provides a watchband identification method of a wearable device, including:

acquiring first magnetic piece information of a first watchband and second magnetic piece information of a second watchband through a Hall sensor;

and determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation.

In addition, to achieve the above object, the present invention further provides a computer-readable storage medium having a watchband identification program stored thereon, where the watchband identification program, when executed by a processor, implements the steps of the watchband identification method of a wearable device as described above.

The invention provides a wearable device, a watchband identification method thereof and a computer-readable storage medium. The wearable device comprises a wearable device body, watchbands, Hall sensors and a control chip, wherein the watchbands comprise a first watchband and a second watchband which are respectively connected with two sides of the wearable device body, and magnetic parts are arranged at the end parts of the first watchband and the second watchband which are used for being connected with the wearable device body; the Hall sensor is arranged on the wearable equipment body, is positioned at the joint of the wearable equipment body and the watchband, and is used for acquiring first magnetic piece information of the first watchband and second magnetic piece information of the second watchband; the control chip is arranged on the wearable equipment body and used for determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and the preset mapping relation. According to the invention, a Hall sensor is arranged in the wearable equipment body, magnetic pieces are arranged at the ends of the first watchband and the second watchband connected with the wearable equipment body, and the Hall sensor is used for reading first magnetic piece information of the first watchband and second magnetic piece information of the second watchband, so that the type of the watchband is determined. Through the mode, the identification of different watchbands can be realized, so that the automatic switching of the working modes of the wearable equipment can be realized conveniently according to the watchband types obtained by identification, and the use experience of a user is improved. In addition, the Hall sensor and the magnetic part are low in price and high in cost performance, so that the Hall sensor and the magnetic part are simpler and more convenient to design and develop and low in cost, and the product competitiveness can be greatly improved.

Drawings

Fig. 1 is a schematic structural diagram of a wearable device of the present invention;

fig. 2 is a flowchart illustrating a watchband identification method of a wearable device according to a first embodiment of the present invention;

fig. 3 is a flowchart illustrating a watchband identification method of a wearable device according to a second embodiment of the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a wearable device of the present invention. This wearable equipment can be for intelligent wrist-watch, intelligent bracelet etc..

As shown in fig. 1, the wearable device includes a wearable device body, a watchband, a hall sensor, and a control chip, where the watchband may include a first watchband and a second watchband connected to two sides of the wearable device body, and the first watchband and the second watchband may be independent (as shown in fig. 1) or integrated. The end parts of the first watchband and the second watchband, which are used for being connected with the wearable device body, are provided with magnetic pieces, wherein the magnetic pieces are magnets optionally, and it can be understood that the first watchband and the second watchband can be provided with magnets with the same or different polarities simultaneously (as shown in fig. 1), of course, one magnet can be arranged in the first watchband or the second watchband only, or magnets can not be arranged in the first watchband or the second watchband, so as to distinguish watchbands of different types, and in addition, magnets with different magnetic field strengths can be arranged, so as to further increase the types of the watchbands. The wearable device body comprises a control chip and a hall sensor in communication connection with the control chip, and optionally, the control chip can be connected with the hall sensor through an I2C (Inter-Integrated Circuit) communication line. The hall sensor locates the junction of wearable equipment body and watchband, hall sensor includes two at least (as hall sensor 1 and hall sensor 2 in fig. 1), one is used for detecting the first magnetic member information of first watchband when being connected with first watchband, another is used for detecting the second magnetic member information of second watchband when being connected with the second watchband, of course, according to the magnetic member information that needs to detect, hall sensor can also include four, with first, the junction of second watchband respectively sets up two, one of them is switch type hall sensor, one is linear type hall sensor. In addition, the wearable device body can also include the dial plate and detain the Display screen that can Display the picture on the dial plate, and this Display screen accessible SPI (Serial Peripheral Interface) or MIPI DSI (Mobile Industry Processor Display Serial Interface) class of Interface and control chip are connected, and the different pictures of accessible control Display screen Display switch mode.

Wherein the Hall sensor is configured to: acquiring first magnetic piece information of the first watchband and second magnetic piece information of the second watchband;

the control chip is used for: and determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation.

In this embodiment, when detecting that the watchband is replaced, the control chip obtains the first magnetic piece information of the first watchband and the second magnetic piece information of the second watchband through the hall sensor.

Wherein the first magnetic piece information and the second magnetic piece information may include one or more of magnetic pole information and magnetic field strength information. The magnetic pole information is the polarity information of the magnetic part, the magnetic field intensity information is the detected intensity of the magnetic field of the magnetic part, and different intensity levels or specific numerical values can be used for representing. When the magnetic piece information is acquired, if the first magnetic piece information and the second magnetic piece information only comprise magnetic pole information, only one switch type Hall sensor is required to be arranged at the joint of the first magnetic piece information and the second magnetic piece information and the first magnetic piece information and the second magnetic piece information are connected with the first magnetic piece information and the second magnetic piece information respectively, two output ports are reserved on the switch type Hall sensors, one output port is used for detecting the S pole of the magnet, the other output port is used for detecting the N pole of the magnet, and the Hall sensors can be used for detecting whether the magnet exists or not. If the magnetic piece information only comprises magnetic field intensity information, only one linear Hall sensor is required to be arranged at the joint of the first watchband and the second watchband. If the first magnetic piece information and the second magnetic piece information comprise magnetic pole information and magnetic field intensity, two Hall sensors are required to be arranged at the connection parts of the first magnetic piece information and the second magnetic piece information are respectively provided with a switch type Hall sensor and a linear type Hall sensor.

The detection method of the replaced watchband can include but is not limited to: 1) acquiring a real-time level of a Hall sensor, and detecting whether the real-time level changes; when the real-time level is detected to be changed, judging whether the change condition of the real-time level meets a preset condition or not; if the preset conditions are met, the watchband is judged to be replaced;

2) arranging a light sensor at the joint of the wearable equipment body and the watchband, and detecting the light intensity variation trend of the environment where the wearable equipment body is located through the light sensor; judging whether the light intensity variation trend accords with a preset trend or not; if the preset trend is met, the watchband is judged to be replaced; 3) set up a watchband change button on wearable equipment body, when accomplishing the watchband and change, the user's accessible is pressed this watchband and is changed the button and trigger the instruction of changing the completion, and then makes control chip detect the watchband and is changed.

And then, determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation. The preset mapping relationship is a mapping relationship between preset different magnetic piece information and watchband types, and can be represented in a table form. It should be noted that the first magnetic piece information and the second magnetic piece information may include one or more of magnetic pole information and magnetic field strength information, and correspondingly, when the first magnetic piece information and the second magnetic piece information are magnetic pole information, the preset mapping relationship is a mapping relationship between different magnetic pole information and different watchband types; when the first magnetic piece information and the second magnetic piece information are magnetic field strengths, presetting a mapping relation between different magnetic field strengths and different watchband types; when the first magnetic piece information and the second magnetic piece information comprise magnetic pole information and magnetic field intensity, the preset mapping relation is the mapping relation between different magnetic pole information and magnetic field intensity and different watchband types.

According to the invention, a Hall sensor is arranged in the wearable equipment body, magnetic pieces are arranged at the ends of the first watchband and the second watchband connected with the wearable equipment body, and the Hall sensor is used for reading first magnetic piece information of the first watchband and second magnetic piece information of the second watchband, so that the type of the watchband is determined. Through the mode, the identification of different watchbands can be realized, so that the automatic switching of the working modes of the wearable equipment can be realized conveniently according to the watchband types obtained by identification, and the use experience of a user is improved. In addition, the Hall sensor and the magnetic part are low in price and high in cost performance, so that the Hall sensor and the magnetic part are simpler and more convenient to design and develop and low in cost, and the product competitiveness can be greatly improved.

Further, the control chip is further configured to:

determining a target working mode corresponding to the current watchband according to a mapping relation between a preset watchband type and the working mode;

and switching the current working mode of the wearable equipment to the target working mode.

In this embodiment, after the current watchband is obtained through identification, the control chip may determine a target working mode corresponding to the current watchband according to a mapping relationship between a preset watchband type and the working mode. Then, the current working mode of the wearable device is switched to the target working mode. Specifically, the control chip can send a working mode switching instruction to the display screen in the dial, the working mode switching instruction includes information of a target working mode, and then the display screen displays the corresponding target working mode based on the working mode switching instruction, so that automatic switching of the working mode is achieved.

Further, the control chip is further configured to:

generating switching confirmation information, and displaying or broadcasting in voice;

and when a switching confirmation instruction fed back by a user is received, switching the current working mode of the wearable device to the target working mode.

In this embodiment, before the working mode is switched, whether the wearable device needs to be replaced or not can be determined in advance with the user to avoid misoperation, so that the user experience is further improved, specifically, after the target working mode is determined, switching confirmation information can be generated and displayed or voice broadcast is performed in a display screen, correspondingly, when the user sees or hears the switching confirmation information, a confirmation switching instruction or a rejection switching instruction can be fed back in a touch screen clicking or voice reply mode, and when the control chip receives the confirmation switching instruction fed back by the user, the current working mode of the wearable device is switched to the target working mode.

In this embodiment, determine target mode through the type according to current watchband, and then carry out the mode switch to realize the automatic switch-over of wearable equipment mode, can promote user's use experience.

Further, the control chip is further configured to:

receiving a working mode setting request, and acquiring working mode setting information carried in the working mode setting request;

and updating the mapping relation between the preset watchband type and the working mode according to the working mode setting information.

In this embodiment, a user may individually set, through the wearable device or the mobile terminal in communication connection with the wearable device, a work mode corresponding to different watchbands that the user wants, and further change a default work mode corresponding to each watchband, for example, the user may set an example through the mobile terminal, display a work mode currently corresponding to each watchband in a screen, and display an alternative work mode, and the user may select a current work mode that the user wants to change and an alternative work mode after the user needs to change through dragging or clicking to generate a work mode setting request. Correspondingly, when receiving the working mode setting request, the control chip obtains the working mode setting information carried in the working mode setting request, wherein the working mode setting information includes a current working mode to be replaced (i.e. the current working mode to be replaced) and a target setting working mode (i.e. the alternative working mode after replacement).

And then, updating the preset mapping relation between the watchband type and the working mode according to the acquired working mode setting information, namely updating the current working mode to be replaced in the mapping relation to be the target setting working mode.

Through the mode, the user can set the working modes of different watchbands according to the preference of the user, the personalized setting of the working modes is realized, and therefore the use experience of the user can be further improved.

Further, the control chip is further configured to:

acquiring the real-time level of the Hall sensor, and detecting whether the real-time level changes;

when the real-time level is detected to be changed, judging whether the change condition of the real-time level meets a preset condition;

if the preset conditions are met, the watchband is judged to be replaced.

In this embodiment, as one of the ways to detect the replacement of the watchband, the detection process is as follows:

the control chip acquires the real-time level of the Hall sensor and detects whether the real-time level changes. It should be noted that, because the wearable device body and the joints of the first and second watchbands are all provided with the hall sensors, the acquired real-time levels include two levels.

And then, detecting whether the real-time level changes or not, and judging whether the change condition of the real-time level meets the preset condition or not. When detecting, consider for increasing the watchband type, perhaps not set up magnet in the watchband of one side, at this moment, when detecting that one side hall sensor's real-time level changes, then explain that the watchband is dismantled or the watchband of changing is connected with wearable equipment body, furthermore, can judge whether this real-time level's situation of change accords with the preset condition, because when connecting the watchband, magnet is close to hall sensor and can make hall sensor output low level, when dismantling the watchband, magnet leaves hall sensor and can make hall sensor output high level, therefore, the change trend of preset condition optional real-time level is for turning into the low level by the high level, or, real-time level becomes the low level, at this moment, then judge that the watchband is changed. If magnets are arranged on two sides of each type of watchband, when the real-time levels of the Hall sensors on two sides need to be detected to be changed, whether the real-time levels of the Hall sensors on two sides meet preset conditions or not can be further detected, the preset conditions can be selected from the fact that the change trend of the real-time levels is changed from high levels to low levels or the real-time levels are changed into low levels, and if the real-time levels meet the preset conditions, the watchband is judged to be replaced.

Furthermore, the wearable device body further comprises a light sensor, the light sensor is arranged at the joint of the wearable device body and the watchband, and the light sensor is used for detecting the light intensity variation trend of the environment where the wearable device body is located;

the control chip is further configured to: judging whether the light intensity variation trend accords with a preset trend or not; if the preset trend is met, the watchband is judged to be replaced.

In this embodiment, as another detection method for replacing a watchband, the detection process is as follows:

the light sensor is arranged at the joint of the wearable device body and the watchband, and is arranged on the wearable device body and is in communication connection with the control chip. When the watchband is connected with the wearable equipment body, the light sensor is shielded, so that the detected light intensity is relatively low, and even light cannot be detected; and when the watchband was not connected with wearable equipment body, external light will be detected to light sensor, and its light intensity is brighter relatively. Therefore, the light intensity trend of environment that control chip accessible light sensor detected wearable equipment body and is located, then judge whether light intensity trend accords with preset trend, wherein, preset the trend for by strong weak, if accord with this preset trend, explain wearable equipment's state is changed into watchband and wearable equipment body coupling's state by the state that the watchband is not connected with wearable equipment body, and this moment, then judge that the watchband is changed.

In this embodiment, whether the watchband is replaced can be accurately detected by the above method, and then when the watchband is detected to be replaced, the first magnetic piece information of the first watchband and the second magnetic piece information of the second watchband are obtained in time, so as to determine the type of the current watchband, and then the working modes are switched in time.

Further, the magnetic member is a magnet, and the first magnetic member information and the second magnetic member information each include one or more of magnetic pole information and magnetic field strength information.

Further, the control chip is further configured to:

when the watchband is detected to be disconnected, timing is started to obtain disconnection duration;

and controlling the wearable equipment to stop working when the disconnection duration is detected to exceed the preset duration.

In this embodiment, the control chip may start timing when detecting that the wristband is disconnected, so as to obtain a disconnection duration. The detection mode of watchband disconnection can include but is not limited to: 1) when the output level of the Hall sensor connected with one end or two ends of the watchband is high level, namely the magnet in the watchband is far away from the Hall sensor, the watchband is judged to be disconnected at the moment; 2) when the light intensity variation trend of the environment where the wearable device body is located is changed from weak to strong through the light sensor arranged at the joint of the watchband and the wearable device body, the disconnection of the watchband is judged.

And further, whether the disconnection time length exceeds the preset time length or not is detected in real time, if the disconnection time length is detected to exceed the preset time length, the wearable equipment is not in a wearing state for a long time, and the user is likely to place the wearable equipment, so that the wearable equipment is controlled to stop working, and the electric quantity is saved. Wherein, the stop work is to power off the wearable device without operating any function. Certainly, in specific implementation, when it is detected that the disconnection duration of the watchband disconnection exceeds the preset duration, the wearable device may be controlled to enter the sleep mode, or the preset function of the wearable device is turned off, so as to save the electric quantity.

Further, when it is detected that the disconnection duration exceeds the preset duration, an alarm reminding may be performed, and the alarm reminding mode may include, but is not limited to: 1) controlling the wearable equipment to continuously send out an alarm sound; 2) and sending alarm information to a mobile terminal connected with the wearable device to prompt that the user watchband and the wearable device are likely to fall off, so that the user can send the condition in time to avoid the loss of the wearable device.

Further, the invention also provides a watchband identification method of the wearable device.

Referring to fig. 2, fig. 2 is a flowchart illustrating a watchband identification method of a wearable device according to a first embodiment of the present invention.

In this embodiment, the watchband identification method of the wearable device includes:

step S10, acquiring first magnetic piece information of a first watchband and second magnetic piece information of a second watchband through a Hall sensor;

in this embodiment, the watchband identification method of the wearable device is applied to the wearable device shown in fig. 1, and the wearable device may be a smart watch, a smart bracelet, or the like. As shown in fig. 1, the wearable device includes a wearable device body, a watchband, a hall sensor, and a control chip, where the watchband may include a first watchband and a second watchband connected to two sides of the wearable device body, and the first watchband and the second watchband may be independent (as shown in fig. 1) or integrated. The end parts of the first watchband and the second watchband, which are used for connecting the wearable device body, are provided with magnetic parts, wherein the magnetic parts are magnets optionally, and it can be understood that the first watchband and the second watchband can be provided with magnets with the same or different polarities at the same time, certainly, the first watchband or the second watchband can be provided with one magnet only, or the first watchband or the second watchband is not provided with magnets, so that watchbands of different types can be distinguished, and in addition, magnets with different magnetic field strengths can be further arranged, so that the types of the watchbands can be further increased. The wearable device body comprises a control chip and a Hall sensor in communication connection with the control chip, and optionally, the control chip can be connected with the Hall sensor through an I2C communication line. The hall sensor locates the junction of wearable equipment body and watchband, hall sensor includes two at least (as hall sensor 1 and hall sensor 2 in fig. 1), one is used for detecting the first magnetic member information of first watchband when being connected with first watchband, another is used for detecting the second magnetic member information of second watchband when being connected with the second watchband, of course, according to the magnetic member information that needs to detect, hall sensor can also include four, with first, the junction of second watchband respectively sets up two, one of them is switch type hall sensor, one is linear type hall sensor. In addition, wearable equipment body can also include the dial plate and detain the display screen that can display the picture of putting on the dial plate, and this display screen accessible SPI or MIPI DSI type's interface such as is connected with control chip, and the different pictures of accessible control display screen display switch mode.

In this embodiment, when detecting that the watchband is replaced, the control chip obtains the first magnetic piece information of the first watchband and the second magnetic piece information of the second watchband through the hall sensor.

Wherein the first magnetic piece information and the second magnetic piece information may include one or more of magnetic pole information and magnetic field strength information. The magnetic pole information is the polarity information of the magnetic part, the magnetic field intensity information is the detected intensity of the magnetic field of the magnetic part, and different intensity levels or specific numerical values can be used for representing. When the magnetic piece information is acquired, if the first magnetic piece information and the second magnetic piece information only comprise magnetic pole information, only one switch type Hall sensor is required to be arranged at the joint of the first magnetic piece information and the second magnetic piece information and the first magnetic piece information and the second magnetic piece information are connected with the first magnetic piece information and the second magnetic piece information respectively, two output ports are reserved on the switch type Hall sensors, one output port is used for detecting the S pole of the magnet, the other output port is used for detecting the N pole of the magnet, and the Hall sensors can be used for detecting whether the magnet exists or not. If the magnetic piece information only comprises magnetic field intensity information, only one linear Hall sensor is required to be arranged at the joint of the first watchband and the second watchband. If the first magnetic piece information and the second magnetic piece information comprise magnetic pole information and magnetic field intensity, two Hall sensors are required to be arranged at the connection parts of the first magnetic piece information and the second magnetic piece information are respectively provided.

The detection method of the replaced watchband can include but is not limited to: 1) acquiring a real-time level of a Hall sensor, and detecting whether the real-time level changes; when the real-time level is detected to be changed, judging whether the change condition of the real-time level meets a preset condition or not; if the preset conditions are met, the watchband is judged to be replaced;

2) arranging a light sensor at the joint of the wearable equipment body and the watchband, and detecting the light intensity variation trend of the environment where the wearable equipment body is located through the light sensor; judging whether the light intensity variation trend accords with a preset trend or not; if the preset trend is met, the watchband is judged to be replaced; 3) set up a watchband change button on wearable equipment body, when accomplishing the watchband and change, the user's accessible is pressed this watchband and is changed the button and trigger the instruction of changing the completion, and then makes control chip detect the watchband and is changed.

And step S20, determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation.

After first magnetic piece information of a first watchband and second magnetic piece information of a second watchband are obtained, determining to obtain the current watchband according to the first magnetic piece information, the second magnetic piece information and a preset mapping relation. The preset mapping relationship is a mapping relationship between preset different magnetic piece information and watchband types, and can be represented in a table form. It should be noted that the first magnetic piece information and the second magnetic piece information may include one or more of magnetic pole information and magnetic field strength information, and correspondingly, when the first magnetic piece information and the second magnetic piece information are magnetic pole information, the preset mapping relationship is a mapping relationship between different magnetic pole information and different watchband types; when the first magnetic piece information and the second magnetic piece information are magnetic field strengths, presetting a mapping relation between different magnetic field strengths and different watchband types; when the first magnetic piece information and the second magnetic piece information comprise magnetic pole information and magnetic field intensity, the preset mapping relation is the mapping relation between different magnetic pole information and magnetic field intensity and different watchband types.

The embodiment of the invention provides a watchband identification method of wearable equipment. Through the mode, the identification of different watchbands can be realized, so that the automatic switching of the working modes of the wearable equipment can be realized conveniently according to the watchband types obtained by identification, and the use experience of a user is improved.

Further, based on the first embodiment, a second embodiment of the band identification method of the wearable device of the present invention is provided.

Referring to fig. 3, fig. 3 is a flowchart illustrating a watchband identification method of a wearable device according to a second embodiment of the present invention.

In this embodiment, after step S20, the method for identifying a band of a wearable device further includes:

step S30, determining a target working mode corresponding to the current watchband according to a mapping relation between a preset watchband type and the working mode;

in this embodiment, after the current watchband is obtained through identification, a target working mode corresponding to the current watchband can be determined according to a preset mapping relationship between the watchband type and the working mode.

Step S40, switching the current operating mode of the wearable device to the target operating mode.

Then, the current working mode of the wearable device is switched to the target working mode. Specifically, the control chip can send a working mode switching instruction to the display screen in the dial, the working mode switching instruction includes information of a target working mode, and then the display screen displays the corresponding target working mode based on the working mode switching instruction, so that automatic switching of the working mode is achieved.

Further, before the step S40, the method may further include:

generating switching confirmation information, and displaying or broadcasting in voice;

when receiving the switching confirmation instruction fed back by the user, step S40 is executed: and switching the current working mode of the wearable equipment to the target working mode.

In this embodiment, before the working mode is switched, whether the wearable device needs to be replaced or not can be determined in advance with the user to avoid misoperation, so that the user experience is further improved, specifically, after the target working mode is determined, switching confirmation information can be generated and displayed or voice broadcast is performed in a display screen, correspondingly, when the user sees or hears the switching confirmation information, a confirmation switching instruction or a rejection switching instruction can be fed back in a touch screen clicking or voice reply mode, and when the control chip receives the confirmation switching instruction fed back by the user, the current working mode of the wearable device is switched to the target working mode.

In this embodiment, determine target mode through the type according to current watchband, and then carry out the mode switch to realize the automatic switch-over of wearable equipment mode, can promote user's use experience.

Further, based on the second embodiment, a third embodiment of the band identification method of the wearable device of the present invention is provided.

In this embodiment, before step S30, the method for identifying a band of a wearable device further includes:

step A, receiving a working mode setting request, and acquiring working mode setting information carried in the working mode setting request;

in this embodiment, a user may individually set, through the wearable device or the mobile terminal in communication connection with the wearable device, a work mode corresponding to different watchbands that the user wants, and further change a default work mode corresponding to each watchband, for example, the user may set an example through the mobile terminal, display a work mode currently corresponding to each watchband in a screen, and display an alternative work mode, and the user may select a current work mode that the user wants to change and an alternative work mode after the user needs to change through dragging or clicking to generate a work mode setting request. Correspondingly, when receiving the working mode setting request, the control chip obtains the working mode setting information carried in the working mode setting request, wherein the working mode setting information includes a current working mode to be replaced (i.e. the current working mode to be replaced) and a target setting working mode (i.e. the alternative working mode after replacement).

And B, updating the mapping relation between the preset watchband type and the working mode according to the working mode setting information.

And then, updating the preset mapping relation between the watchband type and the working mode according to the acquired working mode setting information, namely updating the current working mode to be replaced in the mapping relation to be the target setting working mode.

Through the mode, the user can set the working modes of different watchbands according to the preference of the user, the personalized setting of the working modes is realized, and therefore the use experience of the user can be further improved.

Further, based on the first embodiment, a fourth embodiment of the band identification method of the wearable device of the present invention is proposed.

In this embodiment, before step S10, the method for identifying a band of a wearable device further includes:

step C, acquiring the real-time level of the Hall sensor, and detecting whether the real-time level changes;

step D, when the real-time level is detected to be changed, judging whether the change condition of the real-time level meets a preset condition;

and E, if the preset conditions are met, judging that the watchband is replaced.

In this embodiment, as one of the ways to detect the replacement of the watchband, the detection process is as follows:

and acquiring the real-time level of the Hall sensor, and detecting whether the real-time level changes. It should be noted that, because the wearable device body and the joints of the first and second watchbands are all provided with the hall sensors, the acquired real-time levels include two levels.

And then, detecting whether the real-time level changes or not, and judging whether the change condition of the real-time level meets the preset condition or not. When detecting, consider for increasing the watchband type, perhaps not set up magnet in the watchband of one side, at this moment, when detecting that one side hall sensor's real-time level changes, then explain that the watchband is dismantled or the watchband of changing is connected with wearable equipment body, furthermore, can judge whether this real-time level's situation of change accords with the preset condition, because when connecting the watchband, magnet is close to hall sensor and can make hall sensor output low level, when dismantling the watchband, magnet leaves hall sensor and can make hall sensor output high level, therefore, the change trend of preset condition optional real-time level is for turning into the low level by the high level, or, real-time level becomes the low level, at this moment, then judge that the watchband is changed. If magnets are arranged on two sides of each type of watchband, when the real-time levels of the Hall sensors on two sides need to be detected to be changed, whether the real-time levels of the Hall sensors on two sides meet preset conditions or not can be further detected, the preset conditions can be selected from the fact that the change trend of the real-time levels is changed from high levels to low levels or the real-time levels are changed into low levels, and if the real-time levels meet the preset conditions, the watchband is judged to be replaced.

Further, the wearable device body further includes an optical sensor in communication connection with the control chip, the optical sensor is disposed at a connection between the wearable device body and the watchband, and before step S10, the watchband identification method of the wearable device further includes:

step F, detecting the light intensity variation trend of the environment where the wearable device body is located through the light sensor;

g, judging whether the light intensity variation trend accords with a preset trend or not;

and H, if the preset trend is met, judging that the watchband is replaced.

In this embodiment, as another detection method for replacing a watchband, the detection process is as follows:

the light sensor is arranged at the joint of the wearable device body and the watchband, and is arranged on the wearable device body and is in communication connection with the control chip. When the watchband is connected with the wearable equipment body, the light sensor is shielded, so that the detected light intensity is relatively low, and even light cannot be detected; and when the watchband was not connected with wearable equipment body, external light will be detected to light sensor, and its light intensity is brighter relatively. Therefore, accessible light sensor detects the light intensity trend of change of the environment that wearable equipment body is located, then judges whether light intensity trend accords with preset trend, wherein, preset the trend for by strong weak, if accord with this preset trend, explain wearable equipment's state by the watchband not convert watchband and wearable equipment body coupling's state into the state of watchband and wearable equipment body coupling, this moment, then judge that the watchband is changed.

In this embodiment, whether the watchband is replaced can be accurately detected by the above method, and then when the watchband is detected to be replaced, the first magnetic piece information of the first watchband and the second magnetic piece information of the second watchband are obtained in time, so as to determine the type of the current watchband, and then the working modes are switched in time.

Further, a fifth embodiment of the band identification method of the wearable device of the present invention is proposed based on the first to third embodiments.

In this embodiment, the watchband identification method of the wearable device further includes:

step I, when the disconnection of the watchband is detected, timing is started to obtain disconnection duration;

and step J, controlling the wearable equipment to stop working when the disconnection duration is detected to exceed the preset duration.

In this embodiment, when the disconnection of the wristband is detected, timing may be started to obtain a disconnection time period. The detection mode of watchband disconnection can include but is not limited to: 1) when the output level of the Hall sensor connected with one end or two ends of the watchband is high level, namely the magnet in the watchband is far away from the Hall sensor, the watchband is judged to be disconnected at the moment; 2) when the light intensity variation trend of the environment where the wearable device body is located is changed from weak to strong through the light sensor arranged at the joint of the watchband and the wearable device body, the disconnection of the watchband is judged.

And further, whether the disconnection time length exceeds the preset time length or not is detected in real time, if the disconnection time length is detected to exceed the preset time length, the wearable equipment is not in a wearing state for a long time, and the user is likely to place the wearable equipment, so that the wearable equipment is controlled to stop working, and the electric quantity is saved. Wherein, the stop work is to power off the wearable device without operating any function. Certainly, in specific implementation, when it is detected that the disconnection duration of the watchband disconnection exceeds the preset duration, the wearable device may be controlled to enter the sleep mode, or the preset function of the wearable device is turned off, so as to save the electric quantity.

Further, when it is detected that the disconnection duration exceeds the preset duration, an alarm reminding may be performed, and the alarm reminding mode may include, but is not limited to: 1) controlling the wearable equipment to continuously send out an alarm sound; 2) and sending alarm information to a mobile terminal connected with the wearable device to prompt that the user watchband and the wearable device are likely to fall off, so that the user can send the condition in time to avoid the loss of the wearable device.

The present invention also provides a computer-readable storage medium having a watchband identification program stored thereon, where the watchband identification program, when executed by a processor, implements the steps of the watchband identification method for a wearable device according to any one of the above embodiments.

The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the watchband identification method of the wearable device, and is not described herein again.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种便于图像拼接的分屏显示器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!