You can use libraries such as BigInteger and BitSet to help you understand the messages on a hardware bus.