eddy
97a1eff6fa
chore: update bundled firmware.bin with SHA256 verification
2026-07-30 19:17:20 +02:00
eddy
69c4ee040d
chore: remove unused otaStatusText widget
2026-07-30 19:16:56 +02:00
eddy
44297d30ad
fix: check writeCharacteristic return value in sendOtaData
2026-07-30 19:16:28 +02:00
eddy
fcbf1e9b5f
feat: ESP MTU 512 + dynamic Android chunk size based on negotiated MTU
2026-07-30 19:15:55 +02:00
eddy
475c029512
feat: OTA notification handling with ACK/NAK retry logic
2026-07-30 19:14:23 +02:00
eddy
ea8bab4571
feat: incremental SHA256 verification before esp_ota_set_boot_partition
2026-07-30 19:13:27 +02:00
eddy
8a54367e30
docs: OTA improvements implementation plan
2026-07-30 19:08:18 +02:00
eddy
b1591b7bdb
docs: OTA improvements design spec
2026-07-30 19:04:34 +02:00
eddy
0513e7777d
fix: USB/OTA update flow - version check, chunk size, UX improvements
...
- MainActivity: suppress toast when activity not resumed, auto-navigate to
Settings on new firmware
- SettingsActivity: unified BLE/USB radio buttons + single update button,
version check before OTA, show dialog before loadFirmware, spinner timeout
- BleRelayManager: expose getEspVersion()
- OtaManager: reduce chunk size 500→248 to fit BLE MTU 255
- ESP: WRITE→WRITE_NR on OTA characteristic (was silently dropping data)
- Layout/strings: remove intro text, add method radio buttons
- Bump all firmware versions to v5
2026-07-30 18:59:08 +02:00
eddy
e05d57a32c
fix: detecteer ontbrekende OTA characteristic en toon USB-flash melding
2026-07-30 17:37:05 +02:00
eddy
7e45cb4c56
feat: toon 'Firmware is up-to-date' toast bij gelijke versies
2026-07-30 17:29:09 +02:00
eddy
57ef68fcab
fix: toast tekst ingekort, settings balk volledig klikbaar, version-check fallback voor oude ESP firmware
2026-07-30 17:25:57 +02:00
eddy
1499d840ce
fix: handle missing VERSION characteristic gracefully on old ESP firmware
2026-07-30 17:20:38 +02:00
eddy
7607361019
feat: add OTA UI strings
2026-07-30 17:14:29 +02:00
eddy
1988ae3898
feat: add BLE OTA update button to SettingsActivity
2026-07-30 17:14:28 +02:00
eddy
675504cbf5
feat: add OtaManager for BLE firmware update
2026-07-30 17:14:27 +02:00
eddy
2ab1c83655
feat: show toast when firmware update available via BLE
2026-07-30 17:14:26 +02:00
eddy
5235057b83
feat: add version read, OTA characteristic, BLE MTU 512 in BleRelayManager
2026-07-30 17:14:25 +02:00
eddy
6042eceeea
feat: add onFirmwareVersion callback to BleCallbacks
2026-07-30 17:14:24 +02:00
eddy
3e880c9635
feat: bump firmware to v2, update bundled firmware asset
2026-07-30 17:09:09 +02:00
eddy
a1b0daee37
feat: add BLE OTA characteristic with esp_ota integration
2026-07-30 17:08:48 +02:00
eddy
d34dfec1ce
feat: add firmware version BLE characteristic (VERSION_UUID)
2026-07-30 17:07:26 +02:00
eddy
5ed27a9b42
docs: BLE OTA firmware update implementation plan
2026-07-30 07:04:28 +02:00
eddy
6df65d9adf
docs: add version check on BLE connect to OTA spec
2026-07-30 06:56:04 +02:00
eddy
5524f173ac
docs: BLE OTA firmware update design spec
2026-07-30 06:30:56 +02:00
eddy
e069149fb4
docs: vibecoded notice boven README
2026-07-29 23:57:56 +02:00
eddy
15498d025a
chore: remove research docs from git tracking, add to .gitignore
2026-07-29 23:53:26 +02:00
eddy
0833327cea
fix: code review fixes — SharedPreferences docs, Log.e, dead notify code
2026-07-29 23:51:16 +02:00
eddy
36a20899be
docs: README volledig bijgewerkt — hardware, BLE, combined flow, serial output, NL vertalingen, ESP→module
2026-07-29 23:31:51 +02:00
eddy
7497019f0c
Update README title: Sylvia Touch Relay -> Project SylDa
2026-07-29 23:25:03 +02:00
eddy
df5154732c
Remove intro text from settings, fix button text color in dark mode
...
- Removed 'Sluit de ESP aan op USB en kies een actie.' from settings screen
- Button text now black on light gray background (readable in dark mode)
2026-07-29 23:16:53 +02:00
eddy
4c022b8259
Rename package com.eddy.atomrelay -> nl.eddydevink.sylda, Dutch translations, UI cleanup
...
- Package renamed to nl.eddydevink.sylda (matches eddydevink.nl domain + Sylda app name)
- All status texts translated to Dutch (Niet verbonden, Verbonden, Zoeken, etc.)
- Removed exchange key button, build number, and success toasts
- Button text: Firmware bijwerken, instruction text shortened
- App title changed to Sylda, 'instellingen' label next to settings gear
- ON/HOLD changed to AAN/VAST
2026-07-29 23:09:43 +02:00
eddy
d6d6f6674a
Combined flash + key exchange flow with version check and USB permission persistence
...
- Firmware: add VERSION? command returning BUILD_NR for version check
- Android: flash button checks firmware version first, skips flash if current
- After flash: auto key exchange via reboot detection (expectingReboot flag)
- device_filter.xml + intent-filter: USB permission 'always allow' checkbox
- singleTop + onNewIntent prevents unwanted SettingsActivity launch on USB connect
- platformio.ini: upload_port updated to /dev/ttyACM1
2026-07-29 22:56:40 +02:00
eddy
96162a16be
Fix BLE scan: add neverForLocation to BLUETOOTH_SCAN (results suppressed without it on API 31+)
2026-07-29 22:26:43 +02:00
eddy
3ce2610bc8
Fix hasPermissions: remove ACCESS_FINE_LOCATION from API>=S check (maxSdkVersion=30 excludes it)
2026-07-29 22:10:15 +02:00
eddy
a025e66b61
Simplify permission flow: standard ActivityCompat pattern with one-shot guard
2026-07-29 22:04:46 +02:00
eddy
ecdd693ffa
Reset permissionsRequested flag after deny and on return from settings
2026-07-29 22:01:07 +02:00
eddy
ac2767c2b6
Fix permission dialog flash loop in onResume
2026-07-29 21:58:44 +02:00
eddy
d005fef3f6
Remove manual download-mode instructions, library auto-resets ESP
2026-07-29 21:55:06 +02:00
eddy
106bd25e41
Replace magic numbers with named constants, move remaining hardcoded strings to strings.xml
2026-07-29 20:56:00 +02:00
eddy
c46db32cc7
Move all user-facing strings to strings.xml, add user-facing-text.md reference
2026-07-29 20:48:20 +02:00
eddy
5fb67fdcf0
Button color: gray default, green pressed via setBackgroundColor
2026-07-29 20:42:03 +02:00
eddy
5a1f1da329
Button color: GradientDrawable swap (teal/green), no tint magic
2026-07-29 20:34:58 +02:00
eddy
817f9a0602
Fix button background restore: save/restore original Drawable instead of tint list null -> gray -> teal → grijs blijft grijs na loslaten
2026-07-29 20:29:30 +02:00
eddy
a3142ea85b
Add user-defined button labels with color change on press
...
- PrefsHelper: PREF_LABEL1, PREF_LABEL2 constants
- SettingsActivity: EditText fields with Done-keyboard action to save labels
- MainActivity: buttons show user label, colorAccent on press, textAllCaps disabled
- activity_main.xml: textAllCaps=false for case-sensitive labels
2026-07-29 20:25:27 +02:00
eddy
a6e5df0052
fix: thread safety, GATT cleanup, onResume guard, relay2 docs
2026-07-29 20:05:26 +02:00
eddy
404f46acf8
refactor: extract BLE logic from MainActivity to BleRelayManager
2026-07-29 19:58:44 +02:00
eddy
0f3b695140
feat: add BleRelayManager sendRelayCommand and disconnect
2026-07-29 19:56:40 +02:00
eddy
a60f6cdc1c
feat: add BleRelayManager GATT callback (connect, UUID verify, notifications)
2026-07-29 19:54:31 +02:00
eddy
92585455c8
feat: add BleRelayManager scan logic with permissions
2026-07-29 19:51:11 +02:00