LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inject messages to a WSN via XBow MIB520

Hi,

I've downloaded the XBow drivers for testing some XBow Sensors on Labview. The availables VIs work well for reading and using the examples it's possible to develop some other applications.

I'm trying to inject some messages to the network, some basic commands (eg. turn on/off leds, reset counter, etc) and I can not build a XMessage for this. In the downloaded package we have a VI for writing on the serial/usb port but no examples are included.

How can we use the writing VI and what is the format of the package to send?

Thanks

 

0 Kudos
Message 1 of 6
(3,697 Views)

Hi Hugo,

 

If I'm right, you're using the toolkit available on this site : http://www.s93134308.onlinehome.us/toolkit/index.html

Unfortunately, this is a non free toolkit, so I can't dowload it for help.

I think you have some help on the functions to know how they work, and what has to be sent. what values are waited by the VI?

I will need more informations on the functions and the help given with it in order to help you...

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 2 of 6
(3,679 Views)

Hi,

Not, I'm using the drivers of CrossBow availables for free in http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=1FB66B354ED149C7E0440003BA230E...

After downloading and unzipping you can load some VIs for working with the XBow motes. I'm using micaz (mote) and mts310 and mts300 (sensor cards). I can read all sensor values and health/routing packets. The problem is when I try to inject some messages, they have forgotten to include an exemple!

I was looking for a solution using some generic applications of TinyOS as the Oscilloscope and some simple owner applications. I can not inject generic TOS 2  messages. see

http://www.tinyos.net/dist-2.0.0/tinyos-2.0.0beta1/doc/html/tep113.html

in section 3.6

The XMesh protocol, used by the Xbow application is in TinyOS1. see

https://www.millennium.berkeley.edu/pipermail/tinyos-2.0wg/2005-September/001126.html

in section 3.6 as well

What is the format used for transmittin from a NI application to a mote plugged in USBPort (using MIB520)? 

What is the order of bytes?

Thanks!

Hugo

 

0 Kudos
Message 3 of 6
(3,672 Views)

Hi Hugo,

 

I've downloaded the driver, but there are a lot of functions. Wich VI gives you difficulties to implement?

By The way, it's clearly explained in the downloading page that this driver is provided "as is", and is not supported by National Instruments. I will try to understand how to implement the communication you try to do, but it could be good to contact directly the manufacturer of the devices, he is probably aware of the way to communicate with his instruments, and he maybe could help you quickerly.

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 4 of 6
(3,666 Views)

Hello,

I've contacted XBow, they do not give support for NI 😞 

I've tried the VIs included in the Write directory (in Public). There are not VI including a function for writting over the Serial Port so I've build my own using the IO intrument assistant (Assistant d'E/S instruments). I've not problem for reading, but the problem is for writting over the port. Although the right sequence (the tos messages in the links above) the mote do not receive the messages.

Regards

Hugo

 

 

0 Kudos
Message 5 of 6
(3,656 Views)

Hugo,

 

Actually, there is two ways of communicating with an USB instrument, the "Raw" mode and the "USBTMC" mode.

You will find a lot more informations in the following link.

In your case, If you're able to read datas from your instrument, it is that your driver is compatible and succeed to decode the datas sent, so there is no reason for the write function not to work.

Are you sure of the commands you send? Do you have an exemple of the kind of commands you send, and the commands waited by your instrument?

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 6 of 6
(3,650 Views)