QHYCCD

QHY5-III-178 issues

QHY5-III-178 issues
« on: November 21, 2016, 06:16:22 PM »
Hello,

I'm new to the boards because I'm having issues loading the firmware on a recently purchased QHY5-III-178M camera.  My system is Ubuntu 16.04 running on an older laptop that only has USB2.0.

Whenever I plug in the camera it is not recognized.  Inspection of /var/log/syslog gives me the following:

Nov 21 13:18:38 talon kernel: [   12.195677] usb 2-1.1.4.4.3.1: new high-speed USB device number 13 using ehci-pci
Nov 21 13:18:38 talon kernel: [   12.300863] usb 2-1.1.4.4.3.1: New USB device found, idVendor=1618, idProduct=0178
Nov 21 13:18:38 talon kernel: [   12.300874] usb 2-1.1.4.4.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 21 13:18:38 talon kernel: [   12.300880] usb 2-1.1.4.4.3.1: Product: WestBridge
Nov 21 13:18:38 talon kernel: [   12.300885] usb 2-1.1.4.4.3.1: Manufacturer: Cypress
Nov 21 13:18:38 talon kernel: [   12.300890] usb 2-1.1.4.4.3.1: SerialNumber: 0000000004BE
Nov 21 13:18:38 talon mtp-probe: checking bus 2, device 13: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1.4/2$
Nov 21 13:18:38 talon mtp-probe: bus: 2, device: 13 was not an MTP device
Nov 21 13:18:38 talon systemd-udevd[1428]: Process '/sbin/fxload -t fx3 -I /lib/firmware/qhy/QHY5III178.img -D
/dev/bus/usb/002/013' failed with exit code 255.

I'm guessing the loading of the firmware is the problem here, but I'm not quite sure how to fix it.


BTW... I run an identical Ubuntu 16.04 as a virtual machine on a different laptop that does have USB3.0 ports - when I plug in the camera into the 3.0 port it gets detected just fine.

Nov 21 14:14:40 talon kernel: [   85.561116] usb 2-1: new SuperSpeed USB device number 3 using xhci_hcd
Nov 21 14:14:40 talon kernel: [   85.580315] usb 2-1: LPM exit latency is zeroed, disabling LPM.
Nov 21 14:14:40 talon kernel: [   85.581814] usb 2-1: New USB device found, idVendor=1618, idProduct=0179
Nov 21 14:14:40 talon kernel: [   85.581818] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 21 14:14:40 talon kernel: [   85.581821] usb 2-1: Product: Titan178U
Nov 21 14:14:40 talon kernel: [   85.581823] usb 2-1: Manufacturer: QHYCCD
Nov 21 14:14:40 talon mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:0c.0/usb2/2-1"
Nov 21 14:14:40 talon mtp-probe: bus: 2, device: 3 was not an MTP device



Re: QHY5-III-178 issues
« Reply #1 on: November 24, 2016, 10:46:53 AM »
I am seeing something similar with my QHY5-III-185C. I built and installed the firmware from the QHY github repo.  My raspberry pi 3 is recognizing that a camera gets plugged in, but Linux isn't figuring out what is the device. 
Code: [Select]
[ 1585.748275] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[ 1585.848877] usb 1-1.3: New USB device found, idVendor=1618, idProduct=0185
[ 1585.848897] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1585.848910] usb 1-1.3: Product: WestBridge
[ 1585.848923] usb 1-1.3: Manufacturer: Cypress
[ 1585.848935] usb 1-1.3: SerialNumber: 0000000004BE
pi@iAstroHub:~/QHYCCD/QHYCCD_Linux-master/sample $ lsusb
Bus 001 Device 004: ID 1618:0185 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@iAstroHub:~/QHYCCD/QHYCCD_Linux-master/sample $

Something seems to be missing. I see that 85-qhy.rules does not include any of the USB3 cameras, so maybe the idVendor/idProduct aren't mapped to the camera? This wouldn't explain why @bigburrito225 had a system that saw the Titan device.
« Last Edit: November 24, 2016, 11:01:36 AM by ColgS3b »

Re: QHY5-III USB3 Linux issues
« Reply #2 on: November 24, 2016, 09:30:08 PM »
I did some more searching (google) based on the "SerialNumber: 0000000004BE" text. The following link might help us:
https://nuand.com/forums/viewtopic.php?f=6&t=2990
According to this, we would need to used the Cypress tools to get the firmware loaded. Then, our cameras might show up in the device list. It would be nice if lzr could provide some input.

Re: QHY5-III-178 issues
« Reply #3 on: November 25, 2016, 04:14:48 AM »
The new USB3 cameras are not yet included in the udev rules. You can however try to load the firmware using fx3load. The tool sources can be obtained from SF: https://sourceforge.net/projects/fx3load/. For QHY163 it works like this:
sudo ./fxload -t fx3 -I ../../QHYCCD_Linux/firmware/QHY163.img -D /dev/bus/usb/003/023

The last bit is specific to computer used and will change (need to check udev/kernel which device you should talk to). Firmware files are available in github repo: https://github.com/qhyccd-lzr/QHYCCD_Linux

Firmware loading worked well for me. The camera re-enumerates itself and VID/PID changes. I didn't have any luck with SDK yet. Lee claims it doesn't work with USB3 cameras. I'm not even able to compile example programs, so I can't tell if he's correct on this subject.

Hope this helps.
milosz

Re: QHY5-III-178 issues
« Reply #4 on: May 29, 2018, 09:33:24 AM »
I am also having these same issues: Unrecognizable camera with a QHYIII224 model. Their is an .img file for mine also but I guess it does not load correctly. Has their been a firm answer to this yet?