> Android requires pairing to connect to a remote device, even if the remote
> device does not require pairing. (Nick)

So, I was able to successfully connect to the Bluetooth device! Like
you said I had to pair the device. The pin that work in my case was
1234. I was trying 0000 but that did not work.

Thank you!
Paul

On Nov 24, 5:38 pm, Nick Pelly <[email protected]> wrote:
> On Tue, Nov 24, 2009 at 5:16 PM, Paul <[email protected]> wrote:
> > > try this one:  00001101-0000-1000-8000-00805F9B34FB
>
> > This got me somewhere. That is, Android tried to connect to the
> > Bluetooth device but was unable to. I know that this is the 16-bit
> > UUID for the serial port profile (0x1101) promoted to a 128-bit UUID.
> > This is what I had initially tried but incorrectly converted.
>
> > > Instead of allowing applications to choose there own RFCOMM channel, we
> > > allow apps to pick a UUID instead...
>
> > In my case, I am trying to connect to a Bluetooth device which I
> > cannot assign a UUID to. All I know is that the device has a serial
> > port service. I also do not know how to find the UUID of the device.
>
> > Am I wrong in trying to connect to this device using the existing
> > Android 2.0 Bluetooth API? It does not require pairing and can only
> > communicate uses a serial port service (profile).
>
> Ah, sorry I assumed you were using Android <-> Android.
>
> Sounds like your remote device already has an SDP record set up with the
> well-known SPP UUID, so yes using that UUID on the Android client should
> lead to a successful connection.
>
> Android requires pairing to connect to a remote device, even if the remote
> device does not require pairing. If the remote device is does not have any
> UI, then you should try and configure the remote device to have some simple
> PIN code that the user can enter on Android.
>
>
>
> > Thanks,
> > Paul
>
> > On Nov 24, 4:45 pm, Nick Pelly <[email protected]> wrote:
> > > No no no no :)
>
> > > Go to a uuid generator, and generate your own unique UUID for your
> > > application. For example:http://www.uuidgenerator.com
>
> > > It can be any valid UUID, so long as you use the same UUID on both the
> > > server and the client of your application.
>
> > > Instead of allowing applications to choose there own RFCOMM channel, we
> > > allow apps to pick a UUID instead, which has a much lower chance of
> > > namespace collisions (there are only 30 RFCOMM channels). Android will
> > > automatically connect to the correct RFCOMM channel by looking up the
> > UUID
> > > in the service discovery database on the remote device.
>
> > > Nick
>
> > > On Tue, Nov 24, 2009 at 4:39 PM, Sean Liao <[email protected]>
> > wrote:
> > > > try this one:  00001101-0000-1000-8000-00805F9B34FB
>
> > > > WIDCOM SDK and a C# SDK actually define the above constant value for
> > > > SPP/RFCOMM
>
> > > > It seems work for me although I am having problem use the inputStream
> > and
> > > > outSteam out of the connection.
>
> > > > Hope it works for you.
>
> > > > On Tue, Nov 24, 2009 at 4:20 PM, Paul <[email protected]> wrote:
>
> > > >> Can someone explain how to use createRfcommSocketToServiceRecord? How
> > > >> do I find out the UUID of the device I want to connect to?
>
> > > >> Thanks,
> > > >> Paul
>
> > > >> --
> > > >> You received this message because you are subscribed to the Google
> > > >> Groups "Android Developers" group.
> > > >> To post to this group, send email to
> > [email protected]
> > > >> To unsubscribe from this group, send email to
> > > >> [email protected]<android-developers%2Bunsubs
> > > >>  [email protected]><android-developers%2Bunsubs
> > [email protected]>
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/android-developers?hl=en
>
> > > >  --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<android-developers%2Bunsubs
> > > >  [email protected]><android-developers%2Bunsubs
> > [email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to