Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] Socket G card newbie Q
@ 2004-03-07 21:42 John McCorquodale
  2004-03-08  0:15 ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: John McCorquodale @ 2004-03-07 21:42 UTC (permalink / raw)
  To: bluez-users

Hi, y'all,

I'm trying to get my socket CF G card to work in my pcmcia slot.  Just trying
to get to the point where I can do an hci scan.  From what I've been able to
glean from the list and howtos, this is my approach:

  1. pcmcia-cs loads G card as serial_cs (minicom on ttyS0 shows a packet
     coming in every half-second or so, but I don't know what baud rate
     I should be using, nor what HCI packets look like, so I can only assume
     that it's correct)

  2. All bluez support built in to kernel (2.6.3-mm2, 2.4.25, 2.4.20 all
     tried with same results)

  3. hciattach ttyS0 csr 230400
     Responds: "Initialization timed out."

Anybody care to kick me a step further in the right direction on this sunny
southern California afternoon?

Thanks,

-mcq


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Socket G card newbie Q
  2004-03-07 21:42 [Bluez-users] Socket G card newbie Q John McCorquodale
@ 2004-03-08  0:15 ` Marcel Holtmann
  2004-03-08  0:21   ` John McCorquodale
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-03-08  0:15 UTC (permalink / raw)
  To: John McCorquodale; +Cc: BlueZ Mailing List

Hi John,

> I'm trying to get my socket CF G card to work in my pcmcia slot.  Just trying
> to get to the point where I can do an hci scan.  From what I've been able to
> glean from the list and howtos, this is my approach:
> 
>   1. pcmcia-cs loads G card as serial_cs (minicom on ttyS0 shows a packet
>      coming in every half-second or so, but I don't know what baud rate
>      I should be using, nor what HCI packets look like, so I can only assume
>      that it's correct)
> 
>   2. All bluez support built in to kernel (2.6.3-mm2, 2.4.25, 2.4.20 all
>      tried with same results)
> 
>   3. hciattach ttyS0 csr 230400
>      Responds: "Initialization timed out."
> 
> Anybody care to kick me a step further in the right direction on this sunny
> southern California afternoon?

you should use "hciattach ttyS0 bcsp 230400", because the Socket card
uses the BCSP transport protocol.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Socket G card newbie Q
  2004-03-08  0:15 ` Marcel Holtmann
@ 2004-03-08  0:21   ` John McCorquodale
  2004-03-08  0:26     ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: John McCorquodale @ 2004-03-08  0:21 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: John McCorquodale, BlueZ Mailing List

Marcel> you should use "hciattach ttyS0 bcsp 230400", because the Socket card
Marcel> uses the BCSP transport protocol.

The other day you said:

Marcel> The Socket 2.5 generation (also know as revision G) is a CSR based
Marcel> serial Bluetooth card. Look at the archives for more details.

And the list seems to indicate that the F card is BCSP and the G card is CSR.
That said, using bcsp yields:

  $ hciattach ttyS0 bcsp 230400
  BCSP initialization timed out

Am I mistaken about the F/G distinction?  Am I correct in using the normal
serial_cs driver in the PCMCIA cardmgr?  Is there something I can run directly
at the serial port that will give me a more verbose dialog than "initialization
timed out", which might indicate some level of partial success?  Could it
be that there's a new G card series out there -- these are brand spankin' new
cards?

Cheers, and thanks,

-mcq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Socket G card newbie Q
  2004-03-08  0:21   ` John McCorquodale
@ 2004-03-08  0:26     ` Marcel Holtmann
  2004-03-08  0:48       ` John McCorquodale
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-03-08  0:26 UTC (permalink / raw)
  To: John McCorquodale; +Cc: BlueZ Mailing List

Hi John,

> The other day you said:
> 
> Marcel> The Socket 2.5 generation (also know as revision G) is a CSR based
> Marcel> serial Bluetooth card. Look at the archives for more details.

a CSR chip can also use BCSP ;)

> And the list seems to indicate that the F card is BCSP and the G card is CSR.
> That said, using bcsp yields:
> 
>   $ hciattach ttyS0 bcsp 230400
>   BCSP initialization timed out

May this is the problem with some serial cards and 2.6. Try 2.4 instead.

> Am I mistaken about the F/G distinction?  Am I correct in using the normal
> serial_cs driver in the PCMCIA cardmgr?  Is there something I can run directly
> at the serial port that will give me a more verbose dialog than "initialization
> timed out", which might indicate some level of partial success?  Could it
> be that there's a new G card series out there -- these are brand spankin' new
> cards?

The revision E and F are Nokia based cards and they need the dtl1_cs
driver. The revision G contains a CSR chip with BCSP.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Socket G card newbie Q
  2004-03-08  0:26     ` Marcel Holtmann
@ 2004-03-08  0:48       ` John McCorquodale
  2004-03-08  1:00         ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: John McCorquodale @ 2004-03-08  0:48 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: John McCorquodale, BlueZ Mailing List

> May this is the problem with some serial cards and 2.6. Try 2.4 instead.

Progress.  2.4.25 produces different behavior:

First time loading it says:
bcsp_recv: Out-of-order packet arrived, expected 1 got 0

Second time loading it says:
Unknown device type or id

In 2.4.20, it always says "Unknown device type or id".

So two questions:

  1) Is there maybe a new G card device id out there, or should I be using
     some other bluez than that which ships with 2.4.25?

  2) Is there a patch for the 2.6 serial problem?

Thanks,

-mcq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Socket G card newbie Q
  2004-03-08  0:48       ` John McCorquodale
@ 2004-03-08  1:00         ` Marcel Holtmann
  2004-03-08  1:11           ` John McCorquodale
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-03-08  1:00 UTC (permalink / raw)
  To: John McCorquodale; +Cc: BlueZ Mailing List

Hi John,

> Progress.  2.4.25 produces different behavior:
> 
> First time loading it says:
> bcsp_recv: Out-of-order packet arrived, expected 1 got 0

this is ok. You can ignore this message.

> Second time loading it says:
> Unknown device type or id

This looks like that your command parameters are wrong.

> In 2.4.20, it always says "Unknown device type or id".

You need to have BCSP enabled for the hci_uart module.

>   1) Is there maybe a new G card device id out there, or should I be using
>      some other bluez than that which ships with 2.4.25?

The 2.4.25 should be fine.

>   2) Is there a patch for the 2.6 serial problem?

Not that I know of. Some cards are working and some are not.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Socket G card newbie Q
  2004-03-08  1:00         ` Marcel Holtmann
@ 2004-03-08  1:11           ` John McCorquodale
  0 siblings, 0 replies; 7+ messages in thread
From: John McCorquodale @ 2004-03-08  1:11 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: John McCorquodale, BlueZ Mailing List

> > First time loading it says:
> > bcsp_recv: Out-of-order packet arrived, expected 1 got 0
> 
> this is ok. You can ignore this message.

Ah, what I didn't notice when it said this is that it was working!  I have an
"up" hci0 for the first time.  An hcitool scan sees my headset.  Groovy!
2.4.25 works.

> > Unknown device type or id
> 
> This looks like that your command parameters are wrong.

Yeah, I can't actually repeat this in 2.4.25 now.  Dunno what I did a minute
ago.

> >   2) Is there a patch for the 2.6 serial problem?
> 
> Not that I know of. Some cards are working and some are not.

Now that I have it going, I'll look into this and see if I can figure out
what's going on.  If I figure it out, I'll send a patch to -devel.

Thanks for your help!

-mcq

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-03-08  1:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-07 21:42 [Bluez-users] Socket G card newbie Q John McCorquodale
2004-03-08  0:15 ` Marcel Holtmann
2004-03-08  0:21   ` John McCorquodale
2004-03-08  0:26     ` Marcel Holtmann
2004-03-08  0:48       ` John McCorquodale
2004-03-08  1:00         ` Marcel Holtmann
2004-03-08  1:11           ` John McCorquodale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox