Code Monkey home page Code Monkey logo

php-extension-cams-serialrs232's Introduction

php-extension: CAMS, a serial RS232 wrapper

A php-extension that provides parallel and optionally, serial-port/RS232 access to PHP for the Computer Aided Measuring Station (CAMS) project. Go to the CAMS repository to download or fork the php web-appplication codebase and related resources.

author: Lorenz Lo Sauer 2002; www.lsauer.com
website: https://github.com/lsauer/php-extension-cams-serialRS232
license: GPL license, Graphics: CC-BY-SA

description: As PHP 4.x does not provide hardware-port access through any library, a PHP extension was created. PHP allows easy extensibility through a dynamic link library/shared object (dll/so), when adhering to ZEND-interface specifications. Once compiled the dll/so is loaded dynamically at run time and can be accessed through the exported function names defined in the php_cams.h header-file:

ZEND_FUNCTION(cams_open);
ZEND_FUNCTION(cams_close);
ZEND_FUNCTION(cams_outp);
ZEND_FUNCTION(cams_inp);
ZEND_FUNCTION(cams_getport);

Graphics

CAMS 3D View

CAMS Casing 3D Design

Principal Data flow

principal data flow

This flowchart shows the principal steps required for converting analog measurements to a digitally sampled signal via an n-bit Analog Digital Converter (ADC). The digital data is send to a parallel interface by mapping the opto-decoupled, parallel ADC output pins to the parallel port. The data is sampled and stored in a database, creating a time-series of sensor data, to be visualized on a PC.

Actual Data Flow

Data flow

CAMS project outline

CAMS project outline

php-extension-cams-serialrs232's People

Contributors

lsauer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.