[Tinyos-help] micaz OEM
Hi, We have designed a board with the MPR2600. My problem is that the first time I can load a program on the board, but then I can't do it again. When I retry to load other program my software doesn't detect any failure, as if it had done well, but I can see my board doesn't work properly. To load the board I use UART0_RX , UART0_TX, SPI_CK and RSTN pins. Have I forgotten any pin? Has anybody had a similar trouble? Thanks in advance. Andrés. _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] DATA_LENGTH is eating my brain....................
Hi, The AM.h you have to change is in the directory tinyos\cygwin\opt\tinyos-1.x\tos\XXX\, where XXX is the platform you are using (micaz, mica2, telos, ...). Andrés. From: primalfear 69 [EMAIL PROTECTED] To: tinyos-help tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] DATA_LENGTH is eating my brain Date: Thu, 26 Oct 2006 11:46:32 +0530 Hello everybody by default TOSH_DATA_LENGTH is 29.. i want to increase by some more say 50. am not able to get where i have to change i have made the following changes. *FILE NAME* *PATH* ** 1) AM.h tinyos\cygwin\opt\tinyos- 1.x\tos\types after changing the length to say 50... and installed in all the motes and found nothing is coming..:( am not able to get any packet :(( what could be the reason... ? is there any other place where i have to change something else too.. Is myAM.h has something to do with these..?? myAM.h could be found in tinyos\cygwin\opt\tinyos- 1.x\contrib\tinydiff\tos\system ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] MTS300 sensor reading conversions (micaz, tinyos-1.x)
Hi Nuwan, You can see some conversions in the file xconvert.c in opt\tinyos-1.x\contrib\xbow\tools\src\xlisten and in the file mts300.c in opt\tinyos-1.x\contrib\xbow\tools\src\xlisten\boards. I hope this help you. Andrés. From: Nuwan Ginige [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] MTS300 sensor reading conversions (micaz, tinyos-1.x) Date: Tue, 17 Oct 2006 07:12:27 +1000 Hi all, I'm trying to convert various sensor readings from the MTS300 sensor board, and was wondering whether anyone has any pointers or tips for converting various ADC readings to engineering units. The sensors I'm interested in at the moment are the light and microphone sensors; I can't seem to find a reference to what the raw data actually means, or any conversion formula to engineering units. Also, I found this post for converting acceleration readings: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-February/0144 68.html, but I'm not sure how to interpret it. Does anyone have any ideas/experience with this? TIA Cheers Nuwan ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] XMesh Multihop application
Hi all, Perhaps we did not explain our problem right. We have micaz motes and TinyOS 1.15 or MoteWorks, in some computers. We would like to know if the elements, as XMeshBinaryRouter, Bcast or XMeshC, could be used in an application for Telosb. In fact, we want to know more about TelosB and Tmote, what modules do they use to communicate through radio? Are they similar to micaZ modules? Thanks in advance, Andres From: Andres Aberasturi [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] XMesh Multihop application Date: Tue, 19 Sep 2006 17:33:51 +0200 Hi all, Some time ago, we got a Crossbow application called XMesh for MicaZ motes. We use XMTS310, which is the application for MTS310 sensorboard. This kind of applications have a interesting way of communication. A mote can send a message and base mote can answer automatically, and all motes try to get communication with base mote everytime, and more things like these. We are interesting in using the same communication componentes in a TelosB, for example. TelosB and MicaZ have the same radio, CC2420, so is it possible we use the same radio components? We know they have different microcontrollers, so it should be some changes in TinyOS and some components, but we want to know if we could use the same radio components, or very closed. As Tmote an TelosB have the same microcontroller, MSP430, the problem should be the same with Tmote. Any idea is wellcome. Thanks in advance, Andres _ Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] ADC.getContinuousData()
Hi, You must return FAIL in the adc.dataReady(). Andrés. From: antonio gonga [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] ADC.getContinuousData() Date: Tue, 19 Sep 2006 11:19:39 + hello, any one knows how to stop adc.getcontinuousdata()? please feel free to answer me antonio ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] RE: ADC.getContinuousData()
From: antonio gonga [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU CC: [EMAIL PROTECTED] Subject: ADC.getContinuousData() Date: Tue, 19 Sep 2006 12:46:46 + hello sorry to trouble u again, I still have a doubt about Adc.getContinuousData(), I'm sampling a microphone, but i'm not using timer to call it each time the Timer fires. I'd like to know If I return FAIL where will the program control Flow returns example: command result_t StdControl.start(){ post startTakeSamples(); return SUCCESS; } task void startTakeSamples(){ call ADC.getContinuousData() //this will call ADC.dataReady() HERE--?--- } | | async event result_t Adc.dataREady(uint16_t data){ | uffer[i++] = data2; | if(i =MAXBUF) | return FAIL; //WHERE Will The Program RETURN?.- HERE is where you have to return FAIL return SUCCESS; } thanks === *Gonga, Antonio Oliveira : STUDENT OF *Electrical and Computer Engineering(LEEC) *Mobile:+351 969154437 *Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] *HomePage: HTTP://mega.ist.utl.pt/~aogo === From: Andres Aberasturi [EMAIL PROTECTED] To: [EMAIL PROTECTED], tinyos-help@Millennium.Berkeley.EDU Subject: RE: [Tinyos-help] ADC.getContinuousData() Date: Tue, 19 Sep 2006 14:17:37 +0200 Hi, You must return FAIL in the adc.dataReady(). Andrés. From: antonio gonga [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] ADC.getContinuousData() Date: Tue, 19 Sep 2006 11:19:39 + hello, any one knows how to stop adc.getcontinuousdata()? please feel free to answer me antonio ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos _ Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] XMesh Multihop application
Hi all, Some time ago, we got a Crossbow application called XMesh for MicaZ motes. We use XMTS310, which is the application for MTS310 sensorboard. This kind of applications have a interesting way of communication. A mote can send a message and base mote can answer automatically, and all motes try to get communication with base mote everytime, and more things like these. We are interesting in using the same communication componentes in a TelosB, for example. TelosB and MicaZ have the same radio, CC2420, so is it possible we use the same radio components? We know they have different microcontrollers, so it should be some changes in TinyOS and some components, but we want to know if we could use the same radio components, or very closed. As Tmote an TelosB have the same microcontroller, MSP430, the problem should be the same with Tmote. Any idea is wellcome. Thanks in advance, Andres _ Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] help, strange automatic fired timer!!
Hi, I do know the problem, but I think you can write any word (Timer o anything) if you have defined it corretly. I am sorry I can help you with your previous question. Andres From: Pablo Gil Montaño [EMAIL PROTECTED] To: campbell gao [EMAIL PROTECTED],hi,all tinyosbuddies tinyos-help@Millennium.Berkeley.EDU Subject: RE: [Tinyos-help] help, strange automatic fired timer!! Date: Wed, 13 Sep 2006 12:34:53 +0200 (CEST) Please, correct me if this is nonsense, but try with unique(Timer) instead of unique(MSPSensing). campbell gao [EMAIL PROTECTED] escribió: hi all, i encounter a strange problem: the time auto to fire without any call timer.fire();. In my configuration Sensing.nc,3 timers are configured like following: //timer MSPSensingM.LedsTimer - TimerC.Timer[unique(MSPSensing)]; MSPSensingM.SyncTimer - TimerC.Timer[unique(MSPSensing)]; MSPSensingM.SendTimer - TimerC.Timer[unique(MSPSensing)]; in my Stdcontrol part of SensingM.nc, i don't fire any timer: command result_t StdControl.init() { call Leds.init(); call PIRControl.init(); return SUCCESS; } command result_t StdControl.start() { call PIRControl.start(); return SUCCESS; } command result_t StdControl.stop() { call PIRControl.stop(); return SUCCESS; } and if i want to start the sampling, i will send a message to nodes .The receive code is like following: . event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr message) { if(message-type==0x0c){//reset mote msg if(message-data[0] == ALL_MOTES||message-data[0] == TOS_LOCAL_ADDRESS){ if(message-data[1] == MSG_START) { call SyncTimer.start(TIMER_REPEAT,timeSlot); . But how strange it is!! The sampling start up when i turn on the node's switch!! And sampling data is sent back!! Who could tell me that is why?? -- best wishes campbell SNARC ~~:nihao~~:hi~~:ciao~~ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Cygwin Version Problem
Hi. Has you tried to write make micaz install,0 mib510,/dev/ttyS0 ? (ttyS0 because com1, for example ttyS3 because it is com4) Andres. From: goetgheb [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] Cygwin Version Problem Date: Wed, 12 Jul 2006 11:44:10 +0200 Hello everybody I am using tinyOS-1.15 under Cygwin application (the original cygwin from tinyos 1.1.0) But when I upgraded my Cygwin version (into 1.2 or 1.5), I can't upload my application into my motes. In fact, after writing the command make micaz install,0 mib510,com1, It compiles the program, detects my card but doesn't transferred the code into my micaZ ??? What change should I do??? Thanks a lot Sincerely Matt ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Acepta el reto MSN Premium: Protección para tus hijos en internet. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_proteccioninfantil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS 1.1.15 Timer help
Hi all, We are working with micaz motes, mts310 sensorboard and Crossbow contribution. We have been working with TinyOS 1.1.7, but some weeks ago we started to use TinyOS 1.1.15. We have applications in TinyOS 1.1.7 which work with two timers: AppM.Timer1 - TimerC.Timer[unique(Timer)]; AppM.Timer2 - TimerC.Timer[unique(Timer)]; Now, these applications do not work in TinyOS 1.1.15. Their timers do not work correctly. We do not know whether timer module is changed and we should implement it in other way. Could anybody help us? Any clue will be wellcome. Thanks in advance, Andres _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] TinyOS 1.1.15 Timer help
Hi all, Sorry, we have found the error. It was a hardware problem. Thanks, Andres From: Andres Aberasturi [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] TinyOS 1.1.15 Timer help Date: Wed, 05 Jul 2006 08:28:45 +0200 Hi all, We are working with micaz motes, mts310 sensorboard and Crossbow contribution. We have been working with TinyOS 1.1.7, but some weeks ago we started to use TinyOS 1.1.15. We have applications in TinyOS 1.1.7 which work with two timers: AppM.Timer1 - TimerC.Timer[unique(Timer)]; AppM.Timer2 - TimerC.Timer[unique(Timer)]; Now, these applications do not work in TinyOS 1.1.15. Their timers do not work correctly. We do not know whether timer module is changed and we should implement it in other way. Could anybody help us? Any clue will be wellcome. Thanks in advance, Andres _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] generate docs
Hi Rahul, You should be right, but we can not get the right path. We have only two dot.exe, one of them in tinyos\ATT\Graphviz\bin, and the other one in Eclipse (with an equivalent path). We have changed the path in control panel, but we get the same error. We think Eclipse has a path where it looks for it, and we do not know where we have to change this path. We will try in other forum about Eclipse. Thanks a lot anyway. Andres From: Rahul Sawant [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] generate docs Date: Thu, 29 Jun 2006 10:24:22 -0500 what i meant was there should be 2 dot.exe files on ur comp. one installed by tinyos in \tos\ATT\Graphviz\bin folder and other some where else installed by some other software. try searching ur comp for dot.exe to see if u indeed have 2 dot.exe files. if u do have 2 dot.exe files when tinyos tries to use dot.exe the system actually gives it a link to the other dot.exe which was installed by some other program this is because of the path variable in control panel. and if u change the path variable as i said in my last mail it should work. u can also try the following rename ur other dot.exe to say dot_old.exe for the time being. (ur other software might have problem if u r running at the same time but if it not running then no problem.) now try to make docs in tinyos. if this works u know what the problem is. now once ur done making docs rename the file back to dot.exe.(so ur other software doesnot have any problems in future.) rahul On 6/29/06, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi, Thanks Rahul, but we do not understand it. We do not have matlab or anything which perhaps uses dot.exe (we suposed). Actually, we have installed TinyOS Plugin for Eclipse. And this plugin has installed TinyOs 1.1.15, and it works, but when we write make micaz docs, we do not get the images of the documentation. In the error we read: Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams. So, we though we have to upgrade Graphviz in order to get these diagrams. It seems an error about the Graphviz version which is installed with TinyOs 1.1.15. Then, we found Graphviz web site, but there are 2 version of Graphviz, one of them for Windows and the other one for Linux. We are working in Windows XP, but Cygwin is like Linux, is not it? So, what we have to install? Or is it wrong? Perhaps we are not right. Could anybody help us? Thanks in advance, Andres From: Rahul Sawant [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] generate docs Date: Wed, 28 Jun 2006 19:12:45 -0500 hi i think this is because ur comp already has a file dot.exe and the version of that is old. u can search where it is on ur comp . in my comp it was in \Matlab7\bin\win32 folder as matlab also uses it. i guess if u rename this file in matlab folder everthing will work fine. or i guess change the system path variable from the control panel, in this make sure ur matlab path is the last one ie it should be after this one \tinyos\ATT\Graphviz\bin; i hope this will help you rahul On 6/28/06, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi all, We have update TinyOs to TinyOS 1.1.15. It works fine but it does not generate the images of the documentation. We get the following error: nesc1: warning: DOC WARNING: your version of `dot' does not support client-side image maps. Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams. So, we think we need to update graphviz, do not we? We found graphviz but we have some doubts about it: What is the right graphviz version to work in TinyOS 1.1.15? We are working with Windows XP, do we need Windows version or Linux version (in order to work with Cygwin)? Thank you in advance, Andres _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ _ Acepta el reto MSN Premium: Protección para tus hijos en internet. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_proteccioninfantil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] GenericComm export
Hi all, We have a problem exporting an interface. We work with the radio module of a micaz and we use GenericComm. We are going to explain all our wirings. First of all, CC2424ControlM is a module which provides CC2420Control (an interface), we write a line in order to export this interface from CC2420RadioC (which is a configuration where is CC2420ControlM): in CC2420RadioC: CC2420Control = CC2420ControlM.CC2420Control; Then, CC2420RadioC belogns to RadioCRCPacket, so RadioCRCPacket (a configuration) can export CC2420Control: In RadioCRCPacket: CC2420Control = CC2420RadioC.CC2420Control; Finally, RadioCRCPacket belongs to GenericComm, so in order to export CC2420Control we should write something like: In GenericComm: CC2420Control = RadioCRCPacket.CC2420Control; But this last line... well, our application compiles without this line, but with this line we get an error: cannot find CC2420Control. We have revised all the code, and we write carefully all provides interface CC2420Control; in configurations. What is the problem? Why we do not make the third export? We would be grateful for any idea. Thanks in advance, Andres _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] generate docs
Hi, Thanks Rahul, but we do not understand it. We do not have matlab or anything which perhaps uses dot.exe (we suposed). Actually, we have installed TinyOS Plugin for Eclipse. And this plugin has installed TinyOs 1.1.15, and it works, but when we write make micaz docs, we do not get the images of the documentation. In the error we read: Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams. So, we though we have to upgrade Graphviz in order to get these diagrams. It seems an error about the Graphviz version which is installed with TinyOs 1.1.15. Then, we found Graphviz web site, but there are 2 version of Graphviz, one of them for Windows and the other one for Linux. We are working in Windows XP, but Cygwin is like Linux, is not it? So, what we have to install? Or is it wrong? Perhaps we are not right. Could anybody help us? Thanks in advance, Andres From: Rahul Sawant [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] generate docs Date: Wed, 28 Jun 2006 19:12:45 -0500 hi i think this is because ur comp already has a file dot.exe and the version of that is old. u can search where it is on ur comp . in my comp it was in \Matlab7\bin\win32 folder as matlab also uses it. i guess if u rename this file in matlab folder everthing will work fine. or i guess change the system path variable from the control panel, in this make sure ur matlab path is the last one ie it should be after this one \tinyos\ATT\Graphviz\bin; i hope this will help you rahul On 6/28/06, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi all, We have update TinyOs to TinyOS 1.1.15. It works fine but it does not generate the images of the documentation. We get the following error: nesc1: warning: DOC WARNING: your version of `dot' does not support client-side image maps. Upgrade to graphviz = 1.8.8 to enable clickable wiring diagrams. So, we think we need to update graphviz, do not we? We found graphviz but we have some doubts about it: What is the right graphviz version to work in TinyOS 1.1.15? We are working with Windows XP, do we need Windows version or Linux version (in order to work with Cygwin)? Thank you in advance, Andres _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] sending to a specific mote
Hi all, I am working with a complex application, where a mote ("my source" with a node_id=0x1) has to send a TOS_msg to another mote. There could be two ways to get that a message sended from one mote was listened by a specific mote and ignored by the others. Those 2 ways are: 1) I could implement in the command Receive.receive that all other motes ignore received messages from "my source" (with an "if" and the node_id of the message). event TOS_MsgPtr Receive.receive(TOS_MsgPtr Msg){ if (Msg-data[node_id]==0x1){return Msg;} ..} or, 2) I could implement that the mote sends the message to an specific node_id. This should be done with msg_radio - addr. I want to implement the second way. I have tried it and my code is the next one: task void send_msg(){ msg_radio-addr= 0x1 ...} Any help is wellcome. Thanks a lot, Andres Acepta el reto MSN Premium: Envía hasta 500 megas diarios de fotos desde Hotmail. Descárgalo y pruébalo 2 meses gratis. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] make micaz docs problem
Hi all, We have installed somethings and we have a problem in one computer. When we write make micaz docs we get the following message: AVE @ Andres /cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/contrib/kk/apps/TOSBase $ make micaz docs Making documentation for TOSBase on micaz nesdoc /cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/contrib/kk/doc/nesdoc/micaz -fnesc-is-app -I%T/../xbow/tos/platform/mica2 -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7E -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=m icasb -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 -DRADIO_XMIT_POWER=0xFF -DIDENT_PROGRAM_NAME=TOSBase -DIDENT_PROGRAM_NAME_ BYTES=84,79,83,66,97,115,101,0 -DIDENT_USER_HASH=0xf68c92dbL -DIDENT_UNIX_TIME=0x449a3e93L -I/opt/tinyos-1.x/tos/lib/CC2420Ra dio TOSBase.nc nesc1: ERROR: The current directory is not a subdir of one nesc1:of the source topdirs! Please correct or add nesc1:the -nesc-topdir= options nesc1: nesc1: CWD: /cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/contrib/kk/apps/TOSBase nesc1: nesc1: TOPDIRS: nesc1: /opt/tinyos-1.x make: *** [docs_] Error 1 Any idea about it? How can we add a directory to -nesc-topdir? I would be greateful for any suggestion. Thanks in advance, Andres _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] uint16_t time in TOS_msg
Hi all, I am working with the CC2420 radio modules of the micaz motes. My TinyOS version is 1.1.7. I have been checking the TOS_msg of the micaz in the AM.h file. But there is part of the structure that I do not know exactly what is it for: uint16_t time. Can anyone help me? Thank you in advance, Andrés Acepta el reto MSN Premium: Envía hasta 500 megas diarios de fotos desde Hotmail. Descárgalo y pruébalo 2 meses gratis. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] NesC and TinyOS
Thanks for your help Philip. We are reading your programming manual, which is really good, but we would want to understand right. Your answers help us a lot. Andres From: Philip Levis [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] NesC and TinyOS Date: Tue, 13 Jun 2006 09:00:46 -0700 On Jun 12, 2006, at 7:29 AM, Andres Aberasturi wrote: Hi all, We have been working with TinyOs and NesC some few months, but we still have some doubts. We want to ask you the following three questions: 1.- In some places, we have read that events can call commands, post tasks and signal other events. Also, we have read that commands can call lower level commands. Then, a command cannot post a task? or signal an event? is it right? We thought command can do it. The only operation that issues a warning is when an async function calls a sync function. For simplicity, sync functions are only safe to call when the root of the call graph is a task. Async functions can also have interrupt handlers are their root. In practice, it is bad practice to signal an event (signal ) inside a command. There is nothing that prevents you from doing so, however. It is bad practice because it can easily lead to infinite call loops. For example: call Foo.send(); event void Foo.sendDone(); commmand void Foo.send() { signal Foo.sendDone(); } The TinyOS programming manual goes into detail on this and other good/ bad programming practices. 2.- We have read that there are two level scheduling: events and tasks. We know TinyOs scheduler manages tasks which are posted, so does TinyOs scheduler manage events? or are events managed like commands? The distinction is sync/async. The term event was overloaded in the original TinyOS paper to mean both callback and interrupt. The command/event distinction means the former, the task/event distinction means the latter. The nesC paper and the TinyOS programming guide are good resources for learning about the details. 3.- If you have a task posted, could you post the same task other time? We mean if we have a task in the task qeue, could we post the same task again? Perhaps it is a simple question, but we think it is possible that if the task is in the task qeue, we couldn't post it again. This depends on what version of TinyOS you're using. In 1.x, a single task can have multiple outstanding posts in the task queue. In 2.x, a task can only have one outstanding post. This latter behavior turns out to have a lot of nice isolation and fairness properties. TEP 106 has a good discussion of the tradeoffs. Phil _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] RSSI_VAL
Hi all, I am working with the localization of micaz motes (with the 1.1.7version of TinyOS), and for it, I need to know the RSSI value messured. At this moment, I am able to read the value, and see that when I separate the motes, this value dicreases. But which are the unit of this value ? How can I do the conversion? The datasheet of CC2420 gives me this formula to obtain the power in dBm: P=RSSI_VAL+RSSI_OFFSET RSSI_OFFSET is -45dBm, so, RSSI_VAL must be in dB if I want to obtain the power in dBm. Can anyone explain me how can I convert my data read to RSSI_VAL in dB? Thank you in advance, Andrés _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] RSSI_VAL
Hi, I have an application that copies the msg-strength and saving it in an uint8_t data: uint8_t msg-data[4]=msg-strength then with my own xlisten, I visualize the strength. Thanks for your attention, Andrés From: Hui KANG [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [Tinyos-help] RSSI_VAL Date: Tue, 13 Jun 2006 09:52:01 -0500 (CDT) Which tool did you use to see the value, listen or others? Thanks. Hui Kang On 6/13/2006, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi all, I am working with the localization of micaz motes (with the 1.1.7version of TinyOS), and for it, I need to know the RSSI value messured. At this moment, I am able to read the value, and see that when I separate the motes, this value dicreases. But which are the unit of this value ? How can I do the conversion? The datasheet of CC2420 gives me this formula to obtain the power in dBm: P=RSSI_VAL+RSSI_OFFSET RSSI_OFFSET is -45dBm, so, RSSI_VAL must be in dB if I want to obtain the power in dBm. Can anyone explain me how can I convert my data read to RSSI_VAL in dB? Thank you in advance, Andrés _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] NesC and TinyOS
Hi all, We have been working with TinyOs and NesC some few months, but we still have some doubts. We want to ask you the following three questions: 1.- In some places, we have read that events can call commands, post tasks and signal other events. Also, we have read that commands can call lower level commands. Then, a command cannot post a task? or signal an event? is it right? We thought command can do it. 2.- We have read that there are two level scheduling: events and tasks. We know TinyOs scheduler manages tasks which are posted, so does TinyOs scheduler manage events? or are events managed like commands? 3.- If you have a task posted, could you post the same task other time? We mean if we have a task in the task qeue, could we post the same task again? Perhaps it is a simple question, but we think it is possible that if the task is in the task qeue, we couldn't post it again. We will be grateful for any help. Thanks in advance, Andres _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] set frequency and power for the CC2420 in Micaz motes
Thank you very much Michael and Lei for answering my question. I understand much better how it works. But... I still don't find the definition of TXPOWER_MAX. The problem, can it be that I am using the version 1.1.7 of TinyOS? (Yes, very probably) Also, the MakeXbowLocal file that I am using is old (there are the frequency and power definitions for the mica2!But until now, I have not found any problem to compile the apps). So I am confused with this! I mean, I have been always working with micaz and why my application compilation have not advertised me about using a wrong MakeXbowLocal. Anyway, if I would be using the mica2, where is the definition for example of RADIO_916BAND_CHANNEL_00 that appears in MakeXbowLocal? Thank you again for your help, Andrés From: Michael Schippling [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] set frequency and power for the CC2420 in Micaz motes Date: Thu, 08 Jun 2006 13:41:35 -0600 I don't know, is actually my best answer but I've never been afraid to make a few guesses anyway... The defines set in the MakeXbowLocal file are probably used in a config array someplace. I think that's what mica2 does, so I'd guess micaz does as well. If you search for those names in the the code you may find something useful. In order to be maximally confusing, making default settings does not use the high-level interfaces. This is to make it impossible to do what you are trying to do, i.e., understand how things work. [just did it to prove my ability to guess impossible things: in tos/lib/CC2420Radio/ grep CC2420_DEF_CHANNEL *.nc CC2420ControlM.nc: ((357+5*(CC2420_DEF_CHANNEL-11)) CC2420_FSCTRL_FREQ)); CC2420ControlM.nc:status = status call CC2420Control.TunePreset(CC2420_DEF_CHANNEL); Guess I should head out to Las Vegas while my luck holds...] What the makefile is doing is setting a bunch of -D defines for the compiler. If you do a make micaz for some demo app, you should see something like this: enfield:Robot [6] make micaz mkdir -p build/micaz compiling Robot to a micaz binary ncc -o build/micaz/main.exe -Os -I%T/../contrib/xbow/tos/pla tform/mica2 -I../../tos/interfaces -I../../tos/system -finli ne-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=125 -Wnesc -all -target=micaz -fnesc-cfile=build/micaz/app.c -board=mic asb -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 -DRADIO_XMI T_POWER=0xFF -DCC2420_TXPOWER=TXPOWER_MAX -DCC2420_DEF_CHANN EL=26 -DIDENT_PROGRAM_NAME=Robot -DIDENT_PROGRAM_NAME_BYTE S=82,111,98,111,116,0 -DIDENT_USER_HASH=0xdbcec089L -DIDEN T_UNIX_TIME=0x44887a32L -I/cygdrive/C/cygwin/opt/tinyos-1.1. 7/tos/lib/CC2420Radio Robot.nc -lm where, e.g., -DCC2420_TXPOWER=TXPOWER_MAX is passed to the ncc compiler and does what a header define would do: #define CC2420_TXPOWER TXPOWER_MAX and TXPOWER_MAX is probably declared in a CC2420 header someplace. For the channel it's more straight-forward because the name CC2420_DEF_CHANNEL is set to the value 26, which is part of the actual data that gets written to a register someplace. I think that's what you were asking about anyway... MS Andres Aberasturi wrote: Hi Michael, I have seen that in the module CC2420ControlM, inside the configuration CC2420RadioC, there is the implementation of the function SetRFPower, like this: command result_t CC2420Control.SetRFPower(uint8_t power) { gCurrentParameters[CP_TXCTRL] = (gCurrentParameters[CP_FSCTRL] 0xfff0) | (power CC2420_TXCTRL_PAPWR); call HPLChipcon.write(CC2420_TXCTRL,gCurrentParameters[CP_TXCTRL]); return SUCCESS; } But I do not find were is it call. I suposed that it would be in the module CC2420RadioM, but it is not there. And to finish, two more things. The first one, I do not see were is defined the variable TXPOWER_MAX. And secondly, when you write in MakeXbowLocal: CFLAGS +=-DCC2420_TXPOWER=TXPOWER_MAX CFLAGS +=-DCC2420_DEF_CHANNEL=26 are you just printing in the console the sentenses DCC2420_TXPOWER=TXPOWER_MAX and DCC2420_DEF_CHANNEL=26, or you are really setting the power and the frequency? I want to know where are DCC2420_TXPOWER and DCC2420_DEF_CHANNEL declarated. Than you very much in advance, Andres From: Michael Schippling To: Andres Aberasturi CC: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] set frequency and power for the CC2420 in Micaz motes Date: Wed, 07 Jun 2006 17:01:38 -0600 IF you poke down a bit further in MakeXbowLocal you should see things like: CFLAGS +=-DCC2420_TXPOWER=TXPOWER_MAX CFLAGS +=-DCC2420_DEF_CHANNEL=26 for the micazis that what you are looking for? MS Andres Aberasturi wrote: Hi all, At this moment I am working with the chipcon CC2420 in the MicaZ motes. I would like to know if I can change the frequency and the power, and how can I do it? I have seen
Re: [Tinyos-help] set frequency and power for the CC2420 in Micaz motes
Hi Michael, I have seen that in the module CC2420ControlM, inside the configuration CC2420RadioC, there is the implementation of the function SetRFPower, like this: command result_t CC2420Control.SetRFPower(uint8_t power) { gCurrentParameters[CP_TXCTRL] = (gCurrentParameters[CP_FSCTRL] 0xfff0) | (power CC2420_TXCTRL_PAPWR); call HPLChipcon.write(CC2420_TXCTRL,gCurrentParameters[CP_TXCTRL]); return SUCCESS; } But I do not find were is it call. I suposed that it would be in the module CC2420RadioM, but it is not there. And to finish,two more things. The first one, I do not see were is defined the variable TXPOWER_MAX.And secondly, when you write in MakeXbowLocal: CFLAGS +=-DCC2420_TXPOWER=TXPOWER_MAX CFLAGS +=-DCC2420_DEF_CHANNEL=26 are you just printing in the console the sentenses DCC2420_TXPOWER=TXPOWER_MAX and DCC2420_DEF_CHANNEL=26, or you are really setting the power and the frequency? I want to know where are DCC2420_TXPOWER and DCC2420_DEF_CHANNEL declarated. Than you very much in advance, Andres From: Michael Schippling <[EMAIL PROTECTED]> To: Andres Aberasturi <[EMAIL PROTECTED]> CC: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] set frequency and power for the CC2420 in Micaz motes Date: Wed, 07 Jun 2006 17:01:38 -0600 IF you poke down a bit further in MakeXbowLocal you should see things like: CFLAGS +=-DCC2420_TXPOWER=TXPOWER_MAX CFLAGS +=-DCC2420_DEF_CHANNEL=26 for the micazis that what you are looking for? MS Andres Aberasturi wrote: Hi all, At this moment I am working with the chipcon CC2420 in the MicaZ motes. I would like to know if I can change the frequency and the power, and how can I do it? I have seen that for the mica2 motes, this is made in the MakeXbowLocal: CFLAGS = -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 CFLAGS += -DRADIO_XMIT_POWER=0xFF But what happens if I use the MicaZ? Which range of values can I use for micaz? Thanks in advance, Andrés _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Encuentra una aventura, un romance o al amor de tu vida. Date de alta gratis. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Pins to connect mib510 with a micaz
Hi all, We are going to work with a micaz oem. Then we need connect micaz to MIB510. What pins we have to connect? We think we need to connect Vcc (50), GND (51), UART_RXD0 (27), UART_TXD0 (28), PROG_MOSI (16), PROG_MISO (17), where in brackets it is the pin number of the hirose connector. is that right? We will be grateful for any clue. Thanks in advance, Andres _ Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] set frequency and power for the CC2420 in Micaz motes
Hi all, At this moment I am working with the chipcon CC2420 in the MicaZ motes. I would like to know if I can change the frequency and the power, and how can I do it? I have seen that for the mica2 motes, this is made in the MakeXbowLocal: CFLAGS = -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 CFLAGS += -DRADIO_XMIT_POWER=0xFF But what happens if I use the MicaZ? Which range of values can I use for micaz? Thanks in advance, Andrés _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Main.StdControl - TimerC;
Hi, Thanks for your help again, Roberto. We understand that if we wired Timer.StdControl to our application, we have to call TimerControl.init in our code. But, if we did not wire to it Timer is wired to Realmain, then: When is StdControl.init() (which StdControl belongs to TimerC) called? What is its time? In Realmain there is a call StdControl.init(), but we suposed it was a StdControl belongs to our application. Ous question is: is this line (call StdControl.init();) in Realmain belongs to our application? or also is calling the StdControl of the Timer? We appreciate your suggestions. Anyway, thanks for your help, Andres From: Roberto [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED], tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Main.StdControl - TimerC; Date: Fri, 26 May 2006 09:53:02 + But we still have a doubt. What kind of errors? in general, you can forget to add in yourApp.StdControl.init() to call timer stdcontrol.init, so it's better wiring it to Main.stdcontrol. In fact if you miss it the ncc compiler not always makes you a warning or an error, so you cannot find easily the error. We have other question. When your application begins from Realmain, StdControl.init is called, but it should be the init of your application, or is it the init for Timer too? If it is not, where is called StdControl.init of Timer? only if you wired timer.stdcontrol to your app you have to call timer.init in yourApp.stdcontrol Roberto _ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] motes localization for micaz
Hi all, I am writting to you in order to know if there is already an aplication for nodes localization. I have read part of the literature about nodes localization to know which algorithms there are. I have met with ROCRSSI algorithm. Has anyone implemented it? or which ones have been done? Thanks in advance, Andrés Note: we are using MicaZ _ Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Clock3 - Duty cycle
Hi all, We have found the problem. We wrote cbi(ETIMSK, TICIE3);, and it should be sbi(ETIMSK, TICIE3); to enable interrupts. Anyway, thanks a lot, Andres From: Andres Aberasturi [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] Clock3 - Duty cycle Date: Tue, 16 May 2006 16:28:13 +0200 Hi all, We have micaz motes. We have installed TinyOS 1.1.7. We have bought a temperature sensor, whose data is measured through a duty cycle. Then we need a clock to measure it. We have write an application and it compiles right, but the micaz mote does not work. We have tested that the interrupt does not happen, we put a led in TOS_SIGNAL. We do not know what the problem is. We have copied here the code of our module. Can anyone help us? Thanks in advance, Andres module DutyCycleM { provides interface DutyCycle; uses interface Leds; } implementation { command result_t DutyCycle.start(uint8_t relojinit){ uint8_t data = inp(TCCR3B); sbi(TCCR3B, ICES3); // Interrupt rising cbi(ETIMSK, TICIE3); // Interrupt enable outp(((data 0xF8) | relojinit),TCCR3B); // Clock select return SUCCESS; } command result_t DutyCycle.stop() { uint8_t data = inp(TCCR3B); outp((data 0xF8),TCCR3B); // Timer/Counter stop cbi(ETIMSK, TICIE3); // Interrupt disable return SUCCESS; } command result_t DutyCycle.changeClock(uint8_t reloj){ uint8_t data = inp(TCCR3B); uint8_t buffer = inp(ETIMSK); cbi(ETIMSK, TICIE3); // Interrupt disable sbi(TCCR3B, ICES3); // Interrupt rising outp(((data 0xF8) | reloj),TCCR3B); //0xF8 = 1000 outp(buffer,ETIMSK); // Interrupt before return SUCCESS; } default async event result_t DutyCycle.dataReady(uint16_t done) { return SUCCESS; } TOSH_SIGNAL(SIG_INPUT_CAPTURE3) { uint16_t data = inw(ICR3L); call Leds.set(7); if (inp(TCCR3B) 0x40) cbi(TCCR3B, ICES3); // Falling else sbi(TCCR3B, ICES3); // Rising sbi(ETIFR,ICF3); // Flag clear __nesc_enable_interrupt(); signal DutyCycle.dataReady(data); } } _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Clock3 - Duty cycle
Hi all, We have micaz motes. We have installed TinyOS 1.1.7. We have bought a temperature sensor, whose data is measured through a duty cycle. Then we need a clock to measure it. We have write an application and it compiles right, but the micaz mote does not work. We have tested that the interrupt does not happen, we put a led in TOS_SIGNAL. We do not know what the problem is. We have copied here the code of our module. Can anyone help us? Thanks in advance, Andres module DutyCycleM { provides interface DutyCycle; uses interface Leds; } implementation { command result_t DutyCycle.start(uint8_t relojinit){ uint8_t data = inp(TCCR3B); sbi(TCCR3B, ICES3); // Interrupt rising cbi(ETIMSK, TICIE3); // Interrupt enable outp(((data 0xF8) | relojinit),TCCR3B); // Clock select return SUCCESS; } command result_t DutyCycle.stop() { uint8_t data = inp(TCCR3B); outp((data 0xF8),TCCR3B); // Timer/Counter stop cbi(ETIMSK, TICIE3); // Interrupt disable return SUCCESS; } command result_t DutyCycle.changeClock(uint8_t reloj){ uint8_t data = inp(TCCR3B); uint8_t buffer = inp(ETIMSK); cbi(ETIMSK, TICIE3); // Interrupt disable sbi(TCCR3B, ICES3); // Interrupt rising outp(((data 0xF8) | reloj),TCCR3B); //0xF8 = 1000 outp(buffer,ETIMSK); // Interrupt before return SUCCESS; } default async event result_t DutyCycle.dataReady(uint16_t done) { return SUCCESS; } TOSH_SIGNAL(SIG_INPUT_CAPTURE3) { uint16_t data = inw(ICR3L); call Leds.set(7); if (inp(TCCR3B) 0x40) cbi(TCCR3B, ICES3); // Falling else sbi(TCCR3B, ICES3); // Rising sbi(ETIFR,ICF3); // Flag clear __nesc_enable_interrupt(); signal DutyCycle.dataReady(data); } } _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] ncc - NesC compiler
Hi all, We would like to study the NesC compiler, ncc. We have installed tinyOS 1.1.7, and we have downloaded ncc source code. In the NesC compiler, we think the platform that you have chosen is important for some files, it seems that they will have to be changed if you want to use another microcrontroller. We do not know a lot about ncc, so could anybody help us? What should we do for changing the microcrontroller? Thanks in advance, Andres _ Grandes éxitos, superhéroes, imitaciones, cine y TV... http://es.msn.kiwee.com/ Lo mejor para tu móvil. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Problems with the radio updating TinyOS
Hi all, I've just updated my TinyOS version from 1.1.7 to 1.1.15, and now I can't load some applications in my micaz motes. These applications use the radio to send messages, for example I can load Blink and TOSBase, but I can't load XSensorMTS300. When I try load it I get the following error: C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In function `tryToSend': C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:419: implicit declaration of function `TOSH_READ_CC_FIFOP_PIN' C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In function `delayedRXFIFO': C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:544: implicit declaration of function `TOSH_READ_CC_FIFOP_PIN' C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In function `HPLChipconFIFO.RXFIFODone': C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:641: implicit declaration of function `TOSH_READ_CC_FIFOP_PIN' C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc: In function `FIFOP.startWait': C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:80: implicit declaration of function `CC2420_FIFOP_INT_MODE' C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc: In function `__vector_7': C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:102: implicit declaration of function `CC2420_FIFOP_INT_CLEAR' TestSensor.nc: At top level: TestSensor.nc:54: component Voltage not found TestSensor.nc:71: no match TestSensor.nc:72: no match make: *** [exe0] Error 1 The functions `CC2420_FIFOP_INT_MODE' and `CC2420_FIFOP_INT_CLEAR' are defined in the file: C:\tinyos\cygwin\opt\tinyos-1.x\tos\platform\micaz\hardware.h Could anybody help me? Thanks in advanced, Andres. _ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Problems updating TinyOS
Hi all, I've updated tinyos from 1.1.7 to 1.1.15 version and I can't load applications that use the radio. I use a micaz mote. when I do make micaz I get the following: $ make micaz mkdir -p build/micaz compiling XSensorMDA300 to a micaz binary ncc -o build/micaz/main.exe -Os -I../../tos/interfaces -I../../tos/system -I../../tos/lib -I../../tos/sensorboards/mda300 -I../../tos/platform/micaz -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7D -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=mda300 -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 -DRADIO_XMIT_POWER=0xFF -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\XSensorMDA300\ -DIDENT_USER_ID=\avelazquez\ -DIDENT_HOSTNAME=\2109-14\ -DIDENT_USER_HASH=0x3da11391L -DIDENT_UNIX_TIME=0x443cd3eaL -DIDENT_UID_HASH=0x18134854L -I/opt/tinyos-1.x/tos/lib/CC2420Radio XSensorMDA300.nc -lm C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In function `tryToSend': C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:419: implicit declaration of function `TOSH_READ_CC_FIFOP_PIN' C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In function `delayedRXFIFO': C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:544: implicit declaration of function `TOSH_READ_CC_FIFOP_PIN' C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In function `HPLChipconFIFO.RXFIFODone': C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:641: implicit declaration of function `TOSH_READ_CC_FIFOP_PIN' C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc: In function `FIFOP.startWait': C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:80: implicit declaration of function `CC2420_FIFOP_INT_MODE' C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc: In function `__vector_7': C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:102: implicit declaration of function `CC2420_FIFOP_INT_CLEAR' make: *** [exe0] Error 1 The functions `CC2420_FIFOP_INT_CLEAR' and `CC2420_FIFOP_INT_MODE' are declared in C:\tinyos\cygwin\opt\tinyos-1.x\tos\platform\micaz\hardware.h, but I don't find the function `TOSH_READ_CC_FIFOP_PIN'. Why aren't the functions found? Could anybody give me a solution? Thanks in advance, Andres. _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] make Tmote
Hi, Thanks Cory. You are right, the install did not succeed. I have tried again, but I have noticed that Boomerang install TinyOS 1.1.15. In my PC, the updates do not work, the only one which works is TinyOS 1.1.7. Other updates, like Boomerang, say something like (sorry for the translation but the message is in spanish): It does not find enter point of __getreent in the dinamic link library cygwin1.dll (No se encuentra el punto de entrada del procedimiento __getreent en la biblioteca de vinculos dinamicos cygwin1.dll ) Anyway, I am going to desinstall and install again, but it should not work. Is there any Boomerang version with TinyOS 1.1.7? Well, I do not know if Boomerang needs TinyOS 1.1.15. Maybe I only need the folder that I do not have opt/moteiv/tools/make, so I would not have to install TinyOS 1.1.15, is it possible? Thanks for your helpful answers, Andres From: Cory Sharp [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] make Tmote Date: Thu, 6 Apr 2006 12:32:16 -0700 Andreas, Moteiv Boomerang installs exclusively into /opt/moteiv/. If the install succeeded, /opt/moteiv and its children such as /opt/moteiv/tinyos-1.x/tools/make should absolutely exist. If you do not have these directories, then Boomerang is not installed and I recommend you try installing again. Cory On 4/6/06, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi, Thanks for your help Cory. I have found 5 differents files called Makerules. I do not have the /opt/moteiv/tinyos-1.x/tools/make/ folder, so I have written: @2109-26 /opt/moteiv/apps/Delta $ export MAKERULES=/opt/moteiv/tools/make/Makerules And then I have been changing Makerule file in this folder. One time, the message was: @2109-26 /opt/moteiv/apps/Delta $ make tmote /opt/moteiv/tools/make/Makerules:330: *** mica mica2 mica2dot pc all tmote Usage: make platform make all make clean make install[.n] platform make reinstall[.n] platform # no rebuild of target make docs platform Valid platforms are: mica mica2 mica2dot pc . Stop. 3 time, it was: @2109-26 /opt/moteiv/apps/Delta $ make tmote /opt/tinyos-1.x/tos/../apps/Makerules:330: *** mica mica2 mica2dot pc all tmote Usage: make platform make all make clean make install[.n] platform make reinstall[.n] platform # no rebuild of target make docs platform Valid platforms are: mica mica2 mica2dot pc . Stop. The other time, it was: $ make tmote /opt/moteiv/tools/make/tmote.target:89: no file name for `include' /opt/moteiv/tools/make/tmote.target:89: no file name for `include' /opt/moteiv/tools/make/tmote.target:92: warning: overriding commands for target `t' /opt/moteiv/tools/make/tmote.target:92: warning: ignoring old commands for target `t' /opt/moteiv/tools/make/tmote.target:95: warning: overriding commands for target `tmote' /opt/moteiv/tools/make/tmote.target:95: warning: ignoring old commands for target `tmote' I do not understand what the problem is, sorry. Do you have any idea? Thanks a lot for your help, Andres From: Cory Sharp [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] make Tmote Date: Wed, 5 Apr 2006 11:00:05 -0700 Make sure your MAKERULES environment variable is set to something reasonable like export MAKERULES=$TOSDIR/../tools/make/Makerules or export MAKERULES=/opt/moteiv/tinyos-1.x/tools/make/Makerules though, it's strange that is set to something invalid. The Boomerang install does not touch the MAKERULES variable. Cory On 4/5/06, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi all, I bought a micaz. I installed TinyOS and it works correctly. But now, I have downloaded Boomerang for Tmote, so I have installed it, without desinstalling the previous version of TinyOS. I have two new folders: opt/moteiv and opt/mps430. I do not have a Tmote yet, but I want to try to compile some aplicacion for it. When I try it, it appears: $ make tmote Makefile:10: no file name for `include' make: *** No rule to make target `tmote'. Stop. Could it be a conflict between TinyOS for micaz and for Tmote? I do not want to desinstal TinyOS, is there any way for doing it works? Where should be the file Makerules? Thanks a lot for your help, Andres _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] make Tmote
Hi, Thanks for your help Cory. I have found 5 differents files called Makerules. I do not have the /opt/moteiv/tinyos-1.x/tools/make/ folder, so I have written: @2109-26 /opt/moteiv/apps/Delta $ export MAKERULES=/opt/moteiv/tools/make/Makerules And then I have been changing Makerule file in this folder. One time, the message was: @2109-26 /opt/moteiv/apps/Delta $ make tmote /opt/moteiv/tools/make/Makerules:330: *** mica mica2 mica2dot pc all tmote Usage: make platform make all make clean make install[.n] platform make reinstall[.n] platform # no rebuild of target make docs platform Valid platforms are: mica mica2 mica2dot pc . Stop. 3 time, it was: @2109-26 /opt/moteiv/apps/Delta $ make tmote /opt/tinyos-1.x/tos/../apps/Makerules:330: *** mica mica2 mica2dot pc all tmote Usage: make platform make all make clean make install[.n] platform make reinstall[.n] platform # no rebuild of target make docs platform Valid platforms are: mica mica2 mica2dot pc . Stop. The other time, it was: $ make tmote /opt/moteiv/tools/make/tmote.target:89: no file name for `include' /opt/moteiv/tools/make/tmote.target:89: no file name for `include' /opt/moteiv/tools/make/tmote.target:92: warning: overriding commands for target `t' /opt/moteiv/tools/make/tmote.target:92: warning: ignoring old commands for target `t' /opt/moteiv/tools/make/tmote.target:95: warning: overriding commands for target `tmote' /opt/moteiv/tools/make/tmote.target:95: warning: ignoring old commands for target `tmote' I do not understand what the problem is, sorry. Do you have any idea? Thanks a lot for your help, Andres From: Cory Sharp [EMAIL PROTECTED] To: Andres Aberasturi [EMAIL PROTECTED] CC: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] make Tmote Date: Wed, 5 Apr 2006 11:00:05 -0700 Make sure your MAKERULES environment variable is set to something reasonable like export MAKERULES=$TOSDIR/../tools/make/Makerules or export MAKERULES=/opt/moteiv/tinyos-1.x/tools/make/Makerules though, it's strange that is set to something invalid. The Boomerang install does not touch the MAKERULES variable. Cory On 4/5/06, Andres Aberasturi [EMAIL PROTECTED] wrote: Hi all, I bought a micaz. I installed TinyOS and it works correctly. But now, I have downloaded Boomerang for Tmote, so I have installed it, without desinstalling the previous version of TinyOS. I have two new folders: opt/moteiv and opt/mps430. I do not have a Tmote yet, but I want to try to compile some aplicacion for it. When I try it, it appears: $ make tmote Makefile:10: no file name for `include' make: *** No rule to make target `tmote'. Stop. Could it be a conflict between TinyOS for micaz and for Tmote? I do not want to desinstal TinyOS, is there any way for doing it works? Where should be the file Makerules? Thanks a lot for your help, Andres _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS's scheduler
Hi all, We would like to study the scheduler of tinyOs. But we do not see clearly where is it, or witch is its schema. And more exactly, our doubt is: where is called the bool TOS_post(void (*tp) ()) __attribute__((spontaneous)) function? we see its description in sched.c, what it does but no where it is used. Thank for your attention, Andres _ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] sampling rate
The ADC has a conversion time between 65-210 us. If you add this time to te sampling rate you 'll obtain the real sampling rate. Andres. From: patrick kuckertz [EMAIL PROTECTED] To: tinyos help tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] sampling rate Date: Wed, 22 Mar 2006 04:29:43 -0800 (PST) Dear all, I have a problem with sampling audio. I use factor 5 as sampling rate. I think that this should mean 8333 Hz. Hope this is right. I use getcontinuosdata. And I record with this sampling rate. I record 390 samples (1byte...instead of 10bit). On pc I have created a 500Hz sound, with a sampling rate of 32kHz. So I get in e.g. in the first 500 samples 8 sinus curves, which should be right: 32k / 500 = 64, 64 * 8 = 512 So this should be exact 500 hz(500 sinus curves should appear in a second). I have an app which draws the 390 samples of the tos messages. And i get sinus curves... It looks good (same amplitude...) But I count 41 sinus curves in 390 samples. This would mean, if I really use 8,333kHz, I would have received a 8.333k / 390 = 21,63 - 21.36 * 41 = 876 Hz. Or the frequency is correct and the sampling is: 4750 Hz Is the frequency with prescale factor 5 really 8333Hz? I tried this with 250Hz and 1000Hz and get similar results... (factor 2..) Best Regards, Patrick Kuckertz - Yahoo! Mail Use Photomail to share photos without annoying attachments. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Source code
Hi all, I want to study the source code of TinyOS, where I can find it? Anybody could help me, please? Thanks in advance, Andres _ Grandes éxitos, superhéroes, imitaciones, cine y TV... http://es.msn.kiwee.com/ Lo mejor para tu móvil. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Ansi C - NesC
Hi all, We have a micaz mote. We have found a ansiC program. We are going to try that a nesC application calls this code. The program manages files, then we want to know if it is possible that nesC works with files. Could anybody help us? Thanks in advance, Andres _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] ByteEEPROMC.nc with MICAz
Hi Raghu, Thanks for your help. We have tried it with 2 bytes, but it doesn't works. We have TinyOS 1.1.7, maybe this is the problem, isn't it? Has anybody this problem? Thanks in advance, Andres From: Raghu Ganti [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] ByteEEPROMC.nc with MICAz Date: Thu, 16 Feb 2006 13:28:12 -0600 Andres, Try writing to the flash from 1024th byte. I encountered the same problem, but when I changed the place where I wrote to the flash, 1024 till 256K, it works well, I do not know the cause for such a weird behavior though. Raghu Hi all, We want to use the external memory flash of our MICAz. We are trying with byteEEPROM module. We have done an application that compiles but doesn't work. The event AllocationReq.requestProcessed seems to happen, but the command write returns fail. What is the problem? Has anyone an application about this? We have attached our code. Thanks in advance, Andres _ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] ByteEEPROMC.nc with MICAz
Hi all, We want to use the external memory flash of our MICAz. We are trying with byteEEPROM module. We have done an application that compiles but doesn't work. The event AllocationReq.requestProcessed seems to happen, but the command write returns fail. What is the problem? Has anyone an application about this? We have attached our code. Thanks in advance, Andres _ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031DI=1055SU=http%3A//www.hotmail.comHL=LINKTAG1OPENINGTEXT_MSNBH TesteepromM.nc Description: Binary data ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Micaz + MIB510 baudrate
Hi, We know micaz mote can be a baud rate of 1 Mbps. A RS232 is able to send 250 Kbps. Now, the ISP of our MIB510 runs at a fixed baud rate of 115 kbps. We know change micaz baudrate, we have changed it to 230.4 kbps, so we need to fix the ISP baud rate equal to micaz baud rate. Is it possible to increase the baud rate of our MIB510? Thanks in advance, Andres _ Grandes éxitos, superhéroes, imitaciones, cine y TV... http://es.msn.kiwee.com/ Lo mejor para tu móvil. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Flash memory - eeprom
Hi, We have a micaz mote. We want to write and read from its external memory, flash memory. We have made an application with ByteEEPROM module. We have compiled our application, and it seems right, but it doesn't work. The green led swichs on and no more. We add our code here. Thanks for any idea, Andres module ikeepromM { provides { interface StdControl; } uses { interface Leds; interface StdControl as eepromStdControl; interface AllocationReq; interface WriteData; interface ReadData; interface StdControl as RadioControl; interface BareSendMsg as RadioSend; interface ReceiveMsg as RadioReceive; } } implementation { #define MSG_LEN 29 #define SENSOR_BOARD_ID 0x83 TOS_MsgPtr msg_radio; uint8_t sol; uint32_t bytes_requeridos = 8; / * Task to xmit radio message / task void send_radio_msg(){ msg_radio-data[0] = SENSOR_BOARD_ID; msg_radio-data[1] = 1; msg_radio-data[2] = TOS_LOCAL_ADDRESS; msg_radio-data[3] = 0; msg_radio-addr = TOS_BCAST_ADDR; msg_radio-type = 0; msg_radio-length = MSG_LEN; msg_radio-group = TOS_AM_GROUP; call RadioSend.send(msg_radio); return; } task void escribir(){ uint8_t t = 123; uint32_t kk = 1; uint32_t number = 1; call WriteData.write(kk, t, number); return; } task void leer(){ uint32_t off = 1; uint32_t num = 1; call ReadData.read(off, sol, num); return; } / * Initialize the component. / command result_t StdControl.init() { call RadioControl.init(); call eepromStdControl.init(); if (call AllocationReq.request(bytes_requeridos) == SUCCESS); //atomic t = 0; return SUCCESS; } / * Start the component. Start the clock. / command result_t StdControl.start() { atomic msg_radio-data[4] = 200; call RadioControl.start(); if (call eepromStdControl.start() == SUCCESS){ call Leds.greenOn(); post escribir(); } return SUCCESS; } / * Stop the component. / command result_t StdControl.stop() { call RadioControl.stop(); call eepromStdControl.stop(); return SUCCESS; } event result_t WriteData.writeDone(uint8_t *data, uint32_t numBytesWrite, result_t success){ if (success == SUCCESS){ call Leds.yellowOn(); post leer(); }else call Leds.greenOff(); return SUCCESS; } event result_t ReadData.readDone(uint8_t *data, uint32_t numBytesWrite, result_t success){ if(success == SUCCESS){ sol = *data; call Leds.redOn(); atomic msg_radio-data[4] = sol; post send_radio_msg(); }else call Leds.yellowOff(); return SUCCESS; } event result_t AllocationReq.requestProcessed(result_t success){ return SUCCESS; } event result_t RadioSend.sendDone(TOS_MsgPtr msg, result_t success) { call Leds.redOff(); return SUCCESS; } event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr data) { return data; } } _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] bits/sec through uart
Hi all, I have a micaz, with a MIB510 platform. I thought that it was able to send 57600 bit/sec, because this number is the baudrate which I put for connecting it to my pc. I have tested it and then I found that it send about 39000 bits/sec. Is that possible? What could be wrong? Thaks for your help, Andres _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help