Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ToS

Pages: [1]
1
Developers Corner / Id3v1 tag
« on: 23.02.2007 at 12:50:06 »
Not tested nor compiled for ypod... just a first try... Would be nice if someone could add code to get song length in sec...

Reference used: http://www.id3.org/ID3v1

I did not include the comment field.. Easy to do, but is it worth the bits ?


Some nice place.. helpers.h ?

extern  char* pTitle;
extern  char* pArti;
extern  short sYear;
extern  char  cGenre;

At startup set all to NULL, ... main.c somewhere...

in helpers.c, function play_file

In the begining of function...

 char* pCBuffer;

An then after:

if (playstate.ps_fd != NULL)
   {
      iprintf("open ok\n");

  if (pTitle != NULL) free(pTitle);
  if (pArti != NULL) free(pArti);

if (fatlseek(playstate.ps_fd, -128, SEEK_END ) != 0) {
    pCBuffer = (char*)malloc(128);
FATFileRead(playstate.ps_fd, pCBuffer, 128);

     if (memcmp(pCBuffer, "TAG", 3) == 0) {
        pTitle = (char*)malloc(strlen(pCBuffer+3));
        strcpy(pTitle,pCBuffer+3);
        pArti = (char*)malloc(strlen(pCBuffer+33));
        strcpy(pArti, pCBuffer+33);
        sYear = ((pCBuffer[93]-48)*1000)+((pCBuffer[94]-48)*100)+((pCBuffer[95]-48)*10)+(pCBuffer[96]-48);
        cGenre = pCBuffer[127];
      }

free(pCBuffer);

}
fatlseek(fd,0,SEEK_SET);
}

/ToS





2
Software / Problem with 2Gb SD ?
« on: 14.02.2007 at 18:36:14 »
CanĀ“t get my player to play any songs...  ???

In the folder list, the icons for file/folder are just a square pixel pattern, not random, so data seems to be read in som errornous way,
from the SD card. However, the text file can be displayed ok... Have tried to format the SD with FS FAT, and FAT32 from explorer, and from command promt (XP) specific FAT32, 512bytes/sec. But no luck so far.

was not able to run the sam7flash.exe, "...application configuration is incorrect. Reinstalling the...." I think I have encountered this at work with apps we developed in C++ in MSVC, some dll that is required perhaps...

/ToS

3
Hardware / ATMega questions
« on: 09.12.2003 at 13:25:28 »
Hello
First some backround facts....

In hanggliding you use a altimeter with a variometer function, a device that tells you if you are going up or down and your altitude. (Pressure recalculated to a altitude).

I have built my own vario, using the Basic Stamp SX chip, a spi pressure sensor, 2line serial lcd, piezo summer. Some buttons to navigate and enable/disable functions.

In version 2 of the vario, i used a palm III as display, with a RS232 link between the stamp & palm.

Now, I was inspired by the yampp to migrate this proj. to ATMega, 3310 display, still using my spi pressure sensor, and adding a extra spi pressure sensor to meassure the airspeed.
A temp sensor (spi), and with an future option of adding gps onboard (oem solution, ttl or 232 com.), or via rs-232.

And to the q...

Is the letAtWork module a god platform to base my prodject at ? (I don't have the skills to make a circuit board/ Will use weroboard).

What else are needed to develop for the letAtWork module ?

My sensor operates at 3.3v, is it possible to use a 3.3v battery (mobile phone type) to feed the letAtWork module ?

The sound circuit in the existing design really sucks... A piezo summer with fixed freq. Just creating a pulsating sound when altitude increases, the time between the sound pulses reflects the rate. Is it a better solution to produce the sound with pwm ?

Hope for some input !

/Tomas (tos@fullyfledged.com)

Pages: [1]