linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Sending arbitrary data to a connected device
Date: Sat, 26 Nov 2005 20:32:27 +0100	[thread overview]
Message-ID: <1133033547.15981.2.camel@blade> (raw)
In-Reply-To: <200511262023.23140.Loial@home.nl>

Hi Rutger,

> I have a bluetooth device here that has an LCD display. I want to be able to 
> send arbitrary data to the device. This way I can (hopefully) make text 
> appear on the LCD display. The problem is, that I can not find enough 
> documentation to send the arbitrary data. So I'm hoping to find some help 
> here...
> 
> What I have done so far:
> - Open the hci device
> - Create a connection to the LCD device (I have no idea what all the ptype 
> flags (HCI_DM1 etc...) in hci_create_connection do :( ). This gives me a 
> handle to the LCD device.
> - I now can send hci_send_req's by filling in ogf and ocf with e.g. 
> OGF_STATUS_PARAM and OCF_READ_RSSI to read the RSSI.
> 
> But, now I'm stuck. What function can I call to send arbitrary hex data?
> Do I use hci_send_req and fill in other values for ogf/ocf and plug the data 
> into rparam? Or do I use another function? (which??)
> Any help is appreciated!

totally wrong direction. Use sdptool and its various option to discover
the services offered by this LCD device.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2005-11-26 19:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26 19:23 [Bluez-devel] Sending arbitrary data to a connected device Rutger Hendriks
2005-11-26 19:32 ` Marcel Holtmann [this message]
2005-11-28 15:20   ` Rutger Hendriks
2005-11-28 15:29     ` Peter Wippich
2005-11-28 20:12     ` Marcel Holtmann
2005-11-29  9:38       ` Rutger Hendriks
2005-11-29 10:13         ` Marcel Holtmann
2005-11-29 10:46           ` Rutger Hendriks
2005-11-29 13:39             ` Marcel Holtmann
2005-11-29 20:16               ` Collin R. Mulliner

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=1133033547.15981.2.camel@blade \
    --to=marcel@holtmann.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).