skip to navigation
skip to content

Not Logged In

thinkrf 0.2.0

ThinkRF Python Device API

Latest Version: 0.2.1

This is an early release of the ThinkRF Python Device API.

This library supports development for the WSA4000 Platform.

Cross-platform GUI Included

http://python-thinkrf.readthedocs.org/en/latest/_images/wsa4000demo.png

Example Code

from thinkrf.devices import WSA4000

# connect to wsa
dut = WSA4000()
dut.connect("10.126.110.103")

# setup test conditions
dut.request_read_perm()
dut.ifgain(0)
dut.freq(2450e6)
dut.gain('low')
dut.fshift(0)
dut.decimation(0)

# capture 1 packet with 1024 samples
dut.capture(1024, 1)

# skip the context packets
while not dut.eof():
    pkt = dut.read()

    if pkt.is_data_packet():
        break

# print I/Q data
for i, q in pkt.data:
    print "%d,%d" % (i, q)
 
File Type Py Version Uploaded on Size
thinkrf-0.2.0.tar.gz (md5) Source 2012-12-10 17KB
  • Downloads (All Versions):
  • 3 downloads in the last day
  • 33 downloads in the last week
  • 246 downloads in the last month