triplemdw
Posts: 12
Joined: Mon Jul 21, 2014 4:03 pm

Sending commands via QT GUI from a PC to RPi [ SOLVED ]

Thu Aug 07, 2014 1:03 pm

Hello everyone,

Is there a way to send console commands from a QT application to a RPi ? The Qt app being on a remote PC and the RPi connected to the PC via ethernet (and wifi).
I'm able to control the GPIOs thanks to Webiopi and QT sending RESTful HTTP commands (tutorial is here: http://nayarweb.com/blog/2014/control-r ... t-webiopi/ ) but what I'm trying to do is send console commands such as "sudo reboot" from my QT application to the RPi. Does anyone have a lead to this problem?

Thanks.
Last edited by triplemdw on Thu Aug 21, 2014 2:59 pm, edited 1 time in total.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Sending commands via QT GUI from a PC to RPi

Thu Aug 07, 2014 1:24 pm

• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

triplemdw
Posts: 12
Joined: Mon Jul 21, 2014 4:03 pm

Re: Sending commands via QT GUI from a PC to RPi

Thu Aug 07, 2014 2:05 pm

Thanks ghans, i'll go try it out! If there are any other ways, i'm still open to it !! :)

triplemdw
Posts: 12
Joined: Mon Jul 21, 2014 4:03 pm

Re: Sending commands via QT GUI from a PC to RPi

Wed Aug 20, 2014 7:53 am

I've finally found a way to send commands via QT with QNetwork, however you need to have a little QT program on the RPi which responds to the request from the PC. For a little tutorial (not mine) : http://www.bogotobogo.com/Qt/Qt5_QUdpSocket.php and http://devarielf.wordpress.com/2013/06/ ... discovery/ .

Return to “General discussion”