Summary of the invention
The object of the present invention is to provide a kind of safe and reliable, structure simple, the cheap subway axle temperature detecting system based on NFC, bluetooth and sensor array and detection method.
The technical solution realizing the object of the invention is: a kind of subway axle temperature detecting system based on NFC, bluetooth and sensor, comprise temperature sensor, hardware device, communication facilities and terminal device, wherein hardware device comprises a NFC reader/writer module, the first bluetooth module, clock module, SD data-carrier store, temperature collect module, single-chip microcomputer, power supply, and communication facilities comprises the 2nd NFC reader/writer module, the second bluetooth module; The each axle box of subway is all arranged one group of temperature sensor, and the output terminal of each temperature sensor all accesses the temperature collect module in hardware device; Described hardware device is arranged at car bottom, and a NFC reader/writer module, the first bluetooth module, clock module, SD data-carrier store, temperature collect module, power supply all access single-chip microcomputer; 2nd NFC reader/writer module of communication facilities, the second bluetooth module are arranged between the rail of subway station, and during the inbound parking of subway, a NFC reader/writer module of car bottom is positioned at directly over the 2nd NFC reader/writer module; 3rd NFC reader/writer module, the 3rd bluetooth module of terminal device receive data by communication facilities;
Described temperature sensor gathers the temperature outside axle box, is transferred to single-chip microcomputer and by SD data-carrier store storage data; Temperature value maximum in cycle length determined by single-chip microcomputer, and send to terminal device by a NFC reader/writer module, the 2nd NFC reader/writer module successively, if terminal device is through judging that in this time cycle, maximum temperature is greater than setting threshold value, then send to terminal device by the first bluetooth module, the second bluetooth module by the data in SD data-carrier store in hardware device; Terminal device, according to the temperature accepting the data analysis train axle box obtained, is then inferred the temperature of shaft, thus is judged the situation of axletree.
Based on a subway axle-temperature detect method for NFC, bluetooth and sensor, comprise the following steps:
Step 1, installs above-mentioned hardware device bottom subway, comprises a NFC reader/writer module, the first bluetooth module, clock module, SD data-carrier store, temperature collect module, single-chip microcomputer, power supply; In subway station, communication facilities is installed, comprises the 2nd NFC reader/writer module, the second bluetooth module; Each axle box of subway is all arranged one corresponding No. ID, and by the temperature sensor number consecutively on all axle boxes;
Step 2, starts working hardware components energising, the communication module of terminal device is energized simultaneously;
Step 3, the temperature value of each temperature sensor on each axle box of single-chip microcomputer record, and ask the average of each temperature sensor temperature value on each axle box, single-chip microcomputer is by the time value of reading, No. ID, corresponding axle box and be recorded to SD data-carrier store respectively by the tactic temperature value of each sensor number; Record the maximal value of each temperature sensor average temperature value on above-mentioned each axle box and the time producing maximal value, the maximal value of each temperature sensor average temperature value on the time of this maximal value, No. ID, corresponding axle box and this axle box is formed the first Frame; On current time value, No. ID, axle box and this axle box, each temperature sensor average temperature value forms the second Frame; The unpaired message of the first bluetooth module, the second bluetooth module, the 3rd bluetooth module composition the 3rd Frame; First, second, third Frame is merged, is sent by a NFC reader/writer module;
Step 4, the 2nd NFC reader/writer module receives the information of a NFC reader/writer module and is sent to subway station monitoring computer terminal device; Resolution data, maximal value of temperature sensor average temperature value each on axle box in first Frame is compared with the threshold value of setting: if exceed threshold value, report to the police, 3rd bluetooth module pairing connection first bluetooth module and the second bluetooth module of terminal device, read the data early than working as in previous hour in SD data-carrier store, and be recorded in the database of subway station monitoring computer terminal device, and enter step 5; If do not exceed threshold value, then do not perform any operation, train can roll platform away from, returns step 3;
Step 5, subway station monitoring computer terminal device according to the temperature data Data-Statistics of data-base recording, and draws time and temperature map;
Step 6, repeats step 3 ~ 5, until subway completes the operation of today, enters step 7;
Step 7, subway axle box supervisory personnel opens the APP of mobile phone terminal, and the 3rd NFC read write line of mobile phone terminal contacts with the NFC reader/writer module in the hardware components of subway axle temperature detecting system, and mobile phone the 3rd bluetooth module is from being dynamically connected the first bluetooth module;
Step 8, subway axle box supervisory personnel sends all data commands of reading to the hardware components of subway axle temperature detecting system by mobile phone A PP, single-chip microcomputer is received instruction and is performed, and all data records in this day SD data-carrier store are sent to mobile phone A PP by the first bluetooth module; In addition, subway axle box supervisory personnel directly exits SD card and carrys out copies data;
Step 9, subway axle box supervisory personnel passes through mobile phone A PP data upload to server.
Compared with prior art, its remarkable advantage is in the present invention: (1) cost performance is higher: only bottom subway, install native system hardware components additional, and its cost is 300, extremely cheap; Due to without the need to revising structure of the subway, greatly reduce the cost that this covering device is installed like this; (2) transmission of information of efficient, environmental protection: utilize and be arranged on NFC reader/writer module bottom subway to terminal device maximum temperature of subway axle box in working time between sending station and station within the time of stopping, through terminal threshold decision the need of the more data of reading, therefore more efficient, environmental protection; (3) hardware components is mounted on ArduinoMega single-chip microcomputer, its vertical application is mounted on Android mobile phone platform and computer platform, benefit secondary development in the future, this terminal intelligent mobile phone special software connects 3G or 4G network by mobile phone, and can infinitely expand, be associated with other sensors bottom subway station or subway, can internet of things be formed; (4) data algorithm program more accurately can be added, reduce the error of data analysis, improve and judge more accurately, cooperate with the company such as metro operation, bearing mnanufacture, bearing maintenance, become better, service face is wider, more efficient subway class examination and repair system.
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Embodiment
Composition graphs 1, the present invention is based on the subway axle temperature detecting system of NFC, bluetooth and sensor, comprise temperature sensor, hardware device, communication facilities and terminal device, wherein hardware device comprises a NFC reader/writer module, the first bluetooth module, clock module, SD data-carrier store, temperature collect module, single-chip microcomputer, power supply, and communication facilities comprises the 2nd NFC reader/writer module, the second bluetooth module; The each axle box of subway is all arranged one group of temperature sensor, and the output terminal of each temperature sensor all accesses the temperature collect module in hardware device; Described hardware device is arranged at car bottom, and a NFC reader/writer module, the first bluetooth module, clock module, SD data-carrier store, temperature collect module, power supply all access single-chip microcomputer; 2nd NFC reader/writer module of communication facilities, the second bluetooth module are arranged between the rail of subway station, and during the inbound parking of subway, a NFC reader/writer module of car bottom is positioned at directly over the 2nd NFC reader/writer module; 3rd NFC reader/writer module, the 3rd bluetooth module of terminal device receive data by communication facilities;
Described temperature sensor gathers the temperature outside axle box, is transferred to single-chip microcomputer and by SD data-carrier store storage data; The form of data record is the text .txt form with ASIC coding; Temperature value maximum in cycle length determined by single-chip microcomputer, and send to terminal device by a NFC reader/writer module, the 2nd NFC reader/writer module successively, if terminal device is through judging that in this time cycle, maximum temperature is greater than setting threshold value, then send to terminal device by the first bluetooth module, the second bluetooth module by the data in SD data-carrier store in hardware device; Terminal device, according to the temperature accepting the data analysis train axle box obtained, is then inferred the temperature of shaft, thus is judged the situation of axletree.
The each axle box of described subway is all arranged one group of temperature sensor, the quantity of this group sensor is 4, and is uniformly distributed in axle box outer circumference.
Described terminal device is smart mobile phone or subway station monitoring computer, all comprises data communication module and data processing module, can carry out synchrodata by internet access private server.。
A described NFC reader/writer module, the 2nd NFC reader/writer module all adopt PN532, first bluetooth module, the second bluetooth module all adopt BT-HC05-V1.0, clock module adopts DS1302, SD data-carrier store to adopt MicroSDCardAdapter, single-chip microcomputer adopts ArduinoMega2560 and ArduinoUnoR3, and temperature collect module adopts DHT11.
Described hardware device comprises clock module, SD data-carrier store, temperature collect module, single-chip microcomputer, power supply are arranged in a cabinet, one NFC reader/writer module, the first bluetooth module are fixed on bottom cabinet, and the vertical range between a NFC reader/writer module and the 2nd NFC reader/writer module is 10cm ~ 20cm.
Composition graphs 2, the present invention is based on the subway axle-temperature detect method of NFC, bluetooth and sensor, comprises the following steps:
Step 1, installs above-mentioned hardware device bottom subway, comprises a NFC reader/writer module, the first bluetooth module, clock module, SD data-carrier store, temperature collect module, single-chip microcomputer, power supply; In subway station, communication facilities is installed, comprises the 2nd NFC reader/writer module, the second bluetooth module; Each axle box of subway is all arranged one corresponding No. ID, and by the temperature sensor number consecutively on all axle boxes;
Step 2, starts working hardware components energising, the communication module of terminal device is energized simultaneously;
Step 3, the temperature value of each temperature sensor on each axle box of single-chip microcomputer record, and ask the average of each temperature sensor temperature value on each axle box, single-chip microcomputer is by the time value of reading, No. ID, corresponding axle box and be recorded to SD data-carrier store respectively by the tactic temperature value of each sensor number; Record the maximal value of each temperature sensor average temperature value on above-mentioned each axle box and the time producing maximal value, the maximal value of each temperature sensor average temperature value on the time of this maximal value, No. ID, corresponding axle box and this axle box is formed the first Frame; On current time value, No. ID, axle box and this axle box, each temperature sensor average temperature value forms the second Frame; The unpaired message of the first bluetooth module, the second bluetooth module, the 3rd bluetooth module composition the 3rd Frame; First, second, third Frame is merged, is sent by a NFC reader/writer module;
Step 4, the 2nd NFC reader/writer module receives the information of a NFC reader/writer module and is sent to subway station monitoring computer terminal device; Resolution data, maximal value of temperature sensor average temperature value each on axle box in first Frame is compared with the threshold value of setting: if exceed threshold value, report to the police, 3rd bluetooth module pairing connection first bluetooth module and the second bluetooth module of terminal device, read the data early than working as in previous hour in SD data-carrier store, and be recorded in the database of subway station monitoring computer terminal device, and enter step 5; If do not exceed threshold value, then do not perform any operation, train can roll platform away from, returns step 3;
Step 5, subway station monitoring computer terminal device according to the temperature data Data-Statistics of data-base recording, and draws time and temperature map;
Step 6, repeats step 3 ~ 5, until subway completes the operation of today, enters step 7;
Step 7, subway axle box supervisory personnel opens the APP of mobile phone terminal, and the 3rd NFC read write line of mobile phone terminal contacts with the NFC reader/writer module in the hardware components of subway axle temperature detecting system, and mobile phone the 3rd bluetooth module is from being dynamically connected the first bluetooth module;
Step 8, subway axle box supervisory personnel sends all data commands of reading to the hardware components of subway axle temperature detecting system by mobile phone A PP, single-chip microcomputer is received instruction and is performed, and all data records in this day SD data-carrier store are sent to mobile phone A PP by the first bluetooth module; In addition, subway axle box supervisory personnel directly exits SD card and carrys out copies data;
Step 9, subway axle box supervisory personnel passes through mobile phone A PP data upload to server.
Preferably, described first, second, third NFC reader/writer module all sends the information of NDEF form by wireless radio-frequency.
Embodiment 1
The present embodiment, for subway station scene and subway Overhaul Yard, is described in further details the present invention.
The present invention is based on subway axle temperature detecting system and the detection method of NFC, bluetooth and sensor array, hardware comprises NFC reader/writer module (PN532), clock module (DS1302), SD card module (Micro-SDCardAdapter), SD card (Jin Shidun 2GTF card), single-chip microcomputer (ArduinoMega2560), bluetooth module (BT-HC05-V1.0), also has the terminal device of subway axle temperature detecting system hardware effort in addition.For coordinating the work of subway axle temperature detecting system hardware components, being provided with in terminal device and can processing by the information of NFC, Bluetooth receptions and the application program of the special corresponding platform of data processing, analysis and data processing module.
Step 1, installs above-mentioned hardware device bottom subway, comprises NFC reader/writer module, bluetooth module, clock module, SD data-carrier store, temperature collect module, power supply, bluetooth module; In supporting qualified terminal device, corresponding program is installed;
Step 2, the energising of the hardware components of subway axle temperature detecting system is started working, open a terminal the corresponding program of equipment simultaneously, and the NFC reader/writer module of open communication module and bluetooth module, by Beam function terminal according to condition matched with the hardware device on subway and be connected, SD data-carrier store Automatic clearance data yesterday;
Step 3, the temperature value of single-chip microcomputer record array of temperature sensor averaging, be recorded to SD data-carrier store respectively each sensor simultaneously, and add the time value of reading temperature sensor array, with corresponding axle box ID; The data frame format of composition is " time #ID# temperature 1# temperature 2# ... temperature n $ "; AT STATION and in the time run between station, find out the temperature averages that array of temperature sensor is maximum;
Step 4, under the subway stop position of subway station, NFC reader/writer module sends the communication module of NDEF format information to iron station monitoring computer terminal device by wireless radio-frequency, and the information content comprises the maximum average temperature value of axle box temperature outside sensor array, the pairing link information of bluetooth;
Step 5, iron station monitoring computer terminal device obtains information by communication module, therefrom extract axle box temperature outside sensor array average maximum value and compared with the threshold value set, if be no more than threshold value, subway starts, sail for the next stop, perform step 3, otherwise perform step 6;
Step 6, the bluetooth module in subway station monitoring computer terminal communication module matches with the bluetooth module of the hardware components of subway axle temperature detecting system and is connected;
Step 7, iron station monitoring computer terminal ground equipment sends request instruction to single-chip microcomputer by bluetooth module, and single-chip microcomputer sends the character string in the data recording text file in current hour in SD data-carrier store after receiving order, simultaneously train notified human pilot;
Step 8, iron station monitoring computer terminal device receives character string by bluetooth module, according to end mark " $ " obtain Frame, according to separator " # " obtain each propertystring, and be added in the corresponding attribute of database and go;
Step 9, iron station monitoring computer terminal device carrys out counting statistics according to the temperature data value of data-base recording, tries to achieve related data, and draws a diagram;
Step 10, repeats step 3 ~ 9, until subway completes the operation of today, enters Overhaul Yard;
Step 11, subway axle box supervisory personnel opens the APP of mobile phone terminal, and contacts with the NFC module in the hardware components of subway axle temperature detecting system, Beam function automatic connection of Bluetooth module
Step 12, subway axle box supervisory personnel is sent by mobile phone A PP and reads all data commands to the hardware components of subway axle temperature detecting system, and single-chip microcomputer is automatically by the character string in all data recording text files in this day SD data-carrier store; Another kind method, subway axle box supervisory personnel directly can exit SD card and carry out copies data;
Step 13, subway system hardware components can shut down or standby;
Step 14, subway axle box supervisory personnel give server by mobile phone A PP data upload.
As shown in Figure 3, the present invention is based on the subway axle temperature detecting system of NFC, bluetooth and sensor, operation of can networking, a lot of data can be uploaded from network, download, and carry out the synchronous etc. of database; In addition, follow-up expansion can also be realized, can with the cooperations such as metro operation company, bearing mnanufacture repair company.Server provides database access to terminal device application program, uploads, download function, also can carry out follow-up expansion.