Disclosure of Invention
Based on the problems, the patent provides an Android-based LCD display terminal linkage control method which comprehensively utilizes buses in electronic equipment, achieves intellectualization and reduces maintenance cost.
In order to achieve the purpose, the Android-based LCD display terminal linkage control method comprises an LCD display terminal, a vehicle-mounted station reporter, a vehicle-mounted loudspeaker and a background server, wherein the LCD display terminal is based on an Android system and comprises a Rockchip RK3288 chip, the LCD display terminal is vertically arranged, the displayed content of the LCD display terminal is divided into an upper block and a lower block, the vehicle-mounted station reporter and the LCD display terminal are connected through an RS485 interface and an audio interface at the same time, and the specific control method comprises the following steps:
1) the LCD display terminal is connected with the vehicle-mounted station reporter;
2) the LCD display terminal receives the line information sent by the vehicle-mounted station reporter through an RS485 interface;
3) judging whether the current line information displayed by the LCD display terminal is consistent with the received line information;
4) if the line information is consistent with the line information, the line information is not modified, and the latest line information is stored locally in the LCD display terminal;
5) updating the line information:
a. calculating the number of stations in the route information
b. Number of stations ≦ 32 stations;
c. if yes, displaying in single row;
d. if not, double-row display is carried out;
e. updating a line information display interface;
6) receiving the data sent by the station reporter:
monitoring RS485 interface data by the LCD display terminal;
b. data changes such as vehicle entering and leaving;
c. comparing with the current line information, and determining a current station;
d. updating the arrival and departure information, highlighting the current station, and displaying the station which has traveled in dark;
7) and sending the arrival and departure signals of the vehicle to a vehicle body loudspeaker to carry out voice reminding on the passengers.
The further scheme is that the step of realizing the remote pushing of the multimedia information through the background server is as follows:
1) setting an LCD display terminal network to enable the network to be connected to a background server;
2) opening an LCD display terminal program and logging in a background server;
3) LCD display terminal logs on the background server
a. Judging whether the current login is the first login;
b. if not, the login is successful, a success message is returned, and the step 4) is skipped;
c. if yes, setting the equipment as an illegal terminal, and returning a login rejection message;
4) binding terminal of background server
a. The background illegal terminal module displays all illegal terminals and judges the terminals needing to be added;
b. the devices which do not need to be added cannot communicate with the server;
c. if the terminal needs to be added, inputting a terminal number and a terminal name, wherein the chip id is information in the login request and is a unique mark of the terminal;
d. the terminal can successfully log in when logging in again;
5) checking the online state of the LCD display terminal on a webpage terminal management interface of a background server;
6) uploading materials to be issued by a webpage material management module of a background server, and grouping the materials;
7) editing the program list by a webpage program list module of a background server, and creating a new program list or modifying the original program list;
8) if a new program list is created, editing the size and the playing time of the program list and the type of a playing material, adding a material file of a corresponding type, and setting the playing format and the display time;
9) if the original program list is modified, the original program list is firstly subjected to counter-examination and then edited;
10) the edited program list is checked and then sent to a designated terminal;
11) a webpage remote monitoring module of a background server checks the state of program list transmission and the downloading progress of program list materials;
12) and the terminal can play the program list after downloading the material of the program list.
Compared with the prior art, the Android-based LCD display terminal linkage control method provided by the invention has the advantages that the Android-based LCD display terminal is used as a main control center, the RS485 communication interface data and the audio interface data of the vehicle-mounted station reporter are simultaneously sent to the LCD display terminal, the two paths of sound sources of the vehicle body loudspeaker can be controlled by detecting the RS485 command of the station reporter by utilizing the volume control characteristics of an Android system, and the problem of sound mixing is solved. Meanwhile, a whole set of information display and control method is designed for the LCD display terminal, and the purpose that the whole vehicle multimedia control can be realized only by maintaining the LCD display terminal is achieved.
Example 1.
As shown in fig. 1, the LCD display terminal linkage control method based on Android described in this embodiment includes an LCD display terminal, a vehicle-mounted station reporter, a vehicle-mounted speaker, and a background server, where the LCD display terminal is based on an Android system. The hardware system of the LCD display terminal comprises a 4G communication module, a storage module, a USB interface module, an RS485 module, a volume control module and the like. Wherein, the control module selects a Rockchip RK3288 high-performance multimedia processor. The power supply module can meet the requirement of a wide power supply input range (DC 9-36V), and outputs 5V and 24V to supply power for each functional module of the system. The LCD is used to display line and multimedia information, and the user can directly interact with the terminal. The 4G communication module can realize communication with the background server. The storage module comprises a DDR3 module and an EMMC module, the DDR3 module is a system memory, the physical size of the system memory is 1GB, and the storage space of the EMMC module is 8GB, so that the normal work of the system can be met. The USB interface module comprises a high-speed USB2.0 interface and a USB-OTG interface, and the computer can be connected with the USB-OTG interface to directly carry out operations such as data transmission, program upgrading and the like. The LCD display terminal is linked with the vehicle-mounted station reporter through the RS485 module, acquires the data of the station reporter in real time and displays the line information. The volume control module is mainly used for controlling the station announcement sound source and the multimedia sound source and realizing the control of two paths of sound sources by detecting the arrival and departure command data of the station announcement device.
1. The specific control method comprises the following steps:
1) the LCD display terminal is connected with the vehicle-mounted station reporter;
2) the LCD display terminal receives the line information sent by the vehicle-mounted station reporter through an RS485 interface;
3) judging whether the current line information displayed by the LCD display terminal is consistent with the received line information;
4) if the line information is consistent with the line information, the line information is not modified, and the latest line information is stored locally in the LCD display terminal;
5) updating the line information:
a. calculating the number of stations in the route information
b. Number of stations ≦ 32 stations;
c. if yes, displaying in single row;
d. if not, double-row display is carried out;
e. updating a line information display interface;
6) receiving the data sent by the station reporter:
monitoring RS485 interface data by the LCD display terminal;
b. data changes such as vehicle entering and leaving;
c. comparing with the current line information, and determining a current station;
d. updating the arrival and departure information, highlighting the current station, and displaying the station which has traveled in dark;
7) and sending the arrival and departure signals of the vehicle to a vehicle body loudspeaker to carry out voice reminding on the passengers.
When the vehicle-mounted station reporter works, the vehicle-mounted station reporter accurately positions the station by measuring the longitude and the latitude through the system by utilizing the GPS global satellite positioning technology, so that the function of automatically sending the voice station report is realized. In addition, the vehicle-mounted station reporter can also perform station switching, uplink and downlink switching and line switching through keys. The station reporter converts the converted data into RS485 format data, transmits the data to the LCD display terminal through the RS485 interface, and the LCD display terminal analyzes the RS485 format data according to a data protocol of the station reporter and displays the data at a specified position of an LCD screen, so that the data of the station reporter is displayed on the LCD display terminal in a linkage manner.
The LCD display terminal uses different modes to display interfaces according to different lines. When the line station name is less, a single line is displayed, and for the line with more stations, a horizontally-arranged U-shaped pattern type double-row display line is adopted, so that the dynamic change function is realized. The data sent by the vehicle-mounted station reporter comprises information such as the current position, station entering and exiting, uplink and downlink and the like of the vehicle. When a vehicle enters the station, the station reporter sends command data of the station, and after the command data is analyzed by the LCD display terminal, the voice of the station is transmitted to the vehicle body loudspeaker through the volume control module to carry out voice broadcast of the station.
When the multimedia information is pushed, the following steps are carried out:
1) setting an LCD display terminal network to enable the network to be connected to a background server;
2) opening an LCD display terminal program and logging in a background server;
3) LCD display terminal logs on the background server
a. Judging whether the current login is the first login;
b. if not, the login is successful, a success message is returned, and the step 4) is skipped;
c. if yes, setting the equipment as an illegal terminal, and returning a login rejection message;
4) binding terminal of background server
a. The background illegal terminal module displays all illegal terminals and judges the terminals needing to be added;
b. the devices which do not need to be added cannot communicate with the server;
c. if the terminal needs to be added, inputting a terminal number and a terminal name, wherein the chip id is information in the login request and is a unique mark of the terminal;
d. the terminal can successfully log in when logging in again;
5) checking the online state of the LCD display terminal on a webpage terminal management interface of a background server;
6) uploading materials to be issued by a webpage material management module of a background server, and grouping the materials;
7) editing the program list by a webpage program list module of a background server, and creating a new program list or modifying the original program list;
8) if a new program list is created, editing the size and the playing time of the program list and the type of a playing material, adding a material file of a corresponding type, and setting the playing format and the display time;
9) if the original program list is modified, the original program list is firstly subjected to counter-examination and then edited;
10) the edited program list is checked and then sent to a designated terminal;
11) a webpage remote monitoring module of a background server checks the state of program list transmission and the downloading progress of program list materials;
12) and the terminal can play the program list after downloading the material of the program list.
During specific pushing, the background server mainly provides five functional modules of terminal equipment management, program list material management, remote monitoring and illegal terminal management. The terminal equipment management realizes the management setting of the basic information of the LCD display terminal, and mainly comprises the information of a terminal number, a terminal name, a chip ID, an IP address, an online state and the like. The program management module mainly edits according to requirements, wherein the information comprises video, pictures, texts, web pages and the like, sets the playing time and the playing effect of the playing contents, and then pushes the edited program to a specified terminal for playing. The program list material management module is used for uploading and editing the required materials for the program unicast playing and needs to classify the materials. The remote monitoring module is used for remotely controlling the LCD display terminal and comprises the steps of checking the version number and the mirror image version of equipment software, screen capturing, remote restarting, playing a program list and checking the downloading state. The illegal terminal module mainly displays an unknown terminal connected with the background server, the unknown terminal can be edited to become a legal terminal, and the legal terminal is displayed on the terminal management module.
The background server further confirms the login request of the LCD display terminal, replies login success to normal equipment, and judges the terminal background server connected for the first time as an illegal terminal and replies login failure. For the terminal with failed login, the terminal can be normally used only by adding a legal terminal in the background, and the chip id of the LCD display terminal is used as the unique identifier of each device. After the terminal successfully logs in, tcp connection is established, and normal communication can be carried out with the background server. And the terminal which successfully logs in sends a tcp heartbeat packet to the server every 30 seconds, so that the connection between the terminal equipment and the server is kept, if the server does not receive the tcp heartbeat packet sent by the terminal within 3 minutes, the terminal is considered to be offline, and the offline state of the equipment is displayed by the background. And pushing the edited program list through the program list management module, checking the ftp connection state after the LCD display terminal receives the program list, and establishing ftp connection if the program list is not connected. Downloading the required playing material in the program list from the server to the local by using ftp, and playing the program list after downloading the material.