A multiple access protocol for indoor wireless communications in factories