hammadyounas2008
Posts: 6
Joined: Thu Feb 08, 2018 7:29 am

Interface raspbeery pi With Visual studio 2010

Thu Feb 08, 2018 7:34 am

Hello... Hope you all are fine. I am doing face recognition based attendance system. I want to connect Pi with visual studio (Gui)
To gernate the report of student attendance.
i am very Thankfull

User avatar
topguy
Posts: 5668
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Interface raspbeery pi With Visual studio 2010

Thu Feb 08, 2018 11:41 am

Visual Studio is a programming IDE ( for Windows PC ) so you could use it to write a program for the Pi, but I dont really understand how you plan to use it to generate a report from a running program.

You have to explain more how this should work, where does Python come into consideration ? ( since this was posted in the Python subforum )

hammadyounas2008
Posts: 6
Joined: Thu Feb 08, 2018 7:29 am

Re: Interface raspbeery pi With Visual studio 2010

Thu Feb 08, 2018 1:05 pm

Sir basically i done face recognition on pi board.... i want to send ID Number Of that student to visual studio (GUI).
What can i do ?? Create a server Or Serial communication?

PingoBags
Posts: 47
Joined: Mon Nov 06, 2017 10:53 pm
Location: NS, Canada

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 11:36 am

I'm not super familiar with the pi and all the programming features of python but I have an idea you can try.
I communicate with my pi from my windows machine using visual studio to send and receive info.

An easy solution would be to save the unique user ID's to a single text file on the pi.
Download and reference the Renci.SshNet.dll in your GUI.
You'l be able to sign in to your pi via ssh and do whatever you want from the GUI.
Example, download the ID text file to your windows app then do the rest of the work.

What language are you using for your GUI?

hippy
Posts: 5757
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 12:50 pm

hammadyounas2008 wrote:
Thu Feb 08, 2018 1:05 pm
Sir basically i done face recognition on pi board.... i want to send ID Number Of that student to visual studio (GUI).
What can i do ?? Create a server Or Serial communication?
"Yes". You could do it via serial, have a server-client arrangement where either the Pi or the PC can be server, you could probably use something like MQTT or some other 'via the cloud' type interface, even if that 'cloud' were local, on the Pi or PC. You could do it via file sharing and reading what has been written, on the Pi or on the PC.

Do you have a preference ? Are you more comfortable with Pi or PC programming ? That may dictate which is best for you or easiest to implement.

User avatar
topguy
Posts: 5668
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 1:14 pm

hammadyounas2008 wrote:
Thu Feb 08, 2018 1:05 pm
i want to send ID Number Of that student to visual studio (GUI).
What can i do ?? Create a server Or Serial communication?
There are many ways for transferring information between two computers, and using the network is usually preferred it the computers are on the same network or can reach eachother via the internet.

Best solution depends on things like:
- Will there ever be more than one GUI-program connected to the Pi ?
- Will there be more than one Pi connecting to the GUI-program ?
- Is there a requirement how fast the ID-numbers needs to be sent ?
- What should happen to the numbers if there is no GUI running to receive them ? Throw them away or store them to send later ?

hammadyounas2008
Posts: 6
Joined: Thu Feb 08, 2018 7:29 am

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 3:47 pm

@pingo if you tell me how to implement that i will be very thankfull to you

hammadyounas2008
Posts: 6
Joined: Thu Feb 08, 2018 7:29 am

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 3:48 pm

i am using C# and SQL

hammadyounas2008
Posts: 6
Joined: Thu Feb 08, 2018 7:29 am

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 3:49 pm

@happy i am more comfortable with PC programing... still not have any prefrence

hammadyounas2008
Posts: 6
Joined: Thu Feb 08, 2018 7:29 am

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 3:51 pm

@topguy i dont know about it yet...

hippy
Posts: 5757
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Interface raspbeery pi With Visual studio 2010

Fri Feb 09, 2018 5:29 pm

hammadyounas2008 wrote:
Fri Feb 09, 2018 3:49 pm
@happy i am more comfortable with PC programing... still not have any prefrence
Given that, and also because the PC probably wants to be told there's new data, a new ID, rather than poll for it, the way I'd do it is ...

On the Pi : For every new ID read a 'web page' from 'http://<YourPc>/ID=<id>'. That's possibly as simple as adding and calling ...

Code: Select all

def NewIdDetected(id):
  IP = "192.168.0.123"
  return urllib.urlopen("http://"+IP+"/ID="+id).read()
 
On the PC : Create a lightweight web server which handles the URL which will be as above, parse out the ID, send back an "Okay" response.

That should get you going and you can even test it with any web server on your PC just to check that what's turning up as URL's matches what you are sending.

Return to “Python”