Openlog Logging Garbage values

Board: Nano RP2040
Product Link: https://www.flyrobo.in/openlog-cleanflight-naze32-f3-blackbox-flash-recorder-module?search=openlog&description=true
Issue: I am getting garbage values in log files on default openlog config. I also tried printing like this : Serial1.print("2022-AS050I,1:2:24,43,4654,765,8,8,7:4:6,345,324,213,1,21,335,432,443.4535,434.23545,245,34,232,2,3,4,5,2,4,2,32,4,3\r"); but still I get garbage values only.
LOG File:
LOG00010.TXT (3.9 KB)
Config:
config.txt (59 Bytes)

Photos:


Code:

void setup() {
  Serial1.begin(9600);
  // put your setup code here, to run once:
}
void loop() {
  Serial1.println("2022-AS050I,1:2:24,43,4654,765,8,8,7:4:6,345,324,213,1,21,335,432,443.4535,434.23545,245,34,232,2,3,4,5,2,4,2,32,4,3");
  delay(1000);
  // put your main code here, to run repeatedly:
}

It looks like you connected the RAW pin of OpenLog to 3V3 on the Nano RP2040. That doesn't work as the RAW pin needs at least about 4V to create the internal 3.3V of the OpenLog board using the on-board voltage regulator.

The specs on Sparkfun's website mention the input voltage to be anywhere between 3.3-12 V. Is it possible that the Openlog I bought has wrong firmware since its not made by Sparkfun?

I found the issue. The default baud rate is 4800 for my board. I want it to be 9600 bps but the config file already has 9600 in it and also changing the baud in config to 115200 bps also returns garbage values only.

I set the baud to 19200 in config and serial1 baud to 9600 and the log files are now perfect, no garbage values :slight_smile: . So basically, the actual baud is half of what is written in the config file.

But why? Are other things half or double what they should be in the board you are using? Or what?

It would be good to understand. I don't want to place testing at half or double a band rate to get things to go on the A B C of things to try.

a7

No, they aren't. I also use an xbee at 115200 bps and it works when I set 115200 bps in serial port

Hi.
I had the same issue. I looked so many websites but there was not much info. Then I tried what you said and it worked for 57600 baud rate. I wrote 115200 to config file like you said and send data at 57600 but i need 115200 baud rate. I wrote 230400 to config and I send data at 115200 and it did not work like 57600. Why do you think it is? Do you guys know a solution?

I tried writing 230400 in config file and 115200 baud rate in arduino and it works fine. Also, this is the max baud rate. When I go above 230400, garbage data is logged.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.