How to Upload Firmware for Ue Boom

Homebridge UE Blast (Speaker Plugin)

This is an accessory plugin for Homebridge allowing to turn on and off a UE Nail speaker and integrating it with HomeKit.

Installation

Homebridge

First, install Homebridge and gatttool via Bluez (you as well need Node.js installed):

sudo npm install -k homebridge sudo apt-get install bluez

And then install this plugin:

sudo npm install -g homebridge-ueboom

Homebridge Docker

In case you're using Homebridge Docker, add the following line to your container startup script:

apk add --no-cache bluez-deprecated

Then install this plugin:

sudo npm install -one thousand homebridge-ueboom

Discover out the MAC address

To get the plugin working you have to provide the post-obit parameters:

  • speaker: MAC address of the speaker
  • host: MAC address of the music source device (iPhone, ...)

In example you lot don't know how to retrieve the MAC address of the speaker:

  1. Pair the speaker to your MacBook
  2. Click on Bluetooth icon in the Menu Bar while pressing ⌥ Pick
  3. Select the speaker of which you demand the accost
  4. Write down the MAC address

To retrieve the MAC address of the host, it strictly depends on the device you're using. If you're playing music from an iPhone/iPad then you can detect it in Settings > General > About > Bluetooth.

Configuration

Create a ~/.homebridge/config.json file (change name, speaker and host equally necessary):

{              "bridge": {              "proper noun":                              "Homebridge"              ,              "username":                              "E5:B9:0D:64:1E:CB"              ,              "port":              51826,              "pin":                              "031-45-154"                            },              "description":                              "This is an instance configuration file with homebridge-ueboom plugin."              ,              "accessories": [     {              "accompaniment":                              "UEBoomSpeaker"              ,              "name":                              "Bath Speaker"              ,              "speaker":                              "C0:28:8D:45:28:55"              ,              "host":                              "4098ADA356C4"                            }   ],              "platforms": [] }

Breaking change: in case you're transitioning from v0.0.1 or v0.0.ii, update your config file with the newly requested variables!

How does information technology work

Since more than one person asked me how this works and that the speaker doesn't connect to the Pi after being turned on, I thought I could spend a couple of words well-nigh.

This is the command that does the whole piece of work, everything else is just average code for the homebridge plugin:

gatttool -i hci0 -b              $SPEAKER_ADDRESS              --char-write-req -a 0x0003 -n              ${HOST_ADDRESS}01

The gatttool command turns the speaker on but doesn't acquaintance the speaker with the Raspberry Pi. The speaker connects to the host device (in my case my iPhone).

I don't know the exact specifications so this is pure speculation: the speaker itself has the usual Bluetooth 4.0 module that allows to stream music, in add-on to that there's too a BLE (Bluetooth Low Energy) module that for its own nature is always on and allows to plow the speaker on and off remotely (within range). The simply reason why I'chiliad not certain this is the real reason is that the two modules would probably have two carve up MAC addresses, and from what I've observed there'south simply 1 single address available.

How I did it

I knew that the speaker could be turned on remotely (within range) using the proprietary Ultimate Ears app, and it was obvious that the bluetooth command was sent by the application itself.

I first installed Apple tree'due south Bluetooth logging profile on my iPhone, then connected information technology to the Mac via USB and used PacketLogger to trace the packages sent from the phone (specifically ATT Send type). By opening the UE app and tapping on the remote power button in it I was able to sniff the chat between the telephone and the speaker as shown in this screenshot.

packetLoggerScreenshot

From here I retrieved the MAC address of the speaker (as described above) and used gatttool to perform a write asking, and Blast I can turn on the speaker from my control line.

Contributors

Special cheers get to:

  • Newton Barbosa, for noticing that Value is the host MAC address without semicolons followed by 01.
  • Donavan Becker, for adding the easy config for onzu/homebridge-config-ui-x.
  • Martin Kuhl, for figuring out how to plough the speaker off by replacing the final 01 with 02.

pazhards1976.blogspot.com

Source: https://github.com/alessandroaime/homebridge-ueboom

Related Posts

0 Response to "How to Upload Firmware for Ue Boom"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel