prima di tutto, la tua conversione da base45 a cbor è sbagliata. è necessario una stringa hex prima di decodifare. questa decodificazione non è difficile, ma hai bisogno di una "libreria" cbor, di che ci sono varie. inoltre, hai bisogno di certa conoscenza di cbor. con javaobject si può fare la decodificazione.
stringa cbor in hex:
D28443A10126A0584BA7006F4A4C59514B20303030303031205354016B303530303330323031353202764F50323530315754573031393833362D4D4230303031031A6798C58D04624C420566322E3130303006F5584016D03CCFD1EA3AFA506325EB32B2795502520896C8D630CF0E0F7128083538C366C3B9089829DEF6CA837C60B891A98E185DB7E17D616945301BAB81D597EC10 300
Array size: 1
this dataitem looks like a cbor ARRAY
Item type: Array
Array size: 4
Item type: ByteString <----- byte[]
Here is the hex value: A10126
but unless you know what they represent, they won't go much good.
Item type: Map
Map contents:
Item type: ByteString <----- byte[]
Here is the hex value: A7006F4A4C59514B20303030303031205354016B303530303330323031353202764F50323530315754573031393833362D4D4230303031031A6798C58D04624C420566322E3130303006F5
but unless you know what they represent, they won't go much good.
Item type: ByteString <---- byte[]
Here is the hex value: 16D03CCFD1EA3AFA506325EB32B2795502520896C8D630CF0E0F7128083538C366C3B9089829DEF6CA837C60B891A98E185DB7E17D616945301BAB81D597EC10
but unless you know what they represent, they won't go much good.
allora, queste 2 stringhe hex:
A10126
e
A7006F4A4C59514B20303030303031205354016B303530303330323031353202764F50323530315754573031393833362D4D4230303031031A6798C58D04624C420566322E3130303006F5
e
16D03CCFD1EA3AFA506325EB32B2795502520896C8D630CF0E0F7128083538C366C3B9089829DEF6CA837C60B891A98E185DB7E17D616945301BAB81D597EC10
sono 3 stringhe cbor all'interno della stringa originale...
risulta che posso leggere la prima stringa e la seconda:
{ 1: -7 }
{ 0: JLYQK 000001 ST, 1: 05003020152, 2: OP2501WTW019836-MB0001, 3: 1738065293, 4: LB, 5: 2.1000, 6: TRUE }
ti dice qualcosa?
l'altra terza stringa è "riservata": could not parse: co.nstant.in.cbor.CborException: Reserved additional information
la stringa originale non si legge facilmente dati questi passi fatti