Local wireless Flipnote sharing

Discovery, peer records, payload chunks and received-note handover.

Local sharing has separate discovery, identity, payload and completion owners. These application records are not raw 802.11 frames: the SDK/radio still supply over-the-air framing, acknowledgements and retries. Discovery/scoring/scan checks cover all four releases; the deeper transfer and handover checks are American V2. [1]

Discovery records

The callback count is an unsigned halfword at +0x0E with pointers at +0x10. Each accepted candidate is copied as 192 bytes. V2 requires information length 16–128, equal to user-data length plus sixteen, version one, group 0x1179 and flags bit zero set. The candidate's six-byte identity at +4 deduplicates it; version/group/length/flags are at +0x40/+0x44/+0x3C/+0x4A/+0x4B. User data begins +0x50. [1]

A duplicate replaces the whole record in place. An unseen peer appends until capacity; a new peer at capacity returns from the entire callback batch, skipping later candidates. V2 capacity is thirty-two, Japanese V1 eight. V1 requires only the lower length bound and its version/group/flag checks, without V2's upper/equality bounds. [1]

Packed score is ((field shifted right two) + (bit one set ? 0 : 25)) masked to one byte. Best-peer selection keeps the first strictly greatest result; ties retain the earlier record and zero also signals no suitable peer. It is not a dBm measurement. [1]

Scan and state ownership

The scan block is fifty-four bytes: result pointer, size 1,024, selected channel bitmap, dwell 600 in V2 or 320 in V1, six FF identity bytes, scan type one and empty SSID/match fields. V2 rotates a byte cursor through sixteen permitted bits and rereads the SDK mask on each attempt. No eligible bit returns zero. A separate mask removes 0x1000 from allowed channels; its reason is not established. [1]

The application pump keeps requested state, observed SDK state, in-flight command and expected next state. FFFFFFFF in-flight permits another decision; a matching callback clears it. Synchronous zero and asynchronous two are accepted; other results release the slot, with result eight starting a thirty-update error countdown. SDK state three increments a counter and schedules reset beyond three hundred. Parent setup measures up to fourteen channels, treating disallowed ones as one hundred; the first lowest measurement below one hundred wins, with channel one retained when all tie there. Counts are not verified elapsed times. [1]

Advertised identity

A parent advertises UTF-16 nickname, a UTF-16 NUL and eight raw bytes of its stored FSID: 2N + 10 bytes for N code units. The selected-peer reader finds a terminator within at most thirty-two units, then reads the following identity. That scan bound is not a permitted nickname-length claim. The child sends its own eight raw FSID bytes to destination bitmap one, port nine, priority zero. These local identity messages are not Hatena account authentication. [1]

Payload and completion ports

Port nine carries identity, command text or PPM bytes according to application state; port four carries completion. Sender 02020DE0 submits up to 480 bytes per call, destination bitmap two, port nine, priority zero. Accepted zero/two results wait for callback command fifteen to clear the waiting flag, sleeping with argument sixteen. Other results fail. Remaining decreases by full byte length while the source halfword pointer advances by length shifted right one. Ordinary full chunks stay contiguous; a final odd count is still submitted. [1]

After payload, the sender emits four ASCII bytes TEND on port four, clears sending and returns one without checking that final send result. It prepends no application sequence number or length prefix. SDK framing remains separate. [1]

Receive callbacks require state halfword twenty-one at +4. Before mode ten, an exact eight-byte message takes the identity path. Command mode copies at most 255 bytes into a terminated 256-byte buffer, with a separate empty-command action. Otherwise bytes append to the shared PPM buffer; fresh-transfer state clears the old count first. Completion requires radio state ten and TEND, then marks the local completion flag. [1]

Adoption and return values

Completion first clears its flag, sets handover state and copies 144 metadata bytes from received buffer +0x10 into the current metadata object. It then requests deferred shutdown. Temporary adoption copies received bytes into a distinct retained source and calls original Input with download_tmp.ppm. Its return one does not propagate Input's own return. Even a supplied verification failure can therefore be followed by the outer sound twenty-five/scene forty-four transition. [1]

In the accepted original-example case, Input snapshots metadata, installs its callback and updates acceptance state, but its path dispatcher recognises download_tmp and returns zero rather than assigning an ordinary public/SD path. Distinguish byte retention, validation, adoption, dispatch and outer transition; flattening them into one success flag loses this ordering. Separate original signature checks validate the unchanged example, without establishing altered-payload acceptance or durable saving. [1]

Shutdown and UI

Wrapper 02016A2C finalises completed received data before checking deferred shutdown. Shutdown requests zero, pumps, sleeps with argument one hundred and reads state until zero or a failed state read, then finishes the SDK. State three adds thirty to a retry count; this loop has no independent ceiling in the shown owner. The receive search lasts 180 updates, restarting scans at 120 and sixty before selecting at zero. Sender success uses sound twenty-four. These are original update sequences, not measured radio latency. [1]

Remaining work includes raw radio framing, complete command-text vocabulary, contention, cancellation and capacity/EULA scenes, complete regional transfer parity, full document restoration and durable receiving. No live radio or whole viewer execution is established by the component checks. [1]

A queued view is not an acceptance result

American V2 received-view caller 02041F58 enters 020178B8, retains the received buffer and byte count through 02024E08, and uses the temporary reader plus Input 0201E230. Connected genuine/altered-signature cases execute real RSA/SHA-1 verification. Genuine input reaches the document-restoration boundary, then temporary download_tmp naming reports class two, code one. Altered signature fails earlier with class two, code zero, leaving the metadata snapshot unchanged. [2]

The outer caller nevertheless queues sound twenty-five and scene forty-four in both cases. The forty-four-byte body of 020178B8 returns one unconditionally after entering Input and posting its application message; it does not pass a Boolean authentication result back. What scene forty-four constructs and how it handles the failed Input remain unresolved. No physical radio, visible playback or full scene transition follows from those queue events. [2]

The temporary-name branch of generic reader 02018740 enters retained-buffer reading before ordinary requested-length handling. Fixed-header checks on normal public paths therefore do not establish this branch's reachability or universal destination bounds. Import to editable pixels closes a different lower dependency, not the complete wireless receive path. [2]

Sources

  1. [1] Flipnote Decompilation Project — Original local wireless transfer and received-note adoption
  2. [2] Flipnote Decompilation Project — Received-note verification and later scene ownership

← All documentation