python-can-isotp icon indicating copy to clipboard operation
python-can-isotp copied to clipboard

Send Normal_11bits frame receive Normal_29bits frame

Open DanielKupiniak opened this issue 5 years ago • 4 comments

Hi, is it possible to mix can id types for one stack? I want to send a standard frame but receive extended.

DanielKupiniak avatar May 14 '20 15:05 DanielKupiniak

Hi, it is not possible to do so right now.

A quick workaround would be to convert the 29 bits ID to an arbitrary 11bits ID that the stack will accept (or the other way around).

I will look a the feasability to implement this during the weekend.

pylessard avatar May 14 '20 15:05 pylessard

Thanks for the tip, I will try to use it

DanielKupiniak avatar May 14 '20 15:05 DanielKupiniak

What do you think to create a class:

class Address.CanID(object):
     self.id
     self.addressingMode or self.is_extended

I know it will break interface, but also will limit the number of arguments to Address cls What I see from the code and thanks to its modularity changes needs to be applied only in Address cls <Good Job>

DanielKupiniak avatar May 15 '20 09:05 DanielKupiniak

Hi, there seems to be no graceful solution to this that won't break the interfaces. I will come up with something, but it may take some time. Sorry if there's a delay, I don't have much time now.

pylessard avatar Jun 08 '20 00:06 pylessard

I'm looking into this now. Will be possible in v2.0

pylessard avatar Oct 23 '23 03:10 pylessard

This is implemented in PR #107

pylessard avatar Jan 03 '24 05:01 pylessard

Fixed by #107. Will be part of v2.x Release will be done in January 2024

pylessard avatar Jan 03 '24 16:01 pylessard