본문 바로가기
반응형

분류 전체보기2980

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 22번 우대희 일일업무일지 #ifndef __WS_RFID_LIB__ #define __WS_RFID_LIB__ #include #include #include #include #include #define SPEED B38400 #define SPORT "/dev/ttyS0" #define CRC_POLYNOM 0x8408 #define CRC_PRESET 0xFFFF #define SENDBSIZE 128 #define RECVBSIZE 128 #define INVENT_STD 0x0010 #define INVENT_EP8 0x0020 #define INVENT_E12 0x0040 #define INVENT_UID 0x0080 #define TRTYPE_ICODE_UID 0x8000 #define TRTYPE_ICODE_EPC.. 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.
2015.12.09_Dos Serial RFID_이량경 ✔ ================================================================ 테스트 삐-삐-삐- * 컴포트 2개만들어서 버추얼시리얼 + 컴포트 마스터 = 데이터 확인 할수있음.> COM1은 윈도우 COM1과 동일시한다.파일이다. CreateFile("COM4" > 2, 3 인자 읽기버퍼/쓰기 : 읽고 쓰기 가능. if (0 == SetupComm(hComm, 4096, 4096)) > 버퍼초기화 if (0 == PurgeComm(hComm, PURGE_TXABORT | PURGE_TXCLEAR)). > 기존값 읽어 원하는 값만 바꾼다. if (0 == GetCommState(hComm, &sPState)) > 시리얼정보가 sPState 에 저장. 속도를 바꾼다... 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.
20151209-김재홍-Serial_3일차-RFID_도스 /***Serial통신_3일차-RFID_도스용시리얼통신프로그램***/ 어제하던 리눅스 시리얼 프로그래밍 마무으리 시리얼 통신 실습시 주의 사항※ V3백신 프로그램을 사용하고 있다면실습중에 종료해주면 시리얼 통신이 원활해집니다.※ 리눅스 시리얼 통신 환경으로, 리눅스를 최신버전으로 업그레이드해주고 작업하는 것을 권장합니다. /*--Non_Canonical.c--*/ #include #include #include #include #include #include "smart.h" #define SPEED B19200 #define SPORT "/dev/ttyS0" #define POLYNOM 0x8408 #define PRESET 0xFFFF unsigned char ucAbeep[] = {0x0D, 0x0.. 2015. 12. 9.
728x90
반응형