Skip to content

Document UCI network command NET_CMD_GET_RANDOM ($20) - #35

Open
JC-000 wants to merge 2 commits into
GideonZ:masterfrom
JC-000:uci-net-get-random
Open

JC-000 wants to merge 2 commits into
GideonZ:masterfrom
JC-000:uci-net-get-random

Conversation

@JC-000

@JC-000 JC-000 commented Oct 4, 2026 •

Copy link
Copy Markdown

Companion documentation for GideonZ/1541ultimate#953 (spec in GideonZ/1541ultimate#952).

Summary

  • Document NET_CMD_GET_RANDOM ($03 $20 <LEN_LSB> <LEN_MSB>) in uci/network_target.rst: 1 to 512 hardware random bytes from the ESP32 WiFi module, returned in one reply block.
  • List its statuses: 00,OK, 81,INVALID PARAMS, 82,PARAMETER(S) OUT OF RANGE, 86,INTERNAL ERROR, and the two new ones in this target, 87,NO ENTROPY SOURCE and 88,ENTROPY SOURCE BUSY (retry). A status other than 00,OK carries no data, and there is no software fallback.
  • Note which products serve it (Ultimate 64 and Ultimate 64 Elite, WiFi module firmware V1.7 or later; Ultimate 64 Elite II and C64 Ultimate, WiFi module firmware V1.15 or later; every other product answers 87) and why the bytes are only served while the module's radio runs, and that WiFi must be enabled on every product.

This describes the behaviour of GideonZ/1541ultimate#953 and nothing beyond it, so it should merge only with or after that PR. The text names no firmware version; which release it ships in is the maintainers' call.

Validation

  • The Sphinx HTML build was run for the first revision of this text (Sphinx 9.1.0, sphinx_rtd_theme 3.1.0, myst-parser 5.1.0; no warnings from uci/network_target.rst). It has not been re-run for the Elite II / C64 Ultimate additions.
  • Each statement was checked against Add NET_CMD_GET_RANDOM: hardware random bytes for C64 programs 1541ultimate#953's code (network_target.cc/.h, wifi_random.cc/.h, wifi_dedicated.cc, and u64ctrl's rpc_dispatch.c and wifi_modem.c) and its E2E scenarios.

Depends on GideonZ/1541ultimate#953.

🤖 Generated with Claude Code

Companion documentation for GideonZ/1541ultimate#953: the command
format, the 1..512 byte length, the single reply block, statuses 00,
81, 82, 86, 87 and 88, the products that serve it and the entropy
source behind it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Availability now covers WiFi module firmware V1.15 or later on those
products, the 87 status lists why each product refuses, and the entropy
paragraph names both of the ESP32's true-random sources.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant