Ejemplo n.º 1
0
        public void ResetAndStatusTest()
        {
            IMilSpiBridge bridge = new MilSpiBridge(mpsseDeviceSerialNum);

            List <IMilFrame> tdata = PacketGenerator.randomPacket(1);

            bridge.Transmit(transmitterAddr, tdata);

            Thread.Sleep(500);

            ISPStatus status = bridge.getDeviceStatus(receiverAddr);

            Assert.IsTrue(status.ReceivedQueueSize == 1);

            bridge.DeviceReset(transmitterAddr);

            Thread.Sleep(200);

            status = bridge.getDeviceStatus(receiverAddr);
            Assert.IsTrue(status.ReceivedQueueSize == 0);
        }
Ejemplo n.º 2
0
        public void HardwareErrorTestInitialize()
        {
            IMilSpiBridge bridge = new MilSpiBridge(mpsseDeviceSerialNum);

            bridge.DeviceReset(transmitterAddr);
        }