2

Hello im enquiring about using data from a raspb-pi via python to then access it in c# in visual studio for an impending app I will make, what is the best way to go about this.

To extend atm I am using my raspberry pi as a ad-hoc network with a static ip address and would like to connect the two with a program that will allow me to do it wireless.

Any help will be much appreciated :)

closed as unclear what you're asking by kolin, lenik, RPiAwesomeness, Bex, Ghanima Oct 8 '14 at 7:39

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Sorry, but what are you asking, exactly? – Bex Sep 1 '14 at 11:05
  • Basically the best way to communicate between a raspi pi and your laptop but it has been answered below thanks doe :) – user2520014 Sep 2 '14 at 18:21
3

Using sockets would be the standard network solution.

Use TCP/IP if you want guaranteed in-order delivery or UDP if that isn't a concern.

I've used TCP/IP to deliver over 100,000 12 byte messages per second from Pis.

  • oh thanks for advice, just wondering whether you have used upd in visual studios when your writing the function to receive the sockets sent from the raspberry pi, how you manage to include the ip address of your raspberry pi? – user2520014 Aug 26 '14 at 15:59
  • I haven't used Visual Studio for decades so can't help with that. Generally you'd use the host name rather than the IP address. i.e. get the address with the C function getaddrinfo and pass that to the socket call. getaddrinfo is POSIX so should be available under Windows. – joan Aug 26 '14 at 17:10
2

You can communicate between the Raspberry Pi and a C# or VB.NET using Serial. You will need a a breakout board for the FTDI FT232RL USB to serial IC. There are a bunch of tutorials online.

You can also use NRF24L01+ 2.4GHz Antenna Wireless Transceiver Module for wireless communications. Once again, lots of tutorials online.

  • sorry to extend to give you more info atm I am using my raspberry pi as a ad-hoc network with a static ip address and would like to connect the two with a program that will allow me to do it wireless. – user2520014 Aug 26 '14 at 14:07
  • I added some wireless solutions – PhillyNJ Aug 26 '14 at 14:22
  • @user2520014 - if you find that I have answered your question, please mark as answered - thanks – PhillyNJ Aug 26 '14 at 16:10

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