[Tinyos-help] continuous sampling on mica2dot

2007-06-07 Thread Lei Tang
Hi all, I'm working on a sampling program on mica2dot. Now, I'm using a timer to start one sampling procedure repeatedly. But it's not efficient for high frequency sampling. On micaz, a command can be called to start a continuous sampling without triggering of a timer (call Sample.getSample()).

[Tinyos-help] CC1000 radio got locked

2007-05-27 Thread Lei Tang
Hello everyone, I have a problem on mica2dot's CC1000. It often got locked somewhere before SendDone was called. Sometimes it returned back to normal after a while, sometimes it never. I tried to restart radio using RadioControl.stop() and RadioControl.start() before every transmission, which

Re: [Tinyos-help] micaz,cc2420,RF power with setRFPower(0)?

2007-05-26 Thread Lei Tang
Hello Danielle, My TinyOS version is 1.17. There are two errors in the SetRFPower command in CC2420ControlM.nc. I corrected and it works now. I don't know what version you are using. Maybe it has already been corrected in new release. You may look through the code and the CC2420 datasheet. The

Re: [Tinyos-help] Sampling with a timer on mica2dot

2007-05-21 Thread Lei Tang
at the basestation. It may well be a problem in my code, but I didn't find anything suspect. I'm sorry it doesn't help you, I just wanted to report the problem since it may be related. I would appreciate as well any clue or explanation. Cheers, Romain On 5/21/07, Lei Tang [EMAIL PROTECTED] wrote

[Tinyos-help] Sampling with a timer on mica2dot

2007-05-20 Thread Lei Tang
Hello, all, I'm working on a simple program on mica2dot to achieve a function of sampling with a given rate, saying 2 Hz, and then transmitting the result immediately. I used a timer to trigger the sampling, as what is done in XSensorMDA500. With the help of the LED, I found the timer was not

[Tinyos-help] AGC on CC2420

2007-01-21 Thread Lei Tang
was, LNAMIX_GAINMODE was always 3 (high gain), and the VGA_GAIN was almost always between 0x7B to 0x7E. We did not see any meaningful information on it. Does anyone know something about AGC of CC2420? Please help. Thank you. Best Regards, Lei Tang

Re: [Tinyos-help] Packet Timestamp

2006-11-10 Thread Lei Tang
: Are you going to get the time when the msg being sent, or the time that you received it? For the former, you can use metadata defined in T2 (I think T1 has a corresponding part), for the latter, simple use a timer.getNow().Tie On 11/11/06, Lei Tang [EMAIL PROTECTED] wrote: Hi, TieI'm using TinyOS 1.1.7

[Tinyos-help] Writing to FLASH, which Components/Interfaces to use

2006-07-27 Thread Lei Tang
Hi, Sean,I had some problems when I was trying to write and read to/from flash on MICAz. But now it works very well. You need the component, Logger; and the interfaces are Logger.LoggerWrite and Logger.LoggerRead. Look through the files in apps\SensorLightToLog, you will find them. If it still

[Tinyos-help] Problem on changing radio channel

2006-07-19 Thread Lei Tang
don't have Step 3., channel can switch very well. But if the mote sends messages using the new channel (11), it seems it can't switch back to 26, even though I put a delay timer after the sending. Anybody has some ideas? Thanks!regards,Lei Tang ___ Tinyos

[Tinyos-help] Re:Writing on flash

2006-06-27 Thread Lei Tang
Hi, I'm trying to write and read data to/from the flash memory too. My platform is Micaz and mib510. I found an example in tinyos-1.x/apps/senselighttolog, which seems being designed not for micaz. I used interface LoggerWrite and LoggerRead, but have some problems. Hope somebody can help me.

[Tinyos-help] set frequency and power for the CC2420 in Micaz motes

2006-06-08 Thread Lei Tang
Hi, AndresCC2420Control.SetRFPower(uint8_t power) is in CC2420ControlM.nc.Add interface CC2420Control to YourProjectM.nc and component CC2420RadioC to YourProject.nc, and hopefully you can call setRFPower() and other functions to change the radio's configuration. Best,Lei Tang

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-07 Thread Lei Tang
? Thanks.LeiOn 6/7/06, David Gay [EMAIL PROTECTED] wrote: On 6/5/06, Lei Tang [EMAIL PROTECTED] wrote: I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes.A suggestion: if you want to roll your own code, start by reading

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Lei Tang
7D5E 7D5D 05AA 0744 0811 3840 7E Sankar. On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang [EMAIL PROTECTED] wrote: Hi, Julia Thanks for your reply. I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes. My steps: Firstly

[Tinyos-help] Packet format from PC to base mote through UART

2006-06-05 Thread Lei Tang
? Thanks!Best,Lei Tang ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Lei Tang
didn't see the data section (0xf) in Msg. Did I make a right packet? How could I send data to base mote throught UART correctly? Thanks! Best, Lei Tang ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu

[Tinyos-help] Correlation value in CC2420

2006-05-17 Thread Lei Tang
, and the maximum is 108. Anybody knows what's happening here? Thanks for any help.Best,Lei Tang ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Micaz - the maximum payload of a radio package?

2006-02-10 Thread Lei Tang
Hi, all,I'm working on MICAz and MIB510 to find out the maximum payload (user's data) of a package. I found the parameter, TOSH_DATA_LENGTH, in the file of 'AM.h' and the default is 29. I changed it into some larger values, and then made a package in my code complying to the size. But, it doen't