Disclosure of Invention
The invention provides a method for touch reset of a bracelet, which can solve the problems that the current bracelet without mechanical keys consumes long time after being halted and the portability of a charging seat is poor, and can conveniently and quickly recover the normal use function of the bracelet.
The technical scheme of the invention is as follows:
a method for resetting by touching a bracelet is characterized in that: the bracelet comprises a bracelet touch surface, an MCU (microprogrammed control Unit), a touch IC (integrated circuit) and a reset IC (integrated circuit), wherein the touch IC is connected with a TIO (Integrated Circuit) film attached to the bracelet touch surface, the TIO film is provided with three touch keys from right to left, such as a key A (PAD 1), a key B (PAD 2) and a key C (PAD 3), the touch IC is connected with the reset IC, and the touch IC and the reset IC are connected with the MCU; the reset IC comprises a reset signal output pin 1, a ground pin 2, a key input pin 1 pin 3, a power supply pin 4, a reset time pin 5 and a key input pin 2 pin 6; an adjusting resistor R211 is arranged between a ground pin 2 and a reset time pin 5 of the reset IC, and the resistance value of the adjusting resistor R211 can be adjusted; an NC resistor R210 is arranged between the reset signal output pin 1 and the power supply pin 4, and the resistance value of the R210 is 100K ohms; the method comprises the following steps:
1) adjusting the resistance value of the adjusting resistor R211 to enable the touch time Tdl to reach the preset touch time, wherein the adjusting formula is as follows: tdl(s) =0.000062015 × R211(Ω) + 0.097;
2) touching a key A on a TIO film on the touch surface of the bracelet for the touch time Tdl;
3) when the touched time length of the key A reaches the Tdl, a long-period signal of the Tdl time length is input into the touch chip, and then a low level I is output;
4) the reset chip outputs a low level two after receiving the low level one output by the touch control chip;
5) MCU receives by the low level two of reset chip output realizes MCU resets, the bracelet resets and restarts.
Further, the touch IC includes a pin 1 (ground, GND), a pin 2 (sensor electrode 1, CRX 1), a pin 3 (sensor electrode 2, CRX 2), a pin 4 (power supply, VDDHI), a pin 5 (control output, VREG), a pin 6 (terminal output, RDY), a pin 7 (serial data signal, SDA), a pin 8 (serial clock signal, SCL), a pin 9 (sensor electrode 3, CRX 3), and a pin 10 (proximity sensing output, CTX/PO).
Furthermore, a pin 2, a pin 3 and a pin 9 of the touch chip are respectively connected with the connecting lines led out by the key A, the key B and the key C; and the pin 6, the pin 7 and the pin 8 are respectively connected with a GPIO interface of the MCU to realize data communication.
Further, pin 1 of the reset chip is connected to the MCU reset signal pin, and pin 3 and pin 6 of the reset chip are both connected to pin 10 (CTX/PO) of the touch IC.
Further, the touch IC may be an IQS263, and the reset IC may be an XC 6190.
Further, in the step 1), the resistance value of the adjusting resistor R211 is adjusted so that Tdl =7.5 s.
Further, in the step 3), a long-period signal of Tdl duration is input to the pin 2 of the touch chip, and then the pin 10 of the touch chip outputs a low level one.
Further, in the step 4), after the pin 3 and the pin 6 of the reset chip receive the first low level output by the touch chip, the pin 1 of the reset chip outputs a second low level.
Further, in the step 5), the reset signal pin of the MCU receives the low level two output by the reset chip to reset the MCU, and the reset of the bracelet is restarted.
The invention has the advantages that: after the touch bracelet crashed, the function can be restored only by pressing the touch key for a long time without an external component.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the invention.
As shown in fig. 1, 2 and 3, a method for resetting a bracelet by touch, the bracelet comprises a bracelet touch surface 2, an MCU, a touch IC and a reset IC, wherein the touch IC is connected with a TIO film attached to the bracelet touch surface, the touch IC is connected with the reset IC, and the touch IC and the reset IC are connected with the MCU. The bracelet includes core 1 and watchband.
The technical scheme of the invention is realized by adopting the circuit design of a touch IC (selectable model is IQS263, manufacturer: Azotto q, function: 3-channel 8-bit resolution capacitive touch and proximity sensor, see table one) and a reset IC (selectable model is XC6190, manufacturer: TOREX, function: key reset starter, see table two): after the system crashed, the bracelet can reset after the touchable bracelet touch surface key 1 is larger than 7.5 s.
Table one IQS263 pin definition:
pin
|
Name(s)
|
Function(s)
|
1
|
GND
| Ground |
|
2
|
CRX1
| Sensor electrode | 1
|
3
|
CRX2
| Sensor electrode | 2
|
4
|
VDDHI
|
Power supply
|
5
|
VREG
|
Control output
|
6
|
RDY
|
Interrupt output
|
7
|
SDA
|
Serial data signal
|
8
|
SCL
|
Serial clock signal
|
9
|
CRX3
| Sensor electrode | 3
|
10
|
PO
|
Proximity sensing output |
Table two XC6190 pin definition:
pin
|
Name(s)
|
Function(s)
|
1
|
RSTB
|
Reset signal output, low level
|
2
|
VSS
| Ground |
|
3
|
SW1
|
Key input pin 1
|
4
|
VIN
|
Power supply
|
5
|
RT
|
Reset time
|
6
|
SW2
|
Key input pin 2 |
The system that bracelet touch reset includes bracelet touch surface, MCU, touch IC and the IC that resets, touch IC connect with the TIO membrane of bracelet touch surface laminating, touch IC connects the IC that resets, touch IC connects and the IC connection that resets MCU. The touch IC (as shown in fig. 1) includes a pin 1 (ground, GND), a pin 2 (sensor electrode 1, CRX 1), a pin 3 (sensor electrode 2, CRX 2), a pin 4 (power supply, VDDHI), a pin 5 (control output, VREG), a pin 6 (terminal output, RDY), a pin 7 (serial data signal, SDA), a pin 8 (serial clock signal, SCL), a pin 9 (sensor electrode 3, CX 3), and a pin 10 (proximity sensing output, CTX/PO). The reset IC (shown in fig. 2) includes pin 1 (reset signal out, low, RSTB), pin 2 (ground, VSS), pin 3 (key input pin 1, SW 1), pin 4 (power, VIN), pin 5 (reset time, RT), and pin 6 (key input pin 2, SW 2). As can be seen from fig. 2, an NC resistor R210 (NC resistor is a term of art) is disposed between the reset signal output pin 1 and the power supply pin 4, and the resistance of the R210 is 100K ohms
. The IQS263 touch chip pin 2 (CRX 1), pin 3 (CRX 2) and pin 9 (CRX 3) are respectively connected with a key A (PAD 1), a key B (PAD 2) and a key C (PAD 3) of a TIO film attached to the surface of the bracelet surface shell; pin 6 (RDY), pin 7 (SDA), pin 8 (SCL) are connected with the GPIO mouth of MCU respectively, realize data communication. The XC6190 pin 1 (RSTB) of the reset chip is connected with an MCU reset signal pin (when the MCU reset signal pin is in a low level, the system is reset), and the pins 3 and 6 are connected with a pin 10 (CTX/PO) of the touch chip.
When bracelet system normal work: when bracelet touch panel does not have any touch, pin 6, 7 and 8 of touch-control chip all export the high level to MCU, reset chip output high level to MCU. When the position of the key A is touched, a high level is input into a pin 2 of the touch chip, an interrupt signal is output to the MCU through a pin 6, meanwhile, the analyzed signal of the key A is output to the MCU through a pin 7, and the MCU makes corresponding action display after receiving the signal.
When the bracelet system is halted, long-time pressing of the touch key 1 for 7.5s (the long-time pressing time can be adjusted by R211, the adjustment formula is tdl(s) =0.000062015 × R211(Ω) + 0.097), a long-period (7.5 s) signal is input to the pin 2 of the touch chip, the pin 10 outputs a low level, and after the pins 3 (SW 1) and 6 (SW 2) of the chip XC6190 receive the low level, the pin 1 (RSTB) outputs the low level, so that the MCU is reset, and the bracelet function is restored. R211 is a regulating resistor connected between pin 5 and pin 2 of the reset IC.
After the touch bracelet crashed, the function can be restored only by pressing the touch key for a long time without an external component.
Specifically, the method for resetting the bracelet through touch comprises the following steps:
1) adjusting the resistance value of the adjusting resistor R211 to enable the touch time Tdl to reach the preset touch time, wherein the adjusting formula is as follows: tdl(s) =0.000062015 × R211(Ω) +0.097, the resistance of the adjusting resistance R211 is adjusted so that Tdl =7.5 s;
2) touching a key A on a TIO film on the touch surface of the bracelet for the touch time Tdl =7.5 s;
3) when the touched time length of the key A reaches the Tdl, a long-period signal of the Tdl time length is input into a pin 2 of the touch chip, and then a pin 10 of the touch chip outputs a low level I;
4) after the pin 3 and the pin 6 of the reset chip receive the first low level output by the touch chip, the pin 1 of the reset chip outputs a second low level;
5) and the reset signal pin of the MCU receives the low level II output by the reset chip to realize the reset of the MCU, and the bracelet is reset and restarted.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.