Hi HKJ,
I've been trying to make a definition for a Hantek HDP3323 power supply, this is a re-badged Matrix MPS-3303S (also a GW-Instek GPD-3303S), but Hantek's PSU uses LAN to communicate.
Anyway, I have the base definition file but some query commands doesn't work and I keep getting RX timeout errors from TC (increasing the timeout time didn't solve it). So I used Wireshark to inspect the communication between the power supply and TC and I think the problem is that the PSU is replying these commands without an EOL character.
I've attached the log from wireshark. The power supply is replying the correct value, but it is missing the EOL, so TC can't process it.
I tried to use a #scpiCmd to modify the command, like:
#scpiCmd vtest1? txrxnBin? 5 vset1?\n
Not sure if it's right, it kind of worked but the value I am getting is in Hex format and I can't find a way to convert it.
Starting
;; jSerialComm version: 2.11.0
;; Start thread for: 192.168.10.185 - Hantek HDP3303
;; 192.168.10.185: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; 192.168.10.185: Rx: <MATRIX,MPS-3303S,V1.1> 4D 41 54 52 49 58 2C 4D 50 53 2D 33 33 30 33 53 2C 56 31 2E 31 0A
;; Found Hantek HDP3303 on 192.168.10.185
vset1:5.2
;; HDP3303: Tx <vset1:5.2>
;; 192.168.10.185: Tx: <vset1:5.2.> 76 73 65 74 31 3A 35 2E 32 0A
vtest1?
;; HDP3303: Tx <vtest1?>
;; HDP3303: Tx <txrxnBin? 5 vset1?\n>
;; 192.168.10.185: Tx: <vset1?.> 76 73 65 74 31 3F 0A
;; 192.168.10.185: Rx: <5.200> 35 2E 32 30 30
;; HDP3303: Rx <206967025205>
;; 206967025205
Is there a better way to make TC recognize these commands or convert the values that I am getting from #scpiCmd?
thx