COINES allows users to evaluate sensors using the Bosch Sensortec Application Board. Sensor configuration and data readout can be easily done using the coinesAPI
from PC side using C (or) Python.
To overcome the limitations (Eg: inaccurate delays,etc.,) due to latencies in USB communication, some C examples can also be cross-compiled and run directly on the Application Board's microcontroller.
- Clone this repository
- Install GCC Toolchain and GNU Make
- Install USB drivers and libraries
- Windows - app_board_usb_driver.exe
- Linux -
libusb-dev
package andudev
rules- Debian based distros -
sudo apt install libusb-1.0-0-dev
- Red Hat based distros -
sudo yum install libusbx-devel
- Debian based distros -
- macOS -
brew install libusb
- Connect the Bosch Sensortec Application Board 2.0 (or) 3.0 to PC with any sensor shuttle mounted.
- Go to any example and run
make
- Run the compiled binary
- Update to the latest DD2.0 firmware ( v3.1 and above )
- Install
dfu-util
- Windows - Not required.Available at
tools/usb-dfu
- Linux
- Debian based distros -
sudo apt install dfu-util
- Red Hat based distros -
sudo yum instal dfu-util
- Debian based distros -
- macOS -
brew install dfu-util
- Windows - Not required.Available at
- Get GNU Arm Embedded Toolchain, extract and add to PATH
- Go to any example and run
make TARGET=MCU_APP20 download
(or)make TARGET=MCU_APP30 download
- Open Application Board USB serial port with any serial terminal program (Ensure DTR signal is asserted)
- Install Python 3.x
- Install
coinespy
by using any of the below command set.$ pip install coinespy
$ cd coines-api/pc/python $ python setup.py install
- Run examples in
python-examples/
- For creating new examples, see
examples/c/template
- Use
examples/c/template/Makefile
as a reference for including additional C, Assembly, C++ files and binary libraries.