Re: Model number detection?

[email protected]
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <[email protected]>
Quoting Christophe Fergeau <[email protected]>:

> Hi,
>
> 2011/3/8  <[email protected]>:
>> I'm trying to use libgpod in a project I'm working on, but I'm not
>> 100% clear on a couple of things.  I'm not sure if I have to set the
>> model type or if libgpod somehow detects it now automatically?  (It
>> seems like on older versions of Amarok and gtkpod there was a dialog
>> to set the model.  In newer versions I don't see a place to set the
>> model.)
>
> It depends. These days, when everything is set up as expected, an
> iPod_Control/Device/SysInfoExtended file is automatically created on
> the iPod when it's plugged in. This is done using udev (or hal). This
> file contains, among other things, the iPod serial number. Using the
> table defined in itdb_device.c, we can then go from serial number to
> iPod model.
> However, if SysInfoExtended doesn't exist, or if itdb_device.c doesn't
> contain the specific iPod model, having a list where to select the
> iPod model can be useful (libgpod needs to know what iPod model it's
> handling so that it can tell if it's a shuffle or not, what kind of
> artwork it supports, ...).
> This could be improved a bit by using the FamilyID SysInfoExtended
> attribute in addition to the serial number. FamilyID can be used to
> identify the ipod type/generation (but not the color), but it's much
> better than nothing :)
>

It doesn't seem to be generated automatically on my system but I ran  
ipod-read-sysinfo-extended and got it.

For testing I also made a temporary SysInfo file by hand and put C381  
in as the model and now it loads music and it works!  Thanks!!


>>
>> One of the iPods I have been trying to test with is a relatively new
>> Shuffle.  In this Apple page: http://support.apple.com/kb/HT1353 it
>> says it is a 4th generation Shuffle, introduced in September of 2010.
>> But in the itdb_device.c file the SHUFFLE_4 values say it is a Bar,
>> button-less, speaking.  Whereas mine is Square, has buttons, speaking.
>>
>> It's model number is MC753LL/A.
>
> This one doesn't seem to be in itdb_device.c, what color is this iPod,
> and what are the last 3 digits of its serial number?
>

I screwed up, that is the Part Number, the Model Number is A1373.   
Does that mean the model number in the itdb_device.c file should be  
"A137" or "1373"?

And it is Green with the Serial Num: CC4DX7P9DFDN

Thanks again
   -Scott

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.