2012-10-20 22:45:01 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
from rflib import *
|
|
|
|
import rflib.chipcon_nic as rfnic
|
|
|
|
import atexit
|
|
|
|
from libtoorchat import *
|
|
|
|
|
|
|
|
def banner():
|
|
|
|
print "******** ToorChat [v 0.1] ********"
|
|
|
|
|
|
|
|
def main():
|
|
|
|
banner()
|
|
|
|
badge = RfCat(idx=0)
|
|
|
|
badge.setModeRX()
|
|
|
|
protocol = ToorChatProtocol(badge)
|
|
|
|
while True:
|
|
|
|
try:
|
2012-10-20 22:49:10 +00:00
|
|
|
print badge.RFrecv()
|
|
|
|
# print msg
|
2012-10-20 22:45:01 +00:00
|
|
|
except ChipconUsbTimeoutException:
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|