PDA

View Full Version : Customizing SB - barcode scanner



Andre V. Logunov
2004-04-16, 17:03
Not much of an electronic engineer, but is there a way to add a barcode
scanner (say, instead of IR Remote module)?

Regards, Andre


-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of
discuss-request (AT) lists (DOT) slimdevices.com
Sent: Saturday, April 17, 2004 5:32 AM
To: discuss (AT) lists (DOT) slimdevices.com
Subject: Discuss Digest, Vol 6, Issue 31

Send Discuss mailing list submissions to
discuss (AT) lists (DOT) slimdevices.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.slimdevices.com/lists/listinfo/discuss
or, via email, send a message with subject or body 'help' to
discuss-request (AT) lists (DOT) slimdevices.com

You can reach the person managing the list at
discuss-owner (AT) lists (DOT) slimdevices.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Discuss digest..."

Pat Farrell
2004-04-16, 18:22
At 08:03 PM 4/16/2004, Andre V. Logunov wrote:
>Not much of an electronic engineer, but is there a way to add a barcode
>scanner (say, instead of IR Remote module)?

Can you be a little more specific about what you are trying to do?
In general, barcode scanners just grab characters from the barcode
of a real object and act as if they've typed into a field in a form.
When you see barcodes in use, the software expects a barcode string
and looks things up in a database.

While CDs have barcodes, most music software does not know how to use it.
The barcode is printed on the CD case's rear card, and is not associated
with the CD or its content.

Most music library software reads the CD and track information and
generates a magic value (CDDB id) and that is what is looked up in
the database.

The SlimServer HTML pages use words, not magic values, so it
searches for artist name, album name, etc.

You could do it, and I don't see it needing any electrical engineering,
but it sure would need software programming. And maybe a lot of typing
or the purchase of barcode-to-album data.

Pat

Roy M. Silvernail
2004-04-16, 22:41
On Fri, 2004-04-16 at 21:22, Pat Farrell wrote:

> While CDs have barcodes, most music software does not know how to use
> it.
> The barcode is printed on the CD case's rear card, and is not
> associated
> with the CD or its content.

Actually, it is, but not in the same way as the CDDB ID is. That
barcode is a UPC (Universal Product Code). A couple years back when
Radio Shack was giving away those CueCat scanners, there was some effort
to either locate or assemble a cross-reference for UPC <-> CD since we'd
figured out how to decode the kitty's output. It's actually a fairly
capable little scanner. I'll have to dig up my archives of the barcode
list and see what may have come of it.

Of course, I'm not suggesting connecting a CueCat up to a Squeezebox.
(the Cat actually is a keyboard wedge) And like you, I'm not quite sure
of the utility of a barcode scanner hooked up to an SB. But I couldn't
resist throwing in this little aside.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss
http://www.rant-central.com

Peter Bowyer
2004-04-17, 00:32
Roy M. Silvernail <roy (AT) rant-central (DOT) com> wrote:
> On Fri, 2004-04-16 at 21:22, Pat Farrell wrote:
>
>> While CDs have barcodes, most music software does not know how to use
>> it.
>> The barcode is printed on the CD case's rear card, and is not
>> associated
>> with the CD or its content.
>
> Actually, it is, but not in the same way as the CDDB ID is. That
> barcode is a UPC (Universal Product Code). A couple years back when
> Radio Shack was giving away those CueCat scanners, there was some
> effort to either locate or assemble a cross-reference for UPC <-> CD
> since we'd figured out how to decode the kitty's output. It's
> actually a fairly capable little scanner. I'll have to dig up my
> archives of the barcode list and see what may have come of it.
>

I haven't tried this, but you can probably use the Net::Amazon module or
Amazon's APIs directly to look up UPCs and get album details.

Peter

Pat Farrell
2004-04-17, 00:39
At 03:32 AM 4/17/2004, Peter Bowyer wrote:
>Roy M. Silvernail <roy (AT) rant-central (DOT) com> wrote:
> > Actually, it is, but not in the same way as the CDDB ID is. That
>
>I haven't tried this, but you can probably use the Net::Amazon module or
>Amazon's APIs directly to look up UPCs and get album details.

You are correct in that Amazon's APIs accept UPCs, but
depending on what you want, that may not do much good.
Amazon will tell you the price and things related to
inventory (usually artist, album name, etc.)
but they don't have any of the stuff related to CDDB, specifically
track/song names. Well, they have it sometimes, but not usually.

Back to the original question, it really depends on what
you are trying to do with the barcode. I am having a hard
time imagining a use for a barcode scanner, I sure
don't want all the jewel cases laying arround so I can scan
the CD to play. I may be suffering from a lack of imagination here.

Pat

Tom Newton
2004-04-17, 02:55
Roy M. Silvernail wrote:

> On Fri, 2004-04-16 at 21:22, Pat Farrell wrote:
>

>> The barcode is printed on the CD case's rear card, and is not
>> associated
>> with the CD or its content.
>
> Actually, it is, but not in the same way as the CDDB ID is. That
> barcode is a UPC (Universal Product Code). A couple years back when

Hm, there's always the possibility of course, of printing your own book of
barcodes which you can keep by your SP and people can pick songs from a
paper book and add them to the playlist with the scanner. You know the
mappings because you generated your own arbitrary code for each song..
kinda like those books they used to have with karaoke machines...

--

Tom Newton