Ticket #764 (closed defect: worksforme)
initiating a PAN using pand gets "Permission denied (13)"
| Reported by: | hndispatch-hhf423@… | Owned by: | openmoko-devel |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | bluez | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | no | PatchReviewResult: | |
| Reproducible: |
Description
This command
pand -c <laptop_bt_address> -r PANU -d NAP -e bnep0 -A -E -S -n
should initiate a PAN to a Windows XP system. It works vice versa (see wiki
URL), but if initiated from OpenMoko?, it gets error 13, permission denied. This
has probably to do with rights to a device or path or file on OpenMoko?, but how
to find out?
I'd be happy to test if you have suggestions what to test.
Change History
comment:2 Changed 6 years ago by hndispatch-hhf423@…
I have installed hcidump (thanks to ScaredyCat? who put it in his repository)
For some reason, I am not getting "Permission denied(13)" anymore, but
"Connection refused(111).
Looking into the hcidump, the error there is "Connection refused - PSM not
supported"
Does that help?
comment:3 Changed 6 years ago by marcel@…
That means that no PAN server is running on the remote device.
comment:4 Changed 6 years ago by cwixon@…
I messed around with the WIDCOMM bluetooth stack on XP and wasn't able to get a
successful connection at all. However, with the Microsoft stack, I could set up
the Neo as a PAN host:
pand -s -M -r NAP
And successfully connect to it via XP's "Join a Personal Area Network" (accessed
via the BT tray icon). And the XP machine's ethernet connection can be shared
this way.
Obviously initiating the connection from the XP machine each time is not ideal.
comment:5 Changed 6 years ago by marcel@…
As I said before, without "hcidump -X -Y", I can't tell really much. However the
usage of pand is deprecated in favor of the D-Bus enabled network service.

Install bluez-hcidump and run "hcidump -X -V" to see where this command actually
fails.