All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nils Faerber <nils.faerber@kernelconcepts.de>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Disable pnat-server
Date: Sun, 03 Jul 2011 22:28:21 +0200	[thread overview]
Message-ID: <4E10D0E5.8090408@kernelconcepts.de> (raw)
In-Reply-To: <20110703201356.GA14128@dell.ger.corp.intel.com>

Am 03.07.2011 22:13, schrieb Johan Hedberg:
> On Sun, Jul 03, 2011, Nils Faerber wrote:
>>> Hmm? So they don't use SDP do discover the RFCOMM channel but directly
>>> connect to channel 1?
>>
>> Um...well I just checked that code.
>> What the device does it look for the service name on the host and on the
>> host side it is bound to channel 1 - I think. I borrowed that part of my
>> code from some old BlueZ code, forgot which.
> 
> So, the SDP service record is there so profiles can look up e.g. the
> RFCOMM channel based on the profile UUID. If that's what the remote
> device is doing you should be able to change the channel to something
> else than 1 in the service record and then bind your server socket to
> this new channel. However, if the remote side has a hard-coded channel
> value of 1 and doesn't care what SDP says then there's really nothing
> you can do (except make sure you don't have any other service on that
> channel, like you now did).

Looks like it is hardcoded, I just tried a different one and it fails.

>> Tried that and now my device works again - yippie!
> Good to hear! :)

At least I can now continue playing with it... eventually I'll release
my code once it reached a halfway usable state. Currently I still
struggle a little with the protocol implementation which would need a
state machine and I am still reluctant to implement one and wait for
another inspiration instead ;) But it seems it is not coming...

Thanks again!

> Johan
Cheers
  nils

-- 
kernel concepts GbR        Tel: +49-271-771091-12
Sieghuetter Hauptweg 48
D-57072 Siegen             Mob: +49-176-21024535
http://www.kernelconcepts.de

      reply	other threads:[~2011-07-03 20:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-03 15:40 Disable pnat-server Nils Faerber
2011-07-03 18:04 ` Johan Hedberg
2011-07-03 18:48   ` Nils Faerber
2011-07-03 19:06     ` Johan Hedberg
2011-07-03 19:56       ` Nils Faerber
2011-07-03 20:13         ` Johan Hedberg
2011-07-03 20:28           ` Nils Faerber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E10D0E5.8090408@kernelconcepts.de \
    --to=nils.faerber@kernelconcepts.de \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.