Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-devel] HID testing
@ 2003-12-11 11:18 Deepesh S Gujarathi
  2003-12-11 13:47 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Deepesh S Gujarathi @ 2003-12-11 11:18 UTC (permalink / raw)
  To: bluez-devel

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


Hi Folks,

I have been playing around with the BlueZ stack for last couple of days and I would say that you guys have done an wonderful job. The stack appears to be fairly stable and rich with features and tools. However the most important feature is the socket interface provided which is missing in other stacks. Kudos to Max, Marcel at rest of the team.

Also I have tested the stack to work with TDK,EPoX,Belkin dongles without a hitch. Maybe these brands can be updated on the "BlueZ Supported hardware" page.

I am working on the developing HID profile (firmware) for a pointing device and utilising BlueZ as a host side testing tool.

I would appreciate few pointers for the following.

1. What could be the best way to test the HID device firmware from the host side using BlueZ ? I believe there are two alternatives, the bthid program by Peter and an alternate hid program by Marcel. I was not successful in getting the bthid working. My system is Mandrake 9.2 with Linux 2.4.21-0.13mdk and I have installed BlueZ from rpms. Basically I want to test my HID firmware implementation for HID compliance.

2. Is there a way to disconnect individual L2CAP connection from within user space program ? I saw a call  l2cap_sock_close in l2cap.c file, is there a way to call this function from a user program. I have already tried to use the close(socket) call but it closes down the ACL connection instead of closing the _individual_ L2CAP connection.

do advise....

thanks
Saturn

[-- Attachment #2: Type: text/html, Size: 2707 bytes --]

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

* Re: [Bluez-devel] HID testing
  2003-12-11 11:18 [Bluez-devel] HID testing Deepesh S Gujarathi
@ 2003-12-11 13:47 ` Marcel Holtmann
  2003-12-12 11:48   ` Deepesh S Gujarathi
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2003-12-11 13:47 UTC (permalink / raw)
  To: Deepesh S Gujarathi; +Cc: BlueZ Mailing List

Hi Saturn,

> I have been playing around with the BlueZ stack for last couple of
> days and I would say that you guys have done an wonderful job. The
> stack appears to be fairly stable and rich with features and tools.
> However the most important feature is the socket interface provided
> which is missing in other stacks. Kudos to Max, Marcel at rest of the
> team.

you are welcome :)
 
> I am working on the developing HID profile (firmware) for a pointing
> device and utilising BlueZ as a host side testing tool.

What kind of Bluetooth chip do you use?

Please use "sdptest" from libs2/test CVS to show us the SDP record of
your HID device.

> 1. What could be the best way to test the HID device firmware from the
> host side using BlueZ ? I believe there are two alternatives, the
> bthid program by Peter and an alternate hid program by Marcel. I was
> not successful in getting the bthid working. My system is Mandrake 9.2
> with Linux 2.4.21-0.13mdk and I have installed BlueZ from rpms.
> Basically I want to test my HID firmware implementation for HID
> compliance.

You should make sure that you have the uinput driver compiled and
installed on your system. And you have to apply the patches from Edd
Dumbill and Olivier Bornet for the bthid from Peter. But this will not
solve the SDP problem of Peter's implementation.

My implementation is based on the new Bluetooth library (which is in
development state), but is working fine for HID devices from Logitech,
Microsoft and EPoX. Yesterday I posted a short installation help to the
mailing list.

Non of the implementations can guarantee HID compliance. The USB HID
parser will be of course much better for testing, but as stated in one
of my previous posts I have stopped working on an integration.

> 2. Is there a way to disconnect individual L2CAP connection from
> within user space program ? I saw a call  l2cap_sock_close in l2cap.c
> file, is there a way to call this function from a user program. I have
> already tried to use the close(socket) call but it closes down the ACL
> connection instead of closing the _individual_ L2CAP connection.
> do advise....

You can do it by simply call close(l2cap_sk) in your user application,
but depending on your firmware it will maybe close the other L2CAP
channel too and then the ACL link have to be closed. To be sure that you
have no L2CAP bugs in your kernel I propose that you start using 2.4.23.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] HID testing
  2003-12-11 13:47 ` Marcel Holtmann
@ 2003-12-12 11:48   ` Deepesh S Gujarathi
  0 siblings, 0 replies; 3+ messages in thread
From: Deepesh S Gujarathi @ 2003-12-12 11:48 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

Hi Marcel,

thanks for the detailed reply

> What kind of Bluetooth chip do you use?

I am using the Ericsson Bluetooth module on a custom made eval board...

> Please use "sdptest" from libs2/test CVS to show us the SDP record of
> your HID device.
currently I donot have the sdptest program, but I have pasted below the
output
from the sdptool, dunno whether it would be of any help.

------------------------------------------------------
Searching for HID on 00:50:F2:E5:89:15 ...
 ID------------> 0
Attribute Identifier : 0x0 - ServiceRecordHandle
  Integer : 0x10000
 ID------------> 1
Attribute Identifier : 0x1 - ServiceClassIDList
  Data Sequence
    UUID16 : 0x1124
 ID------------> 4
Attribute Identifier : 0x4 - ProtocolDescriptorList
  Data Sequence
    Data Sequence
      UUID16 : 0x0100 - L2CAP
      Channel/Port (Integer) : 0x11
    Data Sequence
      UUID16 : 0x0011 - HIDP
 ID------------> 6
Attribute Identifier : 0x6 - LanguageBaseAttributeIDList
  Data Sequence
    Integer : 0x656e
    Integer : 0x6a
    Integer : 0x100
 ID------------> 9
Attribute Identifier : 0x9 - BluetoothProfileDescriptorList
  Data Sequence
    Data Sequence
      UUID16 : 0x1124
      Version (Integer) : 0x100
 ID------------> d
Attribute Identifier : 0xd - AdditionalProtocolDescriptorLists
  Data Sequence
    Data Sequence
      Data Sequence
        UUID16 : 0x0100 - L2CAP
        Integer : 0x13
      Data Sequence
        UUID16 : 0x0011 - HIDP
Attribute Identifier : 0x100
Text as STring:----------> 0xAVALENT MOUSE
Attribute Identifier : 0x101
Text as STring:----------> 0xTHREE BUTTON MOUSE
Attribute Identifier : 0x102
Text as STring:----------> 0xAVALENT
Attribute Identifier : 0x200
  Integer : 0x100
 ID------------> 201
Attribute Identifier : 0x201 - HIDProfileVersion
  Integer : 0x111
 ID------------> 202
Attribute Identifier : 0x202 - HIDDeviceSubClass
  Integer : 0x80
 ID------------> 203
Attribute Identifier : 0x203 - HIDCountryCode
  Integer : 0x33
 ID------------> 204
Attribute Identifier : 0x204 - HIDVirtualCable
  Integer : 0x1
 ID------------> 205
Attribute Identifier : 0x205 - HIDReconnectInitiate
  Integer : 0x1
 ID------------> 206
Attribute Identifier : 0x206 - HIDDescriptorList
  Data Sequence
    Data Sequence
      Integer : 0x22
Attribute Identifier : 0x207
 Data Sequence
  Data Sequence
      Integer : 0x409
      Integer : 0x100
ID------------> 208
Attribute Identifier : 0x208 - HIDSDPDisable
  Integer : 0x0
 ID------------> 209
Attribute Identifier : 0x209 - HIDBatteryPower
  Integer : 0x1
 ID------------> 20a
Attribute Identifier : 0x20a - HIDRemoteWake
  Integer : 0x1
 ID------------> 20b
Attribute Identifier : 0x20b - HIDParserVersion
  Integer : 0x100
 ID------------> 20e
Attribute Identifier : 0x20e - HIDBootDevice
  Integer : 0x1
------------------------------------------------------

I will post the results of sdptest soon

thanks
Saturn

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

end of thread, other threads:[~2003-12-12 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-11 11:18 [Bluez-devel] HID testing Deepesh S Gujarathi
2003-12-11 13:47 ` Marcel Holtmann
2003-12-12 11:48   ` Deepesh S Gujarathi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox