Skip to content

Instantly share code, notes, and snippets.

Avatar

Satoshi Takahashi yoronneko

  • Hiroshima, Japan
View GitHub Profile
@yoronneko
yoronneko / obs.conf
Created May 10, 2020
ssr2obs configuration file for CLASLIB
View obs.conf
#
#
# Setting for ssr2obs's conversion models
pos1-posmode =ssr2osr # (10:ssr2osr)
pos1-frequency =l1+l2 # (1:l1,2:l1+l2,3:l1+l2+l5)
pos1-tidecorr =on # (0:off,1:on)
pos1-posopt2 =off # receiver antenna model(0:off,1:on)
pos1-posopt3 =on # phase windup correction(0:off,1:on)
pos1-posopt6 =off # compensate time variation of ionosphere delay(0:off,1:ssr)
pos1-posopt8 =on # shapiro time delay correction (0:off,1:on)
@yoronneko
yoronneko / Makefile
Last active Jun 13, 2020
makefile for ssr2osr
View Makefile
# makefile for ssr2osr
CC = gcc
CFLAGS = \
-DENAGAL \
-DENAQZS \
-DENA_SSR2OSR \
-DLAPACK \
-DNFREQ=3 \
-DTRACE \
@yoronneko
yoronneko / Makefile
Last active Jun 13, 2020
makefile for ssr2obs
View Makefile
# makefile for ssr2obs
CC = gcc
CFLAGS = \
-DCSSR2OSR_VRS \
-DENAGAL \
-DENAGLO \
-DENAQZS \
-DLAPACK \
-DNEXOBS=2 \
View osr.conf
# Setting for ssr2osr's conversion models
pos1-posmode =ssr2osr # (10:ssr2osr,11:ssr2osr-fixed)
#pos1-frequency =l1+l2+l5 # (2:l1+l2, 3:l1+l2+l5)
pos1-frequency =l1+l2 # (2:l1+l2, 3:l1+l2+l5)
pos1-elmask =15 # (deg)
pos1-snrmask_r =on # (0:off,1:on)
pos1-snrmask_L1 =10,10,10,10,30,30,30,30,30
pos1-snrmask_L2 =10,10,10,10,30,30,30,30,30
pos1-snrmask_L5 =10,10,10,10,30,30,30,30,30
pos1-tidecorr =on # (0:off,1:on)
@yoronneko
yoronneko / sigfox-una-shieldv2s-temp-humid-pressure.c
Created Feb 22, 2020
Measurement of temperature, humidity, air pressure, and accelerations with Sigfox Una Shield V2S
View sigfox-una-shieldv2s-temp-humid-pressure.c
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <Adafruit_MMA8451.h>
#include <SIGFOX.h>
/*
#define BME_SCK 13
#define BME_MISO 12
@yoronneko
yoronneko / lte-m-sample.c
Created Feb 22, 2020
Wio LTE M1/NB1 sample program
View lte-m-sample.c
#include <WioCellLibforArduino.h>
#include <math.h>
#define L_EQUIP 100
#define L_MSG 100
#define T_SEND 1800
#define APN "soracom.io"
#define USERNAME "sora"
#define PASSWORD "sora"
#define WEBHOOK_URL "http://beam.soracom.io:8888/lte-m/"
@yoronneko
yoronneko / Vagrantfile
Created Feb 2, 2020
ISDB-T one-segment broadcasting reception configuration for GNU Radio with Vagrant
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.3"
config.vm.hostname = "gnuradio"
config.vm.provider :virtualbox do |vbox|
vbox.name = "gnuradio"
vbox.gui = true
vbox.cpus = 2
@yoronneko
yoronneko / osmosdr.conf
Created Feb 2, 2020
A configuration file for GNSS SDR.
View osmosdr.conf
[GNSS-SDR]
;######### GLOBAL OPTIONS ##################
GNSS-SDR.internal_fs_sps=4000000
;######### CONTROL_THREAD CONFIG ############
;ControlThread.wait_for_flowgraph=false
;######### SIGNAL_SOURCE CONFIG ############
;https://gnss-sdr.org/docs/sp-blocks/signal-source/#implementation-osmosdr_signal_source
SignalSource.implementation=RtlTcp_Signal_Source
View lora-client.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 by Satoshi Takahashi, all right reserved.
# https://s-taka.org/
# BSD 2-clause license
import re
import serial
import sys
import threading
View lora-server.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 by Satoshi Takahashi, all right reserved.
# https://s-taka.org/
# BSD 2-clause license
import re
import serial
import time