❌

Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

Remote control IC-7300

28 March 2024 at 15:17

Er zijn diverse commerciΓ«le remote control oplossingen verkrijgbaar voor de ICOM IC-7300 maar deze zijn aardig prijzig en ook redelijk eenvoudig zelf te maken voor aanzienlijk minder kosten. Ik heb dit gedaan met een paar schakelaars (drukkers) en een aantal weerstanden van Tessatronic in Hengelo, een stuk UTP kabel en een oud blikken snoepdoosje.

Een tijdje geleden had ik al een controller gemaakt voor de 4 geheugen kanalen (M1 t/m M4) en sinds vandaag zijn daar twee knoppen aan toegevoegd voor frequentie Up en Down. Ik sluit het geheel aan op de microfoon switch van MFJ de MFJ-1260. Hiermee kan ik schakelen tussen de vaste microfoon of de head set. Bij beide zit een parallelle RJ-45 connector waar ik de remote control op aan kan sluiten.

ICOM IC7300 Remote Control PE2V dicht
ICOM IC7300 Remote Control PE2V open
ICOM IC7300 Remote Control PE2V schema

De belangrijkste reden om de twee knoppen toe te voegen was de lichamelijke houding t.o.v. de IC-7300. De TRX staat eigenlijk iets te ver weg bij mij vandaan waardoor je constant voorover gebogen moet zitten om bij de afstemknop te komen. In het kader van een goede werkhouding dus de afstemknoppen (Up en Down) remote gemaakt.

Nog wel een tip: mocht je dit ook gaan bouwen en een UTP kabel gaan gebruiken; dit gaat niet zomaar werken omdat het microfoonsignaal meegaat in de kabel. Met als resultaat: brom. Dus je ontkomt er niet aan om de connector eraf te knippen en een nieuwe terug te plaatsen met alleen de draden voor PIN 3 en PIN 6 (Massa). Hierdoor kun je natuurlijk ook een dunnere kabel dan een UTP kabel gebruiken. Dit heb ik niet gedaan. Het voelt wel lekker stevig aan zo.

Hieronder een filmpje van de VERON VHF UHF contest van juni 2023 waarin ik de controller gebruik voor de Voice Keyer. Dus het automatisch een tekstbericht af laten spelen die opgeslagen is onder een van de 4 geheugenkanalen. In dit geval CQ Contest:

Het bericht Remote control IC-7300 verscheen eerst op PE2V.

LXI - Rigol DSA815 Spectrum Analyzer - remote control

Β Following on the series for "GPIB" control of instruments, this post is about LXI control, in particular the Rigol DSA815-TG spectrum analyzer. It is more Linux oriented but commands can be ported to other systems.
Did this out of need since I could not find a single explanatory source of information for all the commands listed besides the programing guide and as all programing guides, they never have a simple; "how to to this"
Most of the command are using the "lxi" tool v1.21. You can use also the gui version "lxi-gui"

LXI is nothing more than LAN extensions for instrumentation control. Same end result as GPIB or Serial port control, that is, you have a system that controls and queries the instrument, only the medium is different on this case, it uses a more modern approach, the Ethernet/LAN.

Recently acquired a Rigol DSA815-TG 1.5Ghz spectrum analyzer and although at the moment I only use computer control for taking some screenshots would be interesting to know how to take more advantage of instrument remote control.

First thing you will need is connect your instrument via the LAN port to your local network, in my case I just connect it back to back to my laptop. Then you will need to set the IP via instrument panel, in my case I used a static IP in the same range as the Ethernet port of the laptop.

Laptop was configured with IP 192.168.1.65 / netmask 255.255.255.0 (/24 for the hard core one)

In case you don't know your instrument IP, case configured by DHCP for example, you can use the "lxi" tool discover command to "automatically" discover the instruments available on you local are network.

==
# lxi discover
Searching for LXI devices - please wait...
Β 
Broadcasting on interface lo
Broadcasting on interface enp9s0
Β  Found "Rigol Technologies,DSA815,DSA8A22XXXXXX,00.01.19.00.02" on address 192.168.1.81
Broadcasting on interface wlp12s0
Β 
Found 1 device
==

If you are more inclined to review some additional protocol specifications,you can find it here.
A simple wireshark capture allows to have an idea of the inner workings of the discovery process.

Β 


Β 

At this stage you can query the instrument with the classic "*IDN?" command:
Β 

==
#Β  lxi scpi --address 192.168.1.81 "*IDN?"
A: Rigol Technologies,DSA815,DSA8A22XXXXXX,00.01.19.00.02
==
Note: I replaced part of the instrument identifier string with X's.

Β 

You can also use a normal "telnet" to port 5555 and make de same query:
==
# telnet 192.168.1.81 5555
Trying 192.168.1.81...
Connected to 192.168.1.81.
Escape character is '^]'.
*IDN?
Rigol Technologies,DSA815,DSA8A22XXXXX,00.01.19.00.02
==

Now let's take some data from the instrument, a screenshot for a start, using the lxi tool screenshot option:

==
Β # lxi screenshot --address 192.168.1.81 trace.bmp
==

Result is is "trace.bmp file saved on the current working directory:


The screenshot will literary take a screenshot of what's visible on the screen be it a trace or a configuration screen.

Even more complicated screenshot for the command line die hard's:
==
# echo ":PRIV:SNAP? BMP" | nc -w 5 192.168.1.81 5555 | dd bs=1 skip=11 of=screen.bmp
==

Continuing with some other commands...

Display brightness query:

==
# lxi scpi --address 192.168.1.81 "DISP:BRIG?"
==
Note: answer with be a numeric value of the the setting, in my case is "1"

If you need to change to "2" the screen brightness:
==
# lxi scpi --address 192.168.1.81 "DISPlay:BRIGhtness 2"
==


Turning the tracking generator/TG on:

==
# lxi scpi --address 192.168.1.81 "OUTP:STATE 1"
==

Querying the tracking generator/TG status:
==
# lxi scpi --address 192.168.1.81 "OUTP:STATE?"
==
Output will be 1 or 0 if ON or OFF.


Setting and querying the start frequency:

==
# lxi scpi --address 192.168.1.81 "FREQ:START 124Mhz"
==
Query:
==
# lxi scpi --address 192.168.1.81 "FREQ:START?"
==
Note: it will answer the previous set frequency: "124000000"

For stop frequency should be "FREQuency:STOP", bellow for a 450Mhz stop frequency
==
# lxi scpi --address 192.168.1.81 "FREQ:STOP 450Mhz"
==
The result will be like this on the spectrum analyzer:


Β Now we need to take/download traces: this for me is the most interesting part since we can take the traces and then compute over the results, for instance in SWR (when trial license expires ) or 3db bandwidth for example.


Download data of trace 1
==
# lxi scpi --address 192.168.1.81 ":TRACe:DATA? TRACe1"
==
Output, (shortened version) will be similar to this:
#9000009014 -2.017071e+01, -5.862679e+01, -6.025334e+01, -6.129734e+01, -6.015621e+01, -6.299181e+01, -5.941000e+01, -6.174416e+01, -5.768233e+01, -6.222626e+01, -6.008302e+01, -6.109689e+01, -6.196978e+01, -6.302518e+01, -6.228621e+01, -6.230527e+01, -6.312371e+01, -6.304392e+01, -6.187805e+01, -6.133699e+01, -6.096120e+01, -5.720531e+01, -5.873640e+01, -6.165216e+01, -5.796873e+01, -5.905419e+01, -5.763849e+01, -6.094759e+01, -6.073965e+01,..

You can "pipe" the command to file this way:
==
# lxi scpi --address 192.168.1.81 ":TRACe:DATA? TRACe1" > trace1.csv
==
Open "trace1.csv" on a spreadsheet software and plot a graph:


To download trace 3 for example:
==
# lxi scpi --address 192.168.1.81 ":TRACe:DATA? TRACe3"
==
If nothing is set for that trace the output will look like this:
#9000009014 -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02, -4.000000e+02,...(continues)


As last command on this series, let's query the instrument language:
==
Β # lxi scpi --address 192.168.1.81 "SYST:LANG?"
==
Output is on my case: "ENGl"

==========

- In the future will try to add more commands in this document and write some scripts for automation, maybe even a GUI program.Β 

- If you copy past the command in this post, don't forget to set your instrument IP instead of the one I used (192.168.1.81)

- Rigol DSA800 programing guide can be downloaded at: https://www.batronix.com/files/Rigol/Spektrum-Analysatoren/DSA800/DSA800_ProgrammingGuide_EN.pdf

Hope this helps someone,

Have a nice day!

Β 

Β 

Β 



❌
❌