Hi!
On Sun, 17 Jan 2010, Riaz-ud-din Din wrote:
>
> Thank you for your great support.
> Let me explain my problem. I want to simulate my mathematical model and
> I want that every packet should be transmitted and received with 100%
> probability.
Why do you want to use TOSSIM for this? Isn't it easier to write a small
program (Python/Java/etc) that simulates this?
> So, I want to skip the packet loss feature of tossim. What kind of
> changes in CpmModelC.nc should I do so that tossim starts transmitting
> and receiving packets without dropping them.
There are some special cases though. What do you want to happen in the
following cases:
- when a mote is off
- when a packet arrives at a mote when the mote is in the middle of
sensing a packet
- when a packet arrives at a mote when the mote is in the middle of
receiving another packet.
> I am sure that you can solve my problem. Please help me in this regard.
> Please, if possible, let me know which particular part should be changed
> and what kind of change in the code should be done.
I think the function of interest for you is sim_gain_receive_handle. You
can see there a 'if (!mine->lost)' that you probably want to taken all the
time. The only other thing that you need is to make sure that the ack
always arrives which means the shouldAckReceive should always return true.
--
Razvan ME
>> Date: Sat, 16 Jan 2010 11:00:42 -0500
>> From: [email protected]
>> To: [email protected]
>> CC: [email protected]; [email protected]
>> Subject: Re: [Tinyos-help] Tinyos 2.1 TOSSIM components receiving noise
>> trace and gain values, and implementing them for packet loss or transmission
>> decisions
>>
>> Hi!
>>
>> I think the component you are looking for is CpmModelC.nc from
>> tos/lib/tossim.
>>
>> Note that in cc2420sim [1] I implemented a NoiselessModelC [2] which is
>> smaller and probably easier to follow. It's in tos/lib/tossim along with
>> CpmModelC.nc
>>
>> [1] http://hinrg.cs.jhu.edu/git/?p=jhu/tinyos-2.x.git;
>> [2] http://docs.tinyos.net/index.php/Noiseless_Model
>>
>> --
>> Razvan ME
>>
>> On Sat, 16 Jan 2010, Riaz-ud-din Din wrote:
>>
>>>
>>> Hello every one
>>> I am intrested to see the code or otherwise the detail of those
>>> components/areas of tinyos 2.1 TOSSIM which recieve noise trace ang gain
>>> values regarding each link fed through python interface, and then these
>>> coponents/areas, based on these fed informations, decide about packet
>>> transmissions or drop. Any body to help me in this regard please.
>>> regards,
>>> riaz
>>>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help