PLUS+1 Software > Communication

custom J1939 RX no source

<< < (2/3) > >>

FluidPowerTom:
I'm not what the VCU is, but if the ECM and VCU message have the same PGN and are coming from the same vehicle I'd expect that they'll have a different source address. 

If you're somehow receiving messages with the exact same CAN ID then your controller will read either one of them more or less randomly.  Sure you could try to ignore it when you receive the one without data and hope that on the next scan you receive the correct one, but it'd be a total crap shoot.  I don't think this is what you're referring to though.  Surely they have different source addresses.

pinias:
Hey FluidpowerTom,

that is correct the ECM and the VCU- Vehicle Contro Unit, renault trucks call it like that- are in the same truck, so yes the difference between the same PGN been broadcasted is the source.

so, if the receive CANblock with ID Mask is going to ignore the source, it will getting both messages, one with valid data and one with wrong data.

that is why I was thinking that I will need some source of logic to capture only the correct data and ignore the wrong data

I guess for now I have to try and see

niteRider:
just curious... why are you wanting to ignore the Source in the first place?  Seems like looking at the Source is exactly what you need to solve the problem you have with VCU vs ECM sending the same PGN but with one having the bogus data...

pinias:
Nite rider,

the problem is that if source is used, then we have to customize the software for each chassy manufacturer.

For instance Kenworth chassy uses source 31, International uses source 21, and hopefully it will not change based on tranmission and engine manufacturer.

I am agree with you if I know the source then no worries but if the source is not matching it will not work

latest test, it was doing that, reading the correct data and the wrong data so it was switching. I have added a selection logic but not tried yet

I tried to use the Danfoss block PGN65264 but it did not work using source or not, that is why I had to go with a regualr CAN Rx function and I was lost on how to ignore the source.

 ;D

acmall:

As FluidPowerTom has said if you ignore the source and receive the messages from both the ECM & VCU there is no guarantee that you will receive the message with the data consistently. What you end up with will depend on transmission rates from both units and the program loop time.

You could store the source in NV memory then you would not need to customise the software for each chassis, just set the correct value for the source from the service tool, a display screen or some other logic.








Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version