01-12-2010 12:06 PM
Hello everybody,
I trying to communicate with my nxt via bluetooth throught my computer, but it always appears the same error. I've searched in the ni forums a way to solve my problem but nothing seems to work. In recent talk with a friend of mine he told me that my version of labivew may not have installed the drivers necessary to comunicate with the nxt. I found this a bit strange because i can communicate with the robot via USB.
In conclusion I would like to know if there's a specific driver that must installed and if so where can I get it.
Thanks in advance
Nuno
(P.S.: Sorry if my english is not that good)
01-13-2010 03:50 AM - edited 01-13-2010 03:51 AM
Hi Nuno,
Obviously if you have the NXT Driver installed, this issue may happen when the VI which ensure that Bluetooth is available on your system is not present in you application. To resolve the problem, you need to add this VI to the list of VIs that are called dynamically in your built executable. Steps are described in this KB : Why Can't I Connect to my NXT via Bluetooth.
Let me know what happens and if this doesn't solve your problem please post you error code or a screenshot.
Regards,
01-13-2010 09:07 AM
Thanks for the fast response Steve M.
I've already seen and implemented the KB that you send me, but it didn't work.
This is the code that I implemented. A very simple one, it should establish a connection with the NXT and then read some information regarding that NXT.
The error that always appears is:
Error -142017 occurred at createNXT.vi:7
Possible reason(s):
Fantom: No more items found.
Sometimes it also appears this one:
Error:
Cannot connect to the NXT
Possible Solutions:
- Ensure the NXT is powered on and connected to your computer
- If Bluetooth connection, ensure Bluetooth is enabled on the NXT
- Try restarting the NXT
Another odd behaviour is that if I try to establish a bluetooth connection between my computer and the NXT brick using a software that I've installed on my computer (in my case the bluetooth stack for windows by toshiba) I'm able to connect them via bluetooth.
01-14-2010 08:39 AM
Hi,
What is your configuration ?
Here are couple of things to tryI found it here : http://forums.ni.com/ni/board/message?board.id=460&message.id=1299&query.id=293540#M1299.
The latest NXT toolkit release is 2.0, which has been posted recently. If you are using this version of the toolkit, the firware version should be 1.26. If you have installed NXT toolkit 2.0, you can update your firmware to 1.26 using Tools>>NXT Modules>>Update firmware.
To download 2.0, please follow the instructures on this page:
http://zone.ni.com/devzone/cda/tut/p/id/4435
Please let us know if this solves the problem.
Regards,
01-20-2010 03:49 PM
Nuno,
I want to clear up some possible confusion. The latest version of the NXT toolkit is no longer 2.0. As of 2009 this toolkit has become a module: LabVIEW 2009 LEGO® MINDSTORMS NXT Module. I can tell from your screenshot you do have this latest version installed, so I would recommend against also installing the 2.0 toolkit.
Also, the NXT driver is to communicate to the NXT both through USB and Bluetooth and is implemented in a single DLL. Therefore if you can communicate with the NXT via USB then you should also be able to communicate with it via Bluetooth. The issues you are having connecting to the NXT with Bluetooth are common due to the finickiness of Bluetooth. I apologize for this, but we are investigating ways to improve this.
My best suggestions are to follow the instructions from my post referenced by Steve. If you are still having trouble with this instructions let us know and I will try and see if there is anything addtional we can try.
Cheers,
01-20-2010 07:20 PM
Does your program work when you use USB instead of Bluetooth? Please note that not all Bluetooth stacks are supported. Specifically, only the Widcomm and Microsoft stacks are supported by the NXT driver. The Toshiba stack is not supported.
01-20-2010 08:32 PM
Thanks Joel for the response
The program works just fine when I use a USB connection, my program is able to detect the NXT and executes the desired tasks. It's just when I change to a Bluetooth connection that the errors appear.
As matter of fact I'm using a Toshiba stack, but could this really be the problem? If so how do I fix it?
Nuno Teixeira
01-21-2010 09:24 AM