Libratone Zipp (v1) network API
This is an attempt to document the network protocol used to control Libratone Zipp (v1) WiFi speakers, e.g. by the Libratone Android app (com.libratone, version 8.3.1).
The main control protocol is a binary UDP protocol ("LUCI"), not HTTP. HTTP is only used for a status page, UPnP and the initial network setup / firmware update.
Devices
There are three generations of the Libratone Zipp: the original Zipp from 2012 (later renamed "Zipp Classic"), the "ZIPP" from 2015 (called Zipp v1 in this documentation) and the Zipp 2 from 2018. The table also lists the smaller Zipp Mini (2015) and Zipp Mini 2 (2018), and related Libratone models.
Model |
Name |
Released |
Model name |
FCC ID |
Notes |
Links |
|---|---|---|---|---|---|---|
LT100 |
Beat |
2010 |
Y2SBEATLT100 |
Uses a proprietary wireless transmitter, not Wi-Fi. |
||
LT110 |
Live |
2011 |
Not tested. |
|||
LT210 |
Lounge |
2011 |
Not tested. |
|||
LT300 |
Zipp Classic |
2012 |
Not tested. The original Zipp, sold as "Zipp" and renamed to "Zipp Classic" when the LTH300 took over the name "ZIPP" in 2015. |
|||
LTH300 |
Zipp v1 |
2015 |
Libratone Zipp |
Y2SLTH300 |
The speaker this documentation was tested with (firmware 879). The UPnP description reports modelName LTH and modelNumber 300. |
|
LTH200 |
Zipp Mini |
2015 |
Libratone ZippMini |
Y2SLTH200 |
Not tested. |
|
LTH310 |
Zipp v2 |
2018 |
Y2SLTH310 |
Not tested. Announces itself with DeviceType: 310 in the Discovery messages. |
||
LTH210 |
Zipp Mini 2 |
2018 |
Y2SLTH210 |
Not tested. |
"Source: tested with Zipp v1" in the command descriptions refers to an LTH300.
API basics
Overview
A Zipp is controlled by sending small UDP datagrams to it. It answers (and sends state changes) via UDP datagrams to the controlling host. All of that happens inside the local network; there is no cloud involved for the basic control.
Ports
Device |
Port |
Protocol |
Purpose |
|---|---|---|---|
Speaker |
7777 |
UDP |
Commands to the speaker |
Client |
7778 |
UDP |
Replies to commands from the speaker |
Client |
3333 |
UDP |
Notifications from the speaker |
Speaker |
3334 |
UDP |
Client acknowledges notifications |
Client+Speaker |
1800 |
UDP |
Discovery (239.255.255.250:1800) |
Speaker |
80 |
TCP |
Web page /cgi?Overview |
Speaker |
49152 |
TCP |
UPnP description.xml |
Replies are not sent back to the source port of the request. The speaker always sends replies to port 7778 of the requesting IP address, and notifications to port 3333. A client thus has to listen on 7778 and 3333.
Requests may be sent from any source port.
The speaker needs to know the IP address of the client to be able to send replies. The Android app sends its first command and the speaker remembers the sender, see Registration.
Typical communication
Find the speaker with Discovery (or use a fixed IP).
Send fetch packets to speaker:7777, e.g. for volume, name, play state.
Read the replies on 7778.
Listen on 3333 for notifications, and acknowledge them on speaker:3334.
Send set packets to speaker:7777 to change settings. The speaker confirms the change with a reply on 7778 and/or a notification on 3333.
Android app implementation
com.libratone.v3.luci.LUCIControl sends commands to port 7777 (SendCommand/SendLUCICommand), acknowledgements to port 3334 (SendPacket/SendRespCommand), and runs a ServerThread on 3333. com.libratone.v3.luci.UdpMonitor handles the multicast discovery on 1800.
Unanswered requests are re-sent by the app after a timeout (LUCIControl.manageSentPacket), UDP being unreliable. The random 16 bit value in the packet header (see Packet format) is used to match replies to requests there.
Packet format
All commands, replies and notifications on ports 7777, 7778, 3333 and 3334 use the same packet structure ("LUCI packet", com.libratone.v3.luci.LUCIPacket in the app). All multi-byte numbers in the header are big endian.
Header (10 bytes)
Offset |
Length |
Content |
|---|---|---|
0 |
2 |
Remote ID, always 0xAAAA (43690) |
2 |
1 |
Command type, see below |
3 |
2 |
Command ID, e.g. 0x0040 (64) for volume |
5 |
1 |
Command status, see below |
6 |
2 |
"CRC", not a checksum. The app puts a random number between 1 and 65535 here. The speaker copies the value into its reply, so it can be used to match replies to requests. Notifications have 0x0000. |
8 |
2 |
Length of the data section |
10 |
n |
Data |
Packets from the speaker have an exact length field: len(packet) == 10 + data_length.
The speaker is tolerant with requests (tested with a Zipp v1):
The remote ID is not checked; 00 00 or any other value works. The reply contains the remote ID of the request.
Any "CRC" value works, also 0x0000. The reply contains the same value.
The status byte of a request is ignored.
The length field of a request is ignored: the speaker uses all bytes after the header as data. Data in a fetch request is ignored. A fetch without the length field (8 bytes) is answered, too.
The data is almost always printable ASCII or UTF-8 text: numbers are sent as decimal strings ("64", not byte 0x40), flags are the characters "0" and "1", structured data is JSON. Exceptions are documented per command.
Command type
Value |
Name |
Meaning |
|---|---|---|
1 |
fetch |
Request the current value. The data section is empty. |
2 |
set |
Change a value. |
Requests with other types (e.g. 0 or 3) are not answered.
The speaker uses the type of the request in its reply:
The reply to a fetch has type 1 and contains the value.
The reply to a set has type 2 and no data. The new value is sent as notification to port 3333.
Notifications have type 2, except for the player info (278), which arrives with type 1.
The app code mentions further values (e.g. 3, 5) in LSSDPNode.fetch()/set(), but these select the transport (USB, Bluetooth, GAIA/BLE for other speaker families), not the UDP packet type.
Command status
Requests are sent with status 0. Replies from the speaker on port 7778 carry a status:
Value |
Meaning |
|---|---|
1 |
OK |
2 |
Unknown/unsupported command. Data is empty. Also sent for every unknown ID, e.g. 9999. |
3 |
Unknown. Seen for the firmware update command (65) after a set with data 2 (check for an update), see Firmware update. |
4 |
No data available. Seen for the current source (10) before anything was played since boot, and for a fetch of the set-only stereo type (512). |
Notifications on port 3333 have status 0 or 1; there seems to be no difference in meaning.
Command ID
The same ID is used for fetch, set and the reply. There are some exceptions, e.g. the player info (set: 277, fetch: 278) or the voicing (set: 518, fetch: 516). Those are noted at the commands.
Examples
Set volume to 50 % (type=2, command=64, data "50"):
aa aa 02 00 40 00 12 34 00 02 35 30
Reply (type=2, status=1, same CRC, no data):
aa aa 02 00 40 01 12 34 00 00
Notification on port 3333 (status=1, CRC=0, data "50"):
aa aa 02 00 40 01 00 00 00 02 35 30
Fetch the speaker name (type=1, command=90):
aa aa 01 00 5a 00 12 34 00 00
Reply with the name Zipp (type=1, status=1):
aa aa 01 00 5a 01 12 34 00 04 5a 69 70 70
Reply to an unknown command 9999 (status=2):
aa aa 01 27 0f 02 12 34 00 00
Note that the Loxone wiki shows the same commands with 00 00 instead of aa aa at the start. This works, because the speaker does not check the remote ID.
Common data formats
- bool
The ASCII characters "1" (true) and "0" (false).
- number
Decimal number as ASCII string, e.g. "100". No leading zeros are required, although the Loxone wiki shows two digit values for volumes below 10 ("05"). Both work; the speaker itself sends numbers without leading zeros ("5").
- json
UTF-8 encoded JSON, not newline-terminated.
- voicingId
Identifier of a sound profile, e.g. V100. See Equalizer profile.
- zoneId / linkId
Name of a multi-room group, e.g. LINK ZippMiniOne_xxx (see Discovery).
Replies and notifications carry the same data format as set requests unless noted otherwise.
UDP is unreliable and the speaker may not answer fetch commands it does not support, so clients should use timeouts and retries.
Discovery
Speakers announce themselves with a SSDP-like protocol on the multicast group 239.255.255.250, but on port 1800 instead of the standard 1900.
Search request
Clients send a datagram with the text M-SEARCH * HTTP/1.1, followed by \r\n, to 239.255.255.250:1800. Further headers are not required. (The Android app builds the first line from a version string, HTTP/1.2 or HTTP/1.1, followed by HOST: 239.255.255.250:1800 and PROTOCOL:Version 1.0.)
Tested with a Zipp v1:
Without the line ending (M-SEARCH * HTTP/1.1 only), the speaker did not answer.
HTTP/1.1 and HTTP/1.2 both work, with or without the headers.
A search sent directly to the speaker (unicast to port 1800) is answered, too.
Other text is ignored.
The reply of the speaker is an ssdp-alive NOTIFY message as shown below. A Zipp 1 sends it four times to the multicast group (twice from each of two source ports), 0.5 to 3 seconds after the search. Once a search was not answered at all, so clients should repeat it. Lines end with \r\n. The client socket must be bound to port 1800 to see it (libratone-rs binds its search socket to 1800 with SO_REUSEPORT).
Announcements
Speakers also send the same message unsolicited when they boot up, change state (e.g. group membership, name) and from time to time.
A Zipp 1 (firmware 879) sends an ssdp-alive announcement every 10 seconds. Each announcement is sent four times: twice from each of two different source ports. The last header line has no line ending.
Boot
After switching on, a Zipp 1 first sends four ssdp-sta_init messages: two with an empty WifiInfo, then two with the Wi-Fi values. DeviceState contains NUL bytes instead of the group letters. Then it sends six ssdp-alive messages and continues with the regular announcements every 10 seconds. The speaker answers commands about 3 seconds after the first ssdp-sta_init.
Example ssdp-sta_init, NUL bytes shown as \0:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1800
PROTOCOL: Version 1.0
NTS: ssdp-sta_init
DeviceName: Zipp_1748-H0032000-07-78909
DeviceID: c467b53f21d7
DeviceState: \0,\0,N
PORT: 7777
ZoneID:
Creator:
IPAddr: 192.168.3.112
ColorCode: 2006
FWVersion: 879;1,1;1,1
StereoPairID:
Characterstic: 0,86,0,6,10,0,EU,EU
WifiInfo: -83,-37,5/5
Example: Zipp v1
Not playing:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1800
PROTOCOL: Version 1.0
NTS: ssdp-alive
DeviceName: Zipp_1748-H0032000-07-78909
DeviceID: c467b53f21d7
DeviceState: F,S,N
PORT: 7777
ZoneID:
Creator:
IPAddr: 192.168.3.112
ColorCode: 2006
FWVersion: 879;1,1;1,1
StereoPairID:
Characterstic: 1,100,1,0,25,0,EU,EU
WifiInfo: -91,-40,5/5
Playing from USB, on battery:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1800
PROTOCOL: Version 1.0
NTS: ssdp-alive
DeviceName: Zipp_1748-H0032000-07-78909
DeviceID: c467b53f21d7
DeviceState: F,S,P
PORT: 7777
ZoneID:
Creator:
IPAddr: 192.168.3.112
ColorCode: 2006
FWVersion: 879;1,1;1,1
StereoPairID:
Characterstic: 0,86,0,6,10,0,EU,EU
WifiInfo: -83,-37,5/5
Example: Zipp v2
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1800
PROTOCOL: Version 1.0
NTS: ssdp-alive
DeviceName: ZIPPTWOGREY_xxx
DeviceID: 0123456789ab
DeviceState: F,S,P
PORT: 7777
ZoneID: LINK ZippMiniOne_xxx
Creator:
IPAddr: 192.168.178.75
ColorCode: 2010
FWVersion: 1508;4450,;400,
StereoPairID:
ProVersion: 3.0,3.0
DeviceType: 310
AiMicStatus: 1
Characterstic: 2,100,0,15,7,0,DE,de
WifiInfo: ,-59,51/70 ,-62,48/70
VolSync: N
Description
- NTS
Notification sub type:
- ssdp-alive
The speaker is online
- ssdp-byebye
The speaker leaves the network. A Zipp 1 sends it four times when it is switched off by holding the power button (no UDP notification is sent), and when it enters setup mode. Clients also send a byebye when they shut down (NTS:ssdp-byebye).
- ssdp-sta_init
Sent by a Zipp 1 when it boots, before the first ssdp-alive, see Boot. Handled by the app (UdpMonitor).
- DeviceName
Name of the speaker. Contains the serial number after the model name, e.g. Kitchen_9999-H0020000-07-12345.
- DeviceID
12 hex characters, the MAC address of the speaker.
- DeviceState
Comma separated state flags. First letter is the group state:
- F
Free: not part of a multi-room group
- M
Master of a group
- S
Slave in a group
- G / O
Other group-related states handled by the app (GGROUP)
The third letter is the play state:
- P
Playing
- N
Not playing (stopped, paused, or nothing played since boot)
On a Zipp 1, it changed within 5 seconds after pausing or resuming playback. The meaning of the second letter (S on a Zipp 1) is not known.
- PORT
UDP command port, always 7777.
- ZoneID
Name of the group the speaker belongs to, e.g. LINK Name_xxx. Empty when not in a group.
- Creator
Group creator. Usually empty.
- IPAddr
IP address of the speaker.
- ColorCode
Color of the speaker, see Speaker color.
- FWVersion
Firmware version. First number is the version (e.g. 809, 879), the numbers after the semicolons are further component versions.
- StereoPairID
ID of the stereo pair, empty when not paired.
- ProVersion
Protocol version, e.g. 3.0,3.0.
- DeviceType
Numeric device type. Not present on all firmwares.
- Characterstic (sic)
Comma separated values. On a Zipp 1:
Field
Meaning
1
Charging state, e.g. 0 on battery, 1 charging
2
Battery level in percent
3, 4
Unknown (1,0 and 0,6 seen)
5
6
Unknown (always 0)
7, 8
Region, e.g. EU,EU or DE,de
The values are updated in every announcement (tested: the battery level went from 76 to 70 in 27 minutes, every change appeared in the next announcement), so a client can follow battery level and volume without sending commands.
- WifiInfo
On a Zipp 1 the same as the Wi-Fi signal (529): noise and signal level in dBm, and quality, e.g. -83,-37,5/5. Newer speakers (Zipp 2, Zipp Mini 2) send bssid,rssi,quality/max triples.
- AiMicStatus, VolSync
Seen on newer speakers (Zipp 2, Zipp Mini 2).
- VENDOR
Handled by the app when present.
Notifications
Whenever something changes on the speaker (volume knob turned, track changed, battery level, power state, ...), it sends a packet to port 3333 of the controlling host(s). The packet has the Packet format and carries the command ID and the new data like the answer to a fetch would.
Notifications have the CRC value 0x0000. Their source port is random and changes from time to time (e.g. after the speaker restarted its network service); it is not 7777.
The speaker expects an acknowledgement. Without it, it repeats the notification.
Acknowledgement
Send a packet without data to port 3334 of the speaker:
Python |
command=0, type 2: aa aa 02 00 00 00 xx xx 00 00 |
Rust |
command=2, type copied from the notification |
Both variants work with a Zipp v1.
Without an acknowledgement, the speaker repeats the notification every second, 8 times in total. Further notifications are only sent after that. The client stays registered and gets the next notifications.
Registration
The speaker sends its notifications to hosts that have recently talked to it. Sending any command to port 7777 is enough; the first notifications arrive right after the first command.
The registration does not expire quickly: after a single command, a client that only acknowledged the notifications still received them 25 minutes later (tested with a Zipp v1; the test was stopped after 27 minutes).
The libratone-rs code contains a hello packet (set, command 3, data <our ip>,3333) that registers the notification receiver explicitly. A Zipp 1 with firmware 879 answers it with status 2 (unknown command). The Python implementation sends a fetch of the charging status (1284) after binding the sockets to "kick" the speaker into sending the notifications.
Notifications seen in practice
Observed on a Zipp 1 with firmware 879, unless noted otherwise.
ID |
Name |
Command |
|---|---|---|
10 |
Current source |
|
14 |
Power state |
|
15 |
Standby timer |
|
40 |
Play control |
|
50 |
Source changed |
|
51 |
Play status |
|
64 |
Volume |
|
65 |
Firmware update |
|
90 |
Speaker name |
|
103 |
Group state |
|
258 |
Battery level |
|
278 |
Network player info |
|
518 |
Equalizer profile |
|
519 |
Room setting |
|
771 |
Speaker color |
|
1284 |
Charging state |
|
1536 |
USB current track |
|
1537 |
USB play mode |
|
1538 |
USB current file |
The notifications 65, 103 and 258 are known from other implementations, but were not observed on a Zipp 1. A Zipp 1 does not send 258 when the battery level changes.
Commands
Playback: Generic
Play control (40)
Play, pause, stop, skip tracks and mute.
Source: tested with Zipp v1
- Command ID
40
- Type
set
- Command Data
One of the ASCII strings:
PLAY
Start or resume playback
PAUSE
Pause. Play status changes to 2 for USB playback, and to 1 (like STOP) for radio streams.
STOP
Stop (also stops radio streams)
NEXT
Next track. On USB, it wraps from the last track to the first one. On a radio preset, it is accepted but has no effect.
PREV
Previous track on USB. On a radio preset, the stream was stuck in the "loading" state 3 afterwards.
TOGGL
Toggle play/pause (sic, 5 characters)
MUTE
Mute
UNMUTE
Unmute
- Notification
Status byte 1.
The reply has status 1 and no data. The new play status is sent as notification 51.
While the speaker plays from Bluetooth, all play control commands are accepted (status 1) but have no effect: the phone does not pause or skip tracks, and no notifications are sent. The volume can still be changed. The pause button on the speaker itself does pause the phone; the new state is then visible in the current source (10).
Example, PLAY:
aa aa 02 00 28 00 12 34 00 04 50 4c 41 59
When the speaker goes to standby, and when the play/pause button on the speaker is pressed, it sends a notification 40 with empty data, followed by the new play status (51).
Play status (51)
Get whether the speaker is playing, paused or stopped.
Source: tested with Zipp v1
- Command ID
51 (fetch, reply and notification)
- Data in reply
A single ASCII digit:
0
Playing
1
Stopped. Also paused radio streams, and briefly during a track change on USB.
2
Paused (USB)
3
Loading/buffering of a radio stream. Sent after PLAY, TOGGL and starting a preset, before 0.
During Bluetooth playback, the status is always 0, also when playback is paused on the phone. Use the third byte of the current source (10) instead.
The app and other implementations also list 4 previous, 5 toggle, 6 muted and 7 unmuted, which were not seen on a Zipp 1 (firmware 879). Muting does not change the play status.
- Notification
Status byte 1. Not sent during Bluetooth playback.
Volume (64)
Get and set the volume of the speaker.
Source: tested with Zipp v1
- Command ID
64
- Type
fetch, set, reply, notification
- Command Data
Volume as number between 0 and 100. Leading zeros are accepted for two digits: 05 sets the volume to 5, the speaker reports it as 5.
The speaker does not validate the value, and always replies with status 1:
Data
Result
101, 200, abc, 020
Volume set to 0
20 with a leading or trailing space
Volume set to 0
-1
Volume reported as -29
15.5
Ignored
Empty
Ignored, no notification
Clients should only send numbers from 0 to 100.
- Notification
Status byte 1.
The volume is set per speaker, even when speakers are in a multi-room group, unless volume sync is enabled, see Volume sync.
When the speaker is muted, it sends a volume notification with 0.
The volume buttons on the speaker change the volume in steps of 5. Each press sends three volume notifications: the old value, then the new value twice (e.g. 10, 15, 15).
Example, set to 100 %:
aa aa 02 00 40 00 12 34 00 03 31 30 30
Mute status (520)
Get whether the speaker is muted.
Source: tested with Zipp v1
- Command ID
520
- Type
fetch
- Data in reply
UNMUTE, or MUTE,<volume> when muted, with the volume before muting, e.g. MUTE,25.
Use Play control with MUTE/UNMUTE to change it.
Network service player info (277, 278)
Get and set the network stream that is playing.
Source: tested with Zipp v1
Information about the stream of a network service (internet radio preset or music streaming service) that is currently playing, and the command to start playing such a stream.
Local sources (USB drive, Bluetooth, AUX) do not fill the player info. Switching to a local source clears it. Use the USB playback commands to see what is playing from USB, and the current source (10) for the current source.
- Command ID
278 for fetch, reply and notification
277 for set
- Command Data
JSON object:
- isFromChannel
bool. true when the current stream was started from a preset
- play_identity
Identifier, e.g. the preset number as string ("1") or the Spotify URI
- play_title
Title or station name
- play_subtitle
Artist or further description
- play_album, play_album_uri, play_artist, play_pic
Metadata when available (picture is an URL)
- play_type
Source type: channel (preset), vtuner, spotify, deezer, tidal, napster, douban, xmly, ...
- play_token
Token for the service, can be empty
- play_username, play_attribution, play_object
Further optional fields
- play_preset_available
1 when the item can be stored as preset
- Notification
Status byte 1. Packet type 1, unlike the other notifications (type 2).
The speaker sends pretty-printed JSON with spaces around the colons.
Reply while playing preset 3:
{
"isFromChannel": true,
"play_identity": "3",
"play_subtitle": "MDR SPUTNIK bringt euch entspannt durch den Tag. Einfach die beste Musik und null Werbung, aber viele Infos - das macht SPUTNIK aus.",
"play_title": "MDR SPUTNIK",
"play_token": "",
"play_type": "channel"
}
Reply in standby after boot, nothing played yet:
{
"play_identity": "",
"play_subtitle": "",
"play_title": "",
"play_token": "",
"play_type": "channel"
}
Reply while playing from a local source (USB, Bluetooth, AUX), here AUX. The same reply was seen during USB playback that followed preset 1:
{
"isFromChannel": true,
"play_identity": "",
"play_subtitle": "",
"play_title": "",
"play_token": "",
"play_type": "channel"
}
A set of 277 starts playing a preset, see Play a preset.
untested: Maximum volume (300)
Get and set the upper limit for the volume.
Source: app; unsupported (fetch and set)
- Command ID
300
- Type
fetch, set
- Command Data
Maximum volume limit as number.
untested: Clear play info (298)
Clear the information about what is playing.
Source: app; unsupported
- Command ID
298
- Type
set with empty data
untested: Play mode, other speakers (1541)
Get and set the repeat and shuffle mode of other speaker families.
Source: app; unsupported
- Command ID
1541
- Type
fetch, set
- Command Data
String such as repeat/shuffle mode.
Playback: USB
The Zipp 1 plays audio files from a USB flash drive. When a drive is plugged in, the speaker starts playing its first track. The network service player info (278) stays empty during USB playback; use the commands below instead. Play control (40) works as with other sources.
Current track (1536)
Get and set the number of the USB track that is playing.
Source: tested with Zipp v1
- Command ID
1536
- Type
fetch, set, notification
- Data in reply and notification
Binary: track number as 32 bit little endian number, starting at 1. E.g. 04 00 00 00 for track 4. 00 00 00 00 when no USB drive is plugged in, and after the last track has been played in the normal USB play mode 0.
- Data for set
Track number as ASCII number, e.g. 4. The speaker jumps to that track and starts playing it. Numbers above the number of tracks are accepted (status 1), but ignored.
- Notification
Status byte 1.
USB play mode (1537)
Get and set the repeat and shuffle mode for USB playback.
Source: tested with Zipp v1
- Command ID
1537
- Type
fetch, set, notification
- Command Data
A single ASCII digit. After plugging in a drive, the mode was 3; without a drive, 0 was reported.
0
Normal: play all tracks once in order, then stop. After the last track, the track number is 0 and the current file is empty.
1
Shuffle: play tracks in random order, without stopping
2
Repeat one: repeat the current track
3
Repeat all: play all tracks in order, then start again with the first track
The modes were tested with short tracks that ended by themselves. A manual NEXT wraps from the last track to the first one in all modes except shuffle, where it jumps to a random track.
When a track is repeated (mode 2), the speaker sends only the play status notifications 51 (1, then 0), no new track number.
A set is answered with two identical notifications.
- Notification
Status byte 1.
Current file (1538)
Get the file name of the USB track that is playing.
Source: tested with Zipp v1
- Command ID
1538
- Type
fetch, notification
- Command Data
Full path of the current file on the drive, UTF-8. Empty when no drive is plugged in. Example:
/storage/udisk0/The Tortured Poets Department/Taylor Swift - The Tortured Poets Department - 04 - Down Bad.flac
- Notification
Status byte 1.
Track change
On a track change (NEXT, PREV, set 1536) the speaker sends these notifications:
cmd=51 '1' stopped cmd=1536 04 00 00 00 new track number cmd=1538 /storage/udisk0/.../04 - Down Bad.flac cmd=14 '0' cmd=14 '0' cmd=51 '0' playing
Playback: Source selection
Current source (10)
Get the current source and its state.
Source: tested with Zipp v1
- Command ID
10
- Type
fetch, notification
- Data in reply and notification
Binary, 7 bytes. The first byte is the current source:
Byte
ASCII
Source
0x3f
?
Network stream (radio preset)
0x36
6
USB drive
0x41
A
Bluetooth
0x42
B
AUX input (3.5 mm jack)
0x30
0
Setup mode, see Setup mode. Sent right before the speaker leaves the network. Still reported after leaving setup mode.
Examples:
3f 04 00 45 03 00 00 radio preset 36 08 00 f7 17 00 28 USB 41 08 08 33 00 00 00 Bluetooth, playing 41 0a 03 33 00 00 00 Bluetooth, paused on the phone 42 0c 01 03 00 00 00 AUX 30 06 00 00 00 00 00 entering setup mode
The second byte is a counter: it increases by one with every notification 10, e.g. by 2 when a preset is started. It is the same for all sources at a time.
For Bluetooth, the third byte is the playback state of the phone: 08 playing, 03 paused. The meaning of the other bytes is unknown.
Status 4 (no data) before anything was played since boot.
- Notification
Status byte 1. Sent when a stream starts, the source changes, Bluetooth playback is paused or resumed on the phone, or line-in (537) is activated.
Source changed (50)
Notification that the source has changed.
Source: tested with Zipp v1
- Command ID
50
- Type
Notification only, a fetch is unsupported
- Data in notification
One byte, the source code as in the current source (10).
- Notification
Status byte 0. Sent when a stream starts, the source changes, Bluetooth playback is paused or resumed on the phone, or the speaker enters setup mode (0).
Connected sources (152)
Get the sources that are connected to the speaker, e.g. a USB drive.
Source: app; tested with Zipp v1
- Command ID
152
- Type
fetch
- Data in reply
Binary, 8 bytes:
- 00 00 00 00 00 00 0f 80
In standby and while playing a preset, before a USB drive was plugged in
- 00 00 00 00 00 00 0f 90
With a USB drive plugged in, both while playing from USB and from Bluetooth
- 00 00 00 00 00 00 0f 92
With a USB drive and an AUX cable plugged in
Probably a bit mask of connected sources: 0x10 USB drive, 0x02 AUX cable. The value does not change when switching between sources, so it is not the current source, as the app's name ("current source") suggests.
Switch to USB (121)
Switch to the USB drive.
Source: app; tested with Zipp v1
- Command ID
121
- Type
fetch, set
- Command Data
Empty
Switches the speaker to the USB drive, if one is plugged in. While playing from USB, it has no effect. The reply has status 1 and no data.
Switch to line-in (537)
Switch to the AUX input.
Source: app; tested with Zipp v1
- Command ID
537
- Type
set
- Command Data
Empty
- Notification
None for 537. The speaker sends notifications 10 and 50 (B).
Without an AUX cable, set is unsupported (status 2); a fetch returns status 1 and no data. With an AUX cable plugged in, set is accepted (status 1).
Plugging in the cable switches the source to AUX (B in 10) and plays the AUX audio immediately.
untested: Output source (122, 123, 128)
Get and set where the audio is played, for other speaker families.
Source: app; unsupported
- Command ID
122 set output source
123 fetch available output sources
128 fetch current output source
- Command Data
OUTPUT_WAY_BLUETOOTH (0), OUTPUT_WAY_LOCAL (1), OUTPUT_WAY_AUX (2), OUTPUT_WAY_HDMI (3), OUTPUT_WAY_WIFI_SLAVE (4)
untested: Source switch (1542)
Switch the source, for other speaker families.
Source: app; unsupported
- Command ID
1542
- Type
set
Power
Power state (14)
Get whether the speaker is awake, idle or in standby.
Source: tested with Zipp v1
- Command ID
14
- Type
fetch, reply, notification
- Data in reply
First byte is an ASCII character:
0
Awake
1
Idle: awake, but no audio playing. Sent about 18 seconds after Bluetooth playback was paused (on the phone or with the speaker's button), and about 20 seconds after USB playback was paused; back to 0 when playback resumed. Seen briefly after a volume change, too.
2
Sleeping (standby)
The speaker sends notifications 14 with 0 frequently while it is awake, e.g. after every play status change.
- Notification
Status byte 1.
Standby and standby timer (15)
Get and set the standby timer, put the speaker into standby or wake it up.
Source: tested with Zipp v1
The same command ID is used to put the speaker to sleep, wake it up, and to configure a timer that puts it to sleep.
- Command ID
15
- Type
set, fetch, notification
- Command Data
00
Wake up from standby
20
Go to standby immediately ("2" + "0" seconds)
2n
Go to standby after n seconds, e.g. 2900 for 15 minutes, 21800 for 30 minutes
F0
Cancel a running timer
The first character is the action, the rest is the number of seconds. libratone-rs uses 02 to sleep, but on a Zipp 1 with firmware 879 this only wakes the speaker up (action 0). Use 20, as the Python library and the Loxone wiki do.
- Notification
Status byte 0.
- Reply to fetch and notification
Binary, 5 bytes: one ASCII character (the action) followed by a 32 bit little endian number of seconds.
32 82 03 00 00
Timer running, 898 seconds left (fetch 2 seconds after setting 2900)
32 84 03 00 00
Notification after setting 2900
32 00 00 00 00
Notification after 20 (standby now)
30 00 00 00 00
Notification after 00 (wake up)
30 02 00 00 00
Notification after 02
ff ff ff ff ff
No timer set (also after F0)
The fetch returns the remaining time.
Going to standby sends the notifications 15, 14 (2), 40 (empty) and 51 (1).
Example, go to standby in 15 minutes:
aa aa 02 00 0f 00 12 34 00 04 32 39 30 30
The app also calls the command setPowerMode (data "0") to wake the speaker up and setOffTime.
Sound and equalizer
Equalizer profile (516, 518, 524)
Get and set the equalizer profile of the speaker.
Source: tested with Zipp v1
A "voicing" is an equalizer profile ("Tone" in the Loxone wiki).
- Command ID
516 fetch current voicing
518 set voicing, notification
524 fetch list of all voicings
- Command Data
voicingId for 516 and 518, JSON list for 524.
- Notification
518, status byte 0. Not sent when setting default.
The speaker answers a fetch of 516 with two replies: the first one has no data, the second one contains the value.
A speaker that never had a voicing set reports default. Setting default is accepted (status 1) but does not change anything. Setting an empty string resets the voicing to V100.
Voicings reported by a Zipp 1 (524):
ID |
Name |
Description |
|---|---|---|
V100 |
Neutral |
Basic neutral setting |
V101 |
Easy Listening |
Easy and smooth - leaned back sound |
V102 |
Soft and Comfortable |
Soft midrange for compressed recordings |
V103 |
Rock the house |
Extra drum kick - smooth midrange |
V104 |
Jazz club |
Open acoustic sound, focus on voices |
V105 |
Movie time |
Extra action and movie re-equalization |
V106 |
Live concert |
When the music is loud and dynamic |
V107 |
Classical |
Enjoy grand pianos when they are best |
V108 |
Speech |
For TV programs with subtle voices |
Reply to 524:
[
{
"description": "Basic neutral setting",
"name": "Neutral",
"voicingId": "V100"
},
{
"description": "Easy and smooth - leaned back sound",
"name": "Easy Listening",
"voicingId": "V101"
},
{
"description": "Soft midrange for compressed recordings",
"name": "Soft and Comfortable",
"voicingId": "V102"
},
{
"description": "Extra drum kick - smooth midrange",
"name": "Rock the house",
"voicingId": "V103"
},
{
"description": "Open acoustic sound, focus on voices",
"name": "Jazz club",
"voicingId": "V104"
},
{
"description": "Extra action and movie re-equalization",
"name": "Movie time",
"voicingId": "V105"
},
{
"description": "When the music is loud and dynamic",
"name": "Live concert",
"voicingId": "V106"
},
{
"description": "Enjoy grand pianos when they are best",
"name": "Classical",
"voicingId": "V107"
},
{
"description": "For TV programs with subtle voices",
"name": "Speech",
"voicingId": "V108"
}
]
Example, set "Neutral":
aa aa 02 02 06 00 12 34 00 04 56 31 30 30
Room correction / FullRoom (517, 519, 525)
Get and set the room correction, which adapts the sound to the position of the speaker.
Source: tested with Zipp v1
FullRoom(tm) adapts the sound to the position of the speaker (corner, wall, free-standing, ...).
- Command ID
517 fetch current room setting
519 set room setting, notification
525 fetch list of all room settings
- Command Data
Room ID (lower case), and JSON list for 525.
- Notification
519, status byte 0. Not sent when setting default.
Like 516, a fetch of 517 is answered with two replies (empty, then the value). The initial value is default; setting default has no effect, setting an empty string resets it to neutral.
Reply to 525 from a Zipp 1:
[
{
"description": "Basic neutral setting",
"name": "Neutral",
"voicingId": "neutral"
},
{
"description": "Outdoor",
"name": "Outdoor",
"voicingId": "outdoor"
},
{
"description": "Shelf",
"name": "Shelf",
"voicingId": "shelf"
},
{
"description": "Table",
"name": "Table",
"voicingId": "table"
},
{
"description": "Floor",
"name": "Floor",
"voicingId": "floor"
}
]
Known IDs: neutral, outdoor, shelf, table, floor.
- 545
Room correction on/off (fetch, set). Unsupported
Stereo type (512, 515)
Get and set the role of the speaker in a stereo pair.
Source: app; 515 tested with Zipp v1
- 512
Set stereo type (set), for stereo pairs. Not tested; a fetch returns status 4.
- 515
Fetch speaker stereo type. Reply: 0 (not paired)
untested: Volume sync (506)
Get and set whether the volume of all speakers in a group is changed together.
Source: app; unsupported (fetch and set)
- Command ID
506
- Type
fetch, set
- Command Data
bool. When 1, the volume of all speakers in a group is changed together.
Presets (favorites)
The speaker has five preset buttons that store a radio station or a streaming service item.
List presets (275)
Get the list of the five stored presets.
Source: tested with Zipp v1
- Command ID
275
- Type
fetch
- Data in reply
JSON list of channel objects, pretty-printed. Reply of a Zipp 1:
[ { "channel_id": 1, "channel_identity": "25095", "channel_name": "MDR SPUTNIK Firstplay Channel", "channel_type": "vtuner", "isPlaying": false }, { "channel_id": 2, "channel_identity": "32612", "channel_name": "Deutschlandfunk Nova", "channel_type": "vtuner", "isPlaying": false }, { "channel_id": 3, "channel_identity": "3320", "channel_name": "MDR SPUTNIK", "channel_type": "vtuner", "isPlaying": true }, { "channel_id": 4, "channel_identity": "2643", "channel_name": "RADIO PSR 101.6 Leipzig", "channel_type": "vtuner", "isPlaying": false }, { "channel_id": 5, "channel_identity": "987", "channel_name": "Deutschlandfunk", "channel_type": "vtuner", "isPlaying": false } ]- channel_id
Preset slot, 1 to 5
- channel_type
Service that provides the preset, e.g. vtuner. See Music services for the list of services.
- channel_identity
Station/item ID at the service
- channel_name
Display name
- isPlaying
A stored value, not updated by the speaker: on a Zipp v1, preset 3 kept true while other presets were played, both with Play a preset and with the preset buttons. Written with Store a preset.
- station_url, picture_url, username, password, play_token
Optional fields. Not present for vtuner presets on a Zipp 1.
Store a preset (276)
Store a station in a preset slot.
Source: tested with Zipp v1
- Command ID
276
- Type
set
- Command Data
One channel object as returned by List presets, JSON encoded:
- channel_id
Required. Slot 1 to 5, as number. A string ("5") stores a broken preset that cannot be played.
- channel_identity
Required. Station/item ID at the service.
- channel_type
Required for playing, e.g. vtuner. A preset without it is stored, but does not play.
- channel_name
Optional. Shown as title when the preset is played. Without it, the title comes from the service.
- isPlaying
Optional, stored as it is.
Without channel_id or channel_identity, nothing is stored.
Example, store the vTuner station 987 in slot 5:
{ "channel_id": 5, "channel_identity": "987", "channel_name": "Deutschlandfunk", "channel_type": "vtuner", "isPlaying": false }- Notification
None.
The reply always has status 1 and no data, also when nothing is stored. The new preset is returned by the next fetch of 275 right away.
The speaker stores the object as it is sent, and returns exactly these keys in 275; keys that are not sent (e.g. isPlaying) are missing there.
channel_name is shown as play_title in the Network service player info when the preset is played, even when it differs from the station name at the service.
Play a preset (277)
Start playing a stored preset.
Source: tested with Zipp v1
- Command ID
277
- Type
set
- Data for set
JSON object with two required keys:
- play_identity
Preset slot 1 to 5, as string or number
- play_type
channel
Example for preset 1:
{ "play_identity": "1", "play_type": "channel" }- Notification
None for 277. The started stream is reported with the notifications 50, 51 and 278.
The speaker starts the stream stored in that preset slot and wakes up from standby if needed.
Pressing a preset button on the speaker sends the same notifications as this command.
The reply always has status 1 and no data, also when nothing happens, e.g. when a required key is missing or the slot is invalid.
This is the set of the Network service player info.
Multi-room
Speakers can be linked in the app by drag and drop. All speakers of such a "link" (also called zone, group or SoundSpace Link) play the same stream. The group membership is stored on the speakers. The group is identified by a ZoneID like LINK ZippMiniOne_xxx.
Behavior:
A stream change (preset, play, pause) on any speaker is mirrored to the other speakers.
The volume stays per speaker (unless Volume sync is on).
Switching a speaker off does not remove it from the group. When switched on again it re-joins and starts the stream.
untested: Group state (103)
Get the multi-room group membership of the speaker.
Source: verified (notification); a fetch is unsupported on a Zipp 1 with firmware 879 (status 2, tested while not grouped)
- Command ID
103
- Type
fetch, notification
- Command Data
ASCII text, e.g. MASTER,LINK <link id>, SLAVE,LINK <link id>, GROUPED,LINK <link id>. Strings containing UNGROUP or UNLINK mean the speaker left the group. Some captures show a leading : or = that should be stripped.
- Notification
Not observed on a Zipp 1 (only a single, ungrouped speaker was tested).
untested: Join group (502)
Add the speaker to a multi-room group.
Source: verified. Not tested (only one speaker available).
- Command ID
502 (0x01F6)
- Type
set
- Command Data
LINK <link id>
untested: Leave group (503)
Remove the speaker from a multi-room group.
Source: verified. Not tested (only one speaker available).
- Command ID
503 (0x01F7)
- Type
set
- Command Data
LINK <link id>
untested: Join group as slave (1793)
Add the speaker to a multi-room group as slave.
Source: app. A Zipp 1 does not answer a fetch at all.
- Command ID
1793
- Type
set
- Command Data
Zone ID. Used for the "slave only" join of newer firmware.
Device info
Firmware version (5)
Get the firmware version of the speaker.
Source: tested with Zipp v1
- Command ID
5
- Type
fetch
- Data in reply
Firmware version string, e.g. 879.
Speaker name (90)
Get and set the name of the speaker, as shown in the app and in discovery.
Source: tested with Zipp v1
- Command ID
90
- Type
fetch, set, notification
- Command Data
UTF-8 name of the speaker, e.g. Zipp. Non-ASCII characters work (tested: Zipp Küche ✓), and names of at least 64 bytes. A name of 200 bytes and an empty name are ignored without a reply.
- Notification
Status byte 0.
After a set, the speaker sends the new name as notification, twice. Setting the name also changes the DeviceName in the Discovery announcements and the friendlyName of the UPnP description. (The app uses command 816 in addition for some speaker families; a Zipp 1 does not support 816.)
Serial number (769)
Get the serial number of the speaker.
Source: tested with Zipp v1
- Command ID
769
- Type
fetch
- Data in reply
Serial number, e.g. 1748-H0032000-07-78909.
Speaker color (770, 771)
Get and set the color of the speaker, as stored for the app.
Source: tested with Zipp v1
- Command ID
770 fetch, 771 set and notification
- Command Data
Four digit color code, e.g. 2006. Known codes from the app:
1001
Pepper Black
1002
Salty Grey
1003
Steel Blue
1004
Raspberry Red
1005
Almond Brown
1006
Icy Blue
1007
Pineapple Yellow
1008
Petrol Blue
1009
Plum Purple
2001
Cloudy Grey
2002
Graphite Grey
2003
Victory Red
2004
Deep Lagoon
2005
Sangria
2006
Atlantic Deep
2007
Signal
2008
Nude
2009
Pastel Blue
9000
Black
9001
White
(Some codes have _OLD variants with different shades in the app.)
The color is only a stored value used by the app to show the right picture; setting it does not change the speaker.
- Notification
771, status byte 1.
Battery level (256, 257, 258)
Get the battery charge level in percent.
Source: tested with Zipp v1 (256)
- Command ID
256 fetch and reply
257 reply (Python library)
258 notification (Python library)
A Zipp 1 with firmware 879 answers the fetch of 256 directly with command ID 256 and the value. 257 and 258 are unsupported as fetch. Other implementations report that the reply to 256 may come with empty data first, and the real value follows as 257.
- Command Data
Battery level in percent as number, e.g. 100.
- Notification
258. Not sent by a Zipp 1: while the level dropped from 76 to 70 within 27 minutes, no battery notification arrived. The level is included in the Discovery announcements (Characterstic), which follow every change.
Charging state (1284)
Get whether the speaker runs on battery or is charging.
Source: tested with Zipp v1
- Command ID
1284
- Type
fetch, reply, notification
- Command Data
0
Discharging (running on battery)
1
Plugged in, charging
2
Plugged in, fully charged
3
Plugged in, not charging
- Notification
Status byte 1.
Values seen on a Zipp 1 with the battery at 100 %:
2 with the charger plugged in for a long time.
Plugging the charger in sends the notification 3, followed by 1 about 3 seconds later.
Unplugging the charger sends the notification 0 immediately.
The battery level stayed at 100 during these tests.
Wi-Fi signal (529)
Get the Wi-Fi noise, signal level and quality.
Source: tested with Zipp v1
- Command ID
529
- Type
fetch
- Data in reply
Example -96,-35,5/5: noise and signal level in dBm, and quality as current/max.
Music services (281)
Get the list of streaming services the speaker supports.
Source: tested with Zipp v1
- Command ID
281
- Type
fetch
- Data in reply
JSON, pretty-printed. Reply of a Zipp 1:
{ "capabilities": [ { "name": "doubanfm" }, { "name": "kaishu" }, { "name": "xmly" }, { "name": "vtuner" }, { "name": "audiogum" }, { "name": "audiogum_tidal" }, { "name": "baidu" } ] }List of streaming services supported by the speaker. (fetchMusicServiceCapability in the app.)
Known services. They are also used as channel_type of presets.
Name |
Zipp 1 |
Service |
|---|---|---|
vtuner |
tested |
vTuner internet radio directory. channel_identity of a preset is the vTuner station ID. |
xmly |
yes |
Ximalaya (喜马拉雅), Chinese podcast and audio book platform |
doubanfm |
yes |
Douban FM, Chinese personalized music radio |
kaishu |
yes |
Kaishu Story (凯叔讲故事), Chinese children's stories |
spotify |
no |
Spotify music streaming |
deezer |
no |
Deezer music streaming |
tidal |
no |
TIDAL music streaming |
napster |
no |
Napster music streaming |
The "Zipp 1" column shows the reply of a Zipp 1 with firmware 879: yes when the service is listed, tested when a preset of that type was played.
Limited function list (304)
Get the list of functions that are limited on this speaker.
Source: tested with Zipp v1
- Command ID
304
- Type
fetch
- Data in reply
A JSON list. A Zipp 1 replies with an empty list and a newline, []\n (3 bytes).
Firmware update (65)
Check for, download and install firmware updates.
Source: verified (libratone-rs), app; partially tested with Zipp v1 (only the checks 0 and 2, no download or update).
- Command ID
65
- Type
set, notification
- Command Data
The app builds an UpdateFirmwareCommand with an action number (checks update status 0, checks update version 2, downloads new version 3, starts update 4). The speaker reports its progress as notifications.
The numbers are the same as the Control values of the HTTP firmware update.
The data format is not known exactly. Results on a Zipp 1 with firmware 879, with the data sent as a single ASCII digit:
Request
Reply
fetch
No reply (first try). Status 3 and no data after a set of 2.
set 0
No reply
set 2
Status 3, no data
No notifications were sent within 15 seconds. The same check via HTTP reported "no update available", so status 3 may mean that, or that the data format is wrong. Use the HTTP interface to check for updates.
- 530
OTA auto download: AUTO or MANUAL (fetch, set). A Zipp 1 answers the fetch with status 1 and empty data.
- 66
Delta N firmware update. Unsupported
untested: Wi-Fi credentials
Set the Wi-Fi network the speaker connects to.
Source: app
The app has a setWiFiCredentials method that sends the network configuration with a command; the command ID and format have not been analyzed. See Setup mode for the HTTP based way used by the setup mode, and the cgi?SetNet endpoint of the web interface.
LED
None of the LED and voice prompt commands are supported by a Zipp 1 with firmware 879: fetch and set are answered with status 2 (unknown command).
untested: LED always on (613)
Get and set whether the LED stays on or turns off after a few seconds.
Source: app, Loxone wiki; unsupported (fetch and set)
- Command ID
613
- Type
fetch, set
- Command Data
bool. 0 = LED always on, 1 = LED turns off a few seconds after the last interaction (and lights up briefly on button presses).
Loxone wiki example, "always on":
00 00 02 02 65 00 00 00 00 01 30
untested: LED brightness (301)
Get and set the brightness of the LED.
Source: app, Loxone wiki; unsupported (fetch and set)
- Command ID
301
- Type
fetch, set
- Command Data
Brightness in percent, 0 to 100.
untested: LED level (296)
Get and set the LED display level of older firmware.
Source: app; unsupported (fetch)
- Command ID
296
- Type
fetch, set
- Command Data
LED display level as string (older firmware).
untested: Voice prompt
Get and set the spoken prompts of the speaker and their language.
Source: app; unsupported (fetch)
- 293
Voice prompt on/off (bool)
- 294
Voice prompt language
- 299
List of supported voice prompt languages (fetch)
Other commands
Command IDs found in the Android app (LSSDPNode) that are not covered by the other implementations. Most are meant for newer speakers or headphones.
Names are the app method names. Type F is a fetch, S a set request. The column "Zipp 1" shows the answer of a Zipp 1 with firmware 879 to a fetch. set requests were not tested.
Command ID |
Type |
Meaning |
Zipp 1 |
|---|---|---|---|
66 |
F, S |
Delta N firmware update status / start update |
unsupported |
274 |
S |
Secret |
|
283 |
S |
Smart EQ |
|
289 |
F, S |
Device user info (fetchDeviceUserInfo) / gesture behavior |
unsupported |
290 |
S |
Set current user as owner |
|
291 |
S |
Remove user info |
|
297 |
S |
Update user info |
|
787 |
F |
Alexa (AVS) notification |
unsupported |
788 |
F, S |
Alexa (AVS) language |
unsupported |
1025 |
F |
Alexa (AVS) voice recognition status |
unsupported |
1031 |
F, S |
AI microphone status (AiMicStatus) |
unsupported |
1285 |
F, S |
Private mode |
0 |
2048 |
S |
Alarm operation |
|
2304 |
F |
AI service capability |
unsupported |
2305 |
F |
AI service status |
unsupported |
2306 |
S |
AI service metadata |
|
2312 |
S |
Alexa auth data |
|
860, 861 |
F, S |
Trial status |
unsupported |
4102 to 4108 |
F, S |
Bluetooth device discovery, connect, disconnect, unpair. Also unsupported while a phone is connected via Bluetooth. |
unsupported |
Newer speakers with a negative ID (e.g. -250 for ANC level, -248 ANC status, -255/-254 LED always on) exist too, and are listed in the app's LSSDPNode class. Sent as unsigned 16 bit numbers (0xFF06, 0xFF08, 0xFF01, 0xFF02), a Zipp 1 answers them with status 2 (unknown command).
HTTP
HTTP services
HTTP is not used for playback control. The following HTTP endpoints exist.
Responses below were captured from a Zipp 1 with firmware 879.
Web interface
Source: tested with Zipp v1
The speaker runs a small web server on port 80 (Server: Libratone httpd/0.1.1, HTTP/1.0). All pages are served as Content-Type: text/html, even when the content is JSON or plain text. The pages load css/style.css, js/jquery-1.12.2.min.js, js/js.js and js/SetLanguage.js; js/js.js contains the code that calls the cgi? endpoints listed below.
- GET http://<speaker>/cgi?Overview
HTML status page. The values are in <input value="..."> fields (some values contain a trailing newline):
Speaker Name
Zipp
Serial Number
1748-H0032000-07-78909
Wi-Fi Name
SSID of the network
Connection Status
Connected
Wi-Fi Signal Strength
-36 dBm
Wi-Fi Channel
6
IPv4 Address
192.168.3.112
IPv6 Address
fe80::c667:b5ff:fe3f:21d7
MAC Address
c4:67:b5:3f:21:d7
Firmware Version
v879
- GET http://<speaker>/cgi?Network
HTML "Setup" page with the speaker name, AirPlay password, Wi-Fi selection and the "advanced" IP settings. The current values are in the placeholder attributes of the input fields SpeakName, AirPlayPin, IP, MASK, NETGATE, DNS_1 and DNS_2.
- GET http://<speaker>/cgi?Update
HTML "Firmware Update" page. Shows the firmware version (v879).
- GET http://<speaker>/cgi?GetList, GET http://<speaker>/cgi?PlayList
200 OK without body and without headers.
- GET http://<speaker>/index.asp, GET http://<speaker>/bl_index.asp
404 NOT FOUND when the speaker is in normal operation mode, see Setup mode.
/cgi?ResetPlayer and /cgi?UploadFile are mentioned in the app, but have not been tested.
Wi-Fi scan
- POST http://<speaker>/cgi?ScanSSID
The web interface sends the body test. The response is a plain text list of networks seen by the speaker, each entry SSID(SECURITY) followed by ;. The same SSID is listed once per access point:
MyNetwork(WPA);wifi-2.4(WPA);MyNetwork(WPA);MyNetwork(WPA);Neighbor(WPA);
Network settings
Source: web interface code, not tested
- POST http://<speaker>/cgi?SetNet
Changes the speaker name, AirPlay password and network configuration. URL-encoded body with the fields speakname, airplaypin, ssid, pwd, sectype (WPA, WPA2, WEP, NONE), dhcp (true/false), ip, mask, netgate, dns and sdns. Empty fields are not changed.
Firmware update
The same actions are available via UDP with the firmware update command (65), but only the HTTP variant gave a usable result in tests.
- POST http://<speaker>/cgi?Update
Body: json= followed by a JSON object:
json={"Control":"0","SEQ":"0","ControlContent":"None"}Control selects the action:
Control
Action
Status
0
Fetch update state
tested
1
Result of a file upload (UploadFile)
web code
2
Check for an update on the Libratone server
tested
3
Download the update
web code
4
Start the update
web code
5
Confirm the uploaded file
web code
255
Cancel / clear the uploaded file
web code
Real response to Control 0:
{ "Control": "0", "ControlContent": "100", "ControlResult": "0", "SEQ": "2043", "UpdateState": "0" }Checking for an update with Control 2 returns UpdateState 2 immediately:
{ "Control": "2", "ControlContent": "", "ControlResult": "0", "SEQ": "9703", "UpdateState": "2" }The result of the check is in the UpdateState of the following Control 0 requests. On a Zipp 1 with firmware 879, it was 54 (no update available) 5 seconds later:
{ "Control": "0", "ControlContent": "100", "ControlResult": "0", "SEQ": "9718", "UpdateState": "54" }The web interface polls Control 0 until the state changes.
- ControlResult
0 = OK, 1 = battery below 40 % (update refused), 2 = network error, 3 = error, 4/5 = invalid update package, 8 = network error. 6 is handled like 0 by the web interface.
- ControlContent
For Control 0: battery level in percent. The web interface refuses updates below 40. For 999 or more, the web interface asks to plug in the charger.
- UpdateState
Texts from the web interface (js/js.js); 0, 2 and 54 were seen on a Zipp 1.
0
Idle ("Current State is init")
1
Uploading a firmware file
2
Checking for an update / checking the update file
3
Downloading
4
New version available, can be installed with Control 4
5
Updating
6
Updating
7
Verifying the update file
51
Invalid firmware file
52
Update failed, network error
53
Invalid firmware file
54
No update available, the current version is the newest
55
Update failed, network error
75
Handled by showing the "check version" dialog; meaning unknown
- SEQ
Sequence number. The client sends 0.
UPnP description
Source: tested with Zipp v1
- GET http://<speaker>:49152/description.xml
Standard UPnP device description (XML). Server header Linux/3.10.0+ UPnP/1.0 DLNADOC/1.50.
The Zipp is a DLNA MediaRenderer with the services AVTransport, ConnectionManager, RenderingControl and Tencent QPlay. friendlyName is the speaker name, serialNumber the serial number.
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:qq="http://www.tencent.com">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<presentationURL/>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<friendlyName>Zipp</friendlyName>
<manufacturer>Libratone</manufacturer>
<manufacturerURL>http://www.libratone.com/</manufacturerURL>
<modelDescription>Libratone Zipp</modelDescription>
<modelName>LTH</modelName>
<modelNumber>300</modelNumber>
<modelURL>http://www.libratone.com/home/products/zipp/#intro</modelURL>
<UDN>uuid:f30ac593-12df-4e9f-82c4-2f434fe5ad9b</UDN>
<serialNumber>1748-H0032000-07-78909</serialNumber>
<UPC>123810928305</UPC>
<iconList>
<icon>
<mimetype>image/jpeg</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/upnp/grender-48x48.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/upnp/grender-120x120.jpg</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/upnp/grender-48x48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/upnp/grender-120x120.png</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<SCPDURL>/upnp/rendertransportSCPD.xml</SCPDURL>
<controlURL>/upnp/control/rendertransport1</controlURL>
<eventSubURL>/upnp/event/rendertransport1</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>/upnp/renderconnmgrSCPD.xml</SCPDURL>
<controlURL>/upnp/control/renderconnmgr1</controlURL>
<eventSubURL>/upnp/event/renderconnmgr1</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>/upnp/rendercontrolSCPD.xml</SCPDURL>
<controlURL>/upnp/control/rendercontrol1</controlURL>
<eventSubURL>/upnp/event/rendercontrol1</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-tencent-com:service:QPlay:1</serviceType>
<serviceId>urn:tencent-com:serviceId:QPlay</serviceId>
<SCPDURL>/upnp/qplaySCPD.xml</SCPDURL>
<controlURL>/upnp/control/qplaycontrol</controlURL>
<eventSubURL/>
</service>
</serviceList>
<qq:X_QPlay_SoftwareCapability>QPlay:2</qq:X_QPlay_SoftwareCapability>
</device>
<URLBase>http://192.168.3.112:49152/</URLBase>
</root>
Setup mode and firmware flashing
Source: app (com.libratone.v3.net.WebPageOperations)
A speaker that is not configured, or is in setup mode, opens its own access point. The app (and UdpMonitor) then talks to the speaker at 192.168.6.1. The web server uses goform handlers.
A Zipp 1 (firmware 879) can be put into setup mode with its buttons. It then opens a Wi-Fi network named like the speaker (e.g. Zipp). According to the Zipp 2 manual, setup mode is also used for Bluetooth pairing and for the Wi-Fi setup with iOS ("New AirPlay speaker"). When entering setup mode, the speaker sends the notifications 10 and 50 with the source code 0 (see Current source), then a ssdp-byebye via Discovery, and leaves the home network. It did not come back within 2.5 minutes.
The pages below were not tested.
- GET http://<speaker>/index.asp
Returns a page with a JavaScript variable aspgetstringval, which contains the list of Wi-Fi networks seen by the speaker and the current settings.
- POST http://<speaker>/goform/formHandlerConfigureProfileSettingsAndDmpName
Configure the Wi-Fi network and/or the speaker name. Content-Type: application/x-www-form-urlencoded.
- DMPName
Speaker name
- ProfileName
Profile1
- SSID
Network name
- DHCPClient
DHCP enabled flag
- Passphrase
WPA/WPA2 password
- KeyIndex, Key0 to Key3
WEP keys
The security type is sent as a text value of the form (NONE), (WEP), (WPA ...) or (WPA2 ...); the name of the form field has not been determined.
When only the name is changed, only DMPName is sent.
- GET http://<speaker>/bl_index.asp
Bootloader page, used to update the firmware of old speakers (Live, Lounge).
- POST http://<speaker>/goform/formPostHandler
Multipart upload of firmware, field appFirmware, file name apsw.bcd.
- POST http://<speaker>/goform/formDownloadConfirmationHandler?button=++++++Ok++++++
Confirm the firmware upload.
- GET http://<speaker>/1000/firmware_update/bl_flash_burn_status.asp
Flash progress.
Examples
Examples
Python
A minimal client that sets the volume and reads the speaker name:
import socket, struct
SPEAKER = '192.168.178.75'
def packet(cmd, data=b'', typ=2):
return struct.pack('>HBHBHH', 0xaaaa, typ, cmd, 0, 0x1234, len(data)) + data
# bind first: replies always go to port 7778
rx = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
rx.bind(('', 7778))
rx.settimeout(2)
tx = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
tx.sendto(packet(64, b'30'), (SPEAKER, 7777)) # set volume 30
tx.sendto(packet(90, typ=1), (SPEAKER, 7777)) # fetch name
data, addr = rx.recvfrom(4096)
cmd = struct.unpack('>H', data[3:5])[0]
payload = data[10:]
print(addr, cmd, payload)
Shell
Using socat:
# play printf '\xaa\xaa\x02\x00\x28\x00\x12\x34\x00\x04PLAY' | socat - UDP:192.168.178.75:7777 # discovery printf 'M-SEARCH * HTTP/1.1' | socat - UDP4-DATAGRAM:239.255.255.250:1800,so-broadcast
About
Sources of this documentation:
https://www.loxwiki.eu/display/LOX/Libratone+Zipp+WLan+Lautsprecher (Benjamin Hanke)
python_libratone_zipp by Chouffy: https://github.com/Chouffy/python_libratone_zipp
libratone-rs, a Rust implementation
Static analysis of the Libratone Android app 8.3.1 (classes com.libratone.v3.luci.LUCIPacket, com.libratone.v3.luci.LUCIControl, com.libratone.v3.luci.UdpMonitor, com.libratone.v3.model.LSSDPNode, com.libratone.v3.net.WebPageOperations)
Tests against a real Zipp 1 with firmware 879 (2026-11). All replies shown in this documentation come from that speaker unless noted otherwise.
Each command lists where it is known from:
- tested with Zipp v1
Sent to a Zipp 1 with firmware 879; the speaker answered as documented.
- unsupported
Sent to a Zipp 1 with firmware 879; the speaker answered with status 2 (unknown command), see Command status.
- verified
Used by at least one of the independent implementations, which have been tested against real Zipp 1 speakers (firmware 809, 879).
- app
Only seen in the Android app code. The command ID and data format are taken from the app, but it has not been confirmed on a Zipp 1.
The app supports many more speaker families (Air, Citi, Gen, ...) that speak the same protocol. Not every command makes sense on a Zipp.
Last update: 2026-11-27T18:28:40+01:00
License
It is licensed under the GNU Free Documentation License.
Building
You need to install rst2html5 before:
$ pip install rst2html5-tools
or on Debian:
$ apt install docutils-common
Rendering the docs is done via a build script:
$ ./build.sh