-
Notifications
You must be signed in to change notification settings - Fork 47
Non USA pump settings
If you're using a 'WW' pump, make sure that your 'pump.ini' file includes the line radio_locale = WW
. Additionally, if you're using a Medtronic CGM, you will need to add that text to cgm.ini too.
Note that if you're using a recent version of the oref0 setup script, it should do this for you automatically.
The below 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.
Pumps have varying radio characteristics. What works for one pump may not work for others. The default radio firmware should work for everyone, but if you have poor transmission range, you can try the following script.
Run this every loop before mmtune.
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
#!/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