I'm looking for advice regarding sending and receiving data between raspberri pi 3 and other devices assuming everything has internet connection.

The data I'm looking to send doesn't have to be bigger than a single character, i've done it through serial communication but I would like to advance further to wirelessly sending the data.

Currently I just need an option to send from raspberri pi the characters '1' to '9' and receive those characters. What tools should I use to do that ? Is there a difference between a solution that assumes the devices are on the same wireless network ( when the not-raspberri device acts as wireless hotspot) and a solution that assumes both devices have internet but on different networks?

I checked around with google and I saw one of the solutions is using tcp packets but I wonder if that's really the best option for me considering I need to send and receive so little data.

In addition the ideal way for me to send and recive the data is with an android application if it makes any difference, but it's unclear for me what libraries and tools I should use for my purpose.

EDIT: I figured that using the wifi and sim would be totally different solutions so for simplicity you can just refer to the wifi subject.

  • internet data is formed into TCP packets already. .... it is how data is sent back and forth. .... the other form is UDP, but that is a form that has no guarantee that the data will be delivered or that it will be delivered in sequence ........ TCP has error checking and re-transmit mechanism if packets get corrupted or if they go missing
    – jsotola
    Commented Jul 17, 2018 at 19:41

1 Answer 1


If you want to go "simple" without having to do a lot of development, bash based, you could go as far as to use nc (aka netcat) which allows you to send stuff over the network between nodes without much hassle. You should also consider writing your own server/client in whatever language you feel most comfortable with. Going TCP is normally the easiest path. I don't have much experience sending receiving stuff over UDP so can't really tell if it's too different from sending/receiving over TCP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.