Thank you for you help...
in my case, the identifier will be 11 bits all the time, but the new problem that you mentioned is "if there is no data"....
but maybe in the beginning, i am going to ignore this....and i will assume that i have 8 bytes all the time...so in this case, i will have 130 bits as maximum number of bits.
But still I dont how long is exactly the message.
So I thought that it is good to assume the maximum and try to remove the stuffed bits and then check the message.
I am sending a can frame with CANoe to the FPGA...so I can somehow write what i exactly want.... but the problem in my code that the bits are not the correct place...
SO i was trying the last days to found a typical COMPLETE can frame... so I can test with modelsim....easier to debug