Category Archives: Uncategorized

PlatformIO ESP32-IDE BLE Build + Upload

> Executing task: C:\Users\bachman0\.platformio\penv\Scripts\platformio.exe run --target upload <

Processing lolin32 (platform: espressif32; board: lolin32; framework: espidf)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing tool-mkspiffs @ ~2.230.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
PackageManager: Installing tool-espotapy @ ~1.1.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin32.html
PLATFORM: Espressif 32 > WEMOS LOLIN32
HARDWARE: ESP32 240MHz 320KB RAM (4MB Flash)
DEBUG: CURRENT(esp-prog) EXTERNAL(esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 0 compatible libraries
Scanning dependencies...
No dependencies
Retrieving maximum program size .pioenvs\lolin32\firmware.elf
Checking size .pioenvs\lolin32\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA:    [==        ]  15.5% (used 50940 bytes from 327680 bytes)
PROGRAM: [======    ]  63.9% (used 669841 bytes from 1048576 bytes)
Configuring upload protocol...
AVAILABLE: esp-prog, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM18
Uploading .pioenvs\lolin32\firmware.bin
esptool.py v2.6
Serial port COM18
Connecting....
Chip is ESP32D0WDQ6 (revision 0)
Features: WiFi, BT, Dual Core, Coding Scheme None
MAC: 30:ae:a4:05:b5:10
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 19744 bytes to 12106...
Wrote 19744 bytes (12106 compressed) at 0x00001000 in 0.2 seconds (effective 1006.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1228.8 kbit/s)...
Hash of data verified.
Compressed 669952 bytes to 408855...
Wrote 669952 bytes (408855 compressed) at 0x00010000 in 6.4 seconds (effective 837.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
====================================================================================== [SUCCESS] Took 25.04 seconds ======================================================================================

Terminal will be reused by tasks, press any key to close it.
ets Jun  8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun  8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5800
load:0x40078000,len:7924
load:0x40080000,len:5916
entry 0x40080314
I (29) boot: ESP-IDF 3.30103.190221 2nd stage bootloader
I (29) boot: compile time 09:41:35
I (29) boot: Enabling RNG early entropy source...
I (34) boot: SPI Speed      : 40MHz
I (38) boot: SPI Mode       : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (50) boot: ## Label            Usage          Type ST Offset   Length
I (57) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (65) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (72) boot:  2 factory          factory app      00 00 00010000 00100000
I (80) boot: End of partition table
I (84) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x203a0 (132000) map
I (138) esp_image: segment 1: paddr=0x000303c8 vaddr=0x3ffc0000 size=0x02c4c ( 11340) load
I (143) esp_image: segment 2: paddr=0x0003301c vaddr=0x40080000 size=0x00400 (  1024) load
I (146) esp_image: segment 3: paddr=0x00033424 vaddr=0x40080400 size=0x0cbec ( 52204) load
I (175) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x6eeb4 (454324) map
I (332) esp_image: segment 5: paddr=0x000aeed4 vaddr=0x4008cfec size=0x04a08 ( 18952) load
I (350) boot: Loaded app from partition at offset 0x10000
I (350) boot: Disabling RNG early entropy source...
I (351) cpu_start: Pro cpu up.
I (354) cpu_start: Starting app cpu, entry point is 0x40081380
I (0) cpu_start: App cpu up.
I (365) heap_init: Initializing. RAM available for dynamic allocation:
I (372) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (378) heap_init: At 3FFCC700 len 00013900 (78 KiB): DRAM
I (384) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (390) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (397) heap_init: At 400919F4 len 0000E60C (57 KiB): IRAM
I (403) cpu_start: Pro cpu start user code
I (85) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (136) BTDM_INIT: BT controller compile version [3828e65]
I (146) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (216) phy: phy_version: 4008, c9ae59f, Jan 25 2019, 16:54:06, 0, 0
I (446) GATTS_SPP_DEMO: app_main init bluetooth
I (476) GATTS_SPP_DEMO: EVT 0, gatts if 3
I (476) GATTS_SPP_DEMO: event = 0
I (476) GATTS_SPP_DEMO: gatts_profile_event_handler 489
I (476) GATTS_SPP_DEMO: gatts_profile_event_handler 492
I (486) GATTS_SPP_DEMO: gatts_profile_event_handler 495
I (496) GATTS_SPP_DEMO: EVT 22, gatts if 3
I (496) GATTS_SPP_DEMO: event = 16
I (506) GATTS_SPP_DEMO: The number handle =b
E (506) GATTS_SPP_DEMO: GAP_EVT, event 4
I (516) GATTS_SPP_DEMO: EVT 12, gatts if 3
I (516) GATTS_SPP_DEMO: event = c
E (516) GATTS_SPP_DEMO: GAP_EVT, event 6
I (526) uart: queue free spaces: 10
I (17706) GATTS_SPP_DEMO: EVT 14, gatts if 3
I (17706) GATTS_SPP_DEMO: event = e
I (17706) GATTS_SPP_DEMO: EVT 4, gatts if 3
I (17716) GATTS_SPP_DEMO: event = 4
E (17716) GATTS_SPP_DEMO: GAP_EVT, event 10
E (32296) GATTS_SPP_DEMO: uart_task do not enable data Notify
E (32426) GATTS_SPP_DEMO: uart_task do not enable data Notify
E (32546) GATTS_SPP_DEMO: uart_task do not enable data Notify
E (32676) GATTS_SPP_DEMO: uart_task do not enable data Notify
E (32816) GATTS_SPP_DEMO: uart_task do not enable data Notify
W (44766) BT_L2CAP: L2CA_EnableUpdateBleConnParams - unknown BD_ADDR 0028f83fb113
E (44766) BT_BTM: Device not found
W (44776) BT_APPL: BTA got unregistered event id 31
W (44776) BT_APPL: BTA got unregistered event id 31
I (44786) GATTS_SPP_DEMO: EVT 15, gatts if 3
I (44786) GATTS_SPP_DEMO: event = f
E (44796) GATTS_SPP_DEMO: GAP_EVT, event 8
E (44796) GATTS_SPP_DEMO: GAP_EVT, event 6
I (75196) GATTS_SPP_DEMO: EVT 14, gatts if 3
I (75196) GATTS_SPP_DEMO: event = e
I (75196) GATTS_SPP_DEMO: EVT 4, gatts if 3
I (75196) GATTS_SPP_DEMO: event = 4
I (79936) GATTS_SPP_DEMO: EVT 15, gatts if 3
I (79936) GATTS_SPP_DEMO: event = f
E (79936) GATTS_SPP_DEMO: GAP_EVT, event 6
I (106336) GATTS_SPP_DEMO: EVT 14, gatts if 3
I (106336) GATTS_SPP_DEMO: event = e
I (106336) GATTS_SPP_DEMO: EVT 4, gatts if 3
I (106346) GATTS_SPP_DEMO: event = 4
E (106396) GATTS_SPP_DEMO: GAP_EVT, event 10
W (136396) BT_BTM: btm_sec_clr_temp_auth_service() - no dev CB
E (136396) BT_BTM: Device not found
W (136406) BT_APPL: BTA got unregistered event id 31
W (136406) BT_APPL: BTA got unregistered event id 31
I (136416) GATTS_SPP_DEMO: EVT 15, gatts if 3
I (136416) GATTS_SPP_DEMO: event = f
E (136416) GATTS_SPP_DEMO: GAP_EVT, event 8
E (136426) GATTS_SPP_DEMO: GAP_EVT, event 6

Statistik / Stochastik

Mengenlehre

Grundbegriffe der Mengenlehre

Tutorials

Auf einen Blick: Formeln zur Wahrscheinlichkeitsrechnung
Satz von Bayes
Schnittmenge von 2 Wahrscheinlichkeiten berechnen
Grundbegriffe der Wahrscheinlichkeitsrechnung

Wikipedia

Wahrscheinlichkeit (Probabilität P)
Ergebnis (Stochastik)
Ereignis (Wahrscheinlichkeitstheorie)
Zufallsexperiment
Zufallsvariable
Satz von Bayes
Bedingte Wahrscheinlichkeit

Andreas Schneider / mathebibel.de

Unmögliches Ereignis
Zufallsvariable
Diskrete Zufallsvariable
Stetige Zufallsvariable

MatheGuru

Ereignis
Signifikanz, Signifikanzniveau
t-Test

YouTube

KIT

1: Grundräume, Ereignisse, Zufallsvariablen
02: Grundräume, Ereignisse, Zufallsvariablen, diskreter W-Raum

Kurzes Tutorium Statistik

Zufallsvariable, Massenfunktion, Dichtefunktion und Verteilungsfunktion
Bedingte Wahrscheinlichkeit, Satz von Bayes und stochastische Unabhängigkeit
Intervallschätzungen – Konfidenzintervalle

Mathematik in 5 Minuten by Alexander Stöger

Begriffe – Ereignismenge, Ereignis, Ergebnis für Stochastik/Statistik

Mathe by Daniel Jung

Stochastik (Statistik, Wahrscheinlichkeit, Pfadregeln, Binomialverteilung, Hypothesentest, etc.)

Grundlagen Wahrscheinlichkeit

Grundlagen Wahrscheinlichkeit, Laplace, Definition Wahrscheinlichkeit, Baumdiagramm, Pfadregeln, Kolmogorov, Zufallsexperiment

Zufallsgrößen, Zufallsvariable

Zufallsgrößen, Zufallsvariable, Wahrscheinlichkeitsverteilung, Stochastik

  • Zufallsgröße und Wahrscheinlichkeitsverteilung, Grundlagen mit Beispiel
  • Zufallsgröße, erwarteter Gewinn, Erwartungswert, Mathehilfe online
  • Faires Spiel, Zufallsgröße, Erwartungswert, Stochastik
  • Zufallsgröße, Erwartungswert, Faires Spiel, Unbekannte bestimmen
  • Standardabweichung, Erwartungswert bei Zufallsgrößen
  • Verteilungsfunktion, kumulativ, Stochastik, Wahrscheinlichkeitstheorie
  • Kumulierte (kumulative) Häufigkeit, anschaulich, Stochastik, Wahrscheinlichkeit
  • Zufallsexperiment, Definition, Voraussetzung, Stochastik
  • Wahrscheinlichkeitsverteilung erkennen, Stochastik, Zufallsgrößen, Statistik
  • Diskrete und stetige Verteilung, Stochastik, Statistik, Wahrscheinlichkeit
  • Diskrete und stetige Verteilung, Unterschiede, Schaubild, Stochastik
  • Wahrscheinlichkeitsverteilung, Münze, erst im 3 Wurf Wappen, Zufallsgröße
  • Zufallsgröße, Beispiel mit Baumdiagramm, durchschnittliche Kosten, Wahrscheinlichkeit
  • Zufallsgröße, Beispiel mit Münzen, Zufallsvariable, Stochastik
  • Beispiel Zufallsgröße/Gewinn, Drehscheibe mit Gradangabe
  • Erwartungswert Gewinn beim Glücksrad, Stochastik

Statistik

Statistik, Daten, Häufigkeit, Mittelwert, Median, Boxplot, Diagramme, Merkmal, Abweichung, Regression, Korrelation

Normalverteilung bzw. Gauß-Verteilung

Normalverteilung bzw. Gauß-Verteilung

t-Verteilung, t-Test, Students t-Test, Studentsche t-Verteilung

t-Verteilung, t-Test, Students t-Test, Studentsche t-Verteilung

Hypothesen testen, Alternativtest, Hypothesentest, Fehler beim Testen, Stochastik

Hypothesen testen, Alternativtest, Hypothesentest, Fehler beim Testen, Stochastik

Binomialverteilung, Bernoulli, B(n,p,k), Wahrscheinlichkeitsverteilung

Binomialverteilung, Bernoulli, B(n,p,k), Wahrscheinlichkeitsverteilung

Schätzen, Vertrauensintervalle, Konfidenzintervalle, Sigmaumgebung, Stochastik

Schätzen, Vertrauensintervalle, Konfidenzintervalle, Sigmaumgebung, Stochastik

Wikipedia: Binomialverteilung
Wahrscheinlichkeiten von Umgebungen
TI-nspire Binomialverteilung grafisch und mit Tabelle darstellen
Let’s Learn TI-Nspire™ CX kumulierte Wahrscheinlichkeiten, binomPDF, binomCDF

Bluetooth / BLE + Windows 10 (

a

Bluetooth
Bluetooth Reference
luetooth Programming with Windows Sockets
Bluetooth Devices Reference
Bluetooth
Bluetooth Profile Drivers
Using the Bluetooth Driver Stack
Bluetooth Low Energy Overview
Bluetooth Developer FAQ

Is there a simple example (desktop programming C++) for Bluetooth Low Energy devices?
Win32 Bluetooth LE APIs – Error C2373

gist.github.com/programmarchy/c9d02e22d58bfab3f8bb

How to connect Bluetooth LE in win32 console application
Windows 10 BLE
develop ble win32 application on windows 7

Python = PyBlueZ

Pybluez, Python extension module allowing access to system Bluetooth resources
github.com/pybluez/pybluez, Bluetooth Python extension module https://pybluez.github.io/
Downloading and installing PyBluez for a 64-bit Windows 10 PC?
PyBluez-win10 0.22

RS-485 / EIA-485 vs. RS-422 / EIA-422

1 STÜCKE neue Industrielle USB Auf RS485/422 Konverter Upgrade Schutz CH340 RS485 Konverter
Prolific PL2303 not supporting Windows 10, isn’t actually true
Fake PL2303 – how to install on Windows 8.1

Chips

  • ISL32433
  • SP3485
  • MAX490
  • MAX485
  • SP490EE

RS485

EIA-485
SparkFun According to Pete #54 – How RS-485 Works
CAN vs. RS-485: What’s the Difference?

RS422

RS485 vs. RS422

EIA-485
EIA-422

RS485, RS422 and RS232 – Differences and Typical Applications
Unterschied zwischen RS422 und RS485 Bus
Kurzer Vergleich der RS-232-, RS-422- und RS-485-Schnittstellen für die serielle Kommunikation

Grounding / Shielding / Masse

Firmen

RS485-Bussysteme
RS485 Application Notes

mikrocontroller.net

Galvanische Trennung
Optokoppler
RS-485 Schaltplan / Masse mitführen
Verständnisfrage RS485 + galvanische Trennung
RS-485: Masse bei galvanischer Isolation
Kein GND auf RS485
RS485 galvanische Trennung?

Tutorials

Galvanische Trennung
Der RS-485 Bus
RS-485 shield and ground wiring practice

Datasheets and Application Notes

AN-1057 Ten Ways to Bulletproof RS-485 Interfaces, (PDF: snla049b.pdf)