Hi,
I am trying to establish a communication and read data from an Inverter device which uses Cypress USB to Serial chip. The 'lsusb' command reports that the device has vendorID 0665, and productID 5161, with description "Cypress Semiconductor USB to Serial". And the device appears on a Linux machine as '/dev/usb/hiddev0'. Unfortunately I am having difficulty with establishing the communication with this device.
I am hoping get some help in figuring out how to communicate with this device:
- Is there any existing device-driver/library that I can use to establish communication with this device?
- Am I supposed to directly use low-level USB messages to communicate with the device? If yes, can I get some references/examples of how this can be done?
So far, I have tried to communicate with this device as usb-serial but it hasn't worked. I have tried following so far:
- I have tried to directly connect to the device using serial communication tools (e.g., picocom) but I get 'Fildes not a tty'.
- I have tried to modify existing kernel driver for usb-serial communication (cp210x.ko) to support 0665:5161 vendor/product-ID, but this lead to 'input/output error' when connecting to the device.
- I have also tried using 'cypress_m8.ko' kernel module from CYPRESS by editing to support 0665:5161 vendor/product-ID, but that lead to kernel-panic!
- I have experimented with 'CyUSBSerialTestUtility' from CyUSBSerial_SDK_Linux from CYPRESS to see if it detects anything, but it does not detect any device.
Any suggestions/tips on to help in establishing communication with this device will be helpful!
Thanks!