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

[C Script Editor] [Bug] Function can_rbs_get_signal_value_by_address not available in callback #82

Open dragoudin opened 1 year ago

dragoudin commented 1 year ago

Create a callback function on_can_rx_NewOn_CAN_Rx2

Call function to extract signal value (I put signal path from database ) com.can_rbs_get_signal_value_by_address("0/G_CAN/Vehicle/Can_Frame_CanDataIn_0/DevSig_RX_Byte_0" , &d)

This function always sets my data to 0 (my data in can bus are not 0)

freshhope commented 1 year ago

this function requires: [1] rbs is running [2] network g_can is active [3] node vehicle is active [4] can_frame_candatain_0 is checked

check above

dragoudin commented 1 year ago

I executed recommendations. I can capture data now.

But there is still a problem. I call the function on Rx event new message. The data I get are data of previous message (not last reveived message (data are always delayed of 1 message) I compared data on ACAN->FData and the one from function can_rbs_get_signal_value_by_address in the callback function, and there is a data mismatch

ColinGong123 commented 1 week ago

Can I obtain your contact information for remote support