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.
| Test | Findings | Adjustments |
| 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 packets | All 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 limit | The 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.
