Thanks
I'll quick check it later with the supplied uni-t wall wart, though it didn't come with my regional plug connector plate. Will wack it in a shaver adapter and see how it does.
Maybe that in afew days. Not expecting miracles there, but maybe they did get it specced slightly better than the average one
Yeah I can't get the windows drivers from either package to work for love or money.
I think there may be an issue with the USB controller on mine, as it keeps changing which descriptors are readable vs not when plugged in - no matter what cable I use. Happens on the pi too - sometimes I can't read certain descriptors....
Since it came from Banggood the chances of me providing sufficient video evidence for them to do an RMA are slim to none.
Yeah I can't get the windows drivers from either package to work for love or money.
I think there may be an issue with the USB controller on mine, as it keeps changing which descriptors are readable vs not when plugged in - no matter what cable I use. Happens on the pi too - sometimes I can't read certain descriptors....
Since it came from Banggood the chances of me providing sufficient video evidence for them to do an RMA are slim to none.
Yeah I can't get the windows drivers from either package to work for love or money.
I think there may be an issue with the USB controller on mine, as it keeps changing which descriptors are readable vs not when plugged in - no matter what cable I use. Happens on the pi too - sometimes I can't read certain descriptors....
Since it came from Banggood the chances of me providing sufficient video evidence for them to do an RMA are slim to none.
You probably have a non-compatible USB-serial driver installed already, and Windoze keeps trying to use that one instead. If you use Zadig, you can manually specify which driver that particular instance of the USB-serial converter uses, and assign a specific virtual com port so it always has the same com port.
mnem
import pyvisa as visa
def main():
_rm = visa.ResourceManager()
print (_rm.list_resources())
utg = _rm.open_resource("USB0::0x6656::0x0834::895783604::INSTR")
print(utg.query("*IDN?"))
if __name__=='__main__':
main()
('USB0::0x6656::0x0834::895783604::INSTR',)
UNI-T Technologies,UTG900E,895783604,1.08
Thanks! It looks like you get the same result from Linux as I do - which is great. At least it means there is no actual hardware problem
As I said earlier, with py-visa on the pi I can get an answer to '?IDN*' and it responds fine; I just don't know any other commands for this one.
I tried on another Win10 laptop yesterday but it has the same USB3.1 chipset as my desktop and I get the same random USB wackiness with it.
import pyvisa as visa
def main():
_rm = visa.ResourceManager()
utg = _rm.open_resource("USB0::0x6656::0x0834::895783604::INSTR")
print(utg.write("System:LOCK ON"))
print(utg.write("KEY:Wave"))
print(utg.write("KEY:F2"))
print(utg.write("System:LOCK OFF"))
if __name__=='__main__':
main()
As promised, the output for lsusb -v on my unit:
# lsusb -v -d 6656:0834
Bus 001 Device 006: ID 6656:0834
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x6656
idProduct 0x0834
bcdDevice 1.00
iManufacturer 1 uni-trend
iProduct 2 UTG900E
iSerial 3 895783604
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 UTG900E
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 3 Test and Measurement
bInterfaceProtocol 1 TMC
iInterface 5 UTG900E
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0002
(Bus Powered)
Remote Wakeup Enabled
The only difference I see is the serial number.
After the day job is done I'l give it a shot with Windows 10 and VISA-NI
Regards.
import pyvisa as visa
import time
def main():
_rm = visa.ResourceManager()
# print (_rm.list_resources())
utg = _rm.open_resource("USB0::0x6656::0x0834::895783604::INSTR")
# print(utg.query("*IDN?"))
print(utg.write("System:LOCK ON"))
#print(utg.write("KEY:CH1"))
print(utg.write("KEY:CH1"))
print(utg.write("KEY:Wave"))
print(utg.write("KEY:F1"))
print(utg.write("KEY:F1"))
begin = time.time()
print(utg.write("KEY:NUM1"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:DOT"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:NUM0"))
print(utg.write("KEY:F3"))
#time.sleep(5)
print(utg.write("KEY:NUM1"))
print(utg.write("KEY:NUM5"))
print(utg.write("KEY:DOT"))
print(utg.write("KEY:NUM8"))
print(utg.write("KEY:NUM4"))
print(utg.write("KEY:NUM8"))
print(utg.write("KEY:NUM9"))
print(utg.write("KEY:NUM3"))
print(utg.write("KEY:NUM2"))
print(utg.write("KEY:F3"))
end = time.time()
#time.sleep(5)
print(utg.write("KEY:CH1"))
print(utg.write("System:LOCK OFF"))
print(f"Total runtime of the program is {end - begin}")
if __name__=='__main__':
main()