V10.19: PROX page redraws on a reading; the link as seen

On V10.18 the PROX page said NOT CONNECTED while the BLUETOOTH row said CONN.
The page redraws only when its signature changes, and bp.have was not in it:
four RSSI words of 0 (and PROX 0, not calibrated) changed nothing, so it stayed
on NOT CONNECTED. Now bp.have / bp.seen are in it, and the page shows the link
as seen at the right of the LEVEL line: L1 / L0 (the radio's link), the
packets the RSSI hook saw / the good packets received (bt_seg.c
bt_seg_rxdiag, 16 bits each), so the next photo says whether readings arrive.

App 568,740 B (15,596 B free).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-10-31 23:33:48 +00:00
1 parent 8d292945ae
commit aaecf0e81e
6 files changed
+702 -686

No files matched your search

+2
View File
@@ -144,6 +144,8 @@ uint32_t bt_seg_status(void)
return (uint32_t)ble_connected() | (uint32_t)ble_midi_ready() << 1 | (uint32_t)bs_conns << 8;
}
/* (V10.19) PROX's diagnostics: [15:0] the packets the RSSI hook saw, [31:16] the good packets the link received */
uint32_t bt_seg_rxdiag(void) { return (bs_rw & 0xFFFFu) | (uint32_t)(ble_hw_stat.rx & 0xFFFFu) << 16; }
/* (V10.14) the RSSI words since *rd (the newest 16 packets at most: a main loop held up by a flash write loses the
* older); (V10.18) four words a packet, w[4 * i .. 4 * i + 3] */
uint32_t bt_seg_rssi(uint16_t *w, uint32_t *rd)
+2
View File
@@ -32,6 +32,7 @@ static int bt_hw_start(uint8_t addr[6]); /* bt_hw.c: 0 started, 1
static void bt_hw_enable(int on);
static uint32_t bt_hw_status(void);
static uint32_t bt_hw_rssi(uint16_t *w, uint32_t *rd); /* bt_hw.c: the RSSI words since *rd (V10.14) */
static uint32_t bt_hw_rxdiag(void); /* bt_hw.c: (V10.19) RSSI hook / good packets, 16 bits each */
static int bt_hw_seg(void); /* bt_hw.c: 1 the segment installed is this build's (checked once) */
/* (V10.13) code and constants of the app's own that live in the segment (app.ld .bt: flash 0xEA000, outside the full
* app slot), cold and never needed by the sound: read or called only once bt_hw_seg() said the segment is this build's
@@ -44,6 +45,7 @@ static int bt_hw_start(uint8_t addr[6]) { (void)addr; return 2; } /* (the host
static void bt_hw_enable(int on) { (void)on; }
static uint32_t bt_hw_status(void) { return 0; }
static uint32_t bt_hw_rssi(uint16_t *w, uint32_t *rd) { (void)w, (void)rd; return 0; }
static uint32_t bt_hw_rxdiag(void) { return 0; }
static int bt_hw_seg(void) { return 1; } /* (the host: everything in the one image) */
#define BTAPP_RO
#define BTAPP_FN
+2
View File
@@ -10,6 +10,7 @@ int bt_seg_start(const uint8_t addr[6]);
void bt_seg_enable(int on);
uint32_t bt_seg_status(void);
uint32_t bt_seg_rssi(uint16_t *w, uint32_t *rd);
uint32_t bt_seg_rxdiag(void);
/* build.py finds this by name and writes the segment's payload length and CRC-32 into the image (a section of its own,
* after the code: in .rodata it would move the sound's tables, tools/audio_layout.txt 'r' rows) */
__attribute__((used, section(".rodata.btwant"))) static const volatile uint32_t bt_want[3] = {0x544E5742u, 0u, 0u}; /* BWNT */
@@ -70,3 +71,4 @@ static int bt_hw_start(uint8_t addr[6])
static void bt_hw_enable(int on) { bt_seg_enable(on); }
static uint32_t bt_hw_status(void) { return bt_up == BT_RUN ? bt_seg_status() : 0u; }
static uint32_t bt_hw_rssi(uint16_t *w, uint32_t *rd) { return bt_up == BT_RUN ? bt_seg_rssi(w, rd) : 0u; }
static uint32_t bt_hw_rxdiag(void) { return bt_up == BT_RUN ? bt_seg_rxdiag() : 0u; }
+1 -1
View File
@@ -41,7 +41,7 @@
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
#endif
#ifndef FELUCCA_VERSION
#define FELUCCA_VERSION "V10.18" /* (2026-10-31) V10.18: PROX finds the RSSI reading that moves (the four RSSI words of each packet, twelve readings, the widest range on the link; kept once FAR / NEAR is stored), the page shows the four words. (2026-10-31) V10.17: SAVE > SECTIONS KNOB 2 ERASE (the section empty again, RAM and flash; the music stays). (2026-10-31) V10.16: SEQ > EUCLID's VARY in four turns (A A' A'' B, each moved anew, the motif answered); SEQ > MUTATE (EVERY 1..16 bars, AMOUNT, MODE ORBIT / DRIFT / PULSE, WHAT GROOVE / RHYTHM / FEEL / ALL; OCT+ a mutation now, OCT- back to the anchor). (2026-10-31) V10.15: VOICE's English dictionary in the Bluetooth segment (without it: the letter rules). (2026-10-31) V10.14: PROX, a modulation source from the Bluetooth signal (a hand near the antenna), calibrated on MENU > SYSTEM > BLUETOOTH ON + OCT+ (OCT- FAR, OCT+ NEAR). (2026-10-31) V10.13: BLE-MIDI in and out (what a central sends plays as USB-MIDI, MIDI OUT goes to it too); ABOUT's credits in the Bluetooth segment (the app slot had 128 B free). (2026-10-31) V10.12: MENU > SYSTEM > BLUETOOTH OFF / ON: a BLE-MIDI peripheral "JIANT FM-1" (advertising, connectable; MIDI not routed yet), Optimist's stack in the Bluetooth segment at 0xEA000 (written by the update loader from the package's bt.bin), live RF calibration, a boot guard. (2026-10-31) V10.11: the supplies set up as stock V15 does (the DC-DC on, hal/fm1_power.h from Melodee), the radio's prerequisite; 0xEA000..0xFBFFF reserved for the Bluetooth segment. (2026-10-31) V10.10: the radio's calibration kept: the update loader keeps the stock VM sector (0xE8000: RF trims, BT address) but its record's 256 B; VM_READ (editor 80) reads that area for web/btcheck. (2026-10-31) V10.9: MENU > LARGE shows the animations (HOME: the six tracks' creatures in the strip; EDIT: the engine's). (2026-10-31) V10.8: testers' fixes: GEN parts set OFF stay off; GEN keeps its GENRE between visits; SEQ > STEP KNOB 4 VEL (1..127, then ACC SLD A+S); delay 1/4D 1/8D 1/16D; less pitch wobble from the generators (no macro on PITCH, pitched delay seldom, octaves); STOP TO EDIT says SONG PLAYS. (2026-10-31) V10.7: SEQ > EUCLID on a kit: LANE ALL first (DENSITY: a whole usable kit), a lane picked writes that lane alone; EDIT + PRESETS jumps between engines; the kit's SEQ dice plays in every genre; EUCLID's HITS exact (VARY moved them only); REC held alone and let go: UNDO (again: REDO). (2026-10-31) V10.6: SEQ > EUCLID and MODES (a euclidean pattern generator, melodies in the key) in MUTATE's place; MUTATE and SEQ TOOLS' RANDOM COOK BEAT gone. (2026-10-31) V10.5: automation thinned (a recording at the stop, the 64 when full) into holds and RAMPs. (2026-10-31) V10.4: ARRANGE / TIMELINE: OCT- deletes the row picked (DELETE ROW?). (2026-10-31) V10.3: TIMELINE: the lines between lanes soft (the block's colour, darker), the rows' edges stronger. (2026-10-31) V10.2: TIMELINE keeps the black line between lanes (only the rows touch); SAVE composes first: TIMELINE SECTIONS PROJECTS ARRANGE TOOLS USER PRESETS. (2026-10-30) V10.1: TIMELINE blocks fill the lanes (no black gaps between rows or tracks). (2026-10-30) JIANT FM V10: add15-beta6 as the new base (TIMELINE, VAR, ADD, official V16 both ways); the version history before it: the git log of the add15 line (codex/add15-private) */
#define FELUCCA_VERSION "V10.19" /* (2026-10-31) V10.19: the PROX page redraws when a reading arrives (all-zero words left it on NOT CONNECTED) and shows the link as seen: L (link), the RSSI hook's packets / the good packets. (2026-10-31) V10.18: PROX finds the RSSI reading that moves (the four RSSI words of each packet, twelve readings, the widest range on the link; kept once FAR / NEAR is stored), the page shows the four words. (2026-10-31) V10.17: SAVE > SECTIONS KNOB 2 ERASE (the section empty again, RAM and flash; the music stays). (2026-10-31) V10.16: SEQ > EUCLID's VARY in four turns (A A' A'' B, each moved anew, the motif answered); SEQ > MUTATE (EVERY 1..16 bars, AMOUNT, MODE ORBIT / DRIFT / PULSE, WHAT GROOVE / RHYTHM / FEEL / ALL; OCT+ a mutation now, OCT- back to the anchor). (2026-10-31) V10.15: VOICE's English dictionary in the Bluetooth segment (without it: the letter rules). (2026-10-31) V10.14: PROX, a modulation source from the Bluetooth signal (a hand near the antenna), calibrated on MENU > SYSTEM > BLUETOOTH ON + OCT+ (OCT- FAR, OCT+ NEAR). (2026-10-31) V10.13: BLE-MIDI in and out (what a central sends plays as USB-MIDI, MIDI OUT goes to it too); ABOUT's credits in the Bluetooth segment (the app slot had 128 B free). (2026-10-31) V10.12: MENU > SYSTEM > BLUETOOTH OFF / ON: a BLE-MIDI peripheral "JIANT FM-1" (advertising, connectable; MIDI not routed yet), Optimist's stack in the Bluetooth segment at 0xEA000 (written by the update loader from the package's bt.bin), live RF calibration, a boot guard. (2026-10-31) V10.11: the supplies set up as stock V15 does (the DC-DC on, hal/fm1_power.h from Melodee), the radio's prerequisite; 0xEA000..0xFBFFF reserved for the Bluetooth segment. (2026-10-31) V10.10: the radio's calibration kept: the update loader keeps the stock VM sector (0xE8000: RF trims, BT address) but its record's 256 B; VM_READ (editor 80) reads that area for web/btcheck. (2026-10-31) V10.9: MENU > LARGE shows the animations (HOME: the six tracks' creatures in the strip; EDIT: the engine's). (2026-10-31) V10.8: testers' fixes: GEN parts set OFF stay off; GEN keeps its GENRE between visits; SEQ > STEP KNOB 4 VEL (1..127, then ACC SLD A+S); delay 1/4D 1/8D 1/16D; less pitch wobble from the generators (no macro on PITCH, pitched delay seldom, octaves); STOP TO EDIT says SONG PLAYS. (2026-10-31) V10.7: SEQ > EUCLID on a kit: LANE ALL first (DENSITY: a whole usable kit), a lane picked writes that lane alone; EDIT + PRESETS jumps between engines; the kit's SEQ dice plays in every genre; EUCLID's HITS exact (VARY moved them only); REC held alone and let go: UNDO (again: REDO). (2026-10-31) V10.6: SEQ > EUCLID and MODES (a euclidean pattern generator, melodies in the key) in MUTATE's place; MUTATE and SEQ TOOLS' RANDOM COOK BEAT gone. (2026-10-31) V10.5: automation thinned (a recording at the stop, the 64 when full) into holds and RAMPs. (2026-10-31) V10.4: ARRANGE / TIMELINE: OCT- deletes the row picked (DELETE ROW?). (2026-10-31) V10.3: TIMELINE: the lines between lanes soft (the block's colour, darker), the rows' edges stronger. (2026-10-31) V10.2: TIMELINE keeps the black line between lanes (only the rows touch); SAVE composes first: TIMELINE SECTIONS PROJECTS ARRANGE TOOLS USER PRESETS. (2026-10-30) V10.1: TIMELINE blocks fill the lanes (no black gaps between rows or tracks). (2026-10-30) JIANT FM V10: add15-beta6 as the new base (TIMELINE, VAR, ADD, official V16 both ways); the version history before it: the git log of the add15 line (codex/add15-private) */
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+10 -1
View File
@@ -415,6 +415,15 @@ BTAPP_FN static void bt_prox_panel(const aafont_t *fx, const aafont_t *fm, const
} else
str_cpy(b, BP_S[2], sizeof b);
cv_text(10, 64 - AF_S_CAP_Y, fs, b, T_TEXT);
{ /* (V10.19) the link as seen: the radio's link, the RSSI hook's
* packets, the good packets received (16 bits each) */
uint32_t d = bt_hw_rxdiag();
str_cpy(b, bt_hw_status() & 1u ? "L1 " : "L0 ", sizeof b);
fmt_int(b + str_len(b), (int32_t)(d & 0xFFFFu));
str_cpy(b + str_len(b), "/", 2);
fmt_int(b + str_len(b), (int32_t)(d >> 16));
cv_text_r(228, 64 - AF_X_CAP_Y, fx, b, T_DIM, T_SURF);
}
if (bp.conn && bp.have) { /* (V10.18) the four words, to read off the screen */
for (k = 0; k < 16u; k++)
b[k + k / 4u] = "0123456789ABCDEF"[bp.w4[k / 4u] >> (12u - 4u * (k & 3u)) & 15u];
@@ -447,7 +456,7 @@ BTAPP_FN static void bt_prox_input(uint32_t up, uint32_t dn)
ui_message(BP_S[7u + up]);
}
}
static uint32_t bt_prox_sig(void) { return ui.menu == 3 ? (uint32_t)mod_prox * 31u + bp.raw * 977u + bp.w4[0] * 13u + bp.w4[1] * 17u + bp.w4[2] * 19u + bp.w4[3] * 23u + bp.src * 29u + bp.conn * 5u + BT_CAL[0] * 3u + BT_CAL[1] * 7u : 0u; }
static uint32_t bt_prox_sig(void) { return ui.menu == 3 ? (uint32_t)mod_prox * 31u + bp.raw * 977u + bp.w4[0] * 13u + bp.w4[1] * 17u + bp.w4[2] * 19u + bp.w4[3] * 23u + bp.src * 29u + bp.have * 37u + bp.seen * 41u + (bt_hw_rxdiag() >> 4) * 43u + bp.conn * 5u + BT_CAL[0] * 3u + BT_CAL[1] * 7u : 0u; }
static void confirm_open(uint32_t kind, uint32_t trk); /* (0.6.58) INIT SYSTEM: ui_input.c */
static void draw_menu(void)
+685 -684
View File
File diff suppressed because it is too large. Load diff