[Tinyos-help] GenericComm fails when an event is fired

2006-08-04 Thread prajakta choudhari

hi all,

i have a problem. In my program, my GetPressure component requests
ProvidePressure  component to start and get pressure data. when the
Pressure.dataready event is fired in the ProvidePressure  component,
in this event  another event is signalled to the GetPressure component
that tells that the data was collected and is sent as a parameter to
the event.

Now we are able to receive this event in the GetPressure component but
when we try to use GenericComm.send, it returns successful but does
not signal the SendDone event.
Please can somebody throw sum light on this issue.
Thank You

--
-
-
Regards,
Prajakta Choudhari,
Project Engineer
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] MTS420 GPS receiver

2006-07-04 Thread prajakta choudhari

Dear all:

i am building an application using mts420 gps receiver that keeps on
receiving gps packets till it gets a valid gps packet. As soon as the
valid packet is received, the application shud glow red light and stop
forever.

It seems that the gps does not work without a timer.
So i have used 2 timers. On the event of the first timer fired the gps
is powered .
On the event of the second timer fired the  gps txrxswitch is enabled.
Then the application starts receiving gps packets. On receiving a
valid gps packet i have called

call GpsCmd.TxRxSwitch(0);
call GpsCmd.PowerSwitch(0);


to stop gps receiver.
But still after the receiving a valid gps packet it,doesn't stop. It
starts the ONE_SHOT timers again..and the cycle repeats.
I am attaching my code..
It would be really gr8 if somebody throws light on this issue.
Thank You.
Prajakta






--
-
-
Regards,
Prajakta Choudhari,
Project Engineer,
Networking and Internet Software Group,
CDAC,Pune


TestMTS400M.nc
Description: Cdf file


TestMTS400.nc
Description: Cdf file
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Help regarding MTS420 GPS receiver

2006-06-23 Thread prajakta choudhari

Hi all..
I am trying to write a simple program for MTS420 GPS sensor. The
program shud initialise and start the GPS receiver and store the
readings in the variables defined.
But i am unable to start the GPS receiver.
The GPS Receive packet event is not generated. Is their any special
way yo initialise the GPS receiver.
Can i get a sample code apart from the XMTSensor420 provided by xbow..
Thank You in advance.


--
-
Regards
Prajakta
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Tiny DB Help

2006-06-06 Thread prajakta choudhari

Recently we r trying to run tinydb with mts 420 sensors , we  are
getting null values for pressure,humidity..
We traced the code and found the Pressure.getData() function neither
returns fail nor signals dataReady event.

Can anyone put sum light on this issue.


--
-
-
Regards,
Prajakta Choudhari,
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Badly needing help for tinyDB

2006-06-01 Thread prajakta choudhari

Dear all:

Thank You so much for u r previous responses.. They have helped me so much
Now i am trying to run TinyDb for MTS420.

This is the makefile for TinyDBApp.
COMPONENT=TinyDBApp
SENSORBOARD=mts400
PFLAGS=-I %T/lib/Util -I%T/lib/Attributes -I%T/lib/Commands
-I%T/lib/TinyDB -I%T/lib/MintRoute -I%T/lib/Queue -I%T/lib/FS
-I%T/lib/TinyDB/Aggregates -fno-strict-aliasing
PFLAGS+= -I../../contrib/xbow/tos/interfaces
-I../../contrib/xbow/tos/system
-I../../contrib/xbow/tos/platform/$(PLATFORM)
-I../../contrib/xbow/tos/lib
-I../../contrib/xbow/tos/sensorboards/$(SENSORBOARD)
PFLAGS+=-DCC1K_DEF_FREQ=914077000
MSG_SIZE=49
include ../Makerules
include ../../contrib/xbow/apps/MakeXbowlocal

In AttrPressure and AttrPressureM.nc i have included:
#define PRESENT

But whenever i run tinyDB i am getting null values  for pressure(press);
Plz  can somebody help me..i am really tired breaking my head over it.

Thank You in advance

--
-
-
Regards,
Prajakta Choudhari,
Project Engineer,
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Receiving packets from the base station

2006-05-17 Thread prajakta choudhari
Hi all..
thank you Mr.Michael Schippling for u r previous response.

I was able to send a packet from pc to gateway.

We have modified TOSBase such that whenever it receives the request packet from the pc it sends
back a response packet to the pc over uart and also broadcasts the request packet on the radio.
The request packet that is send to the base station requires acknowledgement. 
7e 41 01 ff ff 09 7d 5d 02 00 00 08 bf 7e
But when we sent the packet,it is received byTOSBase,broadcasted by the TOSBase over the radio , but the acknowledgement is not shown up on the PC.
The PC side tool is a java program using javax.comm apis ,to send and receive packets over COM1 port.
If we send 5 request packets , only one acknowledge token is printed on the screen along with the second packet's ack. token first 2 bytes.
Output on the pc side tool:
5 packets sent succesfully to gateway
7e 40 0f ed 73 7e 7e 40
I am confused whether the problem isin the java code or in the TOSBase
Thank you




-- --Regards,Prajakta Choudhari,Project Engineer,
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Sending Data to gatway from pc

2006-05-13 Thread prajakta choudhari
hi all
i am a new TinyOS programmer. I have written a programm i javax.comm that directly sends data to serial port ... i havw installed TOSBase as gateway .
Whenever i send any data from the pc, nothin happpens. I have checked that the data is being sent to serial port. I have used a sample packet with all the fields correct.

thanx..
-- --Regards,Prajakta Choudhari,
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help