Register    Login    Forum    Search    FAQ

Board index » Software » Linux




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post Posted: Fri Mar 10, 2017 1:50 am 
Offline

Joined: Sun Jan 22, 2017 6:56 pm
Posts: 20
Any ideas how to get ASI224MC-cooled connecting to indi server when not running as ROOT.

Via my other thread there was mentioned how to get ASI224 running under a user other than root:

"..the 99-asi.rules or asi.rules is located in /lib/udev/rules.d or /etc/udev/rules.d,
only in the case it is located in /etc/udev/rules.d, you can open ASI224 without root."

I moved the rules file: sudo mv /lib/udev/rules.d/99-asi.rules /etc/udev/rules.d/99-asi.rules

Kstars is running as user pi, not root.

Started the indiserver via ekos as mode: local.

ASI 224 will not connect: 2017-03-10T01:44:57: Error connecting to the CCD (5)

I am trying to get everything running as a non-root user.


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Mar 13, 2017 1:23 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 177
you should replug the camera or reboot your RPI3 after mv the rules to /etc/udev/rules.d

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Wed Mar 15, 2017 1:05 am 
Offline

Joined: Sun Jan 22, 2017 6:56 pm
Posts: 20
RPI3 has been rebooted after the moved file. The issue remains with the same error.

Any ideas?

Below is a review of what has been tried. The ASI1600MM-cooled works fine.

Setup is:

1. /etc/udev/rules.d/99-asi.rules
2. Kstars/Ekos running as pi
3. tried remote localhost server as run as pi: /home/pi/indi/indiwebmanager/servermanager/drivermanager.py
4. tried local host server as pi
5. tried running as a service as User pi: sudo systemctl start indiwebmanager.service

Not sure what I am doing wrong, as 3, 4, and 5 only work if running as root.

In case it helps, the ASI EFW does run under User pi using 3 and 5, and but not as 4.


Top 
 Profile  
Reply with quote  
 Post Posted: Thu Mar 16, 2017 6:15 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 177
that's strange, what's the content of your 99-asi.rules?

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Sat Mar 18, 2017 12:56 am 
Offline

Joined: Sun Jan 22, 2017 6:56 pm
Posts: 20
The rules file is attached in the zip. It is the version that comes with Kstars for Ubuntu-mate.

There is an ASI1600mm-c v3, ASI224MC-c and ASI EFW all connected to the the same RPI3.

The RPI3 is connected to the ASI1600, and then the EFW and 224 is connected to to the ASI1600 USB.

Thank you for checking.


Attachments:
99-asi-efw.zip [791 Bytes]
Downloaded 26 times
Top 
 Profile  
Reply with quote  
 Post Posted: Mon Mar 20, 2017 2:37 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 177
the attached rules is normal.
I have just tested on my RPi3 as your setup with INDIGO driver, and find that if there is messy code in camera name, like
'ZWO ASI224MC-Cool(??????Y) #0' attached.
02:24:04.981827 indigo_server: indigo_ccd_asi: 'ZWO ASI224MC-Cool(??????Y) Guider #0' attached.

then it can't be connected in INDIGO driver, is this case the same as you?

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Fri Mar 31, 2017 12:07 am 
Offline

Joined: Sun Jan 22, 2017 6:56 pm
Posts: 20
The log, if it is the correct one, shows:

2017-03-29T19:58:14 ZWO CCD ASI224MC-Cool is online.
2017-03-29T19:58:14 Guider port from Telescope Simulator is ready.
2017-03-29T19:58:13 Telescope Simulator is online.


Top 
 Profile  
Reply with quote  
 Post Posted: Fri Mar 31, 2017 12:14 am 
Offline

Joined: Sun Jan 22, 2017 6:56 pm
Posts: 20
In case it helps, here is some additional information:

2017-03-31T00:13:04: World Coordinate System is enabled. CCD rotation must be set either manually or by solving the image before proceeding to capture any frames, otherwise the WCS information may be invalid.
2017-03-31T00:13:04: Setting frame buffer size to 1272704 bytes.
2017-03-31T00:13:03: UpdateCCDFrame ASISetROIFormat (1304x976, bin 1, type 0)
2017-03-31T00:13:03: ISNewSwitch->SetControlValue 6 40.00
2017-03-31T00:13:03: ISNewSwitch->SetControlValue 4 95.00
2017-03-31T00:13:03: ISNewSwitch->SetControlValue 3 52.00
2017-03-31T00:13:03: ISNewSwitch->SetControlValue 0 350.00
2017-03-31T00:13:03: ISNewNumber->set ctrl 2: 50.00
2017-03-31T00:13:03: ISNewNumber->set ctrl 0: 350.00
2017-03-31T00:13:03: setupParams ASISetROIFormat (1304x976, bin 1, type 0)
2017-03-31T00:13:03: The CCD Temperature is 0.000000
2017-03-31T00:13:03: Supported Video Format: ASI_IMG_RAW16
2017-03-31T00:13:03: Supported Video Format: ASI_IMG_Y8
2017-03-31T00:13:03: Supported Video Format: ASI_IMG_RGB24
2017-03-31T00:13:03: Supported Video Format: ASI_IMG_RAW8
2017-03-31T00:13:03: CCD ID: 0 Width: 1304 Height: 976 Binning: 1x1 Image Type: 0
2017-03-31T00:13:03: setupParams->set USB 40
2017-03-31T00:13:03: Control #18: name (Cooler on), Descp (turn on/off cooler(cool camera only)), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Control #17: name (TargetTemp), Descp (Target temperature(cool camera only)), Min (-40), Max (30), Default Value (0), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Control #16: name (CoolPowerPerc), Descp (Cooler power percent), Min (0), Max (100), Default Value (0), IsAutoSupported (False), isWritale (False)
2017-03-31T00:13:03: Control #15: name (Temperature), Descp (Sensor temperature(degrees Celsius)), Min (-500), Max (1000), Default Value (20), IsAutoSupported (False), isWritale (False)
2017-03-31T00:13:03: Adding above control as writable control number 14
2017-03-31T00:13:03: Control #14: name (Mono bin), Descp (bin R G G B to one pixel for color camera, color will loss), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 13
2017-03-31T00:13:03: Control #13: name (HighSpeedMode), Descp (Is high speed mode:0->No 1->Yes), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 12
2017-03-31T00:13:03: Control #12: name (HardwareBin), Descp (Is hardware bin2:0->No 1->Yes), Min (0), Max (1), Default Value (0), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 11
2017-03-31T00:13:03: Control #11: name (AutoExpMaxBrightness), Descp (Auto exposure maximum brightness value), Min (50), Max (160), Default Value (100), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 10
2017-03-31T00:13:03: Control #10: name (AutoExpMaxExpMS), Descp (Auto exposure maximum exposure value(unit ms)), Min (1), Max (60000), Default Value (100), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 9
2017-03-31T00:13:03: Control #9: name (AutoExpMaxExp), Descp (Auto exposure maximum exposure value(unit second)), Min (1), Max (60), Default Value (30), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 8
2017-03-31T00:13:03: Control #8: name (AutoExpMaxGain), Descp (Auto exposure maximum gain value), Min (0), Max (600), Default Value (300), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 7
2017-03-31T00:13:03: Control #7: name (Flip), Descp (Flip: 0->None 1->Horiz 2->Vert 3->Both), Min (0), Max (3), Default Value (0), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as auto control number 4
2017-03-31T00:13:03: Adding above control as writable control number 6
2017-03-31T00:13:03: createControls->set USB 40
2017-03-31T00:13:03: Control #6: name (BandWidth), Descp (USB bandwidth percentage), Min (40), Max (100), Default Value (50), IsAutoSupported (True), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 5
2017-03-31T00:13:03: Control #5: name (Brightness), Descp (Brightness(offset)), Min (0), Max (240), Default Value (1), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Adding above control as auto control number 3
2017-03-31T00:13:03: Adding above control as writable control number 4
2017-03-31T00:13:03: Control #4: name (WB_B), Descp (White balance: Blue component), Min (1), Max (99), Default Value (95), IsAutoSupported (True), isWritale (True)
2017-03-31T00:13:03: Adding above control as auto control number 2
2017-03-31T00:13:03: Adding above control as writable control number 3
2017-03-31T00:13:03: Control #3: name (WB_R), Descp (White balance: Red component), Min (1), Max (99), Default Value (52), IsAutoSupported (True), isWritale (True)
2017-03-31T00:13:03: Adding above control as writable control number 2
2017-03-31T00:13:03: Control #2: name (Gamma), Descp (Gamma), Min (1), Max (100), Default Value (50), IsAutoSupported (False), isWritale (True)
2017-03-31T00:13:03: Control #1: name (Exposure), Descp (Exposure Time(us)), Min (32), Max (2000000000), Default Value (10000), IsAutoSupported (True), isWritale (True)
2017-03-31T00:13:03: Adding above control as auto control number 1
2017-03-31T00:13:03: Adding above control as writable control number 1
2017-03-31T00:13:03: Control #0: name (Gain), Descp (Gain), Min (0), Max (600), Default Value (200), IsAutoSupported (True), isWritale (True)
2017-03-31T00:13:03: CCD is online. Retrieving basic data.
2017-03-31T00:13:03: Setting intital bandwidth to AUTO on connection.
2017-03-31T00:13:03: Attempting to open ZWO CCD ASI224MC-Cool...


Top 
 Profile  
Reply with quote  
 Post Posted: Fri Mar 31, 2017 3:01 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 177
your camera name is correct. I tried to reproduce your problem, I connect 1600 to RPi3 and connect 224 to 1600's hub, install INDI driver on my RPi3 as http://www.indilib.org/download/raspberry-pi.html, and connect 224 via Kstar/EKOS on a x86 ubuntu, but all work normally, did I miss something?

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Fri Mar 31, 2017 11:44 am 
Offline

Joined: Sun Jan 22, 2017 6:56 pm
Posts: 20
yang wrote:
your camera name is correct. I tried to reproduce your problem, I connect 1600 to RPi3 and connect 224 to 1600's hub, install INDI driver on my RPi3 as http://www.indilib.org/download/raspberry-pi.html, and connect 224 via Kstar/EKOS on a x86 ubuntu, but all work normally, did I miss something?


This is the tutorial i followed. There are some differences: http://www.indilib.org/support/tutorial ... guide.html

Perhaps this is where the difference is.

Also, not sure if it makes a difference, the RPI3 uses a USB3 cable (RPI3 is USB2 only) to connect to ASI1600, and then a USB 2 cable connect the ASI224 to the ASI1600 and a USB2 cable to connect the ASI EFW to the ASI1600.


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2, 3  Next

Board index » Software » Linux


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: