-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: invalid literal for int() with base 16: '0 0' #3
Comments
This comment has been minimized.
This comment has been minimized.
Hi, the data coming from station looks wrong. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
i also tried updating pyserial to the most recent version by following this video: https://www.youtube.com/watch?v=Pf-cGzOQmXU but still the same error uisng your unmodified code |
If you don't mind can you send me your extracted firmware file so i directly upload it to 5605 or 5601 or 5603. |
This comment has been minimized.
This comment has been minimized.
Is there any different between running the code in python program and running it in black command console of windows, |
I used cmd to run tha prog so everything worked as wanted. |
sir can you send me firmware for 5603 dr200+ please if possible i have problem with mine not working for me :/ ?? |
@Tecnosoft-dev so the dump worked ? |
yah, worked but only for 5605 but not with 5601 (because for 5605 i copied a healthy firmware from a real working 5605), 5601 i dumped the memory into a file then i replaced the old two internal batteries then i re-upload the file forcingly (skipping errors) but in the end it still showing "unsupported instrument model, please contact..." despite the "internal battery expired" is really solved. so i need a another healthy dump for 5601 and 5603, if you have the two or at least one please send it to this mail: or just send them to this telegram number: this a group i recently created: |
i posted here for 5601 problem: |
What does it mean "skipping"errors ?
Its not that easy, Its not just firmware you are uploading but also configuration of station and calibration. These stations come in many different configurations - different EDM modules, radio, tracker, etc. Calibration values are valid only for the angle sensors in the station and values from different station will work but will provide you wrong readout. |
Skipping errors: putting # before sys.exit and some other lines, because sometimes it doesn't upload normally. |
When i compared two firmwares one of working station and one of not working, i see that all the difference is in the head of the two files (from 0 to about 310 lines), the rest lines are exactly the same (from about 310 to the last). |
Yes, the begining is the working ram and data. Some of the data is working buffers for serial port, and some is the calibration data. |
You may noticed (from Michelle 's papers he captured in survey connect forum) they used a program named: HexLoader, and by searching i founded a copy in GitHub. I made the previous comparison by compare plugin of notepad++, its useful. I actually downloaded the firmwares of 5601 and 5603 before reinstalling the two new 3V batteries. So by converting the a file from hex into ascii (image above), i see a lot of values i fairly believe they are the values mentioned in Michelle's papers. So to put you in the image, i just came with an idea of making somehow a new file contains the same program but only the values will be changed (depends on the station uniques), but a problem of number of lines will came up, so to solve this:
|
As i said, its not that easy :-) what you are seeing .. those texts ... are actually serial port buffers. Data that was sent over serial port or received over serial port. Label values are in binary. You can actually modify those, almost any of them, over serial port! After you login into station and unlock those labels. Problem is, that you don't know which label you need to change to what value. |
Would you please tell me how to change them, how to convert them to human readable text and return them back to hex buffers. |
You can access all labels from serial port of station. There is no need to access them in hex editor and change them. Problem is that, all labels are numbers and those numbers are not very well documented. |
Would you please show me an example of code on how to read a value and write it. |
Why gdm_write can't change value 100 (gdm model) it just results: 20.8, when i read the value it still the same. |
https://github.com/robots/gdm/tree/master/docu/workshopscan |
hi robots
when running backupfirmeware.py it starts reading normally until 28% shows this error:
the instument that i m reading from is working, i have tested also with another working station and the same error is shown,
i m using python 3.4.1 installed on win7 pack 1, 32 bit arch.
as i have a few experience in programing i think the error is because the int with base 16 cant quary more data
so what is the simple solution
The text was updated successfully, but these errors were encountered: