Hi
I changed the msglen in the int routine to 2 , and then it works - but now what if I need to send 4 bytes and then one byte and so on ?
Elseif Canstmob.6 = 1 Then 'transmission ready
Config Canmob = -1 , Bitlen = 11 , Msgobject = Disabled , Msglen = 2 , Clearmob = No
' reconfig with value -1 for the current MOB and do not set ID and MASK
Must I then do this config msglen = xx , set to the nr of bytes to send , prior to sending any data on the CAN bus ?
Cheers
↧