CN111408124A - Short-distance body measurement system based on Internet of things technology - Google Patents

Short-distance body measurement system based on Internet of things technology Download PDF

Info

Publication number
CN111408124A
CN111408124A CN202010173561.7A CN202010173561A CN111408124A CN 111408124 A CN111408124 A CN 111408124A CN 202010173561 A CN202010173561 A CN 202010173561A CN 111408124 A CN111408124 A CN 111408124A
Authority
CN
China
Prior art keywords
lower computer
microcontroller
point lower
photoelectric sensor
starting point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010173561.7A
Other languages
Chinese (zh)
Inventor
徐平平
王伟烽
孙宗恩
陆洋
潘时祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Tech University Pujiang Institute
Original Assignee
Nanjing Tech University Pujiang Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Tech University Pujiang Institute filed Critical Nanjing Tech University Pujiang Institute
Priority to CN202010173561.7A priority Critical patent/CN111408124A/en
Publication of CN111408124A publication Critical patent/CN111408124A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • A63B71/0605Decision makers and devices using detection means facilitating arbitration

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a short-distance physical measurement system based on the technology of Internet of things, which comprises a starting point lower computer, an end point lower computer, a cloud server and an upper computer, wherein photoelectric sensors are loaded on the starting point lower computer and the end point lower computer, and the starting point lower computer carries out data interaction on the end point lower computer and the server by using an AP + Station coexistence mode of an ESP 8266. Meanwhile, the device has the functions of detecting whether to rush to run, starting to run and sounding, and displaying data on a data display screen. And the terminal lower computer sends the cut-off signal of the photoelectric sensor to the starting lower computer by using the Station single mode of the ESP8266, so that the short-distance body measurement time is calculated and the data is uploaded to the cloud server. And the upper computer receives the JSON file sent by the cloud server through the POST request, and displays the JSON file on the upper computer after analysis. The invention solves the time delay problem and the transmission problem in short-distance physical measurement, sends the physical measurement time and the user data to the cloud server through the Internet of things technology, and displays the physical measurement time and the user data at the mobile terminal and the PC terminal, thereby realizing real-time viewing.

Description

Short-distance body measurement system based on Internet of things technology
Technical Field
The invention relates to a short-distance body measurement system based on the technology of Internet of things, and belongs to the technical field of short-distance body measurement.
Background
The traditional short-distance body measurement method such as a 50-meter running blanket limits the application range of the system due to the wired arrangement, and secondly, the fixation has certain error for the 50-meter running blanket, and certain safety exists during the running of the blanket, so that the practicability is not very strong. And the competition scheme of image processing also has the problem of time error. Two relatively representative short-range body measurement methods in the prior art are described below.
The method comprises the following steps: the utility model provides a transmission mode based on low radio frequency, judges the passing through of racing member through photoelectric sensing reflection receiving mode, mainly comprises starting point end module, terminal end module, main timing module and host computer, its characterized in that: the starting end module comprises a starting end control box, at least one group of reflector photoelectric sensors and a wireless communication module; the terminal module comprises a terminal control box, at least one group of reflector photoelectric sensors and a wireless communication module; the main timing module is provided with a controller, a wireless communication module and an interface connected with an upper computer; the main timing module, the starting point end module and the terminal end module form a communication network through a wireless communication module. The first method does not need to perform wiring operation on a competition field, is suitable for various fields, can be suitable for competitions with or without starting guns, and is particularly suitable for free type skidding speed pile passing competitions.
The first method has the following disadvantages: the method comprises the following steps that a light-reflecting photoelectric sensor is used for judging whether a sensor is touched or not through a light signal before reflection, and the risk that the sunlight or the light signal brought by strong light irradiating a light-reflecting sheet is interfered is not considered in the process; the existing technology is used for storing scores or storing the scores in an upper computer, and the final data is only stored as a document and cannot be uploaded to a database of a server to compare, calculate edges or send the data.
The second method comprises the following steps: a full-automatic image timing and information management system for competitive games is composed of a starting gun, a wireless starting signal detection and transmission device, a wireless starting signal receiving device, a computer, computer software, an image acquisition card and a high-speed linear array CCD camera, wherein the computer software comprises a shooting control unit, an automatic interpretation unit and an information management unit, and is characterized in that: the wireless starting signal detection and emission device is placed near a starting gun, the wireless starting signal receiving device is connected with a computer, the wireless starting signal detection and emission device and the wireless starting signal receiving device synchronously acquire starting signals, in the process of a match, the wireless starting signal detection and emission device collects sound information of the starting gun and transmits the sound information to the wireless starting signal receiving device, computer software is automatically started for timing, when an athlete is approaching to a terminal, a high-speed linear array CCD camera is used for shooting a terminal sprint image, the image timing subsystem is used for identifying human body scores, and the athlete is automatically judged and read.
The second method has the following disadvantages: the starting end device is provided with a timer starting working signal, and the comparison speed of the competition in the actual competition and the reaction time of the competitor to the starting signal are not considered. Such a design may lead to errors in the final time and the actual time; in the use of middle school and colleges, the condition of alternative running in student groups is not considered, if some students take alternative running, the score is directly invalid; the collected images are used for judging whether the competitor leaves from the starting end or arrives at the terminal end, and the time delay caused by characteristic points with image recognition and collection and machine processing is not considered, so that errors exist in the finally generated time and the actual time; through the collected audio signal, the machine is enabled to compare similar parts through converting the audio signal into a waveform, and finally, the command sending signal is confirmed. In the process of timing signals of the equipment in the processes of collecting → converting → comparing → 'sending →', the processing time of the machine can generate time delay to cause errors of final time and actual time.
With the development of the internet era, the 5G era comes, the era with greatly reduced time delay is covered by wireless networks rapidly in a large range, and the development of novel technologies is also convenient for human life. The wireless network has the main advantages that no wiring is required, and the wireless network can not be limited by unlimited conditions. Moreover, the method for establishing the wireless network is simple: the basic devices for constructing a wireless network are a wireless network card and a platform AP, so that network resources can be shared in a wireless mode in cooperation with an existing wired architecture, and the wireless network is not only simple in operation, but also far lower in construction cost and complex procedures than a traditional wired network. In addition, the number of wireless APs is rapidly popularized in two years, the convenience and the high efficiency of a wireless network are rapidly popularized, and the position of the wireless network is increasingly firm. Similarly, with the maturity and development of the internet system, the internet of things technology is used as the next air port, and the whole industry has a good development prospect, so that the body measurement system based on the wireless network and the internet of things technology has a good market and development prospect.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the short-distance physical measurement system based on the Internet of things technology overcomes the problems of low efficiency, high time delay, high cost, unsuitable transmission scheme and the like in the traditional physical measurement method.
The invention adopts the following technical scheme for solving the technical problems:
a short-distance physical measurement system based on the Internet of things technology comprises a starting point lower computer, an end point lower computer, a cloud server and an upper computer, wherein the starting point lower computer is arranged at a starting point of a runway, and the end point lower computer is arranged at an end point of the runway;
the starting point lower computer comprises a first microcontroller, a key module, a first photoelectric sensor, a voice recording and playing module, an audio power amplification module, an O L ED display screen and a first power module, wherein the first photoelectric sensor comprises a first transmitting end and a first receiving end, the first transmitting end and the first receiving end are respectively arranged on two sides of the starting point of the runway, a straight line formed by connecting the first transmitting end and the first receiving end is perpendicular to the runway, the output end of the key module and the output end of the first photoelectric sensor are respectively connected with the input end of the first microcontroller, the output end of the first microcontroller is sequentially connected with the voice recording and playing module and the audio power amplification module, the output end of the first microcontroller is further connected with the input end of the O L ED display screen, the first power module supplies power to the first microcontroller, the key module, the first photoelectric sensor, the voice recording and playing module, the audio power module and the O L ED display screen, the first microcontroller is communicated with a cloud server through a wireless network, and the cloud server is communicated with the upper computer through the wireless network;
the end point lower computer comprises a second microcontroller, a second photoelectric sensor and a second power module, the second photoelectric sensor comprises a second transmitting end and a second receiving end, the second transmitting end and the second receiving end are respectively arranged on two sides of the end point of the runway, a straight line formed by the connection of the second transmitting end and the second receiving end is perpendicular to the runway, the output end of the second photoelectric sensor is connected with the input end of the second microcontroller, and the second power module supplies power to the second microcontroller and the second photoelectric sensor;
after the starting-point lower computer and the finishing-point lower computer are electrified, entering a body measurement system preparation stage, and when an O L ED display screen displays a word that the lower computer is completely prepared and can start running, completing the preparation and entering the body measurement stage;
when the first microcontroller receives a signal sent by the key module, countdown is started for 3 seconds, the countdown is finished, the voice recording and playing module is controlled to play a prerecorded start signal gunshot, the output decibel of the start signal gunshot is amplified through the audio power amplification module, a physical testing person starts running after hearing the start signal gunshot, the first microcontroller starts timing at the same time, if the physical testing person passes through the first photoelectric sensor before the start signal gunshot rings, the timing is stopped, meanwhile, an O L ED display screen displays a physical testing person race snatching character, timing is reset, the physical testing person returns to the starting point of the runway, the starting point is restarted, if the physical testing person passes through the first photoelectric sensor after the start signal gunshot rings, the timing is effective, when the physical testing person passes through the second photoelectric sensor, the electrical frequency of the second photoelectric sensor turns over and sends a signal to the second microcontroller, the second microcontroller sends an analytic timing signal to the first microcontroller, the first microcontroller stops timing, the identity and the score of the physical testing person are sent to a JSON server, and the JSON server sends the signal to a cloud server after passing through a JSON file.
As a preferred scheme of the invention, the upper computer is a mobile phone end and/or a PC end.
As a preferred scheme of the present invention, the preparation stage of the physical measurement system specifically comprises the following processes:
the first microcontroller adopts an AP + Station coexistence mode, and the second microcontroller adopts a single Station mode;
after the starting point lower computer and the terminal point lower computer are electrified, the AP of the first microcontroller is connected with the Station of the second microcontroller and handshake is carried out, the starting point lower computer starts the Station mode, the second transmitting end and the second receiving end of the second photoelectric sensor are focused, the second microcontroller sends a focusing success instruction to the first microcontroller through a TCP protocol after successful focusing, the first transmitting end and the first receiving end of the first photoelectric sensor are focused, the first photoelectric sensor sends a focusing success result to the first microcontroller in a GPIO serial port mode after successful focusing, and after the steps are successful, the O L ED display screen of the IIC protocol displays that the lower computer is ready and can start running;
after the starting point lower computer and the terminal point lower computer are electrified, if the AP of the first microcontroller is connected with the Station of the second microcontroller and handshake is carried out, and handshake is not successful within 20s, displaying that the terminal point lower computer is not connected successfully on an O L ED display screen, and needing to debug the starting point lower computer and the terminal point lower computer again until the fact that the lower computer is completely prepared is displayed, starting running can be carried out;
starting a Station mode by the starting point lower computer, if the router connected with the wireless network is not connected and the IP of the cloud server cannot be obtained, displaying that the starting point lower computer is not connected successfully on an O L ED display screen, and debugging the starting point lower computer and the destination lower computer again until the fact that the lower computer is prepared completely is displayed, so that the running can be started;
after the endpoint lower computer and the start point lower computer are successfully connected, if the second photoelectric sensor fails to focus, the second microcontroller does not send an instruction to the first microcontroller, the O L ED display screen displays that the endpoint photoelectric sensor fails to deploy, the start point lower computer and the endpoint lower computer need to be debugged again until the lower computer finishes preparation, the character can be played, if the first photoelectric sensor fails to focus, the first microcontroller cannot receive a signal of electrical frequency conversion through GPIO TT L, the O L ED display screen displays that the start point photoelectric sensor fails to deploy, the start point lower computer and the endpoint lower computer need to be debugged again until the equipment preparation is finished, the character can be played, if the second photoelectric sensor fails to focus, the O L ED display screen displays that the endpoint photoelectric sensor fails to deploy, the start point lower computer and the endpoint lower computer need to be debugged again until the lower computer finishes the preparation, the character can be played.
In a preferred embodiment of the present invention, the first microcontroller and the second microcontroller both use an ESP8266EX type chip.
As a preferable scheme of the invention, the O L ED display screen adopts an SSD1306 type chip.
As a preferable scheme of the present invention, the voice recording and playing module adopts an ISD1820 chip.
Compared with the prior art, the invention adopting the technical scheme has the following technical effects:
1. the invention solves the time delay problem and the transmission problem in short-distance physical measurement, sends the short-distance physical measurement time and the user data to the cloud server through the Internet of things technology, and displays the short-distance physical measurement time and the user data at the mobile terminal and the PC terminal of the mobile phone, thereby realizing real-time viewing.
2. The short-distance physical measurement system based on the Internet of things technology has the advantages of shorter time delay, higher accuracy, lower cost, wider application range and higher practicability.
Drawings
Fig. 1 is a structural diagram of a lower computer of a starting point in the short-distance body measuring system of the present invention.
Fig. 2 is a structural diagram of an end point lower computer in the short-distance body measuring system of the invention.
Fig. 3 is a schematic layout diagram of the starting point lower computer and the end point lower computer in the short-distance body measuring system of the invention.
Fig. 4 is a schematic diagram of the operation of the short-range body measurement system of the present invention.
FIG. 5 is a flow chart of the operation of the lower computer of the starting point in the short-distance body measuring system of the present invention.
FIG. 6 is a flow chart of the operation of the lower end point computer in the short-distance body measurement system of the present invention.
Fig. 7 is a circuit schematic of the start-up sound simulation used by the short range body measurement system of the present invention.
Fig. 8 is a schematic diagram of ESP8266 used in the short-range body measurement system of the present invention.
Fig. 9 is a block diagram of data transmission of the short-range physical measurement system of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
The method aims to overcome the defects that the complex workload caused by the high demand of short-distance body measurement is high, and the time delay cannot be reduced to a lower level in the prior art, the data is stored and the like. According to the invention, the acquired short-distance physical measurement time and user data are sent to the cloud server through the networking mode of the AP + Station mode of the starting point lower computer equipment and the terminal point lower computer equipment and the technology of the Internet of things, and the data are displayed at the mobile terminal and the PC terminal of the mobile phone and can be viewed in real time. Aiming at the time delay problem and the transmission problem in the short-distance physical measurement, the scheme makes a demonstration and meets the environmental requirement of the short-distance physical measurement.
The present invention will be further described with reference to the following examples.
A short-distance physical measuring system based on the Internet of things technology comprises a starting point lower computer, an end point lower computer, a cloud server and an upper computer, wherein the starting point lower computer is arranged at a starting point of a runway, and the end point lower computer is arranged at an end point of the runway, as shown in figure 3.
As shown in figure 1, the starting point lower computer comprises a first microcontroller, a key module, a first photoelectric sensor, a voice recording and playing module, an audio power amplifier module, an O L ED display screen and a first power supply module, as shown in figure 2, the ending point lower computer comprises a second microcontroller, a second photoelectric sensor and a second power supply module, the first photoelectric sensor and the second photoelectric sensor respectively comprise a transmitting end and a receiving end, the transmitting end and the receiving end are respectively erected on two sides of a runway, the first photoelectric sensor is arranged at the starting point, and the second photoelectric sensor is arranged at the ending point.
A first power supply module: DC5V provides power to the first microcontroller and the first microcontroller begins to operate.
And an O L ED display screen, wherein the first microcontroller uses an IIC protocol, and the running score is displayed in the screen after a stop timing signal fed back by the endpoint lower computer through a TCP protocol is acquired.
Button the microcontroller reads the button's TT L level.
A first photosensor: the first microcontroller collects the first photosensor level in real time. If a person passes through the sensor, the level of the sensor is switched, and the timing is started.
The voice recording and playing module: the signal gunshot of starting the running is recorded in advance, and the microcontroller enables the voice recording and playing module through single IO, so that the signal gunshot is played.
The audio power amplifier module: the DAC audio signal of the voice recording and playing module is only 0.5W, and the decibel of the output audio is improved through the digital audio power amplification module.
A second power supply module: DC5V powers the second microcontroller.
A second photosensor: and the second microcontroller acquires the level of the second photoelectric sensor in real time. If someone passes, it causes the level of the sensor to switch and sends a stop signal to the starting first microcontroller via the TCP protocol.
The first microcontroller and the second microcontroller both adopt an ESP8266EX module, the ESP8266 integrates a 32-bit processor, the flash size is up to 4MB, and a standard digital peripheral interface supports a built-in TCP/IP protocol stack and an IEEE802.11 protocol stack. The MCU using the module as the starting circuit can reserve up to 80% of processing capacity for application programming and development, and is beneficial to reducing the time delay of communication of each part of the system. By adopting the IPEX antenna, the WIFI coverage in an open area can reach 100M. The ESP8266 module supports three networking modes: AP module, Station mode, AP + Station mode. The starting point lower computer of the system adopts an AP + Station mode, so that the system can be communicated with a terminal computer and can upload data to a cloud server. As shown in fig. 8, a schematic diagram of the circuit design of the module is shown.
The O L ED display module is adopted, the accuracy of a first manual test is facilitated by the added display screen module, and the SSD1306 supports various bus driving modes including SPI, IIC, 8080 parallel port and the like, so that the display module of the physical testing system adopts 0.96-inch SSD1306 to drive an O L ED screen, and meanwhile, the interface can be selected by pulling the corresponding IO port of a chip low and high.
The voice recording and playing module is made of ISD1820, and ISD1820 is a high-quality recording and playing module made by ISD company in America, and the voice recording and playing module is made of CMOS technology and comprises an oscillator, a microphone preamplifier, automatic gain control, an anti-aliasing filter, a smoothing filter, a loudspeaker driver and a FlaSH array. Because the recording and playing module of the usage place which needs the body measuring system does not need to be large enough, the ISD1820 can be realized by only setting the minimum recording and playing system, and the minimum recording and playing system only needs a microphone, a loudspeaker, two buttons, a 3V power supply and a few resistor capacitors, so the operation is simple, the effect is good, and the cost is saved. As shown in fig. 7, a schematic diagram of the circuit design of the module is shown.
As shown in the flow chart of the start-point lower computer program of fig. 5, after the start-point lower computer starts the Smartconfig function, it accesses a nearby available WIFI. After the successful access is prompted, the starting point lower computer system is set to be in an AP + Station mode, and a hotspot capable of reaching the Internet is accessed by using the Station mode. And after the TCP transparent transmission server is started, the terminal machine is accessed to the TCP service. After the access is finished, the equipment is debugged successfully, and the physical testing system can be formally used for short-distance testing. The race measuring personnel press the preparation button of the starting point by self after preparing, the signal indicating lamp can be lighted for five seconds, the signal lamp is extinguished after five seconds, and the voice module sends out a recorded signal gun sound effect. And the timer of the MCU starts to time, after the run-length measuring personnel reach the end point, the end point machine transmits back a confirmation signal, and the system finishes timing and sends the score to the cloud server.
As shown in fig. 6, after the AP hotspots of the end point lower computer and the start point lower computer are performed, the end point lower computer is accessed to the TCP transparent transmission server of the start point lower computer in a TCP client mode. And after the TCP connection is finished, the level of the laser sensor is continuously detected. If the level of the laser sensor is inverted, an acknowledgement signal is sent to the starting point.
The system is developed under the integrated windows development environment of Anxinke ESP series provided by Anxinke corporation, and the NONONOC-SDK which is provided by Lexin corporation for users, is rapid, efficient and easy to understand ESP8266 is used. The SDK with numerous functions provides interface functions of a hardware digital protocol and function interfaces such as TCP/IP, UDP, SmartConfig, NTP and the like for a user, and then a developer only needs to consider the design flow of the system and does not need to check a large number of data manuals.
The upper computer development is that a JAVA Spring frame is used as a background of the system, user data obtained by a lower computer is sent to a server, and the instant server sends data POST to a mobile phone client, so that real physical testing user data can be updated in real time.
The utility model provides a short distance body survey system based on internet of things, uses two ESP8266 as the main control that sends out of terminal and starting point, uses TCP agreement, HTTP agreement simultaneously, links to each other starting point and terminal lower computer to through the router of taking wireless network, submit data to the high in the clouds server. As shown in fig. 4, the working process of the system includes 3 stages, namely, a lower computer connection stage, a data transmission path stage, and an upper computer viewing stage.
(1) Lower computer connection phase
① successful deployment of device
The method comprises the steps that a switch between a starting point lower computer device and an end point lower computer device is opened, the starting point lower computer and the end point lower computer are connected with each other and perform handshaking, the starting point lower computer starts a Station mode and is connected with a router of a wireless network, the end point lower computer carries a second photoelectric sensor to perform focusing, after the focusing is successful, an instruction is sent to the starting point lower computer device through a TCP protocol, the starting point lower computer carries a first photoelectric sensor to perform focusing, after the focusing is successful, a focusing result is sent to the starting point lower computer through a GPIO serial port, and after the steps are successful, the O L ED screen of the IIC protocol displays that the lower computer is ready to run.
② Dual ESP8266 in device starts failure of connection between AP and Station
And opening switches of the starting point lower computer equipment and the end point lower computer equipment, connecting the AP and the Station and performing handshake, and displaying that the end point lower computer is not successfully connected on an O L ED screen if the handshake is not successful within 20 s.
③ connection failure in Station mode of lower computer equipment with starting point
And (3) starting a Station mode by the starting point lower computer, and displaying that the starting point lower computer is not successfully connected on an O L ED screen if the router without the wireless network is connected and the public network IP cannot be acquired.
④ photoelectric sensing device in equipment fails to focus
After all the steps are deployed, if the photoelectric device of the endpoint lower computer fails to be focused, the endpoint lower computer does not send a command to the starting point lower computer, and the 'endpoint photoelectric sensor deployment failure' is displayed on an O L ED screen, if the photoelectric device of the starting point lower computer fails to be focused, the starting point lower computer cannot receive a signal of electrical-frequency conversion through GPIO TT L, and the 'starting point photoelectric sensor deployment failure' is displayed on an O L ED screen, and if the photoelectric devices of the endpoint lower computer and the starting point lower computer fail to be focused, the 'endpoint and starting point photoelectric sensor deployment failure' is displayed on an O L ED screen.
(2) Data transmission path stage
① calculation of transmission intensity:
(101) firstly, placing an end point lower computer and a starting point lower computer at positions which are separated by about 150 meters, and receiving the required strength of signals by using a Friiis transmission equation:
Figure BDA0002410036170000091
wherein, Pr(d) Represents the received signal power; ptRepresents a transmit power; gtRepresenting the transmit antenna gain; grDenotes the receive antenna gain, [ lambda ] denotes the wavelength (m), [ d ] denotes the distance between the transmitting and receiving ends, [ L ] denotes the propagation-independent losses (transmission line attenuation, filter loss, antenna loss);
(102) according to the technical manual of ESP-WROOM-02U provided by Lexin company, a free space transmission model is used, and the transmission distance can be reversely solved through a Friis formula;
(103) and the starting point lower computer and the end point lower computer both use 2DB gain antennas, and the signal intensity in the range of the specified distance obtained by calculation meets the requirement of physical examination by substituting the parameters into the formulas (101) and (102).
② live test of transmission intensity:
(101) placing starting point lower computer equipment on an open runway, and executing the step (102);
(102) opening the starting lower computer equipment, starting an AP mode, and executing the step (103);
(103) opening an ESP8266 used in the test, accessing an AP hot spot of a lower computer of the starting point, and executing the step (104);
(104) after the connection is successful, the starting point lower computer sends an AT + CW L AP instruction to the test ESP8266, and the step (102) is executed;
(105) receiving the RSSI signal strength, and executing the step (106);
(106) substituting the RSSI parameter into a distance test formula, and executing the step (107);
(107) gradually keeping away from the lower computer of the starting point, observing the distance value fed back by the serial port printing, and executing the step (108);
(108) until no information is fed back, and a test value is obtained: greater than 150m (the device should only meet short range physical testing requirements, so long range testing is not required).
③ delay present during transmission:
ESP8266 used in the system employs a RISC-V instruction set, the microprocessor of which typically employs a three-stage pipeline, with most instructions being completed in one machine cycle. In order to perfect the system better and make the system obtain more accurate performance, the error needs to be analyzed specifically, and the analysis steps are as follows:
(101) the system adopts an ESP8266 processor with a crystal oscillator of 26Mhz and a machine period of 12/fosc of 12/26Mhz of 0.461 us. Executing (102);
(102) setting a timer interrupt of 5ms in a program, setting a time variable +1 after the interrupt overflows, and executing a step (103);
(103) storing two instructions in the timer interrupt function, wherein the multiplication instruction is Ci (us) 2, and executing step (104);
(104) the time error is 0.461 × 2 and 0.922 us. Performing step (105);
(105) according to data analysis, the average running time of one person is 10s, and the overflow frequency of the system is 200. Average error time: Δ t ═ s ═ 12/fosc ═ 1 ═ Ci ═ 200 × (0.922 us ═ 0.000184 s;
(106) the short range physical measurement requirement is met by the available transmission delay according to (105).
④ data transmission mode:
the transmission method of system data uses flow logic design.
(101) The starting point lower computer device starts to verify the identity and sends a ready command to an ESP8266 main control to execute the step (102);
(102) starting countdown, ending the countdown, sending a running preparation sound, sending a simulated gunshot sound after 3 seconds, starting running by the physical testing personnel, and executing the step (103);
(103) when the person to be measured passes through the photoelectric sensor, the ESP8266 detects the GPIO port, the electric frequency is reversed, timing is started, and the step (104) is executed;
(104) when the body measurement personnel pass through a photoelectric sensing device of the end point lower computer, the end point ESP8266 detects that the GPIO port is changed, the electrical frequency is turned over, the information of stopping timing is sent to the start point lower computer, and the step (105) is executed;
(105) and after receiving the information of stopping timing, the starting point lower computer pauses timing, packages the identity and the score into a JSON file and sends the JSON file to the cloud server through HTTP. At this time, the lower computer finishes working. Performing step (106);
(106) the server receives the sent data, stores the data into the cloud server, and enables the upper computer to display the transmitted user information and achievement in real time through the POST instruction.
(3) Upper computer checking stage
As shown in fig. 9, the starting point lower computer device packages the user information and the body test score into a JSON file, and sends a data packet to the cloud server through an HTTP protocol. And the cloud server analyzes the received JSON file after the upper computer receives the request through the POST, and displays the JSON file data in real time at the PC end and the mobile phone end.
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.

Claims (6)

1. A short-distance physical measurement system based on the Internet of things technology is characterized by comprising a starting point lower computer, an end point lower computer, a cloud server and an upper computer, wherein the starting point lower computer is arranged at a starting point of a runway, and the end point lower computer is arranged at an end point of the runway;
the starting point lower computer comprises a first microcontroller, a key module, a first photoelectric sensor, a voice recording and playing module, an audio power amplification module, an O L ED display screen and a first power module, wherein the first photoelectric sensor comprises a first transmitting end and a first receiving end, the first transmitting end and the first receiving end are respectively arranged on two sides of the starting point of the runway, a straight line formed by connecting the first transmitting end and the first receiving end is perpendicular to the runway, the output end of the key module and the output end of the first photoelectric sensor are respectively connected with the input end of the first microcontroller, the output end of the first microcontroller is sequentially connected with the voice recording and playing module and the audio power amplification module, the output end of the first microcontroller is further connected with the input end of the O L ED display screen, the first power module supplies power to the first microcontroller, the key module, the first photoelectric sensor, the voice recording and playing module, the audio power module and the O L ED display screen, the first microcontroller is communicated with a cloud server through a wireless network, and the cloud server is communicated with the upper computer through the wireless network;
the end point lower computer comprises a second microcontroller, a second photoelectric sensor and a second power module, the second photoelectric sensor comprises a second transmitting end and a second receiving end, the second transmitting end and the second receiving end are respectively arranged on two sides of the end point of the runway, a straight line formed by the connection of the second transmitting end and the second receiving end is perpendicular to the runway, the output end of the second photoelectric sensor is connected with the input end of the second microcontroller, and the second power module supplies power to the second microcontroller and the second photoelectric sensor;
after the starting-point lower computer and the finishing-point lower computer are electrified, entering a body measurement system preparation stage, and when an O L ED display screen displays a word that the lower computer is completely prepared and can start running, completing the preparation and entering the body measurement stage;
when the first microcontroller receives a signal sent by the key module, countdown is started for 3 seconds, the countdown is finished, the voice recording and playing module is controlled to play a prerecorded start signal gunshot, the output decibel of the start signal gunshot is amplified through the audio power amplification module, a physical testing person starts running after hearing the start signal gunshot, the first microcontroller starts timing at the same time, if the physical testing person passes through the first photoelectric sensor before the start signal gunshot rings, the timing is stopped, meanwhile, an O L ED display screen displays a physical testing person race snatching character, timing is reset, the physical testing person returns to the starting point of the runway, the starting point is restarted, if the physical testing person passes through the first photoelectric sensor after the start signal gunshot rings, the timing is effective, when the physical testing person passes through the second photoelectric sensor, the electrical frequency of the second photoelectric sensor turns over and sends a signal to the second microcontroller, the second microcontroller sends an analytic timing signal to the first microcontroller, the first microcontroller stops timing, the identity and the score of the physical testing person are sent to a JSON server, and the JSON server sends the signal to a cloud server after passing through a JSON file.
2. The short-distance physical measurement system based on the internet of things technology as claimed in claim 1, wherein the upper computer is a mobile phone terminal and/or a PC terminal.
3. The short-distance physical measurement system based on the internet of things technology as claimed in claim 1, wherein the preparation stage of the physical measurement system comprises the following specific processes:
the first microcontroller adopts an AP + Station coexistence mode, and the second microcontroller adopts a single Station mode;
after the starting point lower computer and the terminal point lower computer are electrified, the AP of the first microcontroller is connected with the Station of the second microcontroller and handshake is carried out, the starting point lower computer starts the Station mode, the second transmitting end and the second receiving end of the second photoelectric sensor are focused, the second microcontroller sends a focusing success instruction to the first microcontroller through a TCP protocol after successful focusing, the first transmitting end and the first receiving end of the first photoelectric sensor are focused, the first photoelectric sensor sends a focusing success result to the first microcontroller in a GPIO serial port mode after successful focusing, and after the steps are successful, the O L ED display screen of the IIC protocol displays that the lower computer is ready and can start running;
after the starting point lower computer and the terminal point lower computer are electrified, if the AP of the first microcontroller is connected with the Station of the second microcontroller and handshake is carried out, and handshake is not successful within 20s, displaying that the terminal point lower computer is not connected successfully on an O L ED display screen, and needing to debug the starting point lower computer and the terminal point lower computer again until the fact that the lower computer is completely prepared is displayed, starting running can be carried out;
starting a Station mode by the starting point lower computer, if the router connected with the wireless network is not connected and the IP of the cloud server cannot be obtained, displaying that the starting point lower computer is not connected successfully on an O L ED display screen, and debugging the starting point lower computer and the destination lower computer again until the fact that the lower computer is prepared completely is displayed, so that the running can be started;
after the endpoint lower computer and the start point lower computer are successfully connected, if the second photoelectric sensor fails to focus, the second microcontroller does not send an instruction to the first microcontroller, the O L ED display screen displays that the endpoint photoelectric sensor fails to deploy, the start point lower computer and the endpoint lower computer need to be debugged again until the lower computer finishes preparation, the character can be played, if the first photoelectric sensor fails to focus, the first microcontroller cannot receive a signal of electrical frequency conversion through GPIO TT L, the O L ED display screen displays that the start point photoelectric sensor fails to deploy, the start point lower computer and the endpoint lower computer need to be debugged again until the equipment preparation is finished, the character can be played, if the second photoelectric sensor fails to focus, the O L ED display screen displays that the endpoint photoelectric sensor fails to deploy, the start point lower computer and the endpoint lower computer need to be debugged again until the lower computer finishes the preparation, the character can be played.
4. The short-distance physical measurement system based on the internet of things technology as claimed in claim 1, wherein the first microcontroller and the second microcontroller are both made of chips of model ESP8266 EX.
5. The short-distance physical measurement system based on the internet of things technology of claim 1, wherein the O L ED display screen adopts an SSD1306 model chip.
6. The short-distance physical measurement system based on the internet of things technology as claimed in claim 1, wherein the voice recording and playing module adopts an ISD1820 chip.
CN202010173561.7A 2020-03-13 2020-03-13 Short-distance body measurement system based on Internet of things technology Pending CN111408124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010173561.7A CN111408124A (en) 2020-03-13 2020-03-13 Short-distance body measurement system based on Internet of things technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010173561.7A CN111408124A (en) 2020-03-13 2020-03-13 Short-distance body measurement system based on Internet of things technology

Publications (1)

Publication Number Publication Date
CN111408124A true CN111408124A (en) 2020-07-14

Family

ID=71487661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010173561.7A Pending CN111408124A (en) 2020-03-13 2020-03-13 Short-distance body measurement system based on Internet of things technology

Country Status (1)

Country Link
CN (1) CN111408124A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201267476Y (en) * 2008-06-24 2009-07-08 王培勇 Interpretation system for reaction time of starting during short distance track event
CN103678911A (en) * 2013-12-11 2014-03-26 东南大学 Control method of intelligent health-regulation running system based on Internet of Things
CN103691102A (en) * 2014-01-09 2014-04-02 林培林 Exercise information monitoring system and method thereof
CN104183030A (en) * 2013-08-27 2014-12-03 北京赛康精益信息技术有限责任公司 Self-service electronic timing system and method for running
CN204633867U (en) * 2015-04-14 2015-09-09 张向 A kind of multi-functional mobile phone companion
CN205360519U (en) * 2016-01-18 2016-07-06 南京信息工程大学 Simple and easy self -service sprint training timing device
CN105955305A (en) * 2016-07-07 2016-09-21 苏州大学 Four-axis unmanned aerial vehicle
CN206434333U (en) * 2016-11-02 2017-08-25 山东中大智慧健康科技服务管理有限公司 A kind of physique monitoring system analyzed based on Internet of Things and big data
CN107749092A (en) * 2017-12-06 2018-03-02 河北华正信息工程有限公司 Intelligent things network timing terminal and method
CN108194278A (en) * 2017-12-19 2018-06-22 国网山东省电力公司蓬莱市供电公司 A kind of wind power generation unit blade defect non-contact monitoring device and method
CN108196514A (en) * 2018-03-29 2018-06-22 武汉理工大学 A kind of numerically-controlled machine tool operating status long-distance monitoring method
US20190081961A1 (en) * 2017-09-14 2019-03-14 Zscaler, Inc. Systems and methods for security and control of internet of things and zeroconf devices using cloud services
CN109646930A (en) * 2018-12-21 2019-04-19 山东踢踢足球数据科技有限公司 It is a kind of to repeat the runway that washes away and test method for testing
GB2550214B (en) * 2016-05-13 2019-04-24 Samsung Electronics Co Ltd Improvements in and relating to unattended data traffic (UDT)

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201267476Y (en) * 2008-06-24 2009-07-08 王培勇 Interpretation system for reaction time of starting during short distance track event
CN104183030A (en) * 2013-08-27 2014-12-03 北京赛康精益信息技术有限责任公司 Self-service electronic timing system and method for running
CN103678911A (en) * 2013-12-11 2014-03-26 东南大学 Control method of intelligent health-regulation running system based on Internet of Things
CN103691102A (en) * 2014-01-09 2014-04-02 林培林 Exercise information monitoring system and method thereof
CN204633867U (en) * 2015-04-14 2015-09-09 张向 A kind of multi-functional mobile phone companion
CN205360519U (en) * 2016-01-18 2016-07-06 南京信息工程大学 Simple and easy self -service sprint training timing device
GB2550214B (en) * 2016-05-13 2019-04-24 Samsung Electronics Co Ltd Improvements in and relating to unattended data traffic (UDT)
CN105955305A (en) * 2016-07-07 2016-09-21 苏州大学 Four-axis unmanned aerial vehicle
CN206434333U (en) * 2016-11-02 2017-08-25 山东中大智慧健康科技服务管理有限公司 A kind of physique monitoring system analyzed based on Internet of Things and big data
US20190081961A1 (en) * 2017-09-14 2019-03-14 Zscaler, Inc. Systems and methods for security and control of internet of things and zeroconf devices using cloud services
CN107749092A (en) * 2017-12-06 2018-03-02 河北华正信息工程有限公司 Intelligent things network timing terminal and method
CN108194278A (en) * 2017-12-19 2018-06-22 国网山东省电力公司蓬莱市供电公司 A kind of wind power generation unit blade defect non-contact monitoring device and method
CN108196514A (en) * 2018-03-29 2018-06-22 武汉理工大学 A kind of numerically-controlled machine tool operating status long-distance monitoring method
CN109646930A (en) * 2018-12-21 2019-04-19 山东踢踢足球数据科技有限公司 It is a kind of to repeat the runway that washes away and test method for testing

Similar Documents

Publication Publication Date Title
CN105631961B (en) It is a kind of based on far infrared to the racing track timekeeping system and its application method of pipe
CN102768811B (en) Car driver driving skill practice guiding and examination scoring device and realization method
CN202736348U (en) Car driver driving skill practice guiding and examination scoring device
CN104524749A (en) Digital smart basketball
CN103559781A (en) Distributive real-time energy consumption monitoring and analyzing system based on camera
CN106951209A (en) A kind of control method, device and electronic equipment
CN102789718B (en) Automatic invigilation scoring device for random vehicle driving test process and realization method thereof
CN105336287A (en) Testing method, testing device and testing system of display screen
CN103550923A (en) Wireless intelligent judgment system and method thereof for realizing intelligent judgment and scoring
CN108197299A (en) A kind of taking pictures based on hand-held photographing device searches topic method and system
CN104333709A (en) Method, device and electronic equipment for controlling flash lamp
KR102011264B1 (en) Apparatus for dissimilar type communication system based smart lighting control and method by using the same
CN111408124A (en) Short-distance body measurement system based on Internet of things technology
CN202798867U (en) Automatic detection device of mobile communication terminal
CN106448304A (en) Interactive teaching system
CN207255538U (en) A kind of welding welding-gun device and welding experience system based on virtual reality education
CN104007284A (en) Laser-array and intelligent-terminal combined shuttlecock speed measuring system and method
CN109758752A (en) Interactive intelligence breaktest stake, training system and control method
CN112630545A (en) Portable intelligent tracking system performance detector for 5T equipment
CN110191435A (en) A kind of vehicle-mounted heterogeneous network test macro and method based on heterogeneous network controller
CN106175692A (en) Intelligent station lamp-type equipment
CN210845235U (en) Electronic starting instrument
CN209949096U (en) Integrated information terminal (eagle joint instrument) for environment monitoring field quality control
CN107271144A (en) The focusing test equipment and its focusing method of testing of a kind of camera
KR102021299B1 (en) A lighting surveillance system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714