Recording Using Spresense and Analog Microphone 4CH Fails

Asked 2 years ago, Updated 2 years ago, 58 views

Using the Spresense and Analog Microphone 4CH, we created a program that recorded audio every 30 seconds.
The base of the program is "Record in WAV format" in the "Spresense Arduino Tutorial" below, which is changed to record endlessly by changing the file name every 30 seconds.
https://developer.sony.com/develop/spresense/docs/arduino_tutorials_ja.html

When you do this, you will experience rare (about once per hour) recording failures with the following messages:

Attention: module[4][0]attention id[1]/code[6] (objects/media_recorder/audio_recorder_sink.cpp L84)

If you have any suggestions about the cause of this and how to deal with it, could you give me some advice?

spresense

2022-09-29 22:16

1 Answers

It seems that the write speed of the SD card is sometimes extremely slow due to manufacturer and usage.
When I write and delete detailed files, especially when I'm myself,
There were many sectors that were half written, so the writing was very slow.

This error appears when using a slow write SD card.

In this case, the quick format does not improve, but the SD Association has
Improved physical formatting with SD memory card formatter.

https://www.sdcard.org/jp/downloads/formatter/

Also, it seems to depend a lot on the manufacturer.
Toshiba or Sony have a low probability of errors. The cheap SanDisk (fake?) sold on Amazon didn't work at all.

For your information.


2022-09-29 22:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.