Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 716 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 716 Bytes

ca-hub-rpi

Raspberry Pi (v3) Hub Service for USB-to-Bluetooth via ZeroMQ Licensed to CardioArtLab (Academic works)

Installation

  • clone project at /opt
$ cd /opt
  • install systemd service and udev
$ ./install.sh
$ systemctl enable ca-hub-rpi-init
$ systemctl enable ca-hub-rpi
$ systemctl start ca-hub-rpi
  • Due to libusb1 use Python2 for usb2mq.py
  • use Python3 for zmq2bluetooth.py

Functions

  • ca-hub-rpi-init enable inquiry scan
  • When USB bus=1 address=2 plug in, systemd will start ca-hub-rpi@1:2
  • Main service logging
$ journalctl -u ca-hub-rpi -r | head -20
$ journalctl -u ca-hub-rpi@[bus]:[address] -r | head -20
  • Bluetooth config
$ hciconfig