"r" command vs "A" for realtime data

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

"r" command vs "A" for realtime data

Post by ol boy »

I was tracking down a weird pattern on the o"scope today trying to increase the data rate over a 900MHz Xbee module. I was getting 2 different sized replies from the MS2 unit. Both looked too small in size to be the 209 bytes of a single "A" data request. Looking at the MS serial com spec you'd expect to see x00 x07 x41 crc crc crc crc. 7 bytes big, "A" and the 4 CRC bytes. Instead I find

Code: Select all

x00 x07 x72 x00 x07 x00 x00 x00 x51 x48 xD7 xA3 x0E

size of 7, "r", canid of 0, table 7, 0 offset, with a sie of 81 bytes to get, 4 crc bytes.

The ECU replays back with 88 bytes of data. Then sends out

Code: Select all

x00 x07 x72 x00 x07 x00 xD0 x00 x01 xAE x35 xC7 xCA
size of 7, "r", canid of 0, table 7, 208 offset, size of 1 byte, 4 crc bytes.

Then I see

Code: Select all

x00 x02 x00 x01 x36 xDE x22 x69
as a reply.

I know the Xbee can only send a RX packet with upto 100 bytes in one RF transmission. It seems plenty capable of reading the pages from flash to compare the tune.

Just want to know your thoughts.

Thanks Ryan
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: "r" command vs "A" for realtime data

Post by ol boy »

Forgot to add a section of the TSdebug.txt
TSserialDataXbee.txt
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
jsmcortina
Site Admin
Posts: 39615
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: "r" command vs "A" for realtime data

Post by jsmcortina »

'A' fetches everything. 'r 00 07' can be used to fetch just a few bytes or many for more optimal serial usage.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: "r" command vs "A" for realtime data

Post by ol boy »

Is table 7 laid out the same way the ini file shows for an A command? Same offsets and such?

Sent from my SM-G920V using Tapatalk
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
Post Reply