Moderator: Freon
ll wrote:As promised, My code is up source and all. Please be forgiving, I was in a bit of a rush to put this all together before we leave for our honeymoon.
http://forums.openecu.org/viewtopic.php?t=73
crazymikie wrote:
http://mikeschear.com/SSM/
In there is:
logger_DEVEL3.c - this is the latest version of the program I've been playing with. It's based off the original version Visceral posted, but I've made it easier to add/remove parameters.
Thanks
Mike
higB_0x05 wrote:
It worked:
- Code: Select all
Message: 80 10 F0 1 BF 40
Message: 6 10 F0 1 BF 40 80 F0 10 39 FF A2 10 11 3D 12 59 40 6 73 FA CB A6 2B 81 FE A8 0
80 0 0 0 0 0 0 0 DC 0 0 75 1E 30 C0 F0 22 0 0 43 FB 0 F1 0 0 0 0 0 0 0 F0 B8
TIME RPM MRP IGN AFR KNK SPEED TPS MAF EGT LIT
0.397 721 -10.0 16 14.59 0.0 0.0 1.18 2.99 392 63.5
0.536 720 -10.0 16 14.59 0.0 0.0 1.18 3.03 392 63.5
0.673 712 -10.0 16 14.59 0.0 0.0 1.18 3.03 392 63.5
0.811 702 -10.0 17 14.59 0.0 0.0 1.18 3.03 392 63.5
0.949 700 -9.9 17 14.70 0.0 0.0 1.18 3.06 392 63.5
p.s. im aaronwrx@nasioc[/code]
Visceral wrote:Glad to see all the progress people are making.
west_minist --
My guess is it may be a serial port issue. The program has it hard coded to be /dev/ttyS0. Do you know what com port the openport connector is assosciated with? You may want to try /dev/ttyS1, /dev/ttyS2, etc.
int recvMsg(ecu_t *e, u_int8_t* msg, int len)
{
struct termios oldtio, options;
tcgetattr(e->fd, &oldtio);
tcgetattr(e->fd, &options);
options.c_lflag = 0;
options.c_cc[VTIME] = 10;
options.c_cc[VMIN] = len;
tcsetattr(e->fd, TCSANOW, &options);
int readLen = 0;
printf("Before read\n");
readLen = read(e->fd, msg, len);
printf("After read\n");
tcsetattr(e->fd, TCSANOW, &oldtio);
return readLen;
}
Return to Data Logging Software
Users browsing this forum: No registered users and 2 guests