There are two microprocessors on the RileyLink board; a ble113 module, and a cc1110. Each needs it's own firmware.
For the cc1110, you should install the latest subg_rfspy firmware.
- Use spi1_alt2_RILEYLINK_US_STDLOC.hex if you are in the USA/Australasia
- Use spi1_alt2_RILEYLINK_WW_STDLOC.hex if you are elsewhere (the pump serial printed on the back of the device will end with 'WW' if you need to use this)
BLE113 Bluetooth Module
For the ble113, you should install the firmware in the ble113_rfspy subdirectory. Using the BLE Update tool (details below).
- Install the Bluetooth Firmware Update and the Bluetooth SDK tools as per the "Prerequisites" section below.
- Install SmartRF Studio as below, so that you have USB drivers for the CC-Debugger.
- Go to https://github.com/ps2/rileylink and click the "Clone or download" option.
- Select "Download ZIP"
- Extract the Zip in your download directory.
- Double click on the Project file in the ble113_rfspy folder.
- If you receive the message "Unable to automatically select BGBuild":
- Click BGBuild menu item, and choose "Manually Select"
- Choose My Computer -> C: -> Bluegiga -> blue-1.4.2-130 (or similar) -> bin -> bgbuild
If you want to completely disable the bluetooth part of the RileyLink, you can use the 'ble113_disabled' firmware. This is normally only done when you are using the RileyLink over serial, using it as a mmeowlink radio.
If you can, use a pre-built firmware from subg_rfspy release list on GitHub. You can then use the following tools to write the firmware:
- For Windows: cc-debugger
- For Linux: cc-tool. See cc-tool for instructions on installation and usage.
Windows machine (or VM) with:
- SmartRF Studio - tested with 2.3.1 from http://www.ti.com/tool/smartrftm-studio (Make sure to 'Extract All' if prompted at install/unzip time)
- "BLE Update Tool v1.3.6 (Windows XP,7,8 and 10)" (or above) AND "Bluetooth Smart Software and SDK v.1.4.2" applications from the ble113 product page
Note that you will need to sign up for an accounts to download both installers.
- If you receive the message "CebalChip Object has no attribute Reset" when writing bluetooth firmware, then check that you've not accidentally plugged into the CC1110 port. Also check that you've connected the CC-Debugger correctly.