by gloomyandy » Thu May 27, 2010 2:43 pm
So what are you trying to connect to? Have you written a Bluetooth server program?
It is much easier to connect from the PC to the NXT (that is what all of the leJOS tools do, and there is a good reason for this). Is there a reason why you are not doing it this way? There are lots of samples that will show you how to connect from the PC, and virtually none the other way around....
The reason for this is that the NXT has limited Bluetooth capability, it always connects to the first SPP endpoint on the target device. Under windows this is nearly always associated with a virtual com port. So in your case what you are seeing is the NXT connect to virtual com port 3, probably find there is no program attached to it and then closing the device.... Unless you understand Bluetooth pretty well and really have a strong reason to connect from the NXT to the PC, then it is probably not worth the hassle involved.... Doing things this way around means that you will not be able to use the leJOS PC side APIs...
Andy