]> git.scottworley.com Git - tattlekey/log
tattlekey
8 months agoclient: Interleave accepting new button presses & re-sends
Scott Worley [Mon, 9 Oct 2023 19:35:15 +0000 (12:35 -0700)]
client: Interleave accepting new button presses & re-sends

8 months agoclient: queue_try_add_ignoring_errors()
Scott Worley [Mon, 9 Oct 2023 19:34:29 +0000 (12:34 -0700)]
client: queue_try_add_ignoring_errors()

8 months agoclient: Set up for multiple types of events to go into the queue
Scott Worley [Mon, 9 Oct 2023 18:56:40 +0000 (11:56 -0700)]
client: Set up for multiple types of events to go into the queue

8 months agoclient: Prefix all the config settings with "config_"
Scott Worley [Mon, 9 Oct 2023 18:32:22 +0000 (11:32 -0700)]
client: Prefix all the config settings with "config_"

8 months agoclient: Calculate 'ago' with a clock
Scott Worley [Mon, 9 Oct 2023 08:02:32 +0000 (01:02 -0700)]
client: Calculate 'ago' with a clock

8 months agoclient: Work in 1-second granularity
Scott Worley [Mon, 9 Oct 2023 07:49:54 +0000 (00:49 -0700)]
client: Work in 1-second granularity

8 months agoclient: Send each report multiple times
Scott Worley [Mon, 9 Oct 2023 03:49:43 +0000 (20:49 -0700)]
client: Send each report multiple times

UDP is unreliable.

It would be better to re-send over a much longer interval, interleaving
re-sends from different presses.  Do this simple re-sending for now.

8 months agoclient: Less chatty with the LED
Scott Worley [Mon, 9 Oct 2023 03:42:35 +0000 (20:42 -0700)]
client: Less chatty with the LED

8 months agoclient: debounce
Scott Worley [Mon, 9 Oct 2023 02:15:49 +0000 (19:15 -0700)]
client: debounce

8 months agoclient: Initial wifi connection time: 10s → 90s
Scott Worley [Sun, 8 Oct 2023 07:14:57 +0000 (00:14 -0700)]
client: Initial wifi connection time: 10s → 90s

No reason to give up so aggressively.

Be robust against the AP restarting, which takes ~1 minute.

8 months agoclient: Don't sleep in interrupt context
Scott Worley [Sun, 8 Oct 2023 07:13:36 +0000 (00:13 -0700)]
client: Don't sleep in interrupt context

8 months agoclient: Respond to button press
Scott Worley [Sun, 8 Oct 2023 06:29:49 +0000 (23:29 -0700)]
client: Respond to button press

8 months agoclient: Explain config settings
Scott Worley [Sun, 8 Oct 2023 04:45:13 +0000 (21:45 -0700)]
client: Explain config settings

8 months agoclient: net: Fix port byte order
Scott Worley [Sun, 8 Oct 2023 04:34:50 +0000 (21:34 -0700)]
client: net: Fix port byte order

Docs ( https://www.nongnu.org/lwip/2_0_x/group__udp__raw.html ) say
"ipaddr & port are expected to be in the same byte order as in the pcb,"
which apparently means _don't_ run it through htons().

8 months agoclient: Send UDP packets
Scott Worley [Sun, 8 Oct 2023 04:08:58 +0000 (21:08 -0700)]
client: Send UDP packets

8 months agoclient: Move config to config.c
Scott Worley [Sun, 8 Oct 2023 01:18:39 +0000 (18:18 -0700)]
client: Move config to config.c

8 months agohousing: Extra length for cord grip
Scott Worley [Sat, 7 Oct 2023 18:28:42 +0000 (11:28 -0700)]
housing: Extra length for cord grip

8 months agohousing: Grip board tighter
Scott Worley [Sat, 7 Oct 2023 18:16:00 +0000 (11:16 -0700)]
housing: Grip board tighter

8 months agohousing: Flatten
Scott Worley [Sat, 7 Oct 2023 18:11:57 +0000 (11:11 -0700)]
housing: Flatten

8 months agohousing: Adjust board fit
Scott Worley [Sat, 7 Oct 2023 15:33:13 +0000 (08:33 -0700)]
housing: Adjust board fit

8 months agohousing: Basic shape
Scott Worley [Sat, 7 Oct 2023 09:08:54 +0000 (02:08 -0700)]
housing: Basic shape

Not solved yet: Cord grip/anchor

8 months agohousing: Start
Scott Worley [Sat, 7 Oct 2023 08:18:21 +0000 (01:18 -0700)]
housing: Start

8 months agoclient: Move blink stuff to separate file
Scott Worley [Sat, 30 Sep 2023 01:48:53 +0000 (18:48 -0700)]
client: Move blink stuff to separate file

8 months agoclient: Connect to wifi
Scott Worley [Fri, 29 Sep 2023 21:56:48 +0000 (14:56 -0700)]
client: Connect to wifi

8 months agoclient: Fancier blinking
Scott Worley [Fri, 29 Sep 2023 21:48:28 +0000 (14:48 -0700)]
client: Fancier blinking

8 months agoclient: Build wifi deps
Scott Worley [Fri, 29 Sep 2023 21:40:01 +0000 (14:40 -0700)]
client: Build wifi deps

8 months agoclient: Get lwipopts.h from pico-examples
Scott Worley [Fri, 29 Sep 2023 21:39:32 +0000 (14:39 -0700)]
client: Get lwipopts.h from pico-examples

8 months agoclient: Build in a Debian VM
Scott Worley [Fri, 29 Sep 2023 19:37:21 +0000 (12:37 -0700)]
client: Build in a Debian VM

This finally makes it work.  Hurray!

Other things I tried that didn't help:
  * Other versions of cross gcc (8, 9, 10, 11 12)
  * Other versions of host gcc (10)
  * Other versions of pico-sdk (1.3.1, 1.4.0)

arm-none-eabi-gcc as packaged in Debian works.
arm-none-eabi-gcc as packaged in Nix doesn't.
I haven't yet looked further into why.

8 months agoclient: Use standard <nixpkgs>
Scott Worley [Fri, 29 Sep 2023 19:31:25 +0000 (12:31 -0700)]
client: Use standard <nixpkgs>

Do the "fetchSubmodules = true;" override here

8 months agoclient: Install the .uf2
Scott Worley [Fri, 29 Sep 2023 19:21:25 +0000 (12:21 -0700)]
client: Install the .uf2

8 months agoclient: Switch to pico_w blink example
Scott Worley [Fri, 29 Sep 2023 19:20:53 +0000 (12:20 -0700)]
client: Switch to pico_w blink example

9 months agoclient: Start with the 'blink' example
Scott Worley [Thu, 28 Sep 2023 00:46:26 +0000 (17:46 -0700)]
client: Start with the 'blink' example