Ekos does not recognise ZWO USBST4 adapter

Ekos does not recognise ZWO USBST4 adapter - Page 2 - INDI Forum - Results from #12
  • Posts: 49
  • Thank you received: 0

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

I am back. Ok. The next step is to look at udevadm. Execute this command.

sudo udevadm info /dev/ttyACM0

This yeilds a treasure trove of data, if this is working.

open GEANY under SUDO. Reopen the RULE for this adapter. COPY all. Then OVERWRITE with this.

# ZWO USBST4 adapater
ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ENV{MTP_NO_PROBE}="1"
KERNEL=="ttyACM*",SUBSYSTEM=="tty",ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc"
SUBSYSTEM=="usb",ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ATTRS{Product}==“USBST4”,SYMLINK+="ZWOUSBST4",MODE="0666"


SAVE then exit.

NEXT use this command.

sudo udevadm test /lib/udev/rules.d/99-ZWOUSBST4.rules

NEXT use this command

sudo udevadm monitor

Unplug the device and plug it in. dump the results.
Last edit: 4 years 2 months ago by John Robison. Reason: New findings
4 years 2 months ago #56770

Please Log in or Create an account to join the conversation.


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

  • Posts: 49
  • Thank you received: 0

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

Do you see it?

/lib/udev/rules.d/99-ZWOUSBST4.rules:5: Invalid key/value pair, starting at character 66 (',')

This sticks out like a sore thumb. The rule needs to remove the extra character. Change ",," to ",". Use geany and edit, then save. Next do this:

sudo udevadm control --reload.

Then

udevadm test /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:03C3:CCCC.0001

This should enumerate your device.

Post your results.
4 years 2 months ago #56821

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

Open Geany. Reopen the rule.

Use Search and Replace. Use this criteria, “,,” with “,”. The error is line 5 at the 66th position. Save.

Reload udevadm. Monitor udevadm. And use test again. Then unplug and plug back in. The error will be gone and EKOS will see your device.
4 years 2 months ago #56833

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
I used search and replace, but there is no ',,' instance anymore in the file. But the error keeps popping up.
I tried nano as well to check whether I am looking at the wrong/another version of the file, but also there, it keeps showing up with NO ',,' anywhere.
Restarting the Pi and udevadm doesn't do anything either
4 years 2 months ago #56836

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

Reopen the file with Geany. Look at the header bar. Where does this file get loaded from?

Copy this corrected file to /lib/udev/rules.d. Then use the udevadm commands in my previous entry.
4 years 2 months ago #56841

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
Unfortunately, /lib/udev/rules.d is exactly where it gets loaded from
4 years 2 months ago #56843

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15

Copy its content here to review. Thank you. Below, the errant was “cccc”,,ATTRS”. Copy this one below.

# ZWO USBST4 adapater
ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ENV{MTP_NO_PROBE}="1"
KERNEL=="ttyACM*",SUBSYSTEM=="tty",ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc"
SUBSYSTEM=="usb",ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ATTRS{Product}==“USBST4”,SYMLINK+="ZWOUSBST4",MODE="0666"
Last edit: 4 years 2 months ago by John Robison.
4 years 2 months ago #56850

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
The contents before writing this post are:

<code># ZWO USBST4 adapater
ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ENV{MTP_NO_PROBE}="1"
KERNEL=="ttyACM*",SUBSYSTEM=="tty",ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc"
SUBSYSTEM=="usb",ATTRS{idVendor}=="03c3",ATTRS{idProduct}=="cccc",ATTRS{Product}==“USBST4”,SYMLINK+="ZWOUSBST4",MODE="0666"</code>

I now copied the text you shared. It still gives the same error after reloading udevadm.
Then, I proceeded deleting the rule, making a new file (in geany), pasting the text you just shared, and saving it again in the right folder, and after reloading... it STILL gives the same error. Even after searching for a ',,'. Amazing. Would reinstalling astroberry be of any help?
Last edit: 4 years 2 months ago by Michiel Desmedt.
4 years 2 months ago #56853

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

No, a reinstall is not the answer. LOL. Use this command:

sudo udevadm control —reload

After any change with any rules, use this command to reload the rules.

Another check is to run this command

ls -lsa /lib/udev/rules.d/99-ZWO*

Let’s see its date and time stamp.
Last edit: 4 years 2 months ago by John Robison.
4 years 2 months ago #56854

Please Log in or Create an account to join the conversation.

Moderators: Radek Kaczorek
Time to create page: 1.277 seconds