-
Notifications
You must be signed in to change notification settings - Fork 47
TI USB Stick over Serial
- Use uart1_alt2_RILEYLINK_US_STDLOC.hex from https://github.com/ps2/subg_rfspy/releases
- Follow the instructions at https://github.com/oskarpearson/mmeowlink/wiki/TI-USB-stick#installation-steps for the firmware install.
Note: you likely do not want to desolder the debug header from the TI stick as show in this picture. Instead, it is much simpler to cut off one end of a ribbon cable and solder that to the Intel breakout board. That way you can simply unplug the ribbon cable from the TI stick if you want to flash a new version of subg_rfspy, use it in another rig (perhaps over USB), etc. The only reason to desolder the header is if you need the absolutely smallest rig possible.
Use the instructions found at https://github.com/mholling/rpirtscts to obtain the rpirtscts tool.
edit file rpirtscts.c:
change in line 50 from:
if (sscanf(string, "bcm2708.boardrev=%i", &result))
to support newer raspi editions:
if (sscanf(string, "bcm2709.boardrev=%i", &result))
After compilation do:
sudo cp rpirtscts /usr/bin
sudo chown root /usr/bin/rpirtscts
sudo chmod 4755 /usr/bin/rpirtscts
If you now enter rpirtscts on
you should see an Output like:
Pi 2 Model B Rev 1.1 with 40 pin GPIO header detected
Enabling CTS0 and RTS0 on GPIOs 16 and 17
add those two lines to your contab:
@reboot rpirtscts on
@reboot stty -F /dev/ttyAMA0 crtscts
Don`t forget to nable uart in raspi-config and to change /boot/cmdline.txt
to not use the uart as console (delete serial0 part)!
Add user dpi to dialaut group:
sudo usermod -a -G dialout pi
Only wire the TI-Stick to the pi AFTER you did the config changes and shutdown your pi!
Wire your pi: Example pinout can be found here: http://i-programmer.info/programming/cc/10027-serial-c-and-the-raspberry-pi.html From Ti to Raspi:
- Pin 1 (black) goes to Pin 6 (GND)
- Pin 2 (red) goes to Pin 1 (3.3v)
- Pin 5 (green) goes to Pin 11 (GPIO17 now RTS)
- Pin 6 (lila) goes to Pin 36 (GPIO16 now DTS)
- Pin 8 (blue) goes to Pin 10 (RX)
- Pin 10 (orange) goes to Pin 8 (TX)
- Pin 1 (black) is GND and connects to ground
- Pin 2 (red) is + and connects to 3.3v
- Pin 3 is DC and is used to program firmware (cc-debugger connection)
- Pin 4 is DD and is used to program firmware (cc-debugger connection)
- Pin 5 (orange) is known as CSn (SPI Chip Select) and connects to UART RTS
- Pin 6 (pink) is SCLK (SPI Clock) and connects to UART CTS
- Pin 7 is RESET and can be used to get a locked up CC1111 working again
- Pin 8 (blue) is MOSI (SPI Data Out) and connect to UART RX
- Pin 9 is also +, but only needing for programming firmware
- Pin 10 (green) is MISO (SPI Data In) and connects to UART TX
October 2016 update: If you subsequently get an error when you run mmtune indicating that your version of subg_rfspy version (0.9) is not supported, edit the file /home/edison/mmeowlink-source/mmeowlink/vendors/subg_rfspy_link.py to include version 0.9