TSMaster icon indicating copy to clipboard operation
TSMaster copied to clipboard

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

Open dragoudin opened this issue 2 years ago • 3 comments

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)

dragoudin avatar Nov 09 '22 14:11 dragoudin

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

freshhope avatar Nov 09 '22 22:11 freshhope

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

dragoudin avatar Nov 10 '22 09:11 dragoudin

Can I obtain your contact information for remote support

ColinGong123 avatar Jul 05 '24 03:07 ColinGong123