1

Topic: Decoding Error Codes to Byte Codes in CobraNet Discovery (Disco)

There is some confusion regarding how to decode what is shown in the "errorCode" column within Disco and resolve it into a Byte Code that can be researched using the CobraNet Programmer's Reference Manual (available from Cirrus Logic at the CobraNet website).

Please note, the method is different depending on if you are using the CM-1 or CM-2 platforms. The methods are similar, but for the CM-1 platform you use the two most significant digits while for the CM-2 platform you use the two least significant digits. I will detail this below.


CM-1 Platform
1. Read Hexadecimal error code 0x220002 in Disco
2. Convert the FIRST two digits of the Hexadecimal value 0x220002 to decimal notation = 34
3. Look up byte code 34 in Programmer's Reference Manual and see that 34 = Beat Flooded


CM-2 Platform
1. Read Hexadecimal error code 0x1022 in Disco
2. Convert the LAST two digits of the Hexadecimal value 0x1022 to decimal notation = 34
3. Look up byte code 34 in Programmer's Reference Manual and see that 34 = Beat Flooded


-Please note-
When you are using Disco version 4.x and newer, you should be able to read the Hexadecimal value directly from the errorCode column in CobraNet Discovery (Disco). If you are using an older version of Disco you may see just a string of numbers in the errorCode column instead of a Hexadecimal value. The Hexadecimal values are always prefixed with "0x" to note that they are Hexadecimal values so it should be obvious what you are seeing.

If you see a string of numbers in the errorCode column and it is not prefixed with "0x" you need to convert that number to a Hexadecimal value FIRST, then follow the steps outlined above.

For example, if you are using a CM-1 platform you may see a number like: 2228226
Convert the number to Hexadecimal: 0x220002
Now you can see that we are right where we started with the example above with the CM-1 platform.

To continue the example with the CM-2 platform, you may see a number like: 4130
Convert the number to Hexadecimal: 0x1022
...and we are back to the example above.

Have fun and good luck out there!

Josh Millward
Burnt Orange Studios