Skip to content

TI USB Stick over Serial

Sandra Keßler edited this page Feb 4, 2017 · 12 revisions

Connect via serial

  1. Use uart1_alt2_RILEYLINK_US_STDLOC.hex from https://github.com/ps2/subg_rfspy/releases
  2. Follow the instructions at https://github.com/oskarpearson/mmeowlink/wiki/TI-USB-stick#installation-steps for the firmware install.

Wiring Diagrams

Edison

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.

Raspberry Pi (with full 40 Pin GPIO Header)

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:

  1. Pin 1 (black) goes to Pin 6 (GND)
  2. Pin 2 (red) goes to Pin 1 (3.3v)
  3. Pin 5 (green) goes to Pin 11 (GPIO17 now RTS)
  4. Pin 6 (lila) goes to Pin 36 (GPIO16 now DTS)
  5. Pin 8 (blue) goes to Pin 10 (RX)
  6. Pin 10 (orange) goes to Pin 8 (TX)

Pinout of TICC1111

  1. Pin 1 (black) is GND and connects to ground
  2. Pin 2 (red) is + and connects to 3.3v
  3. Pin 3 is DC and is used to program firmware (cc-debugger connection)
  4. Pin 4 is DD and is used to program firmware (cc-debugger connection)
  5. Pin 5 (orange) is known as CSn (SPI Chip Select) and connects to UART RTS
  6. Pin 6 (pink) is SCLK (SPI Clock) and connects to UART CTS
  7. Pin 7 is RESET and can be used to get a locked up CC1111 working again
  8. Pin 8 (blue) is MOSI (SPI Data Out) and connect to UART RX
  9. Pin 9 is also +, but only needing for programming firmware
  10. 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