Hello All, 


I managed to finish the Blink light on and off for 4 times C# coding on TINYOS 
+ Mica1 and Mica2 motes. The source coding is as follows:
////////////////////////////
Using TINYOS and Surge for referencing
C# namespaces ltd:'*
'*:cc. gcc. g++.:
tinyos surge tiny-gcc-picc'/;
gcc+gvv+dev-C++-mingw-rrk=xxc;
using c;
using c++'
BLK MOV'
BLR BLK USING MICA2 || MICA1 || SENSORS'.
CC2530 MSP3500'.;
BLK RUN.
BLK OFF.
BLK ON'
BLK BLK'.:
CC.
RUN./?.
///////////////////////////
It can compile well and can work well, can someone help me to transform it into 
nesC? Or can someone suggest a type or sort of compiler for this transformation?
Thanks!


An Feng
anderson.an.f...@aol.com




-----Original Message-----
From: tinyos-help-request <tinyos-help-requ...@millennium.berkeley.edu>
To: tinyos-help <tinyos-help@millennium.berkeley.edu>
Sent: Mon, Feb 18, 2013 4:00 am
Subject: Tinyos-help Digest, Vol 118, Issue 36


Send Tinyos-help mailing list submissions to
        tinyos-help@millennium.berkeley.edu

To subscribe or unsubscribe via the World Wide Web, visit
        https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
        tinyos-help-requ...@millennium.berkeley.edu

You can reach the person managing the list at
        tinyos-help-ow...@millennium.berkeley.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

   1. MSP430F5438a+CC2520 - SfdCapture.captured event never     happens
      (Erd?lyi ?d?m [Ed?m])
   2. Re: water level sensor (nishad kamdar)


----------------------------------------------------------------------

Message: 1
Date: Sun, 17 Feb 2013 13:00:03 +0100
From: "Erd?lyi ?d?m [Ed?m]"     <erdelyiadam.e...@gmail.com>
Subject: [Tinyos-help] MSP430F5438a+CC2520 - SfdCapture.captured event
        never   happens
To: tinyos-help@millennium.berkeley.edu
Message-ID: <5120c643.7020...@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello Everyone,

I'm (still) trying to interface the MSP430F5438a uC with the CC2520 
radio chip. (I'm using the tp-freeforall/prod repo)
Now I'm facing the following problem:

When sending out (TX) messages the SfdCapture.captured event never 
fires, except after boot-up for the first time.

- I captured some of these "first packets" with a CC2531 USB dongle and 
TI Packet Sniffer and the result looks like this every time:
41 88 11 22 00 FF XX XX XX XX XX XX XX XX XX (where XXs are different 
every time, but the length is the same, 15)

- I also measured the signal with an oscilloscope on GPIO4 of CC2520 
(which is set to SFD by default (based on CC2520 Datasheet / SWRS068) 
and connected to P8.1 on MSP430F5438a) and I can see this first SFD 
signal after boot-up, but the high-level of the signal is only around 
0.3V. (I don' really understand why so low.)

- I tried to remap the timers, because by default the radio uses Micro 
timer (my HplCC2520.nc is based on sam3s_ek) which is mapped to 
Timer1_A, but the P8.1 (the SFD signal from CC2520) is mapped to 
Timer0_A which is a T32khz timer, so I replaced Timer0_A and Timer1_A 
with each other, but it didn't get any better.

At the moment I'm out of ideas, if anyone could give me a hint what the 
problem could be, it'd be great.

(the above mentioned event can be found in 
/tos/chips/cc2520/CC2520DriverLayerP.nc around line 1600)

Thank you in advance.

Best wishes,
Adam Erdelyi


------------------------------

Message: 2
Date: Sun, 17 Feb 2013 23:04:06 +0530
From: nishad kamdar <nishadkam...@gmail.com>
Subject: Re: [Tinyos-help] water level sensor
To: Faruk Baturalp G?nay <baturalpgu...@yahoo.com>
Cc: "tinyos-help@millennium.berkeley.edu"
        <tinyos-help@millennium.berkeley.edu>
Message-ID:
        <CADMaTkO4xFNw1TqNJXDU2tidd73TWDgBSjZ4EbuimRBO6JR=w...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hey,

There are many things that you need to consider while doing such interfaces
to the mote.

You need to check which interface/protocol is being used by the sensor to
transfer data to the micro controller on the mote.
eg, (SPI, UART or it gives a simple analog output)

You need to find out whether the mote which you intend to use has the
required interface for  interfacing the sensor to it.

Then you have to get well acquainted with the low level programming in
tinyos
like accessing the ADC pins or UART or SPI in the motes.

Once you know the above things, you can connect the sensor to the required
pins and write a code to interface the sensor to the mote.

Cheers,



On Sun, Feb 17, 2013 at 2:30 AM, Faruk Baturalp G?nay <
baturalpgu...@yahoo.com> wrote:

> Hi again all,
>
> Do you know,can a water level sensor or indicator can be directly or
> indirectly connected to a mote that has Tinyos?If it is,how it may be?If
> you  could some details i'de pleased.Thanks from now.
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Sincerely,

Nishad Kamdar
Graduate student
BITS PILANI , K K Birla Goa campu*s*
Cell: +919503218809
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20130217/8ca69bb9/attachment-0001.htm
 


------------------------------

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 118, Issue 36
********************************************

 

 
 
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to