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

different bitrate for different channels

Open Memo654 opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe.

Currently, the channel in the Bus class interface supports the list/tuple type, but the bitrate type is int. This will result in the same baud rate for all channels when multiple channels are opened.

I want to configure different baud rates for different channels of the same Bus. image

Describe the solution you'd like

I think the data type of the bitrate interface can extended to support list/tuple types, and is the same as that of channel.

Describe alternatives you've considered

None

Additional context

None

Note

I have not retrieved any similar issure. If there are any duplicates, please let me know and I will close this issure.

Memo654 avatar Mar 28 '23 18:03 Memo654

Please use English, so everyone can understand

zariiii9003 avatar Mar 30 '23 15:03 zariiii9003

@zariiii9003 Ok, I update the comment.

Memo654 avatar Mar 31 '23 07:03 Memo654

You could create multiple CanalystIIBus instances with different bitrates. While i see, that it could be useful to accept Sequences for bitrate, that would be quite a big change.

zariiii9003 avatar Mar 31 '23 10:03 zariiii9003

Yeah, It looks like a big chanage. I will change some code when I go off work. Hope it will be helpful in the future.

Memo654 avatar Apr 03 '23 08:04 Memo654