[Tinyos-help] Strange compiler error

2007-06-28 Thread Oussama Chougna
Hello TinyOS experts, I get this error when compiling tinyos code: Assertion t-type !(defaulted_int || class || scf || name) failed: file sematics.c, line 3584 Make: *** [exe0] error 1 My knowledge tells me that this is a parse error. I searched my whole harddrive for the

RE: [Tinyos-help] BaseStation BaseStationCC2420

2007-06-26 Thread Oussama Chougna
Hi sara, I had the same problem. The cc2420basestation is also snooping packets, so packets which are not destined to your basestation are also received by the snoopingreceive handler. Just comment out the snooping code: BaseStationP.nc: //interface Receive as RadioSnoop[am_id_t id];

RE: [Tinyos-help] From Boomerang to TinyOS2.x, sensor interactivity (ON/OFF)

2007-06-26 Thread Oussama Chougna
The Humidity and Temperature sensors are not implemented in TinyOS 2. There is a DemoSensorC component but it measures the internal voltage. http://www.tinyos.net/tinyos-2.x/doc/html/nesdoc/telosb/ But if you know the ADC port settings, you can write your own implementation. Good luck,

RE: [Tinyos-help] From Boomerang to TinyOS2.x, sensor interactivity(ON/OFF)

2007-06-26 Thread Oussama Chougna
)? Cheers, Urs Oussama Chougna schrieb: The Humidity and Temperature sensors are not implemented in TinyOS 2. There is a DemoSensorC component but it measures the internal voltage. http://www.tinyos.net/tinyos-2.x/doc/html/nesdoc/telosb/ But if you know the ADC port settings, you can

RE: [Tinyos-help] Acknowledgments and base station

2007-06-21 Thread Oussama Chougna
the same components and interfaces as the testAck app. I have to look for the difference. Thank you, -Original Message- From: Steve McKown [mailto:[EMAIL PROTECTED] Sent: woensdag 20 juni 2007 22:49 To: David Moss Cc: 'Oussama Chougna'; tinyos-help@millennium.berkeley.edu Subject: Re

RE: [Tinyos-help] Acknowledgments and base station

2007-06-21 Thread Oussama Chougna
[mailto:[EMAIL PROTECTED] Sent: woensdag 20 juni 2007 22:49 To: David Moss Cc: 'Oussama Chougna'; tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Acknowledgments and base station On Wednesday 20 June 2007 10:26:50 am David Moss wrote: I haven't looked at the code in awhile

RE: [Tinyos-help] Sensors for tmote sky

2007-06-21 Thread Oussama Chougna
Leonardo, I'm working with EasySen SBT80 sensorboard. It has accelerometer and sound and some more sensors. http://www.easysen.com/SBT80.htm Cheers, O.Chougna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leonardo Mostarda Sent: donderdag 21

RE: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-20 Thread Oussama Chougna
Hi, I had this problem too. It was because i did not provide the AdcConfigure interface. Your app should provide this interface by implementing its getConfiguration() command. command adc_config_t getConfiguration() { return config; } Otherwise you get 0xff's as data in the dataready

RE: [Tinyos-help] questions on T-mote processing

2007-06-20 Thread Oussama Chougna
Hi, Listen should be with a capital. It is case sensitive. So modify your sixth step. java net.tinyos.tools.Listen Cheers, O.Chougna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zaihan Yang Sent: maandag 18 juni 2007 20:20 To:

[Tinyos-help] Acknowledgments and base station

2007-06-20 Thread Oussama Chougna
Hello, I just read TEP126 about the radio stack. With the PacketAcknowledgements interface in tinyos2 one could request acks right? But should I modify the base station to send back acks? None of my packets get acked :-( Thank you O.Chougna

RE: [Tinyos-help] Acknowledgments and base station

2007-06-20 Thread Oussama Chougna
Message- From: Steve McKown [mailto:[EMAIL PROTECTED] Sent: woensdag 20 juni 2007 18:01 To: tinyos-help@millennium.berkeley.edu Cc: Oussama Chougna Subject: Re: [Tinyos-help] Acknowledgments and base station On Wednesday 20 June 2007 09:06:17 am Oussama Chougna wrote

RE: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-18 Thread Oussama Chougna
. Thank you, O.Chougna granted -Original Message- From: Philip Levis [mailto:[EMAIL PROTECTED] Sent: vrijdag 15 juni 2007 20:27 To: Oussama Chougna Cc: 'Nicolas Esteves'; tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Multichannel Adc sampling and DMA On Jun 15, 2007

RE: [Tinyos-help] send inside Receive

2007-06-18 Thread Oussama Chougna
Hi sara, I think it is better replacing the sendNow() function by a task. This way you make the event shorter, and complete faster as recommended in the TinyOs programming guide. Cheers, O.Chougna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sara

RE: [Tinyos-help] Anyone used TinyOS 2.0 with TMote Sky

2007-06-15 Thread Oussama Chougna
at Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help] On Behalf Of Oussama Chougna Sent: Friday, June 01, 2007 1:40 PM To: tinyos-help at Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Subject: [Tinyos-help

RE: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-15 Thread Oussama Chougna
Hi Phil, Are you sure about this: Timer.fired() { call Channe1One.read(); call ChannelTwo.read(); call ChannelThree.read(); call ChannelFour.read(); call ChannelFive.read(); call

RE: [Tinyos-help] mig with tmote

2007-06-08 Thread Oussama Chougna
Hi, First, for mig don't specify tmote but msp430 instead. Second, why do you specify MoMoControllerC.nc for? The header file and the name of your message struct is enough. So it should be this: $ mig java -target=msp430 -java-classname=classout PWMMsg.h your_struct_name -o

RE: [Tinyos-help] mig with tmote

2007-06-08 Thread Oussama Chougna
:27 To: Oussama Chougna Cc: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] mig with tmote Ok, thanks, my mistake. i've tried the way you said. it works well with pc: [EMAIL PROTECTED] /opt/moteiv/apps/test_silvia/MobileMote/MoMoController $ mig java -target=pc -java-classname

RE: [Tinyos-help] How to use MIG with telosb for tinyos1.x

2007-06-07 Thread Oussama Chougna
Why don't try it first on the command line? In your makefile you don't specify a target for mig. (telosa, telosb, etc.) Mig java -target=telosb -java-classname=foo fooheader.h FooMSG -o foo.java O.Chougna _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

RE: [Tinyos-help] (no subject)

2007-06-01 Thread Oussama Chougna
I mean the ADChannel input that you are reading is grounded. Sorry, Chougna _ From: Oussama Chougna [mailto:[EMAIL PROTECTED] Sent: vrijdag 1 juni 2007 9:40 To: 'Monica Bell'; 'tinyos-help@Millennium.Berkeley.EDU' Subject: RE: [Tinyos-help] (no subject) Sounds like

RE: [Tinyos-help] (no subject)

2007-06-01 Thread Oussama Chougna
Sounds like your temperature sensor output is grounded on the board? _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Monica Bell Sent: vrijdag 1 juni 2007 4:03 To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] (no subject) Dear all, I am having

[Tinyos-help] Anyone used TinyOS 2.0 with TMote Sky

2007-06-01 Thread Oussama Chougna
Hi there, Does anyone have experience with using TinyOS 2 with the Tmote sky from Moteiv? Thanks in advance, O.Chougna ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

RE: [Tinyos-help] InternalFlash question

2007-05-29 Thread Oussama Chougna
Hi raj, Program memory is where your TinyOS compiled application will reside. That's why it's called program memory. EEPROM is the internal memory which you can use by using the InternalFlashC component. Read TEP103 and you get all your questions answered. Success,

RE: [Tinyos-help] Connecting LCD Panel to TMote Sky

2007-05-23 Thread Oussama Chougna
You have to read the datasheet of the display carefully. In the datasheet they explain how to talk to the display. _ From: Preethi Naveen [mailto:[EMAIL PROTECTED] Sent: dinsdag 22 mei 2007 19:27 To: Oussama Chougna Cc: tinyos-help@millennium.berkeley.edu Subject: Re

RE: [Tinyos-help] Connecting LCD Panel to TMote Sky

2007-05-23 Thread Oussama Chougna
Subject: Re: [Tinyos-help] Connecting LCD Panel to TMote Sky I was also interested in connecting a lcd to my mote, it is a crossbow micaz, is it possible? Can you point to me site worthy of your trust that ships internationally? Thanks, Hugo On 5/23/07, Oussama Chougna [EMAIL PROTECTED] wrote

RE: [Tinyos-help] Connecting LCD Panel to TMote Sky

2007-05-22 Thread Oussama Chougna
The only thing I can tell you is to try the I2C interface. There should be displays with this interface on the market. Here they are about 2 dollars each. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Preethi Naveen Sent: dinsdag 22 mei 2007 16:35 To:

RE: [Tinyos-help] Packet Structure

2007-05-21 Thread Oussama Chougna
Hi Itamar, Search for the Am.h header file in your TinyOS distribution tree. Somewhere in the file the TOS_Msg structure is defined. It has a Data[TOSH_DATA_LENGTH] field in which you can specify your own data structure. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: RE: [Tinyos-help] Packet Structure

2007-05-21 Thread Oussama Chougna
] Sent: maandag 21 mei 2007 15:18 To: Oussama Chougna Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: RE: [Tinyos-help] Packet Structure Hi Oussama, I found The Am.h file (under \tinyos-2.x\tos\types), but there was no mention of the TOS_Msg structure. maybe i need to look

RE: [Tinyos-help] Serial communication with C SDK

2007-05-15 Thread Oussama Chougna
Hi steve, You have to give an extra argument to your compiler. I had exactly the same problem in the past. Try the -g option: Gcc -g yourapp.c your_SDK_pathserialsource.c . Try it and let me know if that fixes your problem. (It should) O.Chougna -Original Message- From: [EMAIL

RE: [Tinyos-help] Radio communication problem issue

2007-05-14 Thread Oussama Chougna
Schippling [mailto:[EMAIL PROTECTED] Sent: vrijdag 11 mei 2007 19:00 To: Oussama Chougna Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Radio communication problem issue Just a few questions and suggestions... The greenON means that you need the message buffer before transmission

[Tinyos-help] Mote addressing issue

2007-05-11 Thread Oussama Chougna
Hi, I have a problem with mote addressing. I use 4 tmote sky modules. 2 of them are sending data to a TOSBased mote connected to a computer. The mote address of the TOSBased mote is 0. The two other data sending motes are addressed as 4 and 5. The TinyOS code which runs on mote 4

[Tinyos-help] Radio communication problem issue

2007-05-11 Thread Oussama Chougna
Hello, Using: Tmote Sky, TinyOS 1.x, Cygwin WinXP I have two motes sampling 4 channels of the AD converter module at 200HZ. On the ADChannels a function generator is putting a sine with an offset applied. When 10 samples are collected from each channel (10 * 2 bytes * 4 channels = 80

RE: [Tinyos-help] Problem with Oscilloscope application

2007-05-10 Thread Oussama Chougna
fine. I'm not so happy with the java tools. Oussama Chougna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schippling Sent: donderdag 10 mei 2007 11:14 To: CASTEL Myriam Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Problem

RE: [Tinyos-help] consecutively two task

2007-05-08 Thread Oussama Chougna
Hi Orcun, You call a Send() command without waiting until the previous send() command returns a SendDone() event. So while the radio stack is processing your message, you are trying to send another message. This fails because radio is busy. After each Send() command you need to wait until

RE: [Tinyos-help] How to know if mote is connected to serial port

2007-05-03 Thread Oussama Chougna
I don't think this functionality is implemented in the Java or C tools. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guillem Corominas Sent: donderdag 3 mei 2007 12:35 To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] How to know if mote

RE: [Tinyos-help] How to know if mote is connected to serial port

2007-05-03 Thread Oussama Chougna
[mailto:[EMAIL PROTECTED] Sent: donderdag 3 mei 2007 12:58 To: Oussama Chougna Cc: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] How to know if mote is connected to serial port Well, I meant the mote to know if it was connected, not the computer, so in the nesC program loaded

RE: [Tinyos-help] can Tmote sky ADC port be used to measure negativevoltage

2007-05-01 Thread Oussama Chougna
Hi, I have this problem too. If you check the schematics in the TMote Sky datasheet, you will see that the negative reference voltage pin is grounded. So you can measure only between 0 and any value. oussama _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

[Tinyos-help] Sequence sampling throught the MSP430ADCMultiple interface

2007-04-04 Thread Oussama Chougna
Hi all, I'm using Tmote Sky. Does anyone know how to sample the ADC channels in a sequence on Tmote? It should be possible through the MSP430ADCMultiple interface, but one instance of the interface is binded to one channel. So how would you sample all channels in a sequence with the

RE: [Tinyos-help] TOS_LOCAL_ADDRESS

2007-03-29 Thread Oussama Chougna
The local address of the mote. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of santosh bhima Sent: woensdag 28 maart 2007 19:14 To: Tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] TOS_LOCAL_ADDRESS what does the variable signify

[Tinyos-help] Sampling @ 100 Hz

2007-03-28 Thread Oussama Chougna
Hello everybody, Does anyone know the best way to sample an ADC channel @ 100 samples per second? My problem is that I can only sample @ 50 Hz. I do this like: command result_t StdControl.start() { call Timer0.startPeriodic(20); //Each 20

[Tinyos-help] Sampling @ 100 Hz on TMote

2007-03-26 Thread Oussama Chougna
Hello everybody, Does anyone know the best way to sample an ADC channel @ 100 samples per second? My problem is that I can only sample @ 50 Hz. I do this like: command result_t StdControl.start() { call Timer0.startPeriodic(20); //Each 20

[Tinyos-help] Sampling multiple channels at different samplerates

2007-03-19 Thread Oussama Chougna
Hi, I'm using a Tmote Sky which has a TI-MSP430. And I hope someone could help me with these two questions. What is the best solution to sampling multiple channels (4 channels) each on different sample rates? The MSP430ADCMultiple interface has a bind() command to do some settings,