Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline scripts in Firmware/tools. #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Firmware/tools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To install script dependencies, run `pip install -r requirements.txt`.
3 changes: 2 additions & 1 deletion Firmware/tools/atcommander.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Provide command line access to AT command set on radios
#

import serial, sys, argparse, time, fdpexpect
import serial, sys, argparse, time, pexpect
from pexpect import fdpexpect

class ATCommandSet(object):
''' Interface to the AT command set '''
Expand Down
3 changes: 2 additions & 1 deletion Firmware/tools/console.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# a trivial serial console

import serial, sys, optparse, fdpexpect
import serial, sys, optparse, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("console")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down
11 changes: 11 additions & 0 deletions Firmware/tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
future==0.17.1
iso8601==0.1.12
lxml==4.3.1
pexpect==4.6.0
ptyprocess==0.6.0
pycairo==1.18.0
PyGObject==3.30.4
pymavlink==2.3.4
pyserial==3.4
PyYAML==3.13
serial==0.0.97
3 changes: 2 additions & 1 deletion Firmware/tools/rssi.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# RSSI production test

import serial, sys, optparse, time, fdpexpect
import serial, sys, optparse, time, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("update_mode")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down
3 changes: 2 additions & 1 deletion Firmware/tools/set_speed.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# set air data rate

import serial, sys, optparse, time, fdpexpect
import serial, sys, optparse, time, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("set_speed")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down
3 changes: 2 additions & 1 deletion Firmware/tools/set_sreg.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# set air data rate

import serial, sys, optparse, time, fdpexpect
import serial, sys, optparse, time, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("set_speed")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down
3 changes: 2 additions & 1 deletion Firmware/tools/show_regs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# set air data rate

import serial, sys, optparse, time, fdpexpect
import serial, sys, optparse, time, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("show_regs")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down
3 changes: 2 additions & 1 deletion Firmware/tools/show_rssi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# set air data rate

import serial, sys, optparse, time, fdpexpect
import serial, sys, optparse, time, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("show_rssi")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down
3 changes: 2 additions & 1 deletion Firmware/tools/update_mode.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# put a HopeRF into update mode

import serial, sys, optparse, time, fdpexpect
import serial, sys, optparse, time, pexpect
from pexpect import fdpexpect

parser = optparse.OptionParser("update_mode")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
Expand Down