Environment Monitoring System Based on zigbee and tiny4412 Development Board, zigbeetiny4412

Source: Internet
Author: User
Tags sqlite server

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.