Skip to content

Instantly share code, notes, and snippets.

View psolyca's full-sized avatar

Damien Gaignon psolyca

View GitHub Profile
@psolyca
psolyca / tf101_postmarketos.md
Last active November 19, 2022 17:09
postmarketOS TF101 Asus eepad Transformer
@psolyca
psolyca / Huawei_protocol.lua
Created January 10, 2022 22:31
Wireshark dissector for Huawei band protocol
----------------------------------------
--- Definitions
----------------------------------------
--- Huawei protocol used in Wireshark to dissect packets
--- @class Proto
local huawei_proto = {}
--- @class hpFields
local hpFields = {}
@psolyca
psolyca / RPi3_ALARM_BTLE.md
Last active September 20, 2021 21:03
Raspberry Pi 3 - ArchLinuxARM - BluetoothLE - Huawei LPv2

How-to to install bluetooth and run huawei-lpv2 on the Rapsberry Pi 3B (v1.2).
Read the whole guide before proceeding.

ArchLinux ARM

Installation

Follow this guide to install Arch on a SDCard.

To install it on a USB stick, you need to :

  1. install ArchLinux ARM on a SDCard
  2. install ArchLinux ARM on the stick the same way
@psolyca
psolyca / honor_band_4_re.md
Last active January 6, 2024 18:21
Honor Band 4 RE

Introduction

Lots of works have been made to communicate with the Honor Band 3/4 in order to be used with GadgetBridge.
RE is followed in issue 1021 BTW, communication where not complete and the RE was done on BLE LPv2.
A new protocol LPv3 appeared.

Goal

RE the LPv3 BLE protocol and integrate Honor devices in GadgetBridge.

Keys

@psolyca
psolyca / github-deploy-keys.md
Last active May 4, 2020 15:30
Github deploy Key for Evetrade resources #evetrade

Keybase proof

I hereby claim:

  • I am psolyca on github.
  • I am psolyca (https://keybase.io/psolyca) on keybase.
  • I have a public key ASAdtTpaFQ0gW7gHLU-UjjaISGmxwoucy8MfU7LjKYdcNAo

To claim this, I am signing this object:

@psolyca
psolyca / autoexec_preset_res.ash
Last active May 4, 2020 15:25
4 presets for live streaming through Yi 4k #yi4k
# All multiplicators are the same for example purpose
# Change them to suit your needs with
# https://gist.github.com/psolyca/722b9b9e32e6c66e29f9b4c5788ea50f to choose a base bitrate
# https://gist.github.com/psolyca/57a4025b0bba5216db728e1054c04a2d to choose bitrate multiplicators
# https://gist.github.com/psolyca/d83bd3594c94c6e3fd17d7ae636678ff to choose a resolution and the number associate
# Resolution depend on the choice between NTSC and PAL on the cam.
# Following resolutions are NTSC format.
# Only one base multiplicator for all presets
@psolyca
psolyca / video_bitrates_base_table_live.txt
Created November 6, 2018 12:58
Video bitrates base table for live for Yi4k #yi4k
0x49742400 #1.00 Mbps
0x49927C00 #1.20 Mbps
0x49989680 #1.25 Mbps
0x49B71B00 #1.50 Mbps
0x49D59F80 #1.75 Mbps
0x49F42400 #2.00 Mbps
@psolyca
psolyca / video_bitrates_multiplicator_table_live.txt
Last active May 4, 2020 15:31
Video bitrates multiplicator table for live for Yi4k #yi4k
The values in the video bitrate table are stored as 32 bit floating point values :
0x3D4CCCCD #0.05
0x3DCCCCCD #0.1
0x3E19999A #0.15
0x3E4CCCCD #0.2
0x3E800000 #0.25
0x3E99999A #0.3
0x3EB33333 #0.35
0x3ECCCCCD #0.4
@psolyca
psolyca / live_video_bitrates_addresses_table.md
Last active May 4, 2020 15:29
Live video bitrates addresses table for Yi4k #yi4k
Addresses Resolutions
0xA06E50BC 1920x1080p
0xA06E50FC 1280x720p
0xA06E513C 848x480p
0xA06E517C 640x360p