Dear,
I am tryinf to find the version of my OpenLog but I cna not
I read, I need to ender '?' at command mode, then I tried this without success.
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println(F("Begin"));
pinMode(4,OUTPUT); // Reset OpenLog
uint8_t answer = 0;
unsigned int timeout = 3000;
unsigned long previous;
previous = millis();
Serial.println(F("Rest"));
// Rest OpenLog
digitalWrite(4, LOW);
delay(100);
digitalWrite(4, HIGH);
// Wait for OpenLog to indicate file is open and ready for writing
do{
if(Serial.available())
{
if(Serial.read() == '<')
{
answer = 1;
}
}
}while((answer <= 0) && ((millis() - previous) < timeout));
Serial.write(26);
Serial.write(26);
Serial.write(26);
//Serial.println(F("Command mode"));
bool ok = false;
while(!ok)
{
if(Serial.available())
{
if(Serial.read() == '>')
{
ok = true;
}
}
}
//Serial.println(F("Help"));
Serial.print("append TEXT.TXT");
Serial.write(13);
while(1) {
if(Serial.available())
if(Serial.read() == '<') break;
}
Serial.print("toto");
Serial.write(13);
Serial.write(26);
Serial.write(26);
Serial.write(26);
//Serial.println(F("Command mode"));
ok = false;
while(!ok)
{
if(Serial.available())
{
if(Serial.read() == '>')
{
ok = true;
}
}
}
//Serial.println(F("Help"));
Serial.print("?");
Serial.write(13);
}
void loop() {
// put your main code here, to run repeatedly:
}
I can not see anythin about card
My config file is
9600,26,3,0,1,1,0
baud,escape,esc#,mode,verb,echo,ignoreRX
Someone know how to do that simple task?
Thank a lot