Discussion:
bluetooth
Nagy Gábor
2004-05-26 18:53:26 UTC
Permalink
=DCdv!

M=E1r a m=E1sik 2 list=E1n pr=F3b=E1lkoztam, volt is kisebb el=F5rehalad=E1=
s, de nem
m=FBk=F6dik...

Alapb=F3l l=E1tj=E1k egym=E1st a telefon (Nokia 6230) =E9s a g=E9pbe bedugo=
tt usb-s
bluetooth k=FCty=FC.

A hciconfig hci0 up megy hiba n=E9lk=FCl, a bdaddress megvan
(00:0C:76:D3:01:BF).

Ezek ut=E1n:

lizard:/home/ngabor# hcitool scan
Scanning ...
00:E0:03:38:8C:28 Nokia 6230
lizard:/home/ngabor# hcitool cc --role=3Dm 00:E0:03:38:8C:28
Can't create connection: Connection timed out
lizard:/home/ngabor# hcitool cc --role=3Ds 00:E0:03:38:8C:28
Can't create connection: Input/output error

A timeoutot nem tudom n=F6velni, mivel nincs csatlakoztatva. =D6rd=F6gi k=
=F6r...

Mint v=E1rhat=F3, az obexftp sem megy:
lizard:/home/ngabor# sdptool add --channel=3D9 OPUSH
OBEX Object Push service registered
lizard:/home/ngabor# obexftp -b 00:E0:03:38:8C:28 -B 9 -lv
No custom transport
Connecting...bt: -1
failed: connect

Azt=E1n valami be=E1ll=EDt=E1sa ut=E1n (tal=E1n a telefonon miut=E1n levett=
em az
enged=E9lyk=E9r=E9st?):
lizard:/home/ngabor# obexftp -b 00:E0:03:38:8C:28 -B 9 -lv
No custom transport
Connecting...bt: 1
failed: S45 UUID
failed: FBS UUID
Still trying to connect

Azt=E1n az openobex-apps csomagban lev=F5 obex_test-tel pr=F3b=E1lkoztam ma=
nual
szerint:

Lehet, hogy itt a hiba? Id=E9zet a readme-b=F5l:
To receive
sdptool add OPUSH
sdptool browse ff:ff:ff:00:00:00 (this is your local machine)
and note the channel OPUSH is on <channo>, likely to be 4
obex_test -b ff:ff:ff:00:00:00 <channo>
s
now send the file from your phone

Amit csin=E1ltam:

lizard:~# sdptool browse 00:0C:76:D3:01:BF <- ez a g=E9pben lev=F5 cucc sz=
=E1ma
Failed to connect to SDP server on 00:0C:76:D3:01:BF: No route to host

Ha a telefon=E9t adom meg, akkor megy.

A hciconfig -a kimenete:
lizard:~# hciconfig -a
hci0: Type: USB
BD Address: 00:0C:76:D3:01:BF ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:2586 acl:44 sco:0 events:123 errors:0
TX bytes:1708 acl:39 sco:0 commands:55 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'lizard.home.hu-0'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver:
0x20d
Manufacturer: Cambridge Silicon Radio (10)



lizard:/home/ngabor# obex_test -b 00:E0:03:38:8C:28 10
Using Bluetooth RFCOMM transport
OBEX Interactive test client/server.
s
majd a telefonr=F3l pr=F3b=E1ltam k=FCldeni a cuccot. A telefon kereste a
kapcsolatot, az adapter ledje m=E1shogy villogott, teh=E1t =E9rz=E9kelt val=
amit,
de nem tal=E1lt=E1k meg v=E9g=FClis egym=E1st, a k=FCld=E9s sikertelen volt=
=2E

A modulok szerintem rendben vannak:
rfcomm 31968 0 (autoclean)
l2cap 16560 2 (autoclean) [rfcomm]
bluez 31684 3 (autoclean) [hci_usb rfcomm l2cap]
usbcore 68780 1 [hci_usb uhci]

De a l=E9nyeg az, hogy Linux alatt m=E9g mindig nem tudom =E1thozni a telef=
onnal
k=E9sz=FClt k=E9peket :-((


--=20
NGabor

06/30/677-14-99 #Linux forever! (Debian Sid; 2.4.23)
***Ha m=E1snak vermet =E1sol, =FAgy tedd, ha beleesel, ki tudj m=E1szni bel=
=F5le***

Loading...