From: <fra...@un...> - 2010-07-03 08:29:10
|
Hi, virtual_transmissions is a wrong place to check. The main data structure is transmissions. The model used by WirelessNetwork is: p / ( d^a ) >= th where: p is the transmission power (the power used by the sender) d is the distance between the sender and the nodes a is the attenuation factor (how much the power degrades w.r.t. the distance) th is the receiver thrashold If the formula holds, the receiver is able to get a packet from the sender. The current sender transmission power is stored into transmissions, and it is a duplicated value: the original is stored into the wireless node. In no place is stored the power sensed by the receiver (and if I have understand, this is what you want). Of course, you can add a field into transmissions, to store the sensed power. MacNode_802_15_4_tlm_fifo_t does no have any way to get the power with whom the packet was received. The simplest way to get the information is: 1) add into Packet_t a field to store the receiving power. 2) before each calling the sendToNode inside the network, update the field: remember! each time since each destination will sense a different value 3) into the node proxy, read such a new information 4) using the node proxy, forward this information to the node Since the 802.15.4 model is a children to Wireless node, you can just change the wireless node to allow your "user application" to get the sensed power (avoid to change the 802.15.4: it is not very simple). And you can also add a method getSensedPower to the simple transmission interface. I hope this will be useful. Best regards, Francesco Stefanni ----- Original Message ----- From: Ramón Ayuso Ramírez <ram...@gm...> Date: Friday, July 2, 2010 20:34 Subject: [Scnsl-users] received power To: scn...@li... > Hi everyone, > I'm a new member of this mailing-list. I am simulating a > wireless > network and I need to know the received power from other nodes. > This > received power is calculated by WirelessNetwork_t.i.hh and > stored in > _virtual_transmissions. > > But I don't get to know the received power using the > MacNode_802_15_4_tlm_fifo_t class. I think I must change this > class, but > I don't get it. > > Thank you very much. > Regards, > Ramon > > ----------------------------------------------------------------- > ------------- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Scnsl-users mailing list > Scn...@li... > https://lists.sourceforge.net/lists/listinfo/scnsl-users |