From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-users] Source sample custom Bluetooth From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: References: <4dfd570904122402134ec2fd32@mail.gmail.com> <4dfd570904122509237f2a2f48@mail.gmail.com> <1103995727.8758.31.camel@pegasus> <4dfd570904122509451e811d7a@mail.gmail.com> <1103996976.8758.34.camel@pegasus> <4dfd5709041225095410f71a46@mail.gmail.com> <1103997529.8758.36.camel@pegasus> <4dfd570904122510081a9bfa7@mail.gmail.com> <4dfd570904122510085371c17b@mail.gmail.com> <4dfd57090412251011705f52be@mail.gmail.com> <4dfd5709041225103246f6934c@mail.gmail.com> <1104000494.8758.46.camel@pegasus> <002601c4ebb8$4de24200$020ba8c0@heejune> <1104125195.9393.12.camel@pegasus> <1104604846.4253.1.camel@pegasus> <1104776407.8894.53.camel@pegasus> <1104778613.8894.62.camel@pegasus> Content-Type: text/plain Message-Id: <1104839435.8894.86.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 04 Jan 2005 12:50:35 +0100 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