Note: Support of FTDI is experimental and not guaranteed, as Semtech has dropped FTDI support for the Hardware Abstraction Layer. macOS builds should only be used for development purposes.
Building the packet forwarder on a FTDI environment, with a USB connection with the concentrator, requires the libmpsse
library.
brew install libftdi
orapt install libftdi
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libmpsse/libmpsse-1.3.tar.gz
tar -xvzf libmpsse-1.3.tar.gz
cd libmpsse-1.3/src
./configure --disable-python && make && sudo make install
Make sure you have installed and configured your Go environment.
$ go get -u github.com/TheThingsNetwork/packet_forwarder
$ cd $GOPATH/src/github.com/TheThingsNetwork/packet_forwarder
$ make dev-deps
$ make deps
# If you are using Linux:
$ CFG_SPI=ftdi PLATFORM=imst_rpi make build
# If you are using macOS:
$ CFG_SPI=mac PLATFORM=imst_rpi make build
The build will then be available in the release/
folder.
On a macOS environment, you will need, at every reboot, to unload the native Apple Driver for FTDI devices: sudo kextunload -b com.apple.driver.AppleUSBFTDI
. If you are unsure of the name of the driver, you can look for it with the command kextstat | grep FTDI
.