Home Contact us Terms & conditions Shopping cart Surplus sales


Linux SoM



This article is obsolete or related to an obsolete product.
Please contact us at info@acmesystems.it for any further information.

Remote I/O control with HTML and CGI

written by Sergio Tanzilli

This article illustrates how to write a cgi in C to generate a web page to control remotely each I/O line available on J6 and J7 extension sockets


The iocontrol web page

How to install the iocontrol cgi

The web page shown different I/O sections:

  • Lines A0-A7 (configurable as input or output)
  • Lines B0-B7 (configurable as input or output)
  • Lines IOG8-IOG15 (configurable as a block of all input or all output)
  • Lines IOG16-IOG23 (configurable as a block of all input or all output)
  • Lines IOG0 and IOG24 (configurable as input or output)
  • Lines IG1-IG7 and IG25-IG31 (fixed as input)
  • Lines OG1-OG7 and OG25-OG31 (fixed as output)

For each block there is the line name, the physical pin on J6 or J7 and some buttons to set (3.3 volt) or clear (0 volt) the line and configure it as input or output when applicable.

On every refresh of this page the state (HI or LO) of each input line is updated.




Acme Systems srl
Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy
P.IVA/C.F. 08114831004
Tel +39.06.99.12.187 - Fax +39.06.622.765.31
http://www.acmesystems.it -
Iscritta al Registro delle Imprese di Roma al n. 08114831004


Atmel© Certified Partner

Documentation Terms of Use
Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. The mantainer of this site (Sergio Tanzilli), has gone to a great deal of effort into making this documentation as correct as possible. Acme Systems doesn't provide any direct support for the Open Source preinstalled software but provides, through these pages and forum posts, all the information required to obtain the sources, install, use and update the Open Source softwares runnable on the FOX Board, NetusG20, AriaG25 and Terra platforms. Please note that all the preinstalled softwares, used on the Acme Systems products, are Open Source and you will have to check the license terms provided (usually the GPL) by each author before using it in any commercial or non-commercial product, by yourself. Before sending emails or calling the Acme staff here are our contacts please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS so could be better to post your questions directly to the forum listed below to be sure that all the contributors of this site and the large software developers community will read and reply to your questions.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Creative Commons License