CN114909947B - Rifle shooting bullet counting method and device based on LORA (local area network of things) - Google Patents
Rifle shooting bullet counting method and device based on LORA (local area network of things) Download PDFInfo
- Publication number
- CN114909947B CN114909947B CN202210435373.6A CN202210435373A CN114909947B CN 114909947 B CN114909947 B CN 114909947B CN 202210435373 A CN202210435373 A CN 202210435373A CN 114909947 B CN114909947 B CN 114909947B
- Authority
- CN
- China
- Prior art keywords
- gun
- lora
- target
- resistor
- shooting
- 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
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 title claims abstract description 71
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000001133 acceleration Effects 0.000 claims abstract description 79
- 238000007493 shaping process Methods 0.000 claims abstract description 30
- 238000012544 monitoring process Methods 0.000 claims description 31
- 238000004891 communication Methods 0.000 claims description 17
- 230000006870 function Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 238000005259 measurement Methods 0.000 claims description 10
- 239000003990 capacitor Substances 0.000 claims description 7
- 238000003860 storage Methods 0.000 claims description 3
- 230000006855 networking Effects 0.000 claims description 2
- 230000002093 peripheral effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000010304 firing Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000003721 gunpowder Substances 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 229910001416 lithium ion Inorganic materials 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F41—WEAPONS
- F41A—FUNCTIONAL FEATURES OR DETAILS COMMON TO BOTH SMALLARMS AND ORDNANCE, e.g. CANNONS; MOUNTINGS FOR SMALLARMS OR ORDNANCE
- F41A33/00—Adaptations for training; Gun simulators
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F41—WEAPONS
- F41A—FUNCTIONAL FEATURES OR DETAILS COMMON TO BOTH SMALLARMS AND ORDNANCE, e.g. CANNONS; MOUNTINGS FOR SMALLARMS OR ORDNANCE
- F41A35/00—Accessories or details not otherwise provided for
-
- 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
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Aiming, Guidance, Guns With A Light Source, Armor, Camouflage, And Targets (AREA)
Abstract
The application discloses a rifle shooting bullet counting method and device based on LORA (local area network) internet of things, comprising the following steps: detecting a gun body vertical acceleration pulse signal of a target position where a bullet is currently shot; comparing the gun body vertical acceleration pulse signal with threshold voltage, and shaping and outputting square wave signals if the gun body vertical acceleration pulse signal is not smaller than the threshold voltage; and counting the square wave signals output in the integral mode to obtain the number of the gun shot bullets of each target position. The shot bullet counting device provided by the application has the advantages of small volume and light weight: (1) The integrated triaxial acceleration sensor is adopted to detect gun movement acceleration signals when the bullet shoots, the volume is very small, the peripheral circuit is simple, and the required devices are few; (2) The integrated LORA wireless module is small in size, and the CPU and the memory chip are integrated inside, so that the circuit is simple, and the area of a circuit board is small.
Description
Technical Field
The application relates to a rifle shooting bullet counting method based on the LORA (local area network) internet of things and a rifle shooting bullet counting method device based on the LORA internet of things, and belongs to the technical field.
Background
Rifle ball firing is an important training and examination subject for basic army, and the number of bullets shot at each firing position is monitored in real time, so that whether individual personnel reserve bullets or not can be found in time, and the army is prevented from safety management accidents. In addition, the number of shot bullets is monitored in real time, the number of shot training consumed bullets is statistically managed, and the scientificalness and refinement level of ammunition management are improved. Therefore, it is of great importance to detect and count the real-time firing bullets of a rifle.
The rifle can produce characteristics such as sound, muzzle high temperature smoke discharge and shell case throwing when shooting, and current shooting bullet counting device's measuring method and not enough are as follows: the sound sensor is used for measuring the shooting sound of the bullet, but the mutual interference of shooting phases is serious, and the measurement accuracy is poor; an infrared or ultraviolet sensor is used for measuring the infrared or ultraviolet characteristics of the bullet during the ejection, but the installation is troublesome, the operation is inconvenient and the measurement accuracy is not high; the infrared correlation measurement is adopted to throw the shell, so that the defects of inconvenient operation and use, poor anti-interference capability and the like exist; the camera is arranged above the shooting position to detect through video image analysis, but the equipment is high in cost, complex to install and not suitable for an outdoor target range; the magnetic field change caused by movement in the gun barrel during bullet shooting is measured based on a magnetic resistance sensor, and bullet shooting measurement counting is carried out, but the device is arranged on the gun barrel and can cause interference to shooting operation.
In addition, the above measurement methods mostly need to supply power to the device through special lines or need signal lines to transmit measurement results so as to facilitate centralized monitoring, and the wires are complex in shooting ranges and inconvenient to use. The Zigbee wireless transmission method is also adopted for centralized monitoring, but the method has the disadvantages of short transmission distance and poor anti-interference capability, and is not suitable for complex environments.
The integrated triaxial acceleration sensor based on the micro-electromechanical technology can simultaneously measure acceleration signals in three directions of X, Y, Z, has small volume, light weight, low working voltage and low cost, and can be directly welded on a circuit board; the LORA internet of things adopts a spread spectrum communication technology, is long in communication distance and good in reliability, and the LORA communication module is small in size, low in power consumption, embedded in CPU and powerful in function. The development of these advanced techniques and devices has made it possible to develop a new bullet counting device that is small, lightweight, does not require wiring, can be easily installed on the gun body, and does not interfere with aiming shots. The gun positions of the shooting range can be conveniently and intensively monitored through LORA communication, wiring is not needed, and the use is convenient.
Disclosure of Invention
The application aims to overcome the defects of the prior art, and provides a rifle shooting bullet counting method and device based on the LORA (local area network) internet of things, which can monitor a plurality of gun positions in a shooting range in real time, and is convenient to use and operate and high in accuracy.
In order to achieve the above purpose, the application provides a rifle shooting bullet counting method based on LORA internet of things, comprising the following steps:
detecting a gun body vertical acceleration pulse signal of a target position where a bullet is currently shot;
comparing the gun body vertical acceleration pulse signal with threshold voltage, and shaping and outputting square wave signals if the gun body vertical acceleration pulse signal is not smaller than the threshold voltage;
and counting the square wave signals output in the integral mode to obtain the number of the gun shot bullets of each target position.
Preferably, after the shooting is completed or the preset shooting time is reached, comparing the number of the gun shot bullets of each target with the actual loading number of the corresponding gun, and if the obtained gun shot bullets are smaller than the actual loading number of the corresponding gun, alarming and prompting.
Preferably, the threshold voltage is the peak value average value of the gun body vertical acceleration pulse signal obtained by actual measurement in the field for a plurality of times in advance.
Preferably, counting the square wave signal output in the whole shape to obtain the number of the gun shots of each target, including:
after shaping and outputting square wave signals, transmitting the numbers of the corresponding target positions to a service terminal;
the service terminal analyzes the number of the target, and the number of the gun shooting bullets corresponding to the target is increased by 1.
Preferentially, the service terminal analyzes the number of the target, and the following steps are adopted:
(A) Storing the number of the received target bit into a data character string;
b, judging the effectiveness of the number of the target, intercepting the first bit in the data character string by using a Mid function, if the first bit is "#", the number of the target is effective data, executing the step B, and otherwise, ending the operation;
(B) Taking the second bit and the third bit in the data character string by using a Mid function, if the number is 0N, the number is N number target bits, N epsilon [1, N ], N is the total number of target bits, the number of gun shooting bullets of the N number target bits is increased by 1, the number of gun shooting bullets of the target bits is compared with the actual loading number of the corresponding gun, and if the number of gun shooting bullets of the target bits reaches the actual loading number of the corresponding gun, the shooting is completely finished;
(C) After multiple rounds of shooting, counting the number of the shot bullets of each round of gun and the total number of the shot bullets of the rounds of gun at each target position to obtain the total bullet consumption.
Preferably, the number of the target is transmitted to the service terminal by LORA wireless communication.
Preferentially, a rifle shooting bullet counting device based on the LORA internet of things is used for executing the method, and comprises an integrated triaxial acceleration sensor, an acceleration signal comparison and shaping circuit, an integrated LORA wireless module and a monitoring host, wherein the integrated triaxial acceleration sensor and the acceleration signal comparison and shaping circuit are electrically connected with the integrated LORA wireless module, the integrated LORA wireless module is in wireless communication connection with the monitoring host, the integrated triaxial acceleration sensor is used for detecting a gun body vertical acceleration pulse signal of a target position where a current shooting bullet is located, the acceleration signal comparison and shaping circuit is used for comparing the gun body vertical acceleration pulse signal with threshold voltage, the integrated LORA wireless module is used for transmitting the number of the corresponding target position to a service terminal after shaping and outputting square wave signals, and the monitoring host is used as a carrier of the service terminal.
Preferably, the integrated triaxial acceleration sensor model is an MMA7361LC sensor;
the model of the integrated LORA wireless module is a wireless module M-HL10;
the monitoring host comprises a server and a LORA wireless router, and the server is electrically connected with the LORA wireless router;
the acceleration signal comparison and shaping circuit comprises an LM393 double-voltage comparator, a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a capacitor C3, wherein one end of the resistor R4 is connected with VCC, the other end of the resistor R4 is connected with one end of the resistor R1 and one end of the resistor R3, the other end of the resistor R3 is grounded, the other end of the resistor R1, one end of the resistor R2 and the positive electrode input end of the LM393 double-voltage comparator are connected with each other, the other end of the resistor R2 is connected with the output end of the LM393 double-voltage comparator, and the negative electrode input end of the LM393 double-voltage comparator is connected with the capacitor C3 in series and then grounded;
the gun body vertical acceleration pulse signal Z is input into the negative electrode input end of the LM393 double-voltage comparator, and the threshold voltage Vz is input into the positive electrode input end of the LM393 double-voltage comparator;
the gun also comprises a powerful magnet, an integrated triaxial acceleration sensor, an acceleration signal comparison and shaping circuit and an integrated LORA wireless module, wherein the powerful magnet is fixed on the gun stock of the gun, and the powerful magnet is adsorbed on the gun stock of the gun.
Preferably, an electronic device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, said processor implementing the steps of any one of the methods described above when said program is executed.
Preferably, a computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of any of the methods described above.
The application has the beneficial effects that:
1. the shot bullet counting device provided by the application has the advantages of small volume and light weight: (1) The integrated triaxial acceleration sensor is adopted to detect gun movement acceleration signals when the bullet shoots, the volume is very small, the peripheral circuit is simple, and the required devices are few; (2) The integrated LORA wireless module is small in size, and the CPU and the memory chip are integrated inside, so that the circuit is simple, and the area of a circuit board is small.
2. The application is convenient to install and use, and does not influence normal aiming and shooting: (1) Wireless signal transmission is adopted, and an external signal transmission line is not required; (2) The high-energy-density small lithium ion battery is adopted for power supply, and an external wired power supply circuit is not needed, so that the shooting bullet counting device is integrally packaged into a small metal box and is fixed on a gun through a powerful magnetic sheet, and the gun is simple and convenient to install and detach.
Drawings
FIG. 1 is a schematic block diagram of a shot bullet counting apparatus and a monitoring host of the present application;
fig. 2 is a waveform diagram of the vertical acceleration pulse signal of the gun body at the time of bullet ejection according to the present application.
FIG. 3 is a circuit diagram of an acceleration signal comparison and shaping circuit;
fig. 4 is a flow chart of the monitoring host software.
Fig. 5 is a picture of the monitoring host with multiple shooting positions for bullet counting.
Detailed Description
The following examples are only for more clearly illustrating the technical aspects of the present application, and are not intended to limit the scope of the present application.
When a rifle bullet is fired, the gunpowder explodes to generate a great deal of gas and rapidly expands to generate thrust force so as to enable the bullet to be ejected from the gun barrel, and meanwhile, a reverse impact force, namely recoil force, is generated due to interaction of forces, and the recoil force mainly causes the gun to move in the direction of a gun body and bounce of the gun in the vertical direction. Corresponding acceleration signals are generated when the rifle is fired once, and acceleration pulse signals Z in the vertical direction of the rifle body generated when the rifle is shot are collected through an acceleration sensor S arranged on the rifle body and used as a judgment basis for whether bullets are shot or not.
The rifle shooting bullet counting method based on the LORA internet of things comprises the following steps:
detecting a gun body vertical acceleration pulse signal of a target position where a bullet is currently shot;
comparing the gun body vertical acceleration pulse signal with threshold voltage, and shaping and outputting square wave signals if the gun body vertical acceleration pulse signal is not smaller than the threshold voltage;
and counting the square wave signals output in the integral mode to obtain the number of the gun shot bullets of each target position.
Further, in this embodiment, after the shooting is completed or the preset shooting time is reached, the number of the gun shots at each target is compared with the actual number of the corresponding guns, and if the obtained number of the gun shots is smaller than the actual number of the corresponding guns, an alarm is given.
Further, in this embodiment, the threshold voltage is the peak value average value of the acceleration pulse signal in the vertical direction of the gun body, which is obtained by actual measurement in the field multiple times in advance.
Further, in this embodiment, counting square wave signals output in an overall shape to obtain the number of shots fired by the gun for each target includes:
after shaping and outputting square wave signals, transmitting the numbers of the corresponding target positions to a service terminal;
the service terminal analyzes the number of the target, and the number of the gun shooting bullets corresponding to the target is increased by 1.
Further, in this embodiment, the number of the target is transmitted to the service terminal through the LORA wireless communication.
Further, the rifle shooting bullet counting device based on the LORA thing networking in this embodiment is used for executing the method, and the rifle shooting bullet counting device comprises an integrated triaxial acceleration sensor, an acceleration signal comparison and shaping circuit, an integrated LORA wireless module and a monitoring host, wherein the integrated triaxial acceleration sensor and the acceleration signal comparison and shaping circuit are electrically connected with the integrated LORA wireless module, the integrated LORA wireless module is in wireless communication connection with the monitoring host, the integrated triaxial acceleration sensor is used for detecting a gun body vertical acceleration pulse signal of a target position where a bullet is currently shot, the acceleration signal comparison and shaping circuit is used for comparing the gun body vertical acceleration pulse signal with threshold voltage, the integrated LORA wireless module is used for transmitting the number of the corresponding target position to a service terminal after shaping and outputting the square wave signal, and the monitoring host is used as a carrier of the service terminal.
Further, the integrated triaxial acceleration sensor in the present embodiment is an MMA7361LC sensor;
the model of the integrated LORA wireless module is a wireless module M-HL10;
the monitoring host comprises a server and a LORA wireless router, and the server is electrically connected with the LORA wireless router;
the acceleration signal comparison and shaping circuit comprises an LM393 double-voltage comparator, a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a capacitor C3, wherein one end of the resistor R4 is connected with VCC, the other end of the resistor R4 is connected with one end of the resistor R1 and one end of the resistor R3, the other end of the resistor R3 is grounded, the other end of the resistor R1, one end of the resistor R2 and the positive electrode input end of the LM393 double-voltage comparator are connected with each other, the other end of the resistor R2 is connected with the output end of the LM393 double-voltage comparator, and the negative electrode input end of the LM393 double-voltage comparator is connected with the capacitor C3 in series and then grounded;
the gun body vertical acceleration pulse signal Z is input into the negative electrode input end of the LM393 double-voltage comparator, and the threshold voltage Vz is input into the positive electrode input end of the LM393 double-voltage comparator;
the gun also comprises a powerful magnet, an integrated triaxial acceleration sensor, an acceleration signal comparison and shaping circuit and an integrated LORA wireless module, wherein the powerful magnet is fixed on the gun stock of the gun, and the powerful magnet is adsorbed on the gun stock of the gun.
Further, an electronic device in this embodiment includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any of the methods described above when the program is executed.
Further, a computer readable storage medium in this embodiment has stored thereon a computer program which, when executed by a processor, implements the steps of any of the methods described above.
The types of the components of the resistor R1, the resistor R2, the resistor R3, the resistor R4 and the capacitor C3 in the prior art are numerous, and a person skilled in the art can select a proper type according to actual requirements, so that the embodiment is not illustrated one by one.
The application discloses a rifle shooting bullet counting method and system based on LORA (local area network) Internet of things, which comprises a battery-powered shooting bullet counting device with LORA wireless communication function and a monitoring host with the LORA wireless communication function, wherein the battery-powered shooting bullet counting device is installed on a gun, and the monitoring host is remotely arranged and can perform centralized monitoring management on a plurality of targets in a target range. The shooting bullet counting device is powered by a battery, no external connection line is used for power supply, the volume is small, the weight is light, the installation on the gun is simple and convenient, normal shooting is not affected, the LORA communication function is provided, and the monitoring host computer acquires the shooting bullet number of each shooting bullet counting device in real time through the LORA Internet of things for statistical analysis.
The shot bullet counting apparatus includes:
(10) Integrated triaxial acceleration sensor: and detecting an acceleration pulse signal of the movement of the gun body when the gun bullet shoots.
(20) Acceleration signal comparison and shaping circuit: comparing the acceleration pulse signal of the gun body movement with threshold voltage, and shaping and outputting square wave signals;
(30) Integrated LORA wireless module: detecting square wave signals, wherein each time a square wave signal is detected, the square wave signal indicates that a gun shoots a bullet, and the number of the shot bullets of the gun is increased by one;
the number of the gun shots adopts LORA wireless transmission: the number of the gun shots is sent out through LORA wireless communication, so that a monitoring host can intensively carry out statistical analysis;
and (3) monitoring a host: the number of shots fired by the plurality of shot bullet counting devices is received by the LORA router, and the number of shots fired by each gun is statistically analyzed.
An acceleration signal comparison and shaping circuit is adopted to shape the gun body vertical acceleration pulse signal into a square wave signal so as to count the gun body vertical acceleration pulse signal conveniently, and the concrete contents are as follows:
the acceleration signal comparison and shaping circuit adopts a voltage comparison chip device to compare the acceleration pulse signal Z in the vertical direction of the gun body with the threshold voltage Vz, and outputs a square wave signal Rz when the peak value of the acceleration pulse signal Z in the vertical direction of the gun body is not smaller than the threshold voltage Vz. The threshold voltage is the peak value average value of the gun body vertical acceleration pulse signal obtained by actual measurement on site for a plurality of times.
The integrated LORA wireless module M-HL10 is adopted for detecting and counting square wave signals, the number of the gun shot bullets is obtained, and the number of the gun shot bullets is wirelessly transmitted to the monitoring host, and the specific contents are as follows:
the wireless module M-HL10 is a LORA communication module, and an HC32L136 microprocessor and a LORA signal receiving and transmitting circuit are integrated inside. The general purpose input/output port GPIO3 of the wireless module M-HL10 is initialized to be in an input mode and used for detecting the square wave signal Rz. Each time a square wave signal Rz is detected, a bullet is shot, and the number of the shot bullets of the gun is increased by 1.
And the wireless module M-HL10 transmits the number of the shots shot by the firearm through a LORA wireless channel of the LORA signal receiving and transmitting circuit, and the LORA communication module of the centralized monitoring host receives the number of the shots shot by the firearm.
The monitoring host receives the number of the gun shots sent by each shot bullet counting device, counts, analyzes and alarms the number of the gun shots, and comprises the following specific contents:
receiving bullet count values sent by each shooting bullet counting device through LORA wireless channels;
the monitoring software provides corresponding software functions according to the shooting bullet management requirements: comparing and analyzing the number of the shot bullets of each gun with the number of the shot bullets, and alarming when the number of the shot bullets of a gun is less than the number of the shot bullets after one round of shooting is finished; the total number of spent bullets shot in this training (assessment) is counted.
The MMA7361LC sensor chip adopted by the design is a low-power micromechanical triaxial acceleration sensor chip, the inside of the MMA7361LC sensor chip has the functions of signal adaptation, low-pass filter, temperature compensation, self-detection and the like, acceleration signals have positive and negative 1.5g measuring ranges and positive and negative 6g measuring ranges which can be selected, and the 1.5g measuring ranges are adopted in the design.
Taking the threshold voltage vz=2.2v of the comparator according to the actually measured acceleration signal amplitude, selecting R in the resistance diagram 4 appropriately 3 、R 4 The value of (2) is sufficient.
The LORA network supports multi-channel communications, with the LORA module of each firearm setting a different channel frequency, thus enabling counting of multiple firearm rounds.
The gateway communicates with the monitoring host: the monitoring host software adopts a Winsock control in VB to connect the monitoring host with the LORA gateway, sets parameters Winsock1. RemoteHost= "192.168.0.178" and Winsock1. RemotePort=4001 to configure the gateway as a remote host, then sends a connection request to the LORA gateway through a Winsock1.Connect method, the LORA gateway is in a waiting connection state after being electrified, and automatically receives the request when the connection request is received, and establishes connection with the monitoring host. Clicking the "activate" button on the monitor host screen as shown in fig. 5 activates the counting operation of the shot bullet counting device; the device does not take measurements until this signal is received, is in a standby activated state, and thus avoids mistasking the gun shake signal with a firing signal in preparation for the beginning of a fire. The monitoring host sends information to the bullet counting device to start working.
Data reception and bullet count: when the LORA gateway receives a gun shot bullet number signal sent by the LORA wireless module, winsock triggers a DataArrival event to execute the following procedures:
in this embodiment, the service terminal analyzes the number of the target, and the following steps are adopted:
(A) Storing the number of the received target bit into a data character string;
b, judging the effectiveness of the number of the target, intercepting the first bit in the data character string by using a Mid function, if the first bit is "#", the number of the target is effective data, executing the step B, and otherwise, ending the operation;
(B) Taking the second bit and the third bit in the data character string by using a Mid function, if the number is 0N, the number is N number target bits, N epsilon [1, N ], N is the total number of target bits, the number of gun shooting bullets of the N number target bits is increased by 1, the number of gun shooting bullets of the target bits is compared with the actual loading number of the corresponding gun, and if the number of gun shooting bullets of the target bits reaches the actual loading number of the corresponding gun, the shooting is completely finished;
(C) After multiple rounds of shooting, counting the number of the shot bullets of each round of gun and the total number of the shot bullets of the rounds of gun at each target position to obtain the total bullet consumption.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is merely a preferred embodiment of the present application, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present application, and such modifications and variations should also be regarded as being within the scope of the application.
Claims (8)
1. The rifle shooting bullet counting method based on the LORA internet of things is characterized by comprising the following steps of:
detecting a gun body vertical acceleration pulse signal of a target position where a bullet is currently shot;
comparing the gun body vertical acceleration pulse signal with threshold voltage, and shaping and outputting square wave signals if the gun body vertical acceleration pulse signal is not smaller than the threshold voltage;
counting the square wave signals output by the integral shape to obtain the number of the gun shots of each target position;
the counting the square wave signals outputted by the integral shape to obtain the number of the gun shot bullets of each target position comprises the following steps:
after shaping and outputting square wave signals, transmitting the numbers of the corresponding target positions to a service terminal;
the service terminal analyzes the number of the target, and the number of the gun shooting bullets corresponding to the target is increased by 1;
the service terminal analyzes the number of the target, and the method comprises the following steps:
(A) Storing the number of the received target bit into a data character string;
b, judging the effectiveness of the number of the target, intercepting the first bit in the data character string by using a Mid function, if the first bit is "#", the number of the target is effective data, executing the step B, and otherwise, ending the operation;
(B) Taking the second bit and the third bit in the data character string by using a Mid function, if the number is 0N, the number is N number target bits, N epsilon [1, N ], N is the total number of target bits, the number of gun shooting bullets of the N number target bits is increased by 1, the number of gun shooting bullets of the target bits is compared with the actual loading number of the corresponding gun, and if the number of gun shooting bullets of the target bits reaches the actual loading number of the corresponding gun, the shooting is completely finished;
(C) After multiple rounds of shooting, counting the number of the shot bullets of each round of gun and the total number of the shot bullets of the rounds of gun at each target position to obtain the total bullet consumption.
2. The method for counting rifle shots based on the LORA's Internet of things of claim 1, wherein,
and after the shooting is completed or the preset shooting time is reached, comparing the number of the gun shots at each target position with the actual loading number of the corresponding gun, and if the obtained number of the gun shots is smaller than the actual loading number of the corresponding gun, giving an alarm and prompting.
3. The method for counting rifle shots based on the LORA's Internet of things of claim 1, wherein,
the threshold voltage is the peak value average value of the gun body vertical acceleration pulse signal obtained by actual measurement in the field for many times in advance.
4. The method for counting rifle shots based on the LORA's Internet of things of claim 1, wherein,
and transmitting the number of the target to the service terminal through LORA wireless communication.
5. The rifle shooting bullet counting device based on the LORA thing networking is characterized by comprising an integrated triaxial acceleration sensor, an acceleration signal comparison and shaping circuit, an integrated LORA wireless module and a monitoring host, wherein the integrated triaxial acceleration sensor and the acceleration signal comparison and shaping circuit are electrically connected with the integrated LORA wireless module, the integrated LORA wireless module is in wireless communication connection with the monitoring host, the integrated triaxial acceleration sensor is used for detecting a gun body vertical acceleration pulse signal of a target position where a bullet is currently shot, the acceleration signal comparison and shaping circuit is used for comparing the gun body vertical acceleration pulse signal with threshold voltage, the integrated LORA wireless module is used for transmitting the number of the corresponding target position to a service terminal after shaping and outputting the square wave signal, and the monitoring host is used as a carrier of the service terminal.
6. The rifle shot bullet counting device based on the LORA's Internet of things as set forth in claim 5 wherein,
the integrated triaxial acceleration sensor is an MMA7361LC sensor;
the model of the integrated LORA wireless module is a wireless module M-HL10;
the monitoring host comprises a server and a LORA wireless router, and the server is electrically connected with the LORA wireless router;
the acceleration signal comparison and shaping circuit comprises an LM393 double-voltage comparator, a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a capacitor C3, wherein one end of the resistor R4 is connected with VCC, the other end of the resistor R4 is connected with one end of the resistor R1 and one end of the resistor R3, the other end of the resistor R3 is grounded, the other end of the resistor R1, one end of the resistor R2 and the positive electrode input end of the LM393 double-voltage comparator are connected with each other, the other end of the resistor R2 is connected with the output end of the LM393 double-voltage comparator, and the negative electrode input end of the LM393 double-voltage comparator is connected with the capacitor C3 in series and then grounded;
the gun body vertical acceleration pulse signal Z is input into the negative electrode input end of the LM393 double-voltage comparator, and the threshold voltage Vz is input into the positive electrode input end of the LM393 double-voltage comparator;
the gun also comprises a powerful magnet, an integrated triaxial acceleration sensor, an acceleration signal comparison and shaping circuit and an integrated LORA wireless module, wherein the powerful magnet is fixed on the gun stock of the gun, and the powerful magnet is adsorbed on the gun stock of the gun.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210435373.6A CN114909947B (en) | 2022-04-24 | 2022-04-24 | Rifle shooting bullet counting method and device based on LORA (local area network of things) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210435373.6A CN114909947B (en) | 2022-04-24 | 2022-04-24 | Rifle shooting bullet counting method and device based on LORA (local area network of things) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114909947A CN114909947A (en) | 2022-08-16 |
CN114909947B true CN114909947B (en) | 2023-09-26 |
Family
ID=82765253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210435373.6A Active CN114909947B (en) | 2022-04-24 | 2022-04-24 | Rifle shooting bullet counting method and device based on LORA (local area network of things) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114909947B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002228395A (en) * | 2001-02-01 | 2002-08-14 | Konami Co Ltd | Attachment for simulation gun and computer program for virtual experience of shooting |
JP2007298267A (en) * | 2006-04-07 | 2007-11-15 | Babcock Hitachi Kk | Fired bullet detector, ammunition managing device, and fired bullet number counting device |
CN101126615A (en) * | 2007-09-04 | 2008-02-20 | 中国人民解放军理工大学工程兵工程学院 | Bullet shooting counter |
CN107635862A (en) * | 2014-11-28 | 2018-01-26 | 哈普技术公司 | Method and apparatus for haptic system |
CN109029127A (en) * | 2018-09-17 | 2018-12-18 | 河北砺兵科技有限责任公司 | Command system and its command methods based on man-machine live shell dual training |
JP2019152356A (en) * | 2018-03-01 | 2019-09-12 | 株式会社日本製鋼所 | Fired bullet counting device, fired bullet counting method and fired bullet counting program |
CN211717259U (en) * | 2020-01-10 | 2020-10-20 | 宁波军鸽防务科技有限公司 | Device for recording information of fire of firearm and timer |
-
2022
- 2022-04-24 CN CN202210435373.6A patent/CN114909947B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002228395A (en) * | 2001-02-01 | 2002-08-14 | Konami Co Ltd | Attachment for simulation gun and computer program for virtual experience of shooting |
JP2007298267A (en) * | 2006-04-07 | 2007-11-15 | Babcock Hitachi Kk | Fired bullet detector, ammunition managing device, and fired bullet number counting device |
CN101126615A (en) * | 2007-09-04 | 2008-02-20 | 中国人民解放军理工大学工程兵工程学院 | Bullet shooting counter |
CN107635862A (en) * | 2014-11-28 | 2018-01-26 | 哈普技术公司 | Method and apparatus for haptic system |
JP2019152356A (en) * | 2018-03-01 | 2019-09-12 | 株式会社日本製鋼所 | Fired bullet counting device, fired bullet counting method and fired bullet counting program |
CN109029127A (en) * | 2018-09-17 | 2018-12-18 | 河北砺兵科技有限责任公司 | Command system and its command methods based on man-machine live shell dual training |
CN211717259U (en) * | 2020-01-10 | 2020-10-20 | 宁波军鸽防务科技有限公司 | Device for recording information of fire of firearm and timer |
Also Published As
Publication number | Publication date |
---|---|
CN114909947A (en) | 2022-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8826575B2 (en) | Self calibrating weapon shot counter | |
EP2715696B1 (en) | Firearm sensor system | |
US7778004B2 (en) | Systems and methods for modular electronic weaponry | |
US9025304B2 (en) | Systems and methods for a user interface for electronic weaponry | |
US8571815B2 (en) | System and method for automated gun shot measuring | |
US9022785B2 (en) | Monitoring shots of firearms | |
US7944676B2 (en) | Systems and methods for collecting use of force information | |
CN103913095B (en) | Firearms record tracking and device | |
US10852088B2 (en) | Device for monitoring firearms use | |
JP2008025987A (en) | Device for detecting and counting shot fired by automatic or semi-automatic fire arm, and fire arm equipped with the device | |
CN109934755A (en) | Gunnery training bullet management method, device, equipment and storage medium | |
JP4395357B2 (en) | Fire bullet counter | |
CN114909947B (en) | Rifle shooting bullet counting method and device based on LORA (local area network of things) | |
CN103453799A (en) | Real-time measurement method for quantity of shot bullets of small arm | |
AU2006347941A1 (en) | Systems and methods for multiple function electronic weaponry | |
CN111368964B (en) | Non-contact shooting counting device and counting method thereof | |
CN203785537U (en) | Gun recording and tracking device | |
CN206249379U (en) | Photo-electric bullet number statistic device | |
US7652580B2 (en) | Hit detection sensor module for battlefield simulations | |
CN116608728A (en) | Bullet counting device, method and equipment | |
CN220853296U (en) | Intelligent bullet recording device | |
CN212253830U (en) | Monitor for number of percussion of firearms | |
CN209978711U (en) | Image shooting training system | |
EP4392730A1 (en) | Device, system and method of detecting and counting shots | |
CN115544709A (en) | Inter-aiming equipment simulation system and working method thereof |
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 |