Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure unless it is specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate. .
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of exemplary embodiments may have different values.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
< Hardware configuration >
Fig. 1 is a block diagram of a hardware configuration of a wearable device 1000 according to an embodiment of the present disclosure.
As shown in fig. 1, the wearable device 1000 may be, for example, a head mounted display, a smart watch, a smart bracelet, etc., to which embodiments of the present disclosure are not limited.
In one embodiment, as shown in fig. 1, the wearable device 1000 may include a processor 1100, a memory 1200, an interface apparatus 1300, a communication apparatus 1400, a display apparatus 1500, an input apparatus 1600, a microphone 1700, a motion detection sensor 1800, a motor 1900, and the like.
The processor 1100 may include, but is not limited to, a Central Processing Unit (CPU), a microprocessor MCU, etc. The memory 1200 includes, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, various bus interfaces such as a serial bus interface (including a USB interface), a parallel bus interface, and the like. The communication device 1400 can perform wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, or the like. The input device 1600 includes, for example, a touch screen, keyboard, handle, etc. Microphone 1700 may be used to input voice information. The motion detection sensor 1800 may be used to detect motion of a wearer of the wearable device 1000. The motor 1900 is used to convert electrical energy to mechanical energy to generate a drive torque to power the wearable device.
It should be understood by those skilled in the art that although a plurality of devices of the wearable apparatus 1000 are shown in fig. 1, the wearable apparatus 1000 of the embodiments of the present specification may refer to only some of the devices thereof, and may further include other devices, which are not limited herein.
In this embodiment, the memory 1200 of the wearable device 1000 is used to store instructions for controlling the processor 1100 to operate to implement or support implementing a control method of the wearable device according to any of the embodiments. The skilled person can design instructions according to the solution disclosed in the present specification. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
In the above description, a skilled person may design instructions according to the solutions provided by the present disclosure. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
The wearable device shown in fig. 1 is merely illustrative and is in no way intended to limit the disclosure, its application or use.
< Method example >
Fig. 2 illustrates a control method of a wearable device of an embodiment of the present disclosure, which may be implemented, for example, by the wearable device 1000 shown in fig. 1, which wearable device 1000 may be a head mounted display, a smart watch, a smart bracelet, or the like.
As shown in fig. 2, the method for controlling the wearable device provided in this embodiment may include the following steps S2100 to S2300.
In step S2100, in response to the set trigger event, a driving signal corresponding to each driving frequency in the preset driving frequency range is sequentially input to the motor.
The set trigger event comprises any one or two of the time when the wearable device is started and the time when the calibration function of the wearable device is in an on state.
In this embodiment, a set trigger event is preset in a controller of the wearable device, where the set trigger event includes when the wearable device is turned on and/or when the wearable device is in a calibration mode, under a condition that the set trigger event occurs, the controller of the wearable device may sequentially input driving signals corresponding to each driving frequency in a preset driving frequency range to the motor, so that the motor generates vibration based on each driving signal.
It will be appreciated that when the user purchases the protective case, the maximum driving frequency of the wearable device is required to be recalibrated due to the change in the maximum driving frequency of the wearable device, and the wearable device can be calibrated with the wearable device in the calibration mode.
The preset driving frequency range may be fL to fH, where fL is a minimum frequency in the preset driving frequency range and fH is a maximum frequency in the preset driving frequency range. Generally, the preset driving frequency range may be set between 10hz and 10000hz, where the preset driving frequency range may be greater than or equal to the vibration frequency range of the motor, that is, the vibration frequency range of the motor is within the preset driving frequency range, so that each frequency point of the motor may be detected.
It will be appreciated that for a typical linear motor, the maximum drive frequency for the maximum vibration of the motor is typically 200HZ, where the controller of the wearable device may in turn provide drive signals corresponding to drive frequencies of 100HZ, 101HZ, 102HZ.
For example, for a wearable device provided with a typical linear motor, when the wearable device is turned on or the wearable device enters a calibration mode, the controller of the wearable device sends a driving signal for driving the motor to vibrate, and specifically, the controller of the wearable device may sequentially output a driving signal of 100HZ, a driving signal of 101HZ, and a driving signal of 102 HZ.
After sequentially inputting driving signals corresponding to each driving frequency in a preset driving frequency range to the motor in response to a set trigger event, entering:
Step 1200, obtaining a vibration amount of the motor acquired by the motion detection sensor, which vibrates based on each of the driving signals.
A motion detection sensor is provided in the wearable device, which may be a sensor provided in the wearable device that may be used to detect a motion state of a wearer of the wearable device. The motion detection sensor may include an accelerometer and a gyroscope.
In this embodiment, the controller of the wearable device sequentially inputs driving signals corresponding to each driving frequency in the preset driving frequency range to the motor, and the motor can vibrate based on each driving signal.
In this embodiment, since the types of the motion detection sensors set in the wearable device are various, and the bandwidths of the motion detection sensors are generally set low, the vibration amount of the high vibration frequency cannot be collected, and therefore the sampling frequency of the motion detection sensors needs to be adjusted, so that the motion detection sensors collect the vibration amount of the motor vibrating based on the driving signal corresponding to each driving frequency based on the adjusted sampling frequency.
In this embodiment, the obtaining the vibration amount of the motor that is collected by the motion detection sensor and vibrates based on each driving signal in the step 1200 may further include determining a sampling frequency of the motion detection sensor corresponding to each driving frequency according to a set ratio and each driving frequency, and obtaining the vibration amount of the motor that is collected by the motion detection sensor and vibrates based on the set sampling times and each sampling frequency and each corresponding driving signal.
The sampling frequency is the frequency of the vibration quantity of the motor collected by the motion detection sensor, the sampling frequency can be a numerical value set by combining the sampling precision of the motion detection sensor, and the excessive high or the excessive low of the sampling frequency can lead to the low sampling precision of the motion detection sensor.
The above set proportion is, for example, one fourth, the above set sampling number is five, and experiments show that the motion detection sensor has the highest sampling accuracy when the set proportion is one fourth and the set sampling number is five.
For example, the driving frequency f0 is equal to 200HZ which is one of the driving frequencies in the above preset driving frequency range, and in order to enable the acquisition of the vibration amount, it is necessary to set the sampling frequency of the motion detection sensor to be one-fourth of the driving frequency f0, that is, 50HZ, and it is also understood that the motion detection sensor acquires the vibration amount of the motor vibrating at the driving signal of 200HZ every 20 ms. Specifically, as shown in fig. 3, when the motion detection sensor starts to collect, the time interval between the first collecting point F1 and the second collecting point F2 is 20ms, in order to enable more accurate collection accuracy, the sample collected at the vibration frequency F0 equal to 200HZ may be repeated 5 times, that is, 100ms, and this time is very short for the wearer, so that the problem of excessively long waiting time is not caused. The specific sampling process may be that F1, F2, F3, F4, F5, the first value F1 and the last value F5 are removed, the middle three values F2, F3, F4 are reserved, and the average value of F2, F3, F4 is calculated as the vibration quantity of the vibration generated by the driving signal with the driving frequency F0 equal to 200 HZ.
After acquiring the vibration amount of the motor, which is acquired by the motion detection sensor, that vibrates based on the driving signal corresponding to each of the driving frequencies, entering:
Step 1300, determining a target driving frequency corresponding to the target vibration amount from the preset driving frequency range according to the vibration amount of the motor vibrating based on each driving signal.
The target vibration amount is the maximum vibration amount, and the target driving frequency is the maximum driving frequency, correspondingly.
In this embodiment, after determining the target driving frequency corresponding to the target vibration amount from the preset driving frequency range according to the vibration amount by which the motor vibrates based on each driving signal, the target driving frequency may be written into the controller.
According to the embodiment of the disclosure, the wearable device can respond to the set trigger event, sequentially input driving signals corresponding to each driving frequency in the preset driving frequency range to the motor, acquire the vibration quantity of the motor vibrating based on each driving signal, further determine the target driving frequency corresponding to the target vibration quantity from the preset driving frequency range according to the vibration quantity of the motor vibrating based on each driving signal, and achieve calibration of the maximum driving frequency corresponding to the maximum vibration quantity of the wearable device, namely, utilize the motion detection sensor in the wearable device, and achieve obtaining of the maximum vibration quantity on the basis of not increasing cost.
In an embodiment, the method for controlling the wearable device according to the embodiment of the disclosure may further include step S3100 to step S3300:
Step S3100 provides a configuration interface for configuring the wearable device to enter the calibration mode.
The configuration interface may be a calibration control.
It can be appreciated that when the user purchases the protective case, as the maximum driving frequency of the wearable device changes, the maximum driving frequency needs to be recalibrated, and at this time, the user can configure through the configuration interface, so that the wearable device enters the calibration mode, and the maximum driving frequency of the wearable device is calibrated when the wearable device is in the calibration mode.
Step S3200, a first input is received for the configuration interface.
The first input may be a click input of the configuration interface by the user, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
Continuing with the above example, in the case where the display screen of the wearable device displays the calibration control, a "yes" button and a "no" button may be provided, and the "yes" button may be clicked when the wearer needs to perform calibration of the maximum driving frequency, and the "no" button may be clicked when the wearer does not need to perform calibration of the maximum driving frequency.
Step S3300, in response to the first input, controls the wearable device to enter the calibration mode.
Continuing with the above example, when the wearer clicks the "yes" button, the controller of the wearable device may control the wearable device to enter the calibration mode, where the controller of the wearable device may input a driving signal corresponding to each driving frequency in the preset driving frequency range to the motor, and obtain a vibration amount of the motor, which is acquired by the motion detection sensor and is vibrated based on the driving signal corresponding to each driving frequency, and further determine, according to the vibration amount of the motor, which is vibrated based on each driving signal, a target driving frequency corresponding to the target vibration amount from the preset driving frequency range.
According to the embodiment, the maximum driving frequency of the wearable device can be taught under the condition that the wearable device is assembled in a factory, and the wearable device is also used under the condition that a user changes a use scene, so that the user experience is further improved.
In one embodiment, when the motor of the wearable device fails, for example, the motor is dropped off due to dispensing, the motor cannot be fixed, for example, the motor is broken, the motor cannot vibrate, for example, foreign matters enter the motor, the vibrator is blocked, and the like, the maximum vibration quantity cannot be obtained when the motor is calibrated, the wearable device can intercept the defects in factory delivery stage, and if the wearable device is positioned in the hand of a user, the display of the wearable device can output prompt information for prompting the user to carry out inspection maintenance.
Next, a control method of a wearable device of an example is shown, in which the control method of the wearable device includes the steps of:
Step 401, providing a configuration interface for configuring the wearable device to enter a calibration mode.
Step 402, a first input is received for a configuration interface.
In response to the first input, the wearable device is controlled to enter a calibration mode, step 403.
Step 404, in the case that the wearable device is in the calibration mode, sequentially inputting a driving signal corresponding to each driving frequency in the preset driving frequency range to the linear motor.
Step 405, determining a sampling frequency of the motion detection sensor corresponding to each driving frequency according to the set proportion and each driving frequency.
In step 406, the vibration amount of the motor acquired by the motion detection sensor based on the set sampling times and each sampling frequency and based on each corresponding driving signal is acquired.
Step 407, determining a maximum driving frequency corresponding to the maximum vibration amount from a preset driving frequency range according to the vibration amount of the motor which vibrates based on each driving signal.
In step 408, the maximum drive frequency is written.
< Device example >
Fig. 4 is a schematic structural view of a control device of the wearable apparatus according to one embodiment. As shown in fig. 4, the control device 400 of the wearable device includes an input module 410, an acquisition module 420, and a determination module 430.
The input module 410 is configured to sequentially input a driving signal corresponding to each driving frequency in the preset driving frequency range to the motor in response to the set trigger event.
An acquisition module 420 for acquiring a vibration amount of the motor acquired by the motion detection sensor, which vibrates based on each of the driving signals.
And the determining module 430 is configured to determine, according to the vibration amount of the motor that vibrates based on each driving signal, a target driving frequency corresponding to the target vibration amount from the preset driving frequency range.
In one embodiment, the set trigger event includes any one or both of when the wearable device is powered on and when the wearable device enters a calibration mode.
In one embodiment, the apparatus further comprises a calibration module (not shown).
The calibration module is specifically used for providing a configuration interface for configuring the wearable device to enter the calibration mode, receiving a first input aiming at the configuration interface, and responding to the first input, controlling the wearable device to enter the calibration mode.
In one embodiment, the obtaining module 420 is specifically configured to determine a sampling frequency of the motion detection sensor corresponding to each driving frequency according to a set proportion and each driving frequency, and obtain a vibration amount of the motor acquired by the motion detection sensor based on a set sampling frequency and each sampling frequency and based on a corresponding driving signal.
In one embodiment, the set proportion is one quarter and the set number of samples is five.
According to the embodiment of the disclosure, the wearable device can respond to the set trigger event, sequentially input driving signals corresponding to each driving frequency in the preset driving frequency range to the motor, acquire the vibration quantity of the motor vibrating based on each driving signal, further determine the target driving frequency corresponding to the target vibration quantity from the preset driving frequency range according to the vibration quantity of the motor vibrating based on each driving signal, and achieve calibration of the maximum driving frequency corresponding to the maximum vibration quantity of the wearable device, namely, utilize the motion detection sensor in the wearable device, and achieve obtaining of the maximum vibration quantity on the basis of not increasing cost.
< Device example >
Fig. 5 is a hardware architecture diagram of a wearable device according to one embodiment. As shown in fig. 5, the wearable device 500 includes a motor 510 and a motion detection sensor 520, the wearable device 500 further including a processor 530 and a memory 540.
The memory 540 may be used to store executable computer instructions.
The processor 530 may be configured to perform a method for controlling a wearable device according to an embodiment of the method of the present disclosure, according to control of the executable computer instructions.
The wearable device 500 may be the wearable device 500 shown in fig. 1, or may be a device having other hardware structures, which is not limited herein. The wearable device 500 may be, for example, a head mounted display, a smart watch, a smart bracelet, etc., to which embodiments of the present disclosure are not limited.
In further embodiments, the wearable device 500 may comprise the control means 400 of the above wearable device.
In one embodiment, the modules of the control apparatus 400 of the wearable device above may be implemented by the processor 530 running computer instructions stored in the memory 540.
According to the embodiment of the disclosure, the wearable device can respond to the set trigger event, sequentially input driving signals corresponding to each driving frequency in the preset driving frequency range to the motor, acquire the vibration quantity of the motor vibrating based on each driving signal, further determine the target driving frequency corresponding to the target vibration quantity from the preset driving frequency range according to the vibration quantity of the motor vibrating based on each driving signal, and achieve calibration of the maximum driving frequency corresponding to the maximum vibration quantity of the wearable device, namely, utilize the motion detection sensor in the wearable device, and achieve obtaining of the maximum vibration quantity on the basis of not increasing cost.
< Computer-readable storage Medium >
The embodiment of the disclosure also provides a computer readable storage medium, on which computer instructions are stored, which when executed by a processor, perform the method for controlling the wearable device provided by the embodiment of the disclosure.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical encoding device, punch cards or intra-groove protrusion structures such as those having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.