public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Source sample custom Bluetooth
Date: Tue, 04 Jan 2005 12:50:35 +0100	[thread overview]
Message-ID: <1104839435.8894.86.camel@pegasus> (raw)
In-Reply-To: <C17DB8CE-5E1A-11D9-8017-000D9348D4BE@magnifeye.com>

Hi Jonathan,

> The stack that I am talking to only supports raw packets.
> 
> So far I am able to do an inquiry and see the device and get its 
> address, type and name. I am unable to connect to it.
> 
> I create a socket
> 
> s = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI);
> 
> then I set up the parameters for the addr
> 
> sockaddr_hci addr
> addr.hci family =  AF_BLUETOOTH;
> addr.hci_dev = 0;
> 
> I then do a bind
> 
> bind(s, (struct sockaddr *)&addr, sizeof(addr));
> 
> I then try a connect
> 
> connect(s, (struct sockaddr *) &addr, sizeof(addr)) and it fails
> 
> What might I be missing here? I cannot find any samples

the HCI raw socket doesn't support connect(). It is not meant for doing
actual data transmission. You must do this all by yourself. Look at the
source code of the hci*.c tools.

Regards

Marcel




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-01-04 11:50 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-24 10:13 [Bluez-users] Error when compiling bluez-utils CoCozZ geek
2004-12-24 12:41 ` Marcel Holtmann
2004-12-25 11:19 ` blookk -
2004-12-25 12:16   ` CoCozZ geek
2004-12-25 13:10     ` Marcel Holtmann
2004-12-25 13:19       ` CoCozZ geek
2004-12-25 13:47         ` Marcel Holtmann
2004-12-25 15:29           ` CoCozZ geek
2004-12-25 15:40             ` Marcel Holtmann
2004-12-25 17:23               ` CoCozZ geek
2004-12-25 17:28                 ` Marcel Holtmann
2004-12-25 17:45                   ` CoCozZ geek
2004-12-25 17:49                     ` Marcel Holtmann
2004-12-25 17:54                       ` CoCozZ geek
2004-12-25 17:58                         ` Marcel Holtmann
2004-12-25 18:08                           ` CoCozZ geek
2004-12-25 18:08                             ` CoCozZ geek
2004-12-25 18:11                               ` CoCozZ geek
2004-12-25 18:32                                 ` CoCozZ geek
2004-12-25 18:48                                   ` Marcel Holtmann
2004-12-27  2:03                                     ` [Bluez-users] How is the CTP in BLUEZ going? Heejune AHN
2004-12-26 19:11                                       ` Brad Midgley
2004-12-27  9:27                                         ` Heejune AHN
2004-12-27  5:26                                       ` Marcel Holtmann
2004-12-27  9:26                                         ` Heejune AHN
2004-12-31 20:30                                         ` [Bluez-users] Source sample custom Bluetooth Jonathan Sass
2005-01-01 18:40                                           ` Marcel Holtmann
2005-01-03 17:14                                             ` Jonathan Sass
2005-01-03 18:20                                               ` Marcel Holtmann
2005-01-03 18:38                                                 ` Jonathan Sass
2005-01-03 18:56                                                   ` Marcel Holtmann
2005-01-04  6:34                                                     ` Jonathan Sass
2005-01-04 11:50                                                       ` Marcel Holtmann [this message]
2005-01-05  3:53                                                         ` Jonathan Sass
2005-01-05 11:44                                                           ` Marcel Holtmann
2005-01-06  0:00                                                             ` Jonathan Sass
2005-01-06 12:34                                                               ` Marcel Holtmann
2005-08-29  6:46         ` [Bluez-users] Bluez PAN (bnep) Supports IP Multicast ? Heejune AHN
2005-08-29  9:43           ` Marcel Holtmann
2005-08-29 11:09             ` Claudio Takahasi
2005-08-29 11:19             ` Heejune AHN
2005-08-29 11:30               ` Marcel Holtmann
2005-09-01 12:05                 ` Heejune AHN
     [not found] <20050101041221.D959F32E17@sc8-sf-spam1.sourceforge.net>
2005-01-01  8:12 ` [Bluez-users] Source sample custom Bluetooth Tom Watson

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=1104839435.8894.86.camel@pegasus \
    --to=marcel@holtmann.org \
    --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