[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[solved] Re: A bluetooth problem



Rodolfo Medina wrote:

>>>>>> I just bought a bluetooth adapter and plugged it in the PC, which can see
>>>>>> it:
>>>>>>
>>>>>>  $ lsusb
>>>>>>  Bus 003 Device 001: ID 0000:0000
>>>>>>  Bus 002 Device 001: ID 0000:0000
>>>>>>  Bus 002 Device 006: ID 1131:1001 Integrated System Solution Corp.
>>>>>>  Bus 002 Device 005: ID 0421:0410 Nokia Mobile Phones 6630 Imaging
>>>>>>  Smartphone
>>>>>>  Bus 001 Device 001: ID 0000:0000
>>>>>>
>>>>>> But my Nokia 6630 doesn't see the PC's bluetooth device: it searches for
>>>>>> bluetooth devices and says: noone found.  What am I missing?



Dal <mldal@linuxsystem.cz> writes:

>>>> maybe your computer is invisible, check
>>>> /var/lib/bluetooth/<mac_of_your_bt_adapter>/config
>>>>
>>>> and there should be on the first line something like
>>>> mode connectable (or something like that, it means it's not discoverable,
>>>> just connectable)
>
> [...]
>
> try to run
>
> dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetDiscoverableTimeout uint32:0
>
> as second command, run
>
> dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
>
> first and that command before sets discoverable time to 0 -> never timeouts,
> so never goes out of discoverable mode.
>
> [...]
>
> Just put it to /etc/init.d/rc.local
>
> dbus-send --system --type=method_call --print-reply --dest=org.bluez
> /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
> dbus-send --system --type=method_call --print-reply --dest=org.bluez
> /org/bluez/hci0 org.bluez.Adapter.SetDiscoverableTimeout uint32:0
>
> [...]
>
> and now try to run that 2 commands in that order. [...]
> Now if it is again in connect mode, so you can't see it, check [...]
> /var/lib/bluetooth/mac_addres/config if there is mode
> discoverable or connect



It seems to be solved now: I followed your indications and now it seems to be
all right: the phone `sees'the PC and it can send and receive data from and to
it.  Your help was precious, thanks indeed!  :)

Cheers
Rodolfo



Reply to: