I am new to Openlog and am using an older firmware version (1.5). I’m interfacing it with Arduino Duemilanov.
The Openlog device I’m using enters command mode with just ONE Ctrl+z and doesn’t have the CONFIG.txt feature to change the default settings.
I was trying to change the baud rate of the Openlog from the default to 57600 through Arduino but it hasn’t been working.
The code I wrote is below.
I’d appreciate any suggestions/help. Thanks.
#include <NewSoftSerial.h>
#define RXPIN 2
#define TXPIN 3
NewSoftSerial mySerial(RXPIN,TXPIN); //where OpenLog is connected
void configure_OpenLog(int baud) {
if (baud == 9600) {
return;
}
mySerial.print(26, BYTE);
mySerial.print(13, BYTE);
mySerial.print("baud ");
mySerial.println(baud);
}
void setup() {
pinMode(RXPIN, INPUT);
pinMode(TXPIN, OUTPUT);
pinMode(13, OUTPUT);
mySerial.begin(9600);
configure_OpenLog(57600);
}
void loop() {
//Blink LED when done
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}