2015-12-10 RFID 개인업무일지 - 천정호
#include #include #pragma comment(lib, "Ws2_32.lib") #define CRC_PRESET 0xFFFF#define CRC_POLYNOM 0x8408 unsigned short RFID_CRC(void *, unsigned int); int main() {u_char caString[255] = { 0x0D, 0x00, 0x71, 0x00,0x30, 0x00, 0x00, 0x00,0x0A, 0x00, 0x00 }; DCB sPState;DWORD dwCount;HANDLE hComm= CreateFile("COM4",GENERIC_READ | GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); if (hComm..
2015. 12. 10.
20151209_[안향진]_RFID_2
u_char caString[255] = {0x0D, 0x00, 0x71, 0x00, 0x3F, 0x00, 0x35, 0x00, 0x14, 0x00, 0x00}; #include #include #define CRC_PRESET 0xFFFF #define CRC_POLYNOM 0x8408 unsigned short CRC16(void * , unsigned int ); int main() { u_char caString[255] = {0x0D, 0x00, 0x71, 0x00, 0x3F, 0x00, 0x35, 0x00, 0x14, 0x00, 0x00}; //u_char caCmd[255] = {0x05, 0x00, 0x02, 0x00, 0x30, 0x00, 0x00, 0x00, 0x0A, 0x00, 0x0..
2015. 12. 9.
20151209 수업 / RFID_2-남수진
RFID 가상머신에서 하면 안됨 VMWare에 새로운 리눅스를 설치해야 도스에서 시리얼 통신으로 RFID 제어 프로그램 작성 포트 번호가 2 자리수 이상이면 포트가 안 열린다 장치 속성에서 수정 #include #include int main(void) { u_char caString[255] = {0x0D, 0, 0x71, 0, 0x30, 0, 0, 0, 0x0A, 0, 0, 0x46, 0x41}; DWORD dwCnt; DCB sPState; unsigned short ucTmp; // 1. 시리얼 포트 열기 HANDLE hComm = CreateFile("COM6" // 포트 이름 , GENERIC_READ|GENERIC_WRITE // RW가능 , 0 , NULL , OPEN_EXISTING , ..
2015. 12. 9.