CPC H02K 35/02 (2013.01) [G08C 17/02 (2013.01)] | 20 Claims |
1. A switch control method based on a self-generating switch and a receiving end, which is applied to the self-generating switch, the self-generating switch comprising a processor, a memory, a button, a generator, a reset component, a rectification module, an energy storage module, a voltage output module, and a wireless communication module, the wireless communication module and the memory being electrically connected to the processor, an induction portion of the generator being electrically connected to the energy storage module via the rectification module, and the energy storage module being electrically connected to the wireless communication module, the processor and the memory via the voltage output module, the reset component being able to be transmitted with a moving portion of the generator, and the button also being able to be directly or indirectly transmitted with the moving portion of the generator;
the switch control method comprising:
if a control action of pressing down the button occurs, then the reset component deforming and generating a reset force to overcome the deformation, and the moving portion of the generator being directly or indirectly driven by the key, such that the generator generates a first induced voltage, and if the button undergoes a bouncing manipulation action, the reset component driving the moving portion of the generator under an action of the reset force, such that the generator generates a second induced voltage;
the rectification module storing first electric energy corresponding to the first induced voltage and/or second electric energy corresponding to the second induced voltage in the energy storage module; the energy storage module transmitting the stored electric energy to the voltage output module, and the voltage output module using the received electric energy to provide a required voltage to the processor, the memory and the wireless communication module so as to power on same;
after the processor, the memory and the wireless communication module are powered on, the processor generating and sending a corresponding current control message to the receiving end via the wireless communication module, and the current control message recording current manipulation information and the current verification identifier, such that the receiving end verifies whether a relationship between the current verification identifier in the current control message and the stored historical verification identifier matches a preset transformation rule of the current verification identifier, and executing a control event corresponding to current manipulation information when the relationship matches the transformation rule, the historical verification identifier being determined according to the verification identifier recorded in a control message or a pairing message sent to the receiving end by the self-generating switch previously; the current manipulation information characterizing at least one of: the self-generating switch; the button that the self-generating switch currently receives the manipulation; a manipulation action currently received by the button in the self-generating switch;
in one pressing manipulation action and one bouncing manipulation action which occur successively, with regard to at least one manipulation action therein, before, after or at the same time of generating and sending a corresponding current control message to the receiving end via the wireless communication module, the processor also reading the current verification identifier from the memory, changing and updating the current verification identifier from a first numerical value to a second numerical value according to a preset transformation rule, and writing back the updated current verification identifier to the memory before the electric energy stored in the energy storage module is exhausted, the first numerical value being different from the second numerical value.
|