coffee 3 64modl6axlxd6krfd6mx75ontazm7n62prs5mca 64modl6axlxd6krfd6mx75ontazm7n62prs5mca 64MODL6AXLXD6KRFD6MX75ONTAZM7N62PRS5MCA


COFFEE-HOWTO: Software 3. Software3.1 SoftwareYou will have to build an executable that will perform like this:Get permissions to use I/O address space, by calling kernel, with the command ioperm: eg ioperm( BASE, range ,1);Perform an out request instruction, to set the 0-5V voltage to the parallel port, eg outb( 1, BASE );Wait for enough time so that coffee gets ready. It would be nice if that time is read by looking at the command line.Then it will turn off the coffee-machine: outb( 0 , BASE );Before ending it should give back the paraller port with a ioperm( BASE, range, 0);Change BASE = 0x3bc for /dev/lp0, 0x378 for /dev/lp1, and 0x278 for /dev/lp2, range=8.It would be nice if you had that program setuid, so that everybody can drink coffee!3.2 Device driverJust read kernel hacker's guide, implement a device driver (it could even be user space i think). Please, compile it as a module, so that we won't need a kernel compile in every update. Then write: echo cappuccino >/dev/coffeeAnd you will have a hot cup of coffee in 1 minute. Remember to give the right permission to /dev/coffee, depending on whether you want only root making coffee or not.The advantage of this method is that it supports feedback from the coffee-machine by using the ACK of parallel port, so that smart coffee-machines could produce an interrupt.Do it as homework.3.3 Connecting with the InternetIf you have implemented the C programme (see above), you just have to write down a simple CGI script to turn ON and OFF the coffee-machine. You should write some nice webpages, explaining how to make coffee, and put them at an apache web server... F

Wyszukiwarka

Podobne podstrony:
coffee 7 5cyomxm7hdyqpi4sipapvlec6iyst7ncsrjzqmi 5cyomxm7hdyqpi4sipapvlec6iyst7ncsrjzqmi
Coffee To Coins Magic Trick
Coffee CRISW6JOURI6657F2P75UT6U6ZXUIXJTVFB6J7Y
The Toxicity of Used Coffee Grounds to the Larvae of Diptera
Coffee And Cigarettes LiMiTED DVDRip XviD FTS
tiled coffee table
coffee date dress multisize instructions
Coffee Shoppe Planner Stickers VintageGlamStudio (1)
Coffee Cup
89 Coffee Recipes
coffee pl 3
Coffee Book
Coffee pl (2)
Coffee Break Planner Stickers VintageGlamStudio

więcej podobnych podstron