Products > Test Equipment
Need help hacking DP832 for multicolour option.
das_strobel:
--- Quote from: mike47203 on July 12, 2019, 12:34:36 am ---It seems that may be the problem other people were having. If you diff the posted code against the original riglol.c it is apparent what needs to be changed. I had no trouble compiling and running in Linux. Can't say if it works for any other platform.
--- End quote ---
Thanks, mike47203! This did the trick also for me. I changed the line, compiled again on my Ubuntu on WSL on Win10, and voila the program runs and the generated key works. 8) :-+ :-+ :-+
starec:
--- Quote from: mike47203 on July 12, 2019, 12:34:36 am ---In the ecssign function at line 41 in your post "instr(a, curve_a)" is missing. Once I added that, it work perfectly. Much appreciated.
--- End quote ---
Yes indeed,
i wrote my own application in Windows and was all in there. This copied code was from riglol source itself. I only added my changes and no checked the remaining code so i didn't notice the missing line - my fault. However as tv84 been noted the riglol source codes have some bugs. I'd added (at least) releasing of acquired memory in the fn ecssign as follows
--- Code: --- mirkill(a);
mirkill(b);
mirkill(p);
mirkill(q);
mirkill(Gx);
mirkill(Gy);
mirkill(d);
mirkill(k);
mirkill(r);
mirkill(s);
mirkill(k1);
mirkill(zero);
mirkill(f1);
mirkill(f2);
mirkill(f3);
mirkill(f4);
mirkill(hash);
epoint_free(G);
epoint_free(kG);
mirexit();
--- End code ---
tv84:
--- Quote from: starec on July 13, 2019, 07:30:31 am ---I'd added (at least) releasing of acquired memory in the fn ecssign as follows
--- End quote ---
Yep, even this simple thing is missing... When one runs a single time, less important but if we start reusing, etc, etc all type of weird things start to happen.
Of course the way mem is allocated and the var types/casts are the biggest problem.
riglol is more polished, rigup is much worse. Nonetheless the authors deserve all the credits for creating those tools.
Marc M.:
--- Quote from: FuzzyOtter on June 09, 2019, 04:13:12 am ---... The USB drive must be formatted as FAT, not FAT32 or exFAT. On...
--- End quote ---
For some reason this isn't always the case. I just grabbed a brand new 8Gb pre-formatted FAT32 card (older SanDisk HC1), stuck the file on it and powered the supply up with the USB adapter plugged in. I connected to a Windows laptop with UltraSigma installed and sent IDN to confirm the connection, then issued the :PROJ.... command. I think it spit out an error but I saw an OK at the bottom so I went ahead and power cycled the supply. It came up in not-so glorious color. Arrggh, the pale color pallet of grey, white, and light blues is terrible, but I do like the 3 color classic main display.
Aesthetics aside, I had to jump thru some hoops before I got the above result. I bought an early supply with the original hardware and firmware (1.04 maybe?) on it. When I tried it on that firmware it flipped me off with an error. I remembered there was an issue with newer firmware and hacked options which was no reversible so I never bothered to update it. Since this hack changes it to an A model, all options are turned on automatically so any risk to previously hacked options won't matter. I updated the boot loader, then the firmware, and finally the analogs with the latest revision I found somewhere on Rigol's site. After that was complete, I reconnected, issued the PROJ command and it worked without a problem. So SD cards are just hit/miss as I violated both the 2 to 4 gig limit and the no FAT32 rules. YMWV but I'd try whatever card you have at hand.
On my already way too long, I'll be dead long before half of it gets done To Do list, I plan on pulling the front panel off and changing out the green LEDs behind the channel enable buttons to reflect the channel color to help differentiate them (at least while they're turned on). Anyone happen to know what size they are? I voided my warranty long ago dealing with the overheating regulator issue, and I've probably had it longer than 3 years anyway. Rigol could make a killing selling replacement 832A buttons!
Gandalf_Sr:
Changing the LEDs to match the channel colors is a great idea. I found that my drive was formatted to FAT worked so I think that FAT32 is not absolutely essential.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version