Home Contacts Terms Send money Cookie policy


Personal blogs


Acme's Friends

We would like to inform our clients that our shipping office will be closed from Aug 8 to Aug 23
PLEASE NOTE: This article is obsolete or related to a discontinued product.

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 + - Fax +39.06.622.765.31
PEC: acmesystemssrl@pec.it
Iscritta al Registro delle Imprese di Roma al n. 08114831004

Atmel© Certified Partner

Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. We not provide any direct support for the Open Source preinstalled software but, through these pages and forum posts, all of the information required to obtain the sources, install, use and update the Open Source software that can be run on the Acme boards. Please note that all of the preinstalled software, used on the Acme Systems products, are Open Source so you have to check the license terms provided by the authors (usually the GPL) before using it in any commercial or non-commercial product, by yourself. Before to contact us please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS and therefore could be better to post your questions to the Acme Systems forum and ensure that all of the site contributors and large software community can read and reply to your questions.

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