Bluetooth data receiving method based on FTP (file transfer protocol)

文档序号:1120826 发布日期:2020-10-02 浏览:19次 中文

阅读说明:本技术 一种基于ftp协议的蓝牙数据接收方法 (Bluetooth data receiving method based on FTP (file transfer protocol) ) 是由 徐志龙 陆小勇 曹承伟 赵立 胡宇清 于 2020-05-21 设计创作,主要内容包括:本发明的一种基于FTP协议的蓝牙数据接收方法通过对系统应用的功能需求分析,中央接收监视器接收和处理显示所述无源射频发射器发送的信息,并解码数据,对数据分析进行相应处理,然后将数据通过蓝牙模块传给移动终端应用程序端;移动终端应用程序对数据进行接收处理显示,胎压感应装置把胎压变化信号转化为对应的装置压力变化,控制驾驶手持装置随胎压变化而变化,并将数据上传给服务器端。本发明全面克服了胎压监测装置中的通信不便的问题,采用无线蓝牙的形式将胎压数据实时传递给用户移动终端,采用FTP协议作为通信安全的有效保障手段,且本发明全面综合考虑了环境因素对胎压值调整的影响,客观对胎压监测系统提出了合理有效的解决方案。(The Bluetooth data receiving method based on the FTP protocol analyzes the function requirement of system application, a central receiving monitor receives, processes and displays information sent by a passive radio frequency transmitter, decodes data, performs corresponding processing on data analysis, and then transmits the data to a mobile terminal application program end through a Bluetooth module; the mobile terminal application program receives, processes and displays the data, the tire pressure sensing device converts the tire pressure change signal into corresponding device pressure change, the driving handheld device is controlled to change along with the tire pressure change, and the data are uploaded to the server side. The invention comprehensively overcomes the problem of inconvenient communication in the tire pressure monitoring device, adopts the form of wireless Bluetooth to transmit the tire pressure data to the user mobile terminal in real time, adopts FTP protocol as an effective guarantee means of communication safety, comprehensively considers the influence of environmental factors on the adjustment of the tire pressure value, and objectively provides a reasonable and effective solution for the tire pressure monitoring system.)

1. A bluetooth data receiving method based on FTP protocol for vehicle tire monitoring, comprising:

a sensor device arranged on a vehicle tire collects tire internal information and environment information and performs digital-to-analog conversion;

processing the information sent by each tire node by the acquired tire internal information and environmental information sent by each tire node through a micro-control unit in the wireless communication module, and sending data to a central receiving monitor by adopting a passive radio frequency transmitter;

the central receiving monitor receives, processes and displays the information sent by the passive radio frequency transmitter, decodes the data, performs corresponding processing on the data analysis, and then transmits the data to the application program end of the mobile terminal through the Bluetooth module;

the mobile terminal application program receives, processes and displays the data, the tire pressure sensing device converts a tire pressure change signal into a corresponding device pressure change, the driving handheld device is controlled to change along with the tire pressure change, the data are uploaded to the server side, the central receiving monitor is connected to the server side through an FTP protocol, and the server side stores the data into the database.

2. A bluetooth data receiving method based on the FTP protocol as set forth in claim 1, wherein:

the sensor device of installation on the vehicle tire adopts inside information of tire and environmental information and carries out digital analog conversion, still includes: the central receiving monitor is connected to the server end through an FTP protocol, a digital signature mode is provided by adopting a SHA-1 and RSA combination, and a random number is generated for each data uploaded to the server end by using a symmetric encryption algorithm DES or IDEA to serve as a new key;

the tire internal information includes tire internal pressure information and temperature information;

the environmental information includes location information of the vehicle;

the positioning information of the vehicle further comprises world coordinate information, terrain information, climate information and weather information of the vehicle;

the world coordinate information of the vehicle is determined by receiving the RSSI of a plurality of processing positioning base stations, the TOA of an audio signal and a Bluetooth signal broadcast message, and the distance change rate measured by the audio signal is determined by means of a least square method or an extended Kalman filtering method;

the topographic information and a laser recognition device arranged on the tire recognize attribute information of the current ground by means of the world coordinate information;

the climate information acquires the climate information of the current vehicle based on longitude, latitude and coastal information by means of world coordinate information of the vehicle;

the weather information also comprises rain and snow information, and the rain and snow information of the environment where the current vehicle is located is identified based on the obtained meteorological satellite positioning data and a high-speed image acquisition device arranged on the tire;

the environment information also includes information on changes in the environment in which the vehicle is located.

3. A bluetooth data receiving method based on the FTP protocol as set forth in claim 1, wherein:

the information that will acquire tire internal information and environmental information that each tire node sent passes through the little the control unit processing each tire node in the wireless communication module and sends, adopts passive radio frequency transmitter to central authorities to receive monitor transmission data, still includes: the passive radio frequency transmitter adopts spread spectrum and frequency hopping, the frequency is between 2.4GHz and 2.480GHz, the frequency is realized by adopting 19 frequency points with the interval of 1M, 2.4GHz radio frequency signals are transmitted from pins of RF _ P and RF _ N, a physical baseband clock is generated by a 32MHz crystal oscillator through PLL frequency multiplication, an on-chip power amplifier amplifies the signals, the port impedance is 50ohm, and the signals on the pins of RF _ P and RF _ N are a pair of differential signals with equal amplitude;

detecting the received signal, judging whether the signal is a Bluetooth signal, if the signal is a noise signal, not performing signal gain adjustment, and if the signal is the Bluetooth signal, performing signal gain adjustment;

after the mobile terminal equipment is connected with the online, the mobile terminal sends a monitoring broadcast packet of a central station at a port position and broadcast packets of other modules, and displays the tire internal information and the environmental information parameter information in a tire list of the terminal service equipment, and the terminal service equipment configures corresponding tire information in the mobile terminal list;

and after receiving the tire information, the terminal mobile terminal service equipment starts the FTP request and sends the request to a port of the mobile terminal equipment.

4. A bluetooth data receiving method based on the FTP protocol as set forth in claim 1, wherein:

the central receiving monitor receives, processes and displays the information sent by the passive radio frequency transmitter, decodes the data, performs corresponding processing on the data analysis, and then transmits the data to the application program end of the mobile terminal through the Bluetooth module, and the method further comprises the following steps:

the mobile terminal carries out hardware initialization and SPI initialization according to a user command by a Bluetooth communication transceiver module, and establishes a Bluetooth protocol task finding task and a tire pressure data reading task;

sending a control signal of high-frequency modulation to a Bluetooth communication transceiver module, starting Bluetooth broadcasting, transmitting a data signal to a single-chip microcomputer signal processing circuit after the Bluetooth communication transceiver module receives demodulation, performing main circulation of a mobile terminal operating system, polling a Bluetooth event, and judging whether a Bluetooth request is received or not;

if a Bluetooth request is received, the data is respectively output to the frequency division time phase circuit and the power electronic switch control circuit after being processed by the single chip signal processing circuit;

and monitoring the data sending queue, knowing the specific transmission state of the data, and if the data transmission speed is too high, automatically starting the buffer queue and pushing the data to an application program of the mobile terminal.

5. A bluetooth data receiving method based on the FTP protocol as set forth in claim 2, wherein:

the mobile terminal application program receives, processes and displays data, and the tire pressure sensing device converts tire pressure change signals into corresponding device pressure changes, and the control driving handheld device changes along with the tire pressure changes and uploads the data to the server, and the server stores the data into the database, and the mobile terminal application program specifically comprises:

based on the obtained internal information and environmental information of the tire, aiming at the change information of the environment where the vehicle is located, different reasonable tire pressure sections are set for the tire pressure data of the vehicle in different environments, and after the environment where the vehicle is located changes, the section change corresponding to the tire pressure setting is sent to the pressure sensor arranged on the tire

The pressure sensor reads the section change signal which is required to be set by the tire pressure in real time, the section change signal which is required to be set by the tire pressure is transmitted to the micro control unit, and the micro control unit controls the work of the device by receiving the tire pressure change signal transmitted from the tire pressure sensor.

Inflating or deflating the driving handheld device, and controlling the driving handheld device to change along with the change of the tire pressure so as to remind a driver of paying attention to adjusting the tire pressure value;

and storing the information for reminding the driver of paying attention to adjusting the tire pressure value into a database.

Technical Field

The present disclosure relates generally to the field of vehicles and communications, and more particularly to a bluetooth data receiving method based on the FTP protocol.

Background

The performance and safety of vehicles such as automobiles rely on tires. However, mounting an incorrect tire on a vehicle can compromise the safety and comfort of the vehicle. Automobile tires are one of the most important factors for guaranteeing the running performance of automobiles, but many drivers often ignore the factors, and the maintenance of normal tire pressure can not only enhance the safe reliability and the running performance of the automobiles, but also save fuel consumption and prolong the service life of the tires. For example, mounting a low performance tire on a vehicle driven by a particular driver having a sporty driving style may cause the vehicle to perform poorly and may feel uncomfortable to drive for the particular driver.

In addition, inflating the tires to an incorrect pressure can also compromise the safety and comfort of the vehicle. For example, under-or over-inflating a tire can negatively impact the maneuverability of the vehicle and can reduce the life of the tire.

Disclosure of Invention

In order to solve the problems that the current tire pressure monitoring device is inconvenient and monitoring data is not considered thoroughly, the invention requests to protect a Bluetooth data receiving method based on an FTP protocol, which is used for monitoring vehicle tires and is characterized by comprising the following steps:

a sensor device arranged on a vehicle tire collects tire internal information and environment information and performs digital-to-analog conversion;

processing the information sent by each tire node by the acquired tire internal information and environmental information sent by each tire node through a micro-control unit in the wireless communication module, and sending data to a central receiving monitor by adopting a passive radio frequency transmitter;

the central receiving monitor receives, processes and displays the information sent by the passive radio frequency transmitter, decodes the data, analyzes the data and correspondingly processes the data, and then transmits the data to the application program end of the mobile terminal through the Bluetooth module;

the mobile terminal application program receives, processes and displays the data, the tire pressure sensing device converts a tire pressure change signal into a corresponding device pressure change, the driving handheld device is controlled to change along with the tire pressure change, the data are uploaded to the server side, and the server side stores the data into the database.

According to the invention, through analyzing the function requirements of system application, a central receiving monitor receives, processes and displays the information sent by the passive radio frequency transmitter, decodes data, performs corresponding processing on data analysis, and then transmits the data to a mobile terminal application program end through a Bluetooth module; the mobile terminal application program receives, processes and displays the data, the tire pressure sensing device converts the tire pressure change signal into corresponding device pressure change, the driving handheld device is controlled to change along with the tire pressure change, and the data are uploaded to the server side. The invention comprehensively overcomes the problem of inconvenient communication in the tire pressure monitoring device, transmits the tire pressure data to the user mobile terminal in real time in a wireless Bluetooth mode, adopts the FTP protocol as an effective guarantee means of communication safety, can carry out effective confidential analysis on the monitored data, comprehensively considers the influence of environmental factors on the adjustment of the tire pressure value, and objectively provides a reasonable and effective solution for a tire pressure monitoring system.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.

Fig. 1 is a flowchart of a bluetooth data receiving method based on FTP protocol according to the present invention;

fig. 2 is a flowchart of an embodiment 1 of a bluetooth data receiving method based on the FTP protocol according to the present invention.

Detailed Description

Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

Fig. 1 is a flow chart showing the operation of a bluetooth data receiving method based on the FTP protocol according to the present invention;

the invention relates to a Bluetooth data receiving method based on FTP protocol, which is used for monitoring vehicle tires and is characterized by comprising the following steps:

a sensor device arranged on a vehicle tire collects tire internal information and environment information and performs digital-to-analog conversion;

processing the information sent by each tire node by the acquired tire internal information and environmental information sent by each tire node through a micro-control unit in the wireless communication module, and sending data to a central receiving monitor by adopting a passive radio frequency transmitter;

the central receiving monitor receives, processes and displays the information sent by the passive radio frequency transmitter, decodes the data, analyzes the data and correspondingly processes the data, and then transmits the data to the application program end of the mobile terminal through the Bluetooth module;

the mobile terminal application program receives, processes and displays the data, the tire pressure sensing device converts a tire pressure change signal into a corresponding device pressure change, the driving handheld device is controlled to change along with the tire pressure change, the data are uploaded to the server side, and the server side stores the data into the database.

Preferably, the sensor device of installation on the vehicle tire collects inside information of tire and environmental information and carries out digital analog conversion, still includes:

the central receiving monitor is connected to the server end through an FTP protocol, a digital signature mode is provided by adopting a SHA-1 and RSA combination, a symmetric encryption algorithm DES or IDEA is used, and a random number is generated for each data uploaded to the server end and serves as a new key;

the tire internal information includes tire internal pressure information and temperature information;

the environmental information includes location information of the vehicle;

the positioning information of the vehicle further comprises world coordinate information, terrain information, climate information and weather information of the vehicle;

the world coordinate information of the vehicle is determined by receiving the RSSI of a plurality of processing positioning base stations, the TOA of an audio signal and a Bluetooth signal broadcast message, and the distance change rate measured by the audio signal is determined by means of a least square method or an extended Kalman filtering method;

the topographic information and a laser recognition device arranged on the tire recognize attribute information of the current ground by means of the world coordinate information;

the climate information is obtained by means of world coordinate information of the vehicle, and based on longitude, latitude and coastal information, the climate information of the current vehicle is obtained;

the weather information also comprises rain and snow information, and the rain and snow information of the environment where the current vehicle is located is identified based on the obtained meteorological satellite positioning data and a high-speed image acquisition device arranged on the tire;

the environment information also includes information on changes in the environment in which the vehicle is located.

The encryption and decryption authentication process of the FTP protocol comprises the following steps:

the central receiving monitor sends a generated message, and the SHA-1 or MD5 is used for generating a hash code of the message;

the private key RSA of the central receiving monitor encrypts the hash code and puts the result in a message;

the central receiving monitor encrypts the signed message by using a session key according to a symmetric encryption algorithm;

the public key of the server end is used for encrypting the session key according to RSA and is put into the message, and the server end uses the private key thereof to decrypt and recover the session key according to RSA;

decrypting the message by using the session key, decrypting the message by using a public key of the central receiving monitor according to RSA by using the server side, and recovering the Hash code;

the server generates a new hash code from the message and compares it with the decrypted hash code, and if there is a match, the received message is authentic.

The positioning information of the vehicle is used for picking up positioning signals through a GPS positioning satellite, extracting navigation messages from the received signals, calculating a dual-frequency carrier phase and a code measurement pseudo-range observation value according to the navigation messages, and obtaining a position coordinate of the satellite and a binomial fitting parameter of a satellite clock error;

preprocessing data, combining various linear combinations of the observed values, detecting longitude and latitude and sea surface distance, and obtaining a cleaner observed value equation;

positioning calculation is carried out by utilizing a code measurement pseudo-range observation value to obtain a rough vehicle position coordinate, troposphere delay, solid tide delay, relativistic effect delay and the like are determined according to the model and the initial coordinate, errors are corrected in the dual-frequency ionosphere-free observation model to form a normal equation for parameter calculation, and the position coordinate, longitude and latitude information, sea surface distance information and time zone information of the vehicle are obtained.

Specifically, the positioning climate can be divided into cold zone, warm zone, subtropical zone, tropical zone and the like according to longitude and latitude information; dividing the climate into continental climate, ocean climate, desert climate and the like according to the sea level distance information; the comprehensive influences of longitude, latitude and sea level distance can be divided into season weather, rain forest weather and the like; based on climate and time factors and a high-speed image acquisition device arranged on the tire, local temperature and humidity information is decided, and a proper tire pressure value range is determined;

specifically, the topographic information and the attribute information of the current ground, which is identified by the laser identification device provided on the tire, by means of the world coordinate information further include: laser stripes emitted by the linear laser irradiate the surface of a measured target at a certain angle, and a camera CCD receives light reflected by the surface of the target object to obtain a linear laser image;

wherein theta represents an included angle between a light axis of the linear laser and a CCD optical axis of the high-speed image acquisition device, delta H represents displacement of the linear laser stripe on a CCD image plane of the camera according to the change of the curvature of the surface of the scanned object, and the change quantity of the surface of the target object, namely the depth information delta H of the scanned object, can be calculated by utilizing a triangle similarity theorem;

and processing the obtained laser image data in linear laser scanning system software, and realizing the reconstruction of the three-dimensional scanning of the complex terrain in the scene, wherein the terrain of the ground mainly comprises the roughness of the ground and the material of the ground.

Specifically, the high-speed image acquisition device identifies rain and snow information of an environment where a current vehicle is located, extracts dense SIFT features x of the high-resolution remote sensing image, learns the extracted dense SIFT features by adopting an effective sparse coding algorithm to obtain an over-complete dictionary D, and obtains sparse codes s (x, D) of the dense SIFT features x on the over-complete dictionary D;

establishing a 4-connectivity graph G in a 4-neighborhood range of each vertex by taking each sparse code s (x, D) as the vertex, and establishing a conditional random field model on the 4-connectivity graph G;

giving conditional random field model parameters, and reasoning out the probability value of each sparse code s (x, D) belonging to rain and snow by an LBP algorithm to obtain an airport target probability map;

and (4) segmenting the airport target probability graph by adopting a self-adaptive threshold segmentation method to obtain a rain and snow detection result.

The method comprises the steps that rain and snow information of the environment where the current vehicle is located is identified based on obtained meteorological satellite positioning data and a high-speed image acquisition device arranged on a tire, and when data conclusion of the meteorological satellite positioning data and data conclusion identified by the high-speed image acquisition device arranged on the tire are inconsistent, the rain and snow information of the environment where the current vehicle is located is identified by the high-speed image acquisition device.

Further, the processing of the information sent by each tire node by the acquired tire internal information and environmental information through the micro control unit in the wireless communication module and the sending of data to the central receiving monitor by the passive radio frequency transmitter further comprises:

the passive radio frequency transmitter adopts spread spectrum and frequency hopping, the frequency is between 2.4GHz and 2.480GHz, the frequency is realized by adopting 19 frequency points with the interval of 1M, 2.4GHz radio frequency signals are transmitted from pins of RF _ P and RF _ N, a physical baseband clock is generated by a 32MHz crystal oscillator through PLL frequency multiplication, an on-chip power amplifier amplifies the signals, the port impedance is 50ohm, and the signals on the pins of RF _ P and RF _ N are a pair of differential signals with equal amplitude;

detecting the received signal, judging whether the signal is a Bluetooth signal, if the signal is a noise signal, not performing signal gain adjustment, and if the signal is the Bluetooth signal, performing signal gain adjustment;

after the mobile terminal equipment is connected with the online, the mobile terminal sends a monitoring broadcast packet of a central station at a port position and broadcast packets of other modules, and displays the tire internal information and the environmental information parameter information in a tire list of the terminal service equipment, and the terminal service equipment configures corresponding tire information in the mobile terminal list;

and after receiving the tire information, the terminal mobile terminal service equipment starts the FTP request and sends the request to a port of the mobile terminal equipment.

Referring to fig. 2, a flowchart of an embodiment 1 of a bluetooth data receiving method based on the FTP protocol according to the present invention;

further, the central receiving monitor receives, processes and displays the information sent by the passive radio frequency transmitter, decodes the data, performs corresponding processing on the data analysis, and then transmits the data to the application program end of the mobile terminal through the bluetooth module, and the method further comprises the following steps:

the mobile terminal carries out hardware initialization and SPI initialization according to a user command by a Bluetooth communication transceiver module, and establishes a Bluetooth protocol task finding task and a tire pressure data reading task;

sending a control signal of high-frequency modulation to a Bluetooth communication transceiver module, starting Bluetooth broadcasting, transmitting a data signal to a single-chip microcomputer signal processing circuit after the Bluetooth communication transceiver module receives demodulation, performing main circulation of a mobile terminal operating system, polling a Bluetooth event, and judging whether a Bluetooth request is received or not;

if a Bluetooth request is received, the data is respectively output to the frequency division time phase circuit and the power electronic switch control circuit after being processed by the singlechip signal processing circuit;

and monitoring the data sending queue, knowing the specific transmission state of the data, and if the data transmission speed is too high, automatically starting the buffer queue and pushing the data to an application program of the mobile terminal.

Preferably, the mobile terminal application program receives, processes and displays the data, the tire pressure sensing device converts the tire pressure change signal into a corresponding device pressure change, the control driving handheld device changes along with the tire pressure change, and uploads the data to the server, and the server stores the data into the database, specifically including:

based on the obtained internal information and environmental information of the tire, aiming at the change information of the environment where the vehicle is located, different reasonable tire pressure sections are set for the tire pressure data of the vehicle in different environments, and after the environment where the vehicle is located changes, the section change corresponding to the tire pressure setting is sent to the pressure sensor arranged on the tire

The pressure sensor reads the section change signal which is required to be set by the tire pressure in real time, the section change signal which is required to be set by the tire pressure is transmitted to the micro control unit, and the micro control unit controls the work of the device by receiving the tire pressure change signal transmitted from the tire pressure sensor.

Inflating or deflating the driving handheld device, and controlling the driving handheld device to change along with the change of the tire pressure so as to remind a driver of adjusting the tire pressure value;

and storing the information for reminding the driver of paying attention to adjusting the tire pressure value into a database.

Specifically, the minimum tire pressure of the safe cold tire is Pmin, the maximum tire pressure is Pmax, the current tire pressure is PCurrent (Pmin < ═ PCurrent < > Pmax, which is responsible for alarm processing, the driving handheld device vibrates, and the tire pressure is rapidly charged and discharged), and the controller collects and records the tire pressure every 10ms, such as P01, P02, P03, P04 and P05, and records the tire pressure change.

Assuming that the variation range of the driving handheld device is Smin (the most deflated state), Smax (the full state), and the variation range of the tire pressure is Pmin (the minimum tire pressure), Pmax (the maximum tire pressure).

When the automobile is started to run, the first tire pressure is monitored and constantly changes, for example, if PCurrent is greater than Pmin, then Pmin is equal to PCurrent, and the current tire pressure is set as the minimum tire pressure.

The corresponding inflation state of the driving handheld device is SCurrent ═ PCurrent (Pmax-Pmin)

(PCurrent-Pmin)/(Pmax-Pmin)=(Scurrent-Smin)/(Smax-Smin)

Therefore, the ratio of (Smax-Smin)/(Pmax-Pmin) to (PCurret-Pmin) + Smin

Where scenent represents the current inflation status of the piloting handset, inflation and deflation being controlled by a connected cylinder device (connected to the piloting handset).

The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:通过原车中控系统实时显示胎压的装置及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!