Questions tagged [sockets]

A network socket is network interface- and endpoint of an inter-process communication flow across a computer network. As sockets are the basis of all networking, this is for questions about how to use this low-level interface when programming on the Pi, in any language.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
46 views

Using RPi as DAQ for PC

I am quite new to using RPi, but my experience has been great so far. I am hoping to achieve just one more thing. I have 4 ADCs hooked up to my RPi using I2C, and I am sampling at roughly 800 - 1000 ...
1
vote
0answers
461 views

Sockets stopped working

I have set up a home automation using a raspberry pi b+ V3 as the brains main part and raspberry pi zero's located around the house at different points. I have one pi zero beside my heating, this is ...
1
vote
0answers
658 views

Can't connect to my Raspberry Pi 3 with a socket

I want to use my Raspberry Pi 3 as a server so I want to connect it via a socket. At first time everything was fine but now I cant connect any more. I get this error: ConnectionRefusedError: [...
0
votes
0answers
36 views

Python socket.accept not getting connections?

I run the same Python program on Raspberry and Windows laptop to listen to a blood pressure device over peer2peer UTP cable (no router). import socket s = socket.socket(socket.AF_INET, socket....
0
votes
0answers
68 views

Sending data between PC and Raspberry Pi

I have been trying to send data from my Windows PC to my Raspberry Pi 3 for a python controlled speaker project. I am using TCP sockets which I don't know much about. Client code (PC): import ...
0
votes
0answers
32 views

Cannot turn web streaming into a function

I'm working on a project with my Raspberry Pi 0 and a camera. I'm writing my code in Python using the PiCamera module. This file handles setting up the camera and Starting Web streaming. I had no clue ...
0
votes
0answers
21 views

How to send data across usb0 to use in pygame?

So i have a pi3b+ and a zero hooked up to a tft ili9341 display. I can run pygame on boot and it works fine. I have also started using python sockets and successfully sent data (my wlan0 ip) from my ...
0
votes
0answers
34 views

How do I make my RPi talk to my PC over an Ethernet Cable?

My PC is running Windows 10. I'm working on establishing communications from my RPi to my PC via an ethernet cable. I've set up static IP addresses for both the PC and RPi on their respective ethernet ...
0
votes
0answers
258 views

2 way Socket communication over bluetooth using python

Is there any way to make communication with 2 RBI over bluetooth using python Socket? Do you have some tips how can i do it? Should i use multithreading? Right now i'm using this lib -> https://...
0
votes
0answers
125 views

Not receiving any data via Bluetooth connection

I'm trying to send data from a ps3 controller to my Raspberry Pi, but the code I'm using does not pick up any data sent from the controller. The controller is connected yet nothing happens when I ...
0
votes
1answer
182 views

Camera feed sent through TCP socket gets stuck sometimes

I am getting the camera feed from a camera on a Raspberry PI to the computer using a TCP socket to use it for openCV. It works well with minimal delay. However, sometimes the frame gets stuck(freeze) ...
0
votes
1answer
35 views

Socket Over Non-Internet Access Point

I want to use a Raspberry Pi as an access point that is not linked to the internet. If I connected one other device to that access point, how could I connect a socket between this access point and the ...
0
votes
0answers
140 views

Simple socket server taking up 75% cpu

I've made a socket server to listen for data to play a sound for a length of time. All is working fine, except I see that cpu runs constantly at 75%, and after some time I get an overheat warning. I'...
0
votes
1answer
694 views

ultrasonic sensor stops after giving some reading when running in thread on tornado websocket python

I am using Ultrasonic sensor to get reading and am using python program for getting reading. And am using Raspberry pi for this. when am running python program independently its giving me reading ...