Skip to content

Non USA pump settings

John Males edited this page Apr 16, 2016 · 7 revisions

Introduction

This script may help you with a non-USA pump (for the EU or for any pump that has an extended serial number ending with '-WW'). Australian pumps use US settings.

Run this every loop before mmtune.

Creating the File

Create the file as follows - the nano command will place you in a text editor where you can save the file:

sudo nano /usr/local/bin/subg-ww-radio-parameters
sudo chmod 700 /usr/local/bin/subg-ww-radio-parameters
sudo chown root:root /usr/local/bin/subg-ww-radio-parameters

File contents:

#!/bin/bash

# Set this to the serial port that your device is on: eg /dev/ttyACM0 or /dev/ttyMFD1
SERIAL_PORT=/dev/ttyACM0

# Set this to the directory where you've run this. By default:
#     cd ~
#     git clone https://github.com/ps2/subg_rfspy.git
#
SUBG_RFSPY_DIR=~/subg_rfspy

# If you're on an ERF, set this to 0:
export RFSPY_RTSCTS=0

################################################################################
set -e
set -x

cd $SUBG_RFSPY_DIR/tools

# Reset to defaults
./reset.py $SERIAL_PORT

sleep 2

./change_setting.py $SERIAL_PORT 0x06 0x00          # CHANNR

sleep 0.5

./change_setting.py $SERIAL_PORT 0x0C 0x59          # MDMCFG4
sleep 0.5
./change_setting.py $SERIAL_PORT 0x0D 0x66          # MDMCFG3
sleep 0.5
./change_setting.py $SERIAL_PORT 0x0E 0x33          # MDMCFG2
sleep 0.5
./change_setting.py $SERIAL_PORT 0x0F 0x62          # MDMCFG1
sleep 0.5
./change_setting.py $SERIAL_PORT 0x10 0x1A          # MDMCFG0
sleep 0.5

./change_setting.py $SERIAL_PORT 0x11 0x13          # DEVIATN
sleep 0.5

./change_setting.py $SERIAL_PORT 0x09 0x24          # FREQ2
sleep 0.5
./change_setting.py $SERIAL_PORT 0x0A 0x2E          # FREQ1
sleep 0.5
./change_setting.py $SERIAL_PORT 0x0B 0x38          # FREQ0
sleep 0.5

exit 0