VS1005 4-channel HiRes Recorder

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
User avatar
Henrik
VLSI Staff
Posts: 1271
Joined: Tue 2010-06-22 14:10

Re: VS1005 4-channel HiRes Recorder v1.00

Post by Henrik »

Dear Forum Members,

for quite some time there has existed a need to overhaul the HiRes Recorder.

The existing HiRes Recorder has a few issues:
1) It is large, barely fitting in VS1005's memory, so there is no room for expansion.
2) Updating the LCD is time-critical: update too much at a time, and recording may get interrupted.
3) There is no tool chain for creating custom grraphics.

This is about to change. This message is the first of several that we are going to release before end of December 2020. The HiRes Recorder has been split into three, separate parts:
- A HiRes Recorder Server HRServer.dl3.
- A HiRes Playback Server HPServer.dl3.
- A Text-Based User Interface Client HRTxtCln.dl3.

Together these can be used to implement a HiRes Recorder with playback functionality. During the next few weeks, we will release another example client, this time with graphics, and a tool chain that can be used to create custom graphics.

I hope this new model is useful for everyone intending to create new, exciting user interfaces using the HiRes Recorder framework.

Kind regards,
- Henrik
Attachments
HiResRec_Bob2_v100.pdf
Documentation for the new HiRes Recorder v1.00
(362.76 KiB) Downloaded 230 times
HPServer_v100.zip
HiRes Playback Server v1.00
(10.42 KiB) Downloaded 173 times
HRServer_v100.zip
HiRes Recorder Server v1.00
(40.67 KiB) Downloaded 181 times
HRTxtCln_v100.zip
HiRes Recorder text-based example client v1.00
(15.71 KiB) Downloaded 173 times
Good signatures never die. They just fade away.
Arkantium
User
Posts: 9
Joined: Tue 2022-06-07 16:32

Re: VS1005 4-channel HiRes Recorder

Post by Arkantium »

Good morning,

We are doing some tests with your MK2 BreakBoard using the HiResRec, and everything is working fine using de UART cable connected to our laptop, but, for our particular project we would need to use it without any keyboard, serial monitor or display.

Is it possible to use this commands, for instance, with switches, jumpers connected to some pins, or even buttons?
If that would not be possible, could that be used with delays? I mean, start recording when power on and record audios in blocks of certain time?

We are not software experts so, we would apreciate any help, template or piece of code to start with.

Many thanks,

Kind regards.
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1005 4-channel HiRes Recorder

Post by Hannu »

Hello and welcome to the forum.

Automatic start: hiresrec +p

There is already GPIO control and it is one define USE_DEVBOARD_KEYS to change to enable or disable. Those pins are GPIO0_0:3. A button which pulls pin high would be best, because those pins set also selects boot config. Dev board schematics: https://www.vlsi.fi/fileadmin/evaluatio ... 18-sch.pdf

The buttons are:
PLAYBACK GPIO0_0 / S1
PAUSE GPIO0_1 / S2
STOP GPIO0_2 / S3
RECORD GPIO0_3 /S4
Arkantium
User
Posts: 9
Joined: Tue 2022-06-07 16:32

Re: VS1005 4-channel HiRes Recorder

Post by Arkantium »

Hannu wrote: Wed 2022-06-08 12:24 Hello and welcome to the forum.

Automatic start: hiresrec +p

There is already GPIO control and it is one define USE_DEVBOARD_KEYS to change to enable or disable. Those pins are GPIO0_0:3. A button which pulls pin high would be best, because those pins set also selects boot config. Dev board schematics: https://www.vlsi.fi/fileadmin/evaluatio ... 18-sch.pdf

The buttons are:
PLAYBACK GPIO0_0 / S1
PAUSE GPIO0_1 / S2
STOP GPIO0_2 / S3
RECORD GPIO0_3 /S4

Good morning Hannu, and thanks a lot for your answer, it helped a lot.
We realized that HiResRec only can record .wav files, and they are too heavy for our prototype, so we are trying to use the "Rec" solution, which is letting us to choose the file type as .mp3 or .ogg, which are enough quality for our purpose.

But we have some new problems here:

1) When maximum size file is limited or "n" case is pressed, it stops recording and prepare a new file incrementing the number of file, but it never continues recording, and, if the sistem is restarted, it starts as "0" again.
Here you are the text that appears in PuTTy:

Hello.
VSOS 3.63 build Mar 18 2021 14:14:50
VLSI Solution Oy 2012-2021 - www.vlsi.fi

Starting the kernel..
Starting Devices...
Internal Flash

Installed system devices:
S: 896K SPI Flash c213, handled by FAT.
Load drivers, config 0...
Driver: UARTIN...
Driver: RUN... SetClock -l 87 86
Driver: AUODAC...
Driver: AUIADC... Input 0x0440 Rate 48000
Driver: RUN... AuOutput -s4096
Driver: RUN... AuInput -s4096
Driver: AUXPLAY... E'AUXPLAY not found'
not loaded
Driver: SDSDMN23... D: SD + VS23S040

Driver: Rec... Recording Ogg Vorbis: 48000 Hz stereo at quality 7
~050a'D:REC000.ogg
~030a=1
~030a=2
~030a=3
~030a=4
~030a=5
~030a=6
~030a=7
~030a=8
~050a'D:REC001.ogg


As you can see, it starts as REC000 and then stops, generate a name REC001 but never continues. Could you guide us to make it work please?

2) Is there any way to make it work using the pins as you told us for the HiResRec?

Many thanks

Kind regards.
User avatar
Henrik
VLSI Staff
Posts: 1271
Joined: Tue 2010-06-22 14:10

Re: VS1005 4-channel HiRes Recorder

Post by Henrik »

Hello Arkantium!

I have prepared an answer for you. However, as the answer is regarding the program Rec and not the HiRes Recorder, I have made a new thread for the discussion. It is available here:
viewtopic.php?f=13&p=15361

Kind regards,
- Henrik
Good signatures never die. They just fade away.
Post Reply