Page 1 of 1

C125 RS232 data input

PostPosted: Tue Feb 17, 2015 8:52 pm
by nfsve
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.

Re: C125 RS232 data input

PostPosted: Thu Feb 19, 2015 1:23 pm
by David Ferguson
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?

Re: C125 RS232 data input

PostPosted: Mon Feb 23, 2015 7:54 pm
by nfsve
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.

Re: C125 RS232 data input

PostPosted: Tue Feb 24, 2015 1:12 pm
by David Ferguson
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.

Re: C125 RS232 data input

PostPosted: Sat Mar 14, 2015 8:56 pm
by nfsve
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.

Re: C125 RS232 data input

PostPosted: Sun Mar 15, 2015 1:13 am
by David Ferguson
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?