How it’s Made

To get Kosters Shairport-Sync Implementation I have used the following:


  • Raspberry Pi 3 B Starterkit (   (about 58 euro at the time of writing)
  • Behringer UCA 202 Soundcard (  (About 27 euro at the time of writing)


  • IQaudIO Shairport-Sync Image (  (free, thanks guys!)
  • Win32DiskImager ( (free, thanks guys!)

First I assembled the Raspberry (put the Raspberry in it’s case and close the case) and connected the USB-Audiocard.

Then I wrote the image to the SD-card using Win32Diskimager.

After booting, I changed the rights on the following files to enable the user ‘pi’ to write to these files:

  • /etc/wpa_supplicant/wpa_supplicant.conf
  • /etc/shairport-sync.conf

I created a LSB-enabled bootscript that does the following:

  • Check if there is a file reboot.cmd -> If there is, reboot the raspberry with the ‘sudo reboot’ command.
  • Check if there is a file wifiscan.cmd -> If there is, scan for wifi-networks using the ‘sudo iwlist wlan0 scan’ and output the info to a file wifi.list

After that I have installed an FTP-server on the raspberry and made it listen to port 35643 (randomly chosen). The password for the user pi was changed to a long password to prevent evil takeover of your home-speakers 😉


After that I have created a small program using PureBasic that does the following:


  1. Get the IP-address(es) of the computer it is running on and scan the network using the first 3 characters of the IP-Address (so IP-address would result in a scan of all IP-addresses from to
  2. If port 35643 is open (and connected within 100ms) open a FTP-connection to the raspberry and download the files /etc/shairport-sync.conf and /etc/wpa_supplicant/wpa_supplicant.conf
  3. Read the data (Airport-name and Wifi-Networkinformation) from these files and show on the screen

The screen can look like this:

The connected KSSI-nodes can now be reconfigured quite simply;

  1. Click on the node
  2. Change the PlayerName (into e.g. Toilet)
  3. If you want to connect it to Wifi, click ‘Scan’ and (after scanning) select the correct Wifi-network and enter the Wifi Password
  4. Click ‘Save settings’

The program will now log into the raspberry and change the configuration and reboot the device. The new settings apply.