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

#1

Hey,

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

https://source.sierrawireless.com/resources/airprime/tools/bc127-melody-ble-db-gen/

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”

or

wrong executable format on Windows.

at line: “db_gen_lib = CDLL( …” in ble_database.py

Any ideas how to overcome this problem