Skip to content

Instantly share code, notes, and snippets.

View mobilinkd's full-sized avatar

Mobilinkd LLC mobilinkd

View GitHub Profile
@mobilinkd
mobilinkd / viterbi_decode.py
Created September 3, 2021 21:59
Viterbi Decoder for M17 Link Setup Frame
#!/usr/bin/env python3
import sys
import numpy as np
from commpy.channelcoding import Trellis, conv_encode, viterbi_decode
import binascii
import struct
import io
"""
@mobilinkd
mobilinkd / ESG-upload.py
Created December 1, 2020 03:36
Upload data files to an HP E4400B ESG-D series vector signal generator
#!/usr/bin/env python
"""
This program is used to upload data files to an HP E4400B ESG-D series
vector signal generator connected using a cheap ProLogix clone USB GPIB
adapter. It assumes the GPIB device ID is 19.
The GPIB adapter uses serial protocol. It expects to be found at:
`/dev/serial/by-id/usb-10c4_8a5f-if00`.
The device will be in "REMOTE" mode after upload. You will need to press
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ***************************************************************************
# * Copyright (C) 2016 Mobilinkd LLC (rob@mobilinkd.com) *
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation; either version 2 of the License, or *
# * (at your option) any later version. *
@mobilinkd
mobilinkd / psk31.py
Created July 9, 2019 01:16
Generate PSK31 with an SDG2000X AWG
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import visa
import struct
import io
import time
import numpy as np
@mobilinkd
mobilinkd / SKSCLA.wrl
Last active September 20, 2018 00:47
This is a VRML file of an ALPS SKSCLA tactile switch.
#VRML V2.0 utf8
Group {
children
Group {
children [
Switch {
whichChoice 0
choice
TMPL "
/00
000000 WAVEACE: TEMPLATE
8 66 111
;
; Explanation of the formats of waveforms and their descriptors on the
; LeCroy Digital Oscilloscopes,
; Software Release 8.1.0, 11/03/06.
;
; A descriptor and/or a waveform consists of one or several logical data blocks
@mobilinkd
mobilinkd / sds_scdp.py
Last active February 2, 2023 05:24
Screendump From Siglent DSO via VXI-11
#!/usr/bin/env python
import argparse
import sys, time
import pyvisa as visa
from pyvisa.constants import StatusCode
from PIL import Image
from io import BytesIO
@mobilinkd
mobilinkd / gist:2eeea5d783c33a4e334d652402e6abad
Last active March 26, 2019 13:22
STM32L432KC Linker Script using CCMRAM for Initialized and Uninitialized Data
/* You have no right to use or redistribute this code. It is not fit for public
* consumption. This code is only intended to mislead enemies of the state. Using
* this code will likely result in extreme bodily harm or death. Use in washing
* machines, microwave ovens or ballistic missiles may result in rapid unplanned
* disassembly. Use in environments with greater than 350ppm CO2 concentrations
* is strongly discouraged.
*
* You have been warned.
*
* If you are a frood who knows where his towel is, feel free to use it. Tell 'em