Welcome, Guest. Please login or register.

Login with username, password and session length
September 07, 2010, 04:27:27 AM
Pages: [1]
  Print  
Topic: JSR-82 Sample : SPP Server and Client  (Read 776 times)
« on: April 28, 2009, 02:49:22 AM »
itisravi
Newbie

View Profile
*
Karma: +0/-0
Posts: 4



The tutorial by Bruse is nice, but has anybody run the code on 2 PCs?. I have had problems similar to others. Please see comment no 33:
http://www.jsr82.com/jsr-82-sample-spp-server-and-client/
Logged
« Reply #1 on: April 28, 2009, 09:51:06 AM »
cookdav
Newbie

View Profile
*
Karma: +0/-0
Posts: 5



itisravi -

I'm another of the ones that it does NOT work for between two PCs (both mine are
running Bluecove, version 2.1.0, for my JSR-82 code, under WindowsXP/Vista
using Microsoft stack).

Note:  I HAD written that I first thought that 'localhost' might not be correct, but later
research showed me that 'localhost' part is correct.  So, the bottomline is that the
code just does not work...I get no response at the server when the client tries to
connect.

My current guess is that our problem is because Bruse did NOT state his full environment
and that he was NOT running Bluecove (did Bluecove even exist back when Bruse published
this code)?  [I'm guessing, because there's no date IN the code, but the first 'comment'
to his code article is dated way back in Nov 2007, which was about a year and a half ago!]

So, now we could try to use trial-and-error and attempt to build/test using some other
JSR-82 implementation(s), until we find one that WILL work with this code.  My guess is
that Bruse might have been using 'ElectricBlue' but I speculate that just because
ElectricBlue seems afiliated / advertized on this website!?

ElectricBlue offers a 15-day 'evaluation' time period, before one would have to pay
them $15.  So, I've been trying an eval of that one, but so far, I can't figure out how to get past
a runtime error msg saying that I don't have their lib (.DLL?) on my path, but I think I do.
[I'm waiting for an answer from their support-folks at the moment.]  Meanwhile, why
don't you give that a try, if you haven't already, and report back?  Or, try with some
other JSR-82 implementations for JavaSE that can at least BUILD this code cleanly.
Then we could cross them off the list of other stuff to try.

[One other one I have heard of is 'Avetana' but that one seemed even more nebulous
than ElectricBlue.  Either it died off or was always just Linux-only, as their webpage
makes NO MENTION at all of it being tested against Vista's bluetooth stack.  See:
http://www.avetana-gmbh.de/avetana-gmbh/produkte/faq.xml
Please post what you are using and any others you've heard of that
might be relevant.]

I'm kinda losing my enthusiasm for this Bluetooth Java coding, because of all the problems
(like this one) where posted code samples do NOT work when various users try it, presumably
because the various JSR-82 implementations out there do NOT seem to be 'created equal'. 
And, all my Java bluetooth-oriented code that I have written seems to bear out this same symptom,
as it suffers from annoying minor differences.  Add on to this, that many of the JSR-82 implementations
have FEES associated with using them, which makes me either ignore
them, or at least consider them much LOWER in my list of potential candidates to try.

Of course,  there could also be differences in 'native bluetooth' stacks that would explain it?!?
For all we know, Bruse could have been running on Linux or MAC, although I think he would
have mentioned it, if he was not using XP or Vista.

[But, there seem to be too many variables to try to cover all the possibilities.  The fact that
this code is 1.5 years old opens up a few extra things to think about, in my view.]



« Last Edit: April 29, 2009, 08:34:55 AM by cookdav » Logged
« Reply #2 on: May 02, 2009, 01:07:32 AM »
itisravi
Newbie

View Profile
*
Karma: +0/-0
Posts: 4



I finally managed to run another example from this site:http://www.forum.nokia.com/info/sw.nokia.com/id/85b9d2ee-83f1-4c7b-8e71-0b1e35d0c1e9/PC_Connectivity_over_BT_in_Java_Apps_with_Example_v1_0_en.zip.html

Ran PCClientCOMM.java on one computer and PCServerCOMM.java on the other and was able to communicate successfully
Logged
 
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC