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
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 <[email protected]>
BETAVERSiON Systems [http://www.betaversion.net]
info/pgp: finger [email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
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
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
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
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
get the HID SPec from http://www.usb.org and the hid profile documentation from
http://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: [email protected] |
| 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
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
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel