All Questions
9 questions
0
votes
0
answers
60
views
Problem with server to capture and send video over TCP/IP from USB camera
server.py to capture video from USB camera "A4 Tech" connected to Raspberry Pi 4B:
import cv2
import socket
import struct
import pickle
import logging
logging.basicConfig(level=logging....
0
votes
1
answer
162
views
Raspberry pi only broadcasts on loopback
I have a class that needs to broadcast its existence over the local network
In the __init__(), I make the following calls:
self._interfaces = socket.getaddrinfo(host=socket.gethostbyname(socket....
1
vote
0
answers
528
views
Unable to connect to a server via socket from raspberry pi 4
server.py (on desktop)
import socket
listensocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
listensocket.bind(('', 8000))
# Starts server
listensocket.listen(999)
print("Server started ...
0
votes
0
answers
100
views
Writing in a file through socket
So, I have a Rpi, connected to a python code by socket. I wanted to know if it was possible to write on a file on the Rpi from my python code...?
For my python code, I use the usual serve code:
s = ...
0
votes
0
answers
23
views
multi-connection using socket.accept()
I'm trying to connect my PC to 2 RPIs via Ethernet cable. I did a Python code to do the connection with the socket package. For now, it works! Yeah!
But, I'm not sure I'm doing the connection in a ...
1
vote
1
answer
206
views
Socket apparently not working on Raspberrypi 4?
i am currently trying to make a personal assistant in python and for that i need two python programs to communicate...
here's my code which works fine on Windows 10 pro 1909 and python 3.8
import ...
0
votes
1
answer
442
views
Python "proxy" for local socket and websocket hogs cpu
My current project is a Raspberry pi 4 mounted on a din rail with two extra circuit boards.
It should collect data from various sources, eg. CAN, RS485, GPIO pins, counting S0 pulses from energy/water/...
0
votes
0
answers
303
views
how connect to IoT devices with python
I have 300 sensors in a wide site and every 200 ms I have to send a request to them to get data
and sensors reply at max 100 ms
sensors manufacturer programmed the sensors to answer requests on ...
1
vote
0
answers
133
views
How can I prevent losing data over wifi with python sockets?
I'm trying to send data from one raspberry pi (4) to another pi (0 w) (I'm including the devices because the w 0 isn't the highest powered device, it's a little slow when running the desktop, but I'm ...