Environment Monitoring System Based on zigbee and tiny4412 Development Board, zigbeetiny4412
1. Build the Development Board Environment
1. layout of tiny4412 linux
Reference blog: http://www.cnblogs.com/luoxiang/p/4186391.html
2. boa Server Construction
Download boa Source package: http://www.boa.org/boa-0.94.14rc21.tar.gz
Boa-0.94.14rc21.tar.gz cd/home tar zxf
Cd boa-0.94.14rc21./configure cd/src modify Makefile file CC = arm-linux-gcc CPP = arm-linux-gcc-E
Make will generate the executable file boa and clear the boa compilation information. arm-linux-strip boa
Copy boa to the bin directory of the Development Board.
Modify the boa. conf file
User 0
Group 0
# ErrorLog/var/log/boa/error_log block this sentence
# AccessLog/var/log/boa/access_log
ServerName www.your.org. here is very important. Otherwise, the boa server will not be able to be opened.
ScriptAlias/cgi-bin // var/www/cgi-bin/cgi and the default/var/www
Development Board: cd/etc mkdir boa
Cp boa. conf/etc/boa
Cd/var mkdir www cd www mkdir cgi-bin
Cp/www/index.html/var/www as a test program
Copy the host/etc/mime. types to the/etc directory of the Development Board.
/Bin/boa can start the boa Server.
Boa. c: 194-unable to bind: Address already in use. That's because there is a boa Server in the current file system. After ps, find the program serial number and kill it to run the boa Server, the boa Server is successfully built.
Iii. Transplantation of sqlite Server
Download the source package sqlite: http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz
Sqlite-autoconf-3080403.tar.gz cd/home tar zxf
Cd sqlite-autoconf-3080403
Mkdir install
CC = arm-linux-gcc./configure -- host = arm-linux -- prefix = 'pwd'/install
Make & make install
The install Folder contains four folders: include lib bin share.
Cd bin copies sqlite3 to the development board/bin directory
Cd lib: Copy libsqlite3.so. 0.8.6 to the development board/lib
Development Board: cd/lib ln-s libsqlite3.so. 0.8.6 libsqlite3.so. 0
Execute sqlite3 to open the database.
The sqlite database has been transplanted.