# VR-N7500 Bluetooth bridge helpers `packet_tx.py` provides a bounded AX.25 packet queue and a fresh-status transmit gate for custom Bluetooth bridges. It does not configure a radio or open a serial port. Station-specific bridge scripts and radio settings are not distributed here. Integration: - Call `RadioGate.update(monotonic_time, transmitting_or_receiving_or_rssi_nonzero)` on each radio status notification. - Poll status every 150 ms while packets are queued. `allows()` requires status no older than 350 ms and 300 ms of quiet before starting a packet. Pass `starting=False` for continuation fragments. - Enqueue complete packets with `PacketTx.add()`. Send only the fragment returned by `next()` and wait for its acknowledgement before requesting another. - Pass the reply status to `ack()`. Status 6 restarts only the affected packet, with backoff and at most three retries. Other pending packets are retained. Permanent errors discard only the affected packet. - Clear the queue on disconnect, frequency changes or transmission suspension. Never carry stale frames to another channel. Retain an acknowledgement timeout in the bridge. The module uses monotonic timestamps. Pending packets expire after 20 seconds; one second separates complete packets. These controls reduce incorrect-state replies but cannot eliminate races with incoming RF traffic. Run tests with `python integrations/vr-n7500/test_packet_tx.py`.