Hi Mike,

The NI already provides drivers to interface to most of the Crossbow
sensorboards and can be downloaded from the link below.
http://zone.ni.com/devzone/cda/tut/p/id/5435#toc1

I think these are already based on VISA and would save you significant
work in terms of dealing with lower level code development. When used
with XMesh apps (distributed with MoteView installer),  you should be
able to wire into these directly and obtain the sensor data converted
into Engineering units.

I hope that helps,
Giri Baleri
Crossbow Technology, Inc


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Michael Collett
Sent: Monday, April 23, 2007 2:12 AM
To: TinyOS Help (E-mail)
Subject: [Tinyos-help] MIB510 Serial Port Settings (LabVIEW)


Hi,

I'm trying to get LabView to work with my MIB510 board (with attached
MicaZ with TOSBase). At the moment I'm using a VISA test panel to try
out the various settings.

I can see some data coming in, but I repeatedly get framing errors being
flagged up. When trying to use a serial interface in a VI, it refuses to
pass any data. I'd be happy for it to simply pass a string, which I can
then chop up and convert.

I think it's basically a problem with some of the many possible settings
for the port as listed below:

VI_ATTR_TMO_VALUE = 2000
VI_ATTR_MAX_QUEUE_LENGTH = 50
VI_ATTR_SEND_END_EN = VI_TRUE
VI_ATTR_TERMCHAR = 0x7E
VI_ATTR_TERMCHAR_EN = VI_TRUE
VI_ATTR_IO_PROT = 1
VI_ATTR_SUPPRESS_END_EN = VI_FALSE
VI_ATTR_ASRL_BAUD = 126
VI_ATTR_ASRL_DATA_BITS = 8
VI_ATTR_ASRL_PARITY = 0
VI_ATTR_ASRL_STOP_BITS = 10
VI_ATTR_ASRL_FLOW_CNTRL = 0
VI_ATTR_ASRL_END_IN = 2
VI_ATTR_ASRL_END_OUT = 0
VI_ATTR_ASRL_DCD_STATE = 0
VI_ATTR_ASRL_DTR_STATE = 1
VI_ATTR_ASRL_RI_STATE = 0
VI_ATTR_ASRL_RTS_STATE = 1
VI_ATTR_ASRL_XON_CHAR = 0x11
VI_ATTR_ASRL_XOFF_CHAR = 0x13
VI_ATTR_ASRL_REPLACE_CHAR = 0x00
VI_ATTR_DMA_ALLOW_EN = VI_FALSE
VI_ATTR_FILE_APPEND_EN = VI_FALSE
VI_ATTR_ASRL_DISCARD_NULL = VI_FALSE
VI_ATTR_ASRL_BREAK_STATE = 0
VI_ATTR_ASRL_BREAK_LEN = 250
VI_ATTR_ASRL_ALLOW_TRANSMIT = VI_TRUE
VI_ATTR_ASRL_WIRE_MODE = 128

I know the baud rate should probably be 57600 (as for programming), and
I've set the termination character to 7E (as I can't think of what else
to use). Any advice would be greatly appreciated.

Thanks,

Mike

******************************************
Wireless Communications
Enabling Metrology Division
National Physical Laboratory
Hampton road
Teddington
United Kingdom
TW11 0LW
0208 943 6771
www.npl.co.uk
******************************************

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or disclose
such information.

NPL Management Ltd cannot guarantee that the e-mail or any attachments
are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom  RG27 9UY
-------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to