Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Advice needed for developing an application

Status
Not open for further replies.

arbj2

Full Member level 3
Joined
Apr 10, 2012
Messages
166
Helped
10
Reputation
20
Reaction score
10
Trophy points
1,298
Activity points
2,697
Hi,

I need a general advice on developing an application for a Ubuntu Touch panel computer. Intel Atom based.

I am programming using C++.

The application I am making will communicate with external hardware via serial port.

The basic task of the application is to monitor a device connected to the serial port and set various parameters depending on the data received. The application will be run on startup and will be the only application running on the computer. The application operation will be monitored by other applications that will ensure it is running without problems.= (such as crashes etc.).

Users will interact with the system using a form. Users can configure, control the hardware connected. The application will also have a database (sqlite based) that keeps data for various parameters.

I have thought of two different approaches to the application, the first is the usual style of having an application that controls the hardware and also manages the user interface via text boxes, buttons tables etc via form(s).

The second approach is to have a back end application (C++ based) that interacts with the hardware via the serial port. This application runs in the background and is not visible to the user. It will handle all serial port related tasks.

The front end will be a PHP based webpage (or web app), the page will be run from a Apache server installed on the computer (local installation). The web app will also handle the database (sqlite based).

So basically I have PHP based front end, a back end that consists of a C++ application and the web-server. Please remember both back-end and web-server are running on the same PC, internet will not be available.

The second approach looks favourable because it is quite easy to generate tables / page styling etc. with HTML, PHP and ajax. User is also more familiar with this as it is web based. Development and coding could also be easier.

The first approach has the advantage that only a single application needs to be maintained, so I just have monitor a single application, this will also reduce complexity of code.

Please remember the application would be running almost continuously and as hangups/application crashes are un-acceptable I will also be providing a backup, recovery and monitoring application that will check the general health of the applications and re-start any application that fails.

Please give some ideas which is suitable .

thanks
a
 

both approaches are possible
1. build a single application in C++ which talks to the device via a serial port and has a GUI front end built using wxWidgets, GTK+, etc
2. run a C++ based web server with talks to the device via the serial port. A PHP web front end contacts the server to display data received and control the device. This should be possible even if the computer is not connected to the internet so long as a TCP/IP stack can run.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top