kg21 Posted November 16, 2020 Report Share Posted November 16, 2020 Hey guys, I have a G4+ Storm connected to Link MXS Strada 1.2. I wanted to get the fuel gauge working so after a bit of searching I found some threads on the custom CAN streams and downloaded them. I thought I had it figured out as I got it to display values (sometimes) but the values don't always match the values in the ECU. I am using AN V 3 for the fuel level sensor. So the weird thing that it does is as follows, ANV3 scaled (0.5-4v ish) so it shows tank 80% full then the dash will show 80% ANV3 scaled (0.5-3V ish) so it shows a value of 67% the dash suddenly shows 7% ANV3 scaled (0.5-2v) so it shows a value of 55% the dash then shows 105% I'm somewhat perplexed how scaling the analog input is effecting how different the value in the dash is compared to the value in the ECU. Shouldn't the ECU just send the value? if the offset or factor was fixed that could be worked with but it doesn't seem to be. Also it doesn't seem to transmit if it is set to 16bit, only when set to 8bit. I have updated everything to the latest firmware to see if that fixed it. alas it did not. I've tried setting things up fresh probably 4 times now, tried offsets and anything else I can think of. I'm sure it's something i'm doing wrong, first time working with CAN so directly but i'm out of ideas. Help would be greatly appreciated! LINK_Generic Custom_Fuel_Level.xc1 Link_MXS_Strada_Custom_Stream_Fuel_Level.lcs E30_KG1_modelled_4.pclr Quote Link to comment Share on other sites More sharing options...
Adamw Posted November 16, 2020 Report Share Posted November 16, 2020 You are trying to send numbers larger than 8 bits can take. A GP input calibrated in percent has a 0.1% resolution. So 0-100% fuel level is 0-1000 over CAN. 8 bits can only take up to 255. So you can fix it in two ways. At the link end you could divide by ten so that 0-100% goes out as 0-100 over CAN, or you can leave it as 0.1% resolution but make it 2 bytes/16 bits wide. Try the attached, both converted to 16bits. E30_KG1_modelled_5.pclr LINK_Generic Custom01_@20170524_021339_007952.xc1 Quote Link to comment Share on other sites More sharing options...
kg21 Posted November 17, 2020 Author Report Share Posted November 17, 2020 Thanks for the reply. I had tried both those ways, and I got --- at the dash weirdly. Weirdly the only way I actually got figures was 8 bit transmission with no division, multiplication, offset. I will try again today though and try your configuration. Maybe there was something I missed at the time. Thanks. Quote Link to comment Share on other sites More sharing options...
kg21 Posted November 17, 2020 Author Report Share Posted November 17, 2020 Hi mate Just tried it out, needed to set it to 16bit & /10 for it to show up but all working now. Thanks so much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.