I'm playing with the debug serial port of my tds 420 scope.
i've found these things:
- Only 3 wires are actually needed ; gnd, rx, tx. Voltage levels are rs232 standard. With only 3 wires connected, hardware flow control won't work, but shouldn't be a problem.
- you can actually give commands to the scope os, and call functions.
- Help command gives the following output:
Code: Select all
-> help help Print this list dbgHelp Print debugger help info nfsHelp Print nfs help info netHelp Print network help info spyHelp Print task histogrammer help info timexHelp Print execution timer help info h [n] Print (or set) shell history i [task] Summary of tasks' TCBs ti task Complete info on TCB for task sp adr,args... Spawn a task, pri=100, opt=0, stk=7000 taskSpawn name,pri,opt,stk,adr,args... Spawn a task td task Delete a task ts task Suspend a task tr task Resume a task d [adr[,nwords]] Display memory m adr Modify memory mRegs [task] Modify a task's registers interactively d0-d7,a0-a7,sr,pc [task] Display a register of a task version Print VxWorks version info, and boot line iam "user"[,"passwd"] Set user name and passwd whoami Print user name devs List devices cd "path" Set current working path pwd Print working path ls ["path"] List contents of directory rename "old","new" Change name of file copy ["in"][,"out"] Copy in file to out file (0 = std in/out) ld [syms[,noAbort]] Load std in into memory (syms = add symbols to table: -1 = none, 0 = globals, 1 = all) lkup ["substr"] List symbols in system symbol table lkAddr adr List symbol table entries near address checkStack [task] List task stack sizes and usage printErrno value Print the name of a status value periodi secs,adr,args... Spawn task to call function periodically repeat n,adr,args... Spawn task to call function n times (0=forever) diskinit "device" Format and initialize RT-11 device squeeze "device" Squeeze free space on RT-11 device NOTE: arguments specifying 'task' can be either task id or "name"
- you can use libManagerWordAt to read the actual nvran value.
Seems actually possible to enable options directly from the debug port, without any expensive gpib card.
With the following commands, taken from other threads here in tek.com/forum, should be possible to enable options
Code: Select all
libManagerWordAtPut(0x50006, 1) <- Enable option 1M libManagerWordAtPut(0x50007, 1) <- Enable option 05 libManagerWordAtPut(0x50008, 1) <- Enable option 13 libManagerWordAtPut(0x50009, 1) <- Enable option 2F libManagerWordAtPut(0x5000a, 1) <- Enable option 1F libManagerWordAtPut(0x5000c, 1) <- Enable option 2C libManagerWordAtPut(0x5000d, 1) <- Enable option 3C libManagerWordAtPut(0x5000e, 1) <- Enable option 4C libManagerWordAtPut(0x5000f, 1) <- Enable option 2M
Code: Select all
libManagerWordAt 0x50006 libManagerWordAt 0x50007 libManagerWordAt 0x50008 libManagerWordAt 0x50009 libManagerWordAt 0x5000a libManagerWordAt 0x5000c libManagerWordAt 0x5000e libManagerWordAt 0x5000f
My oscilloscope has a very old fw version (1.3) that doesn't even have rolling mode; i suspect that this particular fw version doesn't have these options implemented.
does anyone have a firmware update ?
Feel free to test these command, please use with care!