|
RomRaider
Documentation
Community
Developers
|
|
Page 1 of 1
|
[ 10 posts ] |
|
| Author |
Message |
|
rubmack
|
Post subject: Logger Protocol Posted: Tue May 26, 2020 5:07 am |
|
 |
| 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=9638I 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 |
|
 |
|
dschultz
|
Post subject: Re: Logger Protocol Posted: Wed May 27, 2020 1:43 pm |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
| Top |
|
 |
|
rubmack
|
Post subject: Re: Logger Protocol Posted: Thu May 28, 2020 5:48 am |
|
 |
| 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 |
|
 |
|
dschultz
|
Post subject: Re: Logger Protocol Posted: Thu May 28, 2020 8:08 am |
|
 |
| 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=6179If you duplicate the same sensors and the same serial protocol you can read your system using the same plugin.
|
|
| Top |
|
 |
|
rubmack
|
Post subject: Re: Logger Protocol Posted: Thu May 28, 2020 8:56 am |
|
 |
| 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 |
|
 |
|
dschultz
|
Post subject: Re: Logger Protocol Posted: Thu May 28, 2020 9:05 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
| Top |
|
 |
|
rubmack
|
Post subject: Re: Logger Protocol Posted: Mon Jun 01, 2020 6:39 am |
|
 |
| 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 |
|
 |
|
dschultz
|
Post subject: Re: Logger Protocol Posted: Mon Jun 01, 2020 8:40 am |
|
 |
| 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 |
|
 |
|
rubmack
|
Post subject: Re: Logger Protocol Posted: Thu Jun 04, 2020 3:13 pm |
|
 |
| 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 |
|
 |
|
dschultz
|
Post subject: Re: Logger Protocol Posted: Thu Jun 04, 2020 5:06 pm |
|
 |
| 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 |
|
 |
|
Page 1 of 1
|
[ 10 posts ] |
|
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
|
|