1 / 17

Programação de Periféricos

Programação de Periféricos. Controle de Acesso. Cristiano Ferreira. 20 Junho de 2008. Introdução. Apresentação Características Tecnologias abordadas. Periféricos + Placa. Requisitos de Hardware. Mini – ITX Sistema Operacional (Debian) Catraca LCD Leitora de Cartão.

murray
Download Presentation

Programação de Periféricos

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programação de Periféricos Controle de Acesso Cristiano Ferreira 20 Junho de 2008

  2. Introdução Apresentação Características Tecnologias abordadas

  3. Periféricos + Placa

  4. Requisitos de Hardware Mini – ITX Sistema Operacional (Debian) Catraca LCD Leitora de Cartão

  5. Mini - ITX Componentes Básicos Diferencial O que fez ela ser escolhida ? Quais seriam as outras alternativas

  6. Mini - ITX

  7. Sistema Operacional Qual ? Porque foi escolhido ? Como foi instalado

  8. Catraca Como funciona? Interface de comunicação

  9. Porta Serial – Pinos de controle Como funciona? Modos de acesso.

  10. Trecho de código... void sendDTR() { ioctl(fdttyS0, TIOCMGET, &status); status |= TIOCM_DTR; ioctl(fdttyS0, TIOCMSET, &status); } void resetDTR(){ ioctl(fdttyS0, TIOCMGET, &status); status &= ~TIOCM_DTR; ioctl(fdttyS0, TIOCMSET, &status); }

  11. Leitora de Cartões Tipos de Leitoras Protocolo de comunicação

  12. Wiegand O que é Wiegand? Como funciona? Dificuldade de implementação

  13. Wiegand – Formato

  14. Wiegand - Temporização

  15. LCD Como funciona Como foi mapeado

  16. Trecho de código... else { RS_0(); EN_1(); outb(LCD,LPT1); usleep(5); byte &= 0x0F; LCD &= 0xF0; LCD |= byte; outb(LCD,LPT1); usleep(5); EN_0(); outb(LCD,LPT1); usleep(5000); } } } void sendConfigByte(int byte) { int i; int byteAux; for (i=0;i<2;i++) { if (i==0) { RS_0(); EN_1(); outb(LCD,LPT1); usleep(5); byteAux = byte >> 4; LCD &= 0xF0; LCD |= byteAux; outb(LCD,LPT1); usleep(5); EN_0(); outb(LCD,LPT1); usleep(5000); }

  17. Conclusão Porque esse trabalho Futuras implementações

More Related