Beispiel #1
0
        private void lnkRawData_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            List <String> txt = new List <String>();

            if (mutex.WaitOne(100))
            {
                data.ForEach(d => txt.Add(((d & 0x0001) != 0 ? "/" : "\\") + 2 * (d & 0xFFFE)));
                mutex.ReleaseMutex();
            }

            TextViewer win = new TextViewer();

            win.SetText(
                @"These are the raw pulse times that the IR sensor registered. ""/"" represents "
                + @"a ""mark"" or IR ON interval, and ""\"" represents a ""space"" or IR OFF "
                + @"interval. All times are in microseconds. If the Pinscape unit won't recognize "
                + @"a code after several attempts, your remote might use a data format (protocol) "
                + @"that the Pinscape software doesn't recognize. Let the Pinscape developers "
                + @"know about it and we might be able to add support for new protocol. "
                + @"Include this raw timing data in your report, along with the make and model "
                + @"of the TV or other device that the remote control is for."
                + "\r\n\r\n"
                + (txt.Count == 0 ? "*** No signals received ***" : String.Join(" ", txt)));
            win.Text = "Raw IR Data";
            win.Show();
        }
Beispiel #2
0
        private void lnkRawData_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            List <String> txt = new List <String>();

            if (mutex.WaitOne(100))
            {
                data.ForEach(d => txt.Add(((d & 0x0001) != 0 ? "/" : "\\") + 2 * (d & 0xFFFE)));
                mutex.ReleaseMutex();
            }

            TextViewer win = new TextViewer();

            win.SetText(
                @"Ce sont les temps d'impulsion bruts enregistrés par le capteur IR. ""/"" représente "
                + @"une ""marque"" ou un intervalle IR ON, et ""\"" représente un ""espace"" ou intervalle IR OFF "
                + @"Toutes les heures sont en microsecondes. Si l'unité Pinscape ne reconnaît pas "
                + @"un code après plusieurs tentatives, votre télécommande peut utiliser un format de données (protocole) "
                + @"que le logiciel Pinscape ne reconnaît pas. Laissez les développeurs Pinscape "
                + @"le savoir et nous pourrons peut-être ajouter la prise en charge d'un nouveau protocole. "
                + @"Incluez ces données de synchronisation brutes dans votre rapport, ainsi que la marque et le modèle "
                + @"du téléviseur ou de tout autre appareil auquel la télécommande est destinée."
                + "\r\n\r\n"
                + (txt.Count == 0 ? "*** Aucun signal reçu ***" : String.Join(" ", txt)));
            win.Text = "Données IR brutes";
            win.Show();
        }