Exemplo n.º 1
0
        public static int hex2bin( String hexFileName, String binFileName, String datFileName )
        {
            int r = 0;
            ks_hexToZip hexToZip = new ks_hexToZip();

            r = hexToZip.hex2binNdat(hexFileName, binFileName, datFileName);
            return (r);
        }
Exemplo n.º 2
0
        // ref: my_dfu_OverSerial_program
        public int dfuProgram_RTR500BLE(String fileName, int Hexfile_type, String ComportName, UInt32 baudRate, int flowControl)
        {
            DfuMain dfuMain = new DfuMain();
            int r;
            r = 0;

            Console.Write("fileName     = {0}\n", fileName);
            Console.Write("Hexfile_type = {0}\n", Hexfile_type);
            Console.Write("ComportName  = {0}\n", ComportName);
            Console.Write("baudRate     = {0}\n", baudRate);
            Console.Write("flowControl  = {0}\n", flowControl);

            ks_hexToZip hexToZip = new ks_hexToZip();
            hexToZip.test_1(fileName);

            //dfu_main();
            // dfuMain.serial_RTR500("dummyZipPath", "COM61", 500000, 1); //    COM61 == RTR500BLE

            return (r);
        }