### Equation Of Digital Electronics

OVH MAGIC CITY QUANTUM MECHANICS

Welcome to the Equation of Digital Electronics. INTRODUCTION:
This equation assumes that one is already familiar with sending messages (Bits: 0v-5v) to & from a computer to the real world (Device) via a computer port i.e. USB etc. but in this case we use a Parallel Printer Port since is much easier to grasp.

• Wiki: 8 Data pins LPT Printer Port Data Sheet

• So currently we can light up LEDs and print out characters on LCDs using the 8 Data pins available on this printer port.

The goal is to one day remotely control or trigger events from a browser or IP Address based system meaning this can be remotely sitting somewhere on the network connected to an analog device (this could be a door to be opened, lights to be switched on etc.) sitting somewhere.

WHAT WE HAVE SO FAR:

1. A) Browser, IP or Web based system or Website with and ON / OFF Radio button
2. B) C-Language +(Integrated)+ Assembly Machine Language Program (i.e. You can Integrate Assembly / Machine using a c method called "__asm__" function)
3. C) Computer connected to a device via a Parallel Printer Port (i.e. This device has LED, or LCD or Door Ready to open)

So currently we are able to successfully combine B + C to send bits to light an LED by running a C-programing and giving it inputs at RUN-TIME.

Remember that we can run a C / C++ program on a command line with arguments

i.e. ./executable.out agr1 agr2 agr3

Ref: http://www.tutorialspoint.com/cprogramming/c_command_line_arguments.htm

But

PHP in this case equation A, has a function called "exec" that executes an external program

Theoretically, this means we can turn on a radio button on our website calling its change events with "php compile-run exec(' ./executable.out agr1');" This above code integrates the 3 above mentioned equations

Equation (E) = A + B + C

THEORITICAL FINDINGS:
This means that a light bulb could light up on and off or the door could be locked and unlocked as a radio button is switched on and off.

NB: The theory is very long especially when it comes to integration of two remote machines to communicate these events from two servers via a SOCKET (i.e. a Python on the chat program that simply sends messages to-fro devices via socket through a server).

The applications of this EQUATION are endless. Fig: LPT Printer Port Basic Datasheet Diagram

THEREFORE:
E(de), our special Equation of digital electronic Integration

Equation (E) = A + B + C

but A = A(exec(param1)), B = B(__asm__(arg1)) and C = C(LPT_port(8_data_pins))

then

E(de) = A(exec(param1)) + B(__asm__(arg1)) + C(LPT_port(8_data_pins))

Note that

"__asm__" sometimes can become just "asm"

and our "exec" changes depending on the variation of Programing Languages

so our E(de) can actually be shortened to

E(de) = A(exec(param1)) + B(asm(arg1)) + C(LPT_port(8_data_pins))

The reason why is called Special Equation and not thee equation is because its only true when output-ing events flowing in the direction from A to B to C (A > B > C) and so is its electrical current traveling from B to C (B >>> C) triggered by events taken place in A.

This is not 100% true if the electrical current is traveling back from C to B (B <<< C) where our device clocking system is now responsible for triggering digital events on B and ultimately through to generating events on C since our C-Language program on B has to remain at run-time at all times in order to accept electrical current from the port converted into digital binary bits and then translate it into human-understandable information that will then trigger some C events.

so our E(de) is not Bi-Directional but one direction

E(de) = A(exec(param1)) + B(asm(arg1)) + C(LPT_port(8_data_pins)) only for events flowing from A to B to C (A > B >C)

i.e. Practical Application Example:

We can connect a USB Card Scanner (depicted below) that we buy for +/- ZAR 500 to our OVH Clocking System to scan employees at the door of the building. As we scan we validate if the user card data exist against our MySQL database and simple output to the computer screen, if the user really exists or not and if they indeed exist we clock/log them in their timesheet database table.

This is a point where we can now apply our Special Equation of digital electronic Integration i.e.

Inside this very same event for clocking or logging card users on their timesheet, we can apply our A(exec(param1)) event that will systematically trigger our B(asm(arg1)) event and then ultimately C(LPT_port(8_data_pins)) event which could be to unlock the door so an employee can come inside the building.

But this will require us to have the LPT printer cable connected from the same computer where the USB scanner is connected, a copper wire traveling to the door from our LPT port computer and maybe some LED rooted on the scanner (hacked) from the copper wire to light the bulb RED if the user does not exist or is deactivated.

NB: This is just a basic elementary equation that holds only and only if the browser is running at the same computer operating system as the C-Language program but, what happens when we want to send events remotely or from a browser that resides on a cloud remote server to a computer connected to a device somewhere else?

The computation of our Advanced Equation involves Python Language and understanding of peer-to-peer basic http network layer data socket communication. The mechanism used on remote chat systems. Fig: USB Card Scanner