C125 RS232 data input

Discussion and support for current Advanced Dash Loggers, Sport Dash Loggers and Club dash loggers

C125 RS232 data input

Postby nfsve on Tue Feb 17, 2015 8:52 pm

Apart from the CAN setup in the other Topic, I am also looking to setup an RS232 input channel.
I am wondering what Device I should choose in the C125 Software RS232 Comms Setup, and how the data format should be.

ASCII CR/LF looks like a possibility, but how should the data be formatted?

Here's what I would like to receive in the dash for example, two 16 bit values sent in ASCII.

A1A2B1B2<CR><LF>

in hex this would be
41 31 41 32 42 31 42 32 0D 0A

and I would like the dash to pull out the A1A2 and display as 41378, and the B1B2 and display as 45490 for example

Any information on this device setting in the C125 software would be appreciated.
nfsve
 
Posts: 11
Joined: Thu Feb 05, 2015 7:08 pm

Re: C125 RS232 data input

Postby David Ferguson on Thu Feb 19, 2015 1:23 pm

So that have you tried?

Did you select Device: ASCII CR/LF?

Did you set the format as Fixed Hex?

Did you set the alignment to Normal?

Did you set the first received channel as length 4 and the second received channel as length 4? Did you try a length of 2?

What data did you send?, and what did it decode as?

Most likely you're going to have to work with MoTeC engineers to solve this. Who is your dealer and why aren't they helping you?
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1394
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California

Re: C125 RS232 data input

Postby nfsve on Mon Feb 23, 2015 7:54 pm

Hey David, I think you are my engineer :)

I'm designing a thermocouple input board, and trying to set up the rs232 as best as possible on the bench.
Once completed I will give it a try. As long as I get something on the dash I should be able to figure it out.
The Rs232 webinar doesn't really go into custom data sets for RS232.
nfsve
 
Posts: 11
Joined: Thu Feb 05, 2015 7:08 pm

Re: C125 RS232 data input

Postby David Ferguson on Tue Feb 24, 2015 1:12 pm

Well I suggest you program your serial interface board to first send some dummy data (heck, you might even be able to use off-the shelf PC programs to do this). With a data stream you can test, then you can figure out the MoTeC via trial and error. It shouldn't take too long to figure out what's what, especially if you can control the data being sent.
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1394
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California

Re: C125 RS232 data input

Postby nfsve on Sat Mar 14, 2015 8:56 pm

Installed this in the car today and programmed the channels into the dash
Sent 7 channels of data, each one 4 bytes (ascii remember) 0000 - FFFF, one after the other, then <cr> <lf>
Device ASCII CR/LF, Format Fixed Hex.
Length of 4 for each channel. Offset 0 for first channel, then 4,8 etc..
Everything worked first go, Really impressed with the software.. well done Motec !

then just adjust your Multiplier, divisor, adder as required.
nfsve
 
Posts: 11
Joined: Thu Feb 05, 2015 7:08 pm

Re: C125 RS232 data input

Postby David Ferguson on Sun Mar 15, 2015 1:13 am

Thanks for the update.

Could you edit your profile to tell us where you live.

I would be interested in learning more about your project. What kind of vehicle? Can you share pics?
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1394
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California


Return to ADL3, SDL3 and CDL3

Who is online

Users browsing this forum: No registered users and 2 guests