The document presents a method for detecting and preventing wormhole attacks in ad hoc networks using a real-time operating system. It details the algorithm designed to identify suspicious links between nodes and verify their status, thus enhancing the security of wireless communications. The proposed solution aims for high detection rates without reliance on complex computations or specialized hardware.