Re: [Tinyos-help] localisation of wireless sensor network using RSSI

2012-02-06 Thread Alfonso Facebrick
Hi,

I recommend you to check out the RssiToSerial test (in my case located in
tinyos-2.1.1/apps/tests/cc2420), where you can see an easy way to get the
RSSI value read.

Kind regards,
Al.

On Sun, Feb 5, 2012 at 9:05 PM, Sergio Valcarcel wrote:

> Hi,
>
> mmm I think we are not understanding each other.
>
> What do you mean with GPS? If you mean Global Positioning System then what
> is the relationship with a GPS? Are you interested in the RSSI or in the
> Time of Arrival? In the former no GPS is necessary if the anchors position
> are known and relative references are used. In the latter a specific radio
> is required.
> But I do not see where to use the GPS...
>
> For extracting the RSSI, you have to use the component of your radio (e.g.
> CC2420PacketC.nc or something like that) and use the getrssi function
> passing the pointer to the received packet.
>
> Apart of the tutorials, I encourage you to get into every directory of the
> TinyOS folder and find the different components, and the functions they
> offer.
>
> Good luck!
> Sergio
>
>
>
> On Sun, Feb 5, 2012 at 7:31 PM, obinna oguejiofor wrote:
>
>> Hi
>> you are correct but am still having some challenges like (1) how can a
>> make an ordinary node(telosb mote) to become a beacon node without using
>> GPS (2) How can i measure the RSSI when two motes are communicating.
>>
>> your timely answers will be welcomed
>>
>> many thanks
>> Obinna
>>
>> --- On *Thu, 2/2/12, Sergio Valcarcel * wrote:
>>
>>
>> From: Sergio Valcarcel 
>> Subject: Re: [Tinyos-help] localisation of wireless sensor network using
>> RSSI
>> To: "obinna oguejiofor" 
>> Cc: tinyos-help@millennium.berkeley.edu
>> Date: Thursday, February 2, 2012, 8:12 AM
>>
>>
>> Hi Obinna,
>>
>> I do not quite understand your question.
>>
>> On one hand, IEEE 802.15.4 is a Medium Access Control protocol, i.e. it
>> is in charge of sharing the air (more specifically the RF spectrum) to
>> enable many users communicate in the same channel at almost the same time.
>>
>> On the other hand, localization through RSSI means that you have to
>> estimate the distance between nodes using the RSSI measurement and a model
>> of the channel. Then you use some algorithm (like simple triangularization)
>> and find the position of the node that is transmitting the beacons. Note
>> that you need at least 3 anchor nodes receiving with known positions, and
>> another one which is transmitting the beacons.
>>
>> Therefore rather than configuring the MAC you just have to take the RSSI
>> info from the packet.
>>
>> Cheers!
>> Sergio
>>
>> On Tue, Jan 31, 2012 at 1:58 PM, obinna oguejiofor 
>> http://mc/compose?to=obyn...@yahoo.com>
>> > wrote:
>>
>> HI
>> I am writing my masters thesis on localisation of wireless sensor
>> networks using RSSI , please can anyone tell me how i can manually
>> configure my IEEE 802.15.4 telos B mote inother for it to be aware of its
>> location without using gps.
>>
>> ___
>> 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
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] need help about installing and checking JAVA for Mote-PC communication !

2012-02-06 Thread Mashal al-shboul


Hi All,

I need help about checking Java installation in UBUTNU for communication 
between the PC and iMote2 sensor mote.

i have the directory tinyos-2.1.1/support/sdk/java correctly,should i compile 
it?. However when i compile it (by make intelmote2), 

i get make: *** No rule to make target `intelmote2'.  Stop. although there is a 
make file in the directory and mostly the makerules are specified correctly in 
it.
and i have noticed in "Synaptic Package Manager" that JDK is installed , but i 
am not sure that it works properly.
 
    I AM WAITING FOR YOUR HELP, THANKS IN ADVANCE.

Regards,
Mash'al___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] need help about installing and checking JAVA for Mote-PC communication !

2012-02-06 Thread Michael Schippling
Just try "make" without the intelmote2 part.
I don't think there is any platform specific code
in the Java tools.
MS


Mashal al-shboul wrote:
> 
> Hi All,
> 
> I need help about checking Java installation in UBUTNU for communication 
> between the PC and iMote2 sensor mote.
> 
> i have the directory tinyos-2.1.1/support/sdk/java correctly,should i 
> compile it?. However when i compile it (by make intelmote2),
> i get make: *** No rule to make target `intelmote2'.  Stop. although 
> there is a make file in the directory and mostly the makerules are 
> specified correctly in it.
> and i have noticed in "Synaptic Package Manager" that JDK is installed , 
> but i am not sure that it works properly.
>  
> I AM WAITING FOR YOUR HELP, THANKS IN ADVANCE.
> 
> Regards,
> Mash'al
> 
> 
> 
> 
> ___
> 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


[Tinyos-help] Accsessing PC clock time in a mote for roundtrip time calculation

2012-02-06 Thread Muhammad Altamash Khan
Hi,

I am new to TinyOS and i intend to work with the routing protocol. Right
now, i want to calculate the link and end to end delay in a multihop
net. 

I am assuming that all the node are connected (via long USB cables) to
PC. One idea i was contemplating was that, the message from a originator
node could be time stamped with the PC clock time.

At the receiver, the motes can get the PC clock time (OS is Ubuntu
10.04) at initialization (say booting) and then calculate the PC time,
at any moment , by adding the mote time elapsed since booting. Finally,
the time it took for the single hop transmission can be calculated by at
the receiver by subtracting this time, with the one in the in-coming
packet.

I have looked up for the ways for accessing the PC time from the mote
but could not find the right way. Can anybody please help me in it
matter.


Regards,
Altamash Ahmed, 
 



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

[Tinyos-help] Fw: need help about installing and checking JAVA for Mote-PC communication !

2012-02-06 Thread Mashal al-shboul


Thanks for reply,
tos-check-env command gives :
  java:
                              /usr/bin/java
and tells that the installed version is not 1.4 or 1.5, actually i have 
installed jdk 1.6 since 1.4 and 1.5 are said to be out-of-date and that 1.6 
should work properly.
Typing "make intelmote2" at any correct app gives correct compilation and 
produces the bin file.

i just need to ensure that java is running properly , and it is possible for 
mote-pc serial transmission (serial forwarder)

Regards,
Mash'al



 From: Yasir Javed Kiani 
To: Mashal al-shboul  
Sent: Monday, February 6, 2012 3:29 AM
Subject: Re: [Tinyos-help] need help about installing and checking JAVA for 
Mote-PC communication !
 

Salam

have you check the tos-check-env to verify the installation

moreover go to apps/Blink and do make intelmote there and just send the problems
 else attach imote and then try to run following command to load

make intelmote2 debug install bootloader

Best Regards


 From: Mashal al-shboul 
To: "tinyos-help@millennium.berkeley.edu"  
Sent: Monday, February 6, 2012 12:56 PM
Subject: [Tinyos-help] need help about installing and checking JAVA for Mote-PC 
communication !
 



Hi All,

I need help about checking Java installation in UBUTNU for communication 
between the PC and iMote2 sensor mote.

i have the directory tinyos-2.1.1/support/sdk/java correctly,should i compile 
it?. However when i compile it (by make intelmote2), 

i get make: *** No rule to make target `intelmote2'.  Stop. although there is a 
make file in the directory and mostly the makerules are specified correctly in 
it.
and i have noticed in "Synaptic Package Manager" that JDK is installed , but i 
am not sure that it works properly.
 
    I AM WAITING FOR YOUR HELP, THANKS IN ADVANCE.

Regards,
Mash'al

___
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

[Tinyos-help] Attaching external LED to MicaZ mote

2012-02-06 Thread Subramanian, Venkatachalam
Hello,

I need to attach an external LED (white LED) to the MicaZ mote and make the 
white LED blink through the TinyOS platform (just like how we access the 
default LEDs in the MicaZ mote).

Does anyone have prior experience in this?
Or can some one please provide some insight on how to achieve this?

Thank You.

-- 
Sincerely,
Venkatachalam Subramanian
Graduate Student
Georgia Institute of Technology, Atlanta
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Attaching external LED to MicaZ mote

2012-02-06 Thread Antonio Linan
See how the leds are implemented in the tos/platform/mica/micaz (micaz uses
many resources of mica, see .platform file to see what pulls in).

PlatformLedsC is the file you should begin looking.

It should be pretty straightforward, just try it first.

--Antonio.


On Mon, Feb 6, 2012 at 8:39 PM, Subramanian, Venkatachalam <
venkat.su...@gatech.edu> wrote:

> Hello,
>
> I need to attach an external LED (white LED) to the MicaZ mote and make
> the white LED blink through the TinyOS platform (just like how we access
> the default LEDs in the MicaZ mote).
>
> Does anyone have prior experience in this?
> Or can some one please provide some insight on how to achieve this?
>
> Thank You.
>
> --
> Sincerely,
> Venkatachalam Subramanian
> Graduate Student
> Georgia Institute of Technology, Atlanta
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
--
Antonio Liñan Colina
R+D+I Engineer
@: ali...@advancare.com
@: ali...@zolertia.com
--
Advancare
T: +34 93 582 02 70
http://www.advancare.com
http://www.zolertia.com
http://zolertia.sourceforge.net
http://webshop.zolertia.com
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Accsessing PC clock time in a mote for roundtrip time calculation

2012-02-06 Thread Johny Mattsson
Hi there,

You don't mention which routing protocol, but if you're using the BLIP
stack, one way to achieve time synchronization would be to use regular
(S)NTP. Assuming you can route from the motes to the PC (e.g. via mote
running PppRouter app), you can then run a standard NTP server on the PC
and use the TinyOS SNTP client we wrote. You'll find the patch for it over
here: http://code.google.com/p/tinyos-main/issues/detail?id=95
Whether this would be precise or not for your purposes I cannot attest to -
it depends on many variables (radio link quality/reliability, NTP resync
frequency, internal clock stability, etc).

If you prefer to go down the serial path, I believe there are a number of
tutorials over at http://docs.tinyos.net covering serial communications
between mote and PC. It should be quite easy to write a simple
request/response protocol to provide time on request if that's all you need
the serial for.

Good luck!

Regards,
/Johny

P.S. & unrelated: /wave @ KTH - do you guys still have the VR-cube running?
And did you ever get to claim the old nuclear reactor halls as computer lab
space? It always seemed like it would bring a new meaning to "core dump"...
:)

On 7 February 2012 05:02, Muhammad Altamash Khan  wrote:

> **
> Hi,
>
> I am new to TinyOS and i intend to work with the routing protocol. Right
> now, i want to calculate the link and end to end delay in a multihop net.
>
> I am assuming that all the node are connected (via long USB cables) to PC.
> One idea i was contemplating was that, the message from a originator node
> could be time stamped with the PC clock time.
>
> At the receiver, the motes can get the PC clock time (OS is Ubuntu 10.04)
> at initialization (say booting) and then calculate the PC time, at any
> moment , by adding the mote time elapsed since booting. Finally, the time
> it took for the single hop transmission can be calculated by at the
> receiver by subtracting this time, with the one in the in-coming packet.
>
> I have looked up for the ways for accessing the PC time from the mote but
> could not find the right way. Can anybody please help me in it matter.
>
>
>   Regards,
> *Altamash Ahmed, *
>
>
>
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Johny Mattsson
Senior Software Engineer

DiUS Computing Pty. Ltd.
*where ideas are engineered
*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Attaching external LED to MicaZ mote

2012-02-06 Thread Eric Decker
do you have any h/w experience?   designing, constructing, or modifying?
Do you have surface mount experience?  (you may or may not need smd
(surface mount device) experience depending on what signals have been
brought out to a header)

Basically you get the schematic for the micaz, look at how the existing
leds are constructed, find an open port that you can use to control the
led, wire it up, and then test it.

Basically, study how folks have done it prior, and then duplicate.

On Mon, Feb 6, 2012 at 11:39 AM, Subramanian, Venkatachalam <
venkat.su...@gatech.edu> wrote:

> Hello,
>
> I need to attach an external LED (white LED) to the MicaZ mote and make
> the white LED blink through the TinyOS platform (just like how we access
> the default LEDs in the MicaZ mote).
>
> Does anyone have prior experience in this?
> Or can some one please provide some insight on how to achieve this?
>
> Thank You.
>
> --
> Sincerely,
> Venkatachalam Subramanian
> Graduate Student
> Georgia Institute of Technology, Atlanta
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Error programming telosb

2012-02-06 Thread Ankur Kamthe
Hi all,

I am getting the following "Bootstrap loader synchronization error"
while installing any prog. on the telosb.

I have rev. 5886 of tinyos from svn and I installed the toolchain from
"deb http://tinyprod.net/razvanm/debian squeeze main".  I even tried
installing tinyos using the instructions on the tinyos website using
the jhu repo. but I get the same error. I am running Ubuntu 10.04.

:~/tinyos-2.x/apps/Blink$ make telosb install
mkdir -p build/telosb
compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\"
-DIDENT_USERNAME=\"solar\" -DIDENT_HOSTNAME=\"solar-laptop\"
-DIDENT_USERHASH=0x0cb46dcbL -DIDENT_TIMESTAMP=0x4f30867eL
-DIDENT_UIDHASH=0x88ac2cbbL  BlinkAppC.nc -lm
compiled BlinkAppC to build/telosb/main.exe
2528 bytes in ROM
  56 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex
writing TOS image
cp build/telosb/main.ihex build/telosb/main.ihex.out
found mote on /dev/ttyUSB0 (using bsl,auto)
installing telosb binary using bsl
tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase...
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase...
Traceback (most recent call last):
  File "/home/solar/tinyos-2.x/local/bin/tos-bsl", line 1918, in 
main(0);
  File "/home/solar/tinyos-2.x/local/bin/tos-bsl", line 1833, in main
for f in toinit: f()
  File "/home/solar/tinyos-2.x/local/bin/tos-bsl", line 1098, in actionMassErase
0xa506) #Required setting for mass erase!
  File "/home/solar/tinyos-2.x/local/bin/tos-bsl", line 757, in bslTxRx
self.bslSync(wait)  #synchronize BSL
  File "/home/solar/tinyos-2.x/local/bin/tos-bsl", line 716, in bslSync
raise BSLException(self.ERR_BSL_SYNC)   #Sync. failed
__main__.BSLException: Bootstrap loader synchronization error
make: *** [program] Error 1


Any help will be greatly appreciated.

Thanks,
Ankur

-- 
Ankur U. Kamthe
EECS, University of California - Merced
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Fwd: no more strict deadlines...

2012-02-06 Thread Asier Arruti
ive been frustrated with myself lately this couldnt have come at a better 
time I was in desperate need of an alternativehttp://www.kbsdenoorderborch.nl/currentevents/13JamesTaylor/";>http://www.kbsdenoorderborch.nl/currentevents/13JamesTaylor/
 im finally back in the swing of thingsthe sky is the limit.bye
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Problem with the flash chip on the Micaz

2012-02-06 Thread Kushal Sarkara
 Hello,

I am working on Micaz motes, using Ubuntu 9.10 and TinyOS 2.1.1.

I am encountering an error while using the flash memory chip to store the
samples on the mote. I get the same pair of constant values every 'x'
samples where x = the size of the buffer that is used to append the samples
to the log. i.e. if the buffer size is 52 (bytes), I get two values, very
unexpected in magnitude, every 52 samples. I am certain that this is being
brought about by the log because I have tested a program without using the
log and the data is devoid of that error.

Is anybody else facing this problem with the log?

Thank you for your time regarding this matter. I look forward to hearing
back from you.

Sincerely,
Kushal Sarkara
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Help for Tinyos

2012-02-06 Thread Miklos Maroti
Hi Selahattin,

On Mon, Feb 6, 2012 at 12:36 PM, Selahattin Kosunalp
 wrote:
> Hi Miklos,
>
> Sorry again about bothering you, I found all fields below in
> Ieee154PacketLayer interface that makes sense, but except preamble and
> sync. How can I get more info for preamble and sync like default value,
> where they are defined, or are they directly produced in rf230 before a
> message ready to be sent, I mean hardware-based they are?

Read the AT86RF230 datasheet, you can find it on the atmel website or
use google. That has the preamble and sync byte values, but they are
not that important as you cannot change the value of those and it is
done completely in hardware.

> I am sorry that I may ask some stupid questions as I am new user of
> tinyos, is the message frame similar to IEEE 15.4? if so how similar is
> it?

It is standard 802.15.4 message frame.

> Finally, As you said, I used DiagMsag tool and I got some lines on the
> screen, one of the lines is shown below, I can identify some bytes ( group
> id Am type etc) but not all of them, are the pramble and sync bytes a part
> of DiagMsg?

Preamble and sync bytes are not part of the message, and you cannot
observe it, but we know it is transmitted and received and used to get
the bit synchronization right.

> Best wishes,
> -
> 11:21:40 'r' 77393350 62691 41 [ 0x41 0x88 0xe5 0x1e 0x00 0x00 0x00 0x01
> 0x00 0x3f 0x06 0x80 0x01 0x02 0xd4 ]42
> -

Look at the RF230DriverLayerP.nc file where this line is output. Here it is:

11:21:40 is the PC time when the line was displayed
'r' indicates that this message is a received one.
77393350  is the 32-bit PacketTimeStamp of the message (reception time
of the SFD field)
62691 is the 16-bit current time (both times are in TRadio units)
41 is the message length
[ 0x41 0x88 ... ] is the first 16 bytes of the message
41 is RSSI or link quality (actually two bytes should be here, one if
RSSI the other is LQI)

The payload section starts with the FCF field. You can read the format
in the RF230 datasheet.

Best,
Miklos

>
>> Look at the apps/tests/rfxlink/RadioSniffer application. In
>> particular, if you define the RADIO_DEBUG_MESSAGES define in your
>> makefile, then it will print out messages with the DiagMsg framework.
>> You can display these using the java net.tinyos.tools.DiagMsg
>> application. Miklos
>>
>> On Thu, Feb 2, 2012 at 1:05 PM, Selahattin Kosunalp
>>  wrote:
>>> Hi Miklos,
>>>
>>> That is fairly clear, thanks a lot for your lovely knowledge. The only
>>> thing, Can we display all the fields on a PC when a packet is received?
>>> because I am using java serial application to display the messages
>>> received, I only see "destination, Source, Length, Group id, Message
>>> type".
 Hi Selahattin,

 Ok, here are the fields:

 4 bytes preamble
 1 byte sync
 1 byte length
 2 bytes FCF (frame type)
 1 byte DSN (sequence number)
 1 byte dest PAN (group id)
 2 bytes dest addr
 2 bytes source addr
 1 byte network type for 6lowpan
 1 byte AM message type
 28 bytes payload
 2 bytes crc

 this is 46 bytes. The speed of the radio is 250 kbps, which is 31250
 bytes per sec. So you should be able to transmit 679 messages per
 second.  Everything else is overhead (downloaded/uploaded messages via
 the SPI, processing, tasks, etc). You can calculate the overhead in
 bytes from the observed 500 messages per second: 31250 / 500 = 62.5
 bytes, so the MCU processing time overhead is around 16.5 bytes which
 is around 0.528 millisecond per message.

 Best,
 Miklos


 On Thu, Feb 2, 2012 at 12:32 PM, Selahattin Kosunalp
  wrote:
> I employed 28-bytes data payload, I think the header is 8-bytes
> long(destination, Source, Length, Group id, Message type), As far as I
> know, the header is automatically added by tinyos, I did not do
> anything
> for header. When a packet arrives, I display it on a PC using serial
> java
> app. Then I can see the header fields. Again, I did not include CRC,
> preamle and sync bytes, I just defined a meessage_t variable and send
> it,
> Can we work out the processing time?
> I define a task to send messages using Amsend interface, at first my
> code
> transmits a message when sendDone is signaled, I call post the the
> task
> and send next message, kind of continues transmission. I observe that
> how
> many times sendDone is signaled in a second, then I got around 500
> times.
>> Hi Selahattin!
>>
>> How did you get the 36 byte value? Did you include all headers and
>> the
>> CRC? Did you include the 4-byte preamble and the sync byte? Also,
>> there is a significant amount of processing involved. How did you
>> send
>> this many messa

[Tinyos-help] IRIS mote sending UART data to PC hyperterminal

2012-02-06 Thread #BHARTI GOEL#
Hi,

I am using an IRIS mote to send data to UART every time the timer fires. I am 
using UartStream interface to send the data. I have connected the UART to my PC 
hyperterminal to display the data sent. But is not getting displayed on the 
hyperterminal.
The LED in the Uart.sendDone() is blinking which means data is being sent but 
not getting displayed on the hyperterminal. I am using Atm128Uart0C for the 
wiring. Can anyone please help me with this problem? Here is my code.

GSMmodemC.nc--

module GSMmodemC
{
  uses interface Boot;
  uses interface StdControl as UartControl;
  uses interface UartStream;
  uses interface Leds;
  uses interface Timer;

}
implementation
{

char* uartsendBuf1 = "AT\n";
char* uartsendBuf2 = "AT+CMGF=1\n";
char* uartsendBuf3 = "AT+CMGS=";
char* uartsendBuf4 = "+6590140252";
char* output = "Hello";

  event void Boot.booted() {
call UartControl.start();
call Timer.startPeriodic(2000);
  }

event void Timer.fired(uartsendBuf1,3) {
call UartStream.send();
}


  async event void UartStream.sendDone( uint8_t* buf, uint16_t len, error_t 
error )
  {
call Leds.led2Toggle();
  }

  async event void UartStream.receivedByte( uint8_t byte )
  {
  }

  async event void UartStream.receiveDone( uint8_t* buf, uint16_t len, error_t 
error )
  {
  }

}


GSMTestAppC---

configuration GSMTestAppC{}
implementation {
  components MainC, GSMmodemC, LedsC, Atm128Uart0C, new TimerMilliC();

  MainC.Boot <- GSMmodemC;
  Atm128Uart0C.StdControl <- GSMmodemC.UartControl;
  Atm128Uart0C.UartStream <- GSMmodemC;
  GSMmodemC.Leds -> LedsC;
  GSMmodemC.Timer -> TimerMilliC;

}

Thanks in advance

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