Tatsuji_Tanaka replied to the topic 'RPi3B_ZWOasiEFWmini_again' in the forum. 5 years ago

I have also consulted ASI, and got shown below;
On my script is
indi_setprop "EFW.CONNECTION.CONNECT=On"
Correct property of connection is
indi_setprop "ASI EFW.CONNECTION.CONNECT=On"

All property need "ASI "
I am not sure why my wrong script did worked last year on my same board with jessie+libindi_1.4.1.
Anyway, it does work, and now I will try it on my RPi0W.

Thanks all.

Read More...

Tatsuji_Tanaka replied to the topic 'RPi3B_ZWOasiEFWmini_again' in the forum. 5 years ago

Thank you DerPit.
So you do't get message like;
>No EFW.CONNECTION.CONNECT from localhost:7624

I have installed libindi, and not any third party driver, just rules such as;
>$sudo cp efw.rules /lib/udev/rules.d
>Replug filter wheel
One option is to get the old version, meaning jessie+libindi_1.4.1, because I did not have any issue last year.

Read More...

Tatsuji_Tanaka replied to the topic 'RPi3B_ZWOasiEFWmini_again' in the forum. 5 years ago

Can I have the meaning of this message, and useful URL or something to solve the issue?
>Driver indi_asi_wheel: FW ID: 0 FW Name: EFW enumerate? false
Any small advice should be appreciated.

Read More...

Tatsuji_Tanaka created a new topic ' RPi3B_ZWOasiEFWmini_again' in the forum. 5 years ago

My RasPi(Raspbian 9.4 (stretch)+livimdi 1.7.4) cannot communicate with ZWOASI EFWmini as follows. I have installed dependencies, sudo apt --fix-broken install, and cp udev rule based on ASI website. (Last year, it did worked with jessie+libindi_1.4.1)
My final goal is to do this on PizeroW, but did not work. Then I retried it on Pi3B, but not worked. Thank you for your kind advice.

#My script
export LANG=en_US
sudo indiserver indi_asi_wheel &
sleep 3s
indi_setprop "EFW.CONNECTION.CONNECT=On"
indi_setprop "EFW.CONNECTION.DISCONNECT=Off"
jobs
indi_setprop "EFW.FILTER_SLOT.FILTER_SLOT_VALUE=1"
indi_getprop "EFW.FILTER_SLOT.FILTER_SLOT_VALUE"

#Error message.
2018-11-14T08:39:28: startup: indiserver indi_asi_wheel
2018-11-14T08:39:28: Driver indi_asi_wheel: Searching for HID Device VID: 0x3c3 PID: 0x1f01
2018-11-14T08:39:29: Driver indi_asi_wheel: FW ID: 0 FW Name: EFW enumerate? false
No EFW.CONNECTION.CONNECT from localhost:7624
No EFW.CONNECTION.DISCONNECT from localhost:7624
[1]+ 実行中 sudo indiserver indi_asi_wheel &
No EFW.FILTER_SLOT.FILTER_SLOT_VALUE from localhost:7624
No EFW.FILTER_SLOT.FILTER_SLOT_VALUE from localhost:7624


#USB info. looks OK.
Bus 001 Device 005: ID 03c3:1f01
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
|__ Port 5: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 480M
Device: ID 03c3:1f01
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x03c3
idProduct 0x1f01
bcdDevice 0.00
iManufacturer 1 ZW0
iProduct 2 ZWO EFW
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 64mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
Warning: Descriptor too short
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.01
bCountryCode 0 Not supported
bNumDescriptors 2
bDescriptorType 34 Report
wDescriptorLength 68
bDescriptorType 0 (null)
wDescriptorLength 0
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 10
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Read More...

By following query, I found the problem was "EFW.CONNECTION.CONNECT=Off"
pi@raspberrypi:~ $ indi_getprop
EFW.CONNECTION.CONNECT=Off
EFW.CONNECTION.DISCONNECT=On
EFW.DRIVER_INFO.DRIVER_NAME=ASI Wheel
EFW.DRIVER_INFO.DRIVER_EXEC=indi_asi_wheel
EFW.DRIVER_INFO.DRIVER_VERSION=0.5
EFW.DRIVER_INFO.DRIVER_INTERFACE=16
EFW.DEBUG.ENABLE=Off
EFW.DEBUG.DISABLE=On
EFW.SIMULATION.ENABLE=Off
EFW.SIMULATION.DISABLE=On
EFW.CONFIG_PROCESS.CONFIG_LOAD=Off
EFW.CONFIG_PROCESS.CONFIG_SAVE=Off
EFW.CONFIG_PROCESS.CONFIG_DEFAULT=Off

Then I set as;
pi@raspberrypi:~ $ indi_setprop "EFW.CONNECTION.CONNECT=On"
I got the control of EFW, and my Bash script did worked. Thank you all.
BTW, please let me know how to set "EFW.CONNECTION.CONNECT=On" automatically, or permanently.

Read More...

Thank you rockstarbill. I retried as user instead of super user, but failed again. I guess I have some wrong setup of INDI Library v1.4.1.
Unless any other way to find my problem, I am going to reinstall INDI Lib.
Tatsuji

Read More...

I have rebooted RPi3, and tried again. I got following message from RPi3.

# on term1
pi@ras_pi1:~ $ sudo indiserver -v indi_asi_wheel
2017-03-28T00:15:15: startup: indiserver -v indi_asi_wheel
2017-03-28T00:15:15: Driver indi_asi_wheel: pid=1107 rfd=3 wfd=6 efd=7
2017-03-28T00:15:15: listening to port 7624 on fd 4

# Then I open one more terminal:term2 to input a command, and the message.
# on term2
pi@ras_pi1:~ $ indi_setprop "EFW.FILTER_SLOT.FILTER_SLOT_VALUE=1"
No EFW.FILTER_SLOT.FILTER_SLOT_VALUE from localhost:7624

#after above comand input on term2 I got following message on the term1
2017-03-28T00:15:44: Client 0: new arrival from 127.0.0.1:42236 - welcome!
2017-03-28T00:15:46: Client 0: read EOF
2017-03-28T00:15:46: Client 0: shut down complete - bye!

Any suggestion?
Thanks for your help.
Tatsuji

Read More...

I guess so because of following messsage.
pi@ras_pi1:~ $ sudo indiserver -vv indi_asi_wheel
2017-03-27T03:45:45: startup: indiserver -vv indi_asi_wheel
2017-03-27T03:45:45: Driver indi_asi_wheel: pid=1947 rfd=3 wfd=6 efd=7
2017-03-27T03:45:45: listening to port 7624 on fd 4
...
But let me know the way to verify it, if I am wrong.

Best regards,
Tatsuji

Read More...

Thank you for your prompt answer knro.
But my request was refused as follows. I think my setup of the system may have some problem or imperfection.

pi@ras_pi1:~ $ indi_setprop "EFW.FILTER_SLOT.FILTER_SLOT_VALUE=1"
connect: Connection refused
pi@ras_pi1:~ $ sudo indi_setprop "EFW.FILTER_SLOT.FILTER_SLOT_VALUE=1"
connect: Connection refused

Best regards,
Tatsuji

Read More...

Could anyone let me know the command to get/set the position of ZWO EFWmini? Or the way to know them.
When I put indi_getprop, Therminal replied as
connect: Connection refused

What I would like to do is take images with DSLR/EFW from Bash script like this;

sudo python3 switch3.py #waiting for START by push button through GPIO on RPi3
#set EFW position 1 <—I want this!
sudo gphoto2 --set-config burstnumber=04
sudo gphoto2 --set-config shutterspeed2=006
sudo gphoto2 --capture-image
sudo gphoto2 --set-config shutterspeed2=012
sudo gphoto2 --capture-image
#set EFW positon 2
sudo gphoto2 --set-config burstnumber=04
sudo gphoto2 --set-config shutterspeed2=006
sudo gphoto2 --capture-image
sudo gphoto2 --set-config shutterspeed2=012
sudo gphoto2 --capture-image


gphoto2 commands work well.

I use; Pi3 raspbian, and ZWO EFWmini
INDI Library v1.4.1 based on:
www.indilib.org/download/raspberry-pi.html

Installed udev rule(Linux) based on:
"EFW filter wheel software Manual(Linux & OSX)"
astronomy-imaging-camera.com/manuals/EFW...Linux%20OSX%20EN.pdf

I got some info. from the terminal as shown below.

pi@ras_pi1:~ $ lsusb
Bus 001 Device 006: ID 1c4f:0027 SiGma Micro
Bus 001 Device 005: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 004: ID 03c3:1f01
Bus 001 Device 007: ID 04b0:0414 Nikon Corp.
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@ras_pi1:~ $ ls -l /dev/bus/usb/001/004
crw-rw-rw- 1 root users 189, 3 Mar 26 14:24 /dev/bus/usb/001/004

pi@ras_pi1:~ $ more /lib/udev/rules.d/99-efw.rules
# FILTER WHEELS
ACTION=="add", ATTRS{idVendor}=="03c3", ATTRS{idProduct}=="1f01", GROUP="users", MODE="0666"

pi@ras_pi1:~ $ ls -l /dev/hidraw0
crw-rw-rw- 1 root users 247, 0 Mar 26 14:24 /dev/hidraw0

pi@ras_pi1:~ $ dmesg | grep EFW
[ 1.972106] usb 1-1.3: Product: ZWO EFW
[ 1.977293] hid-generic 0003:03C3:1F01.0001: hiddev0,hidraw0: USB HID v1.01 Device [ZW0 ZWO EFW] on usb-3f980000.usb-1.3/input0

pi@ras_pi1:~ $ sudo indiserver -vv indi_asi_wheel
2017-03-27T03:45:45: startup: indiserver -vv indi_asi_wheel
2017-03-27T03:45:45: Driver indi_asi_wheel: pid=1947 rfd=3 wfd=6 efd=7
2017-03-27T03:45:45: listening to port 7624 on fd 4
2017-03-27T03:45:45: Driver indi_asi_wheel: sending <getProperties version='1.7'/>

2017-03-27T03:45:45: Driver indi_asi_wheel: read <defSwitchVector device='EFW' name='CONNECTION'>
2017-03-27T03:45:45: Driver indi_asi_wheel: read <defTextVector device='EFW' name='DRIVER_INFO'>
2017-03-27T03:45:45: Driver indi_asi_wheel: read <defSwitchVector device='EFW' name='DEBUG'>
2017-03-27T03:45:45: Driver indi_asi_wheel: read <defSwitchVector device='EFW' name='SIMULATION'>
2017-03-27T03:45:45: Driver indi_asi_wheel: read <defSwitchVector device='EFW' name='CONFIG_PROCESS'>
^C

Best regards,
Tatsuji

Read More...

Hello, I am new over here. I will learn INDI, and use it my astro life. I have just started playing RasPi3 for upcoming solar eclipse in the US.