Update YARD Stick One firmware

Update YARD Stick One firware

Roald Nefs

4 minute read

Today I received my YARD Stick One (Yet Another Radio Dongle) created by Great Scott Gadgets. The dongle can transmit and receive digital wireless signals at frequencies below 1GHz. The YARD Stick One is not a SDR, because the I/Q samples are directly demodulated by the chipset instead of send to the host over USB. The YARD Stick One therefore isn’t compatible with any SDR software, but you can use something called rfcat.

Rfcat allows the user to drive the YARD Stick One using Python and abstracts a lot if complexity. The YARD Stick One has rfcat pre-installed, with a USB bootloader to update the firmware. I’ve received the YARD Stick One with outdated firmware, so I wanted to update it before using it any further.

Note: I’m using Ubuntu 18.04 to update the firmware of my YARD Stick One!

Start by cloning the rfcat repository:

$ git clone https://github.com/atlas0fd00m/rfcat.git
$ cd rfcat

In order to allow non-root access to the YARD Stick One you will need to update your udev rules using the following commands:

$ sudo cp etc/udev/rules.d/20-rfcat.rules /etc/udev/rules.d
$ sudo udevadm control --reload-rules

From within the rfcat directory you can install the software by running the install script:

$ sudo python setup.py install

Once I started the interactive Python shell for rfcat I was greeted by the following error message:

$ rfcat -r
Traceback (most recent call last):
  File "/usr/local/bin/rfcat", line 8, in <module>
    from rflib import *
  File "/usr/local/lib/python2.7/dist-packages/rflib/__init__.py", line 2, in <module>
    from chipcon_nic import *
  File "/usr/local/lib/python2.7/dist-packages/rflib/chipcon_nic.py", line 4, in <module>
    import usb
ImportError: No module named usb

Install the missing dependencies:

$ sudo apt install python-usb libusb-1.0.0 sdcc

I was now able to start the Python interactive shell for rfcat and printed the YARD Stick One radio configuration by running the print d.reprRadioConfig() command.

$ rfcat -r
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
Error in resetup():Exception('No Dongle Found.  Please insert a RFCAT dongle.',)
No module named IPython.frontend.terminal.interactiveshell
'RfCat, the greatest thing since Frequency Hopping!'

Research Mode: enjoy the raw power of rflib

currently your environment has an object called "d" for dongle.  this is how
you interact with the rfcat dongle:
    >>> d.ping()
    >>> d.setFreq(433000000)
    >>> d.setMdmModulation(MOD_ASK_OOK)
    >>> d.makePktFLEN(250)
    >>> d.RFxmit("HALLO")
    >>> d.RFrecv()
    >>> print d.reprRadioConfig()


>>> print d.reprRadioConfig()

== Hardware ==
Dongle:              YARDSTICKONE
Firmware rev:        0348
Compiler:            Not found! Update needed!
Bootloader:          CC-Bootloader

== Software ==
rflib rev:           65535

...

Take note of the following message in de radio configuration:

Firmware rev: 0348 Compiler: Not found! Update needed!

The firmware seems to be outdated and my YARD Stick One came without compiler installed. I wanted to update my dongle before using in any further. In order to set in in bootloader mode I used the d.bootloader() command and the LEDs on the YARD Stick One started flashing.

$ rfcat -r
>>> d.bootloader()

In another terminal window I changed the directory to rfcat/firware and made sure the rfcat_bootloader command was in my path. This command is used to install the new firmware on the dongle.

$ cd rfcat/firmware
$ which rfcat_bootloader
/usr/local/bin/rfcat_bootloader

I issued the make installRfCatYS1CCBootloader command to update the firmware.

$ make installRfCatYS1CCBootloader

After checking the radio configuration of my YARD Stick One, the firmware seems to be updated.

$ rfcat -r
>>> print(d.reprRadioConfig())
== Hardware ==
Dongle:              YARDSTICKONE
Firmware rev:        5535
Compiler:            SDCCv350
Bootloader:          CC-Bootloader

== Software ==
rflib rev:           65535

...

RfCat, the greatest thing since Frequency Hopping!

comments powered by Disqus