This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

'System.ArgumentException' in Ulpbt.dll

I am trying to read the primary services using Master Emulator API and i am getting the below error. Using the Master Control Panel (MCP), it got no problem reading back all the values. As such i made a comparison between MCP log and my coding log, MCP has a "Format: HandleAnd16BitUuid" in its log. How can i implement the same to my code? Basically i just want to read the primary services and that is all.

Exception thrown: 'System.ArgumentException' in Ulpbt.dll
System.ArgumentException: Invalid length of uuidHexString: 0A1BB0404A4664B99A02B0EFD2A7A1A4A.
at Ulpbt.BtUuid.AssignFromHexString(String uuidHexString)
at Nordicsemi.MasterEmulator.ParseUuid(PythonDictionary attributeEntry)
at Nordicsemi.MasterEmulator.DiscoverServices()

Thanks

  • Hi,

    It is hard to tell what may be the issue without some more context, but the reported hex string for the UUID consists of 33 hexadecimal digits. UUIDs are 16 bytes, or 32 hexadecimal digits... Is the string "0A1BB0404A4664B99A02B0EFD2A7A1A4A" something that you have provided as part of the source code?

    Please note that Master Control Panel and Master Emulator are old products that are no longer maintained, and we recommend to use newer alternatives where applicable. For the python version of Master Emulator that would be pc-ble-driver-py.

    Regards,
    Terje

Related