Example #1
0
        private void SerialControlView_Load(object sender, EventArgs e)
        {
            MRSPSP.SetComPortName(Properties.Settings.Default.LastMRSCOMPort);
            MRSPSP.SetConnectedDeviceName("MRS1");
            MRSPSP.UpdateParents += UpdateDisplays;

            MRSRCPSP.SetComPortName(Properties.Settings.Default.LastMRSRCComPort);
            MRSRCPSP.SetConnectedDeviceName("MRS Remote Controller");

            Console.WriteLine(MRSPSP.PSPC.ComBufferSize);
            Console.WriteLine(MRSPSP.PSPC.EncodedPacketSize);
            Console.WriteLine(MRSPSP.PSPC.PacketSize);
            Console.WriteLine(MRSPSP.PSPC.PacketPayloadSize);
        }
Example #2
0
 private void SerialControlView_FormClosing(object sender, FormClosingEventArgs e)
 {
     Properties.Settings.Default.LastMRSCOMPort   = MRSPSP.GetComPortName();
     Properties.Settings.Default.LastMRSRCComPort = MRSRCPSP.GetComPortName();
     Properties.Settings.Default.Save();
 }
Example #3
0
 private void GetMRSRCStatusButton_Click(object sender, EventArgs e)
 {
     byte[] dummy = { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D };
     MRSRCPSP.SendCommandMessage((byte)MRSMessageType.TestPacketTransfer, dummy);
 }
Example #4
0
 // MRS Remote Controller Controls *************************************************************************************
 private void TestMRSRCComsButton_Click(object sender, EventArgs e)
 {
     byte[] dummy = { 0xAA };
     //PSPPanel.PSPC.SendCommandMessage(0xF8, out string mesg);
     MRSRCPSP.SendCommandMessage((byte)MRSMessageType.ToggleBuiltInLED, dummy);
 }