WO2022242519A1 - 自发电开关及其处理方法、控制系统 - Google Patents

自发电开关及其处理方法、控制系统 Download PDF

Info

Publication number
WO2022242519A1
WO2022242519A1 PCT/CN2022/092176 CN2022092176W WO2022242519A1 WO 2022242519 A1 WO2022242519 A1 WO 2022242519A1 CN 2022092176 W CN2022092176 W CN 2022092176W WO 2022242519 A1 WO2022242519 A1 WO 2022242519A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
memory
processor
self
module
Prior art date
Application number
PCT/CN2022/092176
Other languages
English (en)
French (fr)
Inventor
程小科
Original Assignee
武汉领普科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉领普科技有限公司 filed Critical 武汉领普科技有限公司
Publication of WO2022242519A1 publication Critical patent/WO2022242519A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H13/00Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
    • H01H13/02Details
    • H01H13/12Movable parts; Contacts mounted thereon
    • H01H13/14Operating parts, e.g. push-button
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • H04W12/121Wireless intrusion detection systems [WIDS]; Wireless intrusion prevention systems [WIPS]
    • H04W12/122Counter-measures against attacks; Protection against rogue devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S40/00Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
    • Y04S40/12Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment
    • Y04S40/126Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment using wireless data transmission

Definitions

  • the invention relates to the field of self-generating switches, in particular to a self-generating switch, a processing method and a control system thereof.
  • a wireless switch can be understood as a switch equipped with a wireless communication module.
  • One of the wireless switches is a self-generating switch. In a traditional self-generating switch, it usually communicates externally through a radio frequency communication module. For example, a self-generating switch can pass radio frequency The signal communicates with various receivers (such as lamps, wall switches, etc.).
  • control message when the self-generating switch is controlled, a control message will be sent to the outside in response to the manipulation of the self-generating switch.
  • the content of the control message is relatively simple, and usually only contains information describing buttons and switches. meet security requirements.
  • the invention provides a self-generating switch, a processing method thereof, and a control system to solve the problem that the safety requirement cannot be met.
  • a processing method for a self-generating switch includes a processor, a memory, a key, 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 is electrically connected to the processor with the memory, the induction part of the generator is electrically connected to the energy storage module through the rectifier module, and the energy storage module is electrically connected to the energy storage module through the voltage output module Connecting the wireless communication module, the processor and the memory, the reset component can be transmitted with the moving part of the generator, and the button can also be directly or indirectly transmitted with the moving part of the generator;
  • the processing methods include:
  • the elastic member If the button is pressed down, the elastic member deforms and produces a reset force that overcomes the deformation, and the moving part of the generator is directly or indirectly driven by the button, so that the The generator generates a first induced voltage, and if the button performs a rebound control action, then: the elastic member drives the moving part of the generator under the action of the reset force, so that the generator generates second induced voltage;
  • the rectification module stores the first electric energy corresponding to the first induced voltage and/or the second electric energy corresponding to the second induced voltage in the energy storage module; the energy storage module transmits the stored electric energy to the A voltage output module, the voltage output module uses the received electric energy to provide the required voltage to the processor, the memory, and the wireless communication module to power them on;
  • the processor After the processor, the memory, and the wireless communication module are powered on, the processor generates and sends a corresponding current control message to the receiving end through the wireless communication module; the current control message records The current verification identification and the current manipulation information; the current manipulation information characterizes at least one of the following: the self-generating switch, the key currently operated by the self-generating switch, and the manipulation currently occurring on the self-generating switch Action; the current manipulation information corresponds to at least one control event to be executed by the receiving end;
  • the processor In one press-down manipulation action and one rebound manipulation action that occur continuously, for at least one of the manipulation actions, the processor generates and sends a corresponding current control message to the receiving end through the wireless communication module Before, after or at the same time, read the current verification identification from the memory, update the current verification identification, and write the updated current verification identification back to the The memory, wherein the verification identifiers before and after the update are different.
  • a self-generating switch including a processor, a memory, a key, a generator, a reset component, a rectification module, an energy storage module, a voltage output module, and a wireless communication module.
  • the module and the memory are electrically connected to the processor, the induction part of the generator is electrically connected to the energy storage module through the rectification module, and the energy storage module is electrically connected to the wireless communication module and the
  • the processor, the reset component can be transmitted with the moving part of the generator, and the button can also be directly or indirectly transmitted with the moving part of the generator;
  • the elastic member is used for: if the button is pressed down, then: deform and generate a reset force to overcome the deformation; if the button has a rebound control action, then: Drive the moving part of the generator under the action of the reset force;
  • the generator is used for: if the button is pressed down, the moving part of the generator is directly or indirectly driven by the button, so that the induction part of the generator generates a first induced voltage , if the button has a rebound control action, the moving part of the generator is driven by the elastic component, so that the generator generates a second induced voltage,
  • the rectification module is configured to: store the first electric energy corresponding to the first induced voltage and/or the second electric energy corresponding to the second induced voltage in the energy storage module;
  • the energy storage module is used to: transmit the stored electric energy to the voltage output module;
  • the voltage output module is used for: the voltage output module uses the received electric energy to provide the required voltage to the processor, the memory, and the wireless communication module to power them on;
  • the processor is used to:
  • a corresponding current control message is generated and sent to the receiving end through the wireless communication module;
  • the current control message records the current verification identifier , and current manipulation information;
  • the current manipulation information characterizes at least one of the following: the self-generating switch, the key currently manipulated by the self-generating switch, and the manipulation action currently occurring on the self-generating switch;
  • the current manipulation information corresponds to at least one control event to be executed by the receiving end;
  • a control system including the self-generating switch of the second aspect, and the receiving end.
  • the current verification identification (such as verification based on the current verification identification and historical verification identification) can be used as Execute the verification basis of the control event, avoid executing the control event of copying the message, and realize the effect of preventing copy attack.
  • the current authentication identifier can also provide a basis for filtering out duplicate messages.
  • the copy message can be understood as: the attacker first captures a legal switch message, and then sends it out intact.
  • the present invention realizes the update of the verification identification, and the verification identification before and after the update is different.
  • the verification identification in the real message will be updated, and the verification identification in the copied message is usually repeated.
  • the copied message can be effectively verified, thereby avoiding the execution of the control event of the copied message and ensuring security.
  • Fig. 1 is a structural schematic diagram of a control system in an embodiment of the present invention
  • Fig. 2 is a schematic diagram of the structure of a self-generating switch in an embodiment of the present invention
  • Fig. 3 is a structural schematic diagram II of a self-generating switch in an embodiment of the present invention.
  • Fig. 4 is a structural schematic diagram III of a self-generating switch in an embodiment of the present invention.
  • FIG. 5 is a schematic circuit diagram of a rectifier module in an embodiment of the present invention.
  • FIG. 6 is a schematic circuit diagram of a polarity identification module in an embodiment of the present invention.
  • Fig. 7 is a schematic waveform diagram of a pulse signal output by the sensing part in an embodiment of the present invention.
  • Fig. 8 is a schematic diagram of the connection of the first memory in an embodiment of the present invention.
  • Fig. 9 is a schematic circuit diagram 1 of a voltage output module in an embodiment of the present invention.
  • Fig. 10 is a second schematic circuit diagram of a voltage output module in an embodiment of the present invention.
  • Fig. 11 is a first schematic flow chart of a processing method for a self-generating switch in an embodiment of the present invention.
  • Fig. 12 is a schematic flow diagram II of a processing method of a self-generating switch in an embodiment of the present invention.
  • Fig. 13 is a schematic flow chart of the working process of the self-generating switch in an embodiment of the present invention.
  • Fig. 14 is a schematic diagram of the principle of sending and receiving data packets in an embodiment of the present invention.
  • FIG. 15 is a first schematic diagram of the data structure of a message in an embodiment of the present invention.
  • FIG. 16 is a second schematic diagram of the data structure of a message in an embodiment of the present invention.
  • Fig. 17 is a first schematic flow diagram of the working process of the receiving end in an embodiment of the present invention.
  • Fig. 18 is a second schematic flow diagram of the working process of the receiving end in an embodiment of the present invention.
  • Fig. 19 is a schematic structural diagram of a self-generating switch in an embodiment of the present invention.
  • Fig. 20 is a partial structural schematic diagram of a self-generating switch in an embodiment of the present invention.
  • Fig. 21 is a schematic structural view of the bottom shell in an embodiment of the present invention.
  • Fig. 22 is a schematic structural view of transmission components in an embodiment of the present invention.
  • Fig. 23 is a partial structural schematic diagram II of the self-generating switch in an embodiment of the present invention.
  • Fig. 24 is a schematic structural view of the middle shell in an embodiment of the present invention.
  • Fig. 25 is a schematic structural view of a waterproof layer in an embodiment of the present invention.
  • Fig. 26 is a schematic structural diagram of a button in an embodiment of the present invention.
  • Fig. 27a and Fig. 27b are schematic diagrams of the working principle of button pressing in an embodiment of the present invention.
  • the control system provided by the embodiment of the present invention may include a self-generating switch 1 and a receiving end 2, a self-generating switch and a receiving end are shown in the figure, in an actual control system, the self-generating switch, receiving end
  • the number of terminals can be multiple.
  • wireless signal transmission can be realized between the self-generating switch 1 and the receiving terminal 2.
  • the wireless signal can be Bluetooth, radio frequency, Wifi, etc., for example.
  • the self-generating switch 1 is used to implement the processing method involved in the following, and then, the related description of the processing method in the following can be understood as the software and/or hardware working process, function, and specific implementation of the self-generating switch. A description of the method.
  • the receiving end 2 can be any controlled device that can be controlled by a self-generating switch, or a device connected to the controlled device.
  • the receiving end 2 can be, for example, a wall switch, an electronic doorbell, a lamp, or an automatic curtain , fan etc.
  • the controls it accepts may be, for example but not limited to:
  • control events can also be understood with reference to the above content.
  • the self-generating switch 1 includes a processor 108, a memory 107, a key 101, a generator 103, a reset component 102, a rectification module 111, an energy storage module 105, a voltage output module 106, and a wireless communication module 109 .
  • the electrical connection mentioned below may include direct electrical connection and indirect electrical connection.
  • the generator 103 can generate electricity when the button 101 is manipulated (for example, pressed down and/or rebounded), and generates electric energy, which can be used to directly or indirectly supply power to the processor 108, the wireless communication module 109, the memory 107, etc., wherein the processing
  • the processor 108, the wireless communication module 109 and the memory 107 can be separated or integrated, and if they are integrated, then: the power supply to the processor 108, the wireless communication module 109 and the memory 107 can be based on the same The power supply is realized.
  • the generator 103 may include a moving part 1031 and an induction part 1032 .
  • the moving part 1031 can be understood as a part or a combination of parts that can be driven by at least one of the buttons, reset parts, etc. to move, and the sensing part 1032 can be understood as being able to interact with the moving part 1031, so that when the moving part moves A component or a combination of components that generates electrical energy by induction, and any structure that can generate electrical energy based on motion in the art can be used as an optional solution in the embodiment of the present invention.
  • the generator 103 can be configured with a permanent magnet, a magnetically conductive portion, and a coil portion, and the coil portion can be arranged on the magnetically conductive portion, and then, when the permanent magnet portion and the magnetically conductive portion move relative to each other, the coil portion can generate inductive voltage.
  • the coil part wherein can be regarded as the induction part 1032 mentioned above, and the permanent magnet part or the magnetic conduction part wherein can be regarded as the moving part 1031 mentioned above, that is: in some examples, the permanent magnet part moves, thereby Direct and indirect transmission with keys, reset components, etc. In another example, the magnetic conduction part moves, thereby directly and indirectly transmits with keys, reset components, etc. It can be seen that the sensing part 1032 may move together with the moving part 1031 , or may not move together with the moving part 1031 .
  • the wireless communication module 109 and the memory 107 are electrically connected to the processor 108, the induction part 1032 of the generator 103 is electrically connected to the energy storage module 105 through the rectification module 111, and the energy storage module 105 is electrically connected to the energy storage module 105 through the
  • the voltage output module 106 is electrically connected to the wireless communication module 109, the processor 108 and the memory 107 (for example, connected to the power supply terminals of the wireless communication module 109, the processor 108 and the memory 107), and the reset Components 102 (such as torsion springs, shrapnel, extension springs, etc.) can transmit with the moving part 1031 of the generator 103, and the buttons 101 can also directly or indirectly transmit with the moving part 1031 of the generator.
  • the reset Components 102 such as torsion springs, shrapnel, extension springs, etc.
  • the reset component 102 can be directly driven to the moving part 1031 , and in another part of the scheme, the reset component 102 can also be driven to a button or other components, thereby being indirectly driven to the moving part 1031 .
  • the switch control method includes:
  • step S302 can be implemented: the reset member deforms and produces a reset force that overcomes the deformation, and the moving part of the generator is directly or indirectly driven by the button, so that the generator generates a first induction Voltage;
  • step S301 If not, return to step S301 to continue to determine whether the manipulation action of pressing down has occurred.
  • step S302 it may include: S303: The rectification module stores the first electric energy corresponding to the first induced voltage in the energy storage module.
  • the switch control method may also include:
  • step S305 may be implemented: the reset component drives the moving part of the generator under the action of the reset force, so that the generator generates a second induced voltage;
  • step S305 it may include: S306: The rectification module stores the second electric energy corresponding to the second induced voltage in the energy storage module.
  • only the first electrical energy may be stored and/or used, and only the second electrical energy may be stored and/or used.
  • step S303 and/or step S306, may include:
  • the energy storage module transmits the stored electric energy to the voltage output module, and the voltage output module uses the received electric energy to provide the processor, the memory, and the wireless communication module with required voltage to power it on;
  • the current control message records the current manipulation information and the current verification ID, so that: the receiving end verifies whether the relationship between the current verification ID in the current control message and the stored historical verification ID matches Based on the preset transformation rule of the current verification flag, and when the relationship matches the transformation rule, execute the control event corresponding to the current manipulation information, the historical verification flag is issued according to the self-generating switch It is determined by the verification identifier recorded in the control message or pairing message of the receiving end.
  • the current manipulation information represents at least one of the following: the self-generating switch; the key currently controlled by the self-generating switch; the manipulation action currently received by the key in the self-generating switch.
  • the processor Before, after or at the same time as the processor generates and sends the corresponding current control message to the receiving end through the wireless communication module (that is, before, after or at the same time as implementing step S308), it may further include:
  • updating the current verification identification may specifically include: converting and updating the current verification identification from a first value to a second value according to a preset conversion rule; the first value is different from the second value.
  • the current verification mark can be updated only after the manipulation action of pressing occurs, or the current verification mark can be updated only after the manipulation action of rebound occurs, or can be updated after the manipulation action of pressing The current verification mark is updated after the rebound manipulation action.
  • processing method may also include:
  • the reset component 102 is used for: if the button 101 has a manipulation action of pressing down, then: deform and generate a reset force to overcome the deformation; if the button 101 has a rebound manipulation action, then : driving the moving part 1031 of the generator 103 under the action of the reset force.
  • the generator 103 is used for: if the button 101 is pressed down, the moving part 1031 of the generator 103 is directly or indirectly driven by the button 101, so that the induction of the generator 103 The part 1032 generates a first induced voltage, and if the button 101 performs a rebound control action, the moving part 1031 of the generator 103 is driven by the reset part 102, so that the generator generates a second induced voltage,
  • the rectification module 111 is configured to: store the first electric energy corresponding to the first induced voltage and/or the second electric energy corresponding to the second induced voltage in the energy storage module;
  • the energy storage module 105 is used to: transmit the stored electric energy to the voltage output module 106;
  • the voltage output module 106 is configured to: use the received electric energy (first electric energy and/or second electric energy) to provide the required voltage to the processor 108, the memory 107, and the wireless communication module 109, to power it up;
  • the processor 108 is used for:
  • one push-down manipulation action and one rebound manipulation action for at least one of the manipulation actions, before, after or at the same time as generating and sending the current control message to the receiving end through the wireless communication module, Also read the current verification identification from the memory, update the current verification identification (for example, use a preset conversion rule to update the current verification identification from the first value to the second value), and store in the energy storage module Before the power consumption of the device is exhausted, the updated current verification identification is written back to the memory.
  • the control action of pressing down can refer to the control of pressing the button down
  • the control action of rebounding can refer to the control of removing the force of pressing down so as to make the key rebound.
  • At least two of the information representing the self-generating switch, the information representing the button, and the information representing the manipulation action can be configured as one piece of integrated information
  • a predefined character string can be configured corresponding to each manipulation action of each key, so as to use the character string as (or represent) the current manipulation information, and then, by reading the character string, the receiving end can Know which button has what manipulation action.
  • corresponding characters or character strings may be respectively configured for the information representing the self-generating switch, the information representing the button, and the information representing the manipulation action as the current manipulation information.
  • the information characterizing the self-generating switch may be the information characterizing which self-generating switch it is, or the information characterizing what type of self-generating switch it is (for example, at least one of the model, batch, brand, etc. of the self-generating switch).
  • the current manipulation information may include a switch identifier, and further, the switch identifier may be used to characterize the self-generating switch, and the current manipulation information may also include a key value, and then the key value is used to represent the key currently operated by the self-generating switch , and the manipulation actions currently received by the keys in the self-generating switch.
  • the current manipulation information can be understood as the information that the receiving end can judge the control event based on. Furthermore, if the information representing the self-generating switch (or the information representing the button and manipulation action) is not used to judge the control event, then: Even if the information is written into the message, it may not be regarded as the current manipulation information.
  • the verification mark can be any character or combination of characters suitable for verification.
  • the current verification mark can be understood as being issued by the self-generating switch.
  • the historical verification mark can be understood as being issued by the self-generating switch. Stored by the receiving end before sending.
  • the historical verification identification can be the current verification identification sent to the receiving end (sent with the control message or pairing message) and stored by the receiving end since the last manipulation action of the generator switch, or determined based on it.
  • the historical verification mark can also be sent to the receiving end (sent with the control message or pairing message) when a specific manipulation action (such as a press-down manipulation action or a rebound manipulation action) occurred last time on the generator switch. ) and is stored by the receiver, or determined based on it.
  • the verification mark is a specific value, it can also be described as a serial number. Furthermore, in the example of the embodiment of the present invention, the description of the serial number can be regarded as the description of the verification mark.
  • the wireless communication module 109 may be any circuit module capable of wireless communication, for example, may include at least one of the following: a radio frequency module, a Bluetooth module, a Wifi module, and the like.
  • the receiving end can be used for:
  • the current control message is sent by the self-generating switch through the switch control method mentioned above, or sent by the self-generating switch mentioned above;
  • the corresponding message (such as the current control message) may be discarded; wherein, the discarding of the current control message can be understood as not processing based on the current control message, for example : Do not execute the control event corresponding to the current control message, and do not update and change information such as historical verification identifiers based on the current control message.
  • the matching verification between the current verification identification and the historical verification identification can be used as the basis for executing the control event, avoiding the execution of the control event of copying the message, and realizing the prevention Copy the effect of the attack.
  • the matching verification of whether the current verification identifier and the historical verification identifier match the transformation rule it can also provide a basis for filtering out duplicate messages.
  • the verification identification in the real message is changed, and the verification identification in the copied message is usually repeated, and then, through the verification based on the historical verification identification and the conversion rule, the duplicate message (wherein the verification identification and The relationship of the historical verification identifier usually does not match the transformation rule), thereby avoiding the execution of the control action of copying the message and ensuring security.
  • the self-generating switch 1 further includes a polarity identification module 110; the polarity identification module 110 is electrically connected to the generator 103 (for example, its sensing part 1032) with the processor 108 .
  • the processor Before the processor reads the current verification ID from the memory and updates the current verification ID, it further includes:
  • the processor After the processor, the memory, and the wireless communication module are powered on, the processor identifies the current manipulation action of the key through the polarity identification module, and determines that the current manipulation action is the target manipulation action (that is, the processor 108 is also used to: identify the current manipulation action of the button through the polarity identification module 110, and determine that the current manipulation action is the target manipulation action), and the target manipulation action is a press Select one of the manipulation action and rebound manipulation action.
  • the data packet sent by the button that is, the data packet of the control message sent after the button is pressed
  • the data packet sent by the rebound that is, the rebound The data packet of the control message sent later
  • the receiving end can still perform response actions after receiving the bounced data packet.
  • the receiving end can judge whether to execute the control event based on the verification identifier and the manipulation action represented by the control message. For example, the receiving end can judge according to the serial number (that is, the verification identifier). (that is, the current control information is press control information), it must respond to execute the corresponding control event; if it is a rebound data packet (that is, the current control information is rebound control information), then only Only in the case of a pressed data packet with a sequence number (ie, the verification ID) will it respond to execute the corresponding control event.
  • the serial number that is, the verification identifier
  • the current control information is press control information
  • a rebound data packet that is, the current control information is rebound control information
  • the receiving end can also help to avoid repeated execution of the control message pointing to the same control event, for example: when using a self-generating switch to control a light (that is, the receiver is a light or a connected light) , if the controlled control event is: the inversion of the light state, then: if both the press and the rebound respond, the light is turned on when the press is pressed, and then the light is turned off after the rebound.
  • the reasonable configuration can be, for example: if the self-generating switch is pressed to change the current verification mark, then: the receiving end can update and write the current verification mark in it when receiving the control message, as a new historical verification mark.
  • the reasonable configuration can be, for example: if the self-generating switch changes the current verification mark when it is pressed, then: the receiving end can write the verification mark in it when receiving the control message at the time of rebound, as a new historical verification mark .
  • the scheme of "the change of the verification mark occurs only after a complete press and rebound" can also save power. For example: if the serial number (that is, the current verification mark) is only updated when it rebounds, then: there is no need to update the serial number (that is, the current verification mark) when the button is pressed, especially saving the need to write the updated serial number energy consumption in memory.
  • sequence numbers ie, the current verification ID
  • the sequence numbers ie, the current verification ID
  • it can also make it easier for the receiving end to deduplicate messages according to the sequence number.
  • the target manipulation action is a rebound manipulation action, and in other examples, the target manipulation action may also be a press down manipulation action.
  • the user presses the button of the self-generating switch When the user presses the button of the self-generating switch, he usually wants to get immediate feedback on the effect of the control. Furthermore, if the serial number is updated only when rebounding (that is, the target manipulation action is the manipulation action of rebounding), then all the electric energy when pressing down can be used for other tasks, especially sending signals, without spending power to update the serial number.
  • the self-generating switch 1 further includes a key identification module 110, and the key identification module 110 is electrically connected to the processor;
  • the processor before the processor generates the current control message, it also includes:
  • S311 The processor reads a switch identifier representing the self-generating switch from the memory
  • step S313 may be implemented: the processor obtains the current key information through the key identification module, and updates the current key information in the memory;
  • step S314 may be implemented: whether the currently occurring manipulation action is a rebound manipulation action;
  • step S315 may be implemented: the processor obtains the stored current key information from the memory;
  • step S314 If the determination result of step S314 is no, then return to step S312.
  • the current manipulation information is determined based on the switch identification, the manipulation action information, and the acquired current key information.
  • processor 108 may also be used to:
  • the currently occurring manipulation action is a press manipulation action, then: obtain current key information through the key identification module, and update the current key information in the memory;
  • the currently occurring manipulation action is a rebound manipulation action, then: obtain the stored current key information from the memory;
  • the current manipulation information is determined based on the switch identifier, the currently occurring manipulation action, and the obtained current key information. For example, the switch identifier can be written into the current control message, or based on the manipulation action and the current
  • the key information determines the key value, and writes the key value into the current control message.
  • the button identification module 110 may include a microswitch 1101, and the number of the microswitch 1101 and the button 101 may be one as shown in FIG. 2 , or may be as shown in FIG. 4, there is a one-to-one correspondence between each micro switch 1101 and each key 101, and the micro switch 1101 can be touched when the corresponding key is pressed, and then the feedback signal is sent to the processor 108. At this time, the processing The device 108 can read the feedback signal to determine the key information representing the key, so as to know which key is currently pressed.
  • the polarity identification module 112 includes a push-down recognition part 1121 and a rebound recognition part 1122; the push-down recognition part 1121 is electrically connected to the generator 103 respectively.
  • the sensing part 1032 of the generator 103 is electrically connected to the processor 108, and the rebound identification part 1122 is electrically connected to the sensing part 1032 of the generator 103 and the processor 108, respectively.
  • the processor identifies the current manipulation action of the button through the polarity identification module, including:
  • the processor receives the specified signal sent by the press-down recognition unit, it will determine that the currently occurring manipulation action is a press-down manipulation action; wherein, the press-down recognition unit only generates the sending the designated signal to the processor only when the first induced voltage is detected;
  • the processor receives the specified signal sent by the rebound recognition unit, it will determine that the currently occurring manipulation action is a press-down manipulation action, wherein the rebound recognition unit only generates The specified signal is sent to the processor only when the second induced voltage is reached.
  • the processor 108 identifies the current manipulation action of the key through the polarity identification module, it is specifically used to:
  • the specified signal sent by the press-down recognition unit 1121 is received, it is determined that the currently occurring manipulation action is a press-down manipulation action; Sending the specified signal to the processor 108 when an induced voltage is detected;
  • the rebound recognition unit 1122 If the designated signal sent by the rebound recognition unit 1122 is received, it is determined that the currently occurring manipulation action is a press-down manipulation action, wherein the rebound recognition unit 1122 only generates the action when the generator 103 The specified signal is sent to the processor 108 only when the second induced voltage is detected.
  • the specified signal may be, for example, any one of the following: a high-level signal, a high-pulse signal, a low-level signal, and a low-pulse signal.
  • the pulse signal sent by the sensing part when pressing down and the pulse signal sent by the sensing part when rebounding can be understood with reference to the waveform shown in FIG. 7 .
  • the abscissa is time, and the ordinate is voltage.
  • the press-down identification part 1121 may include: a first press-down identification diode D21, a press-down identification second diode D22, a press-down identification first resistor R21, a press-down identification second Resistor R22, and down-press identification capacitor C21;
  • the anode of the first diode D21 for pressing down to identify is electrically connected to the first output end of the sensing part, the negative pole of the first diode D21 for pressing down to identify is electrically connected to the first end of the identifying capacitor C21 for pressing down, and the second end for pressing down to identify
  • the first end of a resistor R21, the second end of the identification capacitor C21 by pressing down is grounded, the first end of the second resistor R22 is identified by pressing down, and the cathode of the second diode D22 is electrically connected to the first terminal of the processor 108 by pressing down.
  • the receiving end such as an I/O port
  • the springback recognition unit 1122 may include: a rebound recognition first diode D23, a rebound recognition second diode D24, a rebound recognition first resistor R23, a rebound recognition second Resistor R24, and rebound identification capacitor C22;
  • the anode of the rebound recognition first diode D23 is electrically connected to the second output terminal of the sensing part, the cathode of the rebound recognition first diode D23 is electrically connected to the first end of the rebound recognition capacitor C22, and the rebound recognition first
  • the first end of a resistor R23, the second end of the rebound identification capacitor C22 is grounded, the first end of the rebound identification second resistor R24, and the cathode of the second rebound identification diode D24 are electrically connected to the second terminal of the processor 108.
  • the anode of the rebound recognition second diode D24 and the second end of the rebound recognition second resistor R24 are grounded.
  • the output terminal can generate a positive pulse respectively.
  • the energy storage capacitor corresponding to the positive pulse ie, the down-press identification capacitor C21 or the rebound identification capacitor C22
  • the capacitor of the negative pulse of the generator will not be charged, and due to the existence of the diode, the electricity of the capacitor corresponding to the positive pulse will not flow to the capacitor corresponding to the negative pulse, so the capacitor corresponding to the negative pulse will not output a pulse signal to the processor or high level signal.
  • the processor can detect the voltage level generated by the resistor divider and take corresponding actions.
  • the first diode D21 for pressing down and the first diode D23 for rebound recognition may be isolated diodes, for example, diodes of type RB551V may be used.
  • Press down to identify the second diode D22 and bounce back to identify the second diode D24 can be used as a voltage regulator diode, for example, it can be a 3.3V voltage regulator diode, and a model MMSZ5226BS voltage regulator diode can be selected specifically.
  • the maximum power consumption is 200mW, and the reverse leakage current is 25uA.
  • only the push-down identification part can be used, and only the rebound identification part can be used.
  • the switch may only need one recognition part (for example, a push-down recognition part or a rebound recognition part).
  • a push-down recognition part for example: when there is only one push-down identification part, a high level is generated when the switch is pressed down, and the processor recognizes that it is a press-down. When the switch rebounds, the processor cannot detect the high level, which can also be considered as a rebound at this time.
  • the pressed message may not be sent when the user releases the switch.
  • the processor is still in the working state, if there is no rebound identification part to output a high level, the processor has no way of knowing that the switch has rebounded. Therefore, two independent identification parts are needed to identify the pressing and rebounding, so that the processor detects that the corresponding IO port has a high level or a positive pulse, and then it is considered that the corresponding pressing or rebounding has occurred. It can be seen that in this scheme, it is not only possible to detect the IO port of polarity recognition at the moment of "power on" to judge whether it is a push-down or a rebound.
  • the memory 107 includes a first memory 1071 and a second memory 1072, and the current verification identification is updated and stored in the first memory 1071;
  • the second memory 1072 of the program is a different memory, and the first memory 1071 is a memory that does not lose data after power failure.
  • the current verification ID updated and stored in the first memory 1071 is the same as the current verification ID recorded in the current manipulation message.
  • the first memory 1071 is a memory capable of erasing, writing, and reading data in units of one or more bytes, wherein the writing and reading time of a single byte does not exceed 10 ms, The energy consumed does not exceed 300uJ.
  • the first memory 1071 includes a Flash memory and/or a ferroelectric memory.
  • the first memory also stores current key information, and the current key information represents the key that the self-generating switch has been pressed for the last time; the key represented by the current key information is related to the current control information The keys represented are the same.
  • the first memory 1071 may not choose conventional FLASH, this is because conventional FALSH must be erased (written) in units of sectors, resulting in too much power required for writing, and the generator may not be able to support .
  • memory such as EEPROM, ferroelectric memory, etc., it can effectively avoid the situation that the power of the generator is difficult to support.
  • the first memory 1071 may use a 24C02 and be connected to the processor through an IIC bus.
  • the power supply (VDD-EE) of the first memory 1071 is isolated from the power supply VDD of the processor through the diode D71, so that when necessary, such as when burning data into the EEPROM in the production stage, the processor 108 is In the unpowered state, the IIC communication between the EEPROM and the programming tool is not affected by the IIC pin of the processing unit.
  • the verification identification can be read from the first memory first, and then updated (such as self-increment operation), the updated current verification identification is filled in the message and sent, and then the self-updated The current verification identification of the device is rewritten back to the first memory, after which the power will be exhausted, and both the processor and the memory will "power down" and crash.
  • the switch When the switch is pressed and/or bounced, it will send the current button information (representing which button is pressed & released), but due to the structural limitations of the self-generating switch, although the generator will generate electricity when the switch is released, it is used for The micro switch that detects the key position has been released, and it is impossible to identify which key is acting. Therefore, the first memory (that is, two memories) is set, and when the switch is pressed, the current key information at this time is written.
  • the first memory that is, two memories
  • the text also carries the key value, which doubles the probability that the receiving end can receive the message and improves the reliability.
  • the SCL terminal of the first memory 1071 can be connected to the VDD-EE of the processor through the resistor R72, and the SDA terminal of the first memory 1071 can be connected to the VDD-EE of the processor through the resistor R71.
  • the rectification module 111 includes a first rectification part 1111 and a second rectification part 1112; the first rectification part 1111 is electrically connected to the induction part 1032 and the energy storage module 105 , and the second rectification part 1112 is electrically connected to the induction part 1032 of the generator 103 and the energy storage module 105 .
  • the rectification module stores the first electric energy corresponding to the first induced voltage and the second electric energy corresponding to the second induced voltage in the energy storage module, including:
  • the first rectification unit rectifies the first induced voltage, and stores the corresponding first electric energy in the energy storage module;
  • the second rectification unit rectifies the second induced voltage, and stores the corresponding second electric energy in the energy storage module.
  • the rectification module 111 stores the first electric energy corresponding to the first induced voltage and the second electric energy corresponding to the second induced voltage in the energy storage module, it is specifically used for:
  • the first rectification unit 1111 rectifies the first induced voltage, and stores the corresponding first electric energy in the energy storage module;
  • the second rectification unit 1112 rectifies the second induced voltage, and stores the corresponding second electric energy in the energy storage module.
  • the first rectifying part 1111 includes a first rectifying diode D11, a second rectifying diode D12, and a first rectifying resistor R11
  • the second rectifying part 1112 includes a third rectifying diode D13, a fourth rectifying diode D14 and the first rectifier resistor R12.
  • the negative pole of the first rectifying diode D11 and the negative pole of the second rectifying diode D12 can be electrically connected to the first output terminal and the second output terminal of the sensing part respectively, the positive pole of the first rectifying diode D11 and the positive pole of the second rectifying diode D12 can be grounded, At the same time, the first end of the first rectifying resistor R11 can also be connected, and the second end of the first rectifying resistor R11 is connected to the second output end;
  • the anode of the third rectifier diode D13 and the anode of the fourth rectifier diode D14 can be electrically connected to the first output end and the second output end of the sensing part respectively, the cathode of the third rectifier diode D13 and the cathode of the fourth rectifier diode D14 can be grounded, At the same time, the first terminal of the second rectifying resistor R12 can also be connected, and the second terminal of the second rectifying resistor R12 can be connected to the first output terminal.
  • the third rectifying diode D13 and the fourth rectifying diode D14 form a positive pulse rectifying part
  • the first rectifying diode D11 and the second rectifying diode D12 form a negative pulse rectifying part.
  • the voltage output module 106 may include: a controller 1061, an energy storage capacitor C61, and a freewheeling unit (for example, including a freewheeling inductor L61);
  • the input side of the controller 1061 is electrically connected to the energy storage module.
  • the enabling terminal of the controller 1061 can be connected to the energy storage module and the first terminal of the capacitor C62, and the second terminal of the capacitor C62 can be grounded.
  • the controller The output side of 1061 is electrically connected to the first end of the freewheeling unit (such as the freewheeling inductor L61), and the second end of the freewheeling unit (such as the freewheeling inductor L61) is directly or indirectly electrically connected to the processor, wireless At least one of the memory of the communication module, the energy storage capacitor C61 is electrically connected between the second end of the freewheeling unit (such as the freewheeling inductor L61) and ground; the controller 1061 is configured to be able to control its input The on and off between the side and the output side, and by adjusting the switching frequency of on and off, and the duration of on or off, the voltage output by the freewheeling unit and the energy storage capacitor is adjusted.
  • the voltage output module 106 may further include a first feedback resistor R61 and a second feedback resistor R62 for detecting the output voltage and feeding it back to the inside of the controller 1061 .
  • the controller 1061 can be integrated with a PWM generation unit, which adjusts the width or frequency of the output pulse according to the feedback voltage, controls the internal or external switching tube, and intermittently charges the output inductor to achieve the purpose of voltage stabilization.
  • a resistor R63 may be provided between the output terminal of the energy storage module and the output terminal of the voltage output module (that is, the VDD terminal and the VIN terminal), and a parallel capacitor C63 and stabilizer may be provided between the VIN terminal and the ground. voltage diode D61.
  • the transformation rule includes at least one of the following:
  • the first reference value, the second reference value, the third reference value and the fourth reference value may be fixed values or variable values, and their signs are generally consistent and non-zero, such as positive numbers.
  • the first reference value used in the accumulation can be a positive number that changes within a certain range.
  • the accumulated value can change in a certain order. 1.
  • Accumulation 2 and accumulation 3 are cyclically changed, then: when the kth conversion is performed, it is realized by accumulating 1; when it is the k+1 conversion, it is realized by accumulating 2; when it is the k+2 conversion, it is realized by accumulating 3 , when the k+3th transformation is performed, it is realized by accumulating 1 again.
  • the conversion rule is: add a first reference value on the basis of the first value to obtain the second value, then: when the receiving end verifies whether the current verification identifier matches the historical verification identifier, it can verify the current Verifying whether the identification is greater than the historical verification identification, or: verifying whether the current verification identification is greater than the historical verification identification, and the difference between the two matches the first reference value;
  • the transformation rule is: accumulating a second reference value on the basis of the first value to obtain the second value; then: when the receiving end verifies whether the current verification identifier matches the historical verification identifier, the Whether the current verification mark is smaller than the historical verification mark, or: verify whether the current verification mark is smaller than the historical verification mark, and the difference between the two matches the second reference value;
  • the transformation rule is: multiply a third reference value on the basis of the first value to obtain the second value; then: when the receiving end verifies whether the current verification identifier matches the historical verification identifier, it can verify the current Verifying whether the identification is greater than the historical verification identification, or: verifying whether the current verification identification is greater than the historical verification identification, and the ratio of the two matches the third reference value;
  • the conversion rule is: divide the first value by a fourth reference value to obtain the second value; then: when the receiving end verifies whether the current verification identifier matches the historical verification identifier, it can verify the Whether the current verification identifier is smaller than the historical verification identifier, or: verify whether the current verification identifier is smaller than the historical verification identifier, and the ratio of the two matches the fourth reference value.
  • the matching of the difference with the first reference value and the second reference value can be understood as the same, or the difference is less than a certain threshold
  • the matching of the ratio with the third reference value and the fourth reference value can be understood as the same, or the difference is less than certain threshold
  • the self-generating switch carries a serial number (that is, the verification mark), and the serial number is incremented (or decremented) each time it is pressed. After a complete press + rebound operation, the serial number The number is only incremented once; the message carries the information that represents the press/pop up (it can be understood that the control information can represent the control action).
  • the back-end circuit can identify whether it is a push-down control action or a rebound control action through the polarity identification module.
  • serial number that is, the stored verification identification
  • the serial number is self-increased (it can be understood as the transformation)
  • the key information to generate a control message (It may correspond to step S308).
  • the order of writing back the memory and sending the message can be interchanged.
  • the serial number is directly read from the memory, without self-increment (that is, without implementing the transformation), and the key information is also directly read from the memory (rather than reading the feedback signal of the microswitch) ).
  • the current control message further includes signature information, the signature information is calculated based on the first key, and the signature information changes with the change of the current verification identifier;
  • the signature information can be verified by the receiving end through a second key, the first key matching the second key.
  • the key in it can be fixed, or it can be refreshed and changed by some method. After refreshing the change, the self-generating switch and the receiving end are resynchronized.
  • the key can change based on the function value of time as an independent variable, and the functional relationship corresponding to the first key is adapted to the functional relationship corresponding to the second key.
  • the key can be a series of confidential data, wherein, based on the combination of the plaintext and the key, the signature information can be calculated by a preset algorithm (such as the AES algorithm).
  • the plaintext therein may be, for example, at least part of the content of the control message, which may contain a verification identifier but not a signature.
  • the processor can use the first key to encrypt the content of the remaining fields except the signature field in the payload part of the current control message to be sent to obtain the signature information.
  • the receiving end can use the second key to encrypt the content of the remaining fields in the payload part of the received current control message except the signature field to obtain signature information, and the receiving end can use the calculated signature information to encrypt the current The signature information recorded in the control message is verified.
  • first key and the second key may be the same, and in other examples, the two may also be different.
  • the anti-forgery function can be realized by signing information to ensure security.
  • the attacker first captures a legal switch message, and then sends it out intact.
  • verification identification Through the use of verification identification, it can effectively prevent copy attacks.
  • the receiving end will store the serial number of the last received message (that is, the verification identification). After receiving a new message, even if the verification signature information is legal , and continue to check the serial number: it is not allowed to be a serial number that has been received when it is pressed or rebounded before, it can only be a serial number that is larger than the previous one and falls within a window (all, or a large enough sliding window).
  • the attacker can operate a real device that can send control messages (such as a self-generating switch), and then actively increase the serial number (if the serial number is in plain text) by 1 to reconstruct the message.
  • control messages such as a self-generating switch
  • the signature information can effectively prevent forgery attacks. (If the serial number is in plain text), the signature information is calculated from the previous message content through the key. The self-generating switch is encrypted with a key, and the receiver uses the key to calculate it again. If it matches, the message from the transmitter will be considered legal.
  • the receiving end and the self-generating switch synchronize the serial number; the serial number may not be verified during the pairing process, and the signature information may still be verified, that is, the pairing process only examines anti-counterfeiting, not anti-copying. Of course, even the signature information can be verified;
  • the signature information is verified, and on the other hand, the serial number is verified, which is only allowed to be larger (or smaller) than the previous serial number. If further strict verification is required, the serial number is required to be larger than the previous serial number and fall within a window (this window can be embodied as the first reference value, the second reference value, the third reference value, the fourth reference value, etc. reference value). Window-based authentication can effectively deal with exhaustive attacks. For example, if the window is not required, the attacker can use a serial number larger than the current serial number to perform exhaustive attacks.
  • the authentication identifier itself is converted before being sent, and the attacker cannot obtain the current serial number.
  • the current verification identifier recorded in the current control message is the converted current verification identifier, wherein the conversion method is the first data conversion method, that is: the current verification identifier recorded in the current control message is The current verification identifier converted by the first data conversion method;
  • the current verification identification verified by the receiving end is obtained by inversely converting the converted current verification identification, wherein the reverse conversion method is the second data conversion method, and the first data conversion method is the same as the first data conversion method.
  • the second data conversion method is the opposite data conversion method, that is, the current verification identifier verified by the receiving end is obtained by reverse-converting the converted current verification identifier through the second data conversion method.
  • the first data conversion method and the second data conversion method are opposite conversion methods, and no matter which conversion method is adopted, it does not depart from the scope of the embodiments of the present invention.
  • the receiving end can check the duplicates according to "ID-serial number"; the ID can be understood as the equipment vendor identification (corresponding to the equipment vendor ID in Figure 15 and Figure 16), For a specific ID, after receiving the message, store the sequence number of the message. After receiving the message with the same ID next time, compare the serial number (ie, the current verification ID) with the previous one, and if it is the same as the historical value (ie, the historical verification ID), it will be considered as a duplicate message and discarded; if If it is newer than the historical value, it is regarded as a new message and will be processed later.
  • ID-serial number the ID can be understood as the equipment vendor identification (corresponding to the equipment vendor ID in Figure 15 and Figure 16)
  • a basic message legality judgment is made according to the message format. Then, extract the serial number; compare the serial number with the historical value (i.e. compare the current verification identification with the historical verification identification for verification); if it is greater than the historical value, execute the corresponding control action (i.e. control event), and simultaneously The new serial number is written into the historical value for backup; if it is not greater than the historical value, it is considered to be a duplicate serial number and discarded.
  • the current control message is sent by the self-generating switch through Bluetooth, and then the wireless communication module is a Bluetooth module.
  • the wireless communication module is a Bluetooth module.
  • the following is a kind of packet sending, scanning and receiving data packets when using Bluetooth for communication. way to explain.
  • the receiving end receives the data packet according to the preset wake-up sleep cycle (it can also be understood as controlling the wake-up and sleep of the data packet receiving function of the receiving end according to the wake-up sleep cycle).
  • the receiving end itself can be According to the awakening and dormancy of the wake-up sleep cycle, the wake-up sleep cycle includes alternate wake-up periods and sleep periods, that is: after the wake-up period passes, it enters the sleep period, after the sleep period passes, it enters the wake-up period, and the cycle is repeated, and the described The receiving end only receives data packets during the wake-up period.
  • the waveform of receiving scanning is a schematic waveform of receiving scanning data packets at the receiving end, wherein the wake-up period can be represented as Ton, the sleep period can be represented as Toff, and the waveform of sending packets is a schematic waveform of data packets sent from the power generation switch, where The raised waveform is the sending period which can be regarded as a data packet.
  • step S308 send the corresponding current control message to the receiving end through the wireless communication module, specifically including:
  • N groups of data packets are broadcast to the outside in sequence through Bluetooth, so that: the receiving end captures at least one data packet during the wake-up period, wherein each group of data packets includes a plurality of data packets, and each data packet contains the current A control message; the broadcast interval of adjacent data packets in the N groups of data packets is matched with the wake-up and sleep cycle of the receiving end, where N ⁇ 2.
  • the processor when the processor sends the corresponding current control message to the receiving end through the wireless communication module, it is specifically used for:
  • N groups of data packets are broadcast to the outside in sequence through Bluetooth, so that: the receiving end captures at least one data packet during the wake-up period, wherein each group of data packets includes a plurality of data packets, and each data packet contains the current Control message; The broadcast interval of adjacent data packets in the N groups of data packets is matched with the wake-up and sleep cycle of the receiving end, where N ⁇ 2.
  • the receiving end can specifically be used for:
  • At least one data packet in the N groups of data packets sent by the self-generating switch is captured through Bluetooth, and the N groups of data packets are broadcast by the self-generating switch through Bluetooth in turn, and each data Each packet contains the current control message; the total broadcast duration of the N groups of data packets, and the broadcast interval between two adjacent data packets, match the wake-up and sleep cycle of the receiving end, where N ⁇ 2.
  • the broadcast interval can be understood as: the interval between the start broadcasting times of two adjacent groups of data packets, which can also be regarded as the broadcast cycle of each group of data packets, and only one group of data packets is sent in each broadcast cycle.
  • the duration of the wake-up period is greater than or equal to the broadcast interval of two adjacent data packets
  • the duration of the sleep period is less than or equal to N-1 times the broadcast interval.
  • the receiving end can receive the data packets during the wake-up period.
  • the wake-up period Ton is within the large cycle of sending packets, there must be at least 1 packet in the window of the wake-up period Ton, that is, it is impossible for the wake-up period Ton to fall within the broadcast interval (for example, 20mS), and the wake-up period Ton is greater than or equal to Broadcast interval (eg 20mS).
  • the Toff of the dormant period must be guaranteed to be less than or equal to the broadcast interval * (N-1), for example, less than Or equal to 20mS*(N-1).
  • the specified packet sending interval (that is, the broadcast interval formed) can be selected as 20mS;
  • the wake-up sleep cycle of the receiving end can be 100mS;
  • the duty cycle can be 20%
  • the wake-up period Ton is 20mS
  • the sleep period Toff is 80mS.
  • the self-generating switch can send 5 sets of data packets
  • the receiving end can scan at least 1 set of data packets. If the transmitter can send 10 sets of data packets, the receiver can scan at least 2 sets of data packets.
  • the wake-up period Ton can be specifically 25mS
  • the sleep period Toff can be specifically 75mS
  • the corresponding duty cycle is 25%
  • the receiving end can scan at least one set of data package, and leave a certain margin.
  • the wake-up sleep period can be 125mS
  • the wake-up period Ton can be specifically 25mS
  • the sleep period can be specifically 100mS.
  • the packet sending interval is 20mS
  • 20mS*(N-1) needs to be greater than or It is equal to 100 mS
  • N ⁇ 6 that is, at least 6 groups of data packets need to be sent
  • multiple data packets in the same group are sent through at least two of the following channels:
  • the processor sequentially broadcasts N groups of data packets through the Bluetooth module, specifically including:
  • the processor After the processor starts to send a group of data packets, it counts the time of the broadcast interval, and sends another corresponding group of data packets when the timing reaches the specified packet sending interval;
  • the processor 108 sequentially broadcasts N groups of data packets through the Bluetooth module, it is specifically used for:
  • the above timing function can be realized by a timing module integrated in the processor.
  • the signal transmitted by the wireless communication module is a bluetooth signal, for example, 2.4GHZ may be used as a carrier frequency, and the data packets are respectively transmitted through a designated bluetooth channel.
  • the self-generating Bluetooth switch uses Bluetooth low energy technology to transmit data in 40 2-MHz channels.
  • the data is transmitted on a broadcast channel.
  • the frequencies of the three broadcast channels are: 2.402GHz for channel 37; 2.428GHz for channel 38; 2.480GHz for channel 39.
  • the processor may be integrated with the timing module mentioned above, and the timing module is used for delay in the sending interval.
  • the packet sending interval can be 20mS, specifically, it can fluctuate randomly within the range of 20mS ⁇ 5mS (that is, the specified packet sending interval can be within the range of 15 milliseconds to 25 milliseconds), so as to reduce the difference The probability of a packet sent by the switch colliding in the air.
  • the data structure of the current control message includes:
  • the header (corresponding to the "header information” shown in the figure), the payload part (corresponding to the "PayLoad” shown in the figure, which is an AD Structure) and the CRC check part (corresponding to the "PayLoad” shown in the figure) "CRC");
  • the payload section includes:
  • a key value field (corresponding to the "key value” shown in the figure) used to record the key value;
  • the key value is the information representing the button and/or manipulation action in the current manipulation information;
  • a verification identification field (corresponding to the "serial number” shown in the figure) used to record the current verification identification.
  • the data structure of the current control message further includes: a physical address part (corresponding to "MAC" shown in the figure);
  • the physical address section includes:
  • the switch identification field (corresponding to "MA CL" shown in the figure) is used to record the switch identification in 4 bytes; the switch identification can also be expressed as Source ID, and then, in the message, the physical address part is used Among them, 4 bytes represent the Source ID of the self-generating switch.
  • the payload part may also include the switch ID, or may not include the additional switch ID. If it is not included, the length of the message shall be reduced as much as possible to save power;
  • the payload part also includes a frame header control field (corresponding to "Frame Header” shown in the figure), and the frame header control field includes:
  • the switch identification indication field (corresponding to the "ID type" shown in the figure) is used to use 1 bit to record whether the payload part records the switch; for example: taking Figure 15 as an example, if this field is 0, then Indicates that the payload part does not contain an additional Source ID (that is, the switch identifier); taking Figure 16 as an example, if this field is 1, it means that the payload part contains an additional 4 bytes of Source ID (that is, the switch identifier).
  • the payload section also includes:
  • the signature field (corresponding to the "signature” shown in the figure) is used to record the signature information in 4 bytes; furthermore, the message length should be reduced as much as possible while ensuring the encryption strength.
  • the encryption indication field (corresponding to the "encryption type" shown in the figure) is used to use 1 bit to record whether the signature information is included in the payload part, for example: if it is 0, it means that the information is included, if it is 1, it means Reserve other encryption methods.
  • the header includes:
  • Preamble field (corresponding to "preamble” shown in the figure), access address field (corresponding to "Access Adress” shown in the figure), protocol data unit data header field (corresponding to "PDU” shown in the figure Header”);
  • the payload section includes:
  • Length field (corresponding to "length” shown in the figure), broadcast type field (corresponding to "AD type” shown in the figure), device vendor identification field (corresponding to “device vendor ID” shown in the figure) , the switch type field (corresponding to the "switch type” shown in the figure);
  • the frame header control field also includes: a version number field (corresponding to the "version number” shown in the figure), a forwarding times field (corresponding to the "forwarding count” shown in the figure);
  • the CRC checking section includes a CRC calculation value field.
  • the receiving end may be a wall switch, and the control event therein includes at least one of the following:
  • the wall switch is turned off
  • the wall switch is turned on
  • control events can be understood with reference to the above examples.
  • control events in it can include at least one of the following:
  • switch the switch state of the receiving end means that the receiving end is turned on or off;
  • the process of executing the control event can be, for example:
  • the current manipulation information detect whether a predefined state switching manipulation and parameter change manipulation have occurred, or: according to the current manipulation information and previously received manipulation information, detect whether the state switching manipulation and the described Parameter change manipulation;
  • the state switch operation is different from the parameter change operation.
  • the state switching manipulation is: the duration of pressing the corresponding key is shorter than a specified duration
  • the parameter change manipulation is: the duration of pressing the corresponding button is longer than the specified duration.
  • the state switching manipulation may also be: the duration of pressing the corresponding button is longer than the specified duration
  • the parameter change manipulation is: the duration of pressing the corresponding button is shorter than the specified duration.
  • a short press released immediately after pressing
  • a long press can realize the basic ON/OFF flip command, such as turning on and off the light
  • Dimming for example, adjusting the brightness of a light
  • the process of executing the control event can be, for example:
  • If the current manipulation information is start-to-change manipulation information, start to change the working parameters of the receiving end;
  • If the current control information is stop changing control information, stop changing the working parameters of the receiving end;
  • the keys and/or manipulation actions represented by the start-to-change manipulation information and the stop-to-change manipulation information are different.
  • the start-to-change manipulation information represents a manipulation action corresponding to a key being pressed; the stop-change manipulation information represents a manipulation action corresponding to a key rebound.
  • the start-to-change manipulation information and the stop-to-change manipulation information may represent manipulation actions of different keys, or may be manipulation actions of different times of pressing.
  • the historical verification identification stored in the receiving end is determined according to the verification identification recorded in the control message generated by the specified manipulation action; the specified manipulation action is the manipulation action of pressing the key or the manipulation of the key rebounding action.
  • the receiving end can only store the current verification ID as the historical verification ID when it receives the control message generated by the manipulation action of pressing down;
  • the current verification ID in the control packet is stored as the historical verification ID.
  • the receiving end of the above adjustable working parameters can be any one of the following, for example: lights, fans, automatic curtains. But it is not limited to this, and any receiving end that needs to adjust working parameters can be used as an optional solution.
  • the receiving end is a lamp
  • the serial number can be used to check the duplicates of the multi-packet data sent when pressing and rebounding.
  • a short press realizes the basic ON/OFF flip command, and a long press realizes dimming.
  • This process may correspond to the above-mentioned processing process for state switching control information and parameter change control information.
  • the embodiment of the present invention also provides a control system (which can be understood with reference to FIG. 1 ), including a self-generating switch and a receiving end.
  • control system can also include a gateway (or router), which can communicate with the self-generating switch and the receiving end respectively.
  • a gateway or router
  • the communication methods can all use Bluetooth, or not limited to Bluetooth.
  • the gateway can be a device dedicated to network communication, or a device with other specific functions (for example, it can be a voice speaker with a gateway function).
  • the self-generating switch also includes a bottom case 113 and a middle case 119, and the middle case 119 covers the bottom case 113 to form an inner space.
  • the circuit board 114 , the switch circuit and the transmission part 117 are all located in the inner space, and the button 101 is located in the side of the middle shell 119 away from the inner space.
  • only the bottom case 113 may be provided without the middle case 119 .
  • the moving part 1031 of the generator 103 can be a power generation paddle, and the power generation paddle can be understood as any structure that can be touched to generate electrical energy using mechanical energy, which can be in the shape of a sheet, Arbitrary shapes such as a rod shape and a ring shape may also be used.
  • the moving part 1031 of the generator 103 is located on the side of the generator 103 close to the non-pressed end of the button 101 (for example, the left side shown in FIG. 20 ), that is, the moving part 1031 is located at one end of the generator 103
  • the micro switch 1101 ie, the detection unit
  • the generator 103 is located on one side of the other end of the generator 103 .
  • the first end of the transmission part 117 is used to be pressed directly or indirectly by the button 5, for example, it can be controlled by the switch pressing part 1172, wherein the switch pressing part 1172 can protrude from the surface of the transmission part 117 .
  • the second end of the transmission component 117 is used to trigger the moving part 1031 when the first end thereof is pressed and/or reset by the reset force, so that the generator 103 generates electricity.
  • the movement direction of the first end and the second end of the transmission part 117 can be the same or different, no matter what way, as long as the above controlled pressing and the touch of the generating paddle are realized, it will not deviate from this embodiment. Example description.
  • the transmission part 117 can be provided with an insertion hole 1175 for inserting the electric paddle (that is, the moving part 1031 ).
  • the bottom case 113 is provided with a support portion 1131 , and the support portion 1131 extends through the circuit board 114 to the part of the circuit board 114 that is away from the bottom surface of the bottom case 113 .
  • the circuit board 114 may be provided with a through hole for passing it through, and the support portion 1131 is supported by the transmission component 117 .
  • the transmission member 117 can swing with the support portion 1131 as a fulcrum, and change between the first position state and the second position state through the swing.
  • the number of supporting parts 1131 can be two or more, which can be evenly distributed on the lower side of the transmission part 117 .
  • the supporting part 1131 can be docked with the fulcrum of the transmission part 117, and the fulcrum can be provided with a structure for realizing docking, or not provided with a structure, and the fulcrum can be a single position, or a variable Furthermore, as the swing occurs, the contact position between the support portion 1131 and the transmission member 117 may or may not change.
  • the circuit board 114 can be assembled in the inner space formed by the bottom case 113, and the generator 103 is connected with the circuit board 114, wherein, the generator 103 can be installed on the bottom case 113 by using the generator installation buckle 1137;
  • the two fulcrums are connected to the bottom shell 113, specifically, the structure formed by the connection of the two fulcrums can form a seesaw structure, and one end of the transmission part 117 is connected with the generator paddle protruding from the generator 103.
  • the reset part 102 is installed on the bottom shell 113 and connected to the other end of the transmission part 117 or a position close to the other end, the generator 103 can be reset through the transmission part 117, and the other end of the transmission part 117 can be provided with a switch Pressing part 1172 .
  • the transmission member 117 After pressing, under the action of the reset member 102 such as a torsion spring, the transmission member 117 can return to the initial position, thereby driving the generator paddle of the generator 103 to return to the initial position.
  • the button 101 can also return to the initial position under the action of the transmission part 117 .
  • the bottom shell 1 is further provided with movement limiting ribs 1132
  • the transmission part 117 is provided with movement limitation bosses 1174 .
  • the movement limiting rib 1132 extends through the circuit board 114 to the side of the circuit board 114 that is away from the bottom surface of the bottom case 113.
  • the circuit board 114 can be provided for passing through through holes, the movement limiting rib 1132 can limit the movement of the movement limitation boss 1174 and the transmission part 117 along the first reference direction and/or the second reference direction, for example, when moving, the movement limitation The rib 1132 can block the movement of the movement limiting boss 1174 .
  • the first reference direction is the direction from the pressing end to the non-pressing end of the key
  • the second reference direction is the direction from the non-pressing end to the pressing end of the key
  • the limit boss Through the cooperation of the limit boss and the limit rib, the limit can be realized with less processing difficulty.
  • the upper limit buckle 1133 is also provided on the bottom case 113 , and the upper limit buckle 1133 extends through the circuit board 114 to the bottom surface of the circuit board 114 and the bottom case 1 On the opposite side, the upper limit buckle 1133 is used to limit the movement of the transmission part 117 away from the circuit board 114 .
  • a limit snap fitting portion 1171 may be provided on the edge of the transmission component, and the upper limit snap 1133 can block the limit snap fit portion 1171 when the transmission component swings, thereby playing a limiting role.
  • the upper limit buckle 1133 can restrict the end of the transmission part 117 close to the non-pressing end to move away from the circuit board 114 .
  • the movement position of the transmission part 117 can be conveniently limited by the limit buckle and the moving limit rib 1132 .
  • the transmission part 117 mentioned above can be regarded as a rocker, and the scheme of using the support part to swing can have the advantages of easy processing and easy control of the size of the parts.
  • the transmission part 117 is connected to all the buttons 101, so that: when any at least one button 101 is pressed, All the transmission parts 117 can be pushed to change the position state.
  • the reset member 102 may be at least one of the following: a torsion spring, a shrapnel, and a spring.
  • the bottom shell 113 is provided with a torsion spring base 1134, and the torsion spring base 1134 passes through the circuit board 114 and extends to the bottom of the circuit board 114.
  • the torsion spring base 1134 is provided with a torsion spring installation shaft, the torsion spring is installed on the torsion spring installation shaft, and the torsion spring is also arranged on the transmission through a connecting rod contact.
  • the torsion spring connection portion 1173 of the component 117 is used to apply the reset force to the transmission component 117 through the connecting rod and the torsion spring connection portion 1173 .
  • the torsion spring base 1134 can also be provided with a torsion spring limiting portion, which can be used to limit the rotation position of the torsion spring.
  • the self-generating switch further includes a waterproof layer 118, and the waterproof layer 118 is arranged on the middle shell 119 and the between the circuit boards 114.
  • a surface of the waterproof layer 118 opposite to the middle case 119 can be attached to the middle case 119 .
  • the waterproof layer 118 can be provided with a switch button matching portion 1181, and the switch button matching portion 1181 protrudes from the side of the waterproof layer 118 that is away from the circuit board 114, and the middle shell 119
  • the switch button matching part 1181 passes through the button hole 1194
  • the micro switch 1101 extends into the switch button matching part 1181
  • the switch button matching part 1181 is along the button 101
  • the pressed direction is respectively connected to the button 101 and the micro switch 1101 .
  • the micro switch 1101 can be clicked through the switch key matching portion 1181 , thereby triggering the micro switch 1101 .
  • the waterproof layer 118 can also be provided with a matching part 1183 for the matching key, wherein the position of the matching part 1183 for the matching key can match the position of the matching key, and at the same time, can match the matching switch device of the matching circuit on the circuit board 114 , by pressing down the pairing button, the pairing switch device passing through the pairing button hole 1193 can be triggered through the pairing button matching part 1183, wherein, the structural relationship between the pairing switch device, the pairing button hole, the pairing button matching part and the pairing button can be referred to in The structural relationship between the micro switch 1101 , the button hole 1194 , the switch button matching part 1181 and the button 101 is understood.
  • the waterproof layer 118 can also be provided with a press fit part 1184 whose position can match with the press part accommodating structure 1195 of the middle shell 119 .
  • the pressing portion accommodating structure 1195 can be understood as a structure for accommodating the switch pressing portion 1172 when the switch pressing portion 1172 is lifted up.
  • the waterproof layer 118 can be made of waterproof silica gel.
  • the middle case 119 is provided with a light transmission hole 1192 in the middle case
  • the waterproof layer 118 is provided with a waterproof layer light transmission part 1182
  • the key 101 is provided with the light exit part
  • the light guide column It penetrates through the light transmission hole 1192 of the middle shell, and the two ends of the light guide column respectively extend to the light exit part and the light transmission part 1182 of the waterproof layer.
  • the position of the light-transmitting part 1182 of the waterproof layer and the light-emitting part match the position of the light-emitting module, which may refer to any matching method in which the positions are close.
  • the middle shell or the bottom shell is provided with a first shaft part 1191
  • the non-pressing end of the button 101 is provided with a second shaft part 1011
  • the first shaft part 1191 is matched with the second shaft part 1011
  • the button 101 can face or face away from the middle shell through the cooperation of the first shaft part 1191 and the second shaft part 1011 119 is pivoted
  • the middle shell 119 or the bottom shell 113 has a first buckle 1196 on one side of the pressing end
  • the pressing end of the button is provided with a second buckle 1013 .
  • the first buckle 1196 is docked with the second buckle 1013 to restrict the pressing end of the button 101 from moving away from the middle shell 119 ;
  • the first rotating shaft part 1191 is a rotating shaft
  • the second rotating shaft part 1011 is a shaft hole through which the corresponding rotating shaft passes.
  • the first rotating shaft part is a shaft hole
  • the second rotating shaft part is a rotating shaft passing through the corresponding shaft hole.
  • a pressing portion 1012 is further provided on the side of the button 101 facing the middle shell, and furthermore, the pressing portion 1012 can directly or indirectly press the switch pressing portion 1172 of the transmission component 117 .
  • a side of the button 101 facing the middle shell may also be provided with a switch pressing portion 1014, and the switch pressing portion 1014 is used to press correspondingly to the micro switch.
  • the waterproof layer 118 of silica gel is connected with the bottom case 113, and the middle case 119 is connected between the outer side of the waterproof layer 118 and the bottom case 113, thereby compressing the waterproof layer 118 (wherein, the waterproof layer 118 of silica gel can be connected with the bottom case 113).
  • the waterproof wall on the bottom case 1 adopts interference fit in structure) to realize the internal structure is fully sealed and waterproof, and finally the button 101 is assembled, and the button 101 can be assembled on the bottom case 1 or on the middle case 119 .
  • One end of the button 101 is a fixed end as a pivot, and the other end can perform pivotal reciprocating motion (press down and return), that is, the pressing end of the switch.
  • the self-generating switch involved in this embodiment can be directly pasted on the wall or other places with double-sided tape, and can also be installed in a traditional switch bottom box with screws.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种自发电开关及其处理方法、控制系统,其中的处理方法,包括:在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,所述处理器在产生并通过所述无线通讯模块向接收端发送对应的当前控制报文之前、之后或同时,还自所述存储器读取当前验证标识、更新所述当前验证标识,并在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器,其中,更新前后的验证标识是不同的。

Description

自发电开关及其处理方法、控制系统 技术领域
本发明涉及自发电开关领域,尤其涉及一种自发电开关及其处理方法、控制系统。
背景技术
无线开关,可理解为配置有无线通讯模块的开关,其中一种无线开关为自发电开关,在传统自发电开关中,其通常是通过射频通信模块对外通信的,例如,自发电开关可通过射频信号与各种接收端(例如灯具、墙壁开关等)通讯。
现有相关技术中,自发电开关实施控制时,将响应于对自发电开关的操控对外发出控制报文,然而,控制报文中的内容相对简单,通常仅包含描述按键、开关的信息,无法满足安全性的需求。
发明内容
本发明提供一种自发电开关及其处理方法、控制系统,以解决无法满足安全性需求的问题。
根据本发明的第一方面,提供了一种自发电开关的处理方法,所述自发电开关包括处理器、存储器、按键、发电机、复位部件、整流模块、储能模块、电压输出模块,以及无线通讯模块,所述无线通讯模块与所述存储器电连接所述处理器,所述发电机的感应部通过所述整流模块电连接储能模块,所述储能模块通过所述电压输出模块电连接所述无线通讯模块、所述处理器与所述存储器,所述复位部件能够与所述发电机的运动部传动,所述按键也能够直接或间接与所述发电机的运动部传动;
所述处理方法,包括:
若所述按键发生了下按的操控动作,则:所述弹性部件发生形变并产生克服所述形变的复位作用力,所述发电机的运动部直接或间接被所述按键驱动,使所述发电机产生第一感应电压,若所述按键发生了回弹的操控动作,则:所述弹性部件在所述复位作用力的作用下驱动所述发电机的运动部,使所述发电机产生第二感应电压;
所述整流模块将所述第一感应电压对应的第一电能和/或第二感应电压对应的第二电能存储于所述储能模块;所述储能模块将所存储的电能传输至所述电压输出模块,所述电压输出模块利用所接收到的电能向所述处理器、所述存储器、所述无线通讯模块提供所需的电压,使其上电;
在所述处理器、所述存储器与所述无线通讯模块上电后,所述处理器产生并通过所述无线通讯模块向接收端发送对应的当前控制报文;所述当前控制报文中记载了当前验证标识,以及当前操控信息;所述当前操控信息表征了以下至少之一:所述自发电开关、所述自发电开关当前接受到操控的按键、所述自发电开关当前所发生的操控动作;所述当前操控信息与所述接收端所需执行的至少一个控制事件相对应;
在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,所述处理器在产生并通过所述无线通讯模块向接收端发送对应的当前控制报文之前、之后或同时,还自所述存储器读取当前验证标识、更新所述当前验证标识,并在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器,其中,更新前后的验证标识是不同的。
根据本发明的第二方面,提供了一种自发电开关,包括处理器、存储器、按键、发电机、复位部件、整流模块、储能模块、电压输出模块,以及无线通讯模块,所述无线通讯模块与所述存储器电连接所述处理器,所述发电机的感应部通过所述整流模块电连接储 能模块,所述储能模块通过所述电压输出模块电连接所述无线通讯模块与所述处理器,所述复位部件能够与所述发电机的运动部传动,所述按键也能够直接或间接与所述发电机的运动部传动;
所述弹性部件用于:若所述按键发生了下按的操控动作,则:发生形变并产生克服所述形变的复位作用力;若所述按键发生了回弹的操控动作,则:在所述复位作用力的作用下驱动所述发电机的运动部;
所述发电机用于:若所述按键发生了下按的操控动作,则:所述发电机的运动部直接或间接被所述按键驱动,使所述发电机的感应部产生第一感应电压,若所述按键发生了回弹的操控动作,则所述发电机的运动部被所述弹性部件驱动,使所述发电机产生第二感应电压,
所述整流模块用于:将所述第一感应电压对应的第一电能和/或第二感应电压对应的第二电能存储于所述储能模块;
所述储能模块用于:将所存储的电能传输至所述电压输出模块;
所述电压输出模块用于:所述电压输出模块利用所接收到的电能向所述处理器、所述存储器、所述无线通讯模块提供所需的电压,使其上电;
所述处理器用于:
在所述处理器、所述存储器与所述无线通讯模块上电后,产生并通过所述无线通讯模块向接收端发送对应的当前控制报文;所述当前控制报文中记载了当前验证标识,以及当前操控信息;所述当前操控信息表征了以下至少之一:所述自发电开关、所述自发电开关当前接受到操控的按键、所述自发电开关当前所发生的操控动作;所述当前操控信息与所述接收端所需执行的至少一个控制事件相对应;
在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,在产生并通过所述无线通讯模块向接收端发送当前控制报文之前、之后或同时,还自所述存储器读取当前验证标识、更新所述当前验证标识,并在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器,其中,更新前后的验证标识是不同的。
根据本发明的第三方面,提供了一种控制系统,包括第二方面的自发电开关,以及所述接收端。
本发明提供的自发电开关及其处理方法、控制系统中,通过在自发电开关上报的控制报文中引入当前验证标识,可以当前验证标识(例如基于当前验证标识与历史验证标识的验证)作为执行控制事件的验证依据,避免执行复制报文的控制事件,实现了防复制攻击的效果。同时,通过当前验证标识,还可以为重复报文的滤除提供依据。
其中的复制报文,可理解为:攻击者先抓取一个合法的开关的报文,然后原封不动的发出来。针对于此,本发明实现了验证标识的更新,且更新前后的验证标识是不同的,此时,真实的报文中验证标识是会更新的,而复制报文中验证标识通常是重复不变的,进而,通过基于当前验证标识的验证,可有效验证出复制报文,进而避免执行复制报文的控制事件,保障安全性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明一实施例中控制系统的构造示意图;
图2是本发明一实施例中自发电开关的构造示意图一;
图3是本发明一实施例中自发电开关的构造示意图二;
图4是本发明一实施例中自发电开关的构造示意图三;
图5是本发明一实施例中整流模块的电路示意图;
图6是本发明一实施例中极性识别模块的电路示意图;
图7是本发明一实施例中感应部所输出的脉冲信号的波形示意图;
图8是本发明一实施例中第一存储器的连接示意图;
图9是本发明一实施例中电压输出模块的电路示意图一;
图10是本发明一实施例中电压输出模块的电路示意图二;
图11是本发明一实施例中自发电开关的处理方法的流程示意图一;
图12是本发明一实施例中自发电开关的处理方法的流程示意图二;
图13是本发明一实施例中自发电开关工作过程的流程示意图;
图14是本发明一实施例中收发数据包的原理示意图;
图15是本发明一实施例中报文的数据结构示意图一;
图16是本发明一实施例中报文的数据结构示意图二;
图17是本发明一实施例中接收端工作过程的流程示意图一;
图18是本发明一实施例中接收端工作过程的流程示意图二;
图19是本发明一实施例中自发电开关的结构示意图;
图20是本发明一实施例中自发电开关的部分结构示意图一;
图21是本发明一实施例中底壳的结构示意图;
图22是本发明一实施例中传动部件的结构示意图;
图23是本发明一实施例中自发电开关的部分结构示意图二;
图24是本发明一实施例中中壳的结构示意图;
图25是本发明一实施例中防水层的结构示意图;
图26是本发明一实施例中按键的结构示意图;
图27a与图27b是本发明一实施例中按键按压的作用原理示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
请参考图1,本发明实施例提供的控制系统,可以包括自发电开关1与接收端2,图中示意了一个自发电开关与一个接收端,在实际的控制系统中,自发电开关、接收端的数量均可以为多个,同时,自发电开关1与接收端2之间可以实现无线信号的传输,该无线信号可例如为蓝牙、射频、Wifi等。
所述自发电开关1,用于实施后文所涉及的处理方法,进而,后文对处理方法的相关 描述,可理解为是对自发电开关中软件和/或硬件工作过程、功能、具体实现方式的描述。
其中的接收端2,可以为任意能够被自发电开关操控的受控装置,或者连接于该受控装置的装置,具体举例中,接收端2可例如为墙壁开关、电子门铃、灯、自动窗帘、风扇等。其所接受的控制可例如但不限于:
控制接收端或其所连接的装置进入某种状态;例如打开或关闭墙壁开关、打开或关闭灯、按响门铃、控制风扇开始或停止转动、自动窗帘打开或关闭、打开或关闭接收端的指定功能等等;
控制接收端或其所连接的装置在两种状态之间切换;例如翻转(切换)墙壁开关的开关状态、翻转(切换)灯的开关状态、翻转(切换)风扇的开关状态、翻转(切换)自动窗帘的开关状态、翻转(切换)接收端指定功能的开关状态等等;
控制接收端或其所连接的装置变化工作参数;例如调节灯的亮度、调节风扇风量的大小、调节窗帘的开启程度等。
根据自发电开关1的应用领域变化,可任意变化施控与受控的具体内容,且均不脱离本发明实施例的范围。
同时,后文有关控制事件的描述也可参照以上内容理解。
本发明实施例中,请参考图2,自发电开关1包括处理器108、存储器107、按键101、发电机103、复位部件102、整流模块111、储能模块105、电压输出模块106,以及无线通讯模块109。
后文所涉及的电连接可以包含直接电连接的方式,也包含了间接电连接的方式。
发电机103能够在按键101被操控(例如下按和/或回弹)时发电,产生电能,该电能可用于直接或间接为处理器108、无线通讯模块109、存储器107等供电,其中,处理器108、无线通讯模块109与存储器107可以是分立的,也可以是集成在一起的,进而,若是集成在一起的,则:对处理器108、无线通讯模块109与存储器107的供电可以基于同一供电端实现。
其中,发电机103可以包括运动部1031与感应部1032。
运动部1031,可理解为能够被按键、复位部件等至少之一传动从而发生运动的部件或部件的组合,感应部1032,可理解为能够与运动部1031相作用,从而在运动部发生运动时感应产生电能的部件或部件的组合,本领域任意可基于运动而产生电能的结构,均可作为本发明实施例的一种可选方案。
具体举例中,发电机103中可配置有永磁部、导磁部与线圈部,线圈部可设于导磁部,进而,当永磁部与导磁部发生相对运动时,线圈部可产生感应电压。其中的线圈部可视作以上所提及的感应部1032,其中的永磁部或导磁部可视作以上所提及的运动部1031,即:部分举例中,永磁部发生运动,从而与按键、复位部件等直接、间接传动,另部分举例中,导磁部发生运动,从而与按键、复位部件等直接、间接传动。可见,感应部1032可能是随运动部1031一同运动的,也可能不随运动部1031一同运动。
所述无线通讯模块109与所述存储器107电连接所述处理器108,所述发电机103的感应部1032通过所述整流模块111电连接储能模块105,所述储能模块105通过所述电压输出模块106电连接所述无线通讯模块109、所述处理器108与所述存储器107(例如连接至无线通讯模块109、所述处理器108与所述存储器107的供电端),所述复位部件102(例如扭簧、弹片、拉簧等)能够与所述发电机103的运动部1031传动,所述按键101也能够直接或间接与所述发电机的运动部1031传动。
部分方案中,复位部件102可直接传动于运动部1031,另部分方案中,复位部件102也可传动于按键或其他部件,从而间接传动于运动部1031。
请参考图11,所述开关控制方法,包括:
S301:所述按键是否发生了下按的操控动作;
若是,则可实施步骤S302:所述复位部件发生形变并产生克服所述形变的复位作用力,所述发电机的运动部直接或间接被所述按键驱动,使所述发电机产生第一感应电压;
若否,则可返回步骤S301继续判断是否发生了下按的操控动作。
在部分方案中,步骤S302之后可包括:S303:所述整流模块将所述第一感应电压对应的第一电能存储于所述储能模块。
请参考图11,所述开关控制方法,也可包括:
S304:所述按键是否发生了回弹的操控动作;
若是,则可实施步骤S305:所述复位部件在所述复位作用力的作用下驱动所述发电机的运动部,使所述发电机产生第二感应电压;
在部分方案中,步骤S305之后可包括:S306:所述整流模块将所述第二感应电压对应的第二电能存储于所述储能模块。
具体举例中,可仅存储和/或使用第一电能,也可仅存储和/或使用第二电能。
在步骤S303和/或步骤S306之后,可包括:
S307:所述储能模块将所存储的电能传输至所述电压输出模块,所述电压输出模块利用所接收到的电能向所述处理器、所述存储器、所述无线通讯模块提供所需的电压,使其上电;
S308:在所述处理器、所述存储器与所述无线通讯模块上电后,所述处理器产生并通过所述无线通讯模块向接收端发送对应的当前控制报文;
其中,所述当前控制报文记载了当前操控信息与所述当前验证标识,以使得:所述接收端验证所述当前控制报文中的当前验证标识与所存储的历史验证标识的关系是否匹配于预设的当前验证标识的变换规则,并在所述关系匹配于所述变换规则时,执行所述当前操控信息对应的控制事件,所述历史验证标识是根据所述自发电开关之前发给所述接收端的控制报文或配对报文中所记载的验证标识确定的。
所述当前操控信息表征了以下至少之一:所述自发电开关;所述自发电开关当前接受到操控的按键;所述自发电开关中按键当前所接受到的操控动作。
所述处理器在产生并通过所述无线通讯模块向接收端发送对应的当前控制报文之前、之后或同时(即实施步骤S308之前、之后或同时),还可包括:
S309:在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,自所述存储器读取当前验证标识、更新所述当前验证标识;
其中,更新所述当前验证标识,具体可以包括:以预设的变换规则将当前验证标识自第一数值变换更新为第二数值;所述第一数值不同于所述第二数值。
可见,由于下按的操控动作与回弹的操控动作是呈对、连续的,进而,下按之后,通常必然会发生回弹。进而,在以上方案中,可仅在发生下按的操控动作之后才更新当前验证标识,也可仅在发生回弹的操控动作之后才更新当前验证标识,还可既在下按的操控动作之后更新当前验证标识,又在回弹的操控动作之后更新当前验证标识。
请参考图11,所述处理方法,还可包括:
S310:在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器。
对应于以上步骤S301至步骤S310,自发电开关中各部件的功能可参照以下内容理解。
所述复位部件102用于:若所述按键101发生了下按的操控动作,则:发生形变并产生克服所述形变的复位作用力;若所述按键101发生了回弹的操控动作,则:在所述复位作用力的作用下驱动所述发电机103的运动部1031。
所述发电机103用于:若所述按键101发生了下按的操控动作,则:所述发电机103的运动部1031直接或间接被所述按键101驱动,使所述发电机103的感应部1032产生第一感应电压,若所述按键101发生了回弹的操控动作,则所述发电机103的运动部1031 被所述复位部件102驱动,使所述发电机产生第二感应电压,
所述整流模块111用于:将所述第一感应电压对应的第一电能和/或第二感应电压对应的第二电能存储于所述储能模块;
所述储能模块105用于:将所存储的电能传输至所述电压输出模块106;
所述电压输出模块106用于:利用所接收到的电能(第一电能和/或第二电能)向所述处理器108、所述存储器107、所述无线通讯模块109提供所需的电压,使其上电;
所述处理器108用于:
在所述处理器108、所述存储器107与所述无线通讯模块109上电后,产生并通过所述无线通讯模块109向接收端2发送对应的当前控制报文;
在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,在产生并通过所述无线通讯模块向接收端发送当前控制报文之前、之后或同时,还自所述存储器读取当前验证标识,更新所述当前验证标识(例如以预设的变换规则将当前验证标识自第一数值变换更新为第二数值),并在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器。
其中,若自发电开关设有复位部件,则:下按的操控动作可以指下按按键的操控,回弹的操控动作可以指撤去下按的作用力从而使按键回弹的操控。
部分举例中,在报文(例如当前控制报文或配对报文)中,表征自发电开关的信息、表征按键的信息、表征操控动作的信息中至少之二可配置为整合在一起的一条信息,例如,可对应于每种按键的每个操控动作配置一种预定义的字符串,从而利用该字符串作为(或表征出)当前操控信息,进而,通过读取该字符串,接收端可以获悉哪个按键发生了什么操控动作。
其他举例中,也可分别为表征自发电开关的信息、表征按键的信息、表征操控动作的信息分别配置相应的字符或字符串来作为当前操控信息。
表征自发电开关的信息可以是表征其为哪个自发电开关的信息,也可以是表征其为哪类自发电开关(例如自发电开关的型号、批次、品牌等至少之一)的信息。
具体举例中,当前操控信息可以包括开关标识,进而,开关标识可用于表征所述自发电开关,当前操控信息还可包括键值,进而利用键值表征所述自发电开关当前接受到操控的按键,以及所述自发电开关中按键当前所接受到的操控动作。
此外,当前操控信息,可理解为接收端能据此判断控制事件的信息,进而,若表征自发电开关的信息(又或者表征按键、操控动作的信息)并未用于判断控制事件,则:即便该信息写入了报文,也可不将其视作当前操控信息。
其中的验证标识,可以为任意可适于实现验证的字符或字符的组合,当前验证标识,可理解为是自发电开关当前发出的,与之对应的,历史验证标识可理解为在自发电开关发出之前接收端已存储的。
部分举例中,历史验证标识可以是自发电开关上次发生操控动作时发至接收端(随控制报文或配对报文发出的)并被接收端存储的当前验证标识,或根据其确定的,另部分举例时,历史验证标识也可以是自发电开关上次发生特定操控动作(例如下按的操控动作或回弹的操控动作)时发至接收端(随控制报文或配对报文发出的)并被接收端存储的当前验证标识,或根据其确定的。
由于验证标识为具体的数值,故而,其也可描述为序列号,进而,本发明实施例的举例中,对序列号的描述,均可视作是对验证标识的描述。
其中的无线通讯模块109,可以为任意能够实现无线通讯的电路模块,例如可以包括以下至少之一:射频模块、蓝牙模块、Wifi模块等。
对应于以上步骤S301至步骤S310,以及自发电开关各部件的相应功能,接收端可用于:
接收当前控制报文:;
所述当前控制报文是自发电开关经前文所涉及的开关控制方法发出的,或者前文所涉及的自发电开关发出的;
验证所述当前验证标识与所存储的历史验证标识的关系是否匹配于所述变换规则;
在所述关系匹配于所述变换规则时,执行所述当前操控信息对应的控制事件。
若所述关系不匹配于所述变换规则,则可丢弃对应的报文(例如当前控制报文);其中,对当前控制报文的丢弃,可理解为不基于当前控制报文做处理,例如:不执行当前控制报文对应的控制事件,也不基于当前控制报文对历史验证标识等信息进行更新变化。
以上方案中,通过在自发电开关与接收端的交互过程中引入当前验证标识,可以当前验证标识与历史验证标识的匹配验证作为执行控制事件的基础,避免执行复制报文的控制事件,实现了防复制攻击的效果。同时,通过当前验证标识与历史验证标识是否匹配于变换规则的匹配验证,还可以为重复报文的滤除提供依据。
其中,真实的报文中验证标识是变换的,而复制报文中验证标识通常是重复的,进而,通过基于历史验证标识、变换规则的验证,可有效验证出复制报文(其中验证标识与历史验证标识的关系通常不匹配于变换规则),进而避免执行复制报文的控制动作,保障安全性。
此外,历史验证标识为过去的当前验证标识时,可保证:验证标识的出处均源自于自发电开关,进而可有效保障验证的准确性与安全性。
其中一种实施方式中,请参考图3与图4,所述自发电开关1还包括极性识别模块110;所述极性识别模块110电连接所述发电机103(例如其感应部1032)与所述处理器108。
所述处理器自所述存储器读取当前验证标识、更新所述当前验证标识之前,还包括:
在所述处理器、所述存储器与所述无线通讯模块上电后,所述处理器通过所述极性识别模块识别按键当前所发生的操控动作,并确定当前所发生的操控动作为目标操控动作(即处理器108还用于:通过所述极性识别模块110识别按键当前所发生的操控动作,并确定当前所发生的操控动作为目标操控动作),所述目标操控动作是下按的操控动作与回弹的操控动作中择一指定的。
可见,在以上方案中,实现了“仅在一次完整的下按与回弹之后才发生验证标识的变换”的方案。
由于无线的通信有时会存在丢包的可能,假如下按所发的数据包(即下按后发出的控制报文的数据包)被丢失了,则回弹所发的数据包(即回弹后发出的控制报文的数据包)可以作为补救,接收端收到回弹的数据包之后还是可以进行响应动作。
针对于此,接收端可结合验证标识,以及控制报文所表征的操控动作来判断是否执行控制事件,例如:接收端可根据序列号(即验证标识)来判断,如果是按下去的数据包(即当前操控信息为下按操控信息),则一定响应,从而执行对应的控制事件;如果是回弹的数据包(即当前操控信息为回弹操控信息),则只有当之前没有收到同一个序列号(即验证标识)的下按的数据包的情况下才响应从而执行对应的控制事件。
可见,若下按、回弹对应的控制事件相同,则:“仅在一次完整的下按与回弹之后才发生验证标识的变换”的方案可有助于避免数据包丢失而影响控制事件的执行,保障了相应控制事件可以有效地被执行。
同时,在对接收端进行合理的配置之后,还可有助于避免指向同一控制事件的控制报文被重复执行,例如:利用自发电开关控制一个灯(即接收器为灯或连接灯)时,若所控制的控制事件为:灯状态的翻转,则:如果下按和回弹都会响应,则下按的时候打开了灯,然后回弹之后就又会关闭灯。其中的合理配置,可例如:若自发电开关在下按时变换当前验证标识,则:接收端可在接收到控制报文时就将其中的当前验证标识更新写入,作为新 的历史验证标识。
在可兼顾实现以上效果的同时,即便某些接收端中下按、回弹对应的控制事件不同,在对接收端进行合理配置之后,也可保障不同控制事件的实现。其中的合理配置,可例如:若自发电开关在下按时变换当前验证标识,则:接收端可在接收到回弹时的控制报文时才将其中的验证标识写入,作为新的历史验证标识。
可见,采用验证标识的同一套更新条件(即在当前所发生的操控为目标操控动作时才变换当前验证标识),既可满足下按、回弹对应同一控制事件的接收端的需求,也可兼顾下按、回弹对应不同控制事件的接收端的需求。进而,有效保障了自发电开关对各种可能的控制需求的兼容性,从而提高了控制系统所实现控制的多样性。
此外,“仅在一次完整的下按与回弹之后才发生验证标识的变换”的方案还可起到节约电能的作用。例如:若仅在回弹的时候更新序列号(即当前验证标识),则:下按的时候就不需要更新序列号(即当前验证标识)了,特别是可以节约将更新后的序列号写会存储器中的耗能。
并且,当下按的操控动作、回弹的操控动作对应的序列号(即当前验证标识)相同时,还可使得接收端在根据序列号进行报文去重时更简单。
进一步的一种举例中,所述目标操控动作为回弹的操控动作,其他举例中,目标操控动作也可以为下按的操控动作。
当用户下按自发电开关的按键后,通常会希望立即获得控制效果的反馈。进而,若仅在回弹时才更新序列号(即目标操控动作为回弹的操控动作),这样下压的时候的全部电能都可以用于其他的任务,特别是发送信号,不用花费电能用于更新序列号。
其中一种实施方式中,请参考图3,所述自发电开关1还包括按键识别模块110,所述按键识别模块110电连接所述处理器;
请参考图12,所述处理器产生当前控制报文之前,还包括:
S311:所述处理器自所述存储器读取表征所述自发电开关的开关标识;
S312:当前所发生的操控动作是否为下按的操控动作;
若步骤S312的判断结果为是,则可实施步骤S313:所述处理器通过所述按键识别模块获取当前按键信息,并将所述当前按键信息更新于所述存储器;
若步骤S312的判断结果为否,则可实施步骤S314:当前所发生的操控动作是否为回弹的操控动作;
若步骤S314的判断结果为是,则可实施步骤S315:所述处理器自所述存储器获取所存储的当前按键信息;
若步骤S314的判断结果为否,则可返回步骤S312。
基于以上开关标识、操控动作信息所述当前操控信息是基于所述开关标识、所述操控动作信息,以及所获取到的当前按键信息确定的。
对应的,处理器108在产生当前控制报文之前,还可用于:
自所述存储器读取表征所述自发电开关的开关标识;
若当前所发生的操控动作为下按的操控动作,则:通过所述按键识别模块获取当前按键信息,并将所述当前按键信息更新于所述存储器;
若当前所发生的操控动作为回弹的操控动作,则:自所述存储器获取所存储的当前按键信息;
所述当前操控信息是基于所述开关标识、当前所发生的操控动作,以及所获取到的当前按键信息确定的,例如,可将开关标识写入当前控制报文,也可基于操控动作与当前按键信息确定键值,并将键值写入当前控制报文。
进一步的一种举例中,请参考图4,按键识别模块110可以包括微动开关1101,微动开关1101与按键101的数量可以为如图2所示的一个,也可以为如图3、图4所示 的多个,各微动开关1101与各按键101之间是一一对应的,微动开关1101能够在对应按键被下按时被触动,进而反馈信号至处理器108,此时,处理器108可读取所反馈的信号确定表征该按键的按键信息,从而获悉当前被下按的按键为哪个按键。
其中一种实施方式中,请参考图4与图6,所述极性识别模块112包括下按识别部1121与回弹识别部1122;所述下按识别部1121分别电连接所述发电机103的感应部1032与所述处理器108,所述回弹识别部1122分别电连接所述发电机103的感应部1032与所述处理器108。
所述处理器通过所述极性识别模块识别按键当前所发生的操控动作,包括:
若所述处理器接收到所述下按识别部发出的指定信号,则确定当前所发生的操控动作为下按的操控动作;其中,所述下按识别部仅在所述发电机产生所述第一感应电压时才向所述处理器发送所述指定信号;
若所述处理器接收到所述回弹识别部发出的所述指定信号,则确定当前所发生的操控动作为下按的操控动作,其中,所述回弹识别部仅在所述发电机产生所述第二感应电压时才向所述处理器发送所述指定信号。
对应的,处理器108在通过所述极性识别模块识别按键当前所发生的操控动作时,具体用于:
若接收到所述下按识别部1121发出的指定信号,则确定当前所发生的操控动作为下按的操控动作;其中,所述下按识别部1121仅在所述发电机103产生所述第一感应电压时才向所述处理器108发送所述指定信号;
若接收到所述回弹识别部1122发出的所述指定信号,则确定当前所发生的操控动作为下按的操控动作,其中,所述回弹识别部1122仅在所述发电机103产生所述第二感应电压时才向所述处理器108发送所述指定信号。
其中的指定信号,可例如是以下任意之一:高电平信号、高脉冲信号、低电平信号、低脉冲信号。
下按时感应部所发出的脉冲信号,以及回弹时感应部所发出的脉冲信号,均可参照图7所显示的波形理解。在图7中,横坐标为时间,纵坐标为电压。
进一步举例中,请参考图6,下按识别部1121可以包括:下按识别第一二极管D21、下按识别第二二极管D22、下按识别第一电阻R21、下按识别第二电阻R22,以及下按识别电容C21;
下按识别第一二极管D21的正极电连接感应部的第一输出端,下按识别第一二极管D21的负极分别电连接下按识别电容C21的第一端,以及下按识别第一电阻R21的第一端,下按识别电容C21的第二端接地,下按识别第二电阻R22的第一端、下按识别第二二极管D22的负极电连接处理器108的第一接收端(例如I/O口),下按识别第二二极管D22的正极、下按识别第二电阻R22的第二端接地。
进一步举例中,请参考图6,回弹识别部1122可以包括:回弹识别第一二极管D23、回弹识别第二二极管D24、回弹识别第一电阻R23、回弹识别第二电阻R24,以及回弹识别电容C22;
回弹识别第一二极管D23的正极电连接感应部的第二输出端,回弹识别第一二极管D23的负极分别电连接回弹识别电容C22的第一端,以及回弹识别第一电阻R23的第一端,回弹识别电容C22的第二端接地,回弹识别第二电阻R24的第一端、回弹识别第二二极管D24的负极电连接处理器108的第二接收端(例如I/O口),回弹识别第二二极管D24的正极、回弹识别第二电阻R24的第二端接地。
发电机在进行下按或回弹的时候,输出端可分别产生一个正脉冲。正脉冲对应的储能电容(即下按识别电容C21或回弹识别电容C22)将得到充电,进而对处理器的接收端输出一个正脉冲。而发电机负脉冲的电容不会被充电,同时由于二极管的存在,正脉冲对 应的电容的电也不会流向负脉冲对应的电容,因此负脉冲对应的电容不会向处理器输出脉冲信号或高电平信号。处理器可检测电阻分压产生的电平进而进行相应的动作。
其中,下按识别第一二极管D21、回弹识别第一二极管D23可以是隔离的二极管,例如可采用型号为RB551V的二极管。下按识别第二二极管D22、回弹识别第二二极管D24可作为稳压二极管,例如可以为3.3V的稳压二级管,具体可选用型号为MMSZ5226BS的稳压二级管,最大功耗200mW,反向漏电流25uA。
根据分压的阻值选择,发电机的最高电压需要达到U=3.5*5/2=8.75V才会达到IO口的最高承受电压3.5V,发电机通常可满足该要求。
本发明实施例中,可以仅采用下按识别部,也可仅采用回弹识别部,例如,如果自发电开关发射报文的时间很短,每次下按后很快就发送完成并将电量耗尽,则开关可以只需要一个识别部(例如下按识别部或回弹识别部)即可。比如:只有一个下按识别部时,开关下压时产生一个高电平,处理器以此识别到是下按。当开关回弹时,处理器则检测不到高电平,此时也可认为是回弹。
但对于部分自发电开关(例如无线通讯模块采用蓝牙模块的自发电开关)而言,由于每次发送持续时间较长,可能在用户释放开关的时候,按压的报文还没有发送完成,此时处理器还处于工作状态,如果没有回弹识别部输出一个高电平,则处理器无从知道开关回弹了。因此,需要两个独立的识别部,来识别下按和回弹,以便处理器检测到对应的IO口出现高电平或正脉冲,则认为出现了相应的下压或回弹。可见,在该方案中,可以不仅仅在“上电”瞬间去检测极性识别的IO口判断是下压还是回弹。
其中一种实施方式中,请参考图4,所述存储器107包括第一存储器1071与第二存储器1072,所述当前验证标识更新存储于所述第一存储器1071;所述第一存储器1071与存储程序的所述第二存储器1072为不同的存储器,所述第一存储器1071为掉电后不丢失数据的存储器。
其中,所述第一存储器1071中所更新存储的当前验证标识与所述当前操控报文中所记载的当前验证标识相同。
进一步的方案中,所述第一存储器1071为能够按一个或多个字节为单位擦除、写入、读取数据的存储器,其中,单个字节的写入、读取时间不超过10ms,消耗的能量不超过300uJ。例如,所述第一存储器1071包括Flash存储器和/或铁电存储器。
此外,所述第一存储器还存储有当前按键信息,所述当前按键信息表征了所述自发电开关最近一次发生下按动作的按键;所述当前按键信息所表征的按键与所述当前操控信息所表征的按键相同。
其中,第一存储器1071可以不选择常规的FLASH,这是因为,常规的FALSH必须要以扇区为单位擦除(写入),导致其写入所需电量太多,而发电机可能无法支撑。反之,选择EEPROM、铁电存储器等存储器时,可有效避免发电机电量难以支撑的情况。
具体举例中,第一存储器1071可以使用24C02,通过IIC总线与处理器连接。以图8为例,第一存储器1071的电源(VDD-EE)通过二极管D71与处理器的电源VDD隔离,以便使得在必要的时候比如在生产阶段烧录数据到EEPROM中时,处理器108为未上电状态,使得EEPROM与烧录工具的IIC通信不受处理单元的IIC引脚的影响。
其中,用于特别地存储:(1)当前验证标识;(2)当前按键信息。
在工作时,按下开关时,可先从第一存储器中读取验证标识,然后进行更新(例如自增操作),将更新后的当前验证标识填入报文中发送,然后将自更新后的当前验证标识重新写回第一存储器,之后电量将被耗尽,处理器及存储器均会“掉电”死机。
开关在被下按和/或回弹时均会发送当前按键信息(表征了哪个按键被按下&释放),但是,由于自发电开关的结构限制,释放开关时虽然发电机会发电,但是用于检测键位的微动开关已经被松开,无法由此识别是哪个按键在动作,因此,设置第一存储器(即采用 两个存储器),在开关被下按时,将此时的当前按键信息写入第一存储器;回弹时,虽然无法从微动开关的状态来读取当前按键信息,但是可以从第一存储器中去读取之前的按键信息作为当前按键信息,使得回弹的时候的报文也携带键值,由此使得接收端可以收到报文的概率加倍,提高了可靠性。
此外,第一存储器1071的SCL端可经电阻R72连接处理器的VDD-EE,第一存储器1071的SDA端可经电阻R71连接处理器的VDD-EE。
其中一种实施方式中,请参考图4与图5,所述整流模块111包括第一整流部1111与第二整流部1112;所述第一整流部1111电连接于所述发电机103的感应部1032与所述储能模块105,所述第二整流部1112电连接于所述发电机103的感应部1032与所述储能模块105。
所述整流模块将所述第一感应电压对应的第一电能和第二感应电压对应的第二电能存储于所述储能模块,包括:
所述第一整流部对所述第一感应电压进行整流,并将对应的第一电能存储于所述储能模块;
所述第二整流部对所述第二感应电压进行整流,并将对应的第二电能存储于所述储能模块。
对应的,整流模块111在将所述第一感应电压对应的第一电能和第二感应电压对应的第二电能存储于所述储能模块时,具体用于:
所述第一整流部1111对所述第一感应电压进行整流,并将对应的第一电能存储于所述储能模块;
所述第二整流部1112对所述第二感应电压进行整流,并将对应的第二电能存储于所述储能模块。
进一步的举例中,请参考图5,第一整流部1111包括第一整流二极管D11、第二整流二极管D12以及第一整流电阻R11,第二整流部1112包括第三整流二极管D13、第四整流二极管D14以及第一整流电阻R12。
第一整流二极管D11的负极、第二整流二极管D12的负极可分别电连接感应部的第一输出端与第二输出端,第一整流二极管D11的正极、第二整流二极管D12的正极可接地,同时还可连接第一整流电阻R11的第一端,第一整流电阻R11的第二端连接第二输出端;
第三整流二极管D13的正极、第四整流二极管D14的正极可分别电连接感应部的第一输出端与第二输出端,第三整流二极管D13的负极、第四整流二极管D14的负极可接地,同时还可连接第二整流电阻R12的第一端,第二整流电阻R12的第二端连接第一输出端。
以上方案中,第三整流二极管D13与第四整流二极管D14组成正脉冲的整流部,第一整流二极管D11与第二整流二极管D12组成负脉冲的整流部。这样在发电机下压和复位的时候,都可以通过整流装置将电能传到储能模块105中,实现无线开关下压和复位时都可以发送信号。
其中一种实施方式中,电压输出模块106可以包括:控制器1061、储能电容C61与续流单元(例如包括续流电感L61);
所述控制器1061的输入侧电连接所述储能模块,同时,控制器1061使能端可连接储能模块与电容C62的第一端,电容C62的第二端可接地,所述控制器1061的输出侧电连接所述续流单元(例如续流电感L61)的第一端,所述续流单元(例如续流电感L61)的第二端直接或间接电连接所述处理器、无线通讯模块存储器中至少之一,所述储能电容C61电连接于所述续流单元(例如续流电感L61)的第二端与地之间;所述控制器1061被配置为能够控制其输入侧与输出侧之间的导通与关断,并通过调节通断的切换频率,以 及导通或关断的时长,调节经所述续流单元与所述储能电容所输出的电压。
其中,电压输出模块106还可包含第一反馈电阻R61与第二反馈电阻R62,用以检测输出电压,反馈至控制器1061内部。
所述控制器1061内可集成有PWM生成单元,根据反馈电压,调节输出的脉冲的宽度或频率,控制内部或外部的开关管,间隙性的给输出电感充电,达到稳压的目的。
部分举例中,储能模块的输出端与电压输出模块的输出端之间(即VDD端与VIN端)之间可设有电阻R63,VIN端与地之间可设有并联的电容C63与稳压二极管D61。
其中一种实施方式中,所述变换规则,包括以下至少之一:
在所述第一数值的基础上累加一个第一参考数值,得到所述第二数值;
在所述第一数值的基础上累减一个第二参考数值,得到所述第二数值;
在所述第一数值的基础上乘上一个第三参考数值,得到所述第二数值;
在所述第一数值的基础上除以一个第四参考数值,得到所述第二数值。
其中的累加、累减、乘上、除以等计算,可采用十进制的计算,也可采用二进制或其他进制的计算。其中的第一参考数值、第二参考数值、第三参考数值与第四参考数值可以是固定的值,也可以是变化的数值,其符号通常是一致且不为零的,例如为正数。
以累加的第一参考数值为例,累加所采用的第一参考数值可以是在一定范围内变化的正数,进一步举例中,所累加的数值可以是呈一定规律变化的,例如:若以累加1、累加2、累加3为循环而变化,则:第k次变换时,通过累加1实现,第k+1次变换时,通过累加2实现,第k+2次变换时,通过累加3实现,第k+3次变换时,再次通过累加1实现。
对应于以上各种情况,则有:
若所述变换规则为:在所述第一数值的基础上累加一个第一参考数值,得到所述第二数值,则:接收端验证当前验证标识与历史验证标识是否匹配时可验证所述当前验证标识是否大于所述历史验证标识,或者:验证所述当前验证标识是否大于所述历史验证标识,且两者的差值匹配于所述第一参考数值;
若所述变换规则为:在所述第一数值的基础上累减一个第二参考数值,得到所述第二数值;则:接收端验证当前验证标识与历史验证标识是否匹配时可验证所述当前验证标识是否小于所述历史验证标识,或者:验证所述当前验证标识是否小于所述历史验证标识,且两者的差值匹配于所述第二参考数值;
若所述变换规则为:在所述第一数值的基础上乘上一个第三参考数值,得到所述第二数值;则:接收端验证当前验证标识与历史验证标识是否匹配时可验证所述当前验证标识是否大于所述历史验证标识,或者:验证所述当前验证标识是否大于所述历史验证标识,且两者的比值匹配于所述第三参考数值;
若所述变换规则为:在所述第一数值的基础上除以一个第四参考数值,得到所述第二数值;则:接收端验证当前验证标识与历史验证标识是否匹配时,可验证所述当前验证标识是否小于所述历史验证标识,或者:验证所述当前验证标识是否小于所述历史验证标识,且两者的比值匹配于所述第四参考数值。
以上方案中,通过差值与第一数值、第二数值的比对,以及比值与第三数值、第四数值的比对,不仅可以验证当前验证标识与历史验证标识相比是否变大或变小,还可验证变化的幅度,进而,可应对攻击者可以利用比当前数值大(或小)的数值进行穷尽攻击,进一步提高安全性。
其中,差值与第一参考数值、第二参考数值的匹配,可理解为相同,或差距小于一定阈值,比值与第三参考数值、第四参考数值的匹配,可理解为相同,或差距小于一定阈值。
请参考图13,在一种举例中,自发电开关中携带序列号(即验证标识),每次按压 时序列号自增(或自减),一个完整的下按+回弹操控后,序列号才自增一次;报文中携带表征是下按/弹起的信息(可理解为操控信息可表征出操控动作)。
具体的,每次自发电开关被下按后都会回弹,发电机在下按、回弹时都会动作发电,从而给后端电路(例如处理器、无线通讯模块、存储器等)供电。后端电路通过极性识别模块可识别是下按的操控动作还是回弹的操控动作。
如果是下按的操控动作,则从存储器中读取序列号(即所存储的验证标识),然后序列号自增(其可理解为所述变换),然后读取按键信息,生成控制报文(其可对应于步骤S308)。再将序列号、按键信息写回存储器,进而可用于回弹的时候读取用,然后发送报文(其可对应于步骤S310、S313)。其中,写回存储器和发送报文的顺序可以互换。
如果是回弹操控,则直接从存储器中读取序列号,不自增(即无需实施所述变换),同时按键信息也是直接从存储器中读取(而不是去读取微动开关的反馈信号)。
其中一种实施方式中,所述当前控制报文还包括签名信息,所述签名信息是基于第一密钥计算出来的,且所述签名信息随所述当前验证标识的变化而变化;
所述签名信息能够被所述接收端通过第二密钥校验,所述第一密钥与所述第二密钥相匹配。
其中的密钥可以是固定不变的,也可以通过某种方法刷新变化,刷新变化之后自发电开关和接收端重新同步。例如:密钥可基于时间为自变量的函数值变化,第一密钥对应的函数关系与第二密钥对应的函数关系相适配。
一种具体的举例中,密钥可以为一串保密的数据,其中,可基于明文和密钥组合在一起后,通过预设的算法(例如AES算法)计算形成签名信息。其中的明文可例如控制报文的至少部分内容,其中可以含验证标识,但不含签名。
例如:在自发电开关,处理器可利用第一密钥对所需发出的当前控制报文的有效载荷部中除签名字段之外的其余字段的内容进行加密,得到签名信息,在接收端,接收端可利用第二密钥对所接收到的当前控制报文的有效载荷部中除签名字段之外的其余字段的内容进行加密,得到签名信息,接收端可利用算出来的签名信息对当前控制报文中记载的签名信息进行校验。
此外,第一密钥和第二密钥可以是相同的,其他举例中,两者也可以是不同的。
通过签名信息可实现防伪造的功能,保障安全性。
为了便于说明签名信息与验证标识(例如序列号)的作用,以下先对几个概念进行理清:
复制攻击:
可理解为:攻击者先抓取一个合法的开关的报文,然后原封不动的发出来。通过验证标识的使用,可有效对防复制攻击,例如:接收端会存储上一次的收到的报文的序列号(即验证标识),收到新的报文之后,即使校验签名信息合法,也要继续核对序列号:不允许是之前下按或回弹时已经收到过的序列号,只能是比之前的大的序列号且落在一个窗口内(全部,或一个足够大的滑动窗口)。
伪造攻击:
可理解为:攻击者可操作一次真实的可发出控制报文的设备(例如自发电开关),然后主动将序列号(如果序列号是明文)加1,重新构造报文。
通过签名信息,可有效防止伪造攻击,(如果序列号是明文)签名信息是前面的报文内容通过密钥计算出来的。自发电开关用密钥加密,接收端用密钥也计算一遍,如果对得上,才会认为这个发射端的报文是合法的。
在使用验证标识(例如序列号)与签名信息时,可例如:
配对过程中,接收端和自发电开关同步序列号;配对过程可以不验证序列号,可以选择依然校验签名信息,也就是配对过程只考察防伪造,不考察防复制。当然,也可以连签 名信息都校验;
正常工作时,一方面校验签名信息,另一方面验证序列号,只允许比之前的序列号大(或小)。如果要进一步严格验证,则要求序列号比之前的序列号大且落在一个窗口内(该窗口可体现为例如前文提到的第一参考数值、第二参考数值、第三参考数值、第四参考数值)。基于窗口的验证可有效应对穷尽攻击,例如:如果不要求窗口的话,攻击者可以利用比当前序列号大的序列号进行穷尽攻击。
其中一种实施方式中,验证标识(例如序列号)本身在发送之前也经过转换,攻击者无法获得当前的序列号。进而:所述当前控制报文中所记载的当前验证标识是转换后的当前验证标识,其中转换的方式为第一数据转换方式,即:所述当前控制报文中所记载的当前验证标识是经第一数据转换方式转换后的当前验证标识;
所述接收端所验证的当前验证标识是反向转换所述转换后的当前验证标识而得到的,其中反向转换的方式为第二数据转换方式,所述第一数据转换方式与所述第二数据转换方式为相反的数据转换方式,即:所述接收端所验证的当前验证标识是经第二数据转换方式对所述转换后的当前验证标识进行反向转换后得到的。
其中的第一数据转换方式与第二数据转换方式为相反的转换方式,不论采用何种转换方式,均不脱离本发明实施例的范围。
一种具体的举例中,请参考图17,接收端可以根据“ID—序列号”来查重;其中的ID可理解为设备商标识(对应于图15、图16中的设备商ID),对于特定ID,收到报文之后,将这个报文的序列号存储起来。下次收到相同ID的报文之后,将序列号(即当前验证标识)与之前的比对,如果与历史值(即历史验证标识)相同,则认为是重复的报文将其丢弃;如果比历史值新,则认为是新报文,进行后续的处理。
具体的,收到报文之后,先根据报文格式做基本的报文合法性判断。然后,提取其中的序列号;将序列号与历史值比对(即比对当前验证标识与历史验证标识,以进行验证);如果大于历史值,执行相应控制动作(即控制事件),同时将新的序列号写入历史值备用;如果不大于历史值,则认为是重复的序列号,将其丢弃。
其中一种实施方式中,所述当前控制报文是所述自发电开关通过蓝牙发送的,进而,无线通讯模块即为蓝牙模块,以下对采用蓝牙进行通讯时的一种发包、扫描接收数据包的方式进行说明。
其中,所述接收端是根据预设的唤醒休眠周期接收数据包的(也可理解为是根据唤醒睡眠周期控制接收端的数据包接收功能的唤醒与休眠),具体举例中,接收端本身可以是根据唤醒睡眠周期唤醒与休眠的,所述唤醒休眠周期包括交替的唤醒时段与休眠时段,即:唤醒时段经过后即进入休眠时段,休眠时段经过后即进入唤醒时段,如此重复循环,且所述接收端仅在所述唤醒时段接收数据包。
在图14中,接收扫描的波形为接收端接收扫描数据包的示意波形,其中唤醒时段可表征为Ton,休眠时段可表征为Toff,发包的波形为自发电开关发出数据包的示意波形,其中凸起的波形即为可视作一个数据包的发送时段。
步骤S308中,通过无线通讯模块向接收端发送对应的当前控制报文,具体包括:
通过蓝牙依次对外广播N组数据包,以使得:所述接收端在唤醒时段抓取到至少一个数据包,其中,每组数据包均包括多个数据包,每个数据包均包含所述当前控制报文;所述N组数据包中相邻数据包的广播间隔,匹配于所述接收端的唤醒休眠周期,其中,N≥2。
对应的,处理器在通过无线通讯模块向接收端发送对应的当前控制报文时,具体用于:
通过蓝牙依次对外广播N组数据包,以使得:所述接收端在唤醒时段抓取到至少一个数据包,其中,每组数据包均包括多个数据包,每个数据包均包含所述当前控制报文; 所述N组数据包中相邻数据包的广播间隔,匹配于所述接收端的唤醒休眠周期,其中,N≥2。
与之对应的,接收端具体可以用于:
在所述唤醒时段,通过蓝牙抓取所述自发电开关发出的N组数据包中的至少一个数据包,所述N组数据包是所述自发电开关通过蓝牙依次对外广播的,每个数据包均包含所述当前控制报文;所述N组数据包的总广播时长,以及其中相邻两个数据包的广播间隔,匹配于所述接收端的唤醒休眠周期,其中,N≥2。
其中,广播间隔可理解为:相邻两组数据包的开始广播时刻之间的间隔,也可视作各组数据包的广播周期,每个广播周期仅发一组数据包。
所述唤醒时段的时长大于或等于相邻两个数据包的广播间隔;
所述休眠时段的时长小于或等于N-1倍所述广播间隔。
通过以上方案,可有助于保证在数据包的收发过程中,不论自发电开关在什么时候发出数据包,接收端都能在唤醒时段接收到数据包。
在唤醒时段Ton对上了发包大周期内的情况下,唤醒时段Ton的窗口内至少要有1包,即唤醒时段Ton不可能都落都广播间隔(例如20mS)里面,唤醒时段Ton大于或等于广播间隔(例如20mS)。
同时,还保证至少一包落到休眠时段Toff窗口外,考虑到发包本身需使用一定时长(例如1mS),进而,休眠时段Toff要保证小于或等于广播间隔*(N-1),例如要小于或等于20mS*(N-1)。
具体举例中,指定的发包间隔时长(即形成的广播间隔)可以选择为20mS;
接收端的唤醒休眠周期可以为100mS;
占空比可以为20%,
对应的,唤醒时段Ton为20mS,休眠时段Toff为80mS。
在上述参数下,如果自发电开关可以发送5组数据包,则接收端至少可以扫描到1组数据包。如果发射端可以发送10组数据包,则接收端至少可以扫描到2组数据包。
另一种具体举例中,若N=5,则,唤醒时段Ton具体可以为25mS,休眠时段Toff具体可以为75mS,进而,对应的占空比为25%,接收端至少可以扫描到1组数据包,且留有一定的余量。
再一种具体举例中,唤醒休眠周期可以为125mS,唤醒时段Ton具体可以为25mS,休眠时段具体可以为100mS,对应的,若发包间隔为20mS,则:20mS*(N-1)需大于或等于100mS,进而,N≥6(即:需要发送至少6组数据包),其中,当N=6时,至少有一组数据包落在唤醒时段内被扫描到。
进一步举例中,同一组中的多个数据包是通过以下至少之二信道发送的:
2.402GHz;2.428GHz;2.480GHz。
其中,所述处理器通过所述蓝牙模块依次对外广播N组数据包,具体包括:
所述处理器在开始发送一组数据包后,对广播间隔的时间进行计时,并在计时到达指定的发包间隔时长时,发出对应的另一组数据包;
对应的,处理器108在通过所述蓝牙模块依次对外广播N组数据包时,具体用于:
在开始发送一组数据包后,对广播间隔的时间进行计时,并在计时到达指定的发包间隔时长时,发出对应的另一组数据包。
以上计时功能可采用集成于处理器的计时模块实现。
具体举例中,无线通讯模块传输的信号为蓝牙信号,例如可以2.4GHZ为载频,通过指定的蓝牙频道分别传输数据包。具体而言,自发电蓝牙开关使用低功耗蓝牙技术,在40个2-MHz信道中发送数据。作为优选,在广播信道中发射数据。三个广播频信道的频点分别是:37信道是2.402GHz;38信道是2.428GHz;39信道是2.480GHz。
其中,每次按压的时候将发送不止一包信号,例如可发送3-10包数据。所述处理器可集成有以上所提及的计时模块,在发送间隔中,使用计时模块进行延时。
一种举例中,该发包间隔时长可以为20mS,具体可在20mS±5mS的范围内随机波动(即:所述指定的发包间隔时长可以处于15毫秒至25毫秒的区间范围内),以便降低不同的开关的所发送的数据包在空中进行碰撞的概率。
其中一种实施方式中,以图15、图16为例,所述当前控制报文的数据结构(本发明实施例的控制报文可满足该数据结构)中,包括:
头部(对应于图中所示的“头部信息”)、有效载荷部(对应于图中所示的“PayLoad”,其为一个AD Structure)与CRC校验部(对应于图中所示的“CRC”);
所述有效载荷部包括:
用于记载键值的键值字段(对应于图中所示的“键值”);所述键值为所述当前操控信息中表征按键和/或操控动作的信息;
用于记载所述当前验证标识的验证标识字段(对应于图中所示的“序列号”)。
进一步的方案中,所述当前控制报文的数据结构中,还包括:物理地址部(对应于图中所示的“MAC”);
所述物理地址部包括:
开关标识字段(对应于图中所示的“MAC L”),用于利用4个字节记载开关标识;其中的开关标识也可表述为Sourse ID,进而,报文中,使用物理地址部的其中4个字节来表示自发电开关的Source ID,有效载荷部里面可以也包含开关标识,也可不额外包含开关标识,若不包含,以此尽可能降低报文的长度节省电量;
所述有效载荷部还包括帧头控制字段(对应于图中所示的“Frame Header”),所述帧头控制字段包括:
开关标识指示字段(对应于图中所示的“ID类型”),用于利用1个位记载有效载荷部是否记载所述开关;例如:以图15为例,如果为该字段为0,则表示有效载荷部里面不额外包含Source ID(即开关标识);以图16为例,如果为该字段为1,则表示有效载荷部里面额外包含4个字节的Source ID(即开关标识),通过以上设计,可用于解决iOS设备的上层应用无法获得报文的MAC的问题。
所述有效载荷部还包括:
用于利用4个字节记载签名信息的签名字段(对应于图中所示的“签名”);进而,在保证加密强度的情况下尽量降低报文长度。
所述帧头控制字段还包括:
加密指示字段(对应于图中所示的“加密类型”),用于利用1个位记载所述有效载荷部中是否包含所述签名信息,例如:如果为0则表示包含信息,为1则预留别的加密方式。
除此之外,所述头部包括:
前导码字段(对应于图中所示的“preamble”)、接入地址字段(对应于图中所示的“Access Adress”)、协议数据单元数据头字段(对应于图中所示的“PDU Header”);
所述有效载荷部包括:
长度字段(对应于图中所示的“长度”)、广播类型字段(对应于图中所示的“AD类型”)、设备商标识字段(对应于图中所示的“设备商ID”)、开关类型字段(对应于图中所示的“开关类型”);
所述帧头控制字段还包括:版本号字段(对应于图中所示的“版本号”)、转发次数字段(对应于图中所示的“转发计数”);
所述CRC校验部包括CRC计算值字段。
以下将对接收端执行控制事件的过程进行具体的举例。
其中一种实施方式中,所述接收端可以为墙壁开关,其中的控制事件,包括以下至少之一:
所述墙壁开关关断;
所述墙壁开关打开;
关闭所述墙壁开关的指定功能;
打开所述墙壁开关的指定功能;
对外发出指定信号。
针对于其他功能与墙壁开关类似的接收端,控制事件可参照以上举例理解。
不论接收端是什么,其中的控制事件,均可以包括以下至少之一:
切换所述接收端的开关状态,所述开关状态指所述接收端已打开或已关闭;
变化所述接收端的工作参数。
其中一种实施方式中,执行控制事件的过程可例如:
根据所述当前操控信息,检测是否发生了预定义的状态切换操控与参数变化操控,或者:根据所述当前操控信息与之前收到的操控信息,检测是否发生了所述状态切换操控与所述参数变化操控;
若发生了所述状态切换操控,则切换所述接收端的开关状态;
若发生了所述参数变化操控,则变化所述接收端的工作参数;
所述状态切换操控与所述参数变化操控是有区别的。
进一步的一种举例中,所述状态切换操控为:对对应按键的按压时长短于指定时长,所述参数变化操控为:对对应按键的按压时长长于所述指定时长。其他举例中,所述状态切换操控也可以为:对对应按键的按压时长长于指定时长,所述参数变化操控为:对对应按键的按压时长短于所述指定时长。
以上方案中,若接收器为灯,则:一种举例中,针对于按键,短按(按下后立即释放)可实现基本的ON/OFF翻转命令,例如打开与关闭该灯,长按可实现调光(例如调节光的亮度)。
其中一种实施方式中,执行控制事件的过程可例如:
若所述当前操控信息为开始变化操控信息,则开始变化所述接收端的工作参数;
若所述当前操控信息为停止变化操控信息,则停止变化所述接收端的工作参数;
所述开始变化操控信息与所述停止变化操控信息所表征的按键和/或操控动作是不同的。
进一步的一种举例中,所述开始变化操控信息表征了对应按键被下按的操控动作;所述停止变化操控信息表征了对应按键回弹的操控动作。在其他举例中,开始变化操控信息与停止变化操控信息可以表征了不同按键的操控动作,还可以是不同次的下按的操控动作。
其中一种实施方式中,针对于同一开关的同一按键,若对应的下按操控信息与回弹操控信息对应于不同的控制事件,则:
所述接收端中所存储的历史验证标识是根据指定操控动作所产生的控制报文中所记载的验证标识确定的;所述指定操控动作为按键被下按的操控动作或按键回弹的操控动作。例如:接收端可仅在收到下按的操控动作所产生的控制报文时才存储其中的当前验证标识作为历史验证标识,又例如:接收端可仅在收到回弹的操控动作所产生的控制报文时才存储其中的当前验证标识作为历史验证标识。
以上可调节工作参数的接收端可例如为以下任意之一:灯、风扇、自动窗帘。但也不限于此,任意有工作参数调节需求的接收端,均可作为一种可选方案。
请参考图18,若接收端为灯,以下对一种可对灯进行调光的方案进行举例:其中主要实现了下按按键时开始调光,回弹时停止调光。此时,序列号可用于按下和回弹的时候 发送的多包数据的查重。
具体的,收到控制报文之后,先根据报文格式做基本的报文合法性判断,然后提取其中的序列号;将序列号与历史值比对(即比对当前验证标识与历史验证标识,以进行验证);如果不大于历史值,则认为是重复的序列号,将其丢弃。如果大于历史值,且为下按操控的报文,则开始调光;如果大于历史值,且为回弹操控的报文,则停止调光;同时将新的序列号写入历史值备用。该过程可对应于前文针对于开始变化操控信息、停止变化操控信息的处理过程。
另外一种举例中,针对于同一个按键,短按(按下后立即释放)实现基本的ON/OFF翻转命令,长按实现调光。该过程可对应于前文针对于状态切换操控信息与参数变化操控信息的处理过程。
本发明实施例还提供了一种控制系统(可参照于图1理解),包括自发电开关与接收端。
部分方案中,控制系统还可包括网关(或路由器),网关可分别与自发电开关与接收端通讯连接,一种举例中,其通讯的方式可以均采用蓝牙,也可不限于蓝牙。该网关可以是专用于网络通讯的设备,也可以是具有其他特定功能的设备(例如可以为兼有网关功能的语音音箱)。
为便于理解自发电开关1的结构,以下将结合图19至图26、图27a、图27b对一种可选的自发电开关进行说明。
请参考图19至图26、图27a、图27b,所述的自发电开关,还包括底壳113与中壳119,所述中壳119盖合于所述底壳113,以形成内部空间,所述电路板114、所述开关电路与所述传动部件117均位于所述内部空间,所述按键101位于所述中壳119的与所述内部空间相背离的一侧。其他实施方式中,也可仅设有底壳113而未设置中壳119。
请参考图22至图29,所述发电机103的运动部1031可以为发电拨片,其中的发电拨片可理解为能够被触动从而利用机械能产生电能的任意构造,其可以是呈片状,也可以是呈杆状、环状等任意形状。
所述发电机103的运动部1031位于所述发电机103的靠近所述按键101的非按压端的一侧(例如图20所示的左侧),即:运动部1031位于发电机103的一端的一侧,微动开关1101(即检测单元)位于发电机103的另一端的一侧。
所述传动部件117的第一端用于直接或间接被所述按键5按下,例如,其可以通过开关按压部1172受控按压,其中的开关按压部1172可凸起于传动部件117的表面。
所述传动部件117的第二端用于在其第一端被按下时和/或在所述复位作用力的驱动下复位时触动所述运动部1031,以使得所述发电机103发电。
其中,传动部件117的第一端与第二端的运动方向可以是相同的也可以是不同的,不论何种方式,只要实现了以上的受控按压与发电拨片的触动,就不脱离本实施例的描述。
其中,传动部件117可设有插片孔1175,用于供发电拨片(即运动部1031)插入。
其中一种实施方式中,所述底壳113上设有支撑部1131,所述支撑部1131穿过所述电路板114延伸至所述电路板114的与所述底壳113的底面相背离的一侧,对应的,电路板114可设有用于供其穿过的通孔,所述支撑部1131支撑于所述传动部件117。所述传动部件117能够以所述支撑部1131为支点摆动,并通过所述摆动在所述第一位置状态与所述第二位置状态间变化。其中,支撑部1131的数量可以是两个或多个,其可均匀分布于传动部件117下侧。
以图22为例,支撑部1131可对接传动部件117的支点位,该支点位可以设有用于实现对接的构造,也可以未设置构造,该支点位可以是单个位置,也可以是一个可变的位置,进而,随着摆动的发生,支撑部1131与传动部件117的接触位置可能会发生变化,也可能不发生变化。其中电路板114可装配在底壳113所形成的内部空间,发电机103与 电路板114连接,其中,发电机103可利用发电机安装卡扣1137安装于底壳113;传动部件117通过两侧的两个支点位与底壳113连接,具体能以两个支点位的连线所构成的构造,形成一个翘板式结构,传动部件117的一侧端部与发电机103伸出的发电拨片连接,复位部件102安装在底壳113上并连接传动部件117的另一端或靠近另一端的位置,可通过传动部件117让发电机103复位,传动部件117的另一侧端部可设有开关按压部1172。
对比图27a与图27b,并结合图22至图29,按下按键101后,按键101触发传动部件117做翘板式转动,即按压端向下运动,另一端则向上运动,从而带动发电机103的发电拨片运动,发电机103该动能转化为电能,为电路板114供电,同时所按压的按键在下压过程中触发微动开关,同时,电路板114上有与按键数目相同的发光模块(例如LED),每次按压发射信号,LED会闪灯一次。
按压之后,在例如扭簧的复位部件102的作用下,传动部件117可回归到初始位置,从而带动发电机103的发电拨片也回到初始位置。按键101在传动部件117的作用下也可回复到初始位置。
请参考图21和图22,所述底壳1上还设有移动限位筋1132,所述传动部件117设有的移动限位凸台1174。
所述移动限位筋1132穿过所述电路板114延伸至所述电路板114的与所述底壳113的底面相背离的一侧,对应的,电路板114可设有用于供其穿过的通孔,所述移动限位筋1132能够限制所述移动限位凸台1174与所述传动部件117沿第一参考方向和/或第二参考方向移动,例如,在移动时,移动限位筋1132可阻挡移动限位凸台1174移动。
所述第一参考方向为所述按键的按压端至非按压端的方向,所述第二参考方向为所述按键的非按压端至按压端的方向。
通过限位凸台与限位筋的配合,可以较小的加工难度实现限位。
请参考图21,所述底壳113上还设有上限位卡扣1133,所述上限位卡扣1133穿过所述电路板114延伸至所述电路板114的与所述底壳1的底面相背离的一侧,所述上限位卡扣1133用于限制所述传动部件117朝远离所述电路板114的方向运动。对应的,在传动部件的边缘可设有限位卡扣配合部1171,上限位卡扣1133可传动部件摆动时阻挡限位卡扣配合部1171,进而起到限位作用。
由于发电拨片是靠近非按压端的,故而,上限位卡扣1133可限制传动部件117的靠近非按压端的一端远离电路板114运动。
可见,通过限位卡扣、移动限位筋1132,可便于限定传动部件117的运动位置。
以上所述涉及的传动部件117可视作摇杆,利用支撑部进行摆动的方案可具有易于加工,零件尺寸容易控制等优点。
具体实施过程中,若所述按键101的数量为至少两个,例如图示的三个,则:所述传动部件117对接所有按键101,以使得:任意至少之一按键101被按下时,所述传动部件117均能够被推动,以变化位置状态。
其中一种实施方式中,所述复位部件102可以为以下至少之一:扭簧、弹片、弹簧。
若所述复位部件102为扭簧,则:所述底壳113上设有扭簧底座1134,所述扭簧底座1134穿过所述电路板114延伸至所述电路板114的与所述底壳113的底面相背离的一侧,所述扭簧底座1134设有扭簧安装轴,所述扭簧安装于所述扭簧安装轴,所述扭簧还通过连杆接触设于所述传动部件117的扭簧连接部1173,以通过所述连杆与所述扭簧连接部1173将所述复位作用力作用于所述传动部件117。具体实施过程中,扭簧底座1134还可设有扭簧限位部,其可用于限制扭簧的旋转位置。
其中一种实施方式中,请参考图19和图25,并结合图27a与图27b,所述的自发电开关,还包括防水层118,所述防水层118设于所述中壳119与所述电路板114之间。该防水层118的与中壳119相对的一侧表面可以与中壳119相贴合。
具体的,所述防水层118可设有开关按键配合部1181,所述开关按键配合部1181凸起于所述防水层118的与所述电路板114相背离的一侧,所述中壳119设有按键孔1194,所述开关按键配合部1181穿过所述按键孔1194,所述微动开关1101延伸至所述开关按键配合部1181内,所述开关按键配合部1181沿所述按键101被按下的方向分别对接所述按键101与所述微动开关1101。进而,下按按键101时,可经开关按键配合部1181点击至微动开关1101,从而触发微动开关1101。
此外,所述防水层118还可设有配对按键配合部1183,其中的配对按键配合部1183的位置可匹配于配对按键的位置,同时,可匹配于电路板114上的配对电路的配对开关器件,通过下按配对按键,可经配对按键配合部1183触发穿过配对按键孔1193的配对开关器件,其中,配对开关器件、配对按键孔、配对按键配合部与配对按键的结构关系,可参照于微动开关1101、按键孔1194、开关按键配合部1181与按键101的结构关系理解。
所述防水层118还可设有按压配合部1184,其位置可与中壳119的按压部容置结构1195相匹配。其中,按压部容置结构1195可理解为是用于在开关按压部1172上抬时容置该开关按压部1172的结构。
具体实施过程中,该防水层118可以采用防水硅胶。
其中一种实施方式中,所述中壳119设有中壳透光孔1192,所述防水层118设有防水层透光部1182,所述按键101设有所述出光部,所述导光柱穿设于所述中壳透光孔1192,且所述导光柱两端分别延伸至所述出光部与所述防水层透光部1182,所述导光柱、所述中壳透光孔1192、所述防水层透光部1182与所述出光部的位置与所述发光模块位置相匹配,其可以是指位置相靠近的任意匹配方式。
任意可实现透光、导光的以上结构,均不脱离本实施例的描述。
其中一种实施方式中,请参考图23、图24与图26,所述中壳或所述底壳设有第一转轴部1191,所述按键101的非按压端设有第二转轴部1011,所述第一转轴部1191与所述第二转轴部1011匹配连接,所述按键101能够通过所述第一转轴部1191与所述第二转轴部1011的配合朝向或背向所述中壳119枢转,所述中壳119或所述底壳113的按压端一侧具有第一卡扣1196,所述按键的按压端设有第二卡扣1013。
所述第一卡扣1196对接所述第二卡扣1013,以限制所述按键101的按压端向远离所述中壳119的方向运动;
在图示的举例中,所述第一转轴部1191为转轴,所述第二转轴部1011为供对应转轴穿过的轴孔,其他未图示的举例中,所述第一转轴部为轴孔,所述第二转轴部为穿过对应轴孔的转轴。
所述按键101的朝向中壳的一侧还设有抵压部1012,进而,可通过抵压部1012直接或间接抵压传动部件117的开关按压部1172。所述按键101的朝向中壳的一侧还可设有开关抵压部1014,开关抵压部1014用于与微动开关对应按压。
在具体举例中,硅胶的防水层118与底壳113连接,而中壳119在防水层118的外侧与底壳113之间连接,从而压紧防水层118(其中,硅胶的防水层118可与底壳1上的防水墙在结构上采用过盈配合),实现内部结构全密封防水,最后装配按键101,按键101可装配在底壳1上,也可装配在中壳119上。按键101以一端为枢轴,是固定端,另一端可做枢转式的往复运动(下压与复位),也就是开关的按压端。
此外,本实施例所涉及的自发电开关既可以直接采用双面胶贴在墙面或者其他地方,也可以采用螺钉安装在传统的开关底盒中。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方 案的范围。

Claims (46)

  1. 一种自发电开关的处理方法,其特征在于,所述自发电开关包括处理器、存储器、按键、发电机、复位部件、整流模块、储能模块、电压输出模块,以及无线通讯模块,所述无线通讯模块与所述存储器电连接所述处理器,所述发电机的感应部通过所述整流模块电连接储能模块,所述储能模块通过所述电压输出模块电连接所述无线通讯模块、所述处理器与所述存储器,所述复位部件能够与所述发电机的运动部传动,所述按键也能够直接或间接与所述发电机的运动部传动;
    所述处理方法,包括:
    若所述按键发生了下按的操控动作,则:所述弹性部件发生形变并产生克服所述形变的复位作用力,所述发电机的运动部直接或间接被所述按键驱动,使所述发电机产生第一感应电压,若所述按键发生了回弹的操控动作,则:所述弹性部件在所述复位作用力的作用下驱动所述发电机的运动部,使所述发电机产生第二感应电压;
    所述整流模块将所述第一感应电压对应的第一电能和/或第二感应电压对应的第二电能存储于所述储能模块;所述储能模块将所存储的电能传输至所述电压输出模块,所述电压输出模块利用所接收到的电能向所述处理器、所述存储器、所述无线通讯模块提供所需的电压,使其上电;
    在所述处理器、所述存储器与所述无线通讯模块上电后,所述处理器产生并通过所述无线通讯模块向接收端发送对应的当前控制报文;所述当前控制报文中记载了当前验证标识,以及当前操控信息;所述当前操控信息表征了以下至少之一:所述自发电开关、所述自发电开关当前接受到操控的按键、所述自发电开关当前所发生的操控动作;所述当前操控信息与所述接收端所需执行的至少一个控制事件相对应;
    在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,所述处理器在产生并通过所述无线通讯模块向接收端发送对应的当前控制报文之前、之后或同时,还自所述存储器读取当前验证标识、更新所述当前验证标识,并在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器,其中,更新前后的验证标识是不同的。
  2. 根据权利要求1所述的处理方法,其特征在于,
    所述自发电开关还包括极性识别模块;所述极性识别模块电连接所述发电机与所述处理器;
    所述处理器自所述存储器读取当前验证标识、更新所述当前验证标识之前,还包括:
    在所述处理器、所述存储器与所述无线通讯模块上电后,所述处理器通过所述极性识别模块识别按键当前所发生的操控动作,得到操控动作信息,并确定当前所发生的操控动作为目标操控动作,所述目标操控动作是下按的操控动作与回弹的操控动作中择一指定的。
  3. 根据权利要求2所述的处理方法,其特征在于,所述目标操控动作为回弹的操控动作。
  4. 根据权利要求2所述的处理方法,其特征在于,所述自发电开关还包括按键识别模块,所述按键识别模块电连接所述处理器;
    所述处理器产生当前控制报文之前,还包括:
    所述处理器自所述存储器读取表征所述自发电开关的开关标识;
    若当前所发生的操控动作为下按的操控动作,则:所述处理器通过所述按键识别模块获取当前按键信息,并将所述当前按键信息更新于所述存储器;
    若当前所发生的操控动作为回弹的操控动作,则:所述处理器自所述存储器获取所存储的当前按键信息;
    所述当前操控信息是基于所述开关标识、当前所发生的操控动作,以及所获取到的 当前按键信息确定的。
  5. 根据权利要求2所述的处理方法,其特征在于,所述极性识别模块包括下按识别部与回弹识别部;所述下按识别部分别电连接所述发电机的感应部与所述处理器,所述回弹识别部分别电连接所述发电机的感应部与所述处理器;
    所述处理器通过所述极性识别模块识别按键当前所发生的操控动作,包括:
    若所述处理器接收到所述下按识别部发出的指定信号,则确定当前所发生的操控动作为下按的操控动作;其中,所述下按识别部仅在所述发电机产生所述第一感应电压时才向所述处理器发送所述指定信号;
    若所述处理器接收到所述回弹识别部发出的所述指定信号,则确定当前所发生的操控动作为下按的操控动作,其中,所述回弹识别部仅在所述发电机产生所述第二感应电压时才向所述处理器发送所述指定信号。
  6. 根据权利要求1所述的处理方法,其特征在于,
    所述处理器更新所述当前验证标识,包括:
    所述处理器以预设的变换规则,将所述当前验证标识自第一数值变换为第二数值,形成新的当前验证标识。
  7. 根据权利要求6所述的处理方法,其特征在于,所述变换规则,包括以下至少之一:
    在所述第一数值的基础上累加一个第一参考数值,得到所述第二数值;
    在所述第一数值的基础上累减一个第二参考数值,得到所述第二数值;
    在所述第一数值的基础上乘上一个第三参考数值,得到所述第二数值;
    在所述第一数值的基础上除以一个第四参考数值,得到所述第二数值。
  8. 根据权利要求1至7任一项所述的处理方法,其特征在于,所述当前控制报文还包括签名信息,所述签名信息是基于第一密钥计算出来的,且所述签名信息随所述当前验证标识的变化而变化;
    所述签名信息能够被所述接收端通过第二密钥校验,所述第一密钥与所述第二密钥相匹配。
  9. 根据权利要求1至7任一项所述的处理方法,其特征在于,所述当前控制报文中所记载的当前验证标识是经预设的数据转换方式转换后的当前验证标识。
  10. 根据权利要求1至7任一项所述的处理方法,其特征在于,所述无线通讯模块为蓝牙模块;
    所述处理器通过所述无线通讯模块向接收端发送对应的当前控制报文,具体包括:
    所述处理器通过所述蓝牙模块依次对外广播N组数据包,所述N组数据包中相邻两组数据包的广播间隔,匹配于所述接收端的唤醒休眠周期,其中,所述接收端是根据所述唤醒休眠周期接收数据包的,所述唤醒休眠周期包括交替的唤醒时段与休眠时段,且所述接收端仅在所述唤醒时段接收数据包,N≥2,每个数据包均包含所述当前控制报文。
  11. 根据权利要求10所述的处理方法,其特征在于,
    所述唤醒时段的时长大于或等于相邻两组数据包的广播间隔;
    所述唤醒时段的时长大于或等于N-1倍所述广播间隔。
  12. 根据权利要求10所述的处理方法,其特征在于,同一组中的多个数据包是通过以下至少之二信道发送的:
    2.402GHz;2.428GHz;2.480GHz。
  13. 根据权利要求10所述的处理方法,其特征在于,所述处理器通过所述蓝牙模块依次对外广播N组数据包,包括:
    所述处理器在开始发送一组数据包后,对广播间隔的时间进行计时,并在计时到达指定的发包间隔时长时,发出对应的另一组数据包;
    所述指定的发包间隔时长处于15毫秒至25毫秒的区间范围内。
  14. 根据权利要求1所述的处理方法,其特征在于,所述当前控制报文的数据结构中,包括:
    头部、有效载荷部与CRC校验部;
    所述有效载荷部包括:
    用于记载键值的键值字段;所述键值为所述当前操控信息中表征按键和/或操控动作的信息;
    用于记载所述当前验证标识的验证标识字段。
  15. 根据权利要求14所述的处理方法,其特征在于,所述当前控制报文的数据结构中,还包括:物理地址部;
    所述物理地址部包括:
    开关标识字段,用于利用4个字节记载开关标识;所述开关标识为所述当前操控信息中表征自发电开关的信息;
    所述有效载荷部还包括帧头控制字段,所述帧头控制字段包括:
    开关标识指示字段,用于利用1个位记载有效载荷部是否记载所述开关标识。
  16. 根据权利要求14所述的处理方法,其特征在于,所述有效载荷部还包括:
    用于利用4个字节记载签名信息的签名字段;
    所述帧头控制字段还包括:
    加密指示字段,用于利用1个位记载所述有效载荷部中是否包含所述签名信息。
  17. 根据权利要求14所述的处理方法,其特征在于,
    所述头部包括:
    前导码字段、接入地址字段、协议数据单元数据头字段;
    所述有效载荷部包括:
    长度字段、广播类型字段、设备商标识字段、开关类型字段;
    所述帧头控制字段还包括:版本号字段、转发次数字段;
    所述CRC校验部包括CRC计算值字段。
  18. 根据权利要求1至7任一项所述的处理方法,其特征在于,所述存储器包括第一存储器与第二存储器,所述当前验证标识更新存储于所述第一存储器;所述第一存储器与存储程序的所述第二存储器为不同的存储器,所述第一存储器为掉电后不丢失数据的存储器;
    所述第一存储器中所更新存储的当前验证标识与所述当前操控报文中所记载的当前验证标识相同。
  19. 根据权利要求18所述的处理方法,其特征在于,所述第一存储器为能够按一个或多个字节为单位擦除、写入、读取数据的存储器,其中,单个字节的写入、读取时间不超过10ms,消耗的能量不超过300uJ。
  20. 根据权利要求18所述的处理方法,其特征在于,所述第一存储器包括Flash存储器和/或铁电存储器。
  21. 根据权利要求18所述的处理方法,其特征在于,所述第一存储器还存储有当前按键信息,所述当前按键信息表征了所述自发电开关最近一次发生下按动作的按键;
    所述当前按键信息所表征的按键与所述当前操控信息所表征的按键相同。
  22. 根据权利要求1至7任一项所述的处理方法,其特征在于,所述整流模块包括第一整流部与第二整流部;所述第一整流部电连接于所述发电机的感应部与所述储能模块,所述第二整流部电连接于所述发电机的感应部与所述储能模块;
    所述整流模块将所述第一感应电压对应的第一电能和第二感应电压对应的第二电能存储于所述储能模块,包括:
    所述第一整流部对所述第一感应电压进行整流,并将对应的第一电能存储于所述储能模块;
    所述第二整流部对所述第二感应电压进行整流,并将对应的第二电能存储于所述储能模块。
  23. 一种自发电开关,其特征在于,包括处理器、存储器、按键、发电机、复位部件、整流模块、储能模块、电压输出模块,以及无线通讯模块,所述无线通讯模块与所述存储器电连接所述处理器,所述发电机的感应部通过所述整流模块电连接储能模块,所述储能模块通过所述电压输出模块电连接所述无线通讯模块与所述处理器,所述复位部件能够与所述发电机的运动部传动,所述按键也能够直接或间接与所述发电机的运动部传动;
    所述弹性部件用于:若所述按键发生了下按的操控动作,则:发生形变并产生克服所述形变的复位作用力;若所述按键发生了回弹的操控动作,则:在所述复位作用力的作用下驱动所述发电机的运动部;
    所述发电机用于:若所述按键发生了下按的操控动作,则:所述发电机的运动部直接或间接被所述按键驱动,使所述发电机的感应部产生第一感应电压,若所述按键发生了回弹的操控动作,则所述发电机的运动部被所述弹性部件驱动,使所述发电机产生第二感应电压,
    所述整流模块用于:将所述第一感应电压对应的第一电能和/或第二感应电压对应的第二电能存储于所述储能模块;
    所述储能模块用于:将所存储的电能传输至所述电压输出模块;
    所述电压输出模块用于:所述电压输出模块利用所接收到的电能向所述处理器、所述存储器、所述无线通讯模块提供所需的电压,使其上电;
    所述处理器用于:
    在所述处理器、所述存储器与所述无线通讯模块上电后,产生并通过所述无线通讯模块向接收端发送对应的当前控制报文;所述当前控制报文中记载了当前验证标识,以及当前操控信息;所述当前操控信息表征了以下至少之一:所述自发电开关、所述自发电开关当前接受到操控的按键、所述自发电开关当前所发生的操控动作;所述当前操控信息与所述接收端所需执行的至少一个控制事件相对应;
    在连续发生的一次下按的操控动作和一次回弹的操控动作中,针对于其中至少一次操控动作,在产生并通过所述无线通讯模块向接收端发送当前控制报文之前、之后或同时,还自所述存储器读取当前验证标识、更新所述当前验证标识,并在所述储能模块所存储的电能耗尽前,将更新后的当前验证标识写回所述存储器,其中,更新前后的验证标识是不同的。
  24. 根据权利要求23所述的自发电开关,其特征在于,
    所述自发电开关还包括极性识别模块;所述极性识别模块电连接所述发电机与所述处理器;
    所述处理器自所述存储器读取当前验证标识、更新所述当前验证标识之前,还用于:
    在所述处理器、所述存储器与所述无线通讯模块上电后,通过所述极性识别模块识别按键当前所发生的操控动作,得到操控动作信息,并确定当前所发生的操控动作为目标操控动作,所述目标操控动作是下按的操控动作与回弹的操控动作中择一指定的。
  25. 根据权利要求24所述的自发电开关,其特征在于,所述目标操控动作为回弹的操控动作。
  26. 根据权利要求24所述的自发电开关,其特征在于,所述自发电开关还包括按键识别模块,所述按键识别模块电连接所述处理器;
    所述处理器在产生当前控制报文之前,还用于:
    自所述存储器读取表征所述自发电开关的开关标识;
    若当前所发生的操控动作为下按的操控动作,则:通过所述按键识别模块获取当前按键信息,并将所述当前按键信息更新于所述存储器;
    若当前所发生的操控动作为回弹的操控动作,则:自所述存储器获取所存储的当前按键信息;
    所述当前操控信息是基于所述开关标识、当前所发生的操控,以及所获取到的当前按键信息确定的。
  27. 根据权利要求24所述的自发电开关,其特征在于,所述极性识别模块包括下按识别部与回弹识别部;所述下按识别部分别电连接所述发电机的感应部与所述处理器,所述回弹识别部分别电连接所述发电机的感应部与所述处理器;
    所述处理器在通过所述极性识别模块识别按键当前所发生的操控动作时,具体用于:
    若所述处理器接收到所述下按识别部发出的指定信号,则确定当前所发生的操控动作为下按的操控动作;其中,所述下按识别部仅在所述发电机产生所述第一感应电压时才向所述处理器发送所述指定信号;
    若所述处理器接收到所述回弹识别部发出的所述指定信号,则确定当前所发生的操控动作为下按的操控动作,其中,所述回弹识别部仅在所述发电机产生所述第二感应电压时才向所述处理器发送所述指定信号。
  28. 根据权利要求23所述的自发电开关,其特征在于,
    所述处理器在更新所述当前验证标识时,具体用于:
    以预设的变换规则,将所述当前验证标识自第一数值变换为第二数值,形成新的当前验证标识。
  29. 根据权利要求28所述的自发电开关,其特征在于,所述变换规则,包括以下至少之一:
    在所述第一数值的基础上累加一个第一参考数值,得到所述第二数值;
    在所述第一数值的基础上累减一个第二参考数值,得到所述第二数值;
    在所述第一数值的基础上乘上一个第三参考数值,得到所述第二数值;
    在所述第一数值的基础上除以一个第四参考数值,得到所述第二数值。
  30. 根据权利要求23至29任一项所述的自发电开关,其特征在于,所述当前控制报文还包括签名信息,所述签名信息是基于第一密钥计算出来的,且所述签名信息随所述当前验证标识的变化而变化;
    所述签名信息能够被所述接收端通过第二密钥校验,所述第一密钥与所述第二密钥相匹配。
  31. 根据权利要求23至29任一项所述的自发电开关,其特征在于,所述当前控制报文中所记载的当前验证标识是经预设的数据转换方式转换后的当前验证标识。
  32. 根据权利要求23至29任一项所述的自发电开关,其特征在于,所述无线通讯模块为蓝牙模块;
    所述处理器在通过所述无线通讯模块向接收端发送对应的当前控制报文时,具体用于:
    所述处理器通过所述蓝牙模块依次对外广播N组数据包,所述N组数据包的总广播时长,以及其中相邻两组数据包的广播间隔,匹配于所述接收端的唤醒休眠周期,其中,所述接收端是根据所述唤醒休眠周期唤醒与休眠的,所述唤醒休眠周期包括所述接收端的唤醒时段与休眠时段,N≥2,其中,每个数据包均包含所述当前控制报文。
  33. 根据权利要求32所述的自发电开关,其特征在于,相邻两组数据包的广播间隔小于或等于所述唤醒休眠周期中唤醒时段的时长;
    所述N组数据包的总广播时长大于或等于所述唤醒休眠周期的时长。
  34. 根据权利要求32所述的自发电开关,其特征在于,同一组中的多个数据包是通 过以下至少之二信道发送的:
    2.402GHz;2.428GHz;2.480GHz。
  35. 根据权利要求32所述的自发电开关,其特征在于,所述处理器在通过所述蓝牙模块依次对外广播N组数据包时,具体用于:
    在开始发送一组数据包后,对广播间隔的时间进行计时,并在计时到达指定的发包间隔时长时,发出对应的另一组数据包;
    所述指定的发包间隔时长处于15毫秒至25毫秒的区间范围内。
  36. 根据权利要求23至29任一项所述的自发电开关,其特征在于,所述当前控制报文的数据结构中,包括:
    头部、有效载荷部与CRC校验部;
    所述有效载荷部包括:
    用于记载键值的键值字段;所述键值为所述当前操控信息中表征按键和/或操控动作的信息;
    用于记载所述当前验证标识的验证标识字段。
  37. 根据权利要求36所述的自发电开关,其特征在于,所述当前控制报文的数据结构中,还包括:物理地址部;
    所述物理地址部包括:
    开关标识字段,用于利用4个字节记载开关标识;所述开关标识为所述当前操控信息中表征自发电开关的信息;
    所述有效载荷部还包括帧头控制字段,所述帧头控制字段包括:
    开关标识指示字段,用于利用1个位记载有效载荷部是否记载所述开关标识。
  38. 根据权利要求36所述的自发电开关,其特征在于,所述有效载荷部还包括:
    用于利用4个字节记载签名信息的签名字段;
    所述帧头控制字段还包括:
    加密指示字段,用于利用1个位记载所述有效载荷部中是否包含所述签名信息。
  39. 根据权利要求36所述的处理方法,其特征在于,
    所述头部包括:
    前导码字段、接入地址字段、协议数据单元字段;
    所述有效载荷部包括:
    长度字段、广播类型字段、设备商标识字段、开关类型字段;
    所述帧头控制字段还包括:版本号字段、转发次数字段;
    所述CRC校验部包括CRC计算值字段。
  40. 根据权利要求1所述的自发电开关,其特征在于,所述存储器包括第一存储器与第二存储器,所述当前验证标识更新存储于所述第一存储器;所述第一存储器与存储程序的所述第二存储器为不同的存储器,所述第一存储器为掉电后不丢失数据的存储器;
    所述第一存储器中所更新存储的当前验证标识与所述当前操控报文中所记载的当前验证标识相同。
  41. 根据权利要求40所述的控制方法,其特征在于,所述第一存储器为能够按一个或多个字节为单位擦除、写入、读取数据的存储器,其中,单个字节的写入、读取时间不超过10ms,消耗的能量不超过300uJ。
  42. 根据权利要求40所述的自发电开关,其特征在于,所述第一存储器包括Flash存储器和/或铁电存储器。
  43. 根据权利要求40所述的自发电开关,其特征在于,所述第一存储器还存储有当前按键信息,所述当前按键信息表征了所述自发电开关最近一次发生下按动作的按键;
    所述当前按键信息所表征的按键与所述当前操控信息所表征的按键相同。
  44. 根据权利要求23至29任一项所述的自发电开关,其特征在于,所述整流模块包括第一整流部与第二整流部;所述第一整流部电连接于所述发电机的感应部与所述储能模块,所述第二整流部电连接于所述发电机的感应部与所述储能模块;
    所述第一整流部用于对所述第一感应电压进行整流,并将对应的第一电能存储于所述储能模块;
    所述第二整流部用于对所述第二感应电压进行整流,并将对应的第二电能存储于所述储能模块。
  45. 一种控制系统,其特征在于,包括权利要求23至44任一项所述的自发电开关,以及所述接收端。
  46. 根据权利要求45所述的控制系统,其特征在于,所述接收端为以下任意之一:灯、风扇、自动窗帘、墙壁开关、门铃。
PCT/CN2022/092176 2021-05-16 2022-05-11 自发电开关及其处理方法、控制系统 WO2022242519A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110531083.7 2021-05-16
CN202110531083.7A CN113410971B (zh) 2021-05-16 2021-05-16 自发电开关及其处理方法、控制系统

Publications (1)

Publication Number Publication Date
WO2022242519A1 true WO2022242519A1 (zh) 2022-11-24

Family

ID=77678628

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/092176 WO2022242519A1 (zh) 2021-05-16 2022-05-11 自发电开关及其处理方法、控制系统

Country Status (2)

Country Link
CN (3) CN115421401A (zh)
WO (1) WO2022242519A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113517152B (zh) * 2021-05-16 2022-08-16 武汉领普科技有限公司 开关控制方法、接收端控制方法、自发电开关与接收端
CN113433841B (zh) * 2021-05-16 2022-05-31 武汉领普科技有限公司 自发电无线开关、受控设备与控制系统
CN115421401A (zh) * 2021-05-16 2022-12-02 武汉领普科技有限公司 自发电开关及其控制系统
CN114033261B (zh) * 2021-11-22 2022-08-02 中国铁塔股份有限公司 一种整流器防盗方法、装置、设备及存储介质
CN115276196A (zh) * 2022-01-10 2022-11-01 武汉领普科技有限公司 自发电开关及其处理方法、处理系统
CN117994960A (zh) * 2022-06-02 2024-05-07 武汉领普科技有限公司 无线开关、无线开关的处理方法及控制系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060114197A (ko) * 2005-04-29 2006-11-06 조성구 근거리 무선 통신망을 기반으로 하는 무선 스위치 시스템
CN108776442A (zh) * 2018-04-28 2018-11-09 武汉领普科技有限公司 一种自发电无源开关及其工作方法
CN111273579A (zh) * 2020-01-18 2020-06-12 武汉领普科技有限公司 接收器及其处理方法、系统与基于自发电开关的控制组件
CN112787546A (zh) * 2017-04-01 2021-05-11 广东易百珑智能科技有限公司 可变更按键数目的无源回弹式开关
CN113410971A (zh) * 2021-05-16 2021-09-17 武汉领普科技有限公司 自发电开关及其处理方法、控制系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5530155B2 (ja) * 2009-11-11 2014-06-25 ルネサスエレクトロニクス株式会社 発電機能付き手動操作機器、発電機能付き遠隔操作装置
CN103532854B (zh) * 2013-10-22 2017-05-10 迈普通信技术股份有限公司 一种报文的存储和转发方法及装置
KR102141390B1 (ko) * 2016-03-10 2020-09-14 삼성전자주식회사 원격 조정 장치
CN207009333U (zh) * 2017-05-27 2018-02-13 红塔烟草(集团)有限责任公司 一种指纹识别按钮开关
CN207133615U (zh) * 2017-09-15 2018-03-23 西安奇妙电子科技有限公司 一种智能开关
CN208767198U (zh) * 2018-08-13 2019-04-19 武汉领普科技有限公司 一种多按键自发电开关
CN110262324A (zh) * 2019-06-06 2019-09-20 深圳市易百珑科技有限公司 自供电模块、无线控制开关以及无线控制系统和配对方法
CN111180241B (zh) * 2020-01-18 2022-03-11 武汉领普科技有限公司 具有发光模块的自发电开关及其处理方法
CN212229465U (zh) * 2020-07-23 2020-12-25 武汉领普科技有限公司 无线开关接收器与设备控制组件

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060114197A (ko) * 2005-04-29 2006-11-06 조성구 근거리 무선 통신망을 기반으로 하는 무선 스위치 시스템
CN112787546A (zh) * 2017-04-01 2021-05-11 广东易百珑智能科技有限公司 可变更按键数目的无源回弹式开关
CN108776442A (zh) * 2018-04-28 2018-11-09 武汉领普科技有限公司 一种自发电无源开关及其工作方法
CN111273579A (zh) * 2020-01-18 2020-06-12 武汉领普科技有限公司 接收器及其处理方法、系统与基于自发电开关的控制组件
CN113410971A (zh) * 2021-05-16 2021-09-17 武汉领普科技有限公司 自发电开关及其处理方法、控制系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XU RUNFANG; WANG YUQIN; XIE JIEGAO; LUO TAO; YANG FAN: "A Design Scheme of Self Generating Bluetooth Wireless Mouse", CHINA COMPUTER & COMMUNICATION, vol. 31, no. 21, 10 November 2019 (2019-11-10), pages 93 - 94, XP009541382, ISSN: 1003-9767 *

Also Published As

Publication number Publication date
CN115421401A (zh) 2022-12-02
CN115421402A (zh) 2022-12-02
CN113410971A (zh) 2021-09-17
CN113410971B (zh) 2022-06-03

Similar Documents

Publication Publication Date Title
WO2022242519A1 (zh) 自发电开关及其处理方法、控制系统
WO2022242516A1 (zh) 开关控制方法、接收端控制方法、自发电开关与接收端
WO2022242526A1 (zh) 自发电无线开关、受控设备与控制系统
CN104281247B (zh) 执行唤醒控制的方法及装置
CN216649662U (zh) 自发电无线开关
CN113300473B (zh) 智能控制器及其处理方法、控制系统
CN113517951B (zh) 自发电开关及其处理方法、接收器及其处理方法
CN109698088B (zh) 一种按键模组
WO2022032650A1 (zh) 超薄自供电无线开关及其方法与应用
CN105487491A (zh) 一种基于智能手环的家电家居设备控制系统及方法
CN113423026B (zh) 无线开关及其处理方法,以及控制系统
CN216016509U (zh) 控制系统
CN108267209A (zh) 一种地砖
EP3902158B1 (en) Optical networking method, optical communication device, and optical networking system
CN203104880U (zh) 一种电子设备
CN111918448A (zh) 控制系统和其串联式控制器、多帧自发电开关及控制方法
CN111654943A (zh) 一种具有无源动能开关控制的智能led灯及其实现方法
CN111478621A (zh) 利用一次循环操作产生信号的压电装置及信号发生方法
CN217765011U (zh) 一种开关状态探测器
CN201819633U (zh) 一种具有自诊断功能的数码电子雷管起爆器
CN212965783U (zh) 控制系统和其串联式控制器及多帧自发电开关
CN212210985U (zh) 利用两次脉冲驱动的压电发信装置
CN115118586B (zh) 自发电开关及其处理方法、电子设备及控制系统
CN214464741U (zh) 一种多功能充气泵
CN211959176U (zh) 利用两次脉冲驱动的压电发信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22803841

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22803841

Country of ref document: EP

Kind code of ref document: A1