[Tinyos-help] make micaz sim error. Help!
Hi... I have installed tinyos-2.x and cygwin. I linked the java file $ cd /opt/tinyos-2.x $ ln -s /cygdrive/programfiles/java/jadk1.5.0_14/bin/javac/bin/javac But when i type micaz sim i get error 127 $ cd /opt/tinyos-2.x/apps/radioCountToLeds $ make micaz sim i get error as follows mkdir -p build/micaz javac radioCountMsg.java make: javac: command not found make: *** [radiocountmsg.class] Error 127 Note: I have linked CLASSPATH variable too, when i type $ printenv CLASSPATH C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. Someone kindly help me on this issue because i am unable to proceed TOSSIM because of this error. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] AMSend.SendDone not signalled
You can try running BaseStation and net.tinyos.tools.Listen as detailed in http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson4.html to verify nothing is being transmitted at all. I assume you have Leds toggling or something on: AMSend.send returning success AMSend.sendDone returning SUCCESSFAIL. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nicole Neureiter Sent: 21 February 2008 11:04 To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] AMSend.SendDone not signalled Hi all, im new to TinyOS and nesCand encountered a problem with programming my motes. Im trying to get them to communicate but it seems that after sending a packet there is no AMSend.SendDone signalled, also AMSend was a SUCCESS. Im getting no error messages when compiling, so I don't know what could be wrong. I'm using mica motes. I have the same problem using Tossim, no compilation errors but after a Send success no AMSend.SendDone is signaled, so there is also no receive. Anyone got an idea? Nic. -- ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/t inyos-help *** Please consider the environment before printing this email. *** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research Technology (UK) Limited. *** ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Can MIB600 use simultaneously two TCP connections?
Connect Serial Forwarder to MIB600, it can provide multiple connections to applications (through its port 9001). Regards, Harri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, February 24, 2008 7:48 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] Can MIB600 use simultaneously two TCP connections? Hello, I am using MIB600 and xlisten application (connected to 10002 MIB600 port). In this way I am getting data from motes. I would like to use another application which will send data to motes (xlisten shouldn't be stopped). I have tried to do this but I was able to send data only when xlisten session was closed (only one connection to port 10002). Is it possible to do this? Can MIB600 provide two TCP sessions on port 10002: one session from motes and one to motes? Can I use channel 1 to send data to mote (I have read that this port is for programming motes only). Regards, Mariusz ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Deluge T2 in TinyOS 2.0.2 release
Hi Guys, We have to deploy a big number of motes with 2 images 1. modified-MutiHopOscilloscope application for Collection, Radio always ON - Cluster Head (CH) 2. modified-RadioCountToLeds , with Radio ON for only transmitting a packet(few ms) and then OFF for say X Minutes - Cluster Node (CN) Since the deployment could be big scale, so we obviously want to use Deluge T2 to do this. I had a few Questions regarding it: 1. Right now we are using TinyOS 2.0.2 stable release and have not tried the CVS current repository. The example applications in apps/tests/Deluge don't compile and if I follow the Latest DelugeT2 Manual, first i installed Python2.4 and pySerial not present in release then the first step talks abt tos/lib/tosboot folder which aint there, while is present in CVS. So, the only conclusion tht I can take is tht there is no way of using Deluge in any capacity without using CVS. Am I right ? 2. For one of the application, Radio is OFF(Cluster Node's) for most of the time. Has anyone tried some kind of syncronization between Cluster Heads and Cluster Nodes in this situation to use Deluge. *Also, we want to use Deluge to deliver 2 different images to 2 different classes of motes(CH and CN), has anyone tried something like this or is tht possible ?* 3. For MultiHopOscilloscope, i was reading on this forum that Deluge aint enough as the object image become larger than supported size, are there plans of taking care of this ? 4. For over-the-air programming, are there other options in T2 ? Dissemination in T2 I read is only for small data which doesnt apply to program binaries. XNP on T2 ? Any hints/suggestion/experiences are welcome. They would help me take the right direction without swimming around too much and save a lot of time :) Best Regards, Gaurav -- - To accomplish great things, we must not only act, but also dream; not only plan, but also believe. - Anatole France ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] running tinyOS in Linux Ubuntu
Hi, I am installing tinyOS in Linux Ubuntu by following the steps from http://www.tinyos.net/scoop/story/2007/8/15/234856/990 However I got an error when trying to compile the Blink application. Here is the error message: make: *** No rule to make target `micaz'. Stop. Does anybody know what is happening here? Do I miss something in the installation? THank you in advance? Best Regards, Bayu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Can MIB600 use simultaneously two TCP connections?
Can MIB600 provide only two connection it itself? Maybe can I use channel 1 to communicate with mote? I would like to avoid using Serial Forwarder. Is it possible? Can C version of Serial Forwarder provide multiple connections or only java version ? Mariusz - Original Message - From: Siirtola Harri To: [EMAIL PROTECTED] ; tinyos-help@millennium.berkeley.edu Sent: Monday, February 25, 2008 11:51 AM Subject: RE: [Tinyos-help] Can MIB600 use simultaneously two TCP connections? Connect Serial Forwarder to MIB600, it can provide multiple connections to applications (through its port 9001). Regards, Harri -- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, February 24, 2008 7:48 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] Can MIB600 use simultaneously two TCP connections? Hello, I am using MIB600 and xlisten application (connected to 10002 MIB600 port). In this way I am getting data from motes. I would like to use another application which will send data to motes (xlisten shouldn't be stopped). I have tried to do this but I was able to send data only when xlisten session was closed (only one connection to port 10002). Is it possible to do this? Can MIB600 provide two TCP sessions on port 10002: one session from motes and one to motes? Can I use channel 1 to send data to mote (I have read that this port is for programming motes only). Regards, Mariusz___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Can MIB600 use simultaneously two TCP connections?
MIB600 has only two channels, one for programming (only) and another for comms. So, there's no way other than using SF. As for java vs. C, I don't know. On the other hand, I can't see a reason the apps wouldn't be identical. Harri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 2:26 PM To: Siirtola Harri; tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Can MIB600 use simultaneously two TCP connections? Can MIB600 provide only two connection it itself? Maybe can I use channel 1 to communicate with mote? I would like to avoid using Serial Forwarder. Is it possible? Can C version of Serial Forwarder provide multiple connections or only java version ? Mariusz - Original Message - From: Siirtola Harri mailto:[EMAIL PROTECTED] To: [EMAIL PROTECTED] ; tinyos-help@millennium.berkeley.edu Sent: Monday, February 25, 2008 11:51 AM Subject: RE: [Tinyos-help] Can MIB600 use simultaneously two TCP connections? Connect Serial Forwarder to MIB600, it can provide multiple connections to applications (through its port 9001). Regards, Harri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, February 24, 2008 7:48 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] Can MIB600 use simultaneously two TCP connections? Hello, I am using MIB600 and xlisten application (connected to 10002 MIB600 port). In this way I am getting data from motes. I would like to use another application which will send data to motes (xlisten shouldn't be stopped). I have tried to do this but I was able to send data only when xlisten session was closed (only one connection to port 10002). Is it possible to do this? Can MIB600 provide two TCP sessions on port 10002: one session from motes and one to motes? Can I use channel 1 to send data to mote (I have read that this port is for programming motes only). Regards, Mariusz ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] running tinyOS in Linux Ubuntu
You still need to set the environment variables. See http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html for the list of variables that you need to set. David On Mon, Feb 25, 2008 at 3:28 AM, bayu anggorojati [EMAIL PROTECTED] wrote: Hi, I am installing tinyOS in Linux Ubuntu by following the steps from http://www.tinyos.net/scoop/story/2007/8/15/234856/990 However I got an error when trying to compile the Blink application. Here is the error message: make: *** No rule to make target `micaz'. Stop. Does anybody know what is happening here? Do I miss something in the installation? THank you in advance? Best Regards, Bayu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] AMSend.SendDone not signalled
It sounds like acknowledgements might be on. The lower layer will keep resending the message and it won't signal sendDone unless it gets an ack for the msg from another mote. On Mon, Feb 25, 2008 at 1:04 AM, Murray, Ben [EMAIL PROTECTED] wrote: You can try running BaseStation and net.tinyos.tools.Listen as detailed in http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson4.html to verify nothing is being transmitted at all. I assume you have Leds toggling or something on: AMSend.send returning success AMSend.sendDone returning SUCCESSFAIL. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nicole Neureiter Sent: 21 February 2008 11:04 To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] AMSend.SendDone not signalled Hi all, im new to TinyOS and nesCand encountered a problem with programming my motes. Im trying to get them to communicate but it seems that after sending a packet there is no AMSend.SendDone signalled, also AMSend was a SUCCESS. Im getting no error messages when compiling, so I don't know what could be wrong. I'm using mica motes. I have the same problem using Tossim, no compilation errors but after a Send success no AMSend.SendDone is signaled, so there is also no receive. Anyone got an idea? Nic. -- ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/t inyos-help *** Please consider the environment before printing this email. *** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research Technology (UK) Limited. *** ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] error in running java program (SerialForwarder and TestSerial) in linux ubuntu
Hi, I am installing the tinyOS linux ubuntu. Basically I can successfully compile and install the tinyOS program. But when I tried to run a java program, such as SerialForwarder it gave me the following error: Exception in thread main java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(libgcj.so.70) at java.awt.Window.init(libgcj.so.70) at java.awt.Frame.init(libgcj.so.70) at javax.swing.JFrame.init(libgcj.so.70) at net.tinyos.sf.SFWindow.createGui(SFWindow.java:87) at net.tinyos.sf.SerialForwarder.init(SerialForwarder.java:105) at net.tinyos.sf.SerialForwarder.main(SerialForwarder.java:92) Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory at java.lang.Runtime._load(libgcj.so.70) at java.lang.Runtime.loadLibrary(libgcj.so.70) at java.lang.System.loadLibrary(libgcj.so.70) at gnu.java.awt.peer.gtk.GtkToolkit.clinit(libgcj.so.70) at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.forName(libgcj.so.70) at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70) ...7 more I also found out that other java program is also not working, like the TestSerial program. The error when I was running TestSerial (java) program is as follows: Exception in thread main java.lang.NoClassDefFoundError: TestSerial at gnu.java.lang.MainThread.run(libgcj.so.70) Caused by: java.lang.ClassNotFoundException: TestSerial not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/opt/tinyos-2.x/support/sdk/java/tinyos.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.70) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at gnu.java.lang.MainThread.run(libgcj.so.70) Is there anything that is missed here, like installing the package, setting the environment or whatever? Thank you in advance for your help. Best Regards, Bayu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] UniqueSend question
UniqueSend is simply a layer inside of radio stacks, providing the Send interface to layers above, and using the Send as SubSend interface to connect to layers below. Its purpose is to set a unique DSN (data sequence number) byte in the packet's header on the way out. There's a reference implementation of UniqueSendP in tinyos-2.x/tos/chips/cc2420/unique/UniqueSendP.nc -David _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sikar Chan Sent: Sunday, February 24, 2008 10:42 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] UniqueSend question Hi All Is there any different in coding for UniqueSend and just Send? I got confused with the coding for them as shown in http://www.tinyos.net/tinyos-2.x/doc/html/tep126.html Would any one give me some example or suggestion? Thanks Sikar Chan ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Modifying XMeshBase
Hi; I am working with micaz platform. I have a remote note transmiting and the base station is loaded with the XMeshBaseM.nc code. The remote transmits correctly to the base station, but then, I want to transmit a message from the base to the remote and I dont know where I have to insert this. When the base station receives a message what happens in the base station? I don`t see any event. I want to know in which part of XMeshBase.nc the base receives a message, to modify it and transmit my message to the base. Code: module XMeshBaseM { provides { interface StdControl; } uses { interface RouteControl; interface XCommand; interface Leds; } } implementation { command result_t StdControl.init() { call Leds.init(); atomic{ TOS_LOCAL_ADDRESS = 0; } return SUCCESS; } command result_t StdControl.start(){ return SUCCESS; } command result_t StdControl.stop() { return SUCCESS; } event result_t XCommand.received(XCommandOp *opcode) { switch (opcode-cmd) { case XCOMMAND_SET_RATE: break; case XCOMMAND_SLEEP: break; case XCOMMAND_WAKEUP: break; case XCOMMAND_RESET: break; default: break; } return SUCCESS; } } __ ¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] running tinyOS in Linux Ubuntu
You need to set some environment variables manually. Please refer to the section on environment variables in http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html Janos From: [EMAIL PROTECTED] on behalf of bayu anggorojati Sent: Mon 2/25/2008 5:28 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] running tinyOS in Linux Ubuntu Hi, I am installing tinyOS in Linux Ubuntu by following the steps from http://www.tinyos.net/scoop/story/2007/8/15/234856/990 However I got an error when trying to compile the Blink application. Here is the error message: make: *** No rule to make target `micaz'. Stop. Does anybody know what is happening here? Do I miss something in the installation? THank you in advance? Best Regards, Bayu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] error in running java program (SerialForwarder andTestSerial) in linux ubuntu
Bayu, First, you have some problems with your java installation. Although most of the tinyos java tools should work with gcj/CLASSPATH, you're better off with installing a Sun JDK or an IBM JDK. Also, make sure that the current directory is on the classpath, as well as the tinyos jar files. Please see http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html for details. Janos From: [EMAIL PROTECTED] on behalf of bayu anggorojati Sent: Mon 2/25/2008 10:15 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] error in running java program (SerialForwarder andTestSerial) in linux ubuntu Hi, I am installing the tinyOS linux ubuntu. Basically I can successfully compile and install the tinyOS program. But when I tried to run a java program, such as SerialForwarder it gave me the following error: Exception in thread main java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(libgcj.so.70) at java.awt.Window.init(libgcj.so.70) at java.awt.Frame.init(libgcj.so.70) at javax.swing.JFrame.init(libgcj.so.70) at net.tinyos.sf.SFWindow.createGui(SFWindow.java:87) at net.tinyos.sf.SerialForwarder.init(SerialForwarder.java:105) at net.tinyos.sf.SerialForwarder.main(SerialForwarder.java:92) Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory at java.lang.Runtime._load(libgcj.so.70) at java.lang.Runtime.loadLibrary(libgcj.so.70) at java.lang.System.loadLibrary(libgcj.so.70) at gnu.java.awt.peer.gtk.GtkToolkit.clinit(libgcj.so.70) at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.forName(libgcj.so.70) at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70) ...7 more I also found out that other java program is also not working, like the TestSerial program. The error when I was running TestSerial (java) program is as follows: Exception in thread main java.lang.NoClassDefFoundError: TestSerial at gnu.java.lang.MainThread.run(libgcj.so.70) Caused by: java.lang.ClassNotFoundException: TestSerial not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/opt/tinyos-2.x/support/sdk/java/tinyos.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.70) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at gnu.java.lang.MainThread.run(libgcj.so.70) Is there anything that is missed here, like installing the package, setting the environment or whatever? Thank you in advance for your help. Best Regards, Bayu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] chapter1 : error!!! pls help
Hi i am a beginner to tinyos. I have installed tinyos-2.x and cygwin and their directories are. cygwin- c:/cygwin... java- c:/programfiles/java/jdk1.5.0_14... i linked them with this command in cygwin bash shell *ln -s /cygdrive/c/program files/java/jdk1.6.0_01/bin/javac /bin/javac* CLASSPATH variable i have also created *C:\cygwin\opt\tinyos- 2.x\support\sdk\java\tinyos.jar;.;* Other variables i stored in a shell file - tinyos.sh when i type* $ tos-check-env* i get the following warnings WARNING: No java in current path WARNING: No dot in current path WARNING: tos-check-env could not find the 'dot' executable. I have installed Graphviz-win v2.16 too. Kindly help. What is with the current path. I am struggling for days to overcome this problem. *How can i check the current PATH?* How can i check whether my installation is perfect. Please help. Your response is welcome. *What is that dot in current path?* ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tos-check-env error
Hi i am a beginner to tinyos. I have installed tinyos-2.x and cygwin and their directories are. cygwin- c:/cygwin... java- c:/programfiles/java/jdk1.5.0_14... i linked them with this command in cygwin bash shell *ln -s /cygdrive/c/program files/java/jdk1.5.0_14/bin/javac /bin/javac* CLASSPATH variable i have also created *C:\cygwin\opt\tinyos- 2.x\support\sdk\java\tinyos.jar;.;* Other variables i stored in a shell file - tinyos.sh when i type* $ tos-check-env* i get the following warnings WARNING: No java in current path WARNING: No dot in current path WARNING: tos-check-env could not find the 'dot' executable. I have installed Graphviz-win v2.16 too. Kindly help. What is with the current path. I am struggling for days to overcome this problem. *How can i check the current PATH?* How can i check whether my installation is perfect. Please help. Your response is welcome. *What is that dot in current path?* ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] Modifying XMeshBase
XMeshBase already supports downstream communication via XCommand interface. You may send commands out to the network using XServeXCmd. Please refer to the XServe manual below. http://www.xbow.com/Support/Support_pdf_files/XServe_Users_Manual.pdf All the XMesh apps (including XMeshBase support these). Simple examples are actuating a LED or changing the data rate. If you want to add your own commands, you would need to implement them both in the XMesh app that runs on your sensor nodes as well as in XServe that sends them out. Regards, Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lei Mlapom Sent: Monday, February 25, 2008 8:43 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] Modifying XMeshBase Hi; I am working with micaz platform. I have a remote note transmiting and the base station is loaded with the XMeshBaseM.nc code.. The remote transmits correctly to the base station, but then, I want to transmit a message from the base to the remote and I dont know where I have to insert this. When the base station receives a message what happens in the base station? I don`t see any event. I want to know in which part of XMeshBase.nc the base receives a message, to modify it and transmit my message to the base. Code: module XMeshBaseM { provides { interface StdControl; } uses { interface RouteControl; interface XCommand; interface Leds; } } implementation { command result_t StdControl.init() { call Leds.init(); atomic{ TOS_LOCAL_ADDRESS = 0; } return SUCCESS; } command result_t StdControl.start(){ return SUCCESS; } command result_t StdControl.stop() { return SUCCESS; } event result_t XCommand.received(XCommandOp *opcode) { switch (opcode-cmd) { case XCOMMAND_SET_RATE: break; case XCOMMAND_SLEEP: break; case XCOMMAND_WAKEUP: break; case XCOMMAND_RESET: break; default: break; } return SUCCESS; } } ¿Con Mascota por primera vez? - Sé un mejor Amigo Entra en Yahoo! Respuestas http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=oversid= . ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tos-check-env error
reply-all now...just in case it's useful!: the dot makes the prog. look at the directory I am in right now and it should really be added to your CLASSPATH as a step in itself, not as a standalone step: export CLASSPATH=C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar export CLASSPATH=$CLASSPATH;. ... I use the following in a .bashrc file at cygwin startup: echo Running Setup for TinyOS 2.x unset CLASSPATH export TOSROOT=/opt/tinyos-2.x export TOSDIR=$TOSROOT/tos export CLASSPATH=C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar export CLASSPATH=$CLASSPATH;. export MAKERULES=$TOSROOT/support/make/Makerules You can make cygwin output your variables like so: If I type $PATH or $CLASSPATH I get these outputs: $ $PATH bash: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/AVRtools/WinAVR-20 071221/bin:/cygdrive/c/AVRtools/WinAVR-20071221/utils/bin:/cygdrive/c/WINDOW S/sy stem32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/PRO GRA~ 1/ATT/Graphviz/bin:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin/tools:/cygdrive/c/P ROGR A~1/Java/jdk1.6.0_01/bin:/cygdrive/c/PROGRA~1/Java/jdk1.6.0_01/jre/bin:/cygd rive /c/Program: No such file or directory $ $CLASSPATH bash: C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.: command not found -Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ari Chinna Sent: 25 February 2008 18:02 To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] tos-check-env error Hi i am a beginner to tinyos. I have installed tinyos-2.x and cygwin and their directories are. cygwin- c:/cygwin... java- c:/programfiles/java/jdk1.5.0_14... i linked them with this command in cygwin bash shell ln -s /cygdrive/c/program files/java/jdk1.5.0_14/bin/javac /bin/javac CLASSPATH variable i have also created C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.; Other variables i stored in a shell file - tinyos.sh when i type $ tos-check-env i get the following warnings WARNING: No java in current path WARNING: No dot in current path WARNING: tos-check-env could not find the 'dot' executable. I have installed Graphviz-win v2.16 too. Kindly help. What is with the current path. I am struggling for days to overcome this problem. How can i check the current PATH? How can i check whether my installation is perfect. Please help. Your response is welcome. What is that dot in current path? *** Please consider the environment before printing this email. *** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research Technology (UK) Limited. *** ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] USB UART capacity
Hi, I am trying to ascertain the maximum rate at which packets can be sent from mote to PC via USB. I'm using the tinyos-2.0 BaseStation app on both the sender mote and receiver mote. At the sender, I'm using TestSerial to send packets via USB to the mote in a loop without any sleep in between successive sends and without the ACK mechanism in Packetizer.java. Given that the mote to PC UART communication is best effort, I would expect the number of packets transferred to the PC to be equal to the number of packets incoming from the radio at the receiver. But the number of packets received on the PC (using the Listen app) is less than the number of packets sent. What is the bottleneck in this case? I would really appreciate any ideas. Thanks, Bhavish ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Communication TOSSIM with one block of radio
Hi everyone, I'm new in TinyOS and TOSSIM. I'm trying to implement a radio model for TOSSIM simulator. Concretly, radio model nrf2401. In TOSSIM for TinyOS 2.0 only the packet model for the simulations is implemented, I think. Someone can help me and tell me how TOSSIM core can communicates with radio models. I know that it's is posible, but I don't know how do it. Any information will be very well received, some file at that to look to be orientated, some list of instructions to communicate with the core, or some type of protocol to continuing for this purpose... If somebody can help me, I will be really grateful. Thanks in advance, Joan ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Re: USB UART capacity
I also tried using TestSerialBandwidth. I commented out the code in TestSerial.java which sends packets to mote. Thus, I'm only sending packets to the PC from mote. Using the as fast as possible mode, I can send packets at the rate of approx 100Hz in the direction mote to PC. What limits the rate from being higher? Bhavish On Tue, Feb 26, 2008 at 1:52 AM, Bhavish Aggarwal [EMAIL PROTECTED] wrote: Hi, I am trying to ascertain the maximum rate at which packets can be sent from mote to PC via USB. I'm using the tinyos-2.0 BaseStation app on both the sender mote and receiver mote. At the sender, I'm using TestSerial to send packets via USB to the mote in a loop without any sleep in between successive sends and without the ACK mechanism in Packetizer.java. Given that the mote to PC UART communication is best effort, I would expect the number of packets transferred to the PC to be equal to the number of packets incoming from the radio at the receiver. But the number of packets received on the PC (using the Listen app) is less than the number of packets sent. What is the bottleneck in this case? I would really appreciate any ideas. Thanks, Bhavish ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help
Hi, I am a beginner with tossim and tinyos(1.x) and I have several questions: 1. how can I know if I had the complete version of tinyos or not. 2. I want to test surge exemple but when I activated Surgelistner java net.tinyos.surge.MainClass 125 I don't see the topology of my network (are there some commands messing ?). 3. How can I exploit the results of tossim 4. Are there something which help me in choosing tinyos components? 5. I will be very thankful if you reply me very soon. Thanks a lot funofnet _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] cricket
Hi everyone, I would like to know whether TOSSIM can be used in a cricket platform. For example would make cricket sim work? I would greatly appreciate your help. prashan ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] cricket
I am not sure about TinyOS-2.x but David Moore from MIT had added cricket support to Tossim in TinyOS-1.x. So after placing a few files in proper places it is possible to do make cricket_pc on TinyOS-1.x On Tue, Feb 26, 2008 at 3:24 PM, prashan wanigasekara [EMAIL PROTECTED] wrote: Hi everyone, I would like to know whether TOSSIM can be used in a cricket platform. For example would make cricket sim work? I would greatly appreciate your help. prashan ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] SERAILFORWARDER CLIENT
i exceuted the serialforwarder and i got display saying that listening for the client connections on the port 9001, i have written client application in java ,serialforwarder application is recognising my client also but that data is not being transferred this mail has an client attachment what could be the problem how can i transfer the data from the server to the client? import java.io.*; import java.net.*; class client{ public static void main(String args[]) { try { BufferedReader stdin = new BufferedReader( new InputStreamReader(System.in)); System.out.println(enter dest host:); String hostname = stdin.readLine(); Socket s = new Socket (hostname,9001); System.out.println(connected to:+s.getInetAddress()); System.out.println(local port:+s.getLocalPort()); System.out.println(remote port:+s.getPort()); BufferedReader in = new BufferedReader( new InputStreamReader(s.getInputStream())); System.out.println(); while(true){ String str = in.readLine(); System.out.println(str); } } catch (Exception ex) { System.out.println(error:+ex); } } } ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help