20151210 22번 우대희 업무일지
#include #include #define CRC_POLYNOM 0x8408#define CRC_PRESET 0xFFFF unsigned short CRC16(void *, unsigned int); int main(){int iCnt; u_char caString[255] ={0x05, 0x00, 0x65,0x00, 0x3F,0x00, 0x20,0x00, 0x0A,0x00, 0x00,};DWORD dwCnt;DCB sPState;HANDLE hComm = CreateFile("COM7", GENERIC_READ | GENERIC_WRITE,0,NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); if (INVALID_HANDLE_VALUE == hComm){print..
2015. 12. 10.
20151209_박서연_일일업무보고서_RFID(2)
2015-12-09 *RFID(2) #윈도우 SerialPort를 이용한 RFID 컨트롤 SetOut(0x71) 사용하여 Beep 츨력하기소스//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include #include int main(){ u_char caString[255] = { 0x0D, 0x00, 0x71, 0x00, 0x30 , 0x00, 0x00, 0x00 , 0x0A, 0x00, 0x00, 0x46, 0x41 }; DWORD dwCnt; DCB sPState; //struct Port State 시리얼..
2015. 12. 10.
20151209 김태현 개인업무일지 RFID 도스 시리얼
#include #include int main(){ u_char caString[255] = { 0x0D, 0x00, 0x71, 0x00, 0x30 , 0x00, 0x00, 0x00 , 0x0A, 0x00, 0x00, 0x46, 0x41 }; DWORD dwCnt; DCB sPState; //struct Port State 시리얼 포트 상태 저장. HANDLE hComm = CreateFile("COM4" , GENERIC_READ | GENERIC_WRITE , 0 , NULL , OPEN_EXISTING , FILE_ATTRIBUTE_NORMAL , 0); if (INVALID_HANDLE_VALUE == hComm) { printf("포트 열수 없음\n"); return 0; } if (0 == ..
2015. 12. 10.
20151209 임현수 업무일지 RFID 도스 시리얼
■ RFID ■ serial 출력 체크https://youtu.be/aP8T3TIlcpM ■ 윈도우 시리얼 구현VMware에서 구버전 리눅스의 알수없는 한계로 윈도우로 전환한다. createfile() 함수 역시 하드웨어장치를 파일 취급한다는 것을 알 수 있따.SetupComm() 2번째, 3번째인자 = 읽기버퍼 쓰기버퍼 ■ dos.c/* ㅃ-ㅃ-ㅃ- 소리남. */ #include #include int main(){ u_char caString[255] = { 0x0D, 0x00, 0x71, 0x00, 0x30 , 0x00, 0x00, 0x00 , 0x0A, 0x00, 0x00, 0x46, 0x41 }; DWORD dwCnt; //double world Written 쓰기후 실제 쓴 바이트 수 저장 공..
2015. 12. 10.
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.