LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging using Blue Thooth

While we are waiting for the Mindstorm toolkit for LV to apear.

Could I write a program in Lego Mindstorm NXT software, that uses Blue Thooth to send data.
And then write a program in LabView collecting this data?
Message 1 of 24
(11,047 Views)


@Kjeld Petersen/SDU/DK wrote:
While we are waiting for the Mindstorm toolkit for LV to apear.

Could I write a program in Lego Mindstorm NXT software, that uses Blue Thooth to send data.
And then write a program in LabView collecting this data?





Hey Kjeld!

What a fantastic idea! The bluetooth send message and receive message blocks can send/receive logic, text and numerics. With a bit of fancy command parsing, I think it is a wonderful solution.

I have 12 college seniors with long faces due to the lack of the NXT toolkit.... I'm off to purchase some USB/Bluetooth transmitters....

-Bill =]
0 Kudos
Message 2 of 24
(11,026 Views)
Hi Bill

I have a good contact to LEGO directly, so I'm waiting for an answer from them if this is posible.

Please keep me up to date with your results.

Best Regards
Kjeld / University of Soutern Denmark

Message 3 of 24
(11,014 Views)
Update on Compatible BlueTooth/USB Transceivers:

I received my order of BT/USB adapters.

TRENDware International, Inc
Model: TBW-101UB (around $19 ea)

This device is not on the list of compatible devices from the LEGO website, but it is recognized by the Win XPSP2 USB drivers and works well with the NXT software. Able to connect and download programs to the brick and also monitor live sensor data within the NXT environment.

I have to plow through the NXT BlueTooth developers kit available at http://mindstorms.lego.com/Overview/NXTreme.aspx, but so far LabVIEW 8 works well with these adapters using the example BT applications.

ever onward...

-Bill =]
0 Kudos
Message 4 of 24
(10,978 Views)
Hi Bill

Somehow I'm having trouble with just getting the Bluetooth examples from LabView to run.
There are 2 small programs. Bluetooth server and Bluetooth client.
I can't get them to run.

My Bluetooth connection between the NXT software and the NXT unit, is working fine,
and also Bluetooth connection between two NXT units is working fine.

The error message that I'm getting from the client program is this:
-- Error 59 occurred at Bluetooth Open Connection in Simple Bluetooth Client.vi
-- Possible reason(s):
-- LabVIEW:  The network is down, unreachable, or has been reset.

Is this because I have ONLY installed the software on my computer, without inserting any datalogging device?

Regard Kjeld

0 Kudos
Message 5 of 24
(10,965 Views)

@Kjeld Petersen/SDU/DK wrote:
Hi Bill

Somehow I'm having trouble with just getting the Bluetooth examples from LabView to run...

Regard Kjeld





Hi Kjeld,

My TBW-101UB BT/USB dongle walked through disabling the WinXPsp2 BT drivers and installing a 3rd party driver, IVT BlueSoleil.

LabVIEW did not work with these drivers and a search on the LV discussion forms revealed that LV requires the WinXPsp2 drivers... So after rolling back the IVT drivers and turning WinXPsp2 BT drivers back on, the sample LV BT apps worked as designed.

After cleaning off the 3rd party software, just plugging in the BT/USB was all that was needed, as WinXPsp2 installed all of the correct drivers on the fly.

Are you using the WinXPsp2 BT drivers?

-Bill =]
0 Kudos
Message 6 of 24
(10,954 Views)
Hi Bill

I must be since I have this in the Bluetooth setup:

Microsoft Bluetooth Enumerator
Driver file: bthnum.sys
Version: 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)

Generic Bluetooth Radio
Driver files: bthprops.cpl,    bthport.sys,    bthusb.sys,    fsquirt.exe
Version: 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)

Regards Kjeld
0 Kudos
Message 7 of 24
(10,949 Views)
Hi Kjeld,

I haven't yet tried to break it, but here are the steps I used to get the Simple Bluetooth Server.vi/Simple Bluetooth Client.vi to work...

1) I inserted a BT/USB dongle in a USB port of my desktop computer running WinXPsp32. WinXP detected the new USB device and loaded the BT drivers to support it:

Microsoft Bluetooth Enumerator v5.1.2600.2180
USB Bluetooth Wireless Adapter v5.1.2600.2180

2) I inserted a second BT/USB dongle in a USB port of my laptop computer running WinXPsp2. WinXP detected the new USB device and loaded the same version drivers as the desktop system.

3) Opened LV8.0 on the desktop system and ran Simple Bluetooth Server.vi. VI correctly lists the "My Bluetooth Name" as the name of the my desktop computer, displays the hardware address of the BT dongle and the channel number. (Is this where your app fails?)

4) Opened LV8.0 on the laptop system and ran Simple Bluetooth Client.vi. I entered the hardware address of the desktop BT adapter and the correct channel number. By the time I finished entering the hex values, 30 sec had passed and the Simple BT Server.vi had to be restarted, as it had timed out and stopped.

5) After restarting the Server.vi, I started the Client.vi and --- magic.... it works as advertised.

Is this similar to your experience?

-Bill =]

Message Edited by qswitch on 09-28-2006 11:14 AM

0 Kudos
Message 8 of 24
(10,948 Views)
Oh, by the way....

When I try to run the BT Server.vi and BT Client.vi on the same desktop computer, I get a similar error:

LabVIEW: The network is down, unreachable, or has been reset.

Are you using two systems/two BT radios?

-Bill =]
0 Kudos
Message 9 of 24
(10,945 Views)
HI Bill

I stumbled upon the Download Driver SDK (fantomSDK1.0.2f0.zip 2.21MB)  from http://mindstorms.lego.com/Overview/NXTreme.aspx

And actually it not only contains c++ code for accessing the NXT device, but also *.vi blocks.

Regards Kjeld


0 Kudos
Message 10 of 24
(10,915 Views)