Skip to content

wardi/python-thinkrf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyRF

This library currently supports development for the WSA4000 Platform, but may support additional hardware in the future.

Documentation

Cross-platform GUI Included

image

Example Code

from pyrf.devices.thinkrf 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)

About

python interface to the WSA4000

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages