Linux bluetooth development
 help / color / mirror / Atom feed
From: "Dan ABITBOL" <d.abitbol@bloophone.com>
To: <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] QOS issues
Date: Wed, 2 Nov 2005 16:20:08 +0100	[thread overview]
Message-ID: <00cd01c5dfc0$eecfae30$f3a265c3@Silicium> (raw)

we are facing some issues concerning QOS requirements on a l2cap connection.

 Does Bluez fully support QOS  because in the setsockopt method or 
getsockopt
 method, there's no QOS values to fill or retrieve ..

 When the connection has been completed ,  we use the
 hci_send_request(..OGF_LINK_POLICY, OCF_QOS_SETUP....) primitives but we 
get
 "protocol not available 92" error    with CSR class 1 and Broadcom class 1 
USB dongles ?


 Here is the code in our L2CAP  listening method  once the connection has
 occured  and the socket already created

WORD handle = 0;
struct l2cap_conninfo info;
int infoSize = sizeof(info);
if( getsockopt(my_connect_socket, SOL_L2CAP, L2CAP_CONNINFO, &info,
(socklen_t*)&infoSize) < 0 ) {
printf("Can't get L2CAP options. %s(%d)", strerror(errno), errno); return
false;
}
 handle = info.hci_handle;
 qos_setup_cp qosSetupParams;
 qosSetupParams.handle = handle;
 qosSetupParams.flags = 0;                          /* Reserved */
 qosSetupParams.qos.service_type = 0x02;            /* Guaranteed */
 qosSetupParams.qos.token_rate = 0x00004250;        /* 32kbps + overhead */
 qosSetupParams.qos.peak_bandwidth = 0xFFFFFFFF;    /* Unspecified bwdth */
 qosSetupParams.qos.latency = 4000;                 /* In microseconds */
 qosSetupParams.qos.delay_variation = 0xFFFFFFFF;   /* Do not care */

 struct hci_request request;
 request.ogf = OGF_LINK_POLICY;
 request.ocf = OCF_QOS_SETUP;
 request.cparam = &qosSetupParams;
 request.clen = QOS_SETUP_CP_SIZE;
 if (hci_send_reqmy_connect_socket, &request, 1000) < 0) {
  printf("Can't set QoS on connection. %s(%d)\n", strerror(errno), errno);
 }

 printf("CBluetooth_Socket: connect() succeeded\n");
 return true;




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

                 reply	other threads:[~2005-11-02 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00cd01c5dfc0$eecfae30$f3a265c3@Silicium' \
    --to=d.abitbol@bloophone.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox