Instrument control device and instrument
Through the combination of sensor trigger and main control module and non-contact command input technology, the problem of complex mechanical switch button structure and high failure rate of the instrument is solved, achieving high applicability and low failure rate of the instrument in harsh environments, and reducing cost and power consumption.
Patent Information
- Application Number
- CN202323632773.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2033-12-28
AI Technical Summary
The mechanical switch buttons in traditional instruments have complex structures, high failure rates, and poor applicability to harsh environments. They are prone to faults such as poor contact, especially in humid and dusty environments.
It adopts a design that combines sensor triggers and main control modules to achieve contactless command input through magnetic sensitive elements or light sensitive elements, eliminating mechanical switch buttons and using light-emitting diodes or buzzers as signal generators to provide signals that can be perceived by the human body. , simplifying the structure and improving applicability to harsh environments.
The instrument control device has a simple structure, low failure rate, and high applicability to harsh environments. It avoids the problems of high failure rate of mechanical switch keys and poor environmental adaptability of LCD screens, and reduces costs and power consumption.
Smart Images

Figure CN221804538U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of instrument technology, and in particular to an instrument control device and an instrument. Background Art
[0002] Traditional instruments use mechanical switch buttons to control instruments and meters, and use liquid crystal displays to display instrument data. In related technologies, the commonly used control method for instruments is to use mechanical switch buttons, which have the following disadvantages: the mechanical switch buttons have a complex structure, a high failure rate, and poor applicability to harsh environments.
[0003] The above statements are only used to provide background information related to the present application and do not necessarily constitute prior art. Utility Model Content
[0004] The purpose of this application is to provide an instrument control device and an instrument to improve the complex structure, high failure rate and poor applicability to harsh environments of the instrument mechanical switch-type buttons existing in the related art. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0005] According to one aspect of an embodiment of the present application, an instrument control device is provided, comprising a shell, a sensor trigger, a main control module, a sensor connected to the main control module, and a signal generator connected to the main control module; the main control module, the sensor and the signal generator are arranged in the shell; the sensor trigger is movably arranged outside the shell; the sensor is used to generate a level corresponding to the moving action of the sensor trigger when the sensor trigger is within the sensing range of the sensor, and send the level to the main control module; a signal channel structure opposite to the signal generator is arranged on the shell; the signal generator is used to generate a signal that can be perceived by the human body.
[0006] In some embodiments of the present application, the sensor trigger includes a magnet, and the sensor includes a magnetic sensitive element; the magnetic sensitive element is used to generate a low level and send the low level to the main control module in response to the magnet moving to a position where the distance from the magnetic sensitive element is less than or equal to a distance threshold, and to generate a high level and send the high level to the main control module in response to the magnet moving to a position where the distance from the magnetic sensitive element is greater than the distance threshold.
[0007] In some embodiments of the present application, the sensor also includes a first resistor, a first capacitor and a second capacitor. The output end of the magnetic sensitive element is connected to the first end of the first resistor, the second end of the first resistor is connected to the main control module, the first end of the first capacitor is connected to the first end of the first resistor, and the second end of the first capacitor is grounded; the two ends of the second capacitor are respectively connected to the power supply end and the ground end of the magnetic sensitive element.
[0008] In some embodiments of the present application, a light-transmitting structure is provided on the shell, and the sensor trigger includes a light-shielding plate, which can move relative to the shell to cover or expose the light-transmitting structure; the sensor includes a photosensitive element; the photosensitive element is used to generate a low level and send the low level to the main control module in response to the light-shielding plate moving to a position exposing the light-transmitting structure, and to generate a high level and send the high level to the main control module in response to the light-shielding plate moving to a position covering the light-transmitting structure.
[0009] In some embodiments of the present application, the light-transmitting structure includes a through hole.
[0010] In some embodiments of the present application, the through hole is filled with a transparent medium.
[0011] In some embodiments of the present application, the signal channel structure includes a through hole or a transparent plate.
[0012] In some embodiments of the present application, the signal generator includes a light emitting diode and / or a buzzer.
[0013] In some embodiments of the present application, the signal generator includes a light emitting diode and a PNP transistor, the collector of the PNP transistor is connected to the positive electrode of the light emitting diode, and the negative electrode of the light emitting diode is grounded; the base of the PNP transistor is connected to the main control module.
[0014] According to another aspect of the embodiments of the present application, there is provided an instrument, comprising the instrument control device described in any embodiment of the present application, and an instrument base meter connected to the main control module.
[0015] The technical solution provided by one aspect of the embodiments of the present application may have the following beneficial effects:
[0016] The instrument control device provided in the embodiment of the present application includes a shell, a sensor trigger, a main control module, a sensor connected to the main control module and a signal generator connected to the main control module; the main control module, the sensor and the signal generator are arranged in the shell; the sensor trigger is movably arranged outside the shell; the sensor is used to generate a level corresponding to the moving action of the sensor trigger when the sensor trigger is located within the sensing range of the sensor, and send the level to the main control module; a signal channel structure opposite to the signal generator is provided on the shell; the signal generator is used to generate a signal that can be perceived by the human body; the signal input function is realized by combining the sensor trigger with the sensor, the structure is simple, the failure rate is low, the applicability to harsh environments is high, and there is no need to set a mechanical switch type button, thereby improving the situation that the instrument mechanical switch type button existing in the related art has a complex structure, a high failure rate and poor applicability to harsh environments.
[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A schematic diagram of the structure of an instrument control device according to an embodiment of the present application is shown.
[0020] Figure 2 A schematic structural diagram of an instrument control device according to another embodiment of the present application is shown.
[0021] Figure 3 An exploded view of an instrument control device according to an embodiment of the present application is shown.
[0022] Figure 4 A cross-sectional view of an instrument control device according to an embodiment of the present application is shown.
[0023] Figure 5 A schematic diagram of a circuit board in one embodiment of the present application is shown.
[0024] Figure 6A top view of a housing according to one embodiment of the present application is shown.
[0025] Figure 7 A circuit diagram of an instruction input action detection module in one embodiment of the present application is shown.
[0026] Figure 8 A circuit diagram of an LED display module in one embodiment of the present application is shown.
[0027] Fig. 9 A cross-sectional view of an instrument control device according to another embodiment of the present application is shown.
[0028] Fig.10 A circuit structure block diagram of an instrument according to an embodiment of the present application is shown.
[0029] Fig.11 A flow chart of an instrument control method according to an embodiment of the present application is shown.
[0030] Fig.12 A flow chart showing an embodiment of the present application in which a main control module performs operations corresponding to a level.
[0031] Fig.13 A flow chart of an instrument control method according to another embodiment of the present application is shown.
[0032] Fig.14 A flow chart showing an operation step of an instrument in an embodiment of the present application.
[0033] Fig.15 A schematic diagram of a computer-readable storage medium according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0035] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0036] Water meters, gas meters and other instruments are widely used in many fields of production and life. The working environment of the instruments is diverse, and there may be humid, dusty and other environments. In the related technology, the common control method of the instrument is to achieve it through a mechanical switch-type button. The structure of the mechanical switch-type button is complex, the failure rate is high, and the applicability to harsh environments is poor. For example, in a humid and dusty environment, the mechanical switch-type button is prone to poor contact and other failures due to moisture or dust contamination.
[0037] In view of the technical defects existing in the related art, an embodiment of the present application provides an instrument control device, including a shell, a sensor trigger, a main control module, a sensor connected to the main control module and a signal generator connected to the main control module; the main control module, the sensor and the signal generator are arranged in the shell; the sensor trigger is movably arranged outside the shell; the sensor is used to generate a level corresponding to the moving action of the sensor trigger when the sensor trigger is located within the sensing range of the sensor, and send the level to the main control module; a signal channel structure opposite to the signal generator is provided on the shell; the signal generator is used to generate a signal that can be perceived by the human body; the signal input function is realized by combining the sensor trigger with the sensor, the structure is simple, the failure rate is low, the applicability to harsh environments is high, and there is no need to set a mechanical switch type button, thereby improving the situation that the instrument mechanical switch type button existing in the related art has a complex structure, a high failure rate and poor applicability to harsh environments.
[0038] An instrument control device proposed according to an embodiment of the present application is described below in conjunction with the accompanying drawings.
[0039] refer to Figure 1 As shown, an embodiment of the present application provides an instrument control device, including a shell 1, a sensor trigger 21, a main control module 4, and a sensor 22 connected to the main control module 4; the main control module 1 and the sensor 22 are arranged in the shell 1; the sensor trigger 21 is movably arranged outside the shell 1; the sensor 22 is used to generate a level corresponding to the moving action of the sensor trigger 21 when the sensor trigger 21 is located within the sensing range of the sensor 22, and send the level to the main control module 1.
[0040] When the sensor trigger 21 is within the sensing range of the sensor 22, the action of the sensor trigger 21 can trigger the sensor 22 to generate a corresponding level. Moving the sensor trigger 21 is equivalent to executing a command input action, and the user can input commands to the instrument by moving the sensor trigger 21. In the related art, a mechanical switch-type button is used to input commands to the instrument, while the device of this embodiment triggers the sensor 22 to generate a corresponding level by moving the sensor trigger 21, which can achieve the same function as the key input operation.
[0041] The signal input function is realized by combining the sensor trigger 21 with the sensor 22. The structure is simple and the failure rate is low. It can work normally in harsh environments such as humid environments and dusty environments. It has high applicability to harsh environments such as humid environments and dusty environments, and there is no need to set a mechanical switch button.
[0042] Specifically, the main control module 1 may include a microcontroller or a microprocessor; the microcontroller may be, for example, a single-chip microcomputer MCU, and the microprocessor may be, for example, an ARM processor. The housing 1 may be, for example, a sealed plastic housing.
[0043] In some embodiments, the sensor trigger 21 includes a magnet, and the sensor 22 includes a magnetic sensitive element; the magnetic sensitive element is used to generate a low level and send the low level to the main control module in response to the magnet moving to a position where the distance from the magnetic sensitive element is less than or equal to a distance threshold, and to generate a high level and send the high level to the main control module in response to the magnet moving to a position where the distance from the magnetic sensitive element is greater than the distance threshold.
[0044] The magnetic sensitive element has the advantages of being easy to use, being able to realize contactless operation, and having a fast response frequency. When the magnet moves relative to the shell to a position where the distance from the magnetic sensitive element is less than or equal to the distance threshold, the magnetic sensitive element can be triggered to generate a low level; when the magnet moves relative to the shell to a position where the distance from the magnetic sensitive element is greater than the distance threshold, the magnetic sensitive element can be triggered to generate a high level. The distance threshold is the farthest distance that the magnetic sensitive element can sense the magnet. When the distance between the magnet and the magnetic sensitive element is less than or equal to the distance threshold, the magnetic sensitive element can sense the magnet. When the distance between the magnet and the magnetic sensitive element is greater than the distance threshold, the magnetic sensitive element cannot sense the magnet.
[0045] The magnetic sensitive element is used to generate a low level in response to the magnet moving relative to the shell to a position where the distance from the magnetic sensitive element is less than or equal to the distance threshold, and to generate a high level in response to the magnet moving relative to the shell to a position where the distance from the magnetic sensitive element is greater than the distance threshold. The magnetic sensitive element is arranged in the shell 1, and has a good protection effect, which significantly improves the waterproof and dustproof effect of the product and is suitable for various humid, dusty and complex environments. The magnetic sensitive element is triggered by the distance or approach of the magnet to realize the command input, which can realize the same function as the key operation, and overcome the defect of the high failure rate of the mechanical switch type button. The magnetic sensitive element can be triggered in the air without contact, and the command input can be realized without contact, realizing the same command input function as the key operation function.
[0046] In some embodiments, the sensor 22 also includes a first resistor, a first capacitor, and a second capacitor. The output end of the magnetic sensitive element is connected to the first end of the first resistor, the second end of the first resistor is connected to the main control module, the first end of the first capacitor is connected to the first end of the first resistor, and the second end of the first capacitor is grounded; the two ends of the second capacitor are respectively connected to the power supply end and the ground end of the magnetic sensitive element.
[0047] In some embodiments, a light-transmitting structure is provided on the shell 1, and the sensor trigger 21 includes a shading plate, which can move relative to the shell to cover or expose the light-transmitting structure; the sensor includes a photosensitive element; the photosensitive element is used to generate a low level and send the low level to the main control module 4 in response to the shading plate moving to a position exposing the light-transmitting structure, and to generate a high level and send the high level to the main control module 4 in response to the shading plate moving to a position covering the light-transmitting structure.
[0048] Exemplarily, the light-transmitting structure includes a through hole, and a transparent medium may be filled in the through hole. Light outside the housing 1 may be irradiated onto the photosensitive element through the through hole. The through hole may be filled with a transparent medium such as transparent plastic or glass, thereby preventing dust from entering the housing 1 through the through hole and causing adverse effects on the components in the housing 1. Therefore, the instrument control device of the embodiment of the present application may be suitable for use in dusty application environments.
[0049] refer to Figure 2 As shown, in some embodiments, the instrument control device may further include a signal generator 24 connected to the main control module 4; the signal generator 24 is disposed in the housing 1; and a signal channel structure 25 opposite to the signal generator 24 is disposed on the housing 1. The signal generator 24 is used to generate a signal that can be perceived by the human body.
[0050] Exemplarily, the signal channel structure 25 includes a through hole or a transparent plate.
[0051] In some embodiments, the signal generator 24 includes a light emitting diode, a buzzer, and / or a vibration signal generator.
[0052] Exemplarily, the signal generator 24 includes a light emitting diode and a PNP transistor, the collector of the PNP transistor is connected to the positive electrode of the light emitting diode, and the negative electrode of the light emitting diode is grounded; the base of the PNP transistor is connected to the main control module 4.
[0053] The light emitting diode LED can emit a light signal, and the buzzer can emit a sound signal. When the signal generator 24 includes a light emitting diode, the signal channel structure may include a through hole or a transparent plate; the light emitted by the light emitting diode can pass through the through hole or the transparent plate, and the operator can observe the light transmitted through the through hole or the transparent plate. The transparent plate can be a plate made of a transparent medium such as plastic or glass. When the signal channel structure is a through hole, dust can enter the housing through the through hole and cause adverse effects on the components in the housing 1. The transparent plate can prevent dust from entering the housing through the through hole, thereby preventing dust from entering the housing and causing adverse effects on the components in the housing.
[0054] Light-emitting diodes have a more prominent cost advantage than LCDs in displaying simple information and can meet the requirements of completing product operation and display in limited circuit board space.
[0055] When the signal generator 24 includes a buzzer, the signal channel structure may include a through hole; the sound of the buzzer may be transmitted through the through hole, and the operator may hear the buzzer sound transmitted through the through hole. Of course, in the case where there is no through hole for transmitting the sound of the buzzer on the housing, the sound of the buzzer may also be transmitted through the housing, but the sound is smaller than the sound transmitted through the through hole.
[0056] In the related art, the instrument usually displays the data of the instrument through the liquid crystal display screen. The liquid crystal display screen occupies a large amount of input and output interface resources of the single-chip microcomputer MCU, greatly increases the code complexity of the display function, and has a high risk of display function problems. In addition, the liquid crystal display screen is not adaptable to various environments and is prone to failure in a humid and dusty environment. In addition, the liquid crystal screen itself is expensive and occupies a large area of the PCB board. The signal generator 24 in this embodiment requires fewer input and output interface resources, the display function is relatively simple to implement, the probability of display function problems is low, the adaptability to various environments is strong, and it is not easy to fail in a humid and dusty environment, and the cost is low, and the area of the PCB board is small. In particular, the light-emitting diode LED has a more prominent cost advantage than the liquid crystal display screen in displaying simple information, can meet the requirements of completing product operation and display on a limited circuit board space, has a low cost, and occupies a small area of the PCB board. In addition, the power consumption of the liquid crystal display screen is large, which increases the energy consumption burden and reduces the battery life of the instrument, while the signal generator 24 in this embodiment has a small power consumption, reduces energy consumption, and improves the battery life of the instrument.
[0057] An instrument control device according to a specific example is described below with reference to the accompanying drawings.
[0058] refer to Figures 3 to 8 As shown, a specific example of an instrument control device includes a shell 1, a magnet 2 and a circuit board 3 arranged in the shell 1, on which a main control module 4 and a magnetic sensitive element 5 and a light emitting diode 6 respectively connected to the main control module 4 are arranged.
[0059] The upper surface of the housing 1 has an LED display area, and a through hole 7 is provided on the LED display area, which is opposite to the light-emitting diode 6. When the light-emitting diode 6 emits light, the light can be emitted from the through hole 7. The magnet 2 is located outside the housing 1 and can move relative to the housing 1; the magnetic sensitive element 5 is used to respond to the movement of the magnet 2 relative to the housing 1 and generate a level corresponding to the position of the magnet 2 after the movement.
[0060] The upper surface of the housing 1 also has a magnetic induction area 8, which is an area where the magnetic sensitive element 5 can sense the magnet 2. When the magnet 2 needs to be moved to a position where the distance from the magnetic sensitive element 5 is less than or equal to the distance threshold, the magnet 2 can be placed in the magnetic induction area 8.
[0061] The circuit board 3 may include multiple circuit boards, for example, two circuit boards, the two circuit boards are respectively a first circuit board 31 and a second circuit board 32, the first circuit board 31 is located above the second circuit board 32, and the main control module 4, the magnetic sensor 5 and the light emitting diode 6 are all arranged on the first circuit board 31. The two circuit boards are connected together up and down through the plug-in, and then fixed in the housing 1 by means of the limit groove and the screw, so that the magnetic sensor 5 on the first circuit board 31 is correspondingly arranged below the magnetic induction area 8 on the upper surface of the housing 1, and the light emitting diode 6 is correspondingly arranged below the LED display area on the upper surface of the housing 1.
[0062] When in use, the operator can place the magnet 2 on the magnetic induction area 8, and the magnet 2 triggers the magnetic sensitive element 5 to generate a corresponding electrical level. The operator obtains the operating status of the instrument by observing the through hole 7 on the LED display area. When the light-emitting diode 6 emits light, light can be emitted from the through hole 7.
[0063] A cabin 11 may also be provided in the housing 1, and the cabin 11 is located below the circuit board 3. The cabin 11 may be used to place a power source and a water meter base meter, etc.
[0064] refer to Figure 7As shown, the main control module 4 can be a single-chip microcomputer MCU, the output terminal Vout of the magnetic sensitive element 5, the resistor R3 and a pin MCU-KEY of the single-chip microcomputer are connected in sequence, one end of the capacitor C4 is connected to the pin MCU-KEY of the single-chip microcomputer, and the other end is grounded. A capacitor C3 is connected between the power supply terminal (VCC terminal) and the ground terminal (GND terminal) of the magnetic sensitive element 5, the power supply terminal of the magnetic sensitive element 5 is connected to the power supply VCC, and the ground terminal is grounded. When the magnet 2 moves to a position where the distance from the magnetic sensitive element is less than or equal to the distance threshold, the magnetic sensitive element generates a low level, and the low level is input to the pin MCU-KEY. The MCU determines that the magnet moves to a position less than or equal to the distance threshold (equivalent to pressing a key) according to the received low level. When the magnet 2 moves to a position where the distance from the magnetic sensitive element 5 is greater than the distance threshold, the magnetic sensitive element 5 generates a high level, and the high level is input to the pin MCU-KEY. The MCU determines that the magnet moves to a position greater than the distance threshold (equivalent to a key pop-up) according to the received high level. Capacitors C4 and C3 play a filtering role; resistor R3 plays a current limiting role, which is used to reduce the probability of excessive current output from the output terminal Vout of the magnetic sensor 5. The magnetic sensor 5, resistor R3, capacitor C3 and capacitor C4 constitute a command input action detection module.
[0065] refer to Figure 8 As shown, the emitter of PNP transistor Q7, resistor R26 and power supply VCC are connected in sequence; the collector of PNP transistor Q7 is connected to the positive electrode of light emitting diode 6, and the negative electrode of light emitting diode 6 is grounded; the base of PNP transistor Q7, resistor R27 and a pin MCU-RED-LED-CTL of the single chip are connected in sequence. One end of capacitor C35 is connected to the base, and the other end is grounded. Capacitor C35 plays a filtering role, and resistors R27 and R26 play a current limiting role, which is used to reduce the probability of excessive current flowing through Q7. Light emitting diode 6, resistor R26, PNP transistor Q7, resistor R27 and capacitor C35 constitute an LED display module. The pin MCU-RED-LED-CTL of the main control module 4 outputs a high level, so that the current of the power supply VCC flows to the light-emitting diode 6 through the PNP transistor Q7, and the light-emitting diode 6 lights up; the pin MCU-RED-LED-CTL of the main control module 4 outputs a low level, the current passing through Q7 is cut off, and the light-emitting diode 6 goes out.
[0066] In this example, a pin of a single-chip microcomputer is used to control the on and off of an LED, which saves IO port resources, simplifies the circuit wiring structure, saves circuit board space, reduces the power consumption of the single-chip microcomputer, and does not require a liquid crystal display, further reducing product costs. In this example, an IO port interrupt of the single-chip microcomputer is used to detect the output level of the magnetic sensitive element 5. The magnetic sensitive element 5 is arranged in the housing 1, which has a good protection effect and significantly improves the waterproof and dustproof effect of the product. It is suitable for various humid and dusty complex environments. The magnetic sensitive element 5 is triggered by the distance or approach of the magnet 2 to achieve the same function as the key operation, overcoming the defect of the high failure rate of the mechanical switch type key. The magnetic sensitive element 5 can be triggered in the air without contact, and the same function as the key operation function can be achieved without contact through the cooperation of the magnet 2 and the magnetic sensitive element 5.
[0067] refer to Fig. 9 As shown, in some embodiments, a light-transmitting structure 9 is provided on the housing, and the sensor trigger includes a light shielding plate 10, which can move relative to the housing to cover or expose the light-transmitting structure 9; the sensor includes a photosensitive element; the photosensitive element is used to generate a low level in response to the light shielding plate 10 moving to a position exposing the light-transmitting structure, and to generate a high level in response to the light shielding plate 10 moving to a position covering the light-transmitting structure 9. After the light shielding plate 10 moves to the position exposing the light-transmitting structure 9, light passes through the light-transmitting structure 9 and shines on the photosensitive element, and the photosensitive element generates a low level; when the light shielding plate 10 moves to a position covering the light-transmitting structure 9, the light is blocked and cannot shine on the photosensitive element, and the photosensitive element generates a high level. When in use, the operator can manually adjust the light shielding plate 10 to cover or expose the light-transmitting structure 9.
[0068] The light-transmitting structure 9 may be a through hole, through which light outside the housing 1 may be irradiated onto the photosensitive element. The through hole may be filled with a transparent medium such as transparent plastic or glass, thereby preventing dust from entering the housing through the through hole and causing adverse effects on the components inside the housing. Therefore, the instrument control device of the embodiment of the present application may be suitable for use in dusty environments.
[0069] Another embodiment of the present application provides a meter, including the meter control device of any embodiment of the present application, and a meter base meter connected to a main control module. The meter may be, for example, a water meter or a gas meter.
[0070] In one example, the meter is a smart water meter, which includes the meter control device of any embodiment of the present application, and a water meter base meter connected to a main control module, and the water meter base meter is arranged in a shell.
[0071] The water meter base meter may include a gear box, an impeller box, an overall impeller, a top, an adjustment plate and a counter, and the water meter base meter is used to obtain the water flow and send the water flow to the main control module. Specifically, the water meter base meter and the power supply may be arranged in a cabin inside the housing.
[0072] refer to Fig.10 As shown, in a specific example, a smart water meter has an MCU and a command input action detection module, a remote communication module, a power detection module, a local communication module and an LED display module respectively connected to the MCU on the circuit board. Among them, the command input action detection module includes a magnetic sensitive element; the LED display module includes a light-emitting diode. The main control module can send relevant data to the server of the water affairs monitoring platform through the remote communication module, so that the water affairs monitoring platform can analyze and process the relevant data.
[0073] The user can perform command input actions through magnets. Command input actions include, for example, the action of moving a magnet, and the function of the command input action is equivalent to the function of a key operation action. The movement of the magnet is equivalent to a key operation action. The command input action of the magnet detected by the magnetic sensitive element can trigger corresponding events such as communication events. The communication status and fault status of the smart water meter will also be presented to the user by the LED display module. After the power detection module detects that the voltage reaches the standard, it sends a signal to the main control module, and the main control module controls the start of the instrument operation. Otherwise, the LED display module is always on to prompt the abnormal power-on of the instrument, and the disconnection of the external power will also be fed back to the MCU by the external interrupt; the command input action detection module is used to detect the user's command input action (such as the action of moving a magnet), and the command input action that meets the event requirements will execute the corresponding event; the LED display module controls the LED display state according to the instruction of the MCU; the local communication module is generally turned on by the MCU according to the user's action of moving the magnet, and the MCU is notified after the communication ends; the remote communication module can be turned on by the command input action detection module, can also be turned on by local communication, and can also be turned on by the MCU at a fixed time, and the MCU will also be notified after the communication ends. The local communication module, remote communication module and power detection module will feed back their respective status and operation results to the instrument status control and display system, and the instrument status control and display system will notify the LED display module to display the operation status of the smart water meter to the outside world.
[0074] refer to Fig.11 As shown, another embodiment of the present application provides an instrument control method, which is implemented by an instrument control device of any embodiment of the present application. The instrument control method may include steps S10 to S20:
[0075] S10. The sensor generates a level corresponding to the movement of the sensor trigger in response to the movement of the sensor trigger, and sends the level to the main control module.
[0076] In some embodiments, the sensor trigger includes a magnet, and the sensor includes a magnetic sensitive element; the sensor generates a level corresponding to the movement of the sensor trigger in response to the movement of the sensor trigger, including:
[0077] The magnetic sensor generates a low level in response to the magnet moving to a position where the distance from the magnetic sensor is less than or equal to the distance threshold, or generates a high level in response to the magnet moving to a position where the distance from the magnetic sensor is greater than the distance threshold.
[0078] The distance threshold is the maximum distance that the magnetic sensor can sense the magnet. When the distance between the magnet and the magnetic sensor is less than or equal to the distance threshold, the magnetic sensor can sense the magnet. When the distance between the magnet and the magnetic sensor is greater than the distance threshold, the magnetic sensor cannot sense the magnet. When the magnet moves to a position where the distance from the magnetic sensor is less than or equal to the distance threshold, the magnetic sensor can be triggered to generate a low level; when the magnet moves to a position where the distance from the magnetic sensor is greater than the distance threshold, the magnetic sensor can be triggered to generate a high level.
[0079] In some embodiments, a light-transmitting structure is provided on the housing, the sensor trigger includes a light-shielding plate, and the light-shielding plate can be moved relative to the housing to cover or expose the light-transmitting structure; the sensor includes a photosensitive element;
[0080] The sensor generates a level corresponding to the movement of the sensor trigger in response to the movement of the sensor trigger, which may include: the photosensitive element generates a low level in response to the shading plate moving to a position exposing the light-transmitting structure, or generates a high level in response to the shading plate moving to a position covering the light-transmitting structure.
[0081] When the shading plate moves to a position exposing the light-transmitting structure, light outside the shell can pass through the light-transmitting structure to illuminate the photosensitive element, and the photosensitive element generates a low level; when the shading plate moves to a position covering the light-transmitting structure, light outside the shell cannot illuminate the photosensitive element, and the photosensitive element generates a high level.
[0082] S20: The main control module receives the level and executes an operation corresponding to the level.
[0083] refer to Fig.12 As shown, in some embodiments, the main control module receives the level and performs an operation corresponding to the level, which may include steps S201 and S202:
[0084] S201. The main control module receives the level and determines parameters of the level, where the parameters of the level include whether the level is a low level or a high level, the duration of the level, and / or the number of conversions of the level within a preset duration.
[0085] The number of conversions of the level within the preset time period may, for example, include the number of conversions of the level from a low level to a high level within the preset time period, and / or the number of conversions of the level from a high level to a low level within the preset time period.
[0086] S202: The main control module determines and executes an operation corresponding to the parameter according to the aforementioned parameter and preset corresponding rules.
[0087] The preset corresponding rules are the corresponding rules between the parameters of the preset levels and the operations. For example, if the low level lasts for 3 seconds, the operation of opening the local communication is executed; after the low level is converted to the high level, the operation of closing the local communication is executed. For example, if the low level lasts for 5 seconds and then turns to the high level, and the high level lasts for 3 seconds and then turns to the low level, the operation of opening the remote communication is executed; in the remote communication state, the low level is converted to the high level again, and then converted from the high level to the low level again, the operation of closing the remote communication is executed. The specific preset corresponding rules can be set according to the actual application needs. For operations with higher application frequency, the parameters corresponding to the operation, such as the high and low level conversion frequency, can be set to be simpler, so as to reduce the difficulty of operation and improve the operation efficiency.
[0088] In some embodiments, the instrument control device may further include a signal generator connected to the main control module; Fig.13 As shown, the instrument control method may also include:
[0089] Step S30: The main control module controls the signal generator to send a signal corresponding to the current instrument state according to the current instrument state and the preset corresponding relationship between the instrument state and the signal.
[0090] Exemplarily, when the signal generator includes a light-emitting diode, the main control module controls the signal generator to emit a signal corresponding to the current instrument state according to the current instrument state and the preset instrument state-signal correspondence, which may include: the main control module determines the signal representation corresponding to the current instrument state according to the current instrument state and the preset instrument state-signal correspondence; controls the light-emitting diode to be powered on and / or off according to the signal representation; the signal representation may include the duration of the light on, duration of the light off, and / or the number of light-off conversions of the light-emitting diode; for example, it may include controlling the light-emitting diode to flash according to the light-off rule corresponding to the signal representation. A signal representation may include, for example: the light-emitting diode lights up continuously for 3 seconds and then turns off; this signal representation may correspond to an instrument state, and after the signal of the signal representation is emitted, the operator can be informed of the current instrument state according to the signal.
[0091] Exemplarily, when the signal generator includes a buzzer, the main control module controls the signal generator to send a signal corresponding to the current instrument state according to the current instrument state and the preset instrument state and signal correspondence, which may include: the main control module determines the signal representation corresponding to the current instrument state according to the current instrument state and the preset instrument state and signal correspondence; and controls the buzzer to be powered on and / or off according to the signal representation. The signal representation may include the duration of each buzzer sound, the duration of the non-sounding state, the interval between two adjacent sounds, and / or the number of conversions between the sounding and non-sounding states. For example, a signal representation may include: first sounding for 3 seconds, then stop sounding for 1 second, then sounding for 2 seconds, and finally stop sounding; this signal representation may correspond to an instrument state, and after sending the signal of the signal representation, the operator can know the current instrument state according to the signal. A state correspondence table may be printed on the surface of the shell for users to query the state.
[0092] The instrument status that requires the main control module to control the signal generator to send a corresponding signal to inform the operator may include, for example: magnet action to start local communication, magnet action to start remote communication, magnet action to start remote communication successfully, magnet action to start remote communication failure, local communication closed, instrument control device power supply mode update, etc. The instrument status that requires the main control module to control the signal generator to send a corresponding signal to inform the operator can be set according to actual application needs.
[0093] In some embodiments, before the sensor responds to the movement of the sensor trigger, the instrument control method may also include: the power detection module of the instrument detects whether the voltage of the instrument meets the standard; if the standard is met, the main control module controls the start of the instrument operation; if the standard is not met, the display module is always on to prompt that the instrument is powered on abnormally.
[0094] Specifically, the above standard is a voltage threshold. The power detection module of the instrument detects whether the voltage of the instrument reaches the voltage threshold for starting the instrument. If the voltage of the instrument reaches the voltage threshold for starting the instrument, it means that the instrument can operate at this voltage, and the main control module controls the start of the instrument operation; if the voltage of the instrument does not reach the voltage threshold for starting the instrument, it means that the current voltage is insufficient to support the operation of the instrument, and the display module is always on to remind the staff that the current instrument is powered on abnormally, so that the staff can take corresponding processing measures.
[0095] In some embodiments, the instrument control method may also include: the remote communication module of the instrument receives a remote communication start instruction from the main control module to start remote communication; wherein, the remote communication start instruction is generated after the main control module receives a corresponding level from the sensor, and the corresponding level is generated by the sensor in response to the movement of the sensor trigger.
[0096] Specifically, the sensor generates a corresponding level in response to the movement of the sensor trigger, and sends the corresponding level to the main control module. The main control module receives the corresponding level from the sensor, generates a remote communication start instruction, and then sends the remote communication start instruction to the remote communication module of the instrument. The remote communication module receives the remote communication start instruction and starts remote communication.
[0097] refer to Fig.14 As shown, a flow chart of an operation step of the instrument is shown. When the instrument is executing an operation event, it is determined whether a new operation event to be executed appears in the current instrument. If a new operation event to be executed appears in the instrument, it is determined whether the current operation event is allowed to be interrupted. If the interruption is allowed, the current operation event is interrupted, and then the new operation event to be executed is executed. If the interruption is not allowed, the current operation event is continued to be executed, and the new operation event to be executed is executed after the current operation event is executed. The new operation event to be executed can be input by the movement action of the sensor trigger.
[0098] When the instrument is in a certain instrument state, determine whether the current instrument has a new instrument state that requires a signal to be sent, such as a new movement of the sensor trigger. If the instrument has a new instrument state that requires a signal to be sent, determine whether it is allowed to interrupt the signal of the current instrument state to send a new signal. If the interruption is allowed, interrupt the current signal and send a new signal. Otherwise, wait until the signal of the current instrument state ends before sending a new signal.
[0099] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0100] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method of any of the above embodiments. Fig.15 As shown, the computer-readable storage medium shown is a CD 20 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided by any of the aforementioned embodiments will be executed.
[0101] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0102] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0103] It should be noted that: it should be understood that although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0104] The above embodiments only express the implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An instrument control device, characterized in that: The invention comprises a shell, a sensor trigger, a main control module, a sensor connected to the main control module and a signal generator connected to the main control module; the main control module, the sensor and the signal generator are arranged in the shell; the sensor trigger is movably arranged outside the shell; the sensor is used to generate a level corresponding to the moving action of the sensor trigger when the sensor trigger is located within the sensing range of the sensor, and send the level to the main control module; a signal channel structure opposite to the signal generator is arranged on the shell; the signal generator is used to generate a signal that can be perceived by the human body.
2. The device according to claim 1, characterized in that The sensor trigger includes a magnet, and the sensor includes a magnetic sensitive element; the magnetic sensitive element is used to generate a low level and send the low level to the main control module in response to the magnet moving to a position where the distance from the magnetic sensitive element is less than or equal to a distance threshold, and to generate a high level and send the high level to the main control module in response to the magnet moving to a position where the distance from the magnetic sensitive element is greater than the distance threshold.
3. The device according to claim 2, characterized in that The sensor also includes a first resistor, a first capacitor and a second capacitor. The output end of the magnetic sensitive element is connected to the first end of the first resistor, the second end of the first resistor is connected to the main control module, the first end of the first capacitor is connected to the first end of the first resistor, and the second end of the first capacitor is grounded; the two ends of the second capacitor are respectively connected to the power supply end and the ground end of the magnetic sensitive element.
4. The device according to claim 1, characterized in that A light-transmitting structure is provided on the shell, and the sensor trigger includes a light-shielding plate, which can move relative to the shell to cover or expose the light-transmitting structure; the sensor includes a photosensitive element; the photosensitive element is used to generate a low level and send the low level to the main control module in response to the light-shielding plate moving to a position exposing the light-transmitting structure, and to generate a high level and send the high level to the main control module in response to the light-shielding plate moving to a position covering the light-transmitting structure.
5. The device according to claim 4, characterized in that The light-transmitting structure includes a through hole.
6. The device according to claim 5, characterized in that The through hole is filled with a transparent medium.
7. The device according to claim 6, characterized in that The signal channel structure includes a through hole or a transparent plate.
8. The device according to claim 6, characterized in that The signal generator includes a light emitting diode and / or a buzzer.
9. The device according to claim 8, characterized in that The signal generator comprises a light emitting diode and a PNP transistor, the collector of the PNP transistor is connected to the positive electrode of the light emitting diode, and the negative electrode of the light emitting diode is grounded; the base of the PNP transistor is connected to the main control module.
10. An instrument, characterized in that: It comprises the instrument control device according to any one of claims 1 to 9, and an instrument base meter connected to the main control module.
