thorntonatron
Posts: 11
Joined: Thu May 29, 2014 12:06 am

Send Information From SPI through Ethernet

Thu May 29, 2014 12:14 am

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 received by the SPI to a client app on the PC.

Thanks for any help or direction

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Send Information From SPI through Ethernet

Thu May 29, 2014 7:22 am

My suggestion is that you need to focus on understanding the data transfer mechanism used by the client app on the PC.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

thorntonatron
Posts: 11
Joined: Thu May 29, 2014 12:06 am

Re: Send Information From SPI through Ethernet

Thu May 29, 2014 4:09 pm

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.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Send Information From SPI through Ethernet

Thu May 29, 2014 4:22 pm

I'm sure that's a possible solution. Or you might be able to remotely run a script via ssh and have the data transferred onto the PC that way. (ssh has more uses than simply performing a remote logon to a system.)
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

thorntonatron
Posts: 11
Joined: Thu May 29, 2014 12:06 am

Re: Send Information From SPI through Ethernet

Fri May 30, 2014 1:38 pm

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 to fully implement this but thanks for the point in the right direction.

Return to “Networking and servers”