TOSUN-Shanghai / TSMaster

A powerful open environment for automotive bus monitoring, simulation, testing, diagnostics, calibration and so on. It supports all kinds of mainstream hardware such as TOSUN, Vector, IXXAT, PEAK, Kvaser, Intrepidcs, ZLG, CANable, CandleLight, cantact and so on. Free for research and education purpose for some features.
http://www.tosunai.cn/
GNU Lesser General Public License v2.1
262 stars 41 forks source link

Support for multiplex ranges #83

Open Zultanic opened 1 year ago

Zultanic commented 1 year ago

Hi, Thank you for the awesome software.

Request: I am trying to use multiplexing where the multiplexed signal can have a range of values that activate it. This is supported in dbc files like with the entry shown below. SG_MULVAL 2566573056 multiplexed_signal multiplexor_signal 0-0, 8-8;

Current Behavior: The multiplexed_signal is only activated when the multiplex value in "m0" or "m8" is used and does not consider the other numbers in the range

freshhope commented 1 year ago

Hi Zultanic,

could you provide this dbc for me to check? Thank you

Zultanic commented 1 year ago

Hi freshhope, thanks for the response

I have attached an example dbc file that I hope illustrates the issue. I have one message, one multiplexor signal and three multiplexed examples.

I also found this documentation on extended multiplexing from Vector, maybe it will help to understand the formatting.

ColinGong123 commented 1 week ago

Hi Zultanic,We tested using the latest version of TSMaster V2024.6.27, and the trace window was able to properly parse all values of the multiplexer. If you have any questions during testing, you can leave your email and we will provide assistance through remote control. 1720148298583