So I want to establish a client-server connection between the computer and raspberry pi or controlling raspberry-pi from another computer. I'm using python on my external computer(Sender), so whenever I press any keystroke it must be received by RS-pi and it performs further operations depending on the collected input.

Computer 1 = Sender Computer 2 = RS-pi (reciever)

Both are using python

Please guide me. how I can achieve this?

  • $\begingroup$ Welcome to Robotics SEJ. Connecting two compute devices to exchange messages is very common. Can you edit your question to elaborate on your specific needs? What kind of data to transmit, what kind of rates, is it bi-directional, etc. $\endgroup$ – Ben Jan 25 at 16:45

Please elaborate on your question. What is the data you trying to sync? How frequently do you want to sync your data?

Depending on your need, you can use something as basic as rsync (with watch if you run at a predefined interval) or setup an ftp client.

  • $\begingroup$ Please check, description added $\endgroup$ – SEJ Jan 24 at 19:58
  • 2
    $\begingroup$ You could use socket programming to open a tcp server-client and write a simple keystroke capture program to send it over the socket. $\endgroup$ – Akhil Kurup Jan 25 at 4:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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