[Tinyos-help] help me
I'm interested in running TinyDB in simulation, so I did: /apps/TinyDBApp/make pc /tools/java/net/tinyos/tinydb/make -f MakePC Everything went ok but some warning msg for TinyDBApp. I run: /apps/TinyDBApp/build/pc/main.exe -gui 5 java ...tinyviz.jar java ...TinyDBMain -sim What happens is that tinyviz correctly shows my 5 motes (and the radio links plugin shows the broadcast msg), while the TinyDBMain GUI sends queries with no response (I think it doesn't sends nothing, cause Running queries panel says nothing)___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me: Visualization of TInyos 2.x with tossim?
Hi friend, Could you please tell is there any tool to visualize tossim simulation in Tinyos2.x in Ubuntu. Actually i tried tinyviz in tinyos1.x it is working but when i am coming to tinyos2.x i am not getting the visualization. Could you please tell is it possible to visualize Tinyos2.x tossim if yes what is the tool send the archives. Thanks in advance I am waiting for your reply. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me about USB config for JTAG
Hi All, How are you? i need a help in configuring my ubuntu 11.10 for iMOTE2 programming using JTAG, briefly, USB configurations requested uncomment lines in a file called mountdevubfs.sh in /etc/init.d the problem is I DON'T HAVE THIS FILE IN THE DIRECTORY /etc/init.d, i tried to get it but failed. i hope you help me about this if you have information. thank you in advance. Masha'l,from Jordan___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me for creating cluster based network in TinyOS
Dear All I am doing my final sem MTech project on wireless sensor network. I want to try some application in TinyOS in which have to create cluster based network. ClusterHead election process should be based on combination of residual energy and distance from each node. Can anybody give me some basic code via which I can move ahead? Example: I want to make network of appx. 50 nodes and out of which 5 nodes are clusterhead based on any criteria and then some events are detected by individual cluster and data is sent to the base station. Thanx Waiting for fast reply. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me to Run Surge application in Micaz
I was trying to run the Surge application but was not successful. Using MIB520 programming board I programmed surge program onto two micaz motes. To program these two micaz motes I used the following commands. make micaz install.0 mib510,/dev/ttyS3 make micaz install.1 mib510,/dev/ttyS3 Then according to the instruction, I tried to run java application by keeping the mode of ID 0 at programming board and other mote of ID 1 far from the board (uses batteries in this mote) and using the command java net.tinyos.net.tinyos.surge.MainClass but it asks for groupID. I found groupID 0x7d in the opt\tinyos1.x\tools\make\Makedefaults file. But if I use this groupID it gives me error in java. Can anyone please tell me what I am doing wrong? or how can I run it correctly. Thanks. Nazmul ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] help me with blip
it's not called inet6_aton, it's: void inet_pton6(char *addr, struct in6_addr *dest); In the other case, case, you can do a nx_struct udp_report *UDPMsg1 = data; unit16_t Temp; Temp = UDPMsg1-Etemp On Sun, Sep 12, 2010 at 1:08 AM, Hamidreza Ghafghazi hamidreza.ghafgh...@fkegraduate.utm.my wrote: Dear all, I have a problem with UDPEcho. I have modified it to use in my scenario which is kind of routing, when I compile it I have an error. here is the error: UDPEchoP.nc : implicit declaration of function `inet6_aton' here is my code: inet6_aton (2001:470:1f04:56d::3, dest_sock.sin6_addr); what should I do about that? and I have the other question, I have used UDP interface like below: interface UDP as UDPMsg then I want to send and receive UDP packets which I have to write as an event. event void UDPMsg.recvfrom(struct sockaddr_in6 *from, void *data,...) In the above event I want to use the data and modify it, so I need to access the data. Is it possible that I write my codes as below: for example: nx_struct udp_report UDPMsg1; unit16_t Temp; Temp = UDPMsg1.Etemp ... which prior to the above I already modified udp report and have added Etemp in the header file. Or is there another way of accessing the data and do modification? any help will be appreciated Best regards, Hamidreza ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- stephen dawson-haggerty http://cs.berkeley.edu/~stevedh uc berkeley wireless and embedded systems lab berkeley, ca 94720 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me with blip
Dear all, I have a problem with UDPEcho. I have modified it to use in my scenario which is kind of routing, when I compile it I have an error. here is the error: *UDPEchoP.nc : implicit declaration of function `inet6_aton'* here is my code: *inet6_aton (2001:470:1f04:56d::3, dest_sock.sin6_addr);* what should I do about that? and I have the other question, I have used UDP interface like below: * interface UDP as UDPMsg* then I want to send and receive UDP packets which I have to write as an event. *event void UDPMsg.recvfrom(struct sockaddr_in6 *from, void *data,...)* In the above event I want to use the data and modify it, so I need to access the data. Is it possible that I write my codes as below: *for example:* * * *nx_struct udp_report UDPMsg1;* *unit16_t Temp;* *Temp = UDPMsg1.Etemp* * ...* ** which prior to the above I already modified udp report and have added Etemp in the header file. Or is there another way of accessing the data and do modification? any help will be appreciated Best regards, Hamidreza ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me with tymo
Hi. i am working on the tymo application. I have downloaded the tymo folder from CVS SourceForge and copied it to /tos/lib/net. and when i compile the app, I get these following errors. What has gone wrong??? TestM.nc:1:27: error: routing_table.h: No such file or directory In component `TestC': TestC.nc:11: component DymoNetworkC not found TestC.nc:17: no match TestC.nc:18: no match TestC.nc:19: no match TestC.nc:20: cannot find `Receive' TestC.nc:21: cannot find `Intercept' TestC.nc:22: cannot find `MHSend' make: *** [sim-exe] Error 1 I have the routing_table.h in /tos/lib/net/tymo and DymoNetworkC is also accesible. -- Syam ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me to run PSFQ code
i have psfq code i run it but it gave me problem . it doesnt run properly. help me which files r necessary to run it? my work is stopped due to this problem. i need help as soon as possible. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me for the tossim simulation
Dear Sir/Madam, I am using Tossim (tinyos 1, windows XP ) to do simulation now, and I have a problem. I want to simulate a scenario with 1 mote, but it fails. Can you help me? I know that the tossim has the limit on the number of motes, but I find on some paper that they can simulate a scenario with 5000 motes. Another problem is that how can I do multiple simulations in one time. For example, if I want to measure the average value of some parameter, I need to do many times of simulations. How to do that just in one time? Thanks very much for you help. Best regards, Honglong Chen 2009-09-17 cshlchen ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me for the tossim simulation
Dear Sir/Madam, I am using Tossim (tinyos 1, windows XP ) to do simulation now, and I have a problem. I want to simulate a scenario with 1 mote, but it fails. Can you help me? I know that the tossim has the limit on the number of motes, but I find on some paper that they can simulate a scenario with 5000 motes. Another problem is that how can I do multiple simulations in one time. For example, if I want to measure the average value of some parameter, I need to do many times of simulations. How to do that just in one time? Thanks very much for you help. Best regards, Honglong Chen 2009-09-19 cshlchen ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me please
Hi I have a ubuntu 8.10 instaled im my machine with jvm sun java 1.6.0_10. The libraries are in the $JAVA_PATH/jre/lib/i386 (libtoscomm.so, libgetenv.so, libLinuxSerialParallel_g.so, libLinuxSerialParallel.so), comm.jar is $JAVA_PATH/jre/lib/ext and javax.comm.properties is in $JAVA_PATH/jre/lib, but no errors occurs because them, when a remove some of them the application show in your trace a lack of. In the windows the trace of program show this lines and open a GUI of my application: Mote found in / dev/ttyUSB0. serial @ / dev/ttyUSB0: 57600: resynchronising Searching motes information. -- In linux stop in here Mote number 2 was found (Open GUI) I tried changing the access permissions of the / dev/ttyUSB0 and it did not work. I tried creating simlink and did not work too. No error message is displayed and the communication with the mote seems to be that point where it hangs a blue light is turn on in mote. Do you have any idea what might be happening? Thanks for attetion Héberte Fernandes de Moraes On Fri, Mar 6, 2009 at 03:15, Urs Hunkeler u...@gmx.ch wrote: Hi Héberte, What exactly did you install on the Linux machine? Which version of Java? Where did you put the native libraries (probably called libtoscomm.so and libgetenv.so)? What kind of output do you expect (what do you see on Windows when it is running as expected)? Do you get any additional error messages? Cheers, Urs PS: Just as a side remark for running TOS applications without installing the whole setup: It is possible to load the native libraries from an arbitrary file specifying the full path (needs some minor modifications to the TOS libraries). Thus it is possible to include the toscomm and getenv native libraries for different operating systems as resources in the jar file, extract them at runtime to a temporary location and then load them. With this, no additional installation is necessary (besides a working JVM of course). Héberte Fernandes de Moraes wrote: Hi I`m new to development in the TinyOS platform and I`m having a very strange problem. The application was developed in java and only use the mote (tmote sky) for sending messages. The problem is: I'm trying to run this java application on pc's without the TinyOS platform installed (all with linux), when I run my application I have the following return: Mote found in / dev/ttyUSB0. serial @ / dev/ttyUSB0: 57600: resynchronising Searching motes information. And here is locked. When I run the Windows application runs perfectly. Does anyone have any idea to solve this problem? Ps.: Sorry for my bad english!!! Hugs and I await response Héberte Fernandes de Moraes Mestrando - Programa de Engenharia de Sistemas e Computação PESC/COPPE/UFRJ -- Héberte Fernandes de Moraes Mestrando - Programa de Engenharia de Sistemas e Computação PESC/COPPE/UFRJ ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me please
Hi I`m new to development in the TinyOS platform and I`m having a very strange problem. The application was developed in java and only use the mote (tmote sky) for sending messages. The problem is: I'm trying to run this java application on pc's without the TinyOS platform installed (all with linux), when I run my application I have the following return: Mote found in / dev/ttyUSB0. serial @ / dev/ttyUSB0: 57600: resynchronising Searching motes information. And here is locked. When I run the Windows application runs perfectly. Does anyone have any idea to solve this problem? Ps.: Sorry for my bad english!!! Hugs and I await response Héberte Fernandes de Moraes Mestrando - Programa de Engenharia de Sistemas e Computação PESC/COPPE/UFRJ ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me please
Hi Héberte, What exactly did you install on the Linux machine? Which version of Java? Where did you put the native libraries (probably called libtoscomm.so and libgetenv.so)? What kind of output do you expect (what do you see on Windows when it is running as expected)? Do you get any additional error messages? Cheers, Urs PS: Just as a side remark for running TOS applications without installing the whole setup: It is possible to load the native libraries from an arbitrary file specifying the full path (needs some minor modifications to the TOS libraries). Thus it is possible to include the toscomm and getenv native libraries for different operating systems as resources in the jar file, extract them at runtime to a temporary location and then load them. With this, no additional installation is necessary (besides a working JVM of course). Héberte Fernandes de Moraes wrote: Hi I`m new to development in the TinyOS platform and I`m having a very strange problem. The application was developed in java and only use the mote (tmote sky) for sending messages. The problem is: I'm trying to run this java application on pc's without the TinyOS platform installed (all with linux), when I run my application I have the following return: Mote found in / dev/ttyUSB0. serial @ / dev/ttyUSB0: 57600: resynchronising Searching motes information. And here is locked. When I run the Windows application runs perfectly. Does anyone have any idea to solve this problem? Ps.: Sorry for my bad english!!! Hugs and I await response Héberte Fernandes de Moraes Mestrando - Programa de Engenharia de Sistemas e Computação PESC/COPPE/UFRJ ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me
hello all I must mesure the iir light intensitive with my telosb, but there is a problem. The telosb has two sensor ligth only, TSR (total solar radiation) and PAR (photosynth-active radiation), but I would tha IR (infra red). There is a mode to mesure this radiation conjoining properly TSR and PAR? thanks sorry my english ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with Timer
Hello all, I want to implement a timer in my program. I want a start a timer and than when i am done sending my packet i want to stop it. I want to start it again when my node is ready to transmit again. So basically i want to see how much is my node active for the whole period i run the network. Can anyone tell me how can i do it ? Thanks in advance, Bhushan - Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me. to use math function
I want to use some math function in sky tmote.But when i compile my application, there are errors like ' undefined reference to `log' '. I can find log function in the file app.c for my application. It seems find math function from /opt/msp430/msp430/include/math.h.How can i use normal c function (like math.h) in tinyos?Could you give advice for this problem? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with raw data conversion
Hi all, i have two questions to you; 1) i'm using Oscilloscope and Delta apps, and i want to convert raw data from ADC into SI data; i 'm using the paper "getting data from moteiv tmote sky sensors" at www.moteiv.com. the external temperature sensor give me a value = 6965 (1B35 in hex) that means a temperature of 30,05 ° C but in the room there is a temperature of maximum 25°! where is the problem? i've tried with other tmote sky modules but the value is the same. is this a problem dependent from sensor, software or is wrong the formula: temp=-39.60 + 0.01 * Reading ?2) when i log packets from oscilloscope or delta apps , i see that the "data" bytes in the multihopmsg are written from right to left, is it normal? i put the log below:1157967601703 Message MultiHopMsg [sourceaddr=0x9] [originaddr=0x9] [seqno=0x35f] [originseqno=0x35f] [ttl=0x0] [id=0x21] [data="" 0x3 0x0 0x0 0x93 0xb 0x35 0x1b 0x52 0x4 0xbd 0x0 0x7e 0x0 0x3 0x0 0x7e 0x0 ]the "data " bytes are : the first four (0x5b 0x3 0x0 0x0) are seqno, after 2 bytes (0x93 0xb) needs to be read B93. and the others in the same mode. it's right??thank you for help me and sorry for the not so good english.ByeGiovanni Petracca ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Help me with raw data conversion
Are the motes plugged into a USB port or by themselves? I saw something of a 2 to 5 degree celsius increase when I did some tests with the external sensors when they were plugged into the USB cable. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giovanni PetraccaSent: Monday, September 11, 2006 05:04To: tinyos-help@Millennium.Berkeley.EDUSubject: [Tinyos-help] Help me with raw data conversion Hi all, i have two questions to you; 1) i'm using Oscilloscope and Delta apps, and i want to convert raw data from ADC into SI data; i 'm using the paper "getting data from moteiv tmote sky sensors" at www.moteiv.com. the external temperature sensor give me a value = 6965 (1B35 in hex) that means a temperature of 30,05 ° C but in the room there is a temperature of maximum 25°! where is the problem? i've tried with other tmote sky modules but the value is the same. is this a problem dependent from sensor, software or is wrong the formula: temp=-39.60 + 0.01 * Reading ?2) when i log packets from oscilloscope or delta apps , i see that the "data" bytes in the multihopmsg are written from right to left, is it normal? i put the log below:1157967601703 Message MultiHopMsg [sourceaddr=0x9] [originaddr=0x9]<B! r> [seqno=0x35f] [originseqno=0x35f] [ttl=0x0] [id=0x21] [data="" 0x3 0x0 0x0 0x93 0xb 0x35 0x1b 0x52 0x4 0xbd 0x0 0x7e 0x0 0x3 0x0 0x7e 0x0 ]the "data " bytes are : the first four (0x5b 0x3 0x0 0x0) are seqno, after 2 bytes (0x93 0xb) needs to be read B93. and the others in the same mode. it's right??thank you for help me and sorry for the not so good english.ByeGiovanni Petracca ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Help me with raw data conversion
Yes, the motes are connected to PC by USB port. is this a problem? the increase here is of 4 to 5 degree celsius always. Someone have info in this problem? I have to change the conversion formula?? thanks a lot G. Petracca - Original Message - From: Ben Kelley To: 'Giovanni Petracca' ; tinyos-help@Millennium.Berkeley.EDU Sent: Monday, September 11, 2006 1:43 PM Subject: RE: [Tinyos-help] Help me with raw data conversion Are the motes plugged into a USB port or by themselves? I saw something of a 2 to 5 degree celsius increase when I did some tests with the external sensors when they were plugged into the USB cable. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giovanni PetraccaSent: Monday, September 11, 2006 05:04To: tinyos-help@Millennium.Berkeley.EDUSubject: [Tinyos-help] Help me with raw data conversion Hi all, i have two questions to you; 1) i'm using Oscilloscope and Delta apps, and i want to convert raw data from ADC into SI data; i 'm using the paper "getting data from moteiv tmote sky sensors" at www.moteiv.com. the external temperature sensor give me a value = 6965 (1B35 in hex) that means a temperature of 30,05 ° C but in the room there is a temperature of maximum 25°! where is the problem? i've tried with other tmote sky modules but the value is the same. is this a problem dependent from sensor, software or is wrong the formula: temp=-39.60 + 0.01 * Reading ?2) when i log packets from oscilloscope or delta apps , i see that the "data" bytes in the multihopmsg are written from right to left, is it normal? i put the log below:1157967601703 Message MultiHopMsg [sourceaddr=0x9] [originaddr=0x9]<B! r=""> [seqno=0x35f] [originseqno=0x35f] [ttl=0x0] [id=0x21] [data="" 0x3 0x0 0x0 0x93 0xb 0x35 0x1b 0x52 0x4 0xbd 0x0 0x7e 0x0 0x3 0x0 0x7e 0x0 ]the "data " bytes are : the first four (0x5b 0x3 0x0 0x0) are seqno, after 2 bytes (0x93 0xb) needs to be read B93. and the others in the same mode. it's right??thank you for help me and sorry for the not so good english.ByeGiovanni Petracca__ Informazione NOD32 1.1748 (20060911) __Questo messaggio è stato controllato dal Sistema Antivirus NOD32http://www.nod32.it ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with raw data conversion
on question 2)...yes, data is sent low byte first (little-endian). I'm not sure that the seqno is 4 bytes however. Look at the struct and see if it is a long or int. MS Giovanni Petracca wrote: Hi all, i have two questions to you; 1) i'm using Oscilloscope and Delta apps, and i want to convert raw data from ADC into SI data; i 'm using the paper getting data from moteiv tmote sky sensors at www.moteiv.com. the external temperature sensor give me a value = 6965 (1B35 in hex) that means a temperature of 30,05 ° C but in the room there is a temperature of maximum 25°! where is the problem? i've tried with other tmote sky modules but the value is the same. is this a problem dependent from sensor, software or is wrong the formula: temp=-39.60 + 0.01 * Reading ? 2) when i log packets from oscilloscope or delta apps , i see that the data bytes in the multihopmsg are written from right to left, is it normal? i put the log below: 1157967601703 Message MultiHopMsg [sourceaddr=0x9] [originaddr=0x9] [seqno=0x35f] [originseqno=0x35f] [ttl=0x0] [id=0x21] [data=0x5b 0x3 0x0 0x0 0x93 0xb 0x35 0x1b 0x52 0x4 0xbd 0x0 0x7e 0x0 0x3 0x0 0x7e 0x0 ] the data bytes are : the first four (0x5b 0x3 0x0 0x0) are seqno, after 2 bytes (0x93 0xb) needs to be read B93. and the others in the same mode. it's right?? thank you for help me and sorry for the not so good english. Bye Giovanni Petracca ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with my problem!
Hi all!In my program, I modified the application in the Tutorial Lesson 7. I have to program 3 motes, one mote as a source node that transmits packet at fixed interval of time, one node as a relay node (it just forward whatever packet it receives) and one node as base station that read packet from both the source node and relay node (TosBase). I use Listen.java to read packet from the base station. However, I have a problem that I myself can not explain. When I start running my program, by using Listen.java I can see packet from the source node, but not from the relay node. However, when I turn off and after that turn on the switch of therelay node by manual I can see both packets from the source node and the relay node but the green led does not toggle (In my program, I want the green led at the relay node toggle whenever it receive new packet). Here is my program for Relay node: includes MyMsg; module RelayM { provides interface StdControl; uses { interface Leds; interface ReceiveMsg as ReceiveCmdMsg; interface SendMsg as SendCmdMsg; interface StdControl as CommControl; }} implementation { enum { QUEUE_LENGTH = 5 }; TOS_MsgPtr msg; int8_t bcast_pending; TOS_Msg buf; uint8_t i, currentqueue; uint16_t queue[QUEUE_LENGTH]; task void forwarder() { call SendCmdMsg.send(TOS_BCAST_ADDR, sizeof(MyMsg), msg); } event result_t SendCmdMsg.sendDone(TOS_MsgPtr pmsg, result_t status) { if (status == SUCCESS) bcast_pending = 0; return status; } command result_t StdControl.init() { msg = buf; bcast_pending = 0; currentqueue=0; for(i=0; iQUEUE_LENGTH; i++) queue[i] = 1; return (call CommControl.init()); } command result_t StdControl.start(){ return (call CommControl.start()); } command result_t StdControl.stop(){ return (call CommControl.stop()); }inline char is_new_msg(struct MyMsg *bmsg) { if (bcast_pending) return 0;for (i=0; iQUEUE_LENGTH; i++) {if ((bmsg-seqno) == queue[i]) return 0; else { queue[currentqueue++]= bmsg-seqno; if ( currentqueue == QUEUE_LENGTH) currentqueue=0; return 1; } } } inline void remember_msg(struct MyMsg *bmsg) { bcast_pending = 1; } event TOS_MsgPtr ReceiveCmdMsg.receive(TOS_MsgPtr pmsg){ TOS_MsgPtr ret = msg; struct MyMsg *data= "" MyMsg *)pmsg-data; call Leds.greenToggle(); if (is_new_msg(data)) { remember_msg(data); data-hop_count++; data-source = TOS_LOCAL_ADDRESS; ret = msg; msg = pmsg; post forwarder(); } return ret; } } // end of implementation Could any body help me with this trouble? Many thanks! Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with my problem!
Hi, For the Leds to work you need to initialize the Leds component in your command result_t StdControl.init() method. Something like: call Leds.init(); Good luck. John K.Hieu Tran [EMAIL PROTECTED] wrote: Hi all!In my program, I modified the application in the Tutorial Lesson 7. I have to program 3 motes, one mote as a source node that transmits packet at fixed interval of time, one node as a relay node (it just forward whatever packet it receives) and one node as base station that read packet from both the source node and relay node (TosBase). I use Listen.java to read packet from the base station. However, I have a problem that I myself can not explain. When I start running my program, by using Listen.java I can see packet from the source node, but not from the relay node. However, when I turn off and after that turn on the switch of therelay node by manual I can see both packets from the source node and the relay node but the green led does not toggle (In my program, I want the green led at the relay node toggle whenever it receive new packet). Here is my program for Relay node: includes MyMsg; module RelayM { provides interface StdControl; uses { interface Leds; interface ReceiveMsg as ReceiveCmdMsg; interface SendMsg as SendCmdMsg; interface StdControl as CommControl; }} implementation { enum { QUEUE_LENGTH = 5 }; TOS_MsgPtr msg; int8_t bcast_pending; TOS_Msg buf; uint8_t i, currentqueue; uint16_t queue[QUEUE_LENGTH]; task void forwarder() { call SendCmdMsg.send(TOS_BCAST_ADDR, sizeof(MyMsg), msg); } event result_t SendCmdMsg.sendDone(TOS_MsgPtr pmsg, result_t status) { if (status == SUCCESS) bcast_pending = 0; return status; } command result_t StdControl.init() { msg = buf; bcast_pending = 0; currentqueue=0; for(i=0; iQUEUE_LENGTH; i++) queue[i] = 1; return (call CommControl.init()); } command result_t StdControl.start(){ return (call CommControl.start()); } command result_t StdControl.stop(){ return (call CommControl.stop()); }inline char is_new_msg(struct MyMsg *bmsg) { if (bcast_pending) return 0;for (i=0; iQUEUE_LENGTH; i++) {if ((bmsg-seqno) == queue[i]) return 0; else { queue[currentqueue++]= bmsg-seqno; if ( currentqueue == QUEUE_LENGTH) currentqueue=0; return 1; } } } inline void remember_msg(struct MyMsg *bmsg) { bcast_pending = 1; } event TOS_MsgPtr ReceiveCmdMsg.receive(TOS_MsgPtr pmsg){ TOS_MsgPtr ret = msg; struct MyMsg *data= "" MyMsg *)pmsg-data; call Leds.greenToggle(); if (is_new_msg(data)) { remember_msg(data); data-hop_count++; data-source = TOS_LOCAL_ADDRESS; ret = msg; msg = pmsg; post forwarder(); } return ret; } } // end of implementation Could any body help me with this trouble? Many thanks!Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Want to be your own boss? Learn how on Yahoo! Small Business. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with power range and signal strength!
Many users (including me) have had no success using the CC1000Control interface and the setRFPower commands. The way I did it was to edit the CC1000Control.h file in /tos/system/platforms/mica2. Ive forgotten the excat location now but there is a 2-D array called PARAM..something somewhere. In the xxxMhz array (xxx is the radio freq of the motes u are using..there is a seperate array for each type of freq) change the value of the PA_POW variable. (this is a register in the CHIPCON chip that can be used to adjust the transmitter power). By default it is 0xff on MICA2 motes. When i changed it to 0x00 i got a range of about 4-6 feet in an indoor lab environment. On 6/28/06, Rahul Sawant [EMAIL PROTECTED] wrote: Hi Use the formula on pg 28 of this document. http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manual.pdf also u have declared data in MyMsg to be an array of size 18 ie it runs from 0 to 17 and u r using data[18] is it right just check that. Rahul On 6/27/06, Hieu Tran [EMAIL PROTECTED] wrote: Hi all! I searched in the archieves and found some of the topics that disscuss about power range however I still have problem with it. in the CC1000ControlM at the line: // Set default parameter values // POWER 0dbm gCurrentParameters[0xb] = ((8 CC1K_PA_HIGHPOWER) | (0 CC1K_PA_LOWPOWER)); call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); I guess I can make a change to power range here so I make change : gCurrentParameters[0xb] =1;//I want to change to the minimum power range call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); After that I recompile my program and run it. However It seems that my change does not go in to effect (the range is still large). Can you tell me the correct way to make the change to the power range? I have one more question about signal strength. I made the change at the TOS_Base, I try to read the signal strength from TOS_Msg event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) { cmd= (struct MyMsg *)Msg-data; temp1 = (int8_t) (((Msg-strength)8) 0xF);//take 8 MSB cmd-data[17] = temp1;//put in to packet at data[17]temp2 = (int8_t) ((8(Msg-strength)) 0xF);//take 8 LSBcmd-data[18] = temp2;//put in ton packet at data[18] .. Here is MyMsg structure: typedef struct MyMsg { uint16_t seqno; int8_t action; uint16_t source; uint8_t hop_count; uint16_t destaddr; int8_t data[18];} MyMsg; After that, I use Listen program to read signal strength value, however all the times these values are always 0 or 1 (convert to decimal number). Can anyone tell me is this a correct way to receive signal strength? If correct, how canconvert this value to dBm? many thanks! Tran! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. ___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Fwd: [Tinyos-help] Help me with power range and signal strength!
-- Forwarded message --From: Aditya Bhave [EMAIL PROTECTED]Date: Jun 29, 2006 12:42 AM Subject: Re: [Tinyos-help] Help me with power range and signal strength!To: bhushan bhatt [EMAIL PROTECTED]You need to modify the CC1000Control.h file in tos/system/platforms/mica2.Im assuming youre motes freq is 914 Mhz.In that case there is a 2D array called CC1K_Params.Look for the PA_POW variable under the 914 Mhz range (there is a seperate row for each type of freq). Look in row 1. It is presently // PA_POW 0x0b ((0x8CC1K_PA_HIGHPOWER) | (0x0CC1K_PA_LOWPOWER)), //0xffChange the above to// PA_POW 0x0b// ((0x8CC1K_PA_HIGHPOWER) | (0x0CC1K_PA_LOWPOWER)), 0x00You can see that I have changed PA_POW to the value 0x00 FROM 0xff (default). The 0x0b (decimal number 11) is not a value...it indicates the position of the element within row 1 of the CC1K_Params array. By giving diff values to PA_POW from 00 to ff, you can change the range.Let me know if it works. If you are using a diff freq mote, change the PA_POW variable corresponding to that freq On 6/28/06, bhushan bhatt [EMAIL PROTECTED] wrote: I have the same problem and tried to control the power by changing CC2420 Radio file for tmote but i still cant get the desired range. I still get range more than 30 feet. Does someone know and have reduced the range for tmotes ?? BhushanAditya Bhave [EMAIL PROTECTED] wrote: Many users (including me) have had no success using the CC1000Control interface and the setRFPower commands. The way I did it was to edit the CC1000Control.h file in /tos/system/platforms/mica2. Ive forgotten the excat location now but there is a 2-D array called PARAM..something somewhere. In the xxxMhz array (xxx is the radio freq of the motes u are using..there is a seperate array for each type of freq) change the value of the PA_POW variable. (this is a register in the CHIPCON chip that can be used to adjust the transmitter power). By default it is 0xff on MICA2 motes. When i changed it to 0x00 i got a range of about 4-6 feet in an indoor lab environment. On 6/28/06, Rahul Sawant [EMAIL PROTECTED] wrote: Hi Use the formula on pg 28 of this document. http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manual.pdf also u have declared data in MyMsg to be an array of size 18 ie it runs from 0 to 17 and u r using data[18] is it right just check that. Rahul On 6/27/06, Hieu Tran [EMAIL PROTECTED] wrote: Hi all! I searched in the archieves and found some of the topics that disscuss about power range however I still have problem with it. in the CC1000ControlM at the line: // Set default parameter values // POWER 0dbm gCurrentParameters[0xb] = ((8 CC1K_PA_HIGHPOWER) | (0 CC1K_PA_LOWPOWER)); call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); I guess I can make a change to power range here so I make change : gCurrentParameters[0xb] =1;//I want to change to the minimum power range call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); After that I recompile my program and run it. However It seems that my change does not go in to effect (the range is still large). Can you tell me the correct way to make the change to the power range? I have one more question about signal strength. I made the change at the TOS_Base, I try to read the signal strength from TOS_Msg event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) { cmd= (struct MyMsg *)Msg-data; temp1 = (int8_t) (((Msg-strength)8) 0xF);//take 8 MSB cmd-data[17] = temp1;//put in to packet at data[17]temp2 = (int8_t) ((8(Msg-strength)) 0xF);//take 8 LSB cmd-data[18] = temp2;//put in ton packet at data[18] .. Here is MyMsg structure: typedef struct MyMsg { uint16_t seqno; int8_t action; uint16_t source; uint8_t hop_count; uint16_t destaddr; int8_t data[18];} MyMsg; After that, I use Listen program to read signal strength value, however all the times these values are always 0 or 1 (convert to decimal number). Can anyone tell me is this a correct way to receive signal strength? If correct, how canconvert this value to dBm? many thanks! Tran! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less. ___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. -- regards,Aditya Bhave -- regards,Aditya Bhave
[Tinyos-help] Help me with power range and signal strength!
Hi all! I searched in the archieves and found some of the topics that disscuss about power range however I still have problem with it.in the CC1000ControlM at the line:// Set default parameter values // POWER 0dbm gCurrentParameters[0xb] = ((8 CC1K_PA_HIGHPOWER) | (0 CC1K_PA_LOWPOWER)); call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]);I guess I can make a change to power range here so I make change : gCurrentParameters[0xb] =1;//I want to change to the minimum power range call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]);After that I recompile my program and run it. However It seems that my change does not go in to effect (the range is still large). Can you tell me the correct way to make the change to the power range?I have one more question about signal strength.I made the change at the TOS_Base, I try to read the signal strength from TOS_Msgevent TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) { cmd= (struct MyMsg *)Msg-data; temp1 = (int8_t) (((Msg-strength)8) 0xF);//take 8 MSB cmd-data[17] = temp1;//put in to packet at data[17]temp2 = (int8_t) ((8(Msg-strength)) 0xF);//take 8 LSBcmd-data[18] = temp2;//put in ton packet at data[18] .. Here is MyMsg structure: typedef struct MyMsg { uint16_t seqno; int8_t action; uint16_t source; uint8_t hop_count; uint16_t destaddr; int8_t data[18];} MyMsg; After that, I use Listen program to read signal strength value, however all the times these values are always 0 or 1 (convert to decimal number). Can anyone tell me is this a correct way to receive signal strength? If correct, how canconvert this value to dBm?many thanks! Tran! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with power range and signal strength!
Hi Tran, i would change the output power with CC1000Control.SetRFPower(uint8_t power)from CC1000ControlM. You can use this at runtime instead of changing default values. To validate your changes you can use the CC1000Control.GetRFPower() function. E.g.: call CC1000Control.SetRFPower(7); call Leds.set(call CC1000Control.GetRFPower()); - all LEDs should be on. OLE - Original Message - From: Hieu Tran To: tinyos-help@Millennium.Berkeley.EDU Sent: Tuesday, June 27, 2006 1:44 PM Subject: [Tinyos-help] Help me with power range and signal strength! Hi all! I searched in the archieves and found some of the topics that disscuss about power range however I still have problem with it. in the CC1000ControlM at the line: // Set default parameter values // POWER 0dbm gCurrentParameters[0xb] = ((8 CC1K_PA_HIGHPOWER) | (0 CC1K_PA_LOWPOWER)); call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); I guess I can make a change to power range here so I make change : gCurrentParameters[0xb] =1;//I want to change to the minimum power range call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); After that I recompile my program and run it. However It seems that my change does not go in to effect (the range is still large). Can you tell me the correct way to make the change to the power range? I have one more question about signal strength. I made the change at the TOS_Base, I try to read the signal strength from TOS_Msg event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) { cmd= (struct MyMsg *)Msg-data; temp1 = (int8_t) (((Msg-strength)8) 0xF);//take 8 MSB cmd-data[17] = temp1;//put in to packet at data[17]temp2 = (int8_t) ((8(Msg-strength)) 0xF);//take 8 LSBcmd-data[18] = temp2;//put in ton packet at data[18] .. Here is MyMsg structure: typedef struct MyMsg { uint16_t seqno; int8_t action; uint16_t source; uint8_t hop_count; uint16_t destaddr; int8_t data[18];} MyMsg; After that, I use Listen program to read signal strength value, however all the times these values are always 0 or 1 (convert to decimal number). Can anyone tell me is this a correct way to receive signal strength? If correct, how canconvert this value to dBm? many thanks! Tran! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with power range and signal strength!
Hi Use the formula on pg 28 of this document. http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manual.pdf also u have declared data in MyMsg to be an array of size 18 ie it runs from 0 to 17 and u r using data[18] is it right just check that. Rahul On 6/27/06, Hieu Tran [EMAIL PROTECTED] wrote: Hi all! I searched in the archieves and found some of the topics that disscuss about power range however I still have problem with it. in the CC1000ControlM at the line: // Set default parameter values // POWER 0dbm gCurrentParameters[0xb] = ((8 CC1K_PA_HIGHPOWER) | (0 CC1K_PA_LOWPOWER)); call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); I guess I can make a change to power range here so I make change : gCurrentParameters[0xb] =1;//I want to change to the minimum power range call HPLChipcon.write(CC1K_PA_POW, gCurrentParameters[0xb]); After that I recompile my program and run it. However It seems that my change does not go in to effect (the range is still large). Can you tell me the correct way to make the change to the power range? I have one more question about signal strength. I made the change at the TOS_Base, I try to read the signal strength from TOS_Msg event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) { cmd= (struct MyMsg *)Msg-data; temp1 = (int8_t) (((Msg-strength)8) 0xF);//take 8 MSB cmd-data[17] = temp1;//put in to packet at data[17]temp2 = (int8_t) ((8(Msg-strength)) 0xF);//take 8 LSBcmd-data[18] = temp2;//put in ton packet at data[18] .. Here is MyMsg structure: typedef struct MyMsg { uint16_t seqno; int8_t action; uint16_t source; uint8_t hop_count; uint16_t destaddr; int8_t data[18];} MyMsg; After that, I use Listen program to read signal strength value, however all the times these values are always 0 or 1 (convert to decimal number). Can anyone tell me is this a correct way to receive signal strength? If correct, how canconvert this value to dBm? many thanks! Tran! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with MIG!
Hi all! In my work, I want to creat my own structure (say, MyMsg). I creat file MyMsg.h and put in the directory/apps/Project. I want to creat the class MyMsg.java in the directory.../tools/java/net/tinyos/tools. I made the change to the Makefile in the tools directory as follow:MSGS = DelugeConsts.java DelugeAdvMsg.java DelugeReqMsg.java DelugeDataMsg.java SimpleCmdMsg.java LogMsg.java MyMsg.java##MyMsg# MYMSG_LIB=$(TOS)/../apps/ProjectMyMsg.java: $(MIG) -java-classname=$(PACKAGE).MyMsg $(MYMSG_LIB)/MyMsg.h MyMsg -o $@HoweverI do not know how tore-run this file to creat the MyMsg.java class? Could you help me some advice. Regards!P/S to Roberto: thanks you for your reply! Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with MIG!
make MyMsg.java might work, but you could have some dependency foo. You can remove/name MyMsg.java to force it to run. Or if you change the line to this: MyMsg.java: MyMsg.h It should remake everytime you change MyMsg.h MS Hieu Tran wrote: Hi all! In my work, I want to creat my own structure (say, MyMsg). I creat file MyMsg.h and put in the directory/apps/Project. I want to creat the class MyMsg.java in the directory.../tools/java/net/tinyos/tools. I made the change to the Makefile in the tools directory as follow: MSGS = DelugeConsts.java DelugeAdvMsg.java DelugeReqMsg.java DelugeDataMsg.java SimpleCmdMsg.java LogMsg.java MyMsg.java # #MyMsg # MYMSG_LIB=$(TOS)/../apps/Project MyMsg.java: $(MIG) -java-classname=$(PACKAGE).MyMsg $(MYMSG_LIB)/MyMsg.h MyMsg -o $@ However I do not know how to re-run this file to creat the MyMsg.java class? Could you help me some advice. Regards! P/S to Roberto: thanks you for your reply! Be a chatter box. Enjoy free PC-to-PC calls http://us.rd.yahoo.com/mail_us/taglines/postman12/*http://us.rd.yahoo.com/evt=39663/*http://messenger.yahoo.com with Yahoo! Messenger with Voice. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with java!
Hi all!I try to compile and run the ListenRaw class in net/tinyos/tools. This file is compiled successfully, however when I run : java ListenRaw -h (-h mean help) the Cygwin window display "Exception in thread "main" java.lang.NoClassDefFoundError: ListenRaw".I check in www.java.sun.com it said this error is because of no definition of the class could be found. What does it mean? Can you help me to solve this trouble? Thanks! Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with this problem
Hi all,I have a scenario to simulate with the motes and i have been practicing with some basic application to leanr more about mote communication. I have an application to develope in which the mote connected to computer when loaded with that application will start broadcasting its Node ID. The motes who listen this increment its ID by 1 and start braodcasting. In the end all the motes will know who their downstream motes are to reach the base station. Also when i have a large number of motes ( say 50 ) i want an over the kind of programming application so i do not need to bring all the motes to the computer to load the program. Does Deluge or Surge work for such application ?? Any idea on this will be appreciated.Thanks,Bhushan Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1/min.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with type of struct!
Thank you so much. However, in my case, if I add LogMsg into "args" union. I am not sure for 2 possibilities: - Can I still use BcastInject since this program is written to support old SImpleCmd struct? For me, it is really complecated to make change to some java programes. - Since "args" is union, I can only use one field at the moment. In my program, I want the packet have to the destination address (in the "read_log_args rl_args" field, in my program it is TOSBase mote address) and sample values (ex: photo values). So can I use union here? I look forward to hearing from you! Regards! Tran Chi Hieu Michael Schippling [EMAIL PROTECTED] wrote: it looks like someone thought this would be a good idea and includedsome intriguingly named objects in SimpleCmdMsg.h. Like "start_sense_argsss_args" and "LogMsg". But I don't find them used anywhere.You could probably add LogMsg to the "args" union andcreate a new action type for returned sense data. Just make surethe whole struct size is under 29 bytes as defined in types/AM.h.Hopefully the rest of the code will ignore messages it doesn't understand.MSHieu Tran wrote: Hi all! I am doing a simulation in TinyOS tutorial, Lesson 7 (Injecting and Broadcasting packets). I have 3 motes, in that one mote programmed as TOSBase. Two motes programmed with Bcast, in which one mote as Relay node (receive packet and forward, mote address 1), one mote as destination (mote address 2). I modify the BcastInject, from cygwin command I want to tell mote 2 to do something. (mote address is received from command as argument and put in the SimpleCmdMsg struct): typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args;// I put mote address here uint8_t untyped_args[0]; } args; } SimpleCmdMsg; (For example If I want to tell Mote 2 Led_on, from cigwin I type .led_on 2) Packet will be transmitted from TOSBase - Relay Node (Mote 1) (it receive packet, check mote address, and know that packet does not belong to it, it forward packet ) - Destination (Mote 2). with simple applications such as led_on, sound_on, my simulation work well. Now, I want to tell mote 2 to do some other works, such as it take light samples from sensing board and transmit these values back to TOSBase (mote 2 - mote 1 - TosBase). Of course I will have to modify BcastInject and Bcast. However, I do not know how to put these values in the SimpleCmd struct to transmit. typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; uint8_t untyped_args[0]; } args; } SimpleCmdMsg; How can I put the sample values in to the SimpleCmd struct? Because I learnt that BcatsInject, Bcast all use SimpleCmd struct to transmit and receive packet. Do I need to use other struct in my simulation? (in both directions, from TOSBase to Destination and from Destination to TOSBase). In that case, can I still use BcastInject? can you give me some suggestion to overcome this trouble? Many thanks! Regards! Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Get amazing travel prices for air and hotel in one click on Yahoo! FareChase ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with type of struct!
You will have to, at minimum, recompile and reload all programs that use the message structure. I haven't used/looked at BcastInject so I don't know if it even has facility for receiving messages, but certainly it would need to be modified to interpret your new message. As to changing structs, only one element of a union _should_ be used at a time, unless you want to enter the obfuscated C contest. You could add the destaddr to the LogMsg struct if you like. I just made my suggestions based on what is in the existing files and an educated guess that someone had already made a stab at thinking about it... I'm afraid most of what you are asking about are either general design or programming issues. I think you need to learn some more 'C' and Java before you torture yourself with the vagaries of TOS. Sun has a pretty good online Java tutorial, and a copy of the KR C book would hopefully be useful. For searching the help list, first, as someone already suggested, Google should be your friend; then Moteiv has a good page: http://www.moteiv.com/community/TinyOS_Information and finally there is the wiki, but it seems to be partially content free: http://cents.cs.berkeley.edu/tinywiki/index.php MS Hieu Tran wrote: Thank you so much. However, in my case, if I add LogMsg into args union. I am not sure for 2 possibilities: - Can I still use BcastInject since this program is written to support old SImpleCmd struct? For me, it is really complecated to make change to some java programes. - Since args is union, I can only use one field at the moment. In my program, I want the packet have to the destination address (in the read_log_args rl_args field, in my program it is TOSBase mote address) and sample values (ex: photo values). So can I use union here? I look forward to hearing from you! Regards! Tran Chi Hieu */Michael Schippling [EMAIL PROTECTED]/* wrote: it looks like someone thought this would be a good idea and included some intriguingly named objects in SimpleCmdMsg.h. Like start_sense_args ss_args and LogMsg. But I don't find them used anywhere. You could probably add LogMsg to the args union and create a new action type for returned sense data. Just make sure the whole struct size is under 29 bytes as defined in types/AM.h. Hopefully the rest of the code will ignore messages it doesn't understand. MS Hieu Tran wrote: Hi all! I am doing a simulation in TinyOS tutorial, Lesson 7 (Injecting and Broadcasting packets). I have 3 motes, in that one mote programmed as TOSBase. Two motes programmed with Bcast, in which one mote as Relay node (receive packet and forward, mote address 1), one mote as destination (mote address 2). I modify the BcastInject, from cygwin command I want to tell mote 2 to do something. (mote address is received from command as argument and put in the SimpleCmdMsg struct): typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args;// I put mote address here uint8_t untyped_args[0]; } args; } SimpleCmdMsg; (For example If I want to tell Mote 2 Led_on, from cigwin I type .led_on 2) Packet will be transmitted from TOSBase - Relay Node (Mote 1) (it receive packet, check mote address, and know that packet does not belong to it, it forward packet ) - Destination (Mote 2). with simple applications such as led_on, sound_on, my simulation work well. Now, I want to tell mote 2 to do some other works, such as it take light samples from sensing board and transmit these values back to TOSBase (mote 2 - mote 1 - TosBase). Of course I will have to modify BcastInject and Bcast. However, I do not know how to put these values in the SimpleCmd struct to transmit. typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; uint8_t untyped_args[0]; } args; } SimpleCmdMsg; How can I put the sample values in to the SimpleCmd struct? Because I learnt that BcatsInject, Bcast all use SimpleCmd struct to transmit and receive packet. Do I need to use other struct in my simulation? (in both directions, from TOSBase to Destination and from Destination to TOSBase). In that case, can I still use BcastInject? can you give me some suggestion to overcome this trouble? Many thanks! Regards! Yahoo! Messenger with Voice.
[Tinyos-help] Help me with type of struct!
Hi all! I am doing a simulation in TinyOS tutorial, Lesson 7 (Injecting and Broadcasting packets). I have 3 motes,in that one moteprogrammed asTOSBase. Two motes programmed with Bcast,in which one mote as Relay node (receive packet and forward, mote address 1), one mote as destination (mote address 2). I modify the BcastInject,from cygwin command I want to tell mote 2 to dosomething. (mote address is received from command as argument and put in the SimpleCmdMsg struct):typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args;// I put mote address here uint8_t untyped_args[0]; } args;} SimpleCmdMsg; (For example If I want to tell Mote 2 Led_on, from cigwin I type .led_on 2)Packet will be transmitted from TOSBase - Relay Node (Mote 1) (it receive packet,check mote address,and know that packet does not belong to it, itforward packet ) - Destination (Mote 2).with simple applications such as led_on, sound_on, my simulation work well.Now, I want to tell mote 2 to do some other works, such as it take light samples from sensing board and transmit these values back to TOSBase (mote 2 - mote 1 - TosBase). Of course I will have to modify BcastInject and Bcast. However, I do not know how to put these values in the SimpleCmd struct to transmit.typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; uint8_t untyped_args[0]; } args;} SimpleCmdMsg; How can I put the sample values in to the SimpleCmd struct? Because I learnt that BcatsInject, Bcast all use SimpleCmd struct to transmit and receive packet. Do I need to use other struct in my simulation? (in both directions, from TOSBase to Destination and from Destination to TOSBase). In that case, can I still use BcastInject?can you give me some suggestion to overcome this trouble? Many thanks!Regards! Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with type of struct!
it looks like someone thought this would be a good idea and included some intriguingly named objects in SimpleCmdMsg.h. Like start_sense_args ss_args and LogMsg. But I don't find them used anywhere. You could probably add LogMsg to the args union and create a new action type for returned sense data. Just make sure the whole struct size is under 29 bytes as defined in types/AM.h. Hopefully the rest of the code will ignore messages it doesn't understand. MS Hieu Tran wrote: Hi all! I am doing a simulation in TinyOS tutorial, Lesson 7 (Injecting and Broadcasting packets). I have 3 motes, in that one mote programmed as TOSBase. Two motes programmed with Bcast, in which one mote as Relay node (receive packet and forward, mote address 1), one mote as destination (mote address 2). I modify the BcastInject, from cygwin command I want to tell mote 2 to do something. (mote address is received from command as argument and put in the SimpleCmdMsg struct): typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args;// I put mote address here uint8_t untyped_args[0]; } args; } SimpleCmdMsg; (For example If I want to tell Mote 2 Led_on, from cigwin I type .led_on 2) Packet will be transmitted from TOSBase - Relay Node (Mote 1) (it receive packet, check mote address, and know that packet does not belong to it, it forward packet ) - Destination (Mote 2). with simple applications such as led_on, sound_on, my simulation work well. Now, I want to tell mote 2 to do some other works, such as it take light samples from sensing board and transmit these values back to TOSBase (mote 2 - mote 1 - TosBase). Of course I will have to modify BcastInject and Bcast. However, I do not know how to put these values in the SimpleCmd struct to transmit. typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; uint8_t untyped_args[0]; } args; } SimpleCmdMsg; How can I put the sample values in to the SimpleCmd struct? Because I learnt that BcatsInject, Bcast all use SimpleCmd struct to transmit and receive packet. Do I need to use other struct in my simulation? (in both directions, from TOSBase to Destination and from Destination to TOSBase). In that case, can I still use BcastInject? can you give me some suggestion to overcome this trouble? Many thanks! Regards! Yahoo! Messenger with Voice. http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com PC-to-Phone calls for ridiculously low rates. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with deluge
I am trying to make Deluge work with Blink to test over the air programming. The manual asks to type : % make platform install. But cygwin does not recognize % symbol. How to compile this application ?Bhushan How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with deluge
I think the % was an attempt to show the shell prompt... just type: make platform install where platform is your mote type, like: make mica2 install MS bhushan bhatt wrote: I am trying to make Deluge work with Blink to test over the air programming. The manual asks to type : % make platform install. But cygwin does not recognize % symbol. How to compile this application ? Bhushan How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with analog-digital converter!
Hi all! I am a new to TinyOS. I am doing a simulation with one moteprogrammed with TOSBase and one mote programmmed with SimpleCmd. I use BcastIject to send radio packet from TOSBase to SimpleCmd. There is no problem with the simulation (because all are included in tutorial). However, I have some questions but I myself can not explain. They are: - What component in TOSBase mote is responsible for converting digital signal (received from laptop) to analog signal? -What component in TOSBase mote is responsible for coding? (because I see in the TOS_Msg structure, it has CRC field to check CRC, and many other fields), what kind of coding mechanism is used here? -What untimate component in TOSBase mote is responsible for transmitting radio signal out to SimpleCmd mote - What first component is responsible for receiving analog signal in SimpleCmd mote?- Whatcomponent is responsible forconverting analog signal to digital signal in SimpleCmd mote? Can you give me someanswers for my questions? Many thanks! In BcastInject, I modify it with destination address is received from command. After that, I put this address in the read_log_arg variable of SimpleCmd. Here are some structes in SimpleCmd Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with SimpleCmd!
Hi all! I am a new to TinyOS. I am doing a simulation with one mote program with TOSBase. I use BcastIject to send radio packet. In BcastInject, I modify it with destination address is received from command. After that, I put this address in the read_log_arg variable of SimpleCmd. Here are some structes in SimpleCmd: typedef struct { uint16_t destaddr;} read_log_args; // SimpleCmd message structuretypedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; (I put destination address here) uint8_t untyped_args[0]; } args;} SimpleCmdMsg; The packet is sent with broadcast address. I want to programming one node as the relay node. It receives radio packet, make comparision of its TOS_LOCAL_ADDRESS with destination address (encapsulated in SimpleCmd). If these addresses are equal, the node keep the packet, other it forward the packet.In the program for the relay mote, I declare cmd as a SimpleCmd structure pointer that point to packet struct SimpleCmdMsg * cmd = (struct SimpleCmdMsg *) msg-data;and I make comparision with commandif (cmd-args.rl_args=TOS_LOCAL_ADDRESS) I run the make mica2 to compile this program. However, the Cygwin display "Incompatible types in assignment"(cmd-args.rl_args=TOS_LOCAL_ADDRESS) I can not figure it out what is wrong with this. Can yougive me some advice? Many thanks! I want to programming one mote as a relay node, it receive radio packet (SimpleCmd structure including destination address), and whenreceiving the packet, it make a coparision of destination address in the received packet with its address. If they are equal, the node keep the packet, if not it forward the packet to the destination. However, I do not know how a node can take itshelf address (MOTE address, presume I have set the MOTE address of 2). Can you give me some advice? Many thanks! Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1/min.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with SimpleCmd!
Sorry, I think in the command if (cmd-args.rl_args=TOS_LOCAL_ADDRESS) it must be if (cmd-args.rl_args==TOS_LOCAL_ADDRESS). However, when I change this, the Cygwin display "invalid operands to binary ==". How can I solve this problem? Thanks alot. Hi all! I am a new to TinyOS. I am doing a simulation with one mote program with TOSBase. I use BcastIject to send radio packet. In BcastInject, I modify it with destination address is received from command. After that, I put this address in the read_log_arg variable of SimpleCmd. Here are some structes in SimpleCmd: typedef struct { uint16_t destaddr;} read_log_args; // SimpleCmd message structuretypedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; (I put destination address here) uint8_t untyped_args[0]; } args;} SimpleCmdMsg;The packet is sent with broadcast address. I want to programming one node as the relay node. It receives radio packet, make comparision of its TOS_LOCAL_ADDRESS with destination address (encapsulated in SimpleCmd). If these addresses are equal, the node keep the packet, other it forward the packet.In the program for the relay mote, I declare cmd as a SimpleCmd structure pointer that point to packet struct SimpleCmdMsg * cmd = (struct SimpleCmdMsg *) msg-data;and I make comparision with commandif (cmd-args.rl_args=TOS_LOCAL_ADDRESS) I run the make mica2 to compile this program. However, the Cygwin display "Incompatible types in assignment"(cmd-args.rl_args=TOS_LOCAL_ADDRESS) I can not figure it out what is wrong with this. Can yougive me some advice? Many thanks! New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with SimpleCmd!
good, you caught that =/== thing... From looking at the SimpleCmdMsg.h file, I think what you want is: cmd-args.rl_args.destaddr since rl_args is a struct itself. Also on the question you sent to me directly: From the Cygwin command, if I type java.net.tools.BcastInject led_on 1 (1 is mote address of node 1), I can see only led on the mote 1 is on, mote 2 is not. I am quite confused here, because I left SImpleCmd unchanged, so how the mote 2 know that this broadcasted packet does not belong to it? Because, I think, althought the packet is sent from TOSBase with address of mote 1, mote 2 still can receive it (radio signal). I haven't used BcastInject. It looks like all messages are BCAST to every mote, but the mote app itself looks at the rl_args.destaddr and decides if is is going to execute the command, turning on the LED in this case. You could change SimpleCmd to flash an led every time it gets a message of any kind, just to see that things are working... MS Hieu Tran wrote: Sorry, I think in the command if (cmd-args.rl_args=TOS_LOCAL_ADDRESS) it must be if (cmd-args.rl_args==TOS_LOCAL_ADDRESS). However, when I change this, the Cygwin display invalid operands to binary ==. How can I solve this problem? Thanks alot. Hi all! I am a new to TinyOS. I am doing a simulation with one mote program with TOSBase. I use BcastIject to send radio packet. In BcastInject, I modify it with destination address is received from command. After that, I put this address in the read_log_arg variable of SimpleCmd. Here are some structes in SimpleCmd: typedef struct { uint16_t destaddr; } read_log_args; // SimpleCmd message structure typedef struct SimpleCmdMsg { int8_t seqno; int8_t action; uint16_t source; uint8_t hop_count; union { start_sense_args ss_args; read_log_args rl_args; (I put destination address here) uint8_t untyped_args[0]; } args; } SimpleCmdMsg; The packet is sent with broadcast address. I want to programming one node as the relay node. It receives radio packet, make comparision of its TOS_LOCAL_ADDRESS with destination address (encapsulated in SimpleCmd). If these addresses are equal, the node keep the packet, other it forward the packet. In the program for the relay mote, I declare cmd as a SimpleCmd structure pointer that point to packet struct SimpleCmdMsg * cmd = (struct SimpleCmdMsg *) msg-data; and I make comparision with command if (cmd-args.rl_args=TOS_LOCAL_ADDRESS) I run the make mica2 to compile this program. However, the Cygwin display Incompatible types in assignment (cmd-args.rl_args=TOS_LOCAL_ADDRESS) I can not figure it out what is wrong with this. Can you give me some advice? Many thanks! New Yahoo! Messenger with Voice. Call regular phones from your PC http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com and save big. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with MOTE address!
Hi all! I am a new to TinyOS. I want to programming one mote as a relay node, it receive radio packet (SimpleCmd structure including destination address), and whenreceiving the packet, it make a coparision of destination address in the received packet with its address. If they are equal, the node keep the packet, if not it forward the packet to the destination. However, I do not know how a node can take itshelf address (MOTE address, presume I have set the MOTE address of 2). Can you give me some advice? Many thanks! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with MOTE address!
Your mote's address is stored in TOS_LOCAL_ADDRESS variable. You can read it.- VinayakOn 5/8/06, Hieu Tran [EMAIL PROTECTED] wrote:Hi all! I am a new to TinyOS. I want to programming one mote as a relay node, it receive radio packet (SimpleCmd structure including destination address), and whenreceiving the packet, it make a coparision of destination address in the received packet with its address. If they are equal, the node keep the packet, if not it forward the packet to the destination. However, I do not know how a node can take itshelf address (MOTE address, presume I have set the MOTE address of 2). Can you give me some advice? Many thanks! Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with MOTE address!
However...messages that are not addressed to the local nodeID (or Broadcast) are dropped in the message code...I forget where just now and everytime I go looking for something I can't find it again... So the app level never sees them in order to forward them. You'll have to go fiddle with that mechanism if you want to use TOS_Msg.addr to compare destinations. Then there is the problem of infinite loops in forwarding, but you've probably already solved that. MS Vinayak Naik wrote: Your mote's address is stored in TOS_LOCAL_ADDRESS variable. You can read it. - Vinayak On 5/8/06, *Hieu Tran* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all! I am a new to TinyOS. I want to programming one mote as a relay node, it receive radio packet (SimpleCmd structure including destination address), and when receiving the packet, it make a coparision of destination address in the received packet with its address. If they are equal, the node keep the packet, if not it forward the packet to the destination. However, I do not know how a node can take itshelf address (MOTE address, presume I have set the MOTE address of 2). Can you give me some advice? Many thanks! Yahoo! Messenger with Voice. Make PC-to-Phone Calls http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com to the US (and 30+ countries) for 2¢/min or less. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU mailto:Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with MultiRouter!
Hi all! I am new to tinyos. I am doing the project with relay channels. I see in the directory Tos/Lib/Route have MultihopRouter configuration file and I want to compile it with make mica2, and make mica2 docs to have a graphic picture. However, when I change directory to ..tos/lib/Route and type make mica2 the cygwin display "make: *** no rule to make target 'mica2'. Stop" I see in other applications, all have makefile, but in the Route directorym there is no makefile. Do I need to create a make file to compile the MultihopRouter application? Can you help me with this trouble? Many thanks! Regards! Tran Chi Hieu Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with TOSSIM!
Hi all! I am just getting started with Tinyos tutorial. In Tutorial 5, in part "Tiniviz: The TOSSIM User Interface", I try to run simulation export DBG=usr1 tinyviz -run build/pc/main.exe 30However, the Cygwin display "Could not find aplatform specific version of TOSMsg Java.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsg" and it stop running simulation. Can you give me some advice to solve this problem. Many thanks! Yahoo! Mail goes everywhere you do. Get it on your phone.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help me with oscilloscope GUI!
Hi all! I am just getting started with TinyOS and Nesc. From the tutorial 6, I ran the Serial Forwarder Program and I can see the packet counter sent over the serial port. Next I move to the oscilloscope GUI, in the tutorial said:"Leaving the serial forwarder running, execute the command: java net.tinyos.oscope.oscilloscope"However, I can not type this command on the cygwin window since the Serial Forwarder program is running. Thats why I can not see the GUI simulation. Any one give me some help to overcome this trouble? Many thanks! Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with oscilloscope GUI!
Hi, start SerialForwarder to the background, for example: $ net.tinyos.sf.SerialForwarder that way you return to command prompt and SF runs as a background process. Regards, Harri At 03:51 AM 4/28/2006 -0700, Hieu Tran wrote: Hi all! I am just getting started with TinyOS and Nesc. From the tutorial 6, I ran the Serial Forwarder Program and I can see the packet counter sent over the serial port. Next I move to the oscilloscope GUI, in the tutorial said: Leaving the serial forwarder running, execute the command: java net.tinyos.oscope.oscilloscope However, I can not type this command on the cygwin window since the Serial Forwarder program is running. Thats why I can not see the GUI simulation. Any one give me some help to overcome this trouble? Many thanks! http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.comYahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with oscilloscope GUI!
You must execute the Serial Forwarder in background (with at the end). BR, Diego - Original Message - From: Hieu Tran To: tinyos-help@Millennium.Berkeley.EDU Sent: Friday, April 28, 2006 12:51 PM Subject: [Tinyos-help] Help me with oscilloscope GUI! Hi all! I am just getting started with TinyOS and Nesc. From the tutorial 6, I ran the Serial Forwarder Program and I can see the packet counter sent over the serial port. Next I move to the oscilloscope GUI, in the tutorial said: "Leaving the serial forwarder running, execute the command: java net.tinyos.oscope.oscilloscope" However, I can not type this command on the cygwin window since the Serial Forwarder program is running. Thats why I can not see the GUI simulation. Any one give me some help to overcome this trouble? Many thanks! Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with oscilloscope GUI!
You can also open a new cygwin window and run the oscilloscope program from there. It still connects successfully to the SerialForwarderOn 4/28/06, Diego Bartolomé Arquillo [EMAIL PROTECTED] wrote: You must execute the Serial Forwarder in background (with at the end). BR, Diego - Original Message - From: Hieu Tran To: tinyos-help@Millennium.Berkeley.EDU Sent: Friday, April 28, 2006 12:51 PM Subject: [Tinyos-help] Help me with oscilloscope GUI! Hi all! I am just getting started with TinyOS and Nesc. From the tutorial 6, I ran the Serial Forwarder Program and I can see the packet counter sent over the serial port. Next I move to the oscilloscope GUI, in the tutorial said: Leaving the serial forwarder running, execute the command: java net.tinyos.oscope.oscilloscope However, I can not type this command on the cygwin window since the Serial Forwarder program is running. Thats why I can not see the GUI simulation. Any one give me some help to overcome this trouble? Many thanks! Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help me with oscilloscope GUI!
Typo again, the command has to have 'java' of course: $ java net.tinyos.sf.SerialForwarder Harri At 02:29 PM 4/28/2006 +0300, Harri Siirtola wrote: Hi, start SerialForwarder to the background, for example: $ net.tinyos.sf.SerialForwarder that way you return to command prompt and SF runs as a background process. Regards, Harri At 03:51 AM 4/28/2006 -0700, Hieu Tran wrote: Hi all! I am just getting started with TinyOS and Nesc. From the tutorial 6, I ran the Serial Forwarder Program and I can see the packet counter sent over the serial port. Next I move to the oscilloscope GUI, in the tutorial said: Leaving the serial forwarder running, execute the command: java net.tinyos.oscope.oscilloscope However, I can not type this command on the cygwin window since the Serial Forwarder program is running. Thats why I can not see the GUI simulation. Any one give me some help to overcome this trouble? Many thanks! http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.comYahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help me
Hello, I am a student (post-graduation) in the University of Oran (department of computer science) -Algeria- and I am very interested in wireless sensor networks (especially secure routing issues) and I wonder if you could help me. I have read a lot of about this new technology, after that, I want to move to the experimentation step, so i have downloaded tinyOS and it is now ready to use but I can't do any thing with out sensor nodes. I hope that you can send me at lest 2 nodes and a programming board, to achieve what we are working on, besides we can communicate you our results. Thank you in anticipation. Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici ! ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help