Hello Atif,

For PC-mote communication you better look at /test/TestSerial project. In
java file you would find a function Sendpacket() this function sends
packets to the mote and when mote receives this packet it blinks mote Leds
according to the counter ID in the packet.

in testSerialC.nc you would see Receive.receive() function which receives
packet from java application on its serial interfaces, so in this receive
function you can create a new packet that contains mote state and send it
back to the java application using serial interface.

On Thu, Apr 16, 2015 at 2:53 PM, Atif Naseer <[email protected]> wrote:

> Dear All
>
> I m new to TinyOS environment. I successfully run Oscilloscope app of
> TinyOS and able to receive data from basestation by using Listen tool and
> Oscilloscope Java application.
> Now I want to send some data from Java Application to sensor node and
> recieve the data when i request.
> e.g If i sent node ID to Base-station than the node with this ID in the
> network send me its current state (Idle or active etc.)
> Need some help in this regard.
>
> Regards
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to