RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 7:22 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Logger Protocol
PostPosted: Tue May 26, 2020 5:07 am 
Offline
Newbie

Joined: Sun Feb 04, 2018 4:15 am
Posts: 5
Hi guys,
i am looking to build a display similar to this one: http://www.romraider.com/forum/viewtopi ... =15&t=9638

I want to feed the signals to the Romraider Logger, but i am not able to write a Plugin myself. And there are similar/suitable Plugins already. Are the Protocols of the Plugins documented somewhere?


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Wed May 27, 2020 1:43 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Every manufacturer has their own protocol and most document them on their support sites.
Plugin code is here: https://github.com/RomRaider/RomRaider/ ... r/external


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Thu May 28, 2020 5:48 am 
Offline
Newbie

Joined: Sun Feb 04, 2018 4:15 am
Posts: 5
Hi,
I found the code already, but I am not able to extract the Protocol from the code. I can program embedded systems, but I never used object oriented programming languages. Maybe someone can guide me a little bit.

I am pretty interested in the plugin for the mrf stealth gauge, because that is basically what I want to copy. Except I want to use an stm32 micro-controller, instead of an Arduino.
The Propertys of the serial communication are pretty simple to read:
Baudrate: 9600
Databits: 8
Parity: no
Stopbits: 1

But after this point, I am pretty helpless. I assume the communication relies on Ascii codes. And I found an enumeration list for the specific Sensors, so I would assume something like this:
Byte0= Type of Sensor (0 - 6)
Byte1= Some kind of seperator, maybe a comma?
Byte2 - 5= The data. E.g for the AFR 14.7, where every character is one byte.

With this, is it possible to set the transmission frequency? Like increase the frequency for Lambda and decrease it for Oil Temperature?

Is there any kind of initialization routine?

Can someone confirm that, and/or point me in the right direction?
Thank you in advance.


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Thu May 28, 2020 8:08 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
The MRF plugin is simply a comma separated string of ASCII characters each representing a float value for the sensors reported.
viewtopic.php?t=6179

If you duplicate the same sensors and the same serial protocol you can read your system using the same plugin.


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Thu May 28, 2020 8:56 am 
Offline
Newbie

Joined: Sun Feb 04, 2018 4:15 am
Posts: 5
Perfect, thank you very much. I will try this soon.

Are there any plans to support Can devices? This would be a pretty simple and versatile way, to feed sensor data to the RR Logger.

Best regards


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Thu May 28, 2020 9:05 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
CAN would be a future development and require a CAN adapter at the logging computer, such as https://www.fischl.de/usbtin/


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Mon Jun 01, 2020 6:39 am 
Offline
Newbie

Joined: Sun Feb 04, 2018 4:15 am
Posts: 5
To test the Plugin, i try to send serial data through a simulated com port.
I send the following data repeatedly:
300.4,1200,30,30,14.6,35,120
The com settings are 9600baud, 8bit, 1 stop bit and no parity.

But the Logger just show zeros. I also tried to add a comma to the end of the sequence. I added the debug file of the Logger. I cant see anything conspicuous there.

What am I doing wrong?

Best regards


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Mon Jun 01, 2020 8:40 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
The log shows no data coming in the COM port. Why a simulated port and not a real port?
If data comes in the port it will be checked and reported by this code.
Code:
String response = connection.readLine();
if (isNullOrEmpty(response)) continue;
LOGGER.trace("MRF Stealth Gauge Response: " + response);

readLine means:
A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Thu Jun 04, 2020 3:13 pm 
Offline
Newbie

Joined: Sun Feb 04, 2018 4:15 am
Posts: 5
I chose the virtual com port, because it is way easier.
The \n at the end of the line was the solution.

Why is the baudrate 9600 bits/s? What is the limitation for this connection?


Best regards


Top
 Profile  
 
 Post subject: Re: Logger Protocol
PostPosted: Thu Jun 04, 2020 5:06 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
9600baud is the rate the MRF device sends data at.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl