diff --git a/lora/rak2287_spi/install.sh b/lora/rak2287_spi/install.sh index 8836832..d63eb89 100755 --- a/lora/rak2287_spi/install.sh +++ b/lora/rak2287_spi/install.sh @@ -49,6 +49,7 @@ cp $INSTALL_DIR/sx1302_hal-1.0.5/packet_forwarder $INSTALL_DIR/ -rf cp $INSTALL_DIR/sx1302_hal-1.0.5/libloragw $INSTALL_DIR/lora_gateway -rf if [ -f $SCRIPT_DIR/../../lte/lte_test ]; then cp $SCRIPT_DIR/../../lte/lte_test $INSTALL_DIR/lora_gateway/ + cp $SCRIPT_DIR/reset_lgw.sh $INSTALL_DIR/lora_gateway/ fi mv $INSTALL_DIR/packet_forwarder/lora_pkt_fwd $INSTALL_DIR/packet_forwarder/lora_pkt_fwd_bak mkdir -p $INSTALL_DIR/packet_forwarder/lora_pkt_fwd diff --git a/lora/rak2287_spi/test_loragw_gps_uart.c b/lora/rak2287_spi/test_loragw_gps_uart.c index 5c8900d..df9627b 100755 --- a/lora/rak2287_spi/test_loragw_gps_uart.c +++ b/lora/rak2287_spi/test_loragw_gps_uart.c @@ -260,7 +260,7 @@ int main(int argc, char **argv) } /* Open and configure GPS */ - i = lgw_gps_enable("/dev/ttyS0", "ubx7", 0, &gps_tty_dev); + i = lgw_gps_enable("/dev/ttyAMA0", "ubx7", 0, &gps_tty_dev); if (i != LGW_GPS_SUCCESS) { printf("ERROR: Failed to enable GPS\n"); exit(EXIT_FAILURE);