Hello,
The EEPROM on the LA2016 can be read/written with the Python utility
called 'fx2tool'. On Windows I used Zadig to assign WinUSB as the driver, then;
Read of the 24C02 256 byte EEPROM on Kingst LA2016 with v1.3.0 PCB:

pip install fx2
fx2tool -B -d 77a1:01a2 read_eeprom -W 1 0 256
c0 a1 77 a2 01 00 00 00  08 f7 00 00 08 f7 10 ef
f2 9e 0e 1d f9 c4 40 86  34 a5 26 32 ff e8 a3 81
20 11 df ee ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

It would be good to confirm if this is the same as the "Jiankun" LA2016
EEPROM.

Regards

Kevin
On 2020-12-10 16:50, Kevin Grant wrote:

Hello, Apologies, I'm not sure whether to top post or bottom post in this mailing list. Please tell me if I got it wrong. It occurred to me that my unit and Helge's unit are Kingst brand, whereas the unit used by the developer may have been "Jiankun" (guessing because that unit is described on sigrok site). https://sigrok.org/wiki/Kingst_LA2016 Perhaps there are slight configuration differences (eeprom) between the two. Just a thought. I will try to read eeprom. Regards, Kevin On 2020-12-09 16:41, Helge Kruse wrote: Hi Kevin, I have also this Kingst LA2016 device and it doesn't work with sigrok on Windows. The interface number should be changed in protocol.h line 37, and be used in the line 505 you cited. But this change is not sufficient. The communication with the device stucks later when the IN transfer should be read. I don't have a solution, sorry. Regards, Helge Am 09.12.2020 um 14:46 schrieb Kevin Grant: Hello, Log:
sr: kingst-la2016: Found a LA2016 device.
sr: kingst-la2016: device at 'usb/1-5' has no firmware loaded!
sr: ezusb: uploading firmware to device on 1.7
ezusb: Unable to set configuration: LIBUSB_ERROR_INVALID_PARAM
sr: kingst-la2016: uC firmware upload failed!

I think this is because the USB device descriptors show the configuration index 
as 0x01 (in USB Tree View[1]) but PulseView tries to set configuration 0x00.
src/hardware/kingst-la2016/protocol.c [1]
505         return ezusb_upload_firmware(sr_ctx, dev, 0, fw_file);

By contrast, the little saleae clone I have works, it also shows configuration 
index as 0x01 and PulseView sets configuration 0x01 for that
src/hardware/fx2lafw/protocol.h [2]
35     #define USB_CONFIGURATION       1

If anyone has LA2016 working on Windows, please let me know. Regards, Kevin [1] https://www.uwe-sieber.de/usbtreeview_e.html
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel


Links:
------
[1]
https://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/hardware/kingst-la2016/protocol.c;h=0b4a8bf36019d0a18d97c2412e8af7790c81e162;hb=HEAD
[2]
https://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/hardware/fx2lafw/protocol.h;h=3f240c590eb1bb765b991796a2c8619d45aa03f8;hb=HEAD
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to