Linux-based embedded web solar video surveillance system

There are two types of monitoring systems, C/S mode and B/S mode. The C/S mode requires a client to be installed on the PC. The embedded server also needs to install the server. This not only increases the development workload, but also has a dedicated computer, but sometimes there is no industrial site. The way to do it. The B/S mode is flexible and cost-effective. First of all, in the B / S mode, we only need to develop a single WEB application, neither the client nor the server program. Secondly, you can use a browser-equipped terminal device to view and control the back-end devices anytime, anywhere. In addition, other monitoring hardware devices can be saved, which effectively reduces costs and enhances the market competitiveness of the entire system.

Considering this system in a B/S mode. The monitoring system uses ARM11 microprocessor (SC6410) as the hardware core, and embedded Linux is the integrated platform solution of software core. A Linux-based embedded Web solar monitoring system was designed on this platform. This monitoring system uses Ajax as the web front-end communication method, and the Cgi process, Php process, and 485 process are the back-end data processing methods. The monitoring system only runs on the device. In any place where the device is connected to the device, the instrument can directly monitor the solar device through the browser, breaking the limitation of the distance and improving the confidentiality of the software.

1 Monitoring system hardware structure

The monitoring system hardware is divided into two parts: the core board and the backplane. The core board uses the S3C6410 processor, which expands 128MB SDRAM and 256MB FLASH external memory. The bottom plate adopts RS4 85 acquisition interface, 3-wire RS232 serial port, SD card storage interface and Ethernet interface composed of Ethernet controller and RJ45. The hardware structure is shown in Figure 1.

Linux-based embedded web solar video surveillance system

The RS485 communication interface reads and sends the solar device parameters according to the protocol to the main control chip (S3C6410). The main control chip accepts 485 to collect data and stores the SQLite3 database. The processed and analyzed data is displayed on the webpage in the form of dynamic curves and tables, in addition to the implementation of the web page to send instructions to modify the solar device parameters. The monitoring system completes the parameters in various forms such as tables and curves and the configuration of solar energy parameters, which greatly facilitates the customer and improves the friendliness of the customer.

2 monitoring system operating environment transplantation

2.1 Embedded CGI C library transplantation

2.1.1 Download cgIC205. Tar. Gz

Download address: http://. Com/cgic/#0btain

2.1.2 Decompression

Extract the compressed file to the /home/cgic/ directory

#tar -czvf cgic205. Tar. Gz

#cd cgic205

2.1.3 Compiling

Modify the compilation parameters in its makefile

CC=arm-linux-gcc

AR=arm-linux-ar

RANLIB=arm-linux-ranlib.

#make

Copy libcgic. a library to the device /usr/lib/ directory.

2.2 embedded database Sqlite3 transplantation

2.2.1 Download sqlite3-autoconf-3070900. Tar. Gz

Download address: http://. Org/download. Html

2.2.2 Decompression

Extract the compressed file to the /home/sqlite3/ directory

#tar -czvf sqlite3-autoconf-3070900. Tar. Gz

#cd sqlite3-autoconf-3070900

2.2.3 Compiling

#. /configure \

--host=arm-linux- \

--prefix=/opt/sqlite3/install3.7.4 \

--dISAble--tc \

#make

#make install

Copy the lib and bin files in the /opt/sqlite3/install3.7.4 directory to the corresponding directory on the device.

2.3 WEB Server Appweb Software Migration

2.3.1 Download Appweb3.3.0. Tar. Gz

Download location: http://appwebserver.org/downloads/appweb/download. Ejs

2.3.2 Decompression

Extract the file to the /home/appweb/ directory

#tar -czvf appweb3.3.0. Tar. Gz

#cd appweb3.3.0

2.3.3 Compiling

#. /configure \

--prefix=/home/my \

--target=arm-sc6410-linux \

--build=i686-pc-linux \

--enable-log \

--staTIc \

--port=80 \

--with-php=/home/cgi-php; \

#make TRACE=1

#make ROOT_DIR=/home/my install

In the /home/cgi-php directory, there must be a compiled php5 dynamic library, and the compiled Appweb server will support the php function.

Copy the files in the home/my directory to the corresponding directory of the device, and copy the php dynamic library to the /usr/lib directory. The monitoring system running environment is transplanted.

2.3.4 Verifying the Appweb Server

Write the following code and save it as a file test. Php, put it in the device /www/ directory

Linux-based embedded web solar video surveillance system

Enter the device address on the PC browser address: 192.168.0.80/test. Php. If "ok php" is displayed in the browser webpage, it proves that the embedded Appweb has the php development function and supports the Sqlite3 database software running environment has been transplanted. Now the Web server can support the two functions of Cgi and Php, and the embedded Web like boa, shttpd only supports Cgi, and the function in the background processing is weak, and the complicated data processing cannot be completed.

Customized Cables

UCOAX manufactures a wide spectrum of wire and cable assemblies, each custom-designed for each individual client. Coaxial cable, at the industrial level, is used for instrumentation, control, RF, and microwave applications. It is also commonly used to connect home video equipment and cable television. These cable assemblies are available both rigid and flexible options, and consist of four layers: a round conducting wire, insulating spacer, cylindrical conducting sheath, and a final insulating layer. For any cable fabrication needs, contact UCOAX.


Customized Cables,Custom Pc Cables,Custom Computer Cables,Custom Network Cables

UCOAX , https://www.jsucoax.com

Posted on