Skip to content

Instantly share code, notes, and snippets.

@eggman
eggman / Bluetooth5_overview_j.md
Last active February 8, 2022 10:38
Bluetooth Specification 5.0 (Core_v5.0.pdf) Overview の日本語訳

Bluetooth Specification 5.0 (Core_v5.0.pdf) の Architecture & Terminology Overview P.166 - P264 の日本語訳です。

  • 内容については無保証です。
  • 翻訳の間違い等は、twitterのDM等でご連絡をお願いします。
  • どうもありがとう Google翻訳

gitbookで編集して公開しました。

https://www.gitbook.com/book/eggman/bluetooth-5-overview/details

Realtek audio codec

I2S with stereo AMP

  • ALC5631 / ALC5631Q
  • single I2S
  • ALC5631W / ALC5631V
  • dual I2S
  • ALC5638
  • three I2S

I2S ADCについて

なるべく簡単に使えるI2S ADCについて調べました。

  • 電源電圧 3.3V単一が良い
  • XTALのみを繋げば良いタイプと、外部の回路が必要な場合がある。
  • PLLがあると48KHzと44.1KHzの両対応が可能 WM8978
  • I2Cで設定しなくても動くタイプもある。

ADCのみ

eloop の RTOS

eloop_run()

while()の中のイベント待ち。

P: イベントフラグ待ち

twai_flg(flagid, flagptn, EVT_OR, timeout);

wpa authenticator version : hostap-2.6

set key

unicast addres is ptk. broadcast address is gtk.

common

@eggman
eggman / spectrum1.java
Last active August 25, 2017 12:27
example draw spectrum and waterfall (fixed value).
package com.example.eggman.spectrum1;
import android.graphics.Bitmap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.View;
import websocket
import time
import sys
from datetime import datetime, timedelta, timezone
import sched, time
import json
JST = timezone(timedelta(hours=+9), 'JST')
import websocket
import time
import sys
from datetime import datetime, timedelta, timezone
import sched, time
import json
JST = timezone(timedelta(hours=+9), 'JST')
#
# https://www.bitstamp.net/websocket/
#
from datetime import datetime, timedelta, timezone
import sched, time
import json
import pusherclient
JST = timezone(timedelta(hours=+9), 'JST')