linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] ms intellimouse/wheel
@ 2006-01-04 23:14 p er
  2006-01-05  0:26 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: p er @ 2006-01-04 23:14 UTC (permalink / raw)
  To: bluez-users

Hi,

I have a MS Bluetooth IntelliMouse with a wheel.
To get the wheel working I have to patch the kernel with the -mh patch.

Will there be one for 2.6.15 as well?
Will those patches ever be officially merged into the kernel?

Thanks
Per

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] ms intellimouse/wheel
  2006-01-04 23:14 [Bluez-users] ms intellimouse/wheel p er
@ 2006-01-05  0:26 ` Marcel Holtmann
  2006-01-05 13:06   ` dave sailer
  2006-01-07 17:24   ` [Bluez-users] " Nicolas STRANSKY
  0 siblings, 2 replies; 8+ messages in thread
From: Marcel Holtmann @ 2006-01-05  0:26 UTC (permalink / raw)
  To: bluez-users

Hi Per,

> I have a MS Bluetooth IntelliMouse with a wheel.
> To get the wheel working I have to patch the kernel with the -mh patch.
> 
> Will there be one for 2.6.15 as well?

I need to update the previous one, but I am a little bit short of time
right now. So it might take some days.

> Will those patches ever be officially merged into the kernel?

No. We need a generic HID subsystem.

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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] ms intellimouse/wheel
  2006-01-05  0:26 ` Marcel Holtmann
@ 2006-01-05 13:06   ` dave sailer
  2006-01-07 17:24   ` [Bluez-users] " Nicolas STRANSKY
  1 sibling, 0 replies; 8+ messages in thread
From: dave sailer @ 2006-01-05 13:06 UTC (permalink / raw)
  To: bluez-users

Marcel Holtmann wrote:

>Hi Per,
>
>  
>
>>I have a MS Bluetooth IntelliMouse with a wheel.
>>To get the wheel working I have to patch the kernel with the -mh patch.
>>
>>Will there be one for 2.6.15 as well?
>>    
>>
>
>I need to update the previous one, but I am a little bit short of time
>right now. So it might take some days.
>
>  
>
>>Will those patches ever be officially merged into the kernel?
>>    
>>
>
>No. We need a generic HID subsystem.
>
>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-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>  
>
hmmm. I have this mouse and it works on 2.6.11-gentoo-r9. Does gentoo 
apply the mh patch? If so, I didn't know that, but lucky for me.


-------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* [Bluez-users] Re: ms intellimouse/wheel
  2006-01-05  0:26 ` Marcel Holtmann
  2006-01-05 13:06   ` dave sailer
@ 2006-01-07 17:24   ` Nicolas STRANSKY
  2006-01-08 15:53     ` [Bluez-users] broadcast packets Aleksandar Kanchev
  1 sibling, 1 reply; 8+ messages in thread
From: Nicolas STRANSKY @ 2006-01-07 17:24 UTC (permalink / raw)
  To: bluez-users

Le 01/05/2006 01:26 AM, Marcel Holtmann a écrit :

>> Will those patches ever be officially merged into the kernel?
> 
> No. We need a generic HID subsystem.

Do you mean that your patch prevents some other things from working ?

-mh in the kernel would be really great !

-- 
Nico
La politesse des incurables, c'est d'avoir des pansements propres.
	-+- Gilbert Cesbron (1913-1979), de petites choses. -+-



-------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* [Bluez-users] broadcast packets
  2006-01-07 17:24   ` [Bluez-users] " Nicolas STRANSKY
@ 2006-01-08 15:53     ` Aleksandar Kanchev
  2006-01-11  8:30       ` Aleksandar Kanchev
  0 siblings, 1 reply; 8+ messages in thread
From: Aleksandar Kanchev @ 2006-01-08 15:53 UTC (permalink / raw)
  To: bluez-users

Hello,

does bluez support broadcast packets ?
I've tried to send a raw broadcast packet to hci and I could see the 
remote bluetooth controller blinking as if it is receiving data but 
hcidump didn't show anything.
Before writing the packet I've connected the both devices with "hcitool 
cc <addr>" and I wrote the packet from the connecting side (the master).



-------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] broadcast packets
  2006-01-08 15:53     ` [Bluez-users] broadcast packets Aleksandar Kanchev
@ 2006-01-11  8:30       ` Aleksandar Kanchev
  2006-01-11  8:36         ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Aleksandar Kanchev @ 2006-01-11  8:30 UTC (permalink / raw)
  To: bluez-users

Hello,

Marcel, could you please answer me that ? :)

Thanks

Aleksandar Kanchev wrote:

> Hello,
>
> does bluez support broadcast packets ?
> I've tried to send a raw broadcast packet to hci and I could see the 
> remote bluetooth controller blinking as if it is receiving data but 
> hcidump didn't show anything.
> Before writing the packet I've connected the both devices with 
> "hcitool cc <addr>" and I wrote the packet from the connecting side 
> (the master).




-------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] broadcast packets
  2006-01-11  8:30       ` Aleksandar Kanchev
@ 2006-01-11  8:36         ` Marcel Holtmann
  2006-02-05 21:54           ` Aleksandar Kanchev
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2006-01-11  8:36 UTC (permalink / raw)
  To: bluez-users

Hi Aleksandar,

> Marcel, could you please answer me that ? :)

I already told you everything I know and I have no idea why you still
stick to the broadcast thing. Once you have established the piconet
between two devices, you can use it to transfer data. Doing everything
on HCI level is not a good idea. Use at least the L2CAP level for it,
but you might need to add some kernel code to make it work properly. The
broadcast stuff is not really used in any Bluetooth application so far.

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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] broadcast packets
  2006-01-11  8:36         ` Marcel Holtmann
@ 2006-02-05 21:54           ` Aleksandar Kanchev
  0 siblings, 0 replies; 8+ messages in thread
From: Aleksandar Kanchev @ 2006-02-05 21:54 UTC (permalink / raw)
  To: bluez-users

Hi Marcel,

I was away for a while :) But here's what I'm trying to do:
I'm using 2 laptops with 2 Belkin class 2 USB bluetooth dongles. Both 
laptops are running linux with bluez.
I want to broadcast packets from the one side to the other. To do that 
I'm connection both laptops with the hcitool and then from the master 
side I'm using the following code:
  int dd, i, ret = -1, hci_dev;
  u_short handle, flags;

  char buf[HCI_ACL_HDR_SIZE + L2CAP_SIZE];
  hci_acl_hdr *acl_hdr = (hci_acl_hdr *) buf;
  l2cap_hdr *l2hdr = (l2cap_hdr *) (buf + HCI_ACL_HDR_SIZE);
  uint16_t *psm = (uint16_t *) (((char *) l2hdr) + L2CAP_HDR_SIZE);
  char *l2cap_data = ((char *) psm) + sizeof(uint16_t);

  struct iovec iv[2];
  uint8_t type = HCI_ACLDATA_PKT;

  hci_dev = hci_get_route(NULL);
  dd = hci_open_dev(hci_dev);

  handle = 1;
  flags |= ACL_START;
  flags |= ACL_ACTIVE_BCAST;
  acl_hdr->handle = htobs(acl_handle_pack(handle, flags));
  acl_hdr->dlen = htobs(L2CAP_SIZE);

  l2hdr->len = htobs(sizeof(uint16_t) + L2CAP_DATA_SIZE);
  l2hdr->cid = htobs(0x0002);
  *psm = htobs(4097);

  for (i = 0; i < L2CAP_DATA_SIZE; i++)
    l2cap_data[i] = 'A';

  iv[0].iov_base = &type;
  iv[0].iov_len = 1;
  iv[1].iov_base = buf;
  iv[1].iov_len = sizeof(buf);
  writev(dd, iv, 2);

I can see the packet being transmitted on the local master side (with 
hcidump) but the other end doesn't seem to see it. At least hcidump is 
not dumping the packet.

Thanks

Marcel Holtmann wrote:

>Hi Aleksandar,
>
>  
>
>>Marcel, could you please answer me that ? :)
>>    
>>
>
>I already told you everything I know and I have no idea why you still
>stick to the broadcast thing. Once you have established the piconet
>between two devices, you can use it to transfer data. Doing everything
>on HCI level is not a good idea. Use at least the L2CAP level for it,
>but you might need to add some kernel code to make it work properly. The
>broadcast stuff is not really used in any Bluetooth application so far.
>
>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-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>  
>



-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2006-02-05 21:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-04 23:14 [Bluez-users] ms intellimouse/wheel p er
2006-01-05  0:26 ` Marcel Holtmann
2006-01-05 13:06   ` dave sailer
2006-01-07 17:24   ` [Bluez-users] " Nicolas STRANSKY
2006-01-08 15:53     ` [Bluez-users] broadcast packets Aleksandar Kanchev
2006-01-11  8:30       ` Aleksandar Kanchev
2006-01-11  8:36         ` Marcel Holtmann
2006-02-05 21:54           ` Aleksandar Kanchev

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