All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Smirnov <svs1957@gmail.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] btsco: Operation not supported
Date: Wed, 11 Apr 2007 10:34:12 +0400	[thread overview]
Message-ID: <461C8164.8010705@gmail.com> (raw)
In-Reply-To: <003e01c77bf3$6270d6a0$9d0cc70a@dlh.st.com>

Sorry for stupid question.
Part of what you want to see?
Problem in function sco_connect of btsco.c:
 static int sco_connect(bdaddr_t * src, bdaddr_t * dst, uint16_t * handle,
                       uint16_t * mtu)
{
        struct sockaddr_sco addr;
        struct sco_conninfo conn;
        struct sco_options opts;
        int s;
        unsigned int size;

        if ((s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO)) < 0) {
                return -1;
        }

        memset(&addr, 0, sizeof(addr));
        addr.sco_family = AF_BLUETOOTH;
        bacpy(&addr.sco_bdaddr, src);
        if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
                close(s);
                return -1;
        }

        memset(&addr, 0, sizeof(addr));
        addr.sco_family = AF_BLUETOOTH;
        bacpy(&addr.sco_bdaddr, dst);
        if (connect(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
                close(s);
                return -1;
        }
...
Here hciconfig -a
hci0:   Type: PCCARD
        BD Address: 00:E0:03:25:7C:36 ACL MTU: 340:4 SCO MTU: 0:0
        UP RUNNING PSCAN ISCAN
        RX bytes:204 acl:0 sco:0 events:15 errors:0
        TX bytes:382 acl:0 sco:0 commands:15 errors:0
        Features: 0xbf 0x00 0x20 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'svs-zaurus-0'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x0 LMP Ver: 1.1 (0x1) LMP Subver: 0x21a
        Manufacturer: Nokia Mobile Phones (1)
It's strange for me that SCO MTU is 0:0
I've tried to change it but its didn't help.

Tell me please what information do you need.
Thanks.

Mayank BATRA wrote:
>> Here is some part of hcidump while sco connect:
>>> HCI Event: Number of Completed Packets (0x13) plen 5
>>     handle 1 packets 1
>>> HCI Event: Command Status (0x0f) plen 4
>>     Add SCO Connection (0x01|0x0007) status 0x11 ncmd 4
>>     Error: Unsupported Feature or Parameter Value
> 
> Can you provide the part showing the Add SCO connection command?
> You might have to try different packet types.
> 
> Best Regards,
> 
> Mayank
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-04-11  6:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10  8:44 [Bluez-devel] btsco: Operation not supported Sergey Smirnov
2007-04-10 12:08 ` Berend Dekens
2007-04-10 12:25   ` Sergey Smirnov
2007-04-11  4:39     ` Mayank BATRA
2007-04-11  6:34       ` Sergey Smirnov [this message]
2007-04-11  6:41         ` Mayank BATRA
2007-04-11  6:53           ` Sergey Smirnov
2007-04-11  7:32           ` Sergey Smirnov
2007-04-11  7:40             ` Mayank BATRA
2007-04-11  8:28               ` Sergey Smirnov
2007-04-11  9:38               ` Sergey Smirnov
2007-04-11  9:41                 ` Mayank BATRA
2007-04-11  7:34         ` Mayank BATRA
2007-04-11  7:48           ` Sergey Smirnov
2007-04-10 13:28   ` Sergey Smirnov

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=461C8164.8010705@gmail.com \
    --to=svs1957@gmail.com \
    --cc=bluez-devel@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 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.