All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] phone+heaset
@ 2004-01-07 18:59 João Santos
  2004-01-07 23:44 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: João Santos @ 2004-01-07 18:59 UTC (permalink / raw)
  To: bluez-users

hi all,

I want to use the casira as a headset of a 6310i, using a headphone/speaker 
in the pc.

i have made a rfcomm connection to the phone using:

[root@olivia test]# rfcomm connect /dev/rfcomm0 00:60:57:15:8A:A9 12
Connected /dev/rfcomm0 to 00:60:57:15:8A:A9 on channel 12
Press CTRL-C for hangup

and using the test application scotest in the bluez-utils-2.3 i have:

[root@olivia test]# ./scotest -r  00:60:57:15:8A:A9
scotest[30657]: Waiting for connection ...
scotest[30657]: Connect from 00:60:57:15:8A:A9

then i click in any button an the app pass to the recv mode

scotest[30657]: Receiving ...recv_mode()


scotest[30657]: Read failed. Connection reset by peer(104)
scotest[30657]: Disconnect

but i don't receve any data in my buffer.
When i stop pushing the buttons for a while, i recebe -1 in my read() 
function and the appl disconnect.

what is the problem!!
thanks

João Santos

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] phone+heaset
  2004-01-07 18:59 [Bluez-users] phone+heaset João Santos
@ 2004-01-07 23:44 ` Marcel Holtmann
  0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-01-07 23:44 UTC (permalink / raw)
  To: João Santos; +Cc: BlueZ Mailing List

Hi Joao,

> I want to use the casira as a headset of a 6310i, using a headphone/speaker 
> in the pc.
> 
> i have made a rfcomm connection to the phone using:
> 
> [root@olivia test]# rfcomm connect /dev/rfcomm0 00:60:57:15:8A:A9 12
> Connected /dev/rfcomm0 to 00:60:57:15:8A:A9 on channel 12
> Press CTRL-C for hangup
> 
> and using the test application scotest in the bluez-utils-2.3 i have:
> 
> [root@olivia test]# ./scotest -r  00:60:57:15:8A:A9
> scotest[30657]: Waiting for connection ...
> scotest[30657]: Connect from 00:60:57:15:8A:A9
> 
> then i click in any button an the app pass to the recv mode
> 
> scotest[30657]: Receiving ...recv_mode()
> 
> 
> scotest[30657]: Read failed. Connection reset by peer(104)
> scotest[30657]: Disconnect
> 
> but i don't receve any data in my buffer.
> When i stop pushing the buttons for a while, i recebe -1 in my read() 
> function and the appl disconnect.
> 
> what is the problem!!

check SCO mapping of your Casira.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] phone+heaset
@ 2004-01-08 13:36 João Santos
  2004-01-08 17:31 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: João Santos @ 2004-01-08 13:36 UTC (permalink / raw)
  To: marcel; +Cc: bluez-users

Hi Marcel,

>check SCO mapping of your Casira.

I think you are talking about this:

[root@olivia scoinfo-0.1]# ./scoinfo -i hci0
PSKEY_HOSTIO_MAP_SCO_PCM: 0x00

and this means that the SCO traffic goes over HCI, as you already told me.

So what is the problem.

thanks,
João Santos.

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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

* Re: [Bluez-users] phone+heaset
  2004-01-08 13:36 João Santos
@ 2004-01-08 17:31 ` Marcel Holtmann
  0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-01-08 17:31 UTC (permalink / raw)
  To: João Santos; +Cc: BlueZ Mailing List

Hi Joao,

> I think you are talking about this:
> 
> [root@olivia scoinfo-0.1]# ./scoinfo -i hci0
> PSKEY_HOSTIO_MAP_SCO_PCM: 0x00
> 
> and this means that the SCO traffic goes over HCI, as you already told me.
> 
> So what is the problem.

do you read the headset profile specification? You have to answer the AT
commands on the RFCOMM channel. Look at hstest.c for an example.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] phone+heaset
@ 2004-01-08 18:55 João Santos
  2004-01-08 18:59 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: João Santos @ 2004-01-08 18:55 UTC (permalink / raw)
  To: marcel; +Cc: bluez-users

hi marcel,


>do you read the headset profile specification? You have to answer the AT
>commands on the RFCOMM channel. Look at hstest.c for an example.
I already had read the hset profile specification and i had change the 
program hstest.c to send at+ckpd=200 instead of ring (used if i want to make 
a sco link between the pc and a bluetooth headset), and nothing, i dont 
receve any sco data.

I also try make a rfcomm connection using
[root@olivia /]# rfcomm connect /dev/rfcomm0 00:60:57:15:8A:A9 12
Connected /dev/rfcomm0 to 00:60:57:15:8A:A9 on channel 12
Press CTRL-C for hangup

Sending next the at command at+ckpd=200 whit the minicom app, i receve ok.
and then execute the scotest app.
The scotest  create a sco link and stay waiting in the function accept(), 
till any button in the phone is press.
Then the app waits in the read() function waiting for sco data from the 
phone.

thanks

regards
João Santos

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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

* Re: [Bluez-users] phone+heaset
  2004-01-08 18:55 João Santos
@ 2004-01-08 18:59 ` Marcel Holtmann
  0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-01-08 18:59 UTC (permalink / raw)
  To: João Santos; +Cc: BlueZ Mailing List

Hi Joao,

> I already had read the hset profile specification and i had change the 
> program hstest.c to send at+ckpd=200 instead of ring (used if i want to make 
> a sco link between the pc and a bluetooth headset), and nothing, i dont 
> receve any sco data.

read it again, because if I am not wrong only the headset can send
+ckpd=200. And you also have to answer any command from the headset with
ok or error.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] phone+heaset
@ 2004-01-09 11:18 João Santos
  2004-01-09 14:13 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: João Santos @ 2004-01-09 11:18 UTC (permalink / raw)
  To: marcel; +Cc: bluez-users


Hi marcel,

>read it again, because if I am not wrong only the headset can send
>+ckpd=200. And you also have to answer any command from the headset with
>ok or error.

i think i'm doing it right, because is the pc, that i want to work like a 
headset of the phone, who send the +ckpd=200, and receve a ok from the 
phone.

thanks

João Santos

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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

* Re: [Bluez-users] phone+heaset
  2004-01-09 11:18 João Santos
@ 2004-01-09 14:13 ` Marcel Holtmann
  0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-01-09 14:13 UTC (permalink / raw)
  To: João Santos; +Cc: BlueZ Mailing List

Hi Joao,

> >read it again, because if I am not wrong only the headset can send
> >+ckpd=200. And you also have to answer any command from the headset with
> >ok or error.
> 
> i think i'm doing it right, because is the pc, that i want to work like a 
> headset of the phone, who send the +ckpd=200, and receve a ok from the 
> phone.

in that case you have to wait for the incoming SCO connection from your
phone. I have not so much time to read the headset profile again, but
from what I remember is that the phone have to establish the SCO link if
the headset sends +ckpd=200. Check the specification by yourself.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] phone+heaset
@ 2004-01-26 16:55 João Santos
  2004-01-26 17:04 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: João Santos @ 2004-01-26 16:55 UTC (permalink / raw)
  To: marcel; +Cc: bluez-users

Hi Marcel,

> > >ACL data: handle 0x0028 flags 0x02 dlen 21
> >     L2CAP(d): cid 0x41 len 17 [psm 1]
> >         SDP SA Req: tid 0x53 len 0xc
> >           hndl 0x804f738
> >           max 0xff
> >           aid(s) 0x0302 ((null))
> >           cont 00
> > < ACL data: handle 0x0028 flags 0x02 dlen 14
> >     L2CAP(d): cid 0x41 len 10 [psm 1]
> >         SDP SA Rsp: tid 0x53 len 0x5
> >           cnt 0x2
> >
> >           cont 00
>
>it seems that your problem is here. The SDP record must be correct
>otherwise it won't work.

Thanks for answer my last question.
could you explain me better what's the problem, i think i 'm doing it right:

[root@olivia jsantos]# sdptool browse local
Browsing FF:FF:FF:00:00:00 ...
Service Name: SDP Server
Service Description: Bluetooth service discovery server
Service Provider: BlueZ
Service RecHandle: 0x0
Service Class ID List:
  "SDP Server" (0x1000)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 1
    Version: 0x0001
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

Service Name: Public Browse Group Root
Service Description: Root of public browse hierarchy
Service Provider: BlueZ
Service RecHandle: 0x804cd30
Service Class ID List:
  "Browse Group Descriptor" (0x1001)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

Service Name: Headset
Service RecHandle: 0x804f728
Service Class ID List:
  "Headset" (0x1108)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 12
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100



[root@olivia jsantos]# sdptool search HSET
Inquiring ...
Searching for HSET on 00:60:57:15:8A:A9 ...
Service Name: Audio Gateway
Service RecHandle: 0x10002
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 12
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100


Thanks in advance,
Regards,

João Santos

_________________________________________________________________
Find high-speed ‘net deals — comparison-shop your local providers here. 
https://broadband.msn.com

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

* Re: [Bluez-users] phone+heaset
  2004-01-26 16:55 João Santos
@ 2004-01-26 17:04 ` Marcel Holtmann
  0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-01-26 17:04 UTC (permalink / raw)
  To: João Santos; +Cc: BlueZ Mailing List

Hi Joao,

> > > >ACL data: handle 0x0028 flags 0x02 dlen 21
> > >     L2CAP(d): cid 0x41 len 17 [psm 1]
> > >         SDP SA Req: tid 0x53 len 0xc
> > >           hndl 0x804f738
> > >           max 0xff
> > >           aid(s) 0x0302 ((null))
> > >           cont 00
> > > < ACL data: handle 0x0028 flags 0x02 dlen 14
> > >     L2CAP(d): cid 0x41 len 10 [psm 1]
> > >         SDP SA Rsp: tid 0x53 len 0x5
> > >           cnt 0x2
> > >
> > >           cont 00
> >
> >it seems that your problem is here. The SDP record must be correct
> >otherwise it won't work.
> 
> Thanks for answer my last question.
> could you explain me better what's the problem, i think i 'm doing it right:

it requests the attribute 0x0302 and it is not in your record. This is
the record for the HBH-10. Look at it and compare.

Sequence
        Attribute 0x0000 - Service record handle
                UINT32 0x00010000
        Attribute 0x0001 - Service class ID list
                Sequence
                        UUID16 0x1203 - Generic Audio
                        UUID16 0x1108 - Headset
        Attribute 0x0004 - Protocol descriptor list
                Sequence
                        Sequence
                                UUID16 0x0100 - L2CAP
                        Sequence
                                UUID16 0x0003 - RFCOMM
                                UINT8 0x06
        Attribute 0x0009 - Bluetooth profile descriptor list
                Sequence
                        Sequence
                                UUID16 0x1108 - Headset
                                UINT16 0x0100
        Attribute 0x0100
                String Headset
        Attribute 0x0302
                Bool True

Regards

Marcel




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-01-26 17:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-07 18:59 [Bluez-users] phone+heaset João Santos
2004-01-07 23:44 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2004-01-08 13:36 João Santos
2004-01-08 17:31 ` Marcel Holtmann
2004-01-08 18:55 João Santos
2004-01-08 18:59 ` Marcel Holtmann
2004-01-09 11:18 João Santos
2004-01-09 14:13 ` Marcel Holtmann
2004-01-26 16:55 João Santos
2004-01-26 17:04 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.