Team Status Report for 2026-12-05

This week we had our final presentation. We continued to work on the overall system, and we’ve received our final PCB design, which has passed initial tests and will be fabricated tomorrow. Sophia verified the updated power circuitry on the new PCB, Tucker worked on software integration, performance analysis, and the 3D printed enclosure revision, and Maggie worked on messaging, location tracking, and security verification.

The primary risk now is in the fabrication and function of the PCB. This upcoming week, we’re finishing remaining tests, and adjusting our LoRa test with some feedback from Prof. Zajdel. We’re also preparing for our final demo, as well as working on our poster, video, and final report.

Below is a high-level description of our unit and system tests, and the adjustments we’ve made.

TestFindingsAdjustments
Message transmission: send 100 LoRa messages at different ranges without ARQ in an urban area. Measure the success rate of receiving packets. The target is 95% reception at 1km.We saw reception fall off to 30% around 500m, which is substantially shorter than expected from LoRa.We adjusted spreading factor and code rate. We also plan to retry our test in a different space.
Location tracking: record GPS samples for 10m under open sky and in buildings. The target is mean error and mean absolute error of under 10m outdoors.We were well within target, with less than 5m error and MAE. We observed that failures were mostly due to failure to acquire a lock, especially in some buildings.For the most part, knowing location down to a building is practical. Therefore, when the GPS cannot get a lock, we can just not update the location. The increased cost of a better sensor is impractical, and estimation with IMU is unlikely to provide fundamentally useful data.
Emulator unit tests: various unit tests exercising specific emulated devices. The target is that all pass, as all model behavior that PalmOS and applications use.All pass.We did not have any regressions, so we did not need to adjust.
Emulator integration tests and automated benchmarks: run the PalmOS boot process, and test touch detection and LoRa. Interacts through emulator interfaces only. The target is that all tests pass.All pass.Optimizations substantially reduced the runtime, though it was also measured that improvements to boot time (which dominates the tests) are moderately orthogonal to interaction time.
Integrated emulator interactive tests and benchmarks: run 11 first-party and 10 third-party apps, including 4 that use IrDA. Ensure correct function and measure tap-to-frame latency. Tap-to-frame latency is now 100ms.Function is correct. Latency on the integrated device was too high by around a factor of 2. IrDA has a noticeable latency on the PalmOS side, which we don’t control.Software was optimized to run faster.

We adjusted the latency requirement. It was originally 33ms from tap, but this is not a well-defined target, because PalmOS requires the pen to be held down for more than a frame to detect a tap.
Integrated emulator interactive tests and benchmarks: various informal tests to isolate bottlenecks.Identified bottlenecks and the best places to look for optimizations. For example, the emulator spends most of its time (96+%) running OS code and is bottlenecked by instructions per instruction.Actively working on improvements to ROM execution, which has the largest ROI while introducing the least risk.
Security: Test AES-256-GCM compatibility with OpenSSL, deliberately modified packets, keys, and replayed packetsAll single-bit modifications, replay, and wrong key rejected. We would add another physical radio to try capture/decryption from a third-device to verify eavesdropping resistance.
Sizing: make sure components fit, and that the assembled device is within the 170x90x40mm dimension and 250g weight limitThe previous enclosure fit the display and USB port but the button openings were oversized, as well as printing quality issue.We revised the button openings and ledges, and we will print the updated housing for the final PCB assembly.

Design changes resulting from testing:

Compared to the previous designs, the final PCB includes additional 0-ohm-resistor bypass options. For the radio, we changed the configuration from SF7 to SF10 and coding rate from 4/5 to 4/7 to balance range, speed, and reliability based on the testing results. For emulator performance, Tucker plans to experiment with targeting frequently executed ROM functions through pre-cross-compilation.

We are slightly behind on the assembly the latest PCB and making the revised enclosure due to the delivery timeline. Within the next day or two, we plant to fabricate the PCB, print the housing, and begin final integration of all the components. Remaining priorities are backlight verification on the actual device, system-wide testing, as well as the final poster, report, video, and demo.

Maggie’s Status Report for 2026-12-05

This week, I mainly focused on testing message transmission, location tracking, and message security. I ran consecutive LoRa transmission tests to check the reception reliability, and I also worked on modified packet rejection and replay protection testing. The LoRa transmission range needs further verifications since it’s lower than the expected distance of 1km. The current status will be enough for the demo, but I plan to test it somewhere with few obstacles and see what could the causes be.

Firmware wise, the schedule is fine, as everything has been tested and implemented on the dev board, and it really depends on if the final PCB integration works out.

Our new PCB has just arrived, so next week, we plan to prefabricate and assemble it, then integrate the new PCB, display, firmware, and Palm ecosystem to get ready for the final demo. The hope is everything works out, but if it didn’t for whatever reason, we would go with plan B of using a mix of dev board, laptop, and the custom PCBA to demonstrate the functionality of each component.

Sophia’s Status Report for 2026-12-05

This week, I worked on preparing for the final presentation. We received the final version of our PCB this week, and we will be assembling it and doing some final tests ahead of the final demo next week. As mentioned last week, the final PCB design includes more features to bypass any circuitry that was not successfully tested in the previous iteration, namely with 0-ohm resistors. We’re a little bit behind schedule in terms of assembly, but we’ll be assembling it within the next day or two.

I was able to test the 3.3V, 5V, and system voltage rails with a multimeter, and they work as expected even with the new charger IC and updated boost circuitry. I haven’t been able to test the display backlight, which is the main other point of concern, since it requires us to assemble the processor in order to send a signal to turn the backlight on, so this will happen next week. Looking forward, I will also be working on the final deliverables, including the poster, report, and video, as well as preparing for the final demo.

Tucker’s Status Report for 2026-12-05

This week, we had final presentations and received our final PCB. I worked on the software integration, testing, and some data analysis for our tests. I also updated the housing design. I am on schedule for software and behind schedule on fabricating the new housing. However, that’s not a huge risk, because I’ve already fabricated one for the last version of the board. I have some more testing to do with the whole package together. Therefore, this week I’ll print the new housing, attempt a new strategy for software performance, and finish up remaining testing.

We’re still seeing some slowness of software, which appears to be mostly due to high utilization of the (relatively simply pipelined) P4 CPU, which keeps me from pushing the timer interrupt frequency up. (For fun, I also measured on my laptop; I noticed a bottleneck in branch predictor errors.) My conclusion is that I can speed up the P4 by reducing the number of instructions per emulated instruction. There’s room to do so by hand, but I can scale it better by cross-compiling functions, removing many emulator branches and potentially allowing optimizations.

I’m hesitant to run a full JIT unless absolutely necessary, because that’s a massive surface for errors. In particular, there’s some sensitivity around JITing code without a fixed address, and I worry that this would introduce risk into our system given the limited time left to test. Instead, we can achieve a different speedup by pre-cross-compiling the PalmOS binary.

I sampled ~2 minute interactive runs of the emulator on my laptop where I used various apps, and it appears that the system spends at least 96% of its time in the ROM at steady-state (PC sampled every ~1k instructions post-boot. 96% in a graphics-heavy trace, 99% in a random trace), so any speedup here will result in an overall improvement.

It’s nontrivial to find all function entrypoints, but we don’t need to find all of them — just enough to be meaningful. My first strategy was to sample the IVT to get a list of ROM entrypoints. Turns out, it’s quite noisy, but the noise is predominantly from user-defined interrupts (115k writes/18k unique values vs 66 writes/65 unique values), so we can focus on system interrupts. Further, it turns out that trap 15 (vector 47 at 0xBC) dominates with 98% of dispatches in an informal experiment going to trap 15. That’s because it’s the entrypoint for system operations, such as reading and writing files. It’s a good first target!

We need to fabricate the new case. Our case for the previous revision determined that the design fits the screen and USB port well, but I made the space for keys too large, and I need to avoid some ledges that printed poorly. This is mostly bottlenecked by print time, but the whole package is only a few hours on a medium quality setting, so there’s still time to iterate if necessary.