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.

learn more… | top users | synonyms

1
vote
1answer
108 views

Unix Domain Sockets: errno 111 Connection refused

RPi3, Raspian Jessie, Python 2.7. Hello all, I am struggling trying to do an IPC using Unix Domain Sockets. I had it working some months ago, but alas, I can't seem to put my hands on those images ...
1
vote
2answers
110 views

Permission denied opening UDP socket with static IP

I have made a Linux program that sends UDP packets to a lighting controller. This works under both Ubuntu and Mac OS X. I configured an ethernet port to have a static IP address (with the correct ...
0
votes
1answer
132 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 ...
2
votes
1answer
607 views

Freeing up cache when memory is low

I have my raspberry pi A+ in my embeeded project and every byte of memory is important when I've only got 128 MB to my CPU (I need 128 MB for the GPU because I use the camera module). Unfortunently ...
0
votes
1answer
171 views

Sending IP by email on sturtup [closed]

I'm trying to make my RP accessible over shh on WIFI, but I don't have control over my router (I live in student dorms) and I cannot config a static IP, so I wrote a python script that will get the ...
0
votes
1answer
452 views

How can transfer files between RPI and Windows PC via Bluetooth_OBEX?

I try to build computer program that trasfer files use Bluetooth and OBEX technology between Windows and RPI. I use BLuetooth RFCOMM Server @ Windows Side. RPI is @ client side. I use pybluez and ...
0
votes
1answer
293 views

using try-catch to catch gpio interrupts

Is it possible to interrupt a try-except code in python with gpio interrupt to generate exception? In the "try" part i'm openning a socket and use socket.serve_forever(). I want to make a hard-reboot ...
1
vote
0answers
303 views

Asynchronous Socket Server and UART integration problem [closed]

I'm developing a raspberry pi socket server that when receiving the data it sends it to UART and when receiving a data from UART it sends to the server via sockets using python . It's like Raspy ...
0
votes
1answer
4k views

how to receive incoming data from tcp socket

I need to catch incoming data from tcp socket at any time and then execute a python script on my Raspberry Pi. How do I do that? I hope that you understand what i need to do.
-1
votes
1answer
104 views

AF_BUS on Raspbian

Dear RPI SO Community :), I want to try the AF_BUS Patch but I don't get what I need exactly for it. AF_BUS optimizes the performance of D-Bus in latency and throughput and I am working on a ...
1
vote
2answers
4k views

running npm install throws permission error

Following these directions to install nodeJs and socketIO on a Raspberry Pi http://www.bartbania.com/index.php/build-your-own-google-tv-using-raspberrypi/ When I try running npm install get the ...
1
vote
1answer
778 views

C++ / javascript Socket controlled car [closed]

I'm trying to use C++ sockets to control my rpi car/tank , but I'm a bit confused . My goal is to have an html interface with a onscreen joystick , and use javascript to send X and Y coordinates ...
3
votes
1answer
2k views

Communicating between two Raspberry Pi's

I'm working on a project that uses two Raspberry Pi's. The idea is that I have one running at home, which stores all the files that I need to execute. I will take the other Raspberry Pi along to ...