Reputation: 131
I have generated the CAN message using the command cangen -v slcan0
in SocketCAN and then I converted the generated CAN message into a hashed message using cryptographic Hash functions such as SHA-1, SHA-256, MD-5 etc.Is it possible to send this string of message(hashed message) along the CAN bus? or should the string be converted into binary form?.
But if I convert it to binary form it becomes a very huge number a CAN frame would accommodate only 8ytes or 64 bits similarly the hashed message cannot be sent as such in the CAN bus.
what are the other ways by which the hashed message can be sent along the CAN bus to the receiver side?
Attached a screenshot of hashed messages. Here dev.recv()
receives the CAN message generated and then converts it to hash
Upvotes: 1
Views: 3124
Reputation: 58
I suggest the following solution: Convert your data from ASCI to HEX Then send the HEX data Using CAN ISOTP which gives you the possibility to send up to 4095 bytes of payload per message packet, but you have to implement the protocol on both sides first
Upvotes: 0