Discussion Locked

XML Interface to Device Driver

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am researching a concept by which to provide a light weight protocol between applications written in Java to a range of hardware devices. The conventional way to achieve this is via interfacing to device drivers directly from Java and/or C or C++.However, the goal is to move the interface to a level higher than Java, etc., say XML. Again, the key is "light weight." Is this asking too much?

3 replies

by gareth watson

I don't think it is asking too much but we must consider that XML is freeform and not static like a function call. Plus once the XML is parsed and validated this must be turned into a function call at some point. Either by an XML aware driver or some wrapper application.

On the plus side it would give the app developer the ability to batch up device related commands and send them over all at once. This may have the knock-on effect of better device utilisation.

If batching were allowed then the "XML preprocessor" will have to be that bit more complex to to decode and order the requests.

Its an old but true argument that as we up the level of abstraction the level of performance will decrease.

So depending on the device you are trying to interface with you may not see any perfomance degredation from the users perspective. Of course from a technical aspect. An instruction from an APP to write/read some data now has to go through another processing layer before reachingthe device; this will make a performance hit no matter how light-weight it is. It is up to you to define if this is acceptable.

I hope this helps, an interesting idea that I would be interested in talking more about.

by lempesce21

Gareth answered my question rapidly and far more clearly than I expected. He validated my approach and provided hints on how I can implement.

This discussion is closed to new replies.