This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:loraloc [2016/04/15 15:48] mch created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LoRaLoc modem ====== | ||
- | |||
- | |||
- | ===== HALv2 (Loraloc / sx1301 array) ===== | ||
- | |||
- | The HAL provided by Kerlink is based on new Semtech HAL **lora_gateway_v2**. \\ | ||
- | Main modifications aim to adapt HAL to Kerlink boards: | ||
- | * Multi-board support | ||
- | * Calibration parameters can now be parsed as an overload config file (similarly to local_conf.json) named /tmp/calib_loraloc.json | ||
- | |||
- | |||
- | As Loraloc architecture is much more complex, this HAL is quite different from HAL v1. \\ | ||
- | |||
- | ==== Compilation ==== | ||
- | |||
- | To compile it, please use following commands: | ||
- | <code bash> | ||
- | cd lora_gateway_v2 | ||
- | source /opt/toolchains/loraV2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
- | make SPI_HOST=imx | ||
- | </code> | ||
- | |||
- | To simplify deployment on board, Kerlink provides a script called **deploy.sh**. \\ | ||
- | This tool script make all tools and prepare a directory including them. | ||
- | |||
- | ==== Usage ==== | ||
- | |||
- | The main modification in tools since HALv1 is the '-d' argument. \\ | ||
- | As this HAL is mainly designed to handle multiple This optional argument allows to specify which spidevice to use. | ||
- | |||
- | Kerlink provides a automatic discovery script at startup to handle correctly plugged boards. | ||
- | |||
- | By default, if a WAN module is provided, loraloc modules are mapped from slot 2. | ||
- | |||
- | So to use tools with this Loraloc module, please specify on tool's command-line **-d /dev/slot/2/spidev0**. \\ | ||
- | For example: | ||
- | <code bash> | ||
- | ./pkt_logger -d /dev/slot/2/spidev0 | ||
- | </code> | ||