Skip to content
FogLAMP "usb4704" South plugin: generic plugin for sensors connected to the Advantech USB-4704 Portable Data Acquisition Module.
Branch: develop
Clone or download
Singhal-Vaibhav Merge pull request #21 from foglamp/master
v1.6.0 release - master to develop
Latest commit c7b1a35 May 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
packages/Debian/x86_64/DEBIAN requirements.sh file added and make_deb refactoring Feb 27, 2019
.gitignore
CMakeLists.txt
Description FOGL-2828 Add package files for USB 4704 May 16, 2019
FindFogLAMP.cmake
LICENSE
Package FOGL-2828 Add package files for USB 4704 May 16, 2019
README.rst
VERSION
foglamp.version VERSION changed May 22, 2019
make_deb
mkversion FOGL-2338 External VERSION file Jan 23, 2019
plugin.cpp FOGL-2338 External VERSION file Jan 23, 2019
requirements.sh requirements.sh file added and make_deb refactoring Feb 27, 2019
usb4704.cpp

README.rst

Advantech USB-4704 Portable Data Acquisition Module C/C++ South plugin

NOTE:

This plugin requires the Advantech BIODAQ library. This has no standard install location, therefore you must set the environment variable BIODAQDIR to the location in whch you installed this.

Build

To build usb4704 plugin with given requirements.sh or the following commands:

$ export BIODAQDIR=...
$ mkdir build
$ cd build
$ cmake ..
$ make
  • The environment variable BIODAQDIR should be pointed at the directory that has the libs and include subdirectoy from the USB-4704 SDK_driver downloaded from the Advantech support website. http://downloadt.advantech.com/download/downloadsr.aspx?File_Id=1-1N61WCN E.g. If you downloaded this file to yout home directory run export BIODAQDIR=~/DAQNavi_Linux/SDK_Drivers/linux_driver_source_3.2.8.0_64bit
  • By default the FogLAMP develop package header files and libraries are expected to be located in /usr/include/foglamp and /usr/lib/foglamp
  • If FOGLAMP_ROOT env var is set and no -D options are set, the header files and libraries paths are pulled from the ones under the FOGLAMP_ROOT directory. Please note that you must first run 'make' in the FOGLAMP_ROOT directory.

You may also pass one or more of the following options to cmake to override this default behaviour:

  • FOGLAMP_SRC sets the path of a FogLAMP source tree
  • FOGLAMP_INCLUDE sets the path to FogLAMP header files
  • FOGLAMP_LIB sets the path to FogLAMP libraries
  • FOGLAMP_INSTALL sets the installation path of Random plugin
NOTE:
  • The FOGLAMP_INCLUDE option should point to a location where all the FogLAMP header files have been installed in a single directory.
  • The FOGLAMP_LIB option should point to a location where all the FogLAMP libraries have been installed in a single directory.
  • 'make install' target is defined only when FOGLAMP_INSTALL is set

Examples:

  • no options

    $ cmake ..

  • no options and FOGLAMP_ROOT set

    $ export FOGLAMP_ROOT=/some_foglamp_setup

    $ cmake ..

  • set FOGLAMP_SRC

    $ cmake -DFOGLAMP_SRC=/home/source/develop/FogLAMP ..

  • set FOGLAMP_INCLUDE

    $ cmake -DFOGLAMP_INCLUDE=/dev-package/include ..

  • set FOGLAMP_LIB

    $ cmake -DFOGLAMP_LIB=/home/dev/package/lib ..

  • set FOGLAMP_INSTALL

    $ cmake -DFOGLAMP_INSTALL=/home/source/develop/FogLAMP ..

    $ cmake -DFOGLAMP_INSTALL=/usr/local/foglamp ..

Packaging for 'usb4704' south

This repo contains the scripts used to create a foglamp-south-usb4704 Debian package.

The make_deb script

Run the make_deb command:

$ ./make_deb help
make_deb [help|clean|cleanall]
This script is used to create the Debian package of FoglAMP C++ 'usb4704' south plugin
Arguments:
 help     - Display this help text
 clean    - Remove all the old versions saved in format .XXXX
 cleanall - Remove all the versions, including the last one
$

Building a Package

Finally, run the make_deb command:

$ ./make_deb
The package root directory is   : /home/ubuntu/source/foglamp-south-usb4704
The FogLAMP required version    : >=1.4
The package will be built in    : /home/ubuntu/source/foglamp-south-usb4704/packages/build
The architecture is set as      : x86_64
The package name is             : foglamp-south-usb4704-1.0.0-x86_64

Populating the package and updating version file...Done.
Building the new package...
dpkg-deb: building package 'foglamp-south-usb4704' in 'foglamp-south-usb4704-1.0.0-x86_64.deb'.
Building Complete.
$

Cleaning the Package Folder

Use the clean option to remove all the old packages and the files used to make the package.

Use the cleanall option to remove all the packages and the files used to make the package.

You can’t perform that action at this time.