CN116500689B - Wireless low-power-consumption material level detection device and method and electronic equipment - Google Patents
Wireless low-power-consumption material level detection device and method and electronic equipment Download PDFInfo
- Publication number
- CN116500689B CN116500689B CN202310760705.2A CN202310760705A CN116500689B CN 116500689 B CN116500689 B CN 116500689B CN 202310760705 A CN202310760705 A CN 202310760705A CN 116500689 B CN116500689 B CN 116500689B
- Authority
- CN
- China
- Prior art keywords
- low
- connection point
- level
- detection
- power
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 115
- 238000000034 method Methods 0.000 title claims description 31
- 239000000463 material Substances 0.000 title abstract description 6
- 230000001960 triggered effect Effects 0.000 claims abstract description 11
- 239000003990 capacitor Substances 0.000 claims description 13
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000033228 biological regulation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 230000035939 shock Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V3/00—Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
- G01V3/02—Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation operating with propagation of electric current
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Geology (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Life Sciences & Earth Sciences (AREA)
- General Physics & Mathematics (AREA)
- Geophysics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Transmitters (AREA)
- Power Sources (AREA)
Abstract
The invention provides a wireless low-power-consumption material level detection device, a wireless low-power-consumption material level detection method and electronic equipment. The device comprises a travel switch, a low-power consumption switching value detection circuit, a detection CPU and a wireless module, wherein the travel switch comprises a first contact and a second contact; the low-power consumption switching value detection circuit comprises a first connection point, a second connection point and a third connection point; when the first contact contacts the second contact, the voltage of the second connection point is converted from a low level to a high level, and the voltage of the third connection point is converted from the high level to the low level, so that the detection CPU is triggered to wake up from a low power consumption state; the detection CPU is connected with a third connection point of the low-power consumption switching value detection circuit through an I/O pin, and performs state switching according to the voltage state of the third connection point; the wireless module is connected with the TTL serial port of the detection CPU and sends the state switching signal of the detection CPU to the external equipment. In this way, position detection during loading of the device into the transport means is achieved, improving safety.
Description
Technical Field
The present invention relates generally to the field of in-place detection of loading devices, and more particularly to wireless low-power level detection apparatus, methods, and electronic devices.
Background
The large-scale equipment all needs dedicated conveyer in the transportation, and whether large-scale equipment loads the target position in the conveyer in-process of loading, and is crucial to the security of the in-process transportation of large-scale equipment, if not load in place and start the transportation or shift in the transportation, fail in time to discover again, very easily take place the complete accident.
Disclosure of Invention
The invention provides a wireless low-power-consumption material level detection scheme. The invention realizes the position detection in the process of loading the equipment into the transportation device through the low-power consumption interface conversion from the physical position information to the electric signal, and improves the safety.
In a first aspect of the invention, a wireless low power consumption level detection device is provided. The device comprises:
the travel switch comprises a first contact and a second contact, and is used for switching the on/off states of the first contact and the second contact according to the in-place state;
the low-power-consumption switching value detection circuit comprises a first connection point, a second connection point and a third connection point; the first connecting point is connected with a first contact of the travel switch and is connected with a voltage source; the second connection point is connected with a second contact of the travel switch; the third connection point is connected with the second connection point through an N-type MOSFET and is connected with an I/O pin of the detection CPU; when the first contact contacts the second contact, the voltage of the second connection point is converted from a low level to a high level, and the voltage of the third connection point is converted from the high level to the low level, so that the detection CPU is triggered to wake up from a low power consumption state;
the detection CPU is connected with a third connection point of the low-power-consumption switching value detection circuit through an I/O pin, and performs state switching according to the voltage state of the third connection point;
and the wireless module is connected with the TTL serial port of the detection CPU and sends the state switching signal of the detection CPU to external equipment.
Further, the third connection point is connected with the second connection point through an N-type MOSFET, and includes:
the grid electrode of the MOSFET is connected with the second connection point, the drain electrode of the MOSFET is connected with a voltage source and is connected with the third connection point after the resistor is connected, and the source electrode of the MOSFET is grounded;
when the first contact and the second contact of the travel switch are not connected, the grid electrode of the MOSFET is in a low level, the MOSFET is in an off state, and the third connection point outputs a high level;
when the first contact and the second contact of the travel switch are connected, the grid electrode of the MOSFET is in a high level, the MOSFET is in a conducting state, and the third connection point outputs a low level.
Further, a schottky diode is arranged between the first connection point and the voltage source, and external signals are cut off from being transmitted to the inside of the low-power-consumption switching value detection circuit.
Further, a first resistor is connected between the second connection point and the grid electrode of the MOSFET, and a second capacitor is connected between the grid electrode of the MOSFET and the ground; the first resistor and the second capacitor form a low-pass filter.
Further, a first self-healing fuse is arranged between the schottky diode and a voltage source; and
providing a second self-healing fuse between the first resistor and the second connection point;
the first self-restoring fuse and the second self-restoring fuse are used for being disconnected when the circuit generates instantaneous high voltage.
Further, an electrostatic protection element is provided between the second connection point and ground.
Further, one travel switch and one low-power consumption switching value detection circuit form one detection channel, the number of the detection channels is several, and each detection channel outputs a level signal to the detection CPU.
In a second aspect of the invention, a wireless low-power-consumption level detection method is provided. The method is applied to the wireless low-power-consumption material level detection device in the first aspect, and the method comprises the following steps:
when the travel switch of the position to be detected is in an in-place state, a first contact and a second contact of the travel switch are communicated, the voltage of a second connection point of the low-power-consumption switching value detection circuit is converted from a low level to a high level, the voltage of a third connection point is converted from the high level to the low level, and the detection CPU is triggered to wake up from the low-power-consumption state and enter a working state;
when the travel switch at the position to be detected is in a non-in-place state, a first contact and a second contact of the travel switch are disconnected, the voltage of a second connection point of the low-power-consumption switching value detection circuit is converted from a high level to a low level, and the voltage of a third connection point is converted from the low level to the high level, so that the detection CPU is triggered to be switched from a working state to a low-power-consumption state;
and sending the state of the detection CPU to external equipment through a wireless module.
In a third aspect of the invention, an electronic device is provided. At least one processor of the electronic device; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the second aspect of the invention.
It should be understood that the description in this summary is not intended to limit the critical or essential features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
The above and other features, advantages and aspects of embodiments of the present invention will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, wherein like or similar reference numerals denote like or similar elements, in which:
FIG. 1 shows a block diagram of a wireless low power level detection device according to an embodiment of the invention;
FIG. 2 shows a schematic diagram of a low power switching value detection circuit according to an embodiment of the present invention;
FIG. 3 shows a flow chart of a wireless low power level detection method according to an embodiment of the invention;
FIG. 4 illustrates a block diagram of an exemplary electronic device capable of implementing embodiments of the invention;
wherein D1 is a schottky diode, D2 is an electrostatic protection element, F1 is a first self-restoring fuse, F2 is a second self-restoring fuse, ch1_a_com is a first connection point, ch1_a_on is a second connection point, ch1_a_h is a third connection point, C1 is a first capacitance, C2 is a second capacitance, C3 is a third capacitance, C4 is a fourth capacitance, R1 is a first resistance, R2 is a second resistance, R3 is a third resistance, R4 is a fourth resistance, Q1 is a MOSFET, GND is ground, 400 is an electronic device, 401 is a computing unit, 402 is a ROM, 403 is a RAM, 404 is a bus, 405 is an I/O interface, 406 is an input unit, 407 is an output unit, 408 is a storage unit, 409 is a communication unit.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. 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 addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1 shows a block diagram of a wireless low-power-consumption level detection device according to an embodiment of the invention.
The device comprises a mechanical switch, a low-power consumption switching value detection circuit, a detection CPU and a wireless module.
The mechanical switch is a travel switch, the travel switch comprises a first contact and a second contact, and when the first contact is communicated with the second contact, the travel switch is in a communicated state; and when the first contact and the second contact are not connected, the travel switch is in an off state.
In this embodiment, when the device is in place, the travel switch in the detected position is pressed by the large device, causing the first contact to be in contact with the second contact. When the device is not in place, the travel switch at the detected position is not pressed by the large-scale device, and the first contact and the second contact are not connected.
In this embodiment, as shown in fig. 2, the low power switching value detection circuit includes a first connection point ch1_a_com, a second connection point ch1_a_on, and a third connection point ch1_a_h; the first connection point ch1_a_com is connected to the first contact of the travel switch and is connected to a voltage source, and the voltage source provides a voltage of 3.3V. When the large equipment is not loaded in place and the travel switch is not pressed, the first contact and the second contact of the travel switch are not connected, and the voltage of the first connection point CH1_A_COM is always 3.3V. When not connected, the electric power is in a suspended state, and has no current and no power consumption.
As an embodiment of the present invention, a schottky diode D1 is disposed between the first connection point ch1_a_com and the 3.3V voltage source, and the external signal is turned off to the internal transmission of the low power switching value detection circuit. The schottky diode D1, e.g., B0520LW, prevents external signals from being poured into the internal circuit, preventing interfering signals at the travel switch contacts.
As an embodiment of the present invention, a first self-recovery fuse F1 is disposed between the schottky diode D1 and the 3.3V voltage source; the first self-restoring fuse F1, such as JK-MSMD050-13.2, can be turned off for a short time to protect the back-end circuit device when an instantaneous high voltage occurs at the moment of circuit turn-on.
In this embodiment, the second connection point ch1_a_on is connected to the second contact of the travel switch. When the large-scale equipment is not loaded in place and the travel switch is not pressed, the second contact is not communicated with the first contact, and the voltage of the second connection point CH1_A_ON is always 0V. The third connection point CH1_A_H and the second connection point CH1_A_ON are connected through an N-type MOSFET (Q1) and are connected with an I/O pin of the detection CPU. The MOSFET (Q1) is a metal-oxide semiconductor field effect transistor. The model of the MOSFET (Q1) is, for example, CJ2306.
When the first contact contacts the second contact, the voltage of the second connection point ch1_a_on is converted from low level to high level, namely from 0V to 3.3V, the mosfet (Q1) is turned ON, and the voltage of the third connection point ch1_a_h is converted from high level to low level, namely from 3.3V to 0V, so as to trigger the detection CPU to wake up from a low power consumption state.
In this embodiment, the gate of the MOSFET (Q1) is connected to the second connection point ch1_a_on, the drain of the MOSFET (Q1) is connected to a 3.3V voltage source and is connected to the third connection point ch1_a_h after the fourth resistor R4 is connected, and the source of the MOSFET (Q1) is grounded GND. The fourth resistor R4 is set to 0 ohm.
When the first contact and the second contact of the travel switch are not connected, the grid electrode of the MOSFET (Q1) is in a low level, the MOSFET (Q1) is in an off state, and the third connection point CH1_A_H outputs a high level of 3.3V to indicate that the travel switch is not connected.
When the first contact and the second contact of the travel switch are connected, the grid electrode of the MOSFET (Q1) is in a high level 3.3V, the MOSFET (Q1) is in a conducting state, and the third connection point CH1_A_H outputs a low level 0V to indicate that the travel switch is connected.
As an embodiment of the present invention, a first resistor R1 is connected between the second connection point ch1_a_on and the gate of the MOSFET (Q1), and a second capacitor C2 is connected between the gate of the MOSFET (Q1) and the ground GND; the first resistor R1 and the second capacitor C2 form a low-pass filter. In this embodiment, the first resistor R1 is 100R, and the second capacitor C2 is 0.1uF. The low-pass filter is used for eliminating the impact of high-frequency signals at the moment of switching on the travel switch and protecting the MOSFET (Q1).
As an embodiment of the invention, a third capacitor C3 is connected between the gate of the MOSFET (Q1) and ground GND; the third capacitor C3 is used for further filtering out high-frequency signals and plays a role in reinforcing protection.
As an embodiment of the invention, a second resistor R2 is connected between the gate of the MOSFET (Q1) and ground GND. A third resistor R3 is arranged between the drain of the MOSFET (Q1) and a 3.3V voltage source. The second resistor R2 and the third resistor R3 are current limiting resistors, and the resistance is set to be 1M. When the travel switch is not turned on, no current passes through the circuit, and the current is close to 0uA; when the travel switch is turned on, the whole circuitThe consumption current is:。
as an embodiment of the present invention, a second self-restoring fuse F2 is provided between the first resistor R1 and the second connection point ch1_a_on. The second self-restoring fuse F2 is, for example, of the SMD0603P050TF type. The second self-restoring fuse F2 is used for short-time disconnection of the protection back-end circuit device when the circuit presents instantaneous high voltage.
As an embodiment of the present invention, an electrostatic protection element D2 is disposed between the second connection point ch1_a_on and the ground GND. The electrostatic protection element D2 is of a type such as PTVSHC3D4V5B for preventing damage to circuit devices due to electrostatic shock on the circuit.
As an embodiment of the present invention, a first capacitor C1 is provided between the second connection point ch1_a_on and the ground GND, and a fourth capacitor C4 is provided between the third connection point ch1_a_h and the ground GND; the first capacitor C1 and the fourth capacitor C4 take the value of 0.1uF, and play a role in voltage stabilization.
In this embodiment, the detection CPU is connected to the third connection point ch1_a_h through an I/O pin, and performs state switching according to the voltage state of the third connection point ch1_a_h. When the voltage state of the third connection point CH1_A_H is at a high level, the travel switch is turned off, and the CPU is detected to be switched to a low power consumption state; when the voltage state of the third connection point ch1_a_h is at a low level, the travel switch is turned on, and the detection CPU is awakened to a working state.
The I/O pin has an interrupt function, the detection CPU configures the I/O pin as an edge triggering interrupt mode, and the detection CPU can be awakened at any time when large-scale equipment acts under the low power consumption state of the detection CPU. The I/O pin is high when the equipment is not loaded into place and low when loaded into place.
In this embodiment, the wireless module is connected to the TTL serial port of the detection CPU, and sends the state switching signal of the detection CPU to the external device, so as to implement wireless communication.
In this embodiment, the wireless low-power-consumption level detection device further includes: and the power supply module is used for supplying power to the low-power consumption switching value detection circuit, the detection CPU and the wireless module. The power supply module is powered by a 7.2V battery, and can be used for running the device for more than 3 years.
In some embodiments, as shown in fig. 1, a mechanical switch and a low-power switching value detection circuit form a detection channel, where the number of detection channels is several, and each detection channel outputs a level signal to the detection CPU.
In the above embodiment, the operation may be divided into three states, i.e., an unloaded state, a loading completed state, and an intermediate/failed state.
If all the detection channels output low-level signals, the equipment to be detected is in a loading completion state.
If all the detection channels output high-level signals, the equipment to be detected is in a loading unfinished state.
If the low-level signal and the high-level signal exist in the level signal output by the detection channel at the same time, the equipment to be detected is in an intermediate state or a fault state.
In this embodiment, when the travel switch at the detected position is pressed into place by the large-sized device, the low-power switch detects the state change of the circuit, and the detection CPU wirelessly transmits the judgment result to the external device through the TTL serial port, thereby completing the in-place detection of the large-sized device.
According to the embodiment of the invention, the position detection in the process of loading the equipment into the transportation device is realized through the low-power interface conversion from the physical position information to the electric signal, and the safety is improved.
The above description of the embodiments of the device further describes the solution of the present invention through the method embodiments below.
As shown in fig. 3, the wireless low-power-consumption level detection method includes:
s301, when a travel switch at a position to be detected is in an in-place state, a first contact and a second contact of the travel switch are connected, the voltage of a second connection point CH1_A_ON of the low-power-consumption switching value detection circuit is converted from a low level to a high level, the voltage of a third connection point CH1_A_H is converted from the high level to the low level, and the detection CPU is triggered to wake up from the low-power-consumption state and enter a working state.
In this embodiment, the detection CPU is in a sleep state, i.e., a low power consumption state, most of the time, and in the low power consumption state, the power consumption of the detection CPU is only a few uA. The switching between the states is triggered by the pin edge interrupt, and the trigger edge can be set to be a rising edge or a falling edge to trigger the interrupt.
When the interrupt pin of the detection channel of a certain detection point position is triggered to be interrupted due to edge change, the detection CPU enters an operating state from a dormant state, the level of the pin is detected, if the level is low, the travel switch is turned on, and if the level is high, the travel switch is turned off.
S302, when the travel switch at the position to be detected is in a non-in-place state, a first contact and a second contact of the travel switch are disconnected, the voltage of a second connection point CH1_A_ON of the low-power-consumption switching value detection circuit is converted from a high level to a low level, the voltage of a third connection point CH1_A_H is converted from the low level to the high level, and the detection CPU is triggered to be switched from a working state to a low-power-consumption state.
S303, sending the state of the detection CPU to external equipment through a wireless module.
As an embodiment of the present invention, the operation may be divided into three states, i.e., an unloaded state, a loading completed state, and an intermediate/failed state.
If all the detection channels output low-level signals, the equipment to be detected is in a loading completion state;
if all the detection channels output high-level signals, the equipment to be tested is in a loading unfinished state;
if the low-level signal and the high-level signal exist in the level signal output by the detection channel at the same time, the equipment to be detected is in an intermediate state or a fault state. The fault condition may be caused by displacement during transportation.
Through the process, the position detection in the process of loading the equipment into the conveying device is realized through the low-power interface conversion from the physical position information to the electric signal, the different states of the working process are judged, and the safety is improved.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the described modules may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In the technical scheme of the invention, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
Fig. 4 shows a schematic block diagram of an electronic device 400 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
The electronic device 400 comprises a computing unit 401 that may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 may also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Various components in electronic device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, etc.; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above, for example, the methods S301 to S303. For example, in some embodiments, methods S301-S303 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of methods S301 to S303 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the methods S301-S303 in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present invention may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A wireless low-power consumption level detection device, comprising:
the travel switch comprises a first contact and a second contact, and is used for switching the on/off states of the first contact and the second contact according to the in-place state;
the low-power-consumption switching value detection circuit comprises a first connection point, a second connection point and a third connection point; the first connecting point is connected with a first contact of the travel switch and is connected with a voltage source; the second connection point is connected with a second contact of the travel switch; the third connection point is connected with the second connection point through an N-type MOSFET and is connected with an I/O pin of the detection CPU; when the first contact contacts the second contact, the voltage of the second connection point is converted from a low level to a high level, and the voltage of the third connection point is converted from the high level to the low level, so that the detection CPU is triggered to wake up from a low power consumption state;
the detection CPU is connected with a third connection point of the low-power-consumption switching value detection circuit through an I/O pin, and performs state switching according to the voltage state of the third connection point;
and the wireless module is connected with the TTL serial port of the detection CPU and sends the state switching signal of the detection CPU to external equipment.
2. The wireless low power level detection device of claim 1, wherein the third connection point and the second connection point are connected by an N-type MOSFET, comprising:
the grid electrode of the MOSFET is connected with the second connection point, the drain electrode of the MOSFET is connected with a voltage source and is connected with the third connection point after the resistor is connected, and the source electrode of the MOSFET is grounded;
when the first contact and the second contact of the travel switch are not connected, the grid electrode of the MOSFET is in a low level, the MOSFET is in an off state, and the third connection point outputs a high level;
when the first contact and the second contact of the travel switch are connected, the grid electrode of the MOSFET is in a high level, the MOSFET is in a conducting state, and the third connection point outputs a low level.
3. The wireless low-power-consumption level detection apparatus according to claim 2, wherein a schottky diode is provided between the first connection point and the voltage source, and the transmission of the external signal to the inside of the low-power-consumption switching value detection circuit is cut off.
4. The wireless low-power-consumption level detection device according to claim 3, wherein a first resistor is connected between the second connection point and the gate of the MOSFET, and a second capacitor is connected between the gate of the MOSFET and ground; the first resistor and the second capacitor form a low-pass filter.
5. The wireless low power level detection device of claim 4, wherein a first self-healing fuse is disposed between the schottky diode and a voltage source; and
providing a second self-healing fuse between the first resistor and the second connection point;
the first self-restoring fuse and the second self-restoring fuse are used for being disconnected when the circuit generates instantaneous high voltage.
6. The wireless low power level detection apparatus of claim 2, wherein an electrostatic protection element is provided between the second connection point and ground.
7. The wireless low-power-consumption level detection device according to claim 1, wherein one travel switch and one low-power-consumption switching value detection circuit form one detection channel, the number of the detection channels is several, and each detection channel outputs a level signal to the detection CPU.
8. The wireless low-power-consumption level detection method applied to the wireless low-power-consumption level detection device according to any one of claims 1 to 7, characterized in that the method comprises the following steps:
when the travel switch of the position to be detected is in an in-place state, a first contact and a second contact of the travel switch are communicated, the voltage of a second connection point of the low-power-consumption switching value detection circuit is converted from a low level to a high level, the voltage of a third connection point is converted from the high level to the low level, and the detection CPU is triggered to wake up from the low-power-consumption state and enter a working state;
when the travel switch at the position to be detected is in a non-in-place state, a first contact and a second contact of the travel switch are disconnected, the voltage of a second connection point of the low-power-consumption switching value detection circuit is converted from a high level to a low level, and the voltage of a third connection point is converted from the low level to the high level, so that the detection CPU is triggered to be switched from a working state to a low-power-consumption state;
and sending the state of the detection CPU to external equipment through a wireless module.
9. The wireless low-power-consumption level detection method according to claim 8, wherein if all detection channels output low-level signals, the device to be detected is in a loading completion state;
if all the detection channels output high-level signals, the equipment to be tested is in a loading unfinished state;
if the low-level signal and the high-level signal exist in the level signal output by the detection channel at the same time, the equipment to be detected is in an intermediate state or a fault state.
10. An electronic device comprising at least one processor; and
a memory communicatively coupled to the at least one processor; it is characterized in that the method comprises the steps of,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of claim 8 or 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310760705.2A CN116500689B (en) | 2023-06-27 | 2023-06-27 | Wireless low-power-consumption material level detection device and method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310760705.2A CN116500689B (en) | 2023-06-27 | 2023-06-27 | Wireless low-power-consumption material level detection device and method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116500689A CN116500689A (en) | 2023-07-28 |
CN116500689B true CN116500689B (en) | 2023-08-29 |
Family
ID=87325126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310760705.2A Active CN116500689B (en) | 2023-06-27 | 2023-06-27 | Wireless low-power-consumption material level detection device and method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116500689B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106523764A (en) * | 2016-12-20 | 2017-03-22 | 中国科学院光电研究院 | Control device of exhaust valve |
CN208384790U (en) * | 2018-06-26 | 2019-01-15 | 四川皓锐电子科技有限公司 | A kind of blended data collector |
CN211472228U (en) * | 2019-10-28 | 2020-09-11 | 上海工程技术大学 | Urban rail train state safety warning device |
DE102019121685A1 (en) * | 2019-08-12 | 2021-02-18 | Infineon Technologies Ag | INTELLIGENT ELECTRONIC SWITCH |
-
2023
- 2023-06-27 CN CN202310760705.2A patent/CN116500689B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106523764A (en) * | 2016-12-20 | 2017-03-22 | 中国科学院光电研究院 | Control device of exhaust valve |
CN208384790U (en) * | 2018-06-26 | 2019-01-15 | 四川皓锐电子科技有限公司 | A kind of blended data collector |
DE102019121685A1 (en) * | 2019-08-12 | 2021-02-18 | Infineon Technologies Ag | INTELLIGENT ELECTRONIC SWITCH |
CN211472228U (en) * | 2019-10-28 | 2020-09-11 | 上海工程技术大学 | Urban rail train state safety warning device |
Also Published As
Publication number | Publication date |
---|---|
CN116500689A (en) | 2023-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220043067A1 (en) | Charging method and device, charging system, electronic equipment and storage medium | |
WO2018129997A1 (en) | Charging control method, charging control device and terminal | |
US20170077743A1 (en) | Charging circuit and terminal | |
KR20170002662A (en) | Method and apparatus for electric energy dispatch, and, method and apparatus for power management | |
CN109246288B (en) | Control method and device of electronic equipment, storage medium and electronic equipment | |
EP3349325A1 (en) | Charging method, charging device and terminal | |
CN107589928A (en) | Double screen displaying method of terminal, device, terminal and computer-readable recording medium | |
US20200241925A1 (en) | Method for automatically releasing resource occupied by process in background of terminal, storage medium, and terminal | |
WO2023061333A1 (en) | Bleeder circuit control method and apparatus, bleeder device, and electronic device | |
CN105933540A (en) | Power supply control method, system module and mobile terminal | |
CN105591356A (en) | Overvoltage and undervoltage protection circuit | |
CN112286338B (en) | Chip control method, chip control device, electronic equipment and storage medium | |
CN111008090B (en) | Battery electric quantity control method and device, storage medium and terminal equipment | |
US20220278535A1 (en) | Charging/discharging protection circuit, terminal device, and battery discharging control method | |
CN203520222U (en) | LDO (low dropout regulator) | |
CN116500689B (en) | Wireless low-power-consumption material level detection device and method and electronic equipment | |
US20150318719A1 (en) | Charging method and electronic device | |
WO2024041427A1 (en) | Battery metering system, electronic device and control method | |
CN107577567B (en) | Mainboard test circuit and related product | |
US20130155565A1 (en) | Overcurrent protection circuit | |
WO2018049303A1 (en) | Portable electronic device with accessible-charge indicator | |
CN104954046A (en) | Transmission method and device thereof based on power line communication | |
CN105762782A (en) | Electronic device and electrostatic discharging method | |
CN107037866B (en) | Terminal reset circuit and terminal | |
CN105764128B (en) | The method for controlling power supply and device of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |