[sim-wg] RE: Incorporation of Mica2 simulation

Venkatesh S. svenkat at cedt.iisc.ernet.in
Sat Jun 9 09:16:44 PDT 2007


Hi phil, 
   The first update was to just compile for mica2 simulation without inclusion of the CC1000 radio simulation.
I have updated the CVS for CC1000 Radio simulation.

CORE logic:
   1) ADC0 sampling:  The MAC layer samples the ADC0 port for receiveing RSSI and decides whether the medium is busy or free.  To do this, the HplAtm128AdcP was modified to incorporate the same.  Here, the input to the simulator will be the rssi-log for Mica2 platform.  The log is found in apps/tests/TestAM/rssi-log-mica2.txt.  Once this is fed, at the ADC0, we get a simulated RSSI value based on CPM, which is converted back to digital value and signal the same to the MAC layer.
   2) Once the MAC layer decides that the medium is free, it begins its transmmission. Byte by Byte transmission is done in HplCC100SpiP which is simulated as events.  For every byte transmission, based on the neighbor Radio state, a spiReadByte event in allocated.

Problems Facing:
   1)  If the event time is just sim_time(), the service of the write events takes first without subsequent events of the read events for the other nodes. So, I changed to the event time to trigger at sim_time()+10002.  Is that correct?
   2)  I am using the standard application for testing(TestAM).  For Broadcast, since there is no ack, nodes transmit.  Reception is also working fine.  If the application is simulated for 10 seconds it has to have 10 packets Tx and Rx, but it is only doing 2 packets Rx and Tx.  I couldn't figure out where the actual bug is. I badly need help in this.
   3)  If a packet is unicasted, then the radio freezes at the ACK reception state.  The other node which receives the packet, will not send the ACK.  Should look at this in the coming week.




--
Regards, 
Venkatesh S



-----Original Message-----
From: Philip Levis [mailto:pal at cs.stanford.edu]
Sent: Fri 6/8/2007 9:14 PM
To: Venkatesh S.
Cc: simwg; Chad Metcalf
Subject: Re: Incorporation of Mica2 simulation
 
On Jun 8, 2007, at 7:41 AM, Venkatesh S. wrote:

> Hi all,
>
>    I have updated the tinyos-2.x-contrib/cedt.  This update is for  
> the support of mica2 simulation.
> My next step is to update with Power calculations for Mica2.
> Kindly checkout the CVS and test the same.
>
> -


Venkatesh,

Can you give a brief description of how the CC1000 simulation works?  
I searched through the directories but couldn't find what looked to  
be the simulation engine that would handle SPI, etc.

Phil


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/sim-wg/attachments/20070609/60aa0e37/attachment.htm


More information about the Sim-wg mailing list