Haowen’s Weekly Status Report for Week 14

What I accomplished this week

Final presentation: I built the final presentation slides, wrote the script, prepared answers for the Q&A, and delivered the presentation.

Receiver checks: I confirmed the ANT-B10 UART wiring (CTS tied to ground, RTS not connected) and the serial settings (115200 baud with hardware flow control disabled).

Wireless link test: In a three-minute capture, the anchor reported 3,324 angle events and 3,324 payload events. Every received payload passed the format and CRC checks, so the data that arrives is intact.

Completeness of reception: The capture shows 277 gaps in the application sequence numbers, about 8 percent of the received events. This is close to the roughly 8 percent of events the anchor missed in my week 10 test. The cause is not established. It could be wireless loss, the serial link, or a payload being overwritten before it was sent, so I do not report it as pure radio loss.

Total effort: about 17 hours.

Is my progress on schedule?

Partly behind. The presentation and the receiver checks are done. Two validation items are not:

PCB integration has not started because the boards have not arrived. Pending PCB arrival. Programming, pin checks, and the real IMU link will start when the PCB is available. The development kit tests and firmware so far are the groundwork, but they are not PCB integration.

Angle stability and sequence gaps are outside the targets. To catch up: when the PCB arrives I will flash the same firmware (same chip, pin changes only), check the IMU communication, and repeat the wireless test. If it does not arrive in time, the prototype wearable remains the fallback. For accuracy, I will run the measured-position test with a tape measure, starting with the 5 m and 10 m positions. For the gaps, I will count packets at the tag and at the anchor to find where they are lost, then test sending each packet twice.

Deliverables for next week

Angle accuracy test at measured positions (5 m and 10 m rows), reported as mean error and standard deviation.

Gap test: tag counts against anchor counts, and the effect of sending each packet twice.

Verification update

Done: command link to the anchor (11 of 200 commands failed, 0 of 200 with 2 ms between characters), packet receiver tests (nine automated tests plus a hardware test), and a three-minute wireless test (payloads intact, gaps and angle spread outside the targets).

Planned: accuracy at measured positions against 2.45 degrees mean error and 0.8 degrees standard deviation, packet loss against the 5 percent limit, and battery life against 4 hours by measuring the tag’s current.

Analysis: per-position mean error and standard deviation.

Haowen’s Weekly Status Report (Week 12)

This week, I worked on integrating the software and testing it on my nRF52833 DK. I first went through Jeffrey’s Zephyr code to understand how IMU data is read, stored in the ring buffer, and converted into packets. I then implemented ble_set_payload() to connect the encoded packets to the periodic BLE advertising process. I also set up two build configurations so the firmware can run with either synthetic data or real IMU data.

I spent roughly 14 hours this week on this project.

  • Code integration and debugging: 4 hours
  • Firmware build and DK validation: 3 hours
  • Packet validation tools: 2 hours
  • AoA analysis tools: 3 hours
  • PCB review and documentation: 2 hours

I successfully built and flashed the firmware in synthetic data mode on my DK. I ran it continuously for 10 minutes and also tested it after powering the board off and on again. The logs showed no errors in packet generation, encoding, buffer management, or advertising updates. I also confirmed that the real IMU configuration compiles successfully, although I have not tested it with the physical sensor yet. In addition, I checked the packet format, which consists of an 8-byte header, 12 bytes per sample, and a 4-byte footer. The firmware supports both 5-sample and 6-sample packets, with total sizes of 76 and 88 bytes. I also wrote a PC-side Python script to check packet length, CRC, and sequence numbers. It passed validation with 1,000 generated packets.

Besides the firmware work, a Python tool for AoA data analysis also groups measurements by file, tag, and antenna, and generates statistics and time-series plots. It can also calculate MAE when reference angles are available. I tested the tool using two existing CSV files, although those datasets did not include reference positions, so I could not use them to evaluate positioning accuracy. I also organized the integrated code, build instructions, and usage notes, and reviewed the PCB documentation to identify the changes needed for GPIO assignments, LEDs, clock settings, and logging.

The software integration and initial DK testing are progressing as planned, but the hardware testing is not finished yet. I still need to test the integrated firmware with the ANT-B10 receiver, verify real IMU data on Jeffrey’s device, and collect AoA measurements at known angles and distances. The firmware also needs to be adapted and tested on the final PCB. These tasks depend partly on coordinating with my teammates and accessing the hardware. I have prepared the code and testing tools, so next week I plan to focus on completing the receiver and IMU tests first, followed by initial AoA experiments. I will also start adapting the firmware to the final PCB and document any issues found during testing.

During this work, I became more familiar with the Zephyr codebase and how BLE periodic advertising is connected to sensor data and packet generation. I also learned more about packet validation, CRC checks, and processing AoA measurement data in Python. Most of this knowledge came from reading the existing code, checking Zephyr documentation, looking at runtime logs, and testing individual parts of the implementation. When developing the analysis scripts, I also referred to Python documentation and online examples, then tested the results using existing CSV data. These hands-on tests helped me understand the code and find issues before moving on to testing with the actual hardware.

Haowen’s Weekly Status Report (Week 11)

What I Accomplished This Week

UART frame receiver. I wrote a C module to receive and parse Jeffrey’s UART packet format, including sync bytes, length, packet data, and CRC-16. I also tested it on my laptop without needing the Pico. The CRC values matched Jeffrey’s implementation: 0x29B1 for the standard test string and 0x369B for his test frame. All nine automated tests passed, covering garbage data before a frame, invalid lengths, back-to-back frames, minimum and maximum packet sizes, and a stress test with 1,000 frames. I also wrote send_frames.py to generate test data and simulate the Pico.

Firmware v3. I updated the tag firmware to read UART frames, discard invalid ones, and put valid packets into the periodic advertising data. The payload can carry up to 88 bytes, which is within the anchor’s 255-byte limit. The 160-microsecond CTE continues running while the tag sends the data. I also added two LEDs to help check the receiver’s status. After flashing the firmware, I sent 20 frames per second from my laptop. The first LED flashed continuously, while the second stayed off. When I introduced bad frames and random bytes, the second LED started flickering, confirming that the firmware was detecting bad frames.

Pin selection. While checking the board files, I noticed that my original pin choice was shared with the radio’s antenna switch and SPI. I changed it to the board’s built-in Arduino serial port on D0.

Firmware v3.1. I made the tag ID and advertising interval configurable through build settings. I also built the versions needed for next week’s tests, with intervals of 50, 30, and 25 ms. The serial log confirms that the test build uses tag ID 000000000002 and a 30 ms interval.

I also collected the test outputs, build logs, LED test video, serial log, and pin analysis, and updated the firmware notes. The build uses about 20% of flash and 15% of RAM.

I spent approximately 16 hours on the project this week.

Is My Progress on Schedule?

The firmware work and everything I could test independently are done. The IMU test and power measurements are also still pending because I don’t have access to an IMU board or a current meter yet.

Verification

The signal subsystem needs to meet several requirements from our design review. The average angle error should be no more than 2.45 degrees, with a standard deviation of no more than 0.8 degrees, to keep the lane position error below 1.07 m. The system should also receive packets reliably at distances up to 25 m in line of sight, keep packet loss below 5%, maintain end-to-end latency under 1 second, and allow the tag to run for at least 4 hours on a 150 mAh battery.

So far, I have completed several initial tests. For the anchor command link, I found that the anchor occasionally missed individual characters in incoming commands. In the first test, 11 out of 200 commands failed. After adding a 2 ms delay between characters, all 200 commands were received correctly. I still need to run a longer test with 1,000 commands to make sure this is consistent. I also tested the tag-to-anchor link. During the first live test, the anchor received about 92% of the tag’s transmissions, at a rate of roughly 18 packets per second. The reported angle also changed smoothly as I moved the tag. For the packet receiver, all nine automated tests using Jeffrey’s test frame passed. I also tested the firmware with 20 generated frames per second. When I introduced damaged frames, the receiver rejected them instead of forwarding them to the anchor.

The next step is to collect enough data to check the angle accuracy. I plan to test 28 fixed positions, covering angles from -60 to +60 degrees and distances of 5, 10, 15, and 25 m, with 500 samples at each position. I will measure the positions with a tape and compare the reported angles with the actual angles. For each position, I will calculate the mean error, standard deviation, maximum error, and percentage of samples within 2.45 degrees. I will also calculate the overall mean absolute error. Before collecting the data, I will calibrate out any fixed angle offset at 0 degrees. The target is a mean absolute error of no more than 2.45 degrees and a standard deviation of no more than 0.8 degrees. I will also convert the angle error into sideways position error using distance × tan(angle error) and check whether it stays below 1.07 m, which is half a lane width, including at 25 m.

For packet loss, I will use the packet counter to identify transmissions that never reach the anchor. I plan to test advertising intervals of 50, 30, and 25 ms, followed by 10-minute runs. The target is to keep packet loss below 5%. Since each packet is sent twice, the expected loss would be around 0.6% if the two transmission failures are independent. However, I still need to check whether packet losses actually occur independently rather than assuming that they do.

I also need to test the system at different distances, up to 25 m, and check how it performs near the pool with a moving tag and water splashing. I will record the reception rate, packet loss, and RSSI at each distance. For the enclosure test, I will compare the tag in three conditions: without a cover, inside a plastic bag, and taped to the forearm. The tests will be done at a fixed distance of 1 m. I will compare RSSI, the number of received events per second, and angle variation to see whether the enclosure or the position on the body affects performance. Both tests should meet the packet loss and angle accuracy requirements.

For latency, I plan to record the tag event and the corresponding dashboard update on video and repeat this for 20 events. I will measure the time between the two and report both the median and worst-case latency. The requirement is to stay below 1 second. For battery life, I will measure the tag’s average current consumption if I can borrow a current meter. If the meter is unavailable, I will use the datasheet values to make an estimate. The calculation will use 80% of the 150 mAh battery capacity as usable capacity, divided by the average current. The target is at least 4 hours of operation.

Finally, I will test multiple tags and check the anchor’s current limit of 25 tags. I will record whether the anchor can receive the angle data from each tag and how long it takes to switch between tags. The results will also help determine whether the tag-count requirement needs to be updated.

If any test does not meet its target, I will first try changes that are relatively easy to make. For example, I can reduce the advertising interval if packet loss is too high, adjust the anchor position or recalibrate if the angle error is too large, and make the enclosure thinner or change its position if it affects reception. I will record the number of samples and actual results for each test so that the conclusions are supported by the measurements.

Deliverables for Next Week

  1. Testing with Matthew: Verify that forwarded packets reach the anchor with a valid CRC, including both normal and stress tests. Run timing tests at 50, 30, and 25 ms, check the angle at 1 m, and test the enclosure.
  2. Testing with Jeffrey: Connect the Pico to the DK and verify the complete UART data path, with his Raspberry Pi reading the data from the anchor.
  3. Accuracy testing: Complete the first part of the test at 5 m and 10 m.

Haowen’s Weekly Status Report (Week 10)

This week, I worked on firmware development, payload formatting, AoA data analysis, and DK setup. I successfully compiled firmware v2 for the nRF52833 DK, with Flash usage at 19.72% and RAM usage at 14.25%. I also created payload_format.h and payload_format.py to define the payload format for both the embedded firmware and Python scripts. In addition, I developed analyze_aoa.py to process AoA measurements and calculate angle statistics, and added a self-test to verify the script. For hardware setup, I configured the Nordic development environment and confirmed that nrfutil could detect the DK. I attempted to flash firmware v2 onto the board, but the operation was blocked by AP-Protect. I identified west flash --recover as the required next step and also identified the DK serial ports for checking firmware startup logs.

The main files completed or updated this week include tag_fw/, tag_fw/src/payload_format.h, payload_format.py, analyze_aoa.py, and checklist.txt. I spent approximately 15 hours on the project this week.

The tasks are on schedule. Firmware v2 compiles successfully, and the payload format and AoA analysis script are ready. Once the firmware is programmed, I will check the serial logs to verify that Bluetooth initialization, CTE configuration, and advertising are working correctly. I plan to prioritize these hardware integration tasks at the beginning of next week.

Next week, I plan to finish flashing firmware v2 onto the nRF52833 DK and verify its startup logs, including extended advertising, periodic advertising, and CTE configuration. I also plan to complete the first integration test between the DK and the anchor and obtain the first valid AoA measurements. I will collect measurements at three different positions: directly in front of the anchor and approximately 27° to either side. These measurements will be analyzed using analyze_aoa.py to check angle direction, standard deviation, and measurement frequency. In addition, I plan to use check_payload.py to verify the received payload data and check for missing sequence numbers. Finally, I will test higher UART baud rates and verify the final communication settings. The main goal is to get the DK and anchor communicating successfully and obtain the first set of valid AoA measurements.

Haowen’s Weekly Status Report (Week 9)

What I Accomplished This Week

Toolchain and firmware setup

I set up nRF Connect SDK v3.4.1 and built Nordic’s direction_finding_connectionless_tx sample for the nRF52833 DK. I also reviewed prj.conf and main.c to understand the sample’s default configuration. The settings I noted include a 160 μs CTE, five CTEs per event, and the periodic advertising interval. These settings will be considered when configuring our firmware.

ANT-B10 documentation review

I reviewed the ANT-B10 System Integration Manual and the u-locateEmbed AT command manual to better understand the anchor’s interface and configuration requirements. I found several details that are relevant to our design. The documented CTE requirement is 160 μs, while our original plan used 128 μs. The tag also needs to include an Eddystone-UID frame in its extended advertisement. The documentation specifies a maximum of 25 continuously tracked tags, which may be an issue given our target of 50 tags. On the other hand, the UART supports baud rates up to 1 Mbaud, and hardware flow control can be disabled, giving us more flexibility when configuring serial communication. I also recorded the pinout, default UART settings, and the message formats for +UUDF and +UUDFP, then shared the relevant findings with the team.

Tag firmware changes

I used u-blox’s open-source c209-aoa-tag project as a reference and modified main.c for our tag configuration. The current version is configured to broadcast an Eddystone-UID frame, using the tag ID as the instance ID, with a 160 μs CTE and a 50 ms periodic interval. The firmware compiles successfully, with reported memory usage of 19.6% of flash and 14.2% of RAM. The actual advertising behavior still needs to be checked on the hardware.

Test script

I wrote anchor_tool.py to support upcoming ANT-B10 tests. The script includes functions for AT command testing, anchor configuration, monitoring +UUDF and +UUDFP messages, collecting statistics, testing baud rates, listing serial ports, and running a fake anchor for testing without physical hardware. It uses Python’s standard library on Linux/macOS and pyserial on Windows. I tested the six subcommands using the fake anchor with both serial backends. These tests checked the script’s behavior without requiring the physical ANT-B10, so actual communication with the anchor still needs to be tested.

Is My Progress on Schedule?

Yes. The firmware currently compiles, but its behavior still needs to be checked on the actual hardware.

Plans for Next Week

Next week, I plan to flash the firmware to the nRF52833 DK, check the startup logs, and use a phone scanner to see whether the Eddystone beacon is visible. Once the DK is communicating with the anchor, I will check the first +UUDF message and compare the reported angle with the expected direction. Ideally, the angle should be close to 0° when facing straight ahead, with the sign changing when moving from left to right.

I also plan to run baud-rate tests at 230400, 460800, and 921600 and record the results. Finally, I will review whether the XIAO board is still needed based on the current nRF firmware setup and the results of the upcoming tests.

Haowen’s Weekly Status Report (Week 8)

This week, I spent over 12 hours working on the software setup for the Signal Subsystem. I started by configuring the local development environment on macOS. During the setup process, I encountered several issues related to the Zephyr RTOS toolchain and CMake package registry. I spent time troubleshooting these problems and resolving the configuration issues so that the required development tools could work together properly.

After setting up the development environment, I created the 18500signal project repository and organized the initial firmware project files. This included setting up CMakeLists.txt for the build configuration and prj.conf for the project settings related to BLE 5.1 and Direction Finding. These files provide the starting point for implementing the firmware and configuring the features required by the Signal Subsystem. I also checked the project structure and IDE workspace to make sure the files were organized correctly and that I could continue development within the configured environment.

The project is currently on schedule for the Week 9 milestone. Although the SDK setup and dependency issues took longer than expected, I was able to resolve the main configuration problems and complete the initial project setup. This work establishes the development environment needed for the upcoming firmware implementation. At this stage, the main focus has been on environment configuration and project initialization, so firmware implementation and build testing remain tasks for the next week. No changes to the current project schedule are needed at this point.

Next week, I plan to focus on implementing and testing the nRF52833 Tag firmware in C. The first goal is to implement 20 Hz periodic advertising with a Constant Tone Extension (CTE), which is an important part of the planned Bluetooth Direction Finding functionality. I will also build the project for the nrf52833dk_nrf52833 target and address any compilation errors or configuration issues that arise during the process. Once the initial firmware work is underway, I will begin developing a Python-based serial parser to receive and decode +UUDF ASCII frames from the base station. This will provide an initial software component for processing the data received during subsequent testing and integration.

Haowen’s Weekly Status Report for Week 7

Accomplishments

This week, I focused on setting up the development environment and checking the ANT-B10. I installed the nRF Connect SDK (v2.6+) and the required toolchain dependencies. I also spent time fixing local path and driver issues to get the environment working properly.

After receiving the u-blox ANT-B10 antenna array, I checked the board for any visible damage and powered it on through USB to make sure it was working. I also reviewed the datasheet to locate the SWD and UART pins for future connections. Finally, I ran basic checks to confirm that the development tools could compile and flash test programs successfully. I spent around 12 hours on SDK setup, troubleshooting, reading documentation, and initial hardware checks.

Schedule Status

On schedule. Since the material hasn’t arrived yet, this week was mainly spent getting the development environment ready and checking the board. This should make it easier to move on to wiring and communication tests next week.

Next Week’s Deliverables

  1. Connect the external SWD programmer and USB-to-TTL adapter to the ANT-B10 board and check whether it produces stable serial output.
  2. Establish UART communication at 115200 baud and test basic AT commands to confirm that the ANT-B10 responds correctly.
  3. Set up the nRF-based tag to broadcast BLE packets at 20 Hz with Constant Tone Extension (CTE).
  4. Configure the ANT-B10 to scan for and receive CTE packets from the tag.

Haowen’s Weekly Status Report for Week 6

Accomplishment

Focused on getting our basic development environment set up and making sure the physical boards work. Installed VS Code, nRF Connect SDK (v2.6+), and toolchain dependencies, spending a good chunk of time troubleshooting local path issues and drivers. Unboxed the u-blox ANT-B10 antenna array and RPi Pico WH, checked the boards for any physical defects, and powered them up via USB to confirm power LEDs were solid. Cross-referenced the ANT-B10 datasheet to identify the SWD and UART pin headers for future wiring. Ended the week by running a basic LED blink / Hello World sanity check on the boards to ensure neither came dead-on-arrival (DOA) and our local toolchains can compile binaries properly. Spent around 12 hours total across SDK setup, troubleshooting environment paths, reading datasheets, and initial board verification.

Schedule Status

On schedule. Materials arrived mid-week, so keeping this week focused on environment setup and basic check sets us up smoothly without rushing into complex wiring.

Next week’s deliverables

  1. Wire up the external SWD programmer and USB-TTL adapter to the ANT-B10 bare board and confirm stable serial log output.

  2. Set up the RPi Pico WH to broadcast 20 Hz BLE packets with CTE (Constant Tone Extension).

  3. Flash the Nordic direction_finding RX sample to the ANT-B10 and check for raw angle output over UART.

Haowen’s Weekly Status Report (Week 5)

Executive Summary

This week, I conducted in-depth feasibility research on our BLE 5.1/5.2 Angle of Arrival (AoA) tracking pipeline, clarified the system data flow across team roles, and validated the hardware stack integration plan for our incoming components.

By offloading raw microwave-frequency switching and phase demodulation directly to dedicated silicon, we confirmed a low-complexity architecture that avoids sub-nanosecond FPGA timing constraints while delivering reliable angle metrics.

Key Accomplishments This Week

1. Architecture Research & Technical Feasibility

  • Silicon-Level AoA Offloading: Researched the Nordic nRF5340 + u-blox ANT-B10 hardware pipeline. Confirmed that the nRF5340 Network Core executes CTE (Constant Tone Extension) I/Q sampling natively in silicon via Nordic’s direction_finding_connectionless_rx SDK module, outputting processed scalar angles over UART rather than raw high-frequency RF vectors.
  • Comparative Trade-off Analysis: Evaluated alternative approaches (e.g., direct FPGA RF sampling and UWB). Concluded that 2.4 GHz BLE AoA using our off-the-shelf kit provides the optimal balance of power, cost, and reduced timing complexity for a water/poolside environment.

2. System Data Flow & Team Alignment

  • Wearable vs. Base Station Setup: Clarified the hardware topology across Signal, Hardware, and Software sub-teams:
    • Wearable Tag (Swimmer): A lightweight transmitter (Pico + BLE radio emitting standard CTE frames) with no heavy compute overhead.
    • Base Station (Poolside): Fixed u-blox ANT-B10 8-antenna array connected to the nRF5340-DK, streaming angle scalars over a 3-wire hardware UART link (TX, RX, GND) at 115200 baud to the processing core.
  • Multipath Noise Strategy: Designed a two-stage embedded filtering pipeline (Median Filter for splash outlier removal + Moving Average for trajectory smoothing) to mitigate surface water reflections.

3. Development Setup Preparation

  • Unboxed arriving hardware components (nRF5340-DK, u-blox ANT-B10, Pico WH) and prepped the nRF Connect SDK environment for VS Code.

Next Week’s Goals (Planned Tasks)

  1. Hardware Benchmarking & “Hello World” Test: Assemble the ANT-B10 board onto the nRF5340-DK, flash the official SDK sample code, and verify raw Azimuth/Elevation scalar outputs via a serial terminal during walking tests.
  2. UART Pipeline Integration: Wire the nRF5340-DK to the Pico WH over hardware UART and establish basic packet receiving logic.
  3. Draft UART Packet Protocol: Define the binary/JSON payload structure for streaming filtered coordinates downstream to the Software team’s dashboard.

Haowen’s Weekly Status Report (Week 4)

Accomplishments

  • Reviewed the finalized NRF24L01+ wireless module datasheet and documentation to identify power, RF, and integration requirements.
  • Researched antenna placement and enclosure thickness guidelines to inform the wireless enclosure design.
  • Identified key power and RF considerations, including the 3.3V supply requirement, power stabilization, RF channel matching, and Wi-Fi interference avoidance.

Progress / Next Steps

  • Finalized the wireless module selection and established baseline electrical/RF requirements.
  • Use the identified antenna and enclosure constraints to evaluate candidate enclosure materials and dimensions.
  • Next, prototype the wireless module in the proposed enclosure and validate communication reliability and range.

Deliverables

  • Documented NRF24L01+ module specifications and integration requirements.
  • Compiled preliminary antenna placement and enclosure design guidelines.
  • Established initial wireless design constraints:
    • Supply voltage: 3.3V
    • Power stabilization: 10 µF capacitor across VCC and GND
    • RF configuration: Matching channels between transmitter and receiver
    • Interference: Avoid RF channels 2–4 due to overlap with common Wi-Fi bands