[Tinyos-help] TinyOS with TOSSIM

2017-01-13 Thread arsaraiva
Hello dear I have TinyOS 2.1.2 installed on Ubuntu 16.04 correctly. Even when I run $ make telosb it does not return any errors. But when I try to use the TOSSIM simulator, through $ make telosb, there are several errors, as follows below the terminal: $ make telosb sim mkdir -p simbuild/tel

Re: [Tinyos-help] TinyOS with TOSSIM

2017-01-16 Thread arsaraiva
Hi James, This error occurs with micaz too. @note:~/tinyos-main/apps/Blink$ make micaz sim mkdir -p simbuild/micaz make: python2.72-config: Comando não encontrado make: python2.72-config: Comando não encontrado make: python2.72-config: Comando não encontrado placing object files in simbuild/mic

Re: [Tinyos-help] TinyOS with TOSSIM

2017-01-17 Thread arsaraiva
Hello Eric, I'm using TinyOS 2.1.2, openjdk version 1.8.0_111 and Python 2.7.12 on Ubuntu 16.04 x64. If you know a more stable previous version, please tell me, because I am new to TinyOS and I do not know your options well. I believe the problem may be in the Python variable that is not being

Re: [Tinyos-help] TinyOS with TOSSIM

2017-01-17 Thread arsaraiva
Thanks to Matthew Bradbury that with just one line altered in the file sim.extra, solved my problem and some more people. Thank you Matthew. So that you still have the same problem, just change the line: PYTHON_VERSION ?= $(shell python --version 2>&1 | sed 's/Python 2\.\([0-9]\)\.[0-9]+\{0,1\}/

[Tinyos-help] Package submission failed

2017-03-15 Thread arsaraiva
Hello friends, I have a problem with the nesC file. I create 8 sensors that start in slot 0 and their time window slides to slot 183 (using Block Design [183,14,1]. Of these 183 slots, 14 are active and should send a packet (denominated in code as padrao [X]). My problem is that it activates the r

[Tinyos-help] Sleep function no mote

2017-03-17 Thread arsaraiva
Hello friends, I'm having a hard time making a sensor wait a while before running a function. event void TimerSlot.fired() { slot=slot%numslots; * if (padrao[slot]) *{ call AMControl.start(); //Call to start the radio dbg("teste","SLOT_ATIVO: No %hu no slot [%hu] com tempo=%l

[Tinyos-help] Time slot time

2017-03-20 Thread arsaraiva
Hello friends, I would like a help on TinyOS / TOSSIM how to setup the time slot in a simulation. I set up my time window with 183 slots, with only 14 active. I have a call to function call type TimerSlot.startPeriodic (2); Which checks which slot is in the loop and turns it on or off. My question

Re: [Tinyos-help] Time slot time

2017-03-21 Thread arsaraiva
Hi James, how are you? Repair the code below: include "Timer.h" module testeC @safe() { uses { interface Boot; interface Receive; interface AMSend; interface Timer as TimerSlot; interface LocalTime as Clock; interface SplitControl as AMControl; interface Packet;

[Tinyos-help] Send a data packet on TOSSIM

2017-03-28 Thread arsaraiva
Hello friends, I'm having trouble sending a data packet in the same time slot as a beacon on TOSSIM. I have a small implementation that activates 8 nodes with 183 time slots. Being that of these 183, 14 slots are active and at the moment they send a beacon of synchronization to the others. Until t

Re: [Tinyos-help] Send a data packet on TOSSIM

2017-03-31 Thread arsaraiva
Hello friends, I was able to have my TOSSIM implementation send the package in a certain time and receive this package (data) correctly. Apparently, it compiles TOSSIM correctly, but I still get the warning: Someone could tell me the reason, or how to adjust these "errors." The warning is: nesc1:

[Tinyos-help] TOSSIM - Topology

2017-04-08 Thread arsaraiva
Hello friends, After staying until dawn yesterday trying to understand the differences, I decided to ask for help. I have 4 files: gera-topologia.txt, linkagain1.txt and linkagain2.txt. The file-topology file was taken from the TOSSIM tutorial itself and is exactly the same as that used by a teach

[Tinyos-help] ACK with packet retransmission

2017-04-21 Thread arsaraiva
Hello friends, Again I came across a doubt. I inserted in my implementation the use of ACK. In the function AMSend.sendDone (message_t * bufPtr, error_t error) {  if (call PacketAcknowledgements.wasAcked (bufPtr)) {  dbg ("test", "SEND_ACK \ n"); } } And it's apparently working c

[Tinyos-help] Variable with static TOS_NODE_ID

2017-05-06 Thread arsaraiva
Hello friends, I need some help. I need to store in a variable (nodeid) the source node of a package, so that this variable does not receive new value with each hop. In summary, if a tree of height 3, where node 0 is the root, node 2 child of the root and parent of node 7, need that when a packet

Re: [Tinyos-help] Variable with static TOS_NODE_ID

2017-05-09 Thread arsaraiva
Actually nodeid is declared in the booted function, as nodeid = TOS_NODE_ID. What I have to do is that when the startDone function is run, it loads the varialvel nodeid with the value of the node and does not change. What is happening now is that starDone executes on node 24 (for example) and the

[Tinyos-help] Segmentation fault and Memory Error

2017-05-20 Thread arsaraiva
262/5000 Hello friends, The old problems were solved, thanks to everyone's goodwill, especially James Allan who helped me a lot. Now I have encountered a problem that I believe may be a TOSSIM bug. Notice that I run a simple script with the following two lines: make micaz sim python ${1}.py outpu

[Tinyos-help] Small TTL?

2017-05-25 Thread arsaraiva
Hello friends, I am having a question, my implementation is creating 32 nodes, and each respects a time cycle of x slots, being only 1.03% of these assets (duty cycle). I am using a t.runNextEvent () = 2200 or 8 and TimerSlot.startPeriodic (11). When I run the simulation in TOSSIM with

[Tinyos-help] Small TTL?

2017-05-25 Thread arsaraiva
Hello friends, I am having a question, my implementation is creating 32 nodes, and each respects a time cycle of x slots, being only 1.03% of these assets (duty cycle). I am using a t.runNextEvent () = 2200 or 8 and TimerSlot.startPeriodic (11). When I run the simulation in TOSSIM with

[Tinyos-help] TTL

2018-03-17 Thread arsaraiva
Hello friends, after some time I returned to use the Tossim and already I came across a difficulty. Is it possible to define the life of a package (TTL)? What should I insert into my code to set the size of the package? I believe I have the following problem: my topology has 36 nodes in GRID, being