일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- dock
- 가우스
- Android
- Struts
- swingx
- JSON
- JDOM
- jQuery
- jsr 296
- PLSQL
- Google Map
- iBATIS
- MFC
- Ajax
- Eclipse
- node.js
- WebLogic
- 선택적조인
- ibsheet
- MySQL
- GPS
- 전자정부프레임워크
- appspresso
- oracle
- PHP
- rowspan
- sencha touch
- phonegap
- tomcat
- Spring
Archives
- Today
- Total
목록Python (1)
Where The Streets Have No Name
GPS 데이터 가져오기
출처 : http://leewoosung.egloos.com/986759 # -*- coding: EUC-KR -*- import serial #시리얼 포트를 열기위해서 : serial.Serial(..) import time #시간을 알아내기 위해서 : time.ctime(time.time()) #현재 시리얼 포트를 엽니다. s_com4 = serial.Serial(port = 3, baudrate = 4800, timeout = 1) #데이터를 저장할 파일입니다. dst_file = "c:\\gps_message.txt" try: #파일에 추가로 열기를 시도해봅니다. save_file = open(dst_file, 'a') except: #기존에 파일이 없었다면 쓰기로 엽니다. (새로 하나 만듭니다...
Developement/GIS
2008. 4. 30. 01:12