gumstix+infineon can't scan/connect
Hi
I think there must be some defaults/settings that aren't right on this gumstix (using infineon hardware). Can anyone see any reason the basics won't work?
hcitool scan
returns immediately with no results; when run on the desktop, it finds the headset without any problems.
sdptool browse 00:0D:44:2A:5C:A3
fails with "Failed to connect to SDP server on 00:0D:44:2A:5C:A3: Connection refused" but again it works on the desktop.
finally, a2play fails to connect (I have it ignore the sdp problem)
a2play 00:0D:44:2A:5C:A3 /mnt/mmc/charm.au
reports "Can't connect to A3:5C:2A:44:0D:00. Connection refused(111) cannot open psm_cmd = 25" so it fails in the connect call:
connect(sk, (struct sockaddr *) &addr, sizeof(addr))
Here's how things look...
# grep -v ^$ /etc/bluetooth/hcid.conf |grep -v ^.*#
options {
autoinit yes;
security auto;
pairing multi;
pin_helper /etc/bluetooth/bluepin;
}
device {
name "Gumstix (%d)";
class 0x820116;
iscan enable; pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}
# /etc/bluetooth/bluepin
PIN:0000
# hciconfig
hci0: Type: UART
BD Address: 00:80:37:21:61:42 ACL MTU: 672:8 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:30107175 acl:59964 sco:0 events:19745 errors:0
TX bytes:1959214 acl:19657 sco:0 commands:38 errors:0# hciconfig hci0 revision
hci0: Type: UART
BD Address: 00:80:37:21:61:42 ACL MTU: 672:8 SCO MTU: 64:0 Generated: Nov 28 2003 16:59:35
Comment: R2D
Brad
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
hmmm
this was all done by ssh'ing into the gumstix over a PAN connection. I guess this radio is like those in cellphones... it can only handle one connection at a time (argh).
the good news is a2play is able to run with a load of 1.6. this is with too short a usleep delay and soft double-precision fp. so things can only improve with real timing and maybe using single-precision soft fp and eventually integer-only ops.
things are still pretty flakey with infineon bluetooth. sometimes something like avdtp negotiation won't work but after resetting the stick it works fine.
brad
Quoted 56 lines · Brad Midgley
Hi
I think there must be some defaults/settings that aren't right on this gumstix (using infineon hardware). Can anyone see any reason the basics won't work?
hcitool scan
returns immediately with no results; when run on the desktop, it finds the headset without any problems.
sdptool browse 00:0D:44:2A:5C:A3
fails with "Failed to connect to SDP server on 00:0D:44:2A:5C:A3: Connection refused" but again it works on the desktop.
finally, a2play fails to connect (I have it ignore the sdp problem)
a2play 00:0D:44:2A:5C:A3
/mnt/mmc/charm.aureports "Can't connect to A3:5C:2A:44:0D:00. Connection refused(111) cannot open
psm_cmd= 25" so it fails in the connect call:
connect(sk, (struct sockaddr *) &addr, sizeof(addr))Here's how things look...
# grep -v ^$ /etc/bluetooth/hcid.conf |grep -v ^.*# options { autoinit yes; security auto; pairing multi; pin_helper /etc/bluetooth/bluepin; } device { name "Gumstix (%d)"; class 0x820116; iscan enable; pscan enable; lm accept; lp rswitch,hold,sniff,park; } # /etc/bluetooth/bluepin PIN:0000 # hciconfig hci0: Type: UART BD Address: 00:80:37:21:61:42 ACL MTU: 672:8 SCO MTU: 64:0 UP RUNNING PSCAN ISCAN RX bytes:30107175 acl:59964 sco:0 events:19745 errors:0 TX bytes:1959214 acl:19657 sco:0 commands:38 errors:0# hciconfig hci0 revision hci0: Type: UART BD Address: 00:80:37:21:61:42 ACL MTU: 672:8 SCO MTU: 64:0Generated: Nov 28 2003 16:59:35
Comment: R2DBrad
Quoted 9 lines
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel