Re: Model number detection?
Christophe Fergeau <[email protected]>
| Newsgroups | gmane.comp.ipod.gtkpod |
|---|---|
| Message-ID | <[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 :) > > 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? Thanks! Christophe ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d