VS1005 player and recorder

Installing and using VSIDE tools for VLSI Solution's devices that contain a VSDSP signal processor.
divya
User
Posts: 8
Joined: Wed 2017-05-03 6:57

VS1005 player and recorder

Post by divya » Mon 2017-05-08 7:33

Hi,
I am very much new to VLSI products. I have bought VS1005 breakout board.I am not using LCD or buttons. I downloaded and installed VSIDE .My application requirement is :
1) Record and play files either from SD card or USB
2) I am using I2S audio input/output .
I want to control the VS 1005 through microcontroller which should i use UART or SPI?

User avatar
Panu
VLSI Staff
Posts: 2405
Joined: Tue 2010-06-22 13:43

Re: VS1005 player and recorder

Post by Panu » Mon 2017-05-08 8:38

Hi, and welcome to the Forum!

You'll need the VSOS kernel and suitable drivers and applications on the flash. You can communicate with VS1005 using the VSOS command line shell using UART at 115200, N81. From the command line shell you can do everything that you need. First do it by connecting the UART to a PC and typing with the keyboard, and then make your MCU give the same commands.

Download the latest VSIDE to compile and flash the kernel and take small_root from the latest root image zip package to the internal flash. Both can be found from the kernel release thread here in vsdsp forum. Please scan this forum and read posts here and there to get a feeling on how people do stuff with the VS1005.

Further information: viewtopic.php?f=13&t=1500

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

divya
User
Posts: 8
Joined: Wed 2017-05-03 6:57

Re: VS1005 player and recorder

Post by divya » Sat 2017-05-13 6:59

Hi

I download the VSOS kernel drivers .It plays the file by [+p] command but dont give response for other commands how to control them. i am using lcd connected to microcontroller how to read the size and of duration of file in lcd . vs1005 support sd card of how much GB?

divya
User
Posts: 8
Joined: Wed 2017-05-03 6:57

Re: VS1005 player and recorder

Post by divya » Mon 2017-05-15 13:19

Hi,
i have played the song by playfile *.mp3 . How to do other functions like pause , record, forward, backward? also please suggest how to control vs1005 through microcontroller

User avatar
Henrik
VLSI Staff
Posts: 1035
Joined: Tue 2010-06-22 14:10

Re: VS1005 player and recorder

Post by Henrik » Wed 2017-05-17 11:15

Hello!

This is an answer to the message you wrote in another thread:
divya wrote:i used the command playdir [+p] but it does not play the file .
This sounds weird. Is it a normal MP3 file, with an .mp3 extension? What happens? Can you copy here the exact command you enter and copy the output from your terminal program? What happens if you have more than one MP3 file in the same directory?

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

User avatar
Henrik
VLSI Staff
Posts: 1035
Joined: Tue 2010-06-22 14:10

Re: VS1005 player and recorder

Post by Henrik » Wed 2017-05-17 11:35

divya wrote:Hi

I download the VSOS kernel drivers .It plays the file by [+p] command but dont give response for other commands how to control them.
Do you mean PlayDir? Documentation for the control keys are available in the document VS1005 VSOS Shell, Chapter 8, "Using the UART Controlled Player". (Chapter 8.1.2 is incorrectly named "PlayFile Control Keys", it should be "PlayDir Control Keys".) The document is a part of the VSOS 3.40 Root and Libraries Source Code package, available here:
viewtopic.php?f=13&t=680&start=60#p10366
i am using lcd connected to microcontroller how to read the size and of duration of file in lcd
To get file durations of audio files you can enter commands like this one:

Code: Select all

S:>cd d:AUDIO
D: SDSD
D:AUDIO/>dir -a
-    2. AUD00096.WAV    2:11.8  96000 2 2017-05-09 16:29:44 AUD00096.WAV
-    3. AUD00097.WAV    1:22.2  48000 2 2017-05-09 16:31:12 AUD00097.WAV
-    4. AUD00103.WAV  180:00.0  48000 2 2017-05-10 08:13:22 AUD00103.WAV
Note that getting durations for MP3 files is a slow process, so by default "dir -a" shows 0:00.0 for MP3 files. If you want to spend the time to get the durations, type "dir -a +f".
vs1005 support sd card of how much GB?
VS1005 supports large SD Cards if they are formatted to FAT32. Cards up to 32 GB usually come preformatted to FAT32, and Microsoft Windows will format it to FAT32. Cards 64 GB and larger are usually formatted using exFAT which VSOS does not support. Also, Microsoft Windows always formats them to exFAT.

However, if you download the FORMAT.DL3 utility, you can use it to format even larger cards to FAT32. They will also work with other operating systems, like the different Microsoft Windows variants. FORMAT.DL3 is available here:
viewtopic.php?f=13&t=2109

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

User avatar
Henrik
VLSI Staff
Posts: 1035
Joined: Tue 2010-06-22 14:10

Re: VS1005 player and recorder

Post by Henrik » Wed 2017-05-17 11:43

Hello!
divya wrote:also please suggest how to control vs1005 through microcontroller
The easiest way is first to control VS1005 using a terminal program and VSOS Shell, then you can use your microncontroller and UART to give the same commands. So, I suggest UART control.

As for your question of how to record, you can record to Ogg Vorbis or MP3 formats using the "Rec" utility. More information is available in VS1005 VSOS Shell document Chapter 8.2, Rec: Interactive UART Recorder. Example:

Code: Select all

S:>cd d:audio
D: SDSD
D:AUDIO/>rec -fm -q6 mytest.mp3
Recording MP3: 48000 Hz stereo at quality 6
~050a'mytest.mp3
~030a=1
~030a=2
~030a=3
~030a=4
~030a=5
~030a=6
~030a=7
~030a=8
~030a=9
~030a=10
~030a=11
~030a=12
~030a=13
~030a=14
~030a=15
{... I pushed 'q' here to quit recording ...]
~010b=1
D:AUDIO/>auinfo MYTEST.MP3
MYTEST.MP3:
     size: 208.2 KiB
   format: MP3
     conf: 2 channels at 48000 Hz
     time: 0:15.0 seconds
  bitrate: 113.3 kbit/s
  analyze: 0.02 seconds
Kind regards,
- Henrik
Good signatures never die. They just fade away.

divya
User
Posts: 8
Joined: Wed 2017-05-03 6:57

Re: VS1005 player and recorder

Post by divya » Mon 2017-06-12 6:54

Hi
I have another problem related to vs1005. Actually we are adding a feature of recorder to our project digital mixer. For this we are using vs1005 and connected it to msp430 controller.
1. how to read data from vs1005 on LCD (qvga 2.2 TFT SPI 240*320) which is connected to msp430 controller.
2. i am sending command to vs1005 through controller via uart but we can send only one command at a time it makes the code lengthy . is there any other way to control it.

User avatar
Panu
VLSI Staff
Posts: 2405
Joined: Tue 2010-06-22 13:43

Re: VS1005 player and recorder

Post by Panu » Mon 2017-06-12 11:33

Hi!

Hmm, what data do you want to show?

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

divya
User
Posts: 8
Joined: Wed 2017-05-03 6:57

Re: VS1005 player and recorder

Post by divya » Tue 2017-06-13 7:39

like we are in sd mode , name of the file which is playing

Post Reply

Who is online

Users browsing this forum: No registered users