Questions tagged [communicate]
129 questions
0
votes
1 answer
How do I get the Arduino Nano to communicate with a phone through Java?
My goal: Make my phone control an Arduino which controls servos which will do cool animations.
How do I get to my goal: I use Java to communicate to the Arduino Nano through the yellow pins (visible on the right picture) through serial (RxD/TxD)…

Harry Svensson
- 330
- 4
- 18
0
votes
3 answers
In C on Linux, how would I go about using 2 programs, the latter sending text data to the first displayed using stdout?
I am writing a simple instant messenger program in C on Linux.
Right now I have a program that binds a socket to a port on the local machine, and listens for text data being sent by another program that connected to my local machine IP and…

metl wolf
- 91
- 1
- 9
0
votes
2 answers
communicate with computer that isn't on the same network
I want to communicate between two computers that aren't on the same network, i tried to use sockets, but I only found tutorials and examples for communicating in the same network.
I tried to search on stackoverflow, but I had no clear idea of what…

11684
- 7,356
- 12
- 48
- 71
0
votes
1 answer
how can i connect to micro controller over a G3 usb modem, the reason is to connect over internet
My problem is to transfer a set of commands over internet to a microchip through long distance over gsm coverage. I will appreciate any help .
0
votes
1 answer
Apply WSO2 WSF/C++ into client based on Https Protocol
I establish a server using WCF based on Https protocol, now i want to create a client using WSO2 WSF/C++(and the client code is generated by Code Generator Tool), however, i can't communicate with server, because the client is based on Http, not…

RainZhu
- 1
0
votes
0 answers
Catching errors from subprocess.Popen when piping stdout to next Popen stdin
I'm trying to 'chain' multiple Popen subprocesses, and catch any errors thrown by each command.
I'm using Python 3.7.
This is an example of some of the code I'm trying to use:
import subprocess
from subprocess import Popen, PIPE,…

Graham Etherington
- 13
- 2
0
votes
0 answers
How to interact with Windows app(Host) using Linux Container?
As I mentioned in the title, I want to start cmd.exe using params (on the host) or a bat file (on the host) or any application, using the Linux container shell. Is this possible without a network connection?
I tried to mount C:\ in to Linux…

mbarut
- 1
- 2
0
votes
1 answer
Beckhoff PLC Routing on Linux
I am trying to communicate my Linux pc to Beckhoff CX9020 PLC. When I tried routing commands I am geting some errors. I think the errors are due to the wrong addresses I wrote. How can get this values ? On Windows or Linux is enough…

asd asd
- 3
- 1
0
votes
0 answers
Python subprocess communicate[0] does not print the output that terminal would
Here is my code:
class TestRegisters():
def application(self):
return(Popen(["i2c_control.exe"], shell=True, bufsize=0, stdout=PIPE, stdin=PIPE, stderr=PIPE, universal_newlines=True))
def run_read_command(self,…

Manvir
- 3
- 3
0
votes
1 answer
How can I communicate between classes in a Xamarin project?
How is it possible to communicate between two classes?
I have two classes, one is a stopwatch class and my second is my lifecircle events class "App"
class1:
public partial class Stopwatch : ContentPage
{
Stopwatch stopwatch;
…

Winchester260
- 13
- 4
0
votes
0 answers
Write and read from subprocess in Python
I need to send informations to a bot launched by a client. I've tried to do something like
bot_process = subprocess.Popen(argv, \
stdin=subprocess.PIPE, \
stdout=subprocess.PIPE)
while True:
bot_stdout =…

mapapin
- 1
0
votes
0 answers
Can I read the output of the function POpen(...).communicate into multiple lines?
I'm trying to use a subprocess for wrapping the viur-cli command line interface.
(https://pypi.org/project/viur-cli/)
Actually the communicate function works fine, but there is one problem with it. The result of the output text is not splitted into…

Cian
- 1
- 1
- 1
0
votes
1 answer
Python2 to Python3 convertion? TypeError: memoryview: a bytes-like object is required, not 'str'
I have found a code:
https://github.com/rtulke/rpen/blob/master/rpen.py
which works fine under Python2 but when run under Python3 there is an error which I can't fix. Can one of you help me here?
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import…

cray
- 145
- 6
0
votes
1 answer
How can i communicate beetween python scripts over the public internet?
I'm trying to create the usual basic chat app that everyone knows.
But there's a catch, even after reading similar questions here and watchin videos on youtube, i realized that the Socket module is made for this. Even after trying though, i cannot…

gioco a cose
- 51
- 8
0
votes
2 answers
send input through stdin in python subprocess.popen
I would like to start nodejs through subprocess module and send input to it but facing below error...
code:
import subprocess
def popen(self):
cmd = "node"
args = "--version"
spawn = subprocess.Popen(cmd,shell=True,…

ElysMech
- 15
- 3