TDS694C nvram and tektool


Gudjon Gudjonsson
 

Hi list

I got inspired by Georges attempts to fix his TDS694C scope and found
the program "tektool" to read the NVRAM content and added it to my
GitHub page.

https://github.com/GauiStori/tekprogs/tree/master/tds694/tektool

I have tested it and it works half way on my Linux computer with
linux-gpib. It should
compile and work just as well/badly on any OS.

I guess that either the password is wrong.
ibwrt (Dev, "PASSWORD PITBULL", 17L);
or the data structure is not aligned on my 64 bit computer.
struct cmd_hdr
{
uint8_t cmd;
uint8_t csum;
uint16_t len;
};

struct memory_read_cmd
{
struct cmd_hdr hdr;
uint32_t addr;
uint32_t len;
};

struct memory_write_cmd
{
struct cmd_hdr hdr;
uint32_t addr;
uint32_t len;
uint8_t buf[1024];
};

I don't have time to debug it now but if anyone knows the answer
please drop a line.

Regards
Gudjon

Join TekScopes@groups.io to automatically receive all group messages.