OPENLOG - how do i log serial data with ODD Parity

I need to log serial data that is configured at 8Data,ODD Parity,1Stop.

The Openlog by default is configured for 8,n,1

has anybody recompiled for odd parity, or does anybody know how to change code to suit.

I can’t help with changing the code unfortunately but if you wanted to leave the OpenLog in it’s stock condition, it shouldn’t be too hard to setup another micro controller to receive data on one port with odd parity and spit out the same data on another port with even parity.

The Arduino reference for [Serial.begin has details on changing the data, parity and stop bits and modifying a [serial pass through sketch with that information might be easier and less risky than modifying the firmware in the OpenLog.](https://www.arduino.cc/en/Tutorial/SerialPassthrough)](Serial.begin() - Arduino Reference)

:slight_smile:

TS-Chris:
I can’t help with changing the code unfortunately but if you wanted to leave the OpenLog in it’s stock condition, it shouldn’t be too hard to setup another micro controller to receive data on one port with odd parity and spit out the same data on another port with even parity.

Thanks Chris - i think your idea will be the simplest. I’ll make a micro do some BIT manipulation to create a parity bit and passthrough to the OPENLOG.

The Arduino reference for [Serial.begin has details on changing the data, parity and stop bits and modifying a [serial pass through sketch with that information might be easier and less risky than modifying the firmware in the OpenLog.
[/quote]](https://www.arduino.cc/en/Tutorial/SerialPassthrough)](Serial.begin() - Arduino Reference)

It is no problem to change the code for OpenLog. I’ve done it many times and I’m surprised that a Sparkfun employee would caution you against doing so.

Be sure to use a 3.3V connection with OpenLog, for both logging and program uploading. If the data source is 5V, use a voltage divider, a logic level converter, or at the very least put a 4.7K resistor in series with source TX and OpenLog RX.