Products > Test Equipment
Hacking the HDO1k/HDO4k Rigol 12 bit scope
dave2:
Thank you for the quick reply! I have looked again at the instructions and am sure I have followed to the letter. I expected the code generator to parse the "key.data" file and that it would be in English.
I ran from a user account on W10 that may not have user privileges. So I retried from the start using the administrator account but still returns in Chinese. I continued with the go batch file anyway but it complains about the key.data file. I also added the path of the go.bin folder and android folder to the system environment in W10. Still no luck
ebastler:
The key.data file contains binary data. Never mind what it looks like when (mis-)interpreted as a text file.
Where (in which folder) did you place the key.data file, and how many bytes does it comprise?
dave2:
Thank you for your reply. internet here has been minimal today, the phone company working on the cabinet.
Binary data makes sense of course, Chinese characters distracted me normally see graphics characters. I am logged on as administrator. The location is C:program files/go/bin. I also tried C:/go/bin, to take it out of the protected windows folders incase it cant write the output file. The key file is 388 bytes long.
I am getting a different message now. I also changed the scope type in rgtool.go to DHO1074. I also tried adding a dot to make "rgtool.go."
CMD screen dump
C:\GO\bin>
C:\GO\bin>go run /rigol/data/Key.data
malformed import path "/rigol/data/Key.data": empty path element
Directory of C:\GO\bin
23/04/2024 13:53 <DIR> .
23/04/2024 13:53 <DIR> ..
29/03/2024 15:27 12,957,184 go.exe
29/03/2024 15:27 2,775,040 gofmt.exe
10/04/2024 21:41 388 Key.data
23/04/2024 13:51 4,311 rgtool.go..txt
4 File(s) 15,736,923 bytes
2 Dir(s) 339,143,364,608 bytes free
C:\GO\bin>
ebastler:
Thanks for sharing the commands you tried and the output. Looks like you are trying to execute the key.data file as a Go program -- that can't work. Instead, you need to execute rgtool.go, that's the program.
First, rename "rgtool.go..txt" to "rgtool.go". (Your text editor probably added the unwanted .txt extension when you edited the file.) Then enter the command "go run rgtool.go". Fingers crossed!
Edit: Just to make sure -- don't enter the quotation marks, of course. There is also no "." (period) at the end of the "rgtool.go" filename.
dave2:
Thank you very much.
I did notice that windows does not display the file extension in the folder, but viewing the file properties the .txt extension can be seen. I could not remove the extension as windows had associated the file with notepad. however I tried to remove it, windows kept putting it back. Nor could I find a way to remove the file association with notepad.
Finally while staring at the CMD window I remembered the dos rename command so entered "rename rgtool.go.txt rgtool.go"
and I successfully managed to generate the two keys. I am very grateful for your help, thank you.
I have installed the keys and now enjoy the extra memory and bandwidth.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version