Go to advanced search

by thorntonatron
Mon Jun 23, 2014 5:21 pm
Forum: Networking and servers
Topic: TCP to Raspberry Pi
Replies: 7
Views: 4046

Re: TCP to Raspberry Pi

Thank you for the help, I managed to get another simple program working using the 0.0.0.0 on the Pi then using netstat to determine that the port was open. thank you again
by thorntonatron
Mon Jun 23, 2014 4:26 pm
Forum: Networking and servers
Topic: TCP to Raspberry Pi
Replies: 7
Views: 4046

Re: TCP to Raspberry Pi

I have tried using 0.0.0.0 as the server address on the Pi, then the actual IP on the laptop (acting as the client) though I get a refused connection. I can ping both ways so the connection is there I am just really not sure what is refusing the connection. It is the err10061 error, though any readi...
by thorntonatron
Mon Jun 23, 2014 2:20 pm
Forum: Networking and servers
Topic: TCP to Raspberry Pi
Replies: 7
Views: 4046

Re: TCP to Raspberry Pi

OK so if my Raspberry Pi is the server should I just remove the server_address code completely? I am getting a bit mixed up. As I understand it, a socket needs to be created on each side with the port specified as a reference for what application is being used (e.g port 80 for HTTP) so on my laptop ...
by thorntonatron
Sun Jun 22, 2014 10:55 am
Forum: Networking and servers
Topic: TCP to Raspberry Pi
Replies: 7
Views: 4046

TCP to Raspberry Pi

I am trying to set up a simple TCP server, with the end goal of streaming data from the GPIO to a laptop. While testing this, I set up a server/client using my pi and laptop Server Side: import socket import sys #Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #bind t...
by thorntonatron
Sat Jun 21, 2014 9:52 pm
Forum: Networking and servers
Topic: Check TCP Buffer Size of Raspberry Pi
Replies: 2
Views: 1551

Re: Check TCP Buffer Size of Raspberry Pi

That did the job thank you so much!
by thorntonatron
Sat Jun 21, 2014 9:57 am
Forum: Networking and servers
Topic: Check TCP Buffer Size of Raspberry Pi
Replies: 2
Views: 1551

Check TCP Buffer Size of Raspberry Pi

Hi all, I was wondering how to check the default tcp buffer size for the Pi, from what I have read online using the command /proc/sys//net/ipv4/tcp_rmem will show the minimum default and maximum read buffer size and /proc/sys//net/ipv4/tcp_wmem will show the same for write. When entering this in LXT...
by thorntonatron
Fri Jun 20, 2014 1:03 am
Forum: Networking and servers
Topic: Streaming Data from GPIO to Windows
Replies: 3
Views: 2490

Re: Streaming Data from GPIO to Windows

Hi thanks for the reply, from your answer perhaps i have been approaching this problem wrong. At the minute, the data from ADC is stored in a text file so what you are saying is feed this in to a buffer that will then send this data on to the PC. When the PC receives this data, all it needs to do is...
by thorntonatron
Thu Jun 19, 2014 11:26 pm
Forum: Networking and servers
Topic: Streaming Data from GPIO to Windows
Replies: 3
Views: 2490

Streaming Data from GPIO to Windows

Hi, I have an ADC reading in data, I would like to stream this data directly on to a PC connected via Ethernet. I have established a SSH connection. I have went down the route of using WinSCP and this works fine to copy the text file containing the data directly, however I would like to have a pytho...
by thorntonatron
Fri May 30, 2014 1:38 pm
Forum: Networking and servers
Topic: Send Information From SPI through Ethernet
Replies: 4
Views: 999

Re: Send Information From SPI through Ethernet

Well I have SSH up and running now so I think what I could do is have my python script run at start-up on the Pi, as it reads in data from the SPI I could devise a program that listens to what is incoming on port 22 and outputs on to the PC screen. I am fairly new to Linux systems so don't know how ...
by thorntonatron
Thu May 29, 2014 4:09 pm
Forum: Networking and servers
Topic: Send Information From SPI through Ethernet
Replies: 4
Views: 999

Re: Send Information From SPI through Ethernet

I was planning on just developing a relatively simple application using C++. This question was more garnered towards seeing if this was possible. I have initially looked into sockets and how they work as a means of transferring data across.
by thorntonatron
Thu May 29, 2014 12:14 am
Forum: Networking and servers
Topic: Send Information From SPI through Ethernet
Replies: 4
Views: 999

Send Information From SPI through Ethernet

Hi, I was wondering if it is possible to transfer data received by the SPI through the ethernet on to a PC. I have the SPI working and receiving data Ok and the ethernet is connected by a bridged network to a Windows PC. However, I was looking for information on where to start to transfer the data r...

Go to advanced search