From http://people.csail.mit.edu/albert/bluez-intro/x559.html