Skip to contentSkip to conversation

MS Optical Desktop for bluetooth - Stops working after a time

Bluez-users Daniel Scott 4 participants 7 messages Sep 17, 2004 – Sep 20, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I am using the MS Optical Desktop for Bluetooth (to great success) on Fedora Core 2, kernel . I do have a minor problem though.

The mouse and keyboard work fine. The problem is that after they are left inactive for ~30 seconds, they seem to disconnect or 'power save' and it takes a while for the connection to be re-established. Altering the 'timeout' using something like:

hidd -t 10

does not help.

Any ideas?

Another minor problem is that I tend to leave my system running constantly, after ~2 days, the mouse stops working and will not restart, I have tried replacing the batteries, reconnecting the devices and restarting the hci0 device (hciconfig hci0 down, hciconfig hci0 up).

Would restarting hidd help, I cannot find a 'clean' way to shut it down and I will try killing it and restarting it the next time that it happens. The only solution that I currently have is a reboot.

Thanks for your time, as I said, they are only minor problems so, don't worry about it too much.

Thanks,

Dan Scott

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Daniel,

Quoted 8 lines

I am using the MS Optical Desktop for Bluetooth (to great success) on Fedora Core 2, kernel . I do have a minor problem though.

The mouse and keyboard work fine. The problem is that after they are left inactive for ~30 seconds, they seem to disconnect or 'power save' and it takes a while for the connection to be re-established. Altering the 'timeout' using something like:

Quoted 5 lines

hidd -t 10

does not help.

Any ideas?

show us the output of "hciconfig -a".

Quoted 6 lines

Another minor problem is that I tend to leave my system running constantly, after ~2 days, the mouse stops working and will not restart, I have tried replacing the batteries, reconnecting the devices and restarting the hci0 device (hciconfig hci0 down, hciconfig hci0 up).

Quoted 6 lines

Would restarting hidd help, I cannot find a 'clean' way to shut it down and I will try killing it and restarting it the next time that it happens. The only solution that I currently have is a reboot.

Thanks for your time, as I said, they are only minor problems so, don't worry about it too much.

In general the mouse should disconnect after 12 minutes and reconnect when it is needed again.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Hi Marcel,

Thanks for your quick reply,

Quoted 2 lines

show us the output of "hciconfig -a".

Here it is, I see there are quite a few errors, is this the problem?

hci0: Type: USB
BD Address: 00:50:F2:E4:C2:F5 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:543843 acl:38475 sco:0 events:262 errors:0
TX bytes:4403 acl:176 sco:0 commands:36 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'SCOTTD'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x1f9 LMP Ver: 1.1 (0x1) LMP Subver: 0x1f9
Manufacturer: Cambridge Silicon Radio (10)

Quoted 10 lines
Quoted 10 lines

Another minor problem is that I tend to leave my system running constantly, after ~2 days, the mouse stops working and will not restart, I have tried replacing the batteries, reconnecting the devices and restarting the hci0 device (hciconfig hci0 down, hciconfig hci0 up).

Would restarting hidd help, I cannot find a 'clean' way to shut it down and I will try killing it and restarting it the next time that it happens. The only solution that I currently have is a reboot.

Quoted 6 lines
Quoted 2 lines

Thanks for your time, as I said, they are only minor problems so, don't worry about it too much.

In general the mouse should disconnect after 12 minutes and reconnect when it is needed again.

OK, I will investigate this further and try to figure out what is happening when the mouse stops working.

Thanks,

Dan

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Hi Daniel,

Quoted 5 lines
Quoted 2 lines

show us the output of "hciconfig -a".

Here it is, I see there are quite a few errors, is this the problem?

Quoted 15 lines

hci0: Type: USB
BD Address: 00:50:F2:E4:C2:F5 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:543843 acl:38475 sco:0 events:262 errors:0
TX bytes:4403 acl:176 sco:0 commands:36 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'SCOTTD'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x1f9 LMP Ver: 1.1 (0x1) LMP Subver: 0x1f9
Manufacturer: Cambridge Silicon Radio (10)

the correct settings for the link policy are missing. A Bluetooth mouse or keyboard needs at least role switch and sniff mode to work correctly.

# hciconfig hci0 lp
hci0:   Type: USB
        BD Address: 00:02:xx:xx:xx:xx ACL MTU: 384:8  SCO MTU: 64:8
        Link policy: RSWITCH HOLD SNIFF PARK 

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw
In reply to Daniel Scott

Dne p=E1 17. z=E1=F8=ED 2004 11:57 Daniel Scott napsal(a):

Quoted 40 lines

Hi Marcel,

Thanks for your quick reply,

Quoted 1 line

show us the output of "hciconfig -a".

Here it is, I see there are quite a few errors, is this the problem?

hci0: Type: USB

        BD Address: 00:50:F2:E4:C2:F5 ACL MTU: 192:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:543843 acl:38475 sco:0 events:262 errors:0
        TX bytes:4403 acl:176 sco:0 commands:36 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy:
        Link mode: SLAVE ACCEPT
        Name: 'SCOTTD'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Ver: 1.1 (0x1) HCI Rev: 0x1f9 LMP Ver: 1.1 (0x1) LMP Subver:

0x1f9 Manufacturer: Cambridge Silicon Radio (10)

Quoted 10 lines
Quoted 10 lines

Another minor problem is that I tend to leave my system running constantly, after ~2 days, the mouse stops working and will not restart, I have tried replacing the batteries, reconnecting the devices and restarting the hci0 device (hciconfig hci0 down, hciconfig hci0 up).

Would restarting hidd help, I cannot find a 'clean' way to shut it down and I will try killing it and restarting it the next time that it happens. The only solution that I currently have is a reboot.

Quoted 5 lines
Quoted 2 lines

Thanks for your time, as I said, they are only minor problems so, don't worry about it too much.

In general the mouse should disconnect after 12 minutes and reconnect when it is needed again.

Quoted 6 lines

OK, I will investigate this further and try to figure out what is happening when the mouse stops working.

Thanks,

Dan

Hi, use this in your hcid.conf:

        lp rswitch,hold,sniff,park;
        security auto;
        pairing multi;

Michal

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw
In reply to Daniel Scott

I have an Ericsson K700i. In the bluetooth menu there is an option "remote control" and when you sdptool brose the phone you get:

Service Name: Mouse & Keyboard
Service Description: K700
Service Provider: Sony Ericsson
Service RecHandle: 0x1001c
Service Class ID List:
"Human Interface Device" (0x1124)
Protocol Descriptor List:
"L2CAP" (0x0100)

    PSM: 17

"HIDP" (0x0011)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Human Interface Device" (0x1124)

    Version: 0x0100

So I tried "hidd -c 00:..." with hidd --server runnning of course.

Now the phone wakes up and says "Start remote control? Yes/No" And I say yes... it goes into remote control mode for a moment then quits saying "No more files".

Anybody got their k700 to work as a mouse/keybd? What file is it expecting?

Blues-utils/libs 2.9 (Debian/Sid) under 2.4.27-mh1.

I've dumped the exchange:

HCIDump - HCI packet analyzer ver 1.10
device: hci0 snap_len: 1028 filter: 0xffffffff < HCI Command: Create Connection (0x01|0x0005) plen 13
D6 72 E5 07 0E 00 18 CC 02 00 00 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 04 05 04

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

D6 72 E5 07 0E 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
D6 72 E5 07 0E 00 17 E3 7A 74 3E 30 9F 9A 40 3A AE 33 B6 09 54 F4

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

04 0B 04 00 D6 72 E5 07 0E 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

00 01 00 D6 72 E5 07 0E 00 01 01
< ACL data: handle 0x0001 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 17 scid 0x0040

< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
01 00 0F 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 6

04 0D 08 00 01 00

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

01 00 05

Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x005f scid 0x0040 result 0 status 0
< ACL data: handle 0x0001 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x005f flags 0x0000 clen 4
    MTU 48 
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 18

    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 4
    MTU 48 
Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 674 
< ACL data: handle 0x0001 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x005f flags 0x0000 result 0 clen 0
< ACL data: handle 0x0001 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 19 scid 0x0041
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0060 scid 0x0041 result 0 status 0
< ACL data: handle 0x0001 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0060 flags 0x0000 clen 4
    MTU 48 
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 18

    L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 4
    MTU 48 
Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 4
    MTU 674 
< ACL data: handle 0x0001 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0060 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0001 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x0042
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0000 result 4 status 0

< ACL data: handle 0x0001 flags 0x02 dlen 10
L2CAP(s): Command rej: reason 0

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

WAITING FOR "YES/NO" KEYPRESS...

Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 12

    L2CAP(s): Disconn req: dcid 0x0041 scid 0x0060
< ACL data: handle 0x0001 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0060
Quoted 1 line

ACL data: handle 0x0001 flags 0x02 dlen 12

    L2CAP(s): Disconn req: dcid 0x0040 scid 0x005f
< ACL data: handle 0x0001 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x005f
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 01 00 01 00

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

00 01 00 13

--
Paul

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#6 lore raw

Hi Paul,

Quoted 12 lines

I have an Ericsson K700i. In the bluetooth menu there is an option "remote control" and when you sdptool brose the phone you get:

Service Name: Mouse & Keyboard
Service Description: K700
Service Provider: Sony Ericsson
Service RecHandle: 0x1001c
Service Class ID List:
"Human Interface Device" (0x1124)
Protocol Descriptor List:
"L2CAP" (0x0100)

    PSM: 17
Quoted 8 lines

"HIDP" (0x0011)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Human Interface Device" (0x1124)

    Version: 0x0100

please do a "hcitool info <k700i>" as root for me and use the sdptest program from the libs2 CVS repository to get me the full SDP records.

You don't need to install the libs2 stuff. Only check it out and compile it with "./bootstrap && ./configure && make". After that you should call

./test/sdptest records k700i-bdaddr > sdp_records.txt

and then send me the sdp_records.txt file. The output from "hcitool inq" will also be nice to see what kind of class of device they are using.

Quoted 10 lines

So I tried "hidd -c 00:..." with hidd --server runnning of course.

Now the phone wakes up and says "Start remote control? Yes/No" And I say yes... it goes into remote control mode for a moment then quits saying "No more files".

Anybody got their k700 to work as a mouse/keybd? What file is it expecting?

Quoted 1 line

From the hcidump I see a problem with connecting to the SDP PSM. It

seems that this is disabled when HID is in use and this phone has a stupid L2CAP implementation that reacts weird and we do the same. But for you it responds with "Connection refused - no resources available" and this is great. They offer HID support and can't have three L2CAP connections at the same time. That is totally stupid.

I need such a phone to tweak around the L2CAP problem and get the hidd working without retrieving the SDP record. Any sponsor out there?

And btw do you enabled auth and encrypt in hcid.conf? Don't do so unless you really wanna use security mode 3.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users