Skip to content

Commit

Permalink
Correct iWave GPS documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hefroy committed Dec 29, 2023
1 parent af6c0ff commit c086db5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
13 changes: 8 additions & 5 deletions docs/iwave-g26-tutorial/iwave-g26-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,17 @@ Setting up the 4G LTE modem inside the G26 TCU is dependent on your SIM card ser
```bash
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
#12v register
# 12v register
echo 137 > /sys/class/gpio/export
#Battery Status
# Battery Status
echo 118 > /sys/class/gpio/export
#Battery Charge Enable
echo 120 > /sys/class/gpio/export
#LED
# LED
echo 73 > /sys/class/gpio/export
#Battery Power Good
# Battery Power Good
echo 64 > /sys/class/gpio/export
#Modem
# Modem
echo 90 > /sys/class/gpio/export
echo 78 > /sys/class/gpio/export
echo 88 > /sys/class/gpio/export
Expand Down Expand Up @@ -282,6 +282,9 @@ Setting up the 4G LTE modem inside the G26 TCU is dependent on your SIM card ser
insmod /iwtest/kernel-module/ci_hdrc_imx.ko
insmod /iwtest/kernel-module/u_serial.ko
sleep 20
# Enable the GPS:
echo "AT+QGPS=1" > /dev/ttyUSB2
# Connect to LTE:
/usr/sbin/pppd call gprs_4g nodetach
```

Expand Down
13 changes: 2 additions & 11 deletions docs/iwave-g26-tutorial/iwave-gps-setup.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# IWave GPS setup

Setup the iWave device like described in the [iwave-g26-tutorial](iwave-g26-tutorial.md) To enable
the GPS output, open the file `/etc/ppp/chat/gprs` and add the following (for example above the
AT+CPIN line):

```
# Enable GPS
AT+QGPS=1
```

To apply the changes you can use `systemctl restart lte`. After that you should see NMEA formatted
ASCII data if you do `cat < /dev/ttyUSB1`
Setup the iWave device as described in the [iwave-g26-tutorial](iwave-g26-tutorial.md), then check
that you can see NMEA formatted ASCII data when you run `cat < /dev/ttyUSB1`.

The required decoder manifest changes are explained in
[custom-data-source](../custom-data-source.md). If you are using the console to create the decoder
Expand Down

0 comments on commit c086db5

Please sign in to comment.