CAN Receive - data timeout?
Moderators: jsmcortina, muythaibxr
CAN Receive - data timeout?
Hi guys,
Im trying to use can receive to pull some 11bit can data from an electric power steering system so i can log it.
I've set it up as reading into a CANADC, then into a generic sensor which i view in TS.
The value seen in TS flickers between the correctly read value and 0 (or 1024 depending on data format) very often.
The EPS system is only sending out the can packet about once every second.
Is the flickering caused by some kind of MS3 can read timeout or something else?
Thanks once again
Im trying to use can receive to pull some 11bit can data from an electric power steering system so i can log it.
I've set it up as reading into a CANADC, then into a generic sensor which i view in TS.
The value seen in TS flickers between the correctly read value and 0 (or 1024 depending on data format) very often.
The EPS system is only sending out the can packet about once every second.
Is the flickering caused by some kind of MS3 can read timeout or something else?
Thanks once again
Toyota Celica GT4/Alltrac with 5S-GTE stroker (2.2L I4 turbo, high CR) on E85 w/FlexFuel.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: CAN Receive - data timeout?
That may be a stupid question but are you reading ADCs from the TinyIOx?
Also, posting your msq and a datalog would be helpful.
Jean
Also, posting your msq and a datalog would be helpful.
Jean
Re: CAN Receive - data timeout?
Doh! Yup, thats it.
CANADC selection is reading 1-4 and 5-8 from the TinyIOx.
I'm only using 1-5 though, and forgot i then couldn't use 6,7,8.
I'll move the can receiving up to CANADC10 tomorrow and give it a go.
That will probably fix it then i guess.
Thanks once again Jean.
This MS3 setup is pretty complex, so i keep missing little things like this
CANADC selection is reading 1-4 and 5-8 from the TinyIOx.
I'm only using 1-5 though, and forgot i then couldn't use 6,7,8.
I'll move the can receiving up to CANADC10 tomorrow and give it a go.
That will probably fix it then i guess.
Thanks once again Jean.
This MS3 setup is pretty complex, so i keep missing little things like this
Toyota Celica GT4/Alltrac with 5S-GTE stroker (2.2L I4 turbo, high CR) on E85 w/FlexFuel.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: CAN Receive - data timeout?
It is complex when you start interacting with many CAN devices (in addition to the many MS3 settings).
Maybe the MS3 should be checking for that type of conflict. This way you'd be getting an error message if you attempt to receive a CANADC that's already being polled.
Jean
Maybe the MS3 should be checking for that type of conflict. This way you'd be getting an error message if you attempt to receive a CANADC that's already being polled.
Jean
Re: CAN Receive - data timeout?
Yeah, that would be handy.
Or at least having these similar settings in the same dialog box.
Or at least having these similar settings in the same dialog box.
Toyota Celica GT4/Alltrac with 5S-GTE stroker (2.2L I4 turbo, high CR) on E85 w/FlexFuel.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
Re: CAN Receive - data timeout?
The next problem is i need to read a signed 12bit value (the top 4 bits of the high byte are used for something else).
I gather there is no easy way to do this, so ill be editing the 1.4.0 source (thanks for getting this up so quickly James!!).
It would be nice if this could be added to the MS3 FW, but i know that its impossible to support every odd combination like this.
It'll be great when its working though, ill be displaying steering wheel angle (along with a heap of other MS3 data) on in-car videos using RaceRender
I gather there is no easy way to do this, so ill be editing the 1.4.0 source (thanks for getting this up so quickly James!!).
It would be nice if this could be added to the MS3 FW, but i know that its impossible to support every odd combination like this.
It'll be great when its working though, ill be displaying steering wheel angle (along with a heap of other MS3 data) on in-car videos using RaceRender
Toyota Celica GT4/Alltrac with 5S-GTE stroker (2.2L I4 turbo, high CR) on E85 w/FlexFuel.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: CAN Receive - data timeout?
Actually, just adding a mask to the list of parameters would allow the user to do what you want. And I don't think this is something that exceptional so it would be useful to add in my opinion. You'd need to have a mask up to 4 bytes long and the code would have to extend the sign the correct way. The multiply and divide fields would have to be used to shift the bits as needed.
Jean
Jean
Re: CAN Receive - data timeout?
After just modifying the source, i had exactly the same thought
Give the 32bit mask option, and have the FW also shift right to the first used mask bit (would remove the need for a right shift & mask fields).
Give the 32bit mask option, and have the FW also shift right to the first used mask bit (would remove the need for a right shift & mask fields).
Toyota Celica GT4/Alltrac with 5S-GTE stroker (2.2L I4 turbo, high CR) on E85 w/FlexFuel.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.