LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-29-2005, 09:20 AM   #1
Feyd-Rautha
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
USB connection feedback on my GUI


Hello!

The application I'm working on supports the use of a UMTS phone connected via USB. Everything OK with that, the only thing I need is a fast feedback on my GUI (it's made of web pages) when the user connects the USB cable.
The only solution that came to my noobish mind is to use javascript/php and go check /proc/bus/usb/devices every 0.5 seconds but it doesn't sound very smart

Please can anyone give me some hints??
 
Old 12-29-2005, 06:52 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
It depends on the scope of the app, where will it be running? Is it going to be accessible remotely or only on the computer with the phone connected? If it's the later then go Javascript or if you feel like forcing a Gecko-engine browser on your user then XUL.
 
Old 12-30-2005, 03:12 AM   #3
Feyd-Rautha
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for your help!

The interface will be available remotely for all the machines in the LAN where the computer is going to be installed...
 
Old 12-30-2005, 10:10 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Well in that case PHP should be fine, you can use the output buffering (ob_*) functions to do some pretty neat stuff that would look like the page was updating live. Example, put the PHP script into a while (1) loop and then just draw <div> elements over each other with updated status text.

PHP is a pretty cool language, look into chat scripts written in PHP for example on how to make a page appear to be updated on-the-fly
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI through serial connection? BoarderX Linux - Software 4 09-15-2005 11:41 AM
force feedback wheel usb Mr Marmmalade Linux - Hardware 2 10-03-2004 01:34 PM
USB wlan feedback Ikebo Linux - Wireless Networking 2 06-22-2004 09:32 AM
GUI remote connection to Linux server mandzo Linux - General 2 11-13-2003 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration