2017/08(4)
-
Wemo 디바이스 초기화 방법
WeMo Light Switches:Hold down reset until it blinks amber and greenRoughly 30 to 60 seconds in total WeMo Motion Senors, Switches and Links:Unplug the WeMoHold down the reset buttonPlug the WeMo inRelease the reset button a few seconds after it starts flashing amberOnce the WeMo is flashing amber and green the reset is complete WeMo Bulbs:Start with bulb on for 5 secondsSwitch bulb off for 5 sec..
2017.08.29 -
Tkinter로 만드는 스마트카드 통신 프로그램 - 5
이전글: Tkinter로 만드는 스마트카드 통신 프로그램 - 4 목표1. 상호인증(mutual authentication) 기능 추가2. 상호인증 후 GET STATUS command를 이용하여 card content들을 treeview에 표시 특이사항1. GlobalPlatform 관련 소스는 공개하지 않음. 2. Treeview에 item 관리하는 부분이 효과적인지 모르겠음. 소스코드main.py# imports# Use Tkinter for python 2, tkinter for python 3import tkinter as tkimport scm if __name__ == '__main__': root = tk.Tk() scm.MainPage(root) root.mainloop() # Start ..
2017.08.18 -
Tkinter로 만드는 스마트카드 통신 프로그램 - 4
이전글: Tkinter로 만드는 스마트카드 통신 프로그램 - 3 목표1. Menu 추가함.2. 기존 코드를 패키지화 할 것.3. 상호인증(mutual authentication) UI 추가. 특이사항1. 패키지화 하면서 __init__.py를 추가함. 소스코드main.py# imports# Use Tkinter for python 2, tkinter for python 3import tkinter as tkimport scm.scm_frames as scmf if __name__ == '__main__': root = tk.Tk() scmf.MainFrame(root).pack(side='top', fill='both', expand=True) root.mainloop() # Start GUI scm/_..
2017.08.04 -
Tkinter로 만드는 스마트카드 통신 프로그램 - 3
이전글: Tkinter로 만드는 스마트카드 통신 프로그램 - 2 목표1. 기존 코드를 OOP로 변환할 것.2. SW가 0x61xx일 경우 자동으로 Get Response 명령어 처리를 할것.3. 기존 코드의 버그 수정. 3.1. Reset 버튼을 또 누르면 connection 레퍼런스가 깨져서 통신이 안되는 문제 특이사항1. stack overflow에서 "Best way to structure a tkinter application"을 읽고 코드에 적용함.2. OOP로 변환하면서 Menu 처리가 애매해 우선 제거함. 소스코드# imports# Use Tkinter for python 2, tkinter for python 3import tkinter as tkimport tkinter.scrolledt..
2017.08.02