Can you set the serial logging to send "Poll" command over rs232 to get data?

Hi everyone

I’m hoping there’s a hidden feature in the serial logging capability.

I have an application where the device (a jet turbine ecu) requires a poll command to be sent via rs232 before it will respond with the sensor data.

Is this “polling” type of communication supported by the OLA or do I have to do some coding and recompilation?

Hi @brianthechemist ,

Sadly, no, the OLA does not support that… With some extensive updates, it might be possible to define a Poll command via the menus and send that out periodically.

Is the ECU serial data the only thing you’re interested in logging, or do you want to log data from other sensors at the same time?

The easiest way forward would be to write ECU-logging code and run that on a separate board. We have plenty of boards now that have a microSD socket on-board for data logging. Synchronise the clocks (perhaps to GPS / GNSS) and use the timestamps to merge your two data sets afterward.

I hope this helps,

Paul

You might use a second controller like a pro mini to periodically send a poll command. Might be easier than changing the firmware on the AOL.

That’s a way better idea…

It would be even easier if the OLA had a ‘trigger output’ which you could use to tell the mini to send the poll command. It has been requested but I’ve never had the time to implement it:

https://github.com/sparkfun/OpenLog_Artemis/issues/91

For now, simple periodic polling is the way forward.

The OLA does have options to include the time in the logged serial data - if you tell it what the end-of-line ‘token’ is (usually \n or \r). This makes it easier to compare the logged serial data to the sensor data.

Yes, I have a number of other sensors (all analog) so having them all synchronized is essential.

Hmm, I was thinking it might be possible to set another micro to request the polling and then just have the Artemis listen and log everything. that would save me the trouble of implementing CD code on another controller.