From 74b1db7030ae538c177a1db205849d2e30dc0b8b Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 22 May 2022 15:29:34 +0200 Subject: Initial commit, added documentation and basic python boilerplate for JDS6600 --- jds6600/JT-JDS6600-Communication-protocol.pdf | Bin 0 -> 227870 bytes jds6600/all-off.bin | 1 + jds6600/all-on.bin | 1 + jds6600/control.py | 8 ++++++++ jds6600/stty-config | 3 +++ python-requirements.txt | 2 ++ sds1104x-e/Programming Guide PG 01 E 02 C.pdf | Bin 0 -> 2517971 bytes sds1104x-e/SDS1000X-E Data Sheet.pdf | Bin 0 -> 1377201 bytes sds1104x-e/SDS1000X-E Service Manual.pdf | Bin 0 -> 2952697 bytes sds1104x-e/SDS1000X-E User Manual.pdf | Bin 0 -> 5860015 bytes sds1104x-e/bandwidth | 1 + sds1104x-e/commands | 15 +++++++++++++++ 12 files changed, 31 insertions(+) create mode 100644 jds6600/JT-JDS6600-Communication-protocol.pdf create mode 100644 jds6600/all-off.bin create mode 100644 jds6600/all-on.bin create mode 100644 jds6600/control.py create mode 100755 jds6600/stty-config create mode 100644 python-requirements.txt create mode 100644 sds1104x-e/Programming Guide PG 01 E 02 C.pdf create mode 100644 sds1104x-e/SDS1000X-E Data Sheet.pdf create mode 100644 sds1104x-e/SDS1000X-E Service Manual.pdf create mode 100644 sds1104x-e/SDS1000X-E User Manual.pdf create mode 100644 sds1104x-e/bandwidth create mode 100644 sds1104x-e/commands diff --git a/jds6600/JT-JDS6600-Communication-protocol.pdf b/jds6600/JT-JDS6600-Communication-protocol.pdf new file mode 100644 index 0000000..f999813 Binary files /dev/null and b/jds6600/JT-JDS6600-Communication-protocol.pdf differ diff --git a/jds6600/all-off.bin b/jds6600/all-off.bin new file mode 100644 index 0000000..f04d91b --- /dev/null +++ b/jds6600/all-off.bin @@ -0,0 +1 @@ +:w20=0,0. diff --git a/jds6600/all-on.bin b/jds6600/all-on.bin new file mode 100644 index 0000000..55e9577 --- /dev/null +++ b/jds6600/all-on.bin @@ -0,0 +1 @@ +:w20=1,1. diff --git a/jds6600/control.py b/jds6600/control.py new file mode 100644 index 0000000..bf7b427 --- /dev/null +++ b/jds6600/control.py @@ -0,0 +1,8 @@ +class OpCode: + ONOFF = "w20" + +def sendCommand(opcode, args): + with open("/dev/ttyUSB0", "w") as tty: + print(f":{opcode}={args}.", end="\r\n", file=tty) + +sendCommand(OpCode.ONOFF, "1,0") diff --git a/jds6600/stty-config b/jds6600/stty-config new file mode 100755 index 0000000..4217c48 --- /dev/null +++ b/jds6600/stty-config @@ -0,0 +1,3 @@ +#!/usr/bin/zsh + +stty -F /dev/ttyUSB0 speed 115200 cs8 -cstopb -parenb -echo diff --git a/python-requirements.txt b/python-requirements.txt new file mode 100644 index 0000000..be4b9eb --- /dev/null +++ b/python-requirements.txt @@ -0,0 +1,2 @@ +pyusb +python-usbtmc diff --git a/sds1104x-e/Programming Guide PG 01 E 02 C.pdf b/sds1104x-e/Programming Guide PG 01 E 02 C.pdf new file mode 100644 index 0000000..ff64126 Binary files /dev/null and b/sds1104x-e/Programming Guide PG 01 E 02 C.pdf differ diff --git a/sds1104x-e/SDS1000X-E Data Sheet.pdf b/sds1104x-e/SDS1000X-E Data Sheet.pdf new file mode 100644 index 0000000..a05b21e Binary files /dev/null and b/sds1104x-e/SDS1000X-E Data Sheet.pdf differ diff --git a/sds1104x-e/SDS1000X-E Service Manual.pdf b/sds1104x-e/SDS1000X-E Service Manual.pdf new file mode 100644 index 0000000..192fee5 Binary files /dev/null and b/sds1104x-e/SDS1000X-E Service Manual.pdf differ diff --git a/sds1104x-e/SDS1000X-E User Manual.pdf b/sds1104x-e/SDS1000X-E User Manual.pdf new file mode 100644 index 0000000..58efc0c Binary files /dev/null and b/sds1104x-e/SDS1000X-E User Manual.pdf differ diff --git a/sds1104x-e/bandwidth b/sds1104x-e/bandwidth new file mode 100644 index 0000000..02d7da3 --- /dev/null +++ b/sds1104x-e/bandwidth @@ -0,0 +1 @@ +https://www.makermatrix.com/blog/hacking-the-siglent-1104x-e-oscilloscope/ diff --git a/sds1104x-e/commands b/sds1104x-e/commands new file mode 100644 index 0000000..62e1af2 --- /dev/null +++ b/sds1104x-e/commands @@ -0,0 +1,15 @@ +CYMT? +- returns frequency counter of specific source + +PACU +- enables measurement for a specific source +- PACU AMPL,C1: enables amplitude measurement on C1 + +PAVA? +- queries for measurement on a channel +- C1:PAVA? AMPL: returns amplitude measurement on C1 +- measurement does not need to be enabled (e.g. with PACU) for this to work + +- can also request measurements enabled by PACU with special usage + + -- cgit v1.2.3