This project is develop a cloud Gateway, which can support
a variety of drivers,collect field data, then push the data to the cloud.At present, it only supports modbus rtu driver and aliyun.
-
Extract the sqlite3 src to sqlite3-arm
-
mkdir install. in /opt/sqlite3-arm
-
./configure --host=arm-linux-gnueabihf --prefix=/opt/sqlite3-arm/install
-
make
-
make install
-
copy the /install/bin/sqlite3 to Armboard/usr/local/bin
-
copy the /install/lib/sqlite3.so.0.8.6 to Armboard/usr/local/lib
-
copy the /install/include/sqlite3 to our project.
(1) the project can running ok, in arm board.
(2) the pthread func can not work.
(3) the sqlite3 operator ok.
(4) we can read the cfg.db->dev_table ok.
(5) there are many warning compile.
(6) transmit paras to thread is the key.
(1) the project compile has no warning.
(1) modify the struct, not use point(*), but use arrary,malloc size. then can tx para to thread ok.
(1) add the driver folder,and mb_rtu driver thread, test well. (2) remote the sqlite for the test success.