0

I am working on project which involves sending datastream from raspberry pi to Windows PC. This should only be done through Ethernet link. I looked for ethernet libraries but i did not find any. Also I don't know which type of cable straight or Cross is to be used but i have a straight one.

Update from a comment:
Which protocol to use? Which type of (Straight/Cross) Ethernet cable? Do you use any specific tool on windows PC to see incoming datastream or is it command prompt of windows?

  • you need to read this link before using library. – Ephemeral Jun 17 at 10:13
  • see also L2TP and IPSEC (very good network and security knowledge needed.). – Ephemeral Jun 17 at 10:26
  • 1
    For what do you need a library? I just use IP over ethernet connections with given protocols also known by MS Windows. – Ingo Jun 17 at 10:55
  • @Ingo can elaborate more on how you establish connection? which protocol you use? which type of (Straight/Cross) Ethernet cable? Do you use any specific tool on windows PC to see incoming datastream or is it command prompt of windows? – andrexstack Jun 17 at 12:20
  • @Ephemeral thanks for the links i am reading them currently. – andrexstack Jun 17 at 12:22
2

First there is no need to worry about the used ethernet cable. It doesn't matter if you use a straight forward or a cross over cable. Nearly all devices since years are able to detect this including Raspberry Pi.

Because it is unclear what you want to do, I can only give some general ideas. What does it mean "sending a datastream"? Do you want to send data into a file? Then you can open a network share on the MS Windows computer and put the data into a file on the network share. Or you can do it the other way around: open a network share on the RasPi and access the file from the MS Windows computer. To use MS network shares you have to install samba on the RasPi.

You can stream data using linux networking tools for example ssh together with dd. For continuous streaming netcat is a good choice.

If you have specific requirements you can program it with python using network sockets. You should find examples on the web how to do it.

How to handle all of this on the MS Windows side is out of scope here. It's not an issue to Raspberry Pi.

  • @lngo I have tried simple python scripts (RPi to linux) which did not work thus ms windows looks like a mountain to climb.I want to send continuous stream of sensor readings over ethernet from RPi to ms windows, which should be visible at windows in run time. I searched for such a tool/software for windows but looks like command like is the only option.Currently looking into SSH dd and netcat. – andrexstack Jun 18 at 11:44
0

I actually did a project very similar to what you are trying to do. I did a bear nanny cam that took a jpg every 5 seconds and A/V every so often. I did a bash alias, for the action with i scheduled with cron.

Listen = alias listen='sox -t alsa plughw:1 $DATE.wav'

You would need to send it to a file on your PC that was shared. WinSCP is money.

Good luck!!!

  • That doesn't address the question. – RalfFriedl Jun 29 at 9:28
  • That's a direct hit on the question. He would need to write the command hr wants. Give it an alias. Add the alias to bashrc. schedule it with cron. My name should be on the project lol, jk – Reckless Liberty Jun 29 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.