linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Sending arbitrary data to a connected device
@ 2005-11-26 19:23 Rutger Hendriks
  2005-11-26 19:32 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Rutger Hendriks @ 2005-11-26 19:23 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

Hi all,

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!

Greetings
Rutger Hendriks

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-26 19:23 [Bluez-devel] Sending arbitrary data to a connected device Rutger Hendriks
@ 2005-11-26 19:32 ` Marcel Holtmann
  2005-11-28 15:20   ` Rutger Hendriks
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-11-26 19:32 UTC (permalink / raw)
  To: bluez-devel

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-26 19:32 ` Marcel Holtmann
@ 2005-11-28 15:20   ` Rutger Hendriks
  2005-11-28 15:29     ` Peter Wippich
  2005-11-28 20:12     ` Marcel Holtmann
  0 siblings, 2 replies; 10+ messages in thread
From: Rutger Hendriks @ 2005-11-28 15:20 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

On Saturday 26 November 2005 20:32, Marcel Holtmann wrote:
> 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...
> >
> > But, now I'm stuck. What function can I call to send arbitrary hex data?
>
> totally wrong direction. Use sdptool and its various option to discover
> the services offered by this LCD device.
>
> Regards
>
> Marcel

Hi Marcel,

sdptool finds the LCD device supports the HID service (which I already 
knew :P ) What I do not know is how I can send data to the device (using 
HID). Any pointers to docs/example code ?

Thanks!
Rutger

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-28 15:20   ` Rutger Hendriks
@ 2005-11-28 15:29     ` Peter Wippich
  2005-11-28 20:12     ` Marcel Holtmann
  1 sibling, 0 replies; 10+ messages in thread
From: Peter Wippich @ 2005-11-28 15:29 UTC (permalink / raw)
  To: bluez-devel


Hi,

get the HID SPec from www.usb.org and the hid profile documentation from
www.bluetooth.org. HID devices usualy export structures which describes
their capabilities and how to use them.

Ciao,

Peter


On Mon, 28 Nov 2005, Rutger Hendriks wrote:

> On Saturday 26 November 2005 20:32, Marcel Holtmann wrote:
> > 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...
> > >
> > > But, now I'm stuck. What function can I call to send arbitrary hex data?
> >
> > totally wrong direction. Use sdptool and its various option to discover
> > the services offered by this LCD device.
> >
> > Regards
> >
> > Marcel
>
> Hi Marcel,
>
> sdptool finds the LCD device supports the HID service (which I already
> knew :P ) What I do not know is how I can send data to the device (using
> HID). Any pointers to docs/example code ?
>
> Thanks!
> Rutger
>

|	Peter Wippich 			Voice: +49 30 46776411		|
|	G&W Instruments GmbH		fax:   +49 30 46776419		|
|	Gustav-Meyer-Allee 25, Geb. 12	Email: pewi@gw-instruments.de	|
|	D-13355 Berlin  / Germany					|




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  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
  1 sibling, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-11-28 20:12 UTC (permalink / raw)
  To: bluez-devel

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...
> > >
> > > But, now I'm stuck. What function can I call to send arbitrary hex data?
> >
> > totally wrong direction. Use sdptool and its various option to discover
> > the services offered by this LCD device.
> 
> sdptool finds the LCD device supports the HID service (which I already 
> knew :P ) What I do not know is how I can send data to the device (using 
> HID). Any pointers to docs/example code ?

don't tell me that it is one of the Logitech diNovo devices. If it is
is, please see my comments about it on the mailing list. Otherwise send
in details about that 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-28 20:12     ` Marcel Holtmann
@ 2005-11-29  9:38       ` Rutger Hendriks
  2005-11-29 10:13         ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Rutger Hendriks @ 2005-11-29  9:38 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]

On Monday 28 November 2005 21:12, Marcel Holtmann wrote:
> 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...
> > > >
> > > > But, now I'm stuck. What function can I call to send arbitrary hex
> > > > data?
> > >
> > > totally wrong direction. Use sdptool and its various option to discover
> > > the services offered by this LCD device.
> >
> > sdptool finds the LCD device supports the HID service (which I already
> > knew :P ) What I do not know is how I can send data to the device (using
> > HID). Any pointers to docs/example code ?
>
> don't tell me that it is one of the Logitech diNovo devices. If it is
> is, please see my comments about it on the mailing list. Otherwise send
> in details about that device.

Actually, it is one of the Logitech diNovo devices (the mediapad). I know you 
did some work on it (in december 2003) and that all information about it is 
lost, but I'm willing to try to redo your work. It will be a nice pastime, I 
hope :)

I have searched the archives in the past and could not find anything, but now 
I looked again and I've finally found the messages in which you describe some 
of your findings!

I will read through all I can find and see if there is anything in there I can 
use, which will probably be the case :) I already saw you were using report ID 
16 and 17, so I will try that too.

Greetings
Rutger

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-29  9:38       ` Rutger Hendriks
@ 2005-11-29 10:13         ` Marcel Holtmann
  2005-11-29 10:46           ` Rutger Hendriks
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-11-29 10:13 UTC (permalink / raw)
  To: bluez-devel

Hi Rutger,

> > > sdptool finds the LCD device supports the HID service (which I already
> > > knew :P ) What I do not know is how I can send data to the device (using
> > > HID). Any pointers to docs/example code ?
> >
> > don't tell me that it is one of the Logitech diNovo devices. If it is
> > is, please see my comments about it on the mailing list. Otherwise send
> > in details about that device.
> 
> Actually, it is one of the Logitech diNovo devices (the mediapad). I know you 
> did some work on it (in december 2003) and that all information about it is 
> lost, but I'm willing to try to redo your work. It will be a nice pastime, I 
> hope :)

why don't you tell us from the start what kind of device it is.

> I have searched the archives in the past and could not find anything, but now 
> I looked again and I've finally found the messages in which you describe some 
> of your findings!
> 
> I will read through all I can find and see if there is anything in there I can 
> use, which will probably be the case :) I already saw you were using report ID 
> 16 and 17, so I will try that too.

You need to send and receive reports with ID 16 and 17. Both have fixed
length and 16 was for the short messages and 17 for the long messages if
I remember that correctly. They are the same we used for switching the
dongle from HID into HCI mode.

The problem is to get these reports to the device. The HIDP kernel
module with the report protocol (see -mh patch) lacks hiddev support.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-29 10:13         ` Marcel Holtmann
@ 2005-11-29 10:46           ` Rutger Hendriks
  2005-11-29 13:39             ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Rutger Hendriks @ 2005-11-29 10:46 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 970 bytes --]

On Tuesday 29 November 2005 11:13, Marcel Holtmann wrote:
> Hi Rutger,
> > Actually, it is one of the Logitech diNovo devices (the mediapad). I know
> > you did some work on it (in december 2003) and that all information about
> > it is lost, but I'm willing to try to redo your work. It will be a nice
> > pastime, I hope :)
>
> why don't you tell us from the start what kind of device it is.

Sorry about that.

> > I already saw you were using report ID 16 and 17, so I will try that too.
>
> You need to send and receive reports with ID 16 and 17. Both have fixed
> length and 16 was for the short messages and 17 for the long messages if
> I remember that correctly. They are the same we used for switching the
> dongle from HID into HCI mode.
>
> The problem is to get these reports to the device. The HIDP kernel
> module with the report protocol (see -mh patch) lacks hiddev support.

Is there a specific reason for the lack of hiddev support?

Greetings
Rutger

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-29 10:46           ` Rutger Hendriks
@ 2005-11-29 13:39             ` Marcel Holtmann
  2005-11-29 20:16               ` Collin R. Mulliner
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-11-29 13:39 UTC (permalink / raw)
  To: bluez-devel

Hi Rutger,

> > > I already saw you were using report ID 16 and 17, so I will try that too.
> >
> > You need to send and receive reports with ID 16 and 17. Both have fixed
> > length and 16 was for the short messages and 17 for the long messages if
> > I remember that correctly. They are the same we used for switching the
> > dongle from HID into HCI mode.
> >
> > The problem is to get these reports to the device. The HIDP kernel
> > module with the report protocol (see -mh patch) lacks hiddev support.
> 
> Is there a specific reason for the lack of hiddev support?

basically its because of lack of time and my report protocol patch is
still considered a hack by me.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] Sending arbitrary data to a connected device
  2005-11-29 13:39             ` Marcel Holtmann
@ 2005-11-29 20:16               ` Collin R. Mulliner
  0 siblings, 0 replies; 10+ messages in thread
From: Collin R. Mulliner @ 2005-11-29 20:16 UTC (permalink / raw)
  To: bluez-devel

You guys are not talking about implementing a software HID device, are
you? I just did that over Thanksgiving ... sofar only a keyboard (so I
can use my laptop as a BT keyboard for my 770). I'll have to do some
testing and build a gui and stuff before I release anything.

Collin

On Tue, 2005-11-29 at 14:39 +0100, Marcel Holtmann wrote:
> Hi Rutger,
> 
> > > > I already saw you were using report ID 16 and 17, so I will try that too.
> > >
> > > You need to send and receive reports with ID 16 and 17. Both have fixed
> > > length and 16 was for the short messages and 17 for the long messages if
> > > I remember that correctly. They are the same we used for switching the
> > > dongle from HID into HCI mode.
> > >
> > > The problem is to get these reports to the device. The HIDP kernel
> > > module with the report protocol (see -mh patch) lacks hiddev support.
> > 
> > Is there a specific reason for the lack of hiddev support?
> 
> basically its because of lack of time and my report protocol patch is
> still considered a hack by me.
> 
> Regards
> 
> Marcel

--
Collin R. Mulliner <collin@betaversion.net>
BETAVERSiON Systems [www.betaversion.net]
info/pgp: finger collin@betaversion.net
Never argue with an idiot. He brings you down to his level, then beats
you with experience...



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-29 20:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-26 19:23 [Bluez-devel] Sending arbitrary data to a connected device Rutger Hendriks
2005-11-26 19:32 ` Marcel Holtmann
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

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).