M17-Project / rpi-interface

Raspberry Pi interface for Digital Voice modes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rpi-interface

Raspberry Pi interface for the M17 Project's Remote Radio Unit.

Command line arguments

-r reset the device
-i IPv4 address of the reflector
-c path to the configuration file

The -c argument followed by a path to the config text file is mandatory.

Config file structure

A sample config file is provided - default_cfg.txt. "PA_EN" pin is not used by every device (set it to any unused pin if it's not required).

Flashing the target device (CC1200 HAT)

Use the command below to flash the target device over UART (by default that's /dev/ttyAMA0). Make sure the overlay is set to dtoverlay=miniuart-bt and you have stm32flash installed.
You can set the overlay by editing the /boot/firmware/config.txt file (or /boot/config.txt for RPi Zero). This moves /dev/ttyAMA0 to where UART RX/TX pins are (GPIO15/14).

Flashing process can be initialized with the command below:
stm32flash -v -R -i "-20&-21&20,21,:-20,-21,21" -w CC1200_HAT-fw.bin /dev/ttyAMA0

Prepending the command above with sudo might sometimes be required.

NOTE: pin numbering might be different, check your values if echo "20" > /sys/class/gpio/export gives an error message.

About

Raspberry Pi interface for Digital Voice modes.

License:GNU General Public License v3.0


Languages

Language:C 99.5%Language:Makefile 0.5%