COFFEE-HOWTO

Georgatos Photis, <gef@ceid.upatras.gr>

v0.5, 15 January 1998



  --------------------------------------------------

  Translated by Ilgiz Kalmetev (2:5011/36.6@fidonet)

  --------------------------------------------------



     ,   

- ,      -   .  , 

Linux  .      !



   ,   ,  

     ...   ,     

       .  

,      ...



  -      , ,  

  .   ,   ".-." 

   ,     .





1. 



1.1.  French



   ,       ,  

    .     

     ,   

   . Windows, ,   5:00  ,  

  !  .



1.2.  Nescaffe



Nescaffe -   ,     , 

   .    1    1    

     .      

 .     ,       

  .



    - ,  ,   

,       ...





1.3.  frappe



   . ,   

,  ,       ICE.





1.4.  freddo



 - ,  coffee-faq (. )





1.5.  cappuccino ()





1.6.  () espresso





2.  



   :



--------- 0-5V  --------- ~220V  ---------------

|  PC   |===>===|   |========|    | 

---------       ---------        ---------------



  -      ,  

        Triac.



     ,      ( 200W  

 ),       triac.



        ,   

  -  .      ,    

   ,     ...



        220V,    

  .





2.1.   0-5V  



  ,    0-5V    

.



 DB-25         -----    Pin 10 - ACK

()            |   |    Pin  9 - D7 

                |   |                           Pin 2 - D0 

                     v   v                           v   Pin 1 ~Strobe

 ____________________________________________________________

/                                                            \ 

\     13  12  11  10   9   8   7   6   5   4   3   2   1     / 

 \                                                          /

  \     25  24  23  22  21  20  19  18  17  16  15  14     /

   \______________________________________________________/





 1 -  ( )



 2-9 -   ,  ,     

   OUTB.



 10 -   (ACK),  ,     

    .



 18-25    (GND).



:



 <=   DB25    Cent            

 =>     pin                 

------  ----    ----    --------          ---     -----------------------------

  =>       1       1      -Strobe         C0-     Set Low pulse >0.5 us to send

  =>       2       2      Data 0          D0      Set to least significant data

  =>       3       3      Data 1          D1      ...

  =>       4       4      Data 2          D2      ...

  =>       5       5      Data 3          D3      ...

  =>       6       6      Data 4          D4      ...

  =>       7       7      Data 5          D5      ...

  =>       8       8      Data 6          D6      ...

  =>       9       9      Data 7          D7      Set to most significant data

  <=      10      10      -Ack            S6+ IRQ Low Pulse ~ 5 uS, after accept

  <=      11      11      +Busy           S7-     High for Busy/Offline/Error

  <=      12      12      +PaperEnd       S5+     High for out of paper

  <=      13      13      +SelectIn       S4+     High for printer selected

  =>      14      14      -AutoFd         C1-     Set Low to autofeed one line

  <=      15      32      -Error          S3+     Low for Error/Offline/PaperEnd

  =>      16      31      -Init           C2+     Set Low pulse > 50uS to init

  =>      17      36      -Select         C3-     Set Low to select printer

  ==      18-25   19-30,  Ground





2.2.    



  ,  -  :





                                    Vcc

                                     |

                                     +------+

                                     |    __|__

                                  /^\   1N4002

                                      /---\

                                     |      |

                                     +------+

                                     |

                                  | /

                        4.7K     |/  

  >-\/\/\/\/---|         n-p-n: BC547A  2N2222A

 ()                    |\  

                                  | V

                                    |

  >--------------+

 ()                       |

                                 





Vcc - ,      ( 5  12V). 

,        .



Barmen, ,  ,    ,   () 

  ().  - ,     ,   

    : -).  1N4002      

 .      ,     

...





2.3.   TRIAC 1



     ,      

triac  Motorola MOC301 [012],    TRIAC  SC141D. 

    ,       .



   :





               270     1 +-------+ 6    180

         +5v -VAVAVA-----+       +----VAVAVA-----+--------------  

                       2 |  MOC  |               |

       TTL- ---------+ 3012  +nc            VA  SC141D

                         |       | 4           / |

                       nc+       +------------/  |

                         +-------+               +----\/\/\/----  

                                                     



     220V,   3021.   

     , .  

  Motorola AN-780.  -     

,    (  ),   ,     ...







2.4.   TRIAC 2





       +5VDC

       |    180                      180            2.2k

       +---/\/\/\----+-----+   +----/\/\/-+--/\/\/\---+-------> 120V

                     |    1|   |6         |           |         

                     |    +=====+         |           | MT1

                     |    | MC  | TRIAC   |          +-+

                     |    | 3032|  |        G | | TRIAC

                     |    +=====+         |         /| |

                     \    2|   |4         |        / +-+

              2N3904  |----+   |          |        |  | MT2

                     /     |   +--------- | -------+  |

                    V      \              |        |  |

                    |      /              |        \  |

                    |      \ 43    .01u  ---   10k /  |

                    |      /       500V  ---       \  |

                    |      |              |        /  |

                    +------+              |        |  |            

                    |                     +--------+--+---o    o--> 120V

                    /                                    

        >-/\/\--|  2N3904

                    \

                     V

                     |

                    ---

                   ///

        220     .





 :



MC3032 -  TRIAC . 180-      

   .       

,     (, 15 mA).



 ,         . TRIAC  

 ,      AC  ,     

        AC  . 

    500V   .01 .





3.  



3.1.  



     ,    :



      -,  

,  ioperm:  ioperm (BASE, range ,1);



    ,   0-5V   

, , outb (1, BASE);



     ,   .   , 

     .



    : outb (0, BASE);



         ioperm 

(BASE, range, 0);



 BASE = 0x3bc  /dev/lp0, 0x378  /dev/lp1  0x278  /dev/lp2, 

range=8.



  ,      setuid,     

!





3.2.  



 kernel hacker's guide,    ( , 

       ). ,   

 ,          . 

 :



echo cappuccino >/dev/coffee



        1 .     

   /dev/coffee,    ,   ,   

root    .



    ,       

,   ACK  ,   

    .



    .





3.3.   



   C  (. ),   /   

    CGI.



   -  -, ,   

,     - apache ...





4.  



 



 



 



 tachycardia   



  



 





5. 



  :



     ,  ,   

 ,    toast, beaf, applepies  ..



   8 .      ,     

.   -  .



       .



     ,      , 

     , ,    ..



       SNMP.



     115Kbps.





6. 



  http://daisy.uwaterloo.ca/~alopez-o/caffaq.html   Internet Coffee-FAQ



  http://lonestar.texas.net/~andrew/f_pc_.htm    ASCII.   

 -   .



 http://shell.rmi.net/~hisys/parport.html ,     

 ,       .



  http://sunsite.unc.edu/LDP/HOWTO/mini/IO-Port-Programming  

 -     Linux.



  http://www.redhat.com:8080/HyperNews/get/khg.html    

  .   !



  http://www.hut.fi/Misc/Electronics/circuits/parallel_output.html 

   * * ,   .



  http://www.yahoo.com/Computers_and_Internet/Internet/ 

Entertainment/Interesting_Devices_Connected_to_the_Net/Coffee_Machines/ 

  -.  ,  .



 http://www.cs.su.oz.au/~bob/coffee.html     

cappuccino.       !



  http://einstein.et.tudelft.nl/~janssen/    .



  http://circe.chinalake.navy.mil/cgi-bin/spion/snapit.cgi



  http://www.cl.cam.ac.uk/coffee/coffee.html



  http://www.menet.umn.edu/coffeecam/





7.  .



7.1. 



       () , - 

       linux-greek-users  , 

  linux    .       

  Linux,  "magaz": http://www.linux.gr/magaz.



,  magaz .





7.2.   



  - Georgatos Photis, still-yet-foralongmaybe    

      Patras. ,   

    -,     

   HOWTO,      .





7.3.  



The casual copyright with everything you get with linux...  To find it, you'll 

have to read all of them and count the most common.



, ,      .





7.4. 



 Christofer Colombus.    - Cristobal Colon.   1-,  

   ,     ( )   

1492.



 Kostas Lialiambis - ,   ,   Linux    

!



 Panagiotis Vrionis, Yannakopoulos Haralambos     

   .

