Sending a packet over the radio is acheived by using AMSend.send(AM_BROADCAST_ADDR, msg, len). In receive.receive I can check from which node did I get the message. But how do I send the message back to the same node from which I received message. I have the node ID, how can I get the network address of the one from which I received data and send back to it. Not just only acknowledging the packet. I need to send data once I receive it. Any help will be appreciated.
How do I have a two way communication in sensor node using tinyOS?
400 Views Asked by Suraj Acharya At
1
There are 1 best solutions below
Related Questions in TINYOS
- tinyos implementation of routing table for multiple nodes
- Unable to compile and return for a Python function, in a try-except structure
- Segmentation Fault error in nesC for Flooding packet acknowledgement using TinyOS
- How to run a command line in HTML using javascript?
- How the TinyOS communicates with the TelosB hardware?
- How to test Multitasking in TinyOS?
- How to connect LED's in nesC?
- How to transmit a message to particular nodes in tinyOS?
- How to fix an error : 'Could not load library 'toscomm': no toscomm in java.library.path'?
- using java to read data from serial port in Tiny OS
- Unable to compile TinyOs applications with avr-gcc 4.2.1 but able to compile with avr-gcc 3.3
- Why does this TinyOS C code file appear obfuscated?
- what is the meaning of base code in TinyOS
- C application programs for tinyos
- TinyOS UDP support?
Related Questions in NESC
- tinyos implementation of routing table for multiple nodes
- Segmentation Fault error in nesC for Flooding packet acknowledgement using TinyOS
- How to connect LED's in nesC?
- How to transmit a message to particular nodes in tinyOS?
- Buggy output while running TestNetworkC.nc in TelosB i.e TinyOS
- In nesC can command AMSend.send and event Receive.receive work at the same time?
- questions about PacketAcknowledgements in nesC,TinyOS
- field 'info' must be a network type
- What's the exact meaning of uint8_t in TinyOS?
- Sublime Text 3 cannot support nesC language Syntax Highlighting
- ACK with packet retransmission
- how to receive diffrent types of messages in NesC
- Transmition of an 1D array of more than 20 bytes to receiver node
- TinyOS event return type meaning
- I want my multihopOscilloscope to send data through radio and Serial port as well
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The signature of
AMSend.sendis:where
addris documented as address to which to send the packet.AM_BROADCAST_ADDRis a constant denoting broadcast address: packets sent to that address are received by all nodes in radio range. Once you received a packet and obtained sender's id (byAMPacket.source), provide is asaddrtoAMSend.send. It has the same typeam_addr_twhich is basically an integer (8- or 16-bit).Note that an id is typically assigned during compilation or programming a node (see this presentation, slide 61) and usually all nodes have by default the same id unless you assign one explicitly.