Lets say my packet is defined as follows
typedef struct myMsg {
On 6/5/07, Faisal Karim <[EMAIL PROTECTED]> wrote:
Hi Sarfaraz
Thanks again. But how to set the sender ID for comm.sendRadioMessage() coz
three arguments accepted by this method dont specify who is sender.
Looking forward for your early reply
Regards
Faisal Karim
----- Original Message ----
From: Sarfraz Nawaz <[EMAIL PROTECTED]>
To: Faisal Karim <[EMAIL PROTECTED]>
Cc: tinyos help <[email protected]>
Sent: Tuesday, June 5, 2007 2:51:49 AM
Subject: Re: [Tinyos-help] sending packets via Tython
Its the simulation environment that is sending the packets not the base
station node. Though you can set the sender ID to be 0 and have the
receiving node believe that the packet came from node 0.
On 6/4/07, Faisal Karim <[EMAIL PROTECTED]> wrote:
>
> Hi Sarfaraz
>
> Thanks for reply. Thats true but "who" is using these methods (
> comm.sendRadioMessage() and comm.sendUARTMessage() ) to send messages to
> any node. I assume its base station ie node 0.
>
> Im looking forward to send messages from specific node. Lets say node 2
> send message to node 10. How we can do by using Tython.
>
> Thanks in advance.
> Looking Forward
>
> Regards
> Faisal Karim
>
>
>
> ----- Original Message ----
> From: Sarfraz Nawaz < [EMAIL PROTECTED]>
> To: Faisal Karim <[EMAIL PROTECTED]>
> Cc: tinyos help <[email protected]>
> Sent: Sunday, June 3, 2007 6:12:12 AM
> Subject: Re: [Tinyos-help] sending packets via Tython
>
> comm.sendRadioMessage() and comm.sendUARTMessage() are used to send a
> packet to "any" node in the network on the uart and radio respectively.
>
> On 6/1/07, Faisal Karim < [EMAIL PROTECTED] > wrote:
> >
> > Hi All
> >
> > Im looking forward to send packets from specific node in simulation
> > via Tython. In Tython manual it is described to send using moteIF(), but
> > what i understand this is to send some msg from base station ie some serial
> > port. To send to base station there is a method comm.sendUARTMessage(),
> > also there is comm.sendRadioMessage() which im assuming to send msg
> > from base station to specific node via radio as this method do not describe
> > which node is sending the message.
> >
> > any comments and help will be highly appreciated
> >
> > Regards
> > Faisal Karim
> >
> >
> > ------------------------------
> > Get the Yahoo! toolbar and be alerted to new email
> >
<http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/features/mail/index.php>wherever
> > you're surfing.
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
>
>
>
> ------------------------------
> Get the free Yahoo! toolbar
>
<http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php>and
> rest assured with the added security of spyware protection.
>
------------------------------
Ready for the edge of your seat? Check out tonight's top
picks<http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/>on Yahoo! TV.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help