[Tinyos-help] UQ_COLLECTION_CLIENT

2007-01-19 Thread Mohamed Ahmed
Hi, Could someone tell me about the meaning of enum { CLIENT_COUNT = uniqueCount (UQ_COLLECTION_CLIENT) }; which is declared in ForwardingEngineP.nc ? #define UQ_COLLECTION_CLIENT CollectionSenderC.Send is declared in TreeCollection.h Thanks, Mohamed

[Tinyos-help] UQ_COLLECTION_CLIENT

2007-01-19 Thread Mohamed Ahmed
Hi, Could someone tell me about the meaning of enum { CLIENT_COUNT = uniqueCount (UQ_COLLECTION_CLIENT) }; which is declared in ForwardingEngineP.nc ? #define UQ_COLLECTION_CLIENT CollectionSenderC.Send is declared in TreeCollection.h Thanks, Mohamed

[Tinyos-help] message_t structure

2007-01-18 Thread Mohamed Ahmed
Hi, I'm using micaz motes. The message_ structure is: typedef nx_struct message_t { nx_uint8_t header[sizeof(message_header_t)]; nx_uint8_t data[TOSH_DATA_LENGTH]; nx_uint8_t footer[sizeof(message_footer_t)]; nx_uint8_t metadata[sizeof(message_metadata_t)]; } message_t;

[Tinyos-help] lesson 3 (tinyos 2.x)

2007-01-04 Thread Mohamed Ahmed
Hi, I thought message_t packet in Step 3 Declare any new variables ... needs to be BlinkToRadioMsg packet. Also, Packet.getPayload(pkt, NULL) in Step 4 should be Packet.getPayload(packet, NULL) Am I wrong? Thank you, Mohamed

[Tinyos-help] typos or defined elsewhere?

2007-01-04 Thread Mohamed Ahmed
Hi, Could someone tell me the following code is complete/correct? Where is pkt defined? Also btrpkt is not used after initializing its fields nodeid and counter. This code is in Lesson 3 of the tutorial (tinyos 2.x). Any hint? Thanks you, Mohamed 4. Add any program

[Tinyos-help] Problem with tossim/python: Segmentation fault (core dumped)

2006-12-31 Thread Mohamed Ahmed
Hi, When I run the command from TOSSIM import * I got the error Segmentation fault (core dumped). I also tried other options already tested by Preeti K. (according to one of his previous emails) and got the following outputs: from tinyos.TOSSIM import * Traceback (most

[Tinyos-help] tossim doesn't work

2006-12-27 Thread Mohamed Ahmed
Hi, Running g++ -c tossim_wrap.cxx does not generate any error. The file tossim_wrap.cxx is located in the directory /opt/tinyos-2.x/tos/lib/tossim. However, when I run make micaz sim, the errors given below and related to tossim_wrap.cxx are generated. Did anyone have

[Tinyos-help] tossim problem: -lpython2.4 not found

2006-12-27 Thread Mohamed Ahmed
Hi, Could anyone give me some hint on how to fix this problem? When I run OSTYPE-cygwin make micaz sim, I got the following error although there exists a link in the sim files that contains python2.4.dll: ... compiling Python support and C libraries into pytossim.o, tossim.o,

[Tinyos-help] problem with tossim

2006-12-27 Thread Mohamed Ahmed
Hi, The execution of OSTYPE=cygwin make micaz sim produced the following error: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xab): undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status make: *** [sim-exe] Error 1 Any hint on

[Tinyos-help] problem in cygwin

2006-12-26 Thread Mohamed Ahmed
hi, I had to re-install cygwin but after the installation, no command is working: vi, make, etc. Also, I downloded an rpm package from sourceforge.net/projects/cygwin-rpm. Then, when I execute the rpm command as indicated in Step 3 of tinyos-2.x installation, I got the following

[Tinyos-help] Problem with tossim

2006-12-25 Thread Mohamed Ahmed
Ahmed [EMAIL PROTECTED] wrote: Date: Mon, 25 Dec 2006 12:30:11 -0800 (PST) From: Mohamed Ahmed [EMAIL PROTECTED] Subject: Problem with tossim To: [EMAIL PROTECTED] undefined reference to `_PyInstance_NewRaw' undefined reference to `_PyDict_New' undefined reference to `_PyDict_SetItem

[Tinyos-help] Erros with tos-check-env and make platform docs

2006-12-20 Thread Mohamed Ahmed
Hi, When I run tos-check-env, I got the following problem: tos-check-env completed with errors: -- WARNING: No dot in current path. -- WARNING: tos-check-env could not find the 'dot' executable which is part of the ATT Graphviz package. Please install version 1.1.0 of Graphviz if you'd

[Tinyos-help] shell script for all export

2006-12-20 Thread Mohamed Ahmed
Hi, It seems that whenever I open cygwin, I have to run the four export command shown in Step 5: Install the TinyOS-2.x given in the website http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html Otherwise, for instance make micaz will not work. Could you please tell

[Tinyos-help] Installing tinyos-2.x - a few problems

2006-12-19 Thread Mohamed Ahmed
Hi, After I installed tinyos-2.x (http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html) and run all teh different steps without any erros, I had the following problems: 1. tos-check-env tos-check-env completed with errors: -- WARNING: No dot in current path. --

[Tinyos-help] Implementing a routing protocol for wireless sensor networks in TinyOS

2006-12-05 Thread Mohamed Ahmed
Hi, I want to implement a routing protocol for wireless sensor networks in TinyOS. As I have no experience, I'd like to ask you if you could give me some guidelines on how to start the implementation: - What directory shall I look into for existing protocols - How to update existing