Broken BC127 Melody BLE db gen tool (I like to add the Battery GATT service)



I like to add some GATT services like battery for my BC127. If I get it right, I need to setup the GATT database by adding the battery service(0x180F) and the battery characteristic(0x2a19). So I ended up with

But sadly this tool is broken on my Ubuntu 19.04 or Windows 10(64Bit).

On both systems I got following error:

“OSError: db_gen/bin/Release/libdb_gen.a: invalid ELF header”


wrong executable format on Windows.

at line: “db_gen_lib = CDLL( …” in

Any ideas how to overcome this problem