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: <6653F70C-5ECD-11D9-8017-000D9348D4BE@magnifeye.com> 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> <1104839435.8894.86.camel@pegasus> <6653F70C-5ECD-11D9-8017-000D9348D4BE@magnifeye.com> Content-Type: text/plain Message-Id: <1104925461.4299.8.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: Wed, 05 Jan 2005 12:44:21 +0100 Hi Jonathan, > I have looked at the hcitool.c program and I am stuck by my lack of > understanding. The cmd_cmd seems like what I want to do to read data > from my custom device. What I want to do is given a device address, I > want to read bytes from it and occasionally write to it. Is there a > code fragment that you can point me to? the HCI raw socket uses H4 as protocol with one packet per read or write operation. The cmd_cmd() is not what you want, because you wanna send data packets and not a HCI command. > From the person who wrote the stack on our device. > > This is a connect device with a ACL DH5 packet type. The transfers are > standard ACL L2CAP packets from the remote. The remote appears to the > host as a master device, pushing down ACL packets when a button is > pressed. So do it uses L2CAP or not? However if not, why don't you get your device fixed to response to L2CAP. Relying on ACL data packets is not the best idea to get this working reliable. 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