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.]
|