Text this: Improving Low-Power Wireless Protocols with Timing-Accurate Simulation