simer-deep/cse-160-project-3 ? reverse-engineered prompt
Reverse engineered prompt
Build me the TinyOS project for distance vector routing so nodes can learn minimum hop paths, send pings through next hops, and reply back using the routing tables instead of flooding.
I want it to work in the micaz simulator with the supplied test scripts, and I want all the routing behavior to match the README, including neighbor discovery staying separate, poison reverse, route timeouts, packet TTL handling, and support for bigger routing updates that need multiple packets.
Please make it so the project builds with make micaz sim and passes the provided Python tests, including the line, alternate route, partition, poison reverse, capacity, and loss and TTL cases. If anything about the TinyOS setup or simulator behavior is unclear, look up the current docs online if you need to.
Keep the code clean and make sure the logs and tests run correctly from the project folder.
Are you gonna build this?
make sure you review the code using coderabbit