MicroPython for Satlink 3 and XLink 500
1.8
Python Development Environment Setup
Loading a script and setup into Satlink 3 and XLink 500
Writing Measurement Scripts
Writing Transmission Formatting Python Scripts
Writing Control Applications and Other Script Tasks
Python Example Scripts
LinkComm Software, Manual, and Python Example Code
MicroPython libraries
The MicroPython language
Python and MicroPython Resources
MicroPython license information
MicroPython documentation contents
MicroPython for Satlink 3 and XLink 500
Index
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
|
X
|
Z
_
__import__() (built-in function)
__init__() (serial.Serial method)
(sl3.Log method)
(sl3.Reading method)
_thread (module)
A
a2b_base64() (in module ubinascii)
abs() (built-in function)
acos() (in module math)
acosh() (in module math)
acquire() (_thread.lock method)
add_to_display() (in module Alpha_display)
addressof() (in module uctypes)
alarm (module)
alarm_in_a() (in module alarm)
alarm_in_setup_change() (in module setup)
alarm_out_a() (in module alarm)
alarm_out_setup_change() (in module setup)
all() (built-in function)
allocate_lock() (in module _thread)
Alpha_display (module)
alpha_display() (in module Alpha_display)
amp_temp() (in module meas_simple)
any() (built-in function)
append() (array.array.array method)
append_info() (in module txformat_simple)
append_lat_long() (in module gps_tracker)
args (builtins.BaseException attribute)
argv (in module sys)
ArithmeticError
array (module)
array.array (class in array)
ascii_time() (in module sl3)
ascii_time_hms() (in module sl3)
asctime() (sl3.Reading method)
asin() (in module math)
asinh() (in module math)
assert
statement
AssertionError
atan() (in module math)
atan2() (in module math)
atanh() (in module math)
AttributeError
auto_eight_test() (in module auto_sampler_eight_triggers)
auto_sampler_eight_triggers (module)
auto_sampler_volume (module)
B
b2a_base64() (in module ubinascii)
bars_to_dbm() (in module dga)
BaseException
batt() (in module sl3)
batt_load() (in module meas_simple)
baudrate (serial.Serial attribute)
BIG_ENDIAN (in module uctypes)
bin() (built-in function)
bin6() (in module sl3)
bin6_four (module)
bin6_four() (in module bin6_four)
bin_to_str() (in module sl3)
binary mode
bit_convert() (in module sl3)
bit_write() (in module insat)
bool() (built-in function)
Boolean
type
break_condition (serial.Serial attribute)
bucket_empty() (in module control)
buffer size, I/O
built-in function
exec
builtins (module)
bytearray() (built-in function)
bytearray_at() (in module uctypes)
byteorder (in module sys)
bytes() (built-in function)
bytes_at() (in module uctypes)
bytes_to_str() (in module sl3)
BytesIO (class in uio)
bytesize (serial.Serial attribute)
C
calcsize() (in module ustruct)
callable() (built-in function)
cd (serial.Serial attribute)
ceil() (in module math)
cell_sig_str_bars() (in module dga)
chdir() (in module uos)
choice() (in module urandom)
chr() (built-in function)
classmethod() (built-in function)
clear_stats() (in module sl3)
close() (serial.Serial method)
cmath (module)
collect() (in module gc)
command_line() (in module sl3)
commsocket (module)
commsocket.commsocket() (in module commsocket)
compile() (built-in function)
(in module ure)
complex() (built-in function)
compute_ET() (in module evapo_transpiration)
compute_median() (in module median)
compute_volume_total() (in module auto_sampler_volume)
control (module)
convert_to_decimal_degrees() (in module gps_tracker)
copy_measurement_setup() (in module setup)
copysign() (in module math)
cos() (in module cmath)
(in module math)
cosh() (in module math)
count (sl3.Log attribute)
crc() (in module sl3)
crc32() (in module ubinascii)
crc_dnp() (in module sl3)
crc_kermit() (in module sl3)
crc_modbus() (in module sl3)
crc_ssp() (in module sl3)
crc_xmodem() (in module sl3)
create_connect_packet() (in module mqtt_raw_transmission_demo)
create_disconnect_packet() (in module mqtt_raw_transmission_demo)
create_image() (in module http_post_file)
create_publish_packet() (in module mqtt_raw_transmission_demo)
cts (serial.Serial attribute)
D
daily_trigger() (in module auto_sampler_volume)
daylight (module)
DEBUG (in module ure)
default_table() (in module rating_table_gp)
degrees() (in module math)
delay_after_tx (serial.Serial attribute)
delay_before_tx (serial.Serial attribute)
destroy() (in module txformat_simple)
dew_point() (in module meas_simple)
dga (module)
dga_format() (in module dga)
diagnostic_file_for_tx() (in module file)
dict() (built-in function)
differential_reading() (in module auto_sampler_eight_triggers)
(in module meas_daily_roc)
(in module meas_rain_sliding)
digest() (uhashlib.hash method)
digital_input_sample() (in module sl3)
dir() (built-in function)
disable() (in module gc)
display_all_active_meas() (in module RS232_demo)
display_results() (in module http_post_file)
(in module http_post_message)
divmod() (built-in function)
dsr (serial.Serial attribute)
dsrdtr (serial.Serial attribute)
dtr (serial.Serial attribute)
dumps() (in module ujson)
E
e (in module cmath)
(in module math)
elapsed_ms() (in module utime)
elapsed_us() (in module utime)
Ellipsis (in module builtins)
enable() (in module gc)
enough_water() (in module auto_sampler_eight_triggers)
enumerate() (built-in function)
EOFError
erf() (in module math)
erfc() (in module math)
errno
module
errorcode (in module uerrno)
etype (sl3.Reading attribute)
eval() (built-in function)
evapo_transpiration (module)
even() (in module parity)
even_parity_bits() (in module insat)
event_based_log_a() (in module event_based_logging)
event_based_logging (module)
Exception
exec
built-in function
exec() (built-in function)
exit() (in module _thread)
(in module sys)
exp() (in module cmath)
(in module math)
expm1() (in module math)
extend() (array.array.array method)
F
fabs() (in module math)
False (built-in variable)
file (module)
file object
open() built-in function
file_demo() (in module file)
FileIO (class in uio)
filter() (built-in function)
float() (built-in function)
floor() (in module math)
flush() (serial.Serial method)
fmod() (in module math)
format_a1() (in module log_txformat)
format_all_active_meas() (in module RS232_demo)
format_date() (in module file)
format_number_right_digits() (in module txformat_simple)
frame_wrapper() (in module Alpha_display)
frexp() (in module math)
frozenset() (built-in function)
G
gamma() (in module math)
gc (module)
general_purpose (module)
general_read_value() (in module auto_sampler_eight_triggers)
GeneratorExit
get_api_version() (in module sl3)
get_data() (in module SonTek_RS232)
get_ident() (in module _thread)
get_newer() (sl3.Log method)
get_newest() (sl3.Log method)
get_older() (sl3.Log method)
get_oldest() (sl3.Log method)
getattr() (built-in function)
getcwd() (in module uos)
getrandbits() (in module urandom)
getvalue() (uio.BytesIO method)
globals() (built-in function)
gp_find_index() (in module general_purpose)
gp_index_valid() (in module general_purpose)
(in module rating_table_gp)
gp_read_label() (in module general_purpose)
gp_read_value() (in module general_purpose)
gp_read_value_by_index() (in module general_purpose)
(in module rating_table_gp)
gp_read_value_by_label() (in module general_purpose)
gp_test() (in module general_purpose)
gp_write_label() (in module general_purpose)
gp_write_set() (in module general_purpose)
gp_write_value() (in module general_purpose)
gp_write_value_by_index() (in module general_purpose)
gp_write_value_by_label() (in module general_purpose)
gps_keep_on_and_read_position() (in module gps_tracker)
gps_parse_lat_long() (in module gps_tracker)
gps_read_position() (in module gps_tracker)
gps_tracker (module)
group() (ure.match method)
group_format() (in module txformat_group_table)
H
hasattr() (built-in function)
hash() (built-in function)
heapify() (in module uheapq)
heappop() (in module uheapq)
heappush() (in module uheapq)
help() (built-in function)
hex() (built-in function)
hexdigest() (uhashlib.hash method)
hexlify() (in module ubinascii)
http_post_file (module)
http_post_message (module)
I
I/O control
buffering
id() (built-in function)
imp
module
implementation (in module sys)
import
statement
ImportError
in_waiting (serial.Serial attribute)
IndentationError
index() (in module sl3)
IndexError
Infinity
info() (in module machine)
input() (built-in function)
insat (module)
insat_10_bit() (in module insat)
insat_a1() (in module insat)
insat_a2() (in module insat)
insat_a2_two_msg() (in module insat)
insat_a3() (in module insat)
insat_encode_data() (in module insat)
insat_encode_val() (in module insat)
int() (built-in function)
inter_byte_timeout (serial.Serial attribute)
internal_temp() (in module sl3)
ioctl() (serial.Serial method)
is_being_tested() (in module sl3)
is_clock_updated() (in module sl3)
is_meas_valid() (in module sl3)
is_open (serial.Serial attribute)
is_scheduled() (in module sl3)
isfinite() (in module math)
isinf() (in module math)
isinstance() (built-in function)
isnan() (in module math)
issubclass() (built-in function)
iter() (built-in function)
K
KeyboardInterrupt
L
label (sl3.Reading attribute)
ldexp() (in module math)
len() (built-in function)
lgamma() (in module math)
limit (sl3.Log attribute)
line-buffered I/O
list() (built-in function)
listdir() (in module uos)
LITTLE_ENDIAN (in module uctypes)
load_table() (in module rating_table_gp)
loads() (in module ujson)
locals() (built-in function)
localtime() (in module utime)
lock() (in module sl3)
locked() (_thread.lock method)
LockType (in module _thread)
Log (class in sl3)
log() (in module cmath)
(in module math)
log10() (in module cmath)
(in module math)
log2() (in module math)
log_compute_diff() (in module log_simple)
log_look_for_bad_data() (in module log_simple)
log_read_entry() (in module log_simple)
log_read_meas() (in module txformat_simple)
log_simple (module)
log_task_trigger (module)
log_task_trigger() (in module log_task_trigger)
log_time_bound_meas() (in module log_simple)
log_txformat (module)
log_write_example() (in module log_simple)
LogAccessError
LookupError
loopback (serial.Serial attribute)
M
machine (module)
manual_sampler() (in module auto_sampler_eight_triggers)
map() (built-in function)
match (sl3.Log attribute)
match() (in module ure)
(ure.regex method)
math (module)
max() (built-in function)
maxsize (in module sys)
meas_as_index() (in module sl3)
meas_as_reading() (in module sl3)
meas_AT() (in module evapo_transpiration)
meas_BP() (in module evapo_transpiration)
meas_daily_roc (module)
meas_do_not_log() (in module sl3)
meas_find_index() (in module sl3)
meas_find_label() (in module sl3)
meas_latitude() (in module gps_tracker)
meas_log_this() (in module sl3)
meas_longitude() (in module gps_tracker)
meas_make_invalid() (in module sl3)
meas_make_valid() (in module sl3)
meas_rain_sliding (module)
meas_RH() (in module evapo_transpiration)
meas_RI() (in module evapo_transpiration)
meas_simple (module)
meas_WS() (in module evapo_transpiration)
measure() (in module sl3)
MEASUREMENT() (built-in function)
measurement_previous() (in module meas_daily_roc)
measurement_setup() (in module setup)
median (module)
median_meas() (in module median)
mem_alloc() (in module gc)
mem_free() (in module gc)
mem_info() (in module micropython)
MemoryError
memoryview() (built-in function)
microboard() (sl3.Serial_number class method)
micropython (module)
min() (built-in function)
min_time_between_samples (in module auto_sampler_eight_triggers)
minutes_of_daylight() (in module daylight)
mkdir() (in module uos)
mktime() (in module utime)
modf() (in module math)
module
errno
imp
sys
modules (in module sys)
moving_sum (module)
moving_sum() (in module moving_sum)
MQTT_PUBLISH() (in module mqtt_raw_transmission_demo)
mqtt_raw_transmission_demo (module)
N
name (serial.Serial attribute)
namedtuple() (in module ucollections)
NameError
NaN
NATIVE (in module uctypes)
never_log (module)
never_log() (in module never_log)
newest (sl3.Log attribute)
next() (built-in function)
(sl3.Log method)
NFDRS_TX_Format (module)
None (built-in variable)
NotImplementedError
NRDRS_format() (in module NFDRS_TX_Format)
Numerical Python
O
object
type
object() (built-in function)
oct() (built-in function)
odd() (in module parity)
oldest (sl3.Log attribute)
one_sample() (in module median)
open() (built-in function)
(in module uio)
(serial.Serial method)
ord() (built-in function)
OrderedDict() (in module ucollections)
OSError
out_waiting (serial.Serial attribute)
output_control() (in module sl3)
output_ET (in module evapo_transpiration)
output_sample() (in module sl3)
OverflowError
P
pack() (in module ustruct)
pack_into() (in module ustruct)
parity (module)
(serial.Serial attribute)
path (in module sys)
periodic_sampler() (in module auto_sampler_eight_triggers)
phase() (in module cmath)
pi (in module cmath)
(in module math)
platform (in module sys)
polar() (in module cmath)
port (serial.Serial attribute)
pow() (built-in function)
(in module math)
power_control() (in module sl3)
power_sample() (in module sl3)
precip_24_hour() (in module auto_sampler_eight_triggers)
precip_2_hour() (in module auto_sampler_eight_triggers)
precip_last_24_hours() (in module meas_daily_roc)
precip_last_hour() (in module meas_daily_roc)
prefix_id_1() (in module txformat_simple)
prefix_id_2() (in module txformat_simple)
prev_logged_value() (in module event_based_logging)
print() (built-in function)
print_exception() (in module sys)
property() (built-in function)
Python Enhancement Proposals
PEP 328
Q
qstr_info() (in module micropython)
quality (sl3.Reading attribute)
R
radians() (in module math)
rain_60_min() (in module meas_rain_sliding)
rain_90_min() (in module meas_rain_sliding)
randint() (in module urandom)
random() (in module urandom)
randrange() (in module urandom)
range() (built-in function)
rate_of_change_1meas_setup() (in module meas_daily_roc)
rate_of_change_2meas_setup() (in module meas_daily_roc)
rating_table (module)
rating_table() (in module rating_table)
rating_table_gp (module)
read() (serial.Serial method)
readall() (serial.Serial method)
readchar() (serial.Serial method)
Reading (class in sl3)
readinto() (serial.Serial method)
readline() (serial.Serial method)
receive_data() (in module http_post_file)
(in module http_post_message)
receive_packet() (in module mqtt_raw_transmission_demo)
rect() (in module cmath)
recv() (commsocket.commsocket method)
release() (_thread.lock method)
remove() (in module uos)
rename() (in module uos)
repr() (built-in function)
reset_count() (in module sl3)
reset_ET() (in module evapo_transpiration)
reset_input_buffer() (serial.Serial method)
reset_output_buffer() (serial.Serial method)
reversed() (built-in function)
ri (serial.Serial attribute)
right_digits (sl3.Reading attribute)
rmdir() (in module uos)
roc_m1() (in module meas_daily_roc)
round() (built-in function)
RS232_demo (module)
rs232_hello_world() (in module RS232_demo)
rs232_last_meas() (in module RS232_demo)
rs485 (serial.Serial attribute)
rts (serial.Serial attribute)
rts_level_for_rx (serial.Serial attribute)
rts_level_for_tx (serial.Serial attribute)
rtscts (serial.Serial attribute)
RuntimeError
S
save_measurement_setup() (in module setup)
sdi12 (module)
Sdi12Error
sdi_bus_valid() (in module sdi12)
sdi_collect() (in module sdi12)
sdi_collect_improved() (in module sdi12)
sdi_send_command_get_reply() (in module sdi12)
search() (in module ure)
(ure.regex method)
seconds_since_midnight() (in module sl3)
seed() (in module urandom)
send() (commsocket.commsocket method)
send_break() (serial.Serial method)
send_image_http() (in module http_post_file)
send_message_http() (in module http_post_message)
send_sms() (in module sms)
sep (in module uos)
Serial (class in serial)
serial (module)
Serial_number (class in sl3)
set() (built-in function)
set_buffer_size() (serial.Serial method)
setattr() (built-in function)
settimeout() (commsocket.commsocket method)
setup (module)
setup_read() (in module sl3)
setup_write() (in module sl3)
SetupError
,
[1]
sgn() (in module sl3)
sin() (in module cmath)
(in module math)
sinh() (in module math)
sizeof() (in module uctypes)
sl3 (module)
sl3() (sl3.Serial_number class method)
sl3_hms_to_seconds() (in module sl3)
sl3_round() (in module NFDRS_TX_Format)
sl3_time_to_seconds() (in module sl3)
sleep() (in module utime)
sleep_ms() (in module utime)
sleep_us() (in module utime)
slice() (built-in function)
sms (module)
sontek_com() (in module SonTek_RS232)
sontek_pressure() (in module SonTek_RS232)
SonTek_RS232 (module)
sontek_sync_time() (in module SonTek_RS232)
sontek_temperature() (in module SonTek_RS232)
sontek_Velocity_east_depth_1() (in module SonTek_RS232)
sort() (builtins.list method)
sorted() (built-in function)
split() (ure.regex method)
sqrt() (in module cmath)
(in module math)
stack_size() (in module _thread)
stage_sampling() (in module auto_sampler_eight_triggers)
stat() (in module uos)
statement
assert
import
staticmethod() (built-in function)
statvfs() (in module uos)
stderr (in module sys)
stdin (in module sys)
stdout (in module sys)
StopAsyncIteration
stopbits (serial.Serial attribute)
StopIteration
str() (built-in function)
str_to_bytes() (in module sl3)
strerror() (in module uos)
string
format() (built-in function)
str() (built-in function)
StringIO (class in uio)
struct (class in uctypes)
sum() (built-in function)
super() (built-in function)
sync() (in module uos)
SyntaxError
sys
module
sys (module)
SystemAbort
SystemExit
T
table_interpol() (in module rating_table_gp)
tan() (in module math)
tanh() (in module math)
TASK() (built-in function)
task_meas_a1() (in module log_txformat)
temp_compensation() (in module meas_simple)
test_ET() (in module evapo_transpiration)
test_gps_read_position() (in module gps_tracker)
test_group_formatter() (in module txformat_group_table)
test_median() (in module median)
test_sms() (in module sms)
text mode
TextIOWrapper (class in uio)
threshold_check() (in module auto_sampler_eight_triggers)
threshold_get_value() (in module auto_sampler_eight_triggers)
threshold_move() (in module auto_sampler_eight_triggers)
threshold_move_low() (in module auto_sampler_eight_triggers)
threshold_reset() (in module auto_sampler_eight_triggers)
threshold_sampler() (in module auto_sampler_eight_triggers)
ticks_add() (in module utime)
ticks_cpu() (in module utime)
ticks_diff() (in module utime)
ticks_ms() (in module utime)
ticks_us() (in module utime)
time (sl3.Reading attribute)
time() (in module utime)
time_scheduled() (in module sl3)
timeout (serial.Serial attribute)
TimeoutError
tls() (in module sl3)
transmitter() (sl3.Serial_number class method)
trigger_meas() (in module sl3)
trigger_sampler() (in module auto_sampler_eight_triggers)
(in module auto_sampler_volume)
(in module control)
trigger_sampler_master() (in module auto_sampler_eight_triggers)
(in module auto_sampler_volume)
trigger_script_task() (in module sl3)
trigger_tx() (in module sl3)
triggered_today() (in module auto_sampler_volume)
True (built-in variable)
trunc() (in module math)
tuple() (built-in function)
twelve_more() (in module meas_simple)
tx_format_a1() (in module txformat_simple)
TXFORMAT() (built-in function)
txformat_group_table (module)
txformat_simple (module)
TXMODE() (built-in function)
type
Boolean
object
type() (built-in function)
TypeError
U
ubinascii (module)
ucollections (module)
uctypes (module)
uerrno (module)
uhashlib (module)
uhashlib.sha256 (class in uhashlib)
uheapq (module)
uio (module)
ujson (module)
unbuffered I/O
unhexlify() (in module ubinascii)
UnicodeError
uniform() (in module urandom)
unique_file_name() (in module file)
unique_id() (in module machine)
units (sl3.Reading attribute)
unlock() (in module sl3)
unpack() (in module ustruct)
unpack_from() (in module ustruct)
uos (module)
update() (uhashlib.hash method)
update_status() (in module auto_sampler_eight_triggers)
urandom (module)
urandom() (in module uos)
ure (module)
ustruct (module)
utime (module)
V
value (sl3.Reading attribute)
ValueError
ver() (in module sl3)
ver_boot() (in module sl3)
version (in module sys)
version_check() (in module evapo_transpiration)
version_info (in module sys)
version_needs_check (in module gps_tracker)
ViperTypeError
volume_threshold() (in module auto_sampler_volume)
W
wait_for() (in module sl3)
wind_elevation (in module evapo_transpiration)
write() (serial.Serial method)
write_log() (sl3.Reading method)
write_timeout (serial.Serial attribute)
writechar() (serial.Serial method)
X
xonxoff (serial.Serial attribute)
Z
ZeroDivisionError
zip() (built-in function)
Ports and Versions
sl3 (latest)
Ports
sl3
Versions
latest
External links
XLink 500
Satlink 3
Sutron GitHub
LinkComm