Products > Test Equipment
Possible GW Instek GDS-1000B hack
<< < (12/52) > >>
AC360:

--- Quote from: Mortymore on January 28, 2019, 06:44:25 pm ---Hope they are OK with this... if not let me know, please.

Summed the parts provided by wgoeo (reply #3) and tv84 (reply #47), and made a "soup" for my 2074E, since I was interested in the Spectrum Analyzer (SA) option.
The "soup" was named lis2.txt, and should be renamed to lis2.html

The SA option was installed with the latest firmware gds2000e_v1.38 (2019-01-26) on the scope.

As rhb explained "To access the SA you need to press the button in the lower right corner of the screen area below the small round button.", the OPTION button. Now I have a use for him.

Hope everything is alright, but it worked for me, as can be seen from the print screens attached.

Thanks for your work

PS: Sorry rhb I had to press AWG button. My scope didn't crash... until I go further, playing with Generators menus that the scope doesn't have.

--- End quote ---

Does it work for GDS-1000B?
AC360:

--- Quote from: tv84 on December 02, 2018, 02:36:11 pm ---Here is the new license generator for the current FWs of GDS1000B and GDS2000E, based on the wgoeo post (msg #3).


--- Code: ---        private static void InstekKG(string serial)
        {
            // This works for GDS1000B and GDS2000E
            string[] opt = { "PWR", "BUS", "SRH", "SGM", "BW100", "BW200", "BW300", "SA" };   // Prefixes: "DS1KB-"  or "DS2E-"

            // uint[] ClearCode = { 0x11111111, 0xABABABAB, 0x22222222, 0xCDCDCDCD };  // OLD -- GDS1000B (up to v1.18) and GDS2000E (up to v1.28)
            uint[] ClearCode = { 0x74B0DC51, 0x46E87CCD, 0x25E45D32, 0x515F007C };  // NEW

            serial = serial.Trim();
            int serial_int = Int32.Parse(serial.Substring(serial.Length - 4, 4));

            int pid_sum = 0;
            for (int i = 0; i < serial.Length - 4; i++)
                pid_sum += serial[i];

            for (int i = 0; i < opt.Length; i++)
            {
                int[] a = new int[2];
                a[0] = (pid_sum << 24) | ((i << 8) & 0xF00);
                a[1] = (1 << 24) | ((serial_int << 8) & 0xFFFF00) | ((pid_sum >> 8) & 0xFF);

                for (int j = 0, k = -0x61C88647; j < 32; j++, k -= 0x61C88647)
                {
                    a[0] += (int)((16 * a[1] + ClearCode[0]) ^ (a[1] + k) ^ ((a[1] >> 5) + ClearCode[1]));
                    a[1] += (int)((16 * a[0] + ClearCode[2]) ^ (a[0] + k) ^ ((a[0] >> 5) + ClearCode[3]));
                }
                Console.WriteLine("DS1KB-{0}.lic / DS2E-{0}.lic - [{1:x8}{2:x8}]", opt[i], a[1], a[0]);
            }
        }
--- End code ---

Those who prefer the javascript version can replace just the ClearCode constants in the script (I leave that as homework). The SA option was also added (only for the 2000E).

Edit1: Tested successfully by some members in DS2E and MSO equipments. This will not work on 2000A because the S/N has a different format.

--- End quote ---

Does it can upgrade the GDS-1000B to BW200 or BW300 MHz?
Mortymore:
@AC360

I don't think you can go further than 100MHz on GDS-1000B, since they are available with 50/70/100MHz bandwidth options.

Unless better opinion... I believe the code that tv84 provided, is able to work on the GDS-1000B, but only for the options that can be accepted by the scope. In that manner, the SA, 200MHz, 300MHz licenses among others, will probably not be accepted.

Be aware that the lis2.txt file I attached is "modded" for 2000E series. That was my homework as tv84 "ordered".  :-DD Do yours! 
tv84:
You passed the test, Morty. :)

The code works with the GDS-1000B version as stated in the code.

From what I remember, the licenses are generated based on the "option" index. So it's irrelevant the true name of the options.

In the GDS-1000B the BW options are  50/70/100MHz.

These are unlocking licenses, not HW upgrades!
AC360:

--- Quote from: tv84 on January 30, 2019, 05:11:32 pm ---You passed the test, Morty. :)

The code works with the GDS-1000B version as stated in the code.

From what I remember, the licenses are generated based on the "option" index. So it's irrelevant the true name of the options.

In the GDS-1000B the BW options are  50/70/100MHz.

These are unlocking licenses, not HW upgrades!

--- End quote ---

So the "SA" option only work with GDS2000E series?
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod