CN117560283A - Self-generating switch, distribution network method thereof and processing system - Google Patents

Self-generating switch, distribution network method thereof and processing system Download PDF

Info

Publication number
CN117560283A
CN117560283A CN202311505988.2A CN202311505988A CN117560283A CN 117560283 A CN117560283 A CN 117560283A CN 202311505988 A CN202311505988 A CN 202311505988A CN 117560283 A CN117560283 A CN 117560283A
Authority
CN
China
Prior art keywords
switch
distribution network
network
channel
module
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202311505988.2A
Other languages
Chinese (zh)
Inventor
刘允臻
金莹
程小科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Linptech Co Ltd
Original Assignee
Wuhan Linptech Co Ltd
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 Wuhan Linptech Co Ltd filed Critical Wuhan Linptech Co Ltd
Priority to CN202311505988.2A priority Critical patent/CN117560283A/en
Publication of CN117560283A publication Critical patent/CN117560283A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K7/00Arrangements for handling mechanical energy structurally associated with dynamo-electric machines, e.g. structural association with mechanical driving motors or auxiliary dynamo-electric machines
    • H02K7/18Structural association of electric generators with mechanical driving motors, e.g. with turbines
    • H02K7/1869Linear generators; sectional generators
    • H02K7/1876Linear generators; sectional generators with reciprocating, linearly oscillating or vibrating parts
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The invention provides a self-generating switch, a distribution network method and a processing system thereof, wherein a storage module in the self-generating switch stores current channel information; the communication processing module in the self-generating switch is electrically connected with the distribution network switch and is used for: reading current channel information stored by the storage module after power-on; detecting the state of the distribution network switch, and if the distribution network switch is in a trigger state, determining to be in a distribution network mode; when in the distribution network mode, generating and sending out the distribution network message to the outside based on the read current channel information, so that: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.

Description

Self-generating switch, distribution network method thereof and processing system
Technical Field
The invention relates to the field of switches, in particular to a self-generating switch, a distribution network method and a processing system thereof.
Background
A self-generating switch, which can be understood as a switch provided with a generator, in which the electrical energy required by the circuit can be supplied by the electrical energy generated by the generator. Meanwhile, in the self-generating switch, a communication processing module can be configured, and external communication is further performed by the communication processing module.
However, in the related art, the communication processing module indicates the switching of the external communication channel by the dedicated frequency point indication portion, and further, if the communication is erroneously touched, the communication is likely to fail, and in addition, the frequency point indicated by the frequency point indication portion is limited by the circuit structure of the frequency point indication portion, for example, when the frequency point indication portion adopts dialing, the number of shift positions of the dialing will limit the number of frequency points indicated by the frequency point indication portion.
Disclosure of Invention
The invention provides a self-generating switch, a distribution network method thereof and a processing system, which are used for solving the problem of communication failure easily caused.
According to a first aspect of the present invention, there is provided a self-generating switch comprising:
a key, at least part of which is configured to be displaceable in response to an external action, the external action including an action of pressing down the key;
at least one generator arranged to convert mechanical energy into electrical energy in response to said displacement;
the switching circuit comprises a communication processing module, an energy storage module, a rectifying module, a voltage output module and a storage module;
the generator comprises an induction part and a motion part; the communication processing module is electrically connected with the storage module, the sensing part is electrically connected with the energy storage module through the rectifying module, and the energy storage module is electrically connected with the communication processing module and the storage module through the voltage output module; the key is directly or indirectly transmitted to the motion part; wherein: the movement part is arranged to be capable of being driven to move in a first direction when the key is pressed; the sensing part is configured to be capable of generating a first sensing voltage in response to movement of the moving part in the first direction; the rectification module can rectify the first electric energy corresponding to the first induced voltage and then store the first electric energy in the energy storage module; the energy storage module can transmit the stored electric energy to the voltage output module; the voltage output module can output required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified;
The storage module stores current channel information;
the communication processing module is electrically connected with the distribution network switch and is used for:
reading current channel information stored by the storage module after power-on;
detecting the state of the distribution network switch, and if the distribution network switch is in a trigger state, determining to be in a distribution network mode;
when in the distribution network mode, generating and sending out the distribution network message to the outside based on the read current channel information, so that: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
According to a second aspect of the present invention, there is provided a method for distributing a power generating switch, the power generating switch comprising: the power supply comprises keys, a generator, a distribution network switch, a switch circuit and a reset piece; the switching circuit comprises a communication processing module, an energy storage module, a rectifying module, a voltage output module, a storage module and a distribution network switch; the generator comprises an induction part and a motion part;
the communication processing module is electrically connected with the memory, the sensing part is electrically connected with the energy storage module through the rectifying module, and the energy storage module is electrically connected with the communication processing module and the memory through the voltage output module; the key is directly or indirectly transmitted to the moving part, the reset piece is directly or indirectly transmitted to the moving part of the generator, and the distribution network switch is electrically connected with the communication processing module;
The network distribution method comprises the following steps:
when the key is pressed down, the motion part is driven to move in a first direction, the reset piece is deformed, and reset acting force for overcoming the deformation is generated;
after the acting force of the reset piece for pressing the key is removed, the reset acting force is utilized to drive the motion part to move in the second direction, and the key rebounds;
the sensing part generates a first sensing voltage when the moving part moves in a first direction, and generates a second sensing voltage when the moving part moves in a second direction;
the energy storage module stores first electric energy corresponding to the first induced voltage and/or second electric energy corresponding to the second induced voltage, and transmits the stored electric energy to the voltage output module;
the voltage output module outputs required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified;
the communication processing module reads the current channel information stored by the storage module after power-on;
The communication processing module detects the state of the distribution network switch, and if the distribution network switch is in a trigger state, the distribution network switch is determined to be in a distribution network mode;
when the communication processing module is in the distribution network mode, the communication processing module generates and sends out the distribution network message to the outside based on the read current channel information so as to enable the distribution network message to be: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
According to a third aspect of the present invention, there is provided a method for distributing a power generating switch, the power generating switch comprising: the device comprises keys, a generator, a distribution network switch, a channel change-over switch, a switch circuit and a reset piece; the switching circuit comprises a communication processing module, an energy storage module, a rectifying module, a voltage output module, a storage module and a distribution network switch; the generator comprises an induction part and a motion part;
the communication processing module is electrically connected with the memory, the sensing part is electrically connected with the energy storage module through the rectifying module, and the energy storage module is electrically connected with the communication processing module and the memory through the voltage output module; the key is directly or indirectly transmitted to the moving part, the reset piece is directly or indirectly transmitted to the moving part of the generator, and the distribution network switch and the channel change-over switch are electrically connected with the communication processing module;
The network distribution method comprises the following steps:
when the key is pressed down, the motion part is driven to move in a first direction, the reset piece is deformed, and reset acting force for overcoming the deformation is generated;
after the acting force of the reset piece for pressing the key is removed, the reset acting force is utilized to drive the motion part to move in the second direction, and the key rebounds;
the sensing part generates a first sensing voltage when the moving part moves in a first direction, and generates a second sensing voltage when the moving part moves in a second direction;
the energy storage module stores first electric energy corresponding to the first induced voltage and/or second electric energy corresponding to the second induced voltage, and transmits the stored electric energy to the voltage output module;
the voltage output module outputs required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified;
the communication processing module reads the current channel information stored by the storage module after power-on;
The communication processing module detects states of the distribution network switch and the channel change-over switch; if the distribution network switch is in a trigger state and the channel change-over switch is not in the trigger state, determining to be in a distribution network mode; if the channel change-over switch is in a trigger state, determining that the channel change-over switch is in a channel matching mode;
when the communication processing module is in the channel matching mode, the communication processing module switches the read current channel information according to a preset channel switching sequence to obtain the switched channel information;
the communication processing module takes the channel pointed by the switched channel information as a transmission channel when the channel is matched, and generates and utilizes the transmission channel when the channel is matched to send out a channel matching message, so that: if the transmission channel is matched with the channel adopted by the target network when the channels are matched, the gateway of the target network can externally indicate the successful result of the channel matching;
the communication processing module updates the switched channel information to the storage module when the communication processing module is in the channel matching mode so as to serve as new current channel information;
when in the distribution network mode, the communication processing module generates and sends out the distribution network message to the outside based on the read current channel information, so that: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
According to a fourth aspect of the present invention there is provided a switch-based processing system comprising the self-generating switch of the first aspect, and the gateway.
In the self-generating switch, the distribution network method and the processing system provided by the invention, the storage module of the self-generating switch can store the current channel information; and the communication processing module can read the current channel information after power-on, and then generate and send out the distribution network message based on the read current channel information when the communication processing module is in the distribution network mode, so as to realize the distribution network process. Therefore, the invention can avoid the frequency point used by changing due to the false touch of the frequency point indicating part, and ensure the stability of the frequency point.
In addition, the current channel information is read after being stored, so that the number of the channels which can be stored and used is not limited by the circuit structure of the frequency point indicating part any more, and the frequency points can be conveniently and freely adapted and selected.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of a switch-based processing system in accordance with one embodiment of the present invention;
FIG. 2 is a schematic diagram of a switch-based processing system in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of a self-generating switch in accordance with an embodiment of the present invention;
FIG. 4 is a second schematic diagram of a self-generating switch according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a self-generating switch according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a second embodiment of a self-generating switch;
FIG. 7 is a flow chart of a method for distributing power to a power generation switch according to an embodiment of the invention;
fig. 8 is a flow chart of a method for distributing power to a power generation switch according to another embodiment of the present invention.
Reference numerals illustrate:
1-a self-generating switch; 101-a key; 102-a communication processing module; a 103-generator; 1031-a motion part; 1032—a sensing part; 104-a rectifying module; 105-an energy storage module; 106-a voltage output module; 107-a memory module; 108-a distribution network switch; 109-an action recognition module; 110-a key recognition module; 111-reset piece; 112-channel change-over switch; 113-silica gel pad; 114-a transmission member; 115-a circuit board; 116-bottom shell; 117-hole site; 118-a silica gel pad groove; 119-hole site.
2-gateway;
3-a target network;
4-terminal;
5-in-network terminals.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present specification, it should be understood that the directions or positional relationships indicated by the terms "upper", "lower surface", "upper surface", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of description and simplification of description, and do not indicate or imply that the apparatus or element to be referred to must have a specific direction, be configured and operated in a specific direction, and thus should not be construed as limiting the present invention.
In the description of the present specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
In the description of the present invention, the meaning of "plurality" means a plurality, for example, two, three, four, etc., unless explicitly specified otherwise.
In the description of the present invention, unless explicitly stated and limited otherwise, the term "coupled" and the like should be construed broadly, and may be, for example, fixedly coupled, detachably coupled, or integrally formed; may be mechanically connected, may be electrically connected or may communicate with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Referring to fig. 1, a switch-based processing system according to an embodiment of the present invention includes a self-generating switch 1 and a gateway 2 of a target network 3.
Based on the self-generating switch 1, the embodiment of the invention also provides: a self-generating switch and a network distribution method of the self-generating switch.
The number of the gateways 2 may be one or a plurality of any devices or combinations of devices capable of forming the corresponding target network 3, and in particular, the gateway 2 may be a Zigbee gateway, but is not limited thereto.
In one embodiment, referring to fig. 2, the target network 3 may have an in-network terminal,
the in-network terminal 5 may be any device that accesses the gateway 2, for example, a device that can be controlled based on the network of the gateway 2. In particular examples, the in-network terminal 5 may be, for example, a wall switch, a smart light, a curtain, etc.
In some examples, the processing system may further include a terminal 4, where the terminal 4 may be an in-network terminal 5, or may be a terminal independent of the in-network terminal 5 (e.g., as shown in fig. 2), and the terminal 4 may be, for example, a mobile phone, a tablet computer, a computer, etc., and the terminal may implement interaction with a person. The terminal may communicate with the gateway through a network of the gateway, or may communicate with the gateway in other manners. Further, a program (e.g., app) for realizing functions described later may be configured in the terminal, and man-machine interaction may be realized based on the program.
In an example, the gateway 2 is a Zigbee gateway, and the corresponding network is a Zigbee network, where the self-generating switch 1 is a self-generating wireless switch based on Zigbee (where a wireless communication unit may use a Zigbee radio frequency unit), various controlled devices based on Zigbee, such as an intelligent wall switch, a curtain, a luminaire group, and so on. The Zigbee self-generating wireless switch may send a control message of Zigbee to control the in-network terminal 5 (also may be described as a Zigbee device) that is a Zigbee receiver.
In addition, the Zigbee device may communicate with the Zigbee gateway, receive a control command of the Zigbee gateway, and report its own status to the Zigbee gateway. All devices accessed to the Zigbee network are stored in a device list of the gateway, and when the Zigbee self-power-generation wireless switch and the Zigbee gateway are configured, a user can select any one or more devices in the gateway device list as controlled devices of the Zigbee self-power-generation wireless switch.
Any device accessing the Zigbee network may choose whether to turn on the proxy function. And once the Zigbee device with the agent function is started to receive the Zigbee self-generating wireless switch control message of the matched network, other members in the Zigbee network where the Zigbee device is positioned can forward the Zigbee self-generating wireless switch control message. When the distance between the Zigbee self-power-generation wireless switch and the controlled device is too far, the controlled device cannot directly receive the control message of the Zigbee self-power-generation wireless switch, the problem can be solved by proxy (relay) through other devices in the Zigbee network, and the control distance is increased.
In a specific example, a local area network is built between a plurality of in-network terminals 5 and a gateway 2, a self-generating switch can be used for carrying out network distribution based on a network distribution method and the gateway, and can also be used for carrying out network distribution with other in-network terminals, and as part or all of in-network terminals have proxy functions (can be set as relay nodes), any one of the in-network terminals in the self-generating switch and the local area network can be added into the local area network after being distributed;
The gateway 2 may add each in-network terminal 5 to the control list of the self-generating switch 1, so as to realize the control of each in-network terminal by the self-generating switch. The control can be based on the local area network only, and an external network is not required to be connected; each intelligent terminal can be a product of different manufacturers and can be controlled by a self-generating switch only by being connected to the local area network; the gateway can be a single-mode gateway or a multimode gateway, and if the gateway is a multimode gateway, the gateway can also be switched between communication protocols (ZigBee protocol, bluetooth protocol, private protocol and the like); further, in the processing system of the specific embodiment:
1) Any switching among a plurality of communication protocols can be supported, and products of other main stream protocols can be controlled by the self-generating switch in a linkage way;
2) The switching of a plurality of frequency points can be realized, and the self-generating switch is adapted to different communication channels;
3) One self-generating switch can control different products of a plurality of factories;
4) The App of the terminal 4 can display the current channel information in real time, rapidly switch channels and rapidly allocate networks;
5) And the method can also support linkage control in a local area network, and has no fear of breaking an external network.
Referring to fig. 3, the self-generating switch 1 includes:
at least one key 101, at least part of the key 101 being arranged to be capable of generating a displacement in response to an external action, the external action comprising an external action of pressing the key; external actions (e.g., actions to remove a depressing force) to rebound the key; further, under the external action, actions that may occur by the key include, for example, a pressing action and a rebound action;
At least one generator 103, said generator 103 being arranged to convert mechanical energy into electrical energy at least once in response to said displacement;
a switching circuit electrically connected to the generator 103, the generator 103 providing operating power to the switching circuit;
the switching circuit comprises a communication processing module 102, an energy storage module 105, a rectifying module 104, a voltage output module 106 and a storage module 105.
The generator 103 comprises a sensing part 1032 and a moving part 1031;
the moving part 1031 may be understood as a component or a combination of components that can be driven by at least one of a button, a reset element, etc. to move, and the sensing part 1032 may be understood as a component or a combination of components that can interact with the moving part 1031 to sense electric energy when the moving part moves, and any structure that can generate electric energy based on movement in the art may be used as an alternative of the embodiment of the present invention.
In a specific example, the generator 103 may be configured with a permanent magnet portion, a magnetic conductive portion, and a coil portion, and the coil portion may be disposed on the magnetic conductive portion, so that when the permanent magnet portion and the magnetic conductive portion move relatively, the coil portion may generate an induced voltage. The coil portion thereof may be regarded as the above-mentioned induction portion 1032, and the permanent magnet portion or the magnetically conductive portion thereof may be regarded as the above-mentioned movement portion 1031, namely: in some examples, the permanent magnet part moves to directly and indirectly drive the key, the reset piece and the like, and in other examples, the magnetic conduction part moves to directly and indirectly drive the key, the reset piece and the like. It can be seen that the sensing portion 1032 may or may not move with the moving portion 1031.
The communication processing module 102 is electrically connected with the storage module 107, the sensing part 1032 is electrically connected with the energy storage module 105 through the rectifying module 104, and the energy storage module 105 is electrically connected with the communication processing module 102 and the storage module 107 through the voltage output module 106; the key is directly or indirectly transmitted to the motion part; wherein: the movement part is arranged to be capable of being driven to move in a first direction when the key is pressed; the sensing part is configured to be capable of generating a first sensing voltage in response to the first direction in which the moving part occurs; the rectifying module 104 is configured to rectify the first electric energy corresponding to the first induced voltage and store the rectified first electric energy in the energy storage module 105; the energy storage module 105 is configured to deliver the stored electrical energy to the voltage output module 106; the voltage output module 106 is configured to output a required power supply voltage to the communication processing module 102 and the storage module 107 by using the electric energy transmitted from the energy storage module 105, so that the communication processing module 102 and the storage module 107 are powered on.
In some embodiments, referring to fig. 4, the self-generating switch 1 further includes a reset element 111.
The reset element 111 is configured to directly or indirectly drive the movement portion 1031 of the generator 103, the reset element 111 is configured to deform in response to movement of the movement portion 1031 in a first direction and generate a reset force that overcomes the deformation, the reset element 111 is further configured to drive the movement portion 1031 in a second direction by using the reset force after the force that presses the key is removed, and the key 101 rebounds;
when the motion part moves in a second direction, a second induced voltage can be generated; the rectifying module 104 is further configured to store a second electric energy corresponding to the second induced voltage in the energy storage module.
Referring to fig. 3, the self-generating switch 1 includes: a storage module 107.
The storage module 107 may be configured to store current channel information, and in particular, the current channel information may be stored in the storage module 107 based on any processing procedure and interaction method. The storage module 107 may be a memory that does not lose data after power failure.
Meanwhile, the storage module 107 can be configured to work only after being electrified, and power is lost after the work, so the storage module 107 can ensure the storage and maintenance of the information and the accuracy of the information by the configuration of the storage module.
Further, the self-generating switch 1 may further include a memory integrated with the communication processing module 102, and the memory may store, for example, codes required for the processing of the communication processing module 10.
In addition to the above current channel information, the storage module 107 may also be configured to store:
current key information representing keys of the current action; and/or:
the verification identifier is used as one of verification bases of messages (such as distribution network messages and control messages).
In an embodiment of the present invention, the self-generating switch includes a distribution switch 108, where the distribution switch 108 may have a state when triggered and a state when not triggered, for example, the distribution switch 108 may be a micro switch (or connected to or driven by a micro switch), and a state when pressed down may be understood as that the distribution switch 108 is triggered, and vice versa, the distribution switch 108 may be considered as not triggered. The distribution network switch 108 can also be implemented by a dial switch, a knob switch, etc.
In one embodiment, the self-generating switch may further include a channel switch 112, and the number of channel switches 112 may be one, or two or more.
The channel switch 112 may have a state when activated and a state when not activated, for example, the channel switch 112 may be a micro switch (or connected to a micro switch), and the state when pressed down may be understood as that the channel switch 112 is activated, whereas the channel switch 112 may be considered as not activated. The channel switch 112 may also be implemented by a dial switch, a knob switch, or the like.
The communication processing module is electrically connected with a distribution network switch 102 and is used for:
reading current channel information stored by the storage module 107 after power-on;
and detecting the state of the distribution network switch, and if the distribution network switch is in a trigger state, determining to be in a distribution network mode.
The distribution network mode is understood to be a mode in which the self-generating switch is suitable for distributing a network with a target network so as to join the target network. In the network distribution mode, the message sent by the self-generating switch due to the pressing of the key can be a network distribution message. In contrast, in one mode of operation, which is different from the distribution mode, the message sent from the power generation switch by the key press may be a control message.
The distribution network message and the control message can be directly sent to the gateway or can be forwarded to the gateway through the in-network terminal in the target network.
The communication processing module 102 is configured to:
when in the distribution network mode, generating and sending out the distribution network message to the outside based on the read current channel information, so that: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
In the related art different from the present application, when a message is sent out from the communication processing module of the self-generating switch, if the currently used channel needs to be determined, the message is implemented based on a device for indicating a frequency point (for example, a frequency point indicating portion), and of course, in this type of scheme, the current channel information may also be stored in the storage module after being determined, however, even if the current channel information is stored in the storage module, the message is not sent out based on the stored current frequency point information, and in general, in this type of scheme, when the current channel information is stored in the storage module, the message may be used by the self-generating switch to forward the information to other terminals.
In one embodiment, the current channel information stored in the storage module is fixed channel information written in the storage module in advance;
the communication processing module is specifically configured to, when generating and sending the distribution network message to the outside based on the read current channel information:
and taking the channel pointed by the read current channel information as the transmission channel when the network is allocated, and generating and utilizing the transmission channel when the network is allocated to send out the network allocation message.
Specifically, the fixed channel information may be channel information that is not changeable and written in the storage module when leaving the factory. It can be seen that in the above scheme, a channel fixing manner is adopted, that is, a channel cannot be switched, and the channel is already agreed with the gateway, that is, there is no process of matching the channel.
In a specific application scenario, the communication processing module may start to work after power-on, after the communication processing module first reads the storage module to obtain the current channel information (for example, the current zigbee channel, that is, the fixed channel information, is written into the storage module when leaving the factory), the authentication identifier (for example, the current serial number), the key information (for example, the key value) when the key is pressed, and the like, to detect whether the distribution switch is triggered (for example, pressed), if the distribution switch is pressed, the communication processing module considers that the current working mode is the distribution mode, if the current working mode is the distribution mode, then sends the distribution message (writes the read information), otherwise sends the control message (or writes the read information), and in some examples, the control message may not be sent.
Correspondingly, when in control, a user can operate the self-generating switch, if the distribution network switch is not pressed, the self-generating switch works in a control mode, the self-generating switch sends a control message, the gateway or other receiving equipment checks message information firstly after receiving the control message, the checking work comprises checking whether the equipment is network-accessed and whether equipment information (namely switch information) is legal, and corresponding controlled equipment is controlled to execute corresponding actions after the checking is passed.
In one embodiment, for a scheme that only a distribution network switch is adopted, but no channel switch is adopted, the communication processing module is specifically configured to, when generating and sending out the distribution network message based on the read current channel information:
switching the read current channel information according to a preset channel switching sequence to obtain switched channel information;
the channel pointed by the channel information after switching is used as a transmission channel when the network is allocated, and the transmission channel when the network is allocated is used for sending out the network allocation message; if the transmission channel is matched with the channel adopted by the target network during network allocation, the gateway of the target network can externally indicate the successful network allocation result;
the communication processing module is further configured to: and when the network distribution mode is in, updating the switched channel information to the storage module to serve as new current channel information.
The above process can be repeatedly implemented, and then, when the distribution switch is triggered, a distribution message can be sent once after the key is pressed each time, the current channel information is switched once each time, when any one of the channels is matched, the gateway can add the self-generating switch into the target network, the user can learn the corresponding distribution result, for example, the gateway can indicate the result of successful channel matching to the outside, at this time, the channel is successfully docked, then, the user can control the distribution switch to be not triggered, so as to fix the current channel information, and then, when the distribution switch is not triggered, the current channel information stored in the storage module is not switched because the key is pressed, and then, when in control (namely, when the control message is generated and sent), the stored current channel information can be used.
As can be seen, when the communication processing module switches the current channel information according to the preset channel switching sequence to obtain the switched channel information, the communication processing module is specifically configured to:
if the current channel information is the last channel in the preset channel switching sequence, determining that the switched channel information points to the first channel in the channel switching sequence;
if the stored current channel information is not the last channel in the preset channel switching sequence, determining that the switched channel information points to the channel in the later sequence in the channel switching sequence.
Further, the channel information may be switched one by one in the channel switching sequence, and in other examples, it is also possible to switch the channel information one by one, for example, part of the channel information may be skipped.
In addition, the channel information after the switching can also be written in the distribution network message and/or the control message. For example, the method can be used for meeting the requirements of verification, message forwarding and the like, and can also play other roles.
For the specific application scenario of a scheme that only a distribution network switch is adopted, but no channel change switch is adopted:
The communication processing module starts working after obtaining electric energy, and reads the current channel information stored in the storage module after starting, and the information such as the current verification identifier (e.g. the current serial number) and the key information (i.e. key value) when pressed;
and detecting whether the distribution network switch is pressed, if the distribution network switch is pressed (namely triggered), the communication processing module considers that the current working mode is a distribution network mode, and sends a distribution network message (writes in the read information), otherwise, sends a control message.
If the network distribution mode is operated, the current channel value is switched to the next channel value and the channel information is stored in the storage module, and the process can occur after the network distribution message is sent or before the network distribution message is sent as new current channel information. If the device is always operating in the distribution network mode, the current channel information stored in the storage module will be cyclically switched in a fixed signal switching sequence among a plurality of channel information (for example, 16 channel information) with one press of the key.
The communication processing module is further configured to, before generating and sending the distribution network message to the outside based on the read current channel information:
And determining that the interval between the time when the key is pressed in the distribution network mode last time and the time when the key is pressed in the distribution network mode last time is larger than a specified threshold value. In a specific embodiment, the specified threshold is set to 20ms, that is, the interval between the time when the key is pressed in the distribution network mode last time and the time when the key is pressed in the distribution network mode last time is greater than 20ms, so as to ensure that a feedback message of the receiving end must be received before the key is pressed next time.
In some examples, if the channel information is not greater than the specified threshold, the network allocation message may not be sent, and the current channel information may not be switched.
The specified threshold may be determined based on the capabilities of the receiving end (e.g., gateway or in-network terminal), the network environment, etc.
In the above scheme, in the network allocation mode, the time interval between two key presses is generally required to be greater than a specified threshold (e.g. 2S), so that the receiving end is prevented from not responding too fast, because the receiving end needs to perform a series of operations to determine whether the network allocation is successful after receiving the network allocation message, which requires a certain time (e.g. in some examples, actual measurement is greater than 2S), so that the key presses are not delayed until the receiving end does not feedback, but then presses.
For a specific application scenario of a scheme that only a distribution network switch is adopted, but a channel change-over switch is not adopted, when a user operates a self-generating switch (for example, presses a key), if the distribution network switch is not pressed, the self-generating switch works in a control mode (namely, the communication processing module is also used for detecting that the distribution network switch is in a non-triggered state and determining that the distribution network switch is in the control mode), the self-generating switch sends a control message, a gateway or other receiving equipment firstly checks message information after receiving the control message, the checking work comprises checking whether the equipment is network-accessed and whether the equipment information is legal or not, and after the checking is passed, corresponding controlled equipment is controlled to execute corresponding actions.
The self-generating switch does not know which channel is adopted by the target network (such as zigbee network) in advance, when a user presses the self-generating switch to operate the self-generating switch, the self-generating switch circularly sends the distribution network message on a plurality of (for example, 16) zigbee channels (i.e., channel information), and when the channel transmitted by the switch is just coincident with the channel adopted by the target network (such as zigbee network), the gateway receives the distribution network message of the self-generating switch. After receiving the distribution network message of the self-generating switch, the gateway checks the information in the distribution network message, if the message content is legal, the gateway automatically adds the self-generating switch into a target network (such as a zigbee network), and after completing the operation of adding equipment, the gateway informs a user in a manner of flashing lights or triggering APP notification of a mobile phone (namely a terminal 4) and the like, at the moment, the user releases the distribution network switch and then operates the self-generating wireless switch to control the in-network terminal in the target network.
For the above scheme employing the distribution network switch 108 instead of the channel change-over switch 112, fig. 5 and 6 provide a specific structure of the self-generating switch.
The self-generating switch further comprises a circuit board 115, a transmission piece 114 (such as a transmission rocker) and a bottom shell 116;
the generator 103, the rectifying module 104, the energy storage module 105, the voltage output module 106, the storage module 107, the distribution network switch 108, and the communication processing module 102 may be disposed on or connected to the circuit board 115, and in a further aspect, the key recognition module 110, the action recognition module 109, and the channel switch 112 may also be disposed on or connected to the circuit board 115.
The button 101 may be connected to the opening side of the bottom case 116 to form a receiving space, and the driving member 114 may be driven between the generator 103, the reset member 111, and the button 101. Furthermore, when the key 101 is pressed down, the reset piece 111 and the generator 103 can be driven by the driving piece 114, and when the reset piece 111 and the generator 103 are reset, the key 101 can be driven by the driving piece 114; the driving element 114, the circuit board 115, and the switches and modules disposed on and connected to the circuit board 115 may be disposed in the accommodating space.
The bottom shell 116 may further be provided with a hole site 117 for operating the distribution network switch 117, so as to conveniently press the distribution network switch 117 (such as a micro switch) to switch channels, and the bottom shell 116 may further be provided with a hole site 119 for conveniently realizing welding of the generator, so as to conveniently weld the generator on a circuit board (i.e. PCB).
In addition, the bottom case 116 may further be provided with a silica gel pad 113, for example, the silica gel pad 113 may be embedded in the groove 118 of the bottom case 116.
In the above scheme that the distribution network switch 108 is adopted instead of the channel switch 112, the distribution network message is sent out while having the functions of channel matching and distribution network, the gateway needs to perform verification on the message content and related work such as message content decryption and identity verification after receiving the distribution network message, and may interact with the cloud according to different application scenarios), so that a larger delay (about 1-2 seconds) exists in the verification process, and the gateway can trigger a prompt of success of distribution network after finishing the verification (i.e. a result of indicating success of distribution network externally). If the network distribution switch is only adopted to realize the network distribution and channel switching, when a user performs network distribution operation, the user needs to wait for 1-2S for each operation before knowing whether the current network distribution operation is successful. If the user distribution network has a faster operating frequency, when the gateway triggers the distribution network successfully, the self-generating switch is already switched to other channels different from the gateway.
Therefore, in one embodiment, a channel switch may be introduced, and the channel is matched through the channel switch, and then the network is configured through the network configuration switch, so that the network configuration message does not need to carry channel matching information, the network configuration message is greatly simplified, the workload of the receiving end is reduced, and the feedback time of the receiving end is shortened.
Specifically, after the communication processing module reads the current channel information stored in the storage module after power-on, the communication processing module is further configured to:
if the channel change-over switch is detected to be triggered, determining that the channel change-over switch is in a channel matching mode;
when the channel matching mode is in, switching the read current channel information according to a preset channel switching sequence to obtain switched channel information;
and taking the channel pointed by the switched channel information as a transmission channel when the channel is matched, generating and utilizing the transmission channel when the channel is matched to externally send out a channel matching message so as to enable the channel to be matched: if the transmission channel is matched with the channel adopted by the target network when the channels are matched, the gateway of the target network can externally indicate the successful result of the channel matching;
the communication processing module is further configured to: and when the channel matching mode is in, updating the switched channel information to the storage module to serve as new current channel information.
The communication processing module, before determining that the network distribution mode is in, further comprises:
it is detected that the channel switch is not triggered.
The communication processing module is specifically configured to, when generating and sending the distribution network message to the outside based on the read current channel information:
And taking the channel pointed by the read current channel information as the transmission channel when the network is allocated, and generating and utilizing the transmission channel when the network is allocated to send out the network allocation message.
Furthermore, when the channel switch is triggered, channel matching can be realized through sending of the channel matching message and switching of the channel information, and when the distribution network switch is triggered and the channel switch is not triggered, sending of the distribution network message can be realized through the channel information which is determined to be matched (namely, the current channel information which is stored in the storage module in the channel matching mode and is successfully matched), and at the moment, the channel is not switched any more.
Meanwhile, in a specific application scene of adopting a distribution network switch and a channel switching switch, before a self-generating switch performs distribution network, a user needs to switch to a channel consistent with a network channel of a target network to communicate with a gateway, so that the user presses a channel switching button first, then operates the self-generating switch, for example, presses a key, after the communication processing module is started, firstly reads the content of a storage module to acquire current channel information, then detects whether the channel switching switch is pressed, if so, a channel matching mode is identified, the channel is switched to a next channel, new channel information is stored in a storage module as the current channel information, and then a channel matching message is sent by the new channel. After the zigbee receiving device or gateway nearest to the self-generating switch receives the channel matching message, the flashing light or triggering APP (e.g. APP of the terminal) notifies an event to prompt the user that the signal of the current self-generating switch coincides with the channel of the target network (i.e. indicates the result of successful channel matching), and the user does not need to switch the channel any more.
After the channel is successfully docked (i.e. the channel is successfully matched), the user can perform network allocation operation on the self-generating switch. The method comprises the steps of firstly pressing a distribution network switch, then operating the self-generating switch, namely pressing a key, firstly reading the content of a storage module after the communication processing module is started to obtain current channel information, then detecting the distribution network switch, identifying a distribution network mode if the distribution network switch is pressed, constructing a distribution network message by the communication processing module, and sending the distribution network message according to the obtained current channel information. After receiving the network configuration message, the gateway decrypts and verifies the switch information, and if the switch information is legal, the gateway adds the self-generating switch into the target network. Thus, the distribution network is completed.
When the control is needed, if the self-generating switch is operated by a user (for example, a key is pressed), and if the distribution network switch and the channel change-over switch are not pressed, the self-generating switch works in a control mode, a control message is sent by the self-generating switch, the message information is checked firstly after the gateway or other in-network equipment receives the control message, the checking work comprises checking whether the equipment is network-accessed or not and whether the equipment information is legal or not, and corresponding controlled equipment is controlled to execute corresponding actions after the checking is passed.
The self-generating switch does not know which channel is adopted by the target network in advance, a user presses the distribution network switch to operate the self-generating switch, the switch can circularly send channel switching messages on 16 channels, and when the channel transmitted by the switch is just overlapped with the channel adopted by the target network, the gateway can receive the channel switching messages of the self-generating switch.
After receiving the channel switching message from the power generation switch, the gateway can flash or inform that the channel matching is successful (namely, the result of indicating that the channel matching is successful externally) through app feedback of the terminal.
And then entering a distribution network mode, sending a distribution network message to a gateway by the self-generating wireless switch according to a channel successfully matched, checking switching information, a secret key and the like in the distribution network message by the gateway after receiving the distribution network message, automatically adding the self-generating switch into a target network by the gateway if the message content is legal, and informing a user in a manner of flashing lights or triggering a terminal APP notification and the like after the gateway finishes the operation of adding the self-generating switch, wherein the user can control an in-network terminal in the target network by loosening the distribution network switch and then operating the self-generating wireless switch.
Therefore, the channel matching message can be free from decryption and verification, only needs local operation, and has short delay prompted by a user.
In one embodiment, the number of the channel switches is at least two; different channel switches correspond to different channel switching sequences;
the communication processing module switches the read current channel information according to a preset channel switching sequence, and before obtaining the switched channel information, the communication processing module further comprises:
and responding to the triggered channel switching switch, and determining the corresponding channel switching sequence as the preset channel switching switch.
In a further example, the at least two channel switches comprise:
a first channel switch corresponding to the first channel switching sequence, and:
a second channel switching switch corresponding to the second channel switching sequence;
the communication processing module is specifically configured to, when determining a corresponding channel switching sequence as the preset channel switching switch in response to the triggered channel switching switch:
if the triggered channel switching switch is the first channel switching switch, determining that the first channel switching sequence is the preset channel switching sequence;
and if the triggered channel switching switch is the second channel switching switch, determining that the second channel switching sequence is the preset channel switching sequence.
For example, the first channel switching order is opposite to the second channel switching order.
Based on the above scheme, if the channel is matched too quickly, so that the channel is switched to the next channel when feedback is received, another channel switch can be used to return to the original channel without completely cycling all channels.
In addition, in some examples, the distribution network switch may be multiplexed as a channel switch.
For example, taking the first channel switching sequence and the second channel switching sequence as examples, the communication processing module is further configured to:
when the first channel switching switch is triggered, determining that the distribution network switch is a triggered second channel switching switch and determining that the second channel switching sequence is the preset channel switching sequence;
and when the first channel switching switch is triggered, detecting that the distribution network switch is not triggered, and determining the first channel switching sequence as the preset channel switching sequence.
In one embodiment, if the self-generating switch further includes a channel switch, then:
the communication processing module, prior to determining to be in the control mode, further comprises:
And detecting that the channel change-over switch is in an unactuated state.
In one embodiment, the content of the current message (control message or distribution network message) to be written when the current message is generated may be arbitrarily configured, and when the channel matching message is generated, all or part of information may not be written, specifically, the current message may include, but is not limited to, at least one of the following:
current steering information, the current steering information characterizing a current received steering of the self-generating switch, may include: current key information of a key representing a current action; representing current action information of the current action of the key;
characterizing switching information of a self-generating switch;
control safety information for writing in control message and being verified by gateway or terminal in network;
at least part of distribution network safety information which is used for writing the distribution network message and is verified by the gateway;
a network access request characterizing the need for a self-generating switch to join a target network of a gateway.
In one embodiment, the communication processing module is specifically configured to, when generating the control message:
acquiring current control information and switch information, wherein the current control information characterizes the current received control of the self-generating switch, and the switch information characterizes the self-generating switch;
Writing the switch information, the current control information and the control safety information into the control message so that: and the gateway verifies that the switch information passes, and after the gateway or corresponding equipment in the target network verifies that the control safety information passes, the corresponding equipment executes a control result corresponding to the control message.
The control security information may include at least one of control encryption information, control signature information, and control verification identification, and the switch information may be any information describing the self-generating switch, for example, including at least one of the following: the type, manufacturer, number of keys, etc. of the switch.
Wherein at least part of the control security information may be read from the memory module, or: generated based on information read from the memory module. For example: the public key required by signature and encryption can be stored in the storage module, and after the public key in the storage module is read, the public key can be utilized to sign and encrypt other at least partial information in the control message, so as to obtain corresponding control signature information and control encryption information; for another example: the control encryption information can be stored and maintained in the storage module; also for example: the control verification flag may be formed cumulatively based on the manipulation of the key, for example: after each key is pressed and/or rebounded, the latest control verification identification is accumulated, and can be written into a control message or stored and maintained in a storage module. By controlling the safety information, the safety of control can be ensured.
Aiming at writing switch information and distribution network safety information when generating distribution network messages, the specific scheme is as follows:
the communication processing module can read switching information representing the self-generating switch from the storage module;
when the communication processing module generates a distribution network message, the communication processing module is specifically used for:
writing a network access request, the switch information and the distribution network security information into the distribution network message so that: after receiving the distribution network message, the gateway responds to the network access request to verify the switch information and the distribution network security information, if the switch information and the distribution network security information pass the verification, the gateway adds the self-generating switch to a target network corresponding to the gateway, and the distribution network security information comprises at least one of the following: the distribution network key, the distribution network signature and the distribution network verification identifier may be any information describing the self-generating switch, for example, including at least one of the following: the type, manufacturer, number of keys, etc. of the switch.
Wherein at least part of the distribution network security information may be read from the storage module, or: generated based on information read from the memory module. For example: the public key required by signing and encryption can be stored in the storage module, and after the public key in the storage module is read, the public key can be utilized to sign and encrypt other at least partial information in the distribution network message, so as to obtain corresponding distribution network signature information and distribution network encryption information; for another example: the distribution network encryption information can be stored and maintained in the storage module; also for example: the network authentication identifier may be formed by accumulating key operations, for example: after each key is pressed and/or rebounded, the latest distribution network verification identification is accumulated, and can be written into a control message or stored and maintained in a storage module. By controlling the safety information, the safety of control can be ensured.
In addition, the distribution network verification identifier and the control verification identifier can be stored and maintained as the same verification identifier in the self-generating switch, so that the update is accumulated based on control.
The generation process of the control message can be understood by referring to the content of the above distribution network message.
The content of the channel match message may, for example, contain current channel information and some or all of the switch information, but not security information. For example, only current channel information and a device ID (a type of switch information) of the self-generating switch are transmitted in the channel matching message; and when a single self-generating switch is matched with a channel, the device ID does not need to be sent, when a plurality of self-generating switches are matched with the channel at the same time, the device ID needs to be added in a message, and when the channel is successfully matched, the app of the terminal can feed back the corresponding ID to inform the user of which pairing is successful.
Aiming at writing key identification information when generating a control message and/or a distribution network message:
referring to fig. 4, the self-generating switch 1 further includes a key identification module 110, where the key identification module 110 is electrically connected to the communication processing module 102;
the communication processing module 110 is further configured to:
if the action currently happened by the key is pressing down, then: acquiring current key information through the key identification module, and updating the current key information in the storage module;
If the action currently happened by the key is rebound, then: acquiring stored current key information from the storage module;
the communication processing module is further configured to, when generating the current message: the current key information is written into the current message (such as a control message or a distribution network message).
In a further example, the key identification module 110 may include a detection unit (each detection unit may be, for example, a micro switch, but not limited to, a micro switch and the number of keys 101 may be one or more, and each micro switch and each key 101 are in a one-to-one correspondence, so that the micro switch can be triggered when the corresponding key is pressed down, and further feedback signals are fed back to the communication processing module 102, at this time, the communication processing module 102 may read the fed back signals (for example, key triggering signals) to determine current key information representing the key, so as to learn which key is currently pressed down.
Aiming at writing key identification information when generating a control message and/or a distribution network message:
referring to fig. 4, the self-generating switch 1 further includes an action recognition module 109; the action recognition module 109 electrically connects the generator (specifically, the induction section 1032 connectable to the generator) with the communication processing module 102;
The communication processing module 102 is further configured to, before generating the current message:
after the communication processing module and the storage module are electrified, the action of the key currently occurs is identified through the action identification module 109, so that current action information is obtained;
the communication processing module 102 is further configured to, when generating the distribution network message and/or the control message: and writing the current action information into a message.
In a further example, the action recognition module includes a press recognition unit and a rebound recognition unit; the pressing recognition unit is electrically connected with the induction part of the generator and the communication processing module 102 respectively, and the rebound recognition unit is electrically connected with the induction part 1032 of the generator and the communication processing module 102 respectively.
The communication processing module 102 is specifically configured to, when identifying, by the action identifying module, an action currently occurring by the key:
if the communication processing module receives the specified signal sent by the pressing identification unit, determining that the action which occurs currently is pressing; wherein the push-down recognition unit transmits the designation signal to the communication processing module only when the generator 103 generates the first induced voltage;
If the communication processing module 102 receives the specified signal sent by the rebound identification unit 1092, it determines that the currently occurring action is rebound, where the rebound identification unit sends the specified signal to the communication processing module only when the generator 103 generates the second induced voltage.
The specific signal may be any of the following: a high level signal, a high pulse signal, a low level signal, and a low pulse signal.
In one embodiment, the communication processing module is further configured to:
and stopping working after sending out the message.
Referring to fig. 7, the embodiment of the present invention further provides a network distribution method, which can be understood as a network distribution method under a scheme of adopting a network distribution switch instead of adopting a channel switch, including:
s601: when the key is pressed down, the motion part is driven to move in a first direction, the reset piece is deformed, and reset acting force for overcoming the deformation is generated;
s602: after the acting force of the reset piece for pressing the key is removed, the reset acting force is utilized to drive the motion part to move in the second direction, and the key rebounds;
S603: the sensing part generates a first sensing voltage when the moving part moves in a first direction;
s604: generating a second induced voltage when the motion part moves in a second direction;
s605: the energy storage module stores first electric energy corresponding to the first induced voltage and/or second electric energy corresponding to the second induced voltage, and transmits the stored electric energy to the voltage output module;
s606: the voltage output module outputs required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified;
s607: the communication processing module reads the current channel information stored by the storage module after power-on;
s608: the communication processing module detects the state of the distribution network switch, and if the distribution network switch is in a trigger state, the distribution network switch is determined to be in a distribution network mode;
s609: when the communication processing module is in the distribution network mode, generating and sending out the distribution network message based on the read current channel information;
and then can make: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
Optionally, the current channel information stored in the storage module is fixed channel information written in the storage module in advance;
the communication processing module generates and sends out the distribution network message to the outside based on the read current channel information, and specifically includes:
and the communication processing module takes the channel pointed by the read current channel information as the transmission channel when the network is allocated, and generates and utilizes the transmission channel when the network is allocated to send the network allocation message outwards.
Optionally, the communication processing module generates and sends out the distribution network message to the outside based on the read current channel information, which specifically includes:
the communication processing module switches the read current channel information according to a preset channel switching sequence to obtain the switched channel information;
the communication processing module takes the channel pointed by the switched channel information as the transmission channel when the network is allocated, and generates and utilizes the transmission channel when the network is allocated to send out the network allocation message;
the network distribution method further comprises the following steps:
and the communication processing module updates the channel information after switching to the storage module when in the network distribution mode so as to serve as new current channel information.
Optionally, before the communication processing module generates and sends the distribution network packet to the outside based on the read current channel information, the communication processing module further includes:
and the communication processing module determines that the interval between the time when the key is pressed in the distribution network mode last time and the time when the key is pressed in the distribution network mode last time is larger than a specified threshold value.
In the foregoing, the description of the scheme that only the distribution network switch is adopted, and the channel matching switch is not adopted, which is no matter the technical means, the technical effect or any other content, can be taken as an example of the above distribution network method.
Referring to fig. 8, the implementation of the present invention further provides a power distribution method of a power generation switch, which can be regarded as a power distribution method of a power generation switch including a power distribution switch and a channel matching switch, and the method includes:
s701: when the key is pressed down, the motion part is driven to move in a first direction, the reset piece is deformed, and reset acting force for overcoming the deformation is generated;
s702: after the acting force of the reset piece for pressing the key is removed, the reset acting force is utilized to drive the motion part to move in the second direction, and the key rebounds;
S703: the sensing part generates a first sensing voltage when the moving part moves in a first direction;
s704: generating a second induced voltage when the motion part moves in a second direction;
s705: the energy storage module stores first electric energy corresponding to the first induced voltage and/or second electric energy corresponding to the second induced voltage, and transmits the stored electric energy to the voltage output module;
s706: the voltage output module outputs required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified;
s707: the communication processing module reads the current channel information stored by the storage module after power-on;
s708: the communication processing module detects states of the distribution network switch and the channel change-over switch;
s709: whether the channel change-over switch is in a trigger state;
s710: whether the distribution network switch is in a trigger state;
if the determination in step S709 is negative, the determination in step S710 is positive, the following steps may be performed:
s711: determining that the network distribution mode is in;
s712: when the communication processing module is in the distribution network mode, the communication processing module generates and externally sends out the distribution network message based on the read current channel information;
And then can make: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
If the determination in step S709 is yes, the following steps may be performed:
s713: determining that the channel matching mode is in;
s714: when the communication processing module is in the channel matching mode, the communication processing module switches the read current channel information according to a preset channel switching sequence to obtain the switched channel information;
s715: the communication processing module takes the channel pointed by the switched channel information as a transmission channel when the channel is matched, and generates and utilizes the transmission channel when the channel is matched to send out a channel matching message;
and then can make: if the transmission channel is matched with the channel adopted by the target network when the channels are matched, the gateway of the target network can externally indicate the successful result of the channel matching;
s716: the communication processing module updates the switched channel information to the storage module when the communication processing module is in the channel matching mode so as to serve as new current channel information;
Optionally, the number of the channel change-over switches is at least two; different channel switches correspond to different channel switching sequences;
the communication processing module switches the read current channel information according to a preset channel switching sequence, and before obtaining the switched channel information, the communication processing module further comprises:
and the communication processing module responds to the triggered channel switching switch and determines the corresponding channel switching sequence as the preset channel switching switch.
Optionally, the at least two channel switches comprise:
a first channel switch corresponding to the first channel switching sequence, and:
a second channel switching switch corresponding to the second channel switching sequence;
the communication processing module responds to the triggered channel switching switch, determines the corresponding channel switching sequence as the preset channel switching switch, and comprises the following steps:
if the triggered channel switching switch is the first channel switching switch, determining that the first channel switching sequence is the preset channel switching sequence;
and if the triggered channel switching switch is the second channel switching switch, determining that the second channel switching sequence is the preset channel switching sequence.
Optionally, the first channel switching order is opposite to the second channel switching order.
Optionally, the communication processing module generates and sends out the distribution network packet to the outside based on the read current channel information, including:
and the communication processing module takes the channel pointed by the read current channel information as the transmission channel when the network is allocated, and generates and utilizes the transmission channel when the network is allocated to send the network allocation message outwards.
Optionally, the communication processing module switches the read current channel information according to a preset channel switching sequence to obtain the switched channel information, including:
if the current channel information read is the last channel in the channel switching sequence, the communication processing module determines that the switched channel information points to the first channel in the channel switching sequence;
if the stored current channel information is not the last channel in the channel switching sequence, the communication processing module determines that the switched channel information points to the channel in the later sequence in the channel switching sequence.
Optionally, the network allocation method further includes: the communication processing module acquires switching information representing the self-generating switch;
The process of the communication processing module for generating the distribution network message specifically comprises the following steps:
the communication processing module writes a network access request, the switch information and the network distribution safety information into the network distribution message so that: after receiving the network distribution message, the gateway responds to the network access request to verify the switch information and the network distribution safety information, if the switch information and the network distribution safety information pass the verification, the gateway adds the self-generating switch to the target network, and the network distribution safety information comprises at least one of the following components: distribution network key, distribution network signature and distribution network verification identifier.
Optionally, the network allocation method further includes: after the communication processing module sends out a message, the communication processing module is powered down to stop working.
In the description of the present specification, the descriptions of the terms "one embodiment," "an embodiment," "a particular implementation," "an example," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. A self-generating switch, comprising:
a key, at least part of which is arranged to be displaceable in response to an external action;
at least one generator arranged to convert mechanical energy into electrical energy in response to said displacement;
and a switching circuit electrically connected to the generator, the switching circuit being supplied with operating power by the generator.
2. The self-generating switch of claim 1, wherein the switching circuit comprises a communication processing module, an energy storage module, a rectifying module, a voltage output module, and a storage module;
The generator comprises an induction part and a motion part; the communication processing module is electrically connected with the storage module, the sensing part is electrically connected with the energy storage module through the rectifying module, and the energy storage module is electrically connected with the communication processing module and the storage module through the voltage output module; the key is directly or indirectly transmitted to the motion part; the external action includes an action of pressing a key, wherein: the movement part is arranged to be capable of being driven to move in a first direction when the key is pressed; the sensing part is configured to be capable of generating a first sensing voltage in response to movement of the moving part in the first direction; the rectification module can rectify the first electric energy corresponding to the first induced voltage and then store the first electric energy in the energy storage module; the energy storage module can transmit the stored electric energy to the voltage output module; the voltage output module can output required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified.
3. The self-generating switch of claim 2, wherein the memory module stores current channel information;
The communication processing module is electrically connected with the distribution network switch and is used for:
detecting the state of the distribution network switch, and if the distribution network switch is in a trigger state, determining to be in a distribution network mode;
when in the distribution network mode, generating and sending out the distribution network message to the outside based on the read current channel information, so that: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
4. A self-generating switch according to claim 3, wherein the current channel information stored in the memory module is fixed channel information previously written into the memory module;
the communication processing module is specifically configured to, when generating and sending the distribution network message to the outside based on the read current channel information:
and taking the channel pointed by the read current channel information as the transmission channel when the network is allocated, and generating and utilizing the transmission channel when the network is allocated to send out the network allocation message.
5. The self-generating switch according to claim 3, wherein the communication processing module is configured to, when generating and externally sending the distribution network message based on the read current channel information:
Switching the read current channel information according to a preset channel switching sequence to obtain switched channel information;
the channel pointed by the channel information after switching is used as a transmission channel when the network is allocated, and the network allocation message is sent out by using the transmission channel when the network is allocated, wherein if the transmission channel when the network is allocated is matched with the channel adopted by the target network, the gateway of the target network can indicate the successful result of the network allocation;
the communication processing module is further configured to: and when the network distribution mode is in, updating the switched channel information to the storage module to serve as new current channel information.
6. The self-generating switch of claim 5, wherein the switched channel information is written in the distribution network message.
7. The self-generating switch of claim 5, wherein the communication processing module is further configured to, prior to generating and externally issuing the distribution network message based on the read current channel information:
and determining that the interval between the time when the key is pressed in the distribution network mode last time and the time when the key is pressed in the distribution network mode last time is larger than 20ms.
8. The utility model provides a join in marriage net method of self-generating switch which characterized in that, self-generating switch includes: the power supply comprises keys, a generator, a distribution network switch, a switch circuit and a reset piece; the switching circuit comprises a communication processing module, an energy storage module, a rectifying module, a voltage output module, a storage module and a distribution network switch; the generator comprises an induction part and a motion part;
the communication processing module is electrically connected with the memory, the sensing part is electrically connected with the energy storage module through the rectifying module, and the energy storage module is electrically connected with the communication processing module and the memory through the voltage output module; the key is directly or indirectly transmitted to the moving part, the reset piece is directly or indirectly transmitted to the moving part of the generator, and the distribution network switch is electrically connected with the communication processing module;
the network distribution method comprises the following steps:
when the key is pressed down, the motion part is driven to move in a first direction, the reset piece is deformed, and reset acting force for overcoming the deformation is generated;
after the acting force of the reset piece for pressing the key is removed, the reset acting force is utilized to drive the motion part to move in the second direction, and the key rebounds;
The sensing part generates a first sensing voltage when the moving part moves in a first direction, and generates a second sensing voltage when the moving part moves in a second direction;
the energy storage module stores first electric energy corresponding to the first induced voltage and/or second electric energy corresponding to the second induced voltage, and transmits the stored electric energy to the voltage output module;
the voltage output module outputs required power supply voltage to the communication processing module and the storage module by utilizing the electric energy transmitted by the energy storage module, so that the communication processing module and the storage module are electrified.
9. The distribution network method according to claim 8, characterized in that the distribution network method further comprises:
the communication processing module detects the state of the distribution network switch after power is on, and if the distribution network switch is in a trigger state, the distribution network switch is determined to be in a distribution network mode;
when the communication processing module is in the distribution network mode, based on the read current channel information, generating and sending out a distribution network message, so that: if the transmission channel of the distribution network adopted when the distribution network message is sent out is matched with the channel adopted by the target network, the gateway of the target network can add the self-generating switch into the target network after the distribution network message is acquired and checked to pass.
10. A switch-based processing system, comprising a self-generating switch according to any one of claims 1 to 7 or a self-generating switch capable of implementing the network deployment method according to claims 8, 9, and a gateway.
CN202311505988.2A 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system Pending CN117560283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311505988.2A CN117560283A (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311505988.2A CN117560283A (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system
CN202111301157.4A CN114156101B (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202111301157.4A Division CN114156101B (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system

Publications (1)

Publication Number Publication Date
CN117560283A true CN117560283A (en) 2024-02-13

Family

ID=80459334

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111301157.4A Active CN114156101B (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system
CN202311505988.2A Pending CN117560283A (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202111301157.4A Active CN114156101B (en) 2021-11-04 2021-11-04 Self-generating switch, distribution network method thereof and processing system

Country Status (1)

Country Link
CN (2) CN114156101B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118586B (en) * 2022-06-13 2024-02-06 武汉领普科技有限公司 Self-generating switch, processing method thereof, electronic equipment and control system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116631798A (en) * 2021-06-10 2023-08-22 武汉领普科技有限公司 Self-generating switch, control method thereof, distribution network method, processing method and system

Also Published As

Publication number Publication date
CN114156101A (en) 2022-03-08
CN114156101B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN113220154B (en) Control method and system of refresh rate and electronic equipment
EP3193518B1 (en) Wireless communication terminal, wireless communication system, and wireless communication program
CN114156101B (en) Self-generating switch, distribution network method thereof and processing system
CN113517151B (en) Self-generating switch, control method thereof, network distribution method, processing method and system
CN101165642A (en) Universal input device
WO2018070293A1 (en) Power receiver, power transmitter, power receiver/transmitter, and power transmission system
CN107529125B (en) Bluetooth device communication method and communication device
CN113438564B (en) Control system, terminal processing method, wireless switch and processing method thereof
CN113810884B (en) Electronic equipment connection method, electronic equipment and medium
CN112270824B (en) Pairing request terminal, random code-based remote control system and control method thereof
CN107219780B (en) Control method of controlled device, control device, configuration method of control device and terminal
KR101847654B1 (en) Wireless charging device and method for certifying charging target terminal
CN115665595A (en) Wireless switch, processing method thereof and control system
CN108776442A (en) A kind of self power generation passive switch and its working method
CN111355643B (en) Device and method for pairing between a wireless control device and an electronic unit
WO2023131295A1 (en) Self-power generating switch, processing method therefor, and processing system
CN105094966A (en) Method and device for controlling PC
CN114143908A (en) Wireless pairing method, device and storage medium
KR20190135594A (en) Hub device and hub device control method
CN114336918A (en) Self-generating switch and processing method and processing system thereof
CN114095914B (en) Doorbell control method, receiver, transmitter and storage medium
US9578685B2 (en) Communication gateway and communication system including said communication gateway
CN113691323B (en) Self-generating wireless transmitter, system and control method thereof
CN216959409U (en) Self-generating switch and processing system
US10798550B2 (en) Terminal device, method of controlling terminal device, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication