Weekly Sugr Update: Adding Songs to Your Music Speaker Made Easy!

Hi Sugr Users! Happy Weekend! Enjoy it with some new music from your personal library uploaded onto your Sugr Cube.  Before you transfer, make sure you’ve downloaded our newest app from iTunes, Google Play, or scan at http://fir.im/sugr, and firmware (use your Sugr Cube app to update the Cube’s firmware.) How to Transfer Music: From Computer to Cube 1. Open the Sugr Cube app.   2. Tap the bottom left button in the Cube Music menu to show the playlist. 3a. If Cube doesn’t have any local music, tap the button “Import from computer”; 3b. If the playlist is not empty, then find the “From Web” function from the top right icon. 4. Copy the address for transferring that appears in the green text field. 5. Enter this address into your computer’s browser (Chrome/Firefox/IE, etc.). This will open the file upload page. Simply drag and drop your favorite music into the Cube icon directly, or click the “Upload” button to select music from file. 6. Choose the songs you want to upload. After you’ve selected all the songs you’d like to add, click the “Choose” button. 7. The uploading progress will be shown instantly. 8. When the uploading progress is done, the Cube Music playlist in the app will be refreshed with your music, ready to be enjoyed. Have an amazing weekend and enjoy your Sugr Cube music speakers! And remember: great music is just a touch away 😀...

Three steps to update the software of your Cube

Don’t know how to update? No worries! It’s pretty easy, only three steps to go! First, after opening the app of Sugr Cube, click the Cube icon on the top-left hand side, which is just under the signal icon. If you can see the little red spot, it means that there is a new version for update.   Second, click the bar of “Firmware”. The number on right side is the version of your current software. Click it!   Third, choose “Server” after clicking “Firmware”. After that, the only thing you need to do is only waiting!   All done? Congrats!! The only thing you need to do at present is enjoying your music with Sugr Cube!...

How to control airplay on client side

Most of the times airplay client just streaming audio to sound card. What if we want to skip the current playing song without any operations on iTunes ? DACP (Digital Audio Control Protocol) DACP solved this problem. Digital Audio Control Protocol (DACP) is a protocol used by the iTunes and other audio player and server applications on Mac, Windows and Linux computers. Acording to Unofficial AirPlay Protocol Specification. Airplay protocol includes a subset of DACP. Send a HTTP request to iTunes DACP Server can pause the current playing song. GET /ctrl-int/1/pause HTTP/1.1 Host: starlight.local. Active-Remote: 1986535575 But, we need to find out the exact port of iTunes DACP Server and the value of Active-Remote. They are hided in the shairport RTSP request header. RTSP is the protocol used in airplay audio streaming. Airplay RTSP headers Run shairport with level 2 verbose mode, then you’ll get all RTSP headers dumped. “` $ ./shairport -vv …. received request: SET_PARAMETER rtsp://192.168.1.102/9487978813838695974 RTSP/1.0 RTP-Info: rtptime=2141729804 CSeq: 7 DACP-ID: 3F66DB0A16A7EBD6 Active-Remote: 2319864219 Content-Type: text/parameters Content-Length: 43 …. “` About 10~20 RTSP headers will be dumped in first few seconds airplay get connected. Every RTSP request contains DACP-ID and Active-Remote fields. These fields will be used for DACP controlling later. mDNS mDNS is a service discovery protocol (SDP) like uPNP. Apple’s Bonjour is based on mDNS. Both iTunes and shairport uses mDNS to publish their services. When iTunes airplay device list menu is expanded, it searchs all airplay clients by mDNS discovery. When airplay is streaming, iTunes’ DACP service is published. Avahi is an opensource mDNS implement. Use avahi-browse command can find all shairport clients...