Subway axle temperature detecting system and method based on NFC, bluetooth and sensor
Technical field
The invention belongs to technical field of near field communication, particularly a kind of subway axis based on NFC, bluetooth and sensor array
Temperature detector examining system and detection method.
Background technology
Nowadays the utilization rate of subway is very high, but since some metro operation company techniques, management are lack of standardization and now
Iron bearing checks the technological deficiency of industry, therefore can really detect whether subway bearing damages and the company of reason is seldom.
The method for solving subway bearing temperature monitoring at present has temperature strain piece, RFID detections:Wherein foil gauge similar to clinical thermometer,
Temperature maximum is recorded, foil gauge is of low cost, but temperature strain piece cannot reflect subway axle temperature situation in real time, can only provide most
High-temperature, and easily by such environmental effects;And the RFID detections cost of independent research is high, equipment is also immature, it is impossible to quickly
It is universal.
Invention content
It is cheap based on NFC, bluetooth and battle array the purpose of the present invention is to provide a kind of safe and reliable, simple in structure
The subway axle temperature detecting system and detection method of sensor.
Realize the object of the invention technical solution be:A kind of subway axle temperature detection based on NFC, bluetooth and sensor
System, including temperature sensor, hardware device, communication equipment and terminal device, wherein hardware device includes the first NFC reader
Module, the first bluetooth module, clock module, SD data storages, temperature collecting module, microcontroller, power supply, communication equipment include
Second NFC reader module, the second bluetooth module;One group of temperature sensor, and each temperature are respectively provided on each axle box of subway
The output terminal of sensor accesses the temperature collecting module in hardware device;The hardware device is set to car bottom, and
One NFC reader module, the first bluetooth module, clock module, SD data storages, temperature collecting module, power supply access list
Piece machine;Second NFC reader module of communication equipment, the second bluetooth module are set between the rail of subway station, and subway enters
Stand parking when, the first NFC reader module of car bottom is located at the surface of the second NFC reader module;Terminal device
Third NFC reader module, third bluetooth module receive data by communication equipment;
Temperature on the outside of the temperature sensor acquisition axle box is transferred to microcontroller and stores number by SD data storages
According to;Microcontroller determines temperature value maximum in cycle time, and passes sequentially through the first NFC reader module, the second NFC reader
Module is sent to terminal device, if terminal device is by judging that maximum temperature is more than given threshold in the time cycle, passes through
Data in SD data storages in hardware device are sent to terminal device by the first bluetooth module, the second bluetooth module;Terminal
The temperature of data analysis train axle box that equipment is obtained according to receiving then speculates the temperature of shaft, so as to judge the feelings of axle
Condition.
A kind of subway axle temperature detection method based on NFC, bluetooth and sensor, includes the following steps:
Step 1, above-mentioned hardware device is installed in subway bottom, including the first NFC reader module, the first bluetooth module,
Clock module, SD data storages, temperature collecting module, microcontroller, power supply;Communication equipment is installed in subway station, including
Two NFC reader modules, the second bluetooth module;The each axle box of subway is respectively provided with a corresponding ID number, and by all axle boxes
On temperature sensor number consecutively;
Step 2, hardware components are powered and started to work, while the communication module of terminal device is powered;
Step 3, microcontroller records the temperature value of each temperature sensor on each axle box, and seeks each temperature on each axle box
The average of sensor temperature values, microcontroller by the time value of reading, corresponding axle box ID number and by each sensor number it is suitable
SD data storages are recorded in the temperature value of sequence arrangement respectively;Record each temperature sensor average temperature value on above-mentioned each axle box
Time of the maximum value with generating maximum value, each temperature on time of the maximum value, corresponding axle box ID number and the axle box is passed
The maximum value of sensor average temperature value forms the first data frame;Each temperature on current time value, axle box ID number and the axle box
Sensor average temperature value forms the second data frame;The pairing of the first bluetooth module, the second bluetooth module, third bluetooth module
Information forms third data frame;First, second, third data frame is merged, is sent by the first NFC reader module;
Step 4, the second NFC reader module receives the information of the first NFC reader module and is sent to subway station monitoring
Pcs terminal equipment;Parse data, the maximum value of temperature sensor average temperature value each on the axle box in the first data frame with
The threshold value comparison of setting:If it exceeds threshold value is then alarmed, third bluetooth module pairing the first bluetooth module of connection of terminal device
It with the second bluetooth module, reads earlier than the data in the interior SD data storages when previous small, and is recorded in subway station monitoring
In the database of pcs terminal equipment, and enter step 5;If being less than threshold value, any operation is not performed, and train can be sailed
Go out platform, return to step 3;
Step 5, subway station monitoring computer terminal device is according to the temperature data Data-Statistics of data-base recording, and draws the time
And temperature map;
Step 6, repeat step 3~5, until subway complete today operation, enter step 7;
Step 7, subway axle box inspection personnel opens the APP of mobile phone terminal, the third NFC reader and subway of mobile phone terminal
The first NFC reader module in the hardware components of axle temperature detecting system is in contact, the connection the automatically of mobile phone third bluetooth module
One bluetooth module;
Step 8, subway axle box inspection personnel sends all data commands read by cell phone application and is detected to subway axle temperature
The hardware components of system, microcontroller are connected to instruction and perform, and all data records in this day SD data storage are passed through
One bluetooth module is sent to cell phone application;In addition, subway axle box inspection personnel directly exits SD card to copy data;
Step 9, data are uploaded to server by subway axle box inspection personnel by cell phone application.
Compared with prior art, the present invention its remarkable advantage is:(1) sexual valence is higher:It is only additionally arranged at the bottom in subway and is
System hardware components, cost 300 are extremely cheap;Since it is not necessary to modify structure of the subway, covering device peace is greatly reduced in this way
The cost of dress;(2) transmission information efficiently, environmentally friendly:Existed using the NFC reader module for being arranged on subway bottom to terminal device
In the time stopped between dispatching station and station in run time subway axle box maximum temperature, whether needed by terminal threshold decision
More data are read, therefore more efficient, environmental protection;(3) hardware components are mounted on Arduino Mega microcontrollers, special
Application program is mounted on Android mobile phone platform and computer platform, and beneficial to secondary development in the future, the terminal intelligent mobile phone is special
Software can connect 3G or 4G networks, and can infinitely expand by mobile phone, with subway station or the other sensors phase of subway bottom
Contact, may make up internet of things;(4) more accurate data algorithm program can be added in, reduces the error of data analysis, is improved
More accurately judge, cooperate with companies such as metro operation, bearing mnanufacture, bearing repairs, become better, service face is wider array of,
More efficient subway class examination and repair system.
The present invention is described in further detail below in conjunction with the accompanying drawings.
Description of the drawings
Fig. 1 is the structure diagram of the subway axle temperature detecting system the present invention is based on NFC, bluetooth and sensor.
Fig. 2 is the flow chart of the subway axle temperature detection method the present invention is based on NFC, bluetooth and sensor.
Fig. 3 is the networking schematic diagram of the subway axle temperature detecting system the present invention is based on NFC, bluetooth and sensor.
Specific embodiment
With reference to Fig. 1, the present invention is based on the subway axle temperature detecting system of NFC, bluetooth and sensor, including temperature sensor,
Hardware device, communication equipment and terminal device, wherein hardware device include the first NFC reader module, the first bluetooth module, when
Clock module, SD data storages, temperature collecting module, microcontroller, power supply, communication equipment include the second NFC reader module, the
Two bluetooth modules;One group of temperature sensor is respectively provided on each axle box of subway, and the output terminal of each temperature sensor accesses
Temperature collecting module in hardware device;The hardware device is set to car bottom, and the first NFC reader module, first
Bluetooth module, clock module, SD data storages, temperature collecting module, power supply access microcontroller;The second of communication equipment
NFC reader module, the second bluetooth module are set between the rail of subway station, and during the parking of subway inbound, car bottom
First NFC reader module is located at the surface of the second NFC reader module;The third NFC reader module of terminal device,
Three bluetooth modules receive data by communication equipment;
Temperature on the outside of the temperature sensor acquisition axle box is transferred to microcontroller and stores number by SD data storages
According to;The form of data record is the text file .txt forms encoded with ASIC;Microcontroller determines temperature maximum in cycle time
Angle value, and pass sequentially through the first NFC reader module, the second NFC reader module is sent to terminal device, terminal device pass through
If judging, maximum temperature is more than given threshold in the time cycle, by the first bluetooth module, the second bluetooth module by hardware
Data in equipment in SD data storages are sent to terminal device;The data analysis train axis that terminal device is obtained according to receiving
The temperature of case then speculates the temperature of shaft, so as to judge the situation of axle.
One group of temperature sensor is respectively provided on each axle box of subway, the quantity of this group of sensor is 4, and uniformly divide
It is distributed in axle box outer circumference.
The terminal device is smart mobile phone or subway station monitoring computer, all including data communication module and data processing mould
Block, can be by internet access private server come synchrodata..
The first NFC reader module, the second NFC reader module are using PN532, the first bluetooth module, second
For bluetooth module using BT-HC05-V1.0, clock module uses MicroSD Card using DS1302, SD data storage
Adapter, microcontroller use DHT11 using Arduino Mega 2560 and Arduino Uno R3, temperature collecting module.
The hardware device includes clock module, SD data storages, temperature collecting module, microcontroller, power supply and is arranged on
In one cabinet, the first NFC reader module, the first bluetooth module are fixed in cabinet bottom, and the first NFC reader module
And the second vertical range between NFC reader module is 10cm~20cm.
With reference to Fig. 2, the present invention is based on the subway axle temperature detection methods of NFC, bluetooth and sensor, include the following steps:
Step 1, above-mentioned hardware device is installed in subway bottom, including the first NFC reader module, the first bluetooth module,
Clock module, SD data storages, temperature collecting module, microcontroller, power supply;Communication equipment is installed in subway station, including
Two NFC reader modules, the second bluetooth module;The each axle box of subway is respectively provided with a corresponding ID number, and by all axle boxes
On temperature sensor number consecutively;
Step 2, hardware components are powered and started to work, while the communication module of terminal device is powered;
Step 3, microcontroller records the temperature value of each temperature sensor on each axle box, and seeks each temperature on each axle box
The average of sensor temperature values, microcontroller by the time value of reading, corresponding axle box ID number and by each sensor number it is suitable
SD data storages are recorded in the temperature value of sequence arrangement respectively;Record each temperature sensor average temperature value on above-mentioned each axle box
Time of the maximum value with generating maximum value, each temperature on time of the maximum value, corresponding axle box ID number and the axle box is passed
The maximum value of sensor average temperature value forms the first data frame;Each temperature on current time value, axle box ID number and the axle box
Sensor average temperature value forms the second data frame;The pairing of the first bluetooth module, the second bluetooth module, third bluetooth module
Information forms third data frame;First, second, third data frame is merged, is sent by the first NFC reader module;
Step 4, the second NFC reader module receives the information of the first NFC reader module and is sent to subway station monitoring
Pcs terminal equipment;Parse data, the maximum value of temperature sensor average temperature value each on the axle box in the first data frame with
The threshold value comparison of setting:If it exceeds threshold value is then alarmed, third bluetooth module pairing the first bluetooth module of connection of terminal device
It with the second bluetooth module, reads earlier than the data in the interior SD data storages when previous small, and is recorded in subway station monitoring
In the database of pcs terminal equipment, and enter step 5;If being less than threshold value, any operation is not performed, and train can be sailed
Go out platform, return to step 3;
Step 5, subway station monitoring computer terminal device is according to the temperature data Data-Statistics of data-base recording, and draws the time
And temperature map;
Step 6, repeat step 3~5, until subway complete today operation, enter step 7;
Step 7, subway axle box inspection personnel opens the APP of mobile phone terminal, the third NFC reader and subway of mobile phone terminal
The first NFC reader module in the hardware components of axle temperature detecting system is in contact, the connection the automatically of mobile phone third bluetooth module
One bluetooth module;
Step 8, subway axle box inspection personnel sends all data commands read by cell phone application and is detected to subway axle temperature
The hardware components of system, microcontroller are connected to instruction and perform, and all data records in this day SD data storage are passed through
One bluetooth module is sent to cell phone application;In addition, subway axle box inspection personnel directly exits SD card to copy data;
Step 9, data are uploaded to server by subway axle box inspection personnel by cell phone application.
Preferably, the first, second, third NFC reader module sends NDEF forms by wireless radio-frequency
Information.
Embodiment 1
The present embodiment is described in further details the present invention by taking subway station scene and subway Overhaul Yard as an example.
The present invention is based on the subway axle temperature detecting system and detection method of NFC, bluetooth and sensor array, system hardware portions
Point include NFC reader module (PN532), clock module (DS1302), SD card module (Micro-SD Card Adapter),
SD card (Jin Shidun 2G TF cards), microcontroller (Arduino Mega 2560), bluetooth module (BT-HC05-V1.0), in addition with
The terminal device of subway axle temperature detecting system hardware effort.To coordinate the work of subway axle temperature detecting system hardware components, at end
Being equipped in end equipment can be handled by NFC, the information of bluetooth reception and data processing, the application for the special corresponding platform analyzed
Program, that is, data processing module.
Step 1, above-mentioned hardware device is installed in subway bottom, including NFC reader module, bluetooth module, clock module,
SD data storages, temperature collecting module, power supply, bluetooth module;It is installed in mating qualified terminal device corresponding
Program;
Step 2, the hardware components of subway axle temperature detecting system are powered and started to work, open simultaneously the corresponding of terminal device
Program, and the NFC reader module and bluetooth module of open communication module, by Beam functions by the hardware on terminal and subway
Equipment according to condition matches connection, and SD data storages clear up data yesterday automatically;
Step 3, the temperature value and averaging of microcontroller record array of temperature sensor, while each sensor point
SD data storages are not recorded, and plus the time value for reading array of temperature sensor, with corresponding axle box ID;The data of composition
Frame format is " time #ID# temperature 1# temperature 2# ... temperature n $ ";In the time run between station AT STATION, temperature is found out
Spend the temperature averages of sensor array maximum;
Step 4, under the subway stop position of subway station, NFC reader module sends NDEF by wireless radio-frequency
For format information to the communication module of iron station monitoring computer terminal device, the information content includes axle box temperature outside sensor array
Maximum average temperature value, the pairing link information of bluetooth;
Step 5, monitoring computer terminal device in iron station obtains information by communication module, therefrom extracts axle box temperature outside and passes
The average maximum value of sensor array and compared with the threshold value set is started if no more than subway if threshold value, is sailed for
The next stop performs step 3, otherwise performs step 6;
Step 6, the hardware of the bluetooth module in subway station monitoring computer terminal communication module and subway axle temperature detecting system
Partial bluetooth module pairing connection;
Step 7, iron station monitoring computer terminal equipment by bluetooth module send request instruction to microcontroller, microcontroller connects
The character string in the data record text file in current hour in SD data storages is sent after to order, while notifies train
Driver;
Step 8, iron station monitoring computer terminal device receives character string by bluetooth module, according to end mark " $ " obtains
Data frame, according to separator " # " obtains each propertystring, and is added to database and corresponds in attribute;
Step 9, monitoring computer terminal device in iron station acquires phase according to the temperature data value of data-base recording come counting statistics
Data are closed, and are drawn a diagram;
Step 10, repeat step 3~9, until subway complete today operation, into Overhaul Yard;
Step 11, subway axle box inspection personnel open mobile phone terminal APP, and with the Hardware Subdivision of subway axle temperature detecting system
NFC module in point is in contact, Beam function automatic connection of Bluetooth modules
Step 12, subway axle box inspection personnel sends all data commands of reading by cell phone application and is detected to subway axle temperature
The hardware components of system, microcontroller is automatically by the character in all data record text files in this day SD data storage
String;Another method, subway axle box inspection personnel can directly exit SD card to copy data;
Step 13, subway system hardware components can shut down or standby;
Step 14, data are uploaded to server by subway axle box inspection personnel by cell phone application.
As shown in figure 3, the present invention is based on the subway axle temperature detecting system of NFC, bluetooth and sensor, can networking operation, very
Most evidences can be uploaded from network, be downloaded, and carry out synchronization of database etc.;Additionally it is possible to realize subsequent expansion, it can be with ground
The cooperations such as iron operator, bearing mnanufacture repair company.Server to terminal device application program provide database access, on
It passes, download function, also can subsequently be expanded.