You need to send messages in the TOS_Msg or message_t format.
Find the struct definition for the telos platform.
For TOS1.x it is in: opt/tinyos-1.x/tos/platform/telos/AM.h
and probably something similar for T2.

The tricky parts are: values of 0x7E and 0x7D need to be
"escaped" because they are frame delimiters, and you
need to calculate a CRC value correctly. There are some
examples of formatting messages in matlab and C I think
in the dev tree, and the tools Packetizer.java file does
it in Java. I don't know of a recent format description
but you might find info on:   http://docs.tinyos.net

MS


tmi...@recipes4linux.com wrote:
> Spam detection software, running on the system 
> "mail.Millennium.Berkeley.EDU", has
> identified this incoming email as possible spam.  The original message
> has been attached to this so you can view it (if it isn't spam) or label
> similar future email.  If you have any questions, see
> the administrator of that system for details.
> 
> Content preview:  My apologies if this query is off-topic, but this is the 
> only
>    community I have found working with this device. I am working on a project
>    that uses the Linksys Network Storage Link as a host for a TelosB Crossbow
>    radio. The Linksys device is running a Linux port called OpenWrt and the
>   application talking to the radio is all C code. No TinyOS components. [...]
>    
> 
> Content analysis details:   (4.3 points, 3.3 required)
> 
>  pts rule name              description
> ---- ---------------------- --------------------------------------------------
>  3.2 FH_DATE_PAST_20XX      The date is grossly in the future.
>  0.0 BAYES_50               BODY: Bayesian spam probability is 40 to 60%
>                             [score: 0.4976]
>  1.1 DNS_FROM_OPENWHOIS     RBL: Envelope sender listed in bl.open-whois.org.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Subject:
> TelosB Crossbow radio
> From:
> tmi...@recipes4linux.com
> Date:
> Fri, 21 May 2010 09:22:43 -0700
> To:
> tinyos-help@millennium.berkeley.edu
> 
> To:
> tinyos-help@millennium.berkeley.edu
> 
> 
> 
> My apologies if this query is off-topic, but this is the only
> community I have found working with this device.
> 
> I am working on a project that uses the Linksys Network Storage Link
> as a host for a TelosB Crossbow radio.  The Linksys device is running
> a Linux port called OpenWrt and the application talking to the radio
> is all C code.  No TinyOS components.
> 
> I can read UARTDETECT_REQUEST messages from the radio but cannot
> get a properly formed UARTDETECT_RESPONSE message written to the radio.
> 
> What I'm really looking for is a source of information/docs that describes
> the communication protocol between radio and host over the USB port.
> 
> I have downloaded the latest version of TinyOS from Sourceforge, so if
> the docs I'm looking for don't exist, can somebody point me at the module
> within TinyOS that handles the host/radio interface over the USB port?
> Cheers,
> T.mike
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to