sparkfun / OpenLog

Open Source Hardware Datalogger
https://www.sparkfun.com/products/9530
Other
547 stars 215 forks source link

Garbled Data, No Serial RX #220

Closed BigDave365 closed 6 years ago

BigDave365 commented 6 years ago

Garbled Data, No Serial

I cannot seem to get my Open Log to work properly.

Lights work as described in wiki. Will create a config file on sd card. Will record data file on sd card.

Data fed from GPS is totally garbled. GPS data tested good via FTDI and terminal (9600,8,N,1).

Data is also corrupted if sent directly to OpenLog via FTDI.

Openlog will NOT generate a prompt, or go in command mode.

Openlog will not reflash via Arduino IDE.

I reflashed via USBASP with clips, same result.

Any Ideas?

nseidle commented 6 years ago

Hmm, did you use a cross over board to align the tx pin of openlog to the rx pin of your terminal?

On Tue, Jul 10, 2018, 10:01 PM BigDave365 notifications@github.com wrote:

Garbled Data, No Serial

I cannot seem to get my Open Log to work properly.

Lights work as described in wiki. Will create a config file on sd card. Will record data file on sd card.

Data fed from GPS is totally garbled. GPS data tested good via FTDI and terminal (9600,8,N,1).

Data is also corrupted if sent directly to OpenLog via FTDI.

Openlog will NOT generate a prompt, or go in command mode.

Openlog will not reflash via Arduino IDE.

I reflashed via USBASP with clips, same result.

Any Ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sparkfun/OpenLog/issues/220, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHJbmAgNpHS0VlzUeVD68QCjt7jgGDNks5uFXiegaJpZM4VKdID .

BigDave365 commented 6 years ago

You mean OpenLog TX to FTDI RX and vice versa? Yes, I check it backwards as well, and the Openlog receives no data.

Is there any way to get an older copy of the firmware to give that a try?

Thanks for the help!

-Dave

nseidle commented 6 years ago

You can compile from the source (it's just an Arduino sketch with a lib or two). Also, I had the sketch handy so I compiled it.

OpenLog HEX.zip

This version might be slightly non-production: I was doing some work on the other issue (SPI current consumption).

BigDave365 commented 6 years ago

I got it sorted...what an adventure.

Thanks for the help. I did end up using your .Hex file, but the root of the problem was I was using a chip from bare metal and did not program the fuses. The defaults will give the results I had (no response to serial and garbage data).

For those that might need them, here is what worked for me with Avrdude and a UsbASP:

High = 0xD6 Low = 0xFF Ex = 0x05

Lock Bit = 0x0F

Thanks again for the project and help.

-Dave

nseidle commented 6 years ago

That is good news! Just so I understand, you have your own ATmega328P+microSD design/setup? Not one of our OpenLogs? I ask because I'm always trying to make our issue system better. Next time I'll be sure to specifically ask what a user's setup is.