Date: Thu, 13 Mar 2003 17:07:09 -0800 From: "Maksim Yevmenkin" <Maksim.Yevmenkin@cw.com> To: "Pav Lucistnik" <pav@oook.cz> Cc: <mobile@freebsd.org> Subject: RE: Anycom bluetooth progress Message-ID: <790A8B1F40ACA848939EBD247AE490302794ED@scl8ex04.int.exodus.net>
next in thread | raw e-mail | index | archive | help
Pav, [...] > > > > 3) enable authentication for the incoming connection > > > > > > > > # hccontrol -n ubt0hci write_authentication_enable 1 > > > > > > it's enabled > > > > did you do hccontrol -n ubt0hci read_authentication_enable > > to verify its really on? > > Yes, I verified. And there wasn't any connection to the phone, according > both to hccontrol and to display of my phone. [...] > > > Unsuccessfull, exactly same as yesterday. > > > > > > > HCI Event: Connect Request(0x04) plen 10 > > > A4 19 29 37 80 00 04 02 52 01 > > > < HCI Command: Accept Connection Request(0x01|0x0009) plen 7 > > > A4 19 29 37 80 00 00 > > > > HCI Event: Command Status(0x0f) plen 4 > > > 00 01 09 04 > > > > HCI Event: Connect Complete(0x03) plen 11 > > > 1A 29 00 A4 19 29 37 80 00 01 00 [...] > Yes, I'm sure that my PC refused all connections (pairing attempts) from > the phone. Well, it can't be broader problem, because I don't have any > way how to check if I can connect from phone to PC at all. hmm... Connection Complete event has status 0x1A - Unsupported Remote Feature. It seems like when your phone initiates a connection something is not working properly. could you please repeat pairing procedure when PC initiates a connection and send me HCI dump? i just want to see the message sequence. [...] > > > here it stop blocked reading from that socket. And nothing ever happens > > > anymore. When I do pairing request on phone, this process does not do > > > anything. Also there is no change in `ngctl list` output. > > > > looks fine to me. hcsecd listens on raw HCI sockets for Link_Key_Request > > or PIN_Code_Request. it will block until required event is received. > > And it was never received, even when I tried to pair my phone several > times. yes, because your PC device never sends them. in normal case device would send Link_Key_Request/PIN_Code_Request events between Create_Connection/Accept_Connection_Request and Connect_Complete events. hcsecd is a passive thing. it only comes into play when device asks for link key/pin. > > > that I have to pair devices every time I want to connect. But the phone > > > seems to ask for link key, which I don't have. Can I get one somewhere? > > > I'm leaving this to further investigation later. > > > > you sure can :) just create one :) its pre-shared link key that works > > between pair of BDADDRs. you can program this key info device itself > > or put it into hcsecd config. check out Read,Write,Delete}_Stored_Link_Key > > commands in hccontrol(8). the problem is the phone. can you program link > > key in the phone? my wife's sony ericsson t68i does not have this feature. > > I don't think T39 have such feature also. But, as I figured out later, > if entry for my PC stays in phone's list of paired devices, I don't have > to pair it again. Even hcsecd does not need to be running. So this issue > solved automagically itself. hmm... but it should not. unless your phone peforms access control on BDADDR base *only*. in other words you only need to enter PIN code once to put BDADDR in the phone's access control list. later the whole key/pin thing does not even come into play because phone recognizes BDADDR and accepts connection without *any* authentication at all. > > no problem. thanks for you time :) how is GPRS speed? is it usable > > for internet browsing? > > GPRS is same as before, Bluetooth and your stack is not slowing it down. > I must say it's much more CPU efficient than serial cable I used before. > I have older phone, it's only 3+1 timeslots, so ~4 kB/s download and > ~1 kB/s upload. It's comparable to ordinary modem. cool, so seems like you got advertised 43kbit/s = ~5.4 kBytes/sec (if you consider overhead on L2CAP/RFCOMM/PPP/IP/TCP/HTTP :) > I putted together a webpage where I wrote step by step what I had to do > to get this working. It's on http://www.oook.cz/bsd/bluetooth.html > I will add sections for other services as I'll figure them out. :) thanks! that's a great thing to do. i have some comments which i will send to you later. thanks, max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790A8B1F40ACA848939EBD247AE490302794ED>
