public Form_AutomatedAnalysis()
        {
            InitializeComponent();
            //
            usbCAN = new USBCAN(getRawPacket);
            udsCAN = new UDSBASEDCAN(usbCAN);

            chartCmp.Series.Clear();

            readUdsInstructions(Application.StartupPath + @"\OPTIONAL.txt");
            //test
            ANALYSISRESULT testResult = new ANALYSISRESULT();

            testResult.udsReq.description   = "[测试数据]大众途安发动机扭矩";
            testResult.udsReq.format        = 0;
            testResult.udsReq.expectedFrame = 0;
            testResult.udsReq.address       = 0x7E0;
            testResult.udsReq.serviceID     = 0x22;
            testResult.udsReq.parameterList.Add(0x10);
            testResult.udsReq.parameterList.Add(0x10);

            testResult.path = Application.StartupPath + @"\dataPacket\[测试数据]大众途安发动机扭矩.txt";
            analysisResults.Add(testResult);

            listBoxResult.Items.Add(testResult.udsReq.description);
        }
Beispiel #2
0
        public Form_OBD()
        {
            InitializeComponent();

            readUdsInstructions(Application.StartupPath + @"\OBD.txt", listOBD);
            addOBDinfo();

            usbCAN   = new USBCAN(obdProcess);
            udsClass = new UDSBASEDCAN(usbCAN);

            int cnt = listOBD.Count / 0x20;

            if ((cnt % 0x20) != 0)
            {
                cnt++;
            }
            arrStrSupported = new string[cnt];

            resetArrStrSupported();

            obdShowIndexs.Clear();

            delFetch = fetchObdValue;
        }