[INSTRM-1012] red shutter command error Created: 12/Jun/20  Updated: 15/Apr/21  Resolved: 10/Sep/20

Status: Won't Fix
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: arnaud.lefur Assignee: arnaud.lefur
Resolution: Won't Fix Votes: 0
Labels: SPS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to INSTRM-1239 Expose function operates blue shutter... Won't Fix
relates to INSTRM-179 Implement shutters diagnostic routine Done
Story Points: 4
Sprint: SM1PD-2020 G, SM1PD-2020 G2

 Description   

a flat has failed because red shutter would not open.

2020-06-11 23:52:42.743Z cmds             20 Actor.py:497 new cmd: shutters expose exptime=3.0                                                                                
2020-06-11 23:52:42.744Z cmds             20 CommandLink.py:121 > 0 0 i biashaFSM=ONLINE,BUSY                                                                                 
2020-06-11 23:52:42.745Z cmds             20 CommandLink.py:121 > 0 0 i metaFSM=ONLINE,BUSY                    
2020-06-11 23:52:42.745Z biasha           10 bufferedSocket.py:57 sending b'init\r\n'                                                                                         
2020-06-11 23:52:42.754Z biasha           10 bufferedSocket.py:89 received 'ok'                                                                                               
2020-06-11 23:52:42.755Z cmds             20 CommandLink.py:121 > 0 0 i biashaFSM=ONLINE,IDLE                                                                                                              2020-06-11 23:52:42.755Z cmds             20 CommandLink.py:121 > 0 0 i metaFSM=ONLINE,IDLE                                                                                                                
2020-06-11 23:52:42.756Z cmds             20 CommandLink.py:121 > 0 0 i biashaFSM=ONLINE,BUSY                                                                                 
2020-06-11 23:52:42.757Z cmds             20 CommandLink.py:121 > 0 0 i metaFSM=ONLINE,BUSY                                                                                   
2020-06-11 23:52:42.758Z biasha           10 bufferedSocket.py:57 sending b'shut_open\r\n'                                                                                    
2020-06-11 23:52:44.780Z biasha           10 bufferedSocket.py:89 received 'shutter switch timeoutnok'                                                                        
2020-06-11 23:52:44.781Z cmds             20 CommandLink.py:121 > 0 0 i biashaFSM=ONLINE,FAILED                      
2020-06-11 23:52:44.782Z cmds             20 CommandLink.py:121 > 0 0 i metaFSM=ONLINE,FAILED                                                                                 
2020-06-11 23:52:44.782Z cmds             20 CommandLink.py:121 > 2 1065 w exptime=nan                                                                                        
2020-06-11 23:52:44.790Z cmds             20 CommandLink.py:121 > 2 1065 f text="command failed: RuntimeError('error : shutter switch timeoutn',) in _gotoState() at /software/mhs/products/Linux64/ics_enu
Actor/1.0.4/python/enuActor/Controllers/biasha.py:346" 

When I connected shutters was returning this status.

pfs@shell-ics:~$ oneCmd.py enu_sm1 shutters status                                                   
2020-06-12T11:31:18.847 sent enu_sm1 shutters status                                                 
2020-06-12T11:31:18.866 enu_sm1 i biasha="20"                                                        
2020-06-12T11:31:18.883 enu_sm1 i shb=1,0,0                                                          
2020-06-12T11:31:18.885 enu_sm1 i shr=0,1,0                                                          
2020-06-12T11:31:18.887 enu_sm1 w shutters="undef"                                                   
2020-06-12T11:31:18.888 enu_sm1 f text="command failed: RuntimeError('statword 100010  does not match current state',) in shutterStatus() at /software/mhs/products/Linux64/ics_enuActor/1.0.4/python/enuAc
tor/Controllers/biasha.py:236"

blue shutter is behaving correctly, but red shutter return an error

pfs@shell-ics:~$ oneCmd.py enu_sm1 connect controller=biasha
2020-06-12T11:37:03.783 sent enu_sm1 connect controller=biasha
2020-06-12T11:37:03.925 enu_sm1 i biashafsm=OFF,IDLE
2020-06-12T11:37:03.935 enu_sm1 i metafsm=OFF,IDLE
2020-06-12T11:37:03.938 enu_sm1 i biashafsm=OFF,LOADING
2020-06-12T11:37:03.947 enu_sm1 i metafsm=OFF,LOADING
2020-06-12T11:37:03.950 enu_sm1 i text="biasha configuration correctly Loaded"
2020-06-12T11:37:03.954 enu_sm1 i text="biasha communication is open"
2020-06-12T11:37:03.957 enu_sm1 i biasha="0"
2020-06-12T11:37:03.962 enu_sm1 i text="biasha communication is functional"
2020-06-12T11:37:03.966 enu_sm1 i biashafsm=LOADED,INITIALISING
2020-06-12T11:37:03.968 enu_sm1 i metafsm=LOADED,INITIALISING
2020-06-12T11:37:03.986 enu_sm1 i text="biasha initialisation OK"
2020-06-12T11:37:03.993 enu_sm1 i biashafsm=ONLINE,IDLE
2020-06-12T11:37:03.998 enu_sm1 i biashamode="operation"
2020-06-12T11:37:03.999 enu_sm1 i biasha="0"
2020-06-12T11:37:04.031 enu_sm1 i photores=0,0
2020-06-12T11:37:04.032 enu_sm1 i biaconfig=0,1000,150
2020-06-12T11:37:04.033 enu_sm1 i bia="off"
2020-06-12T11:37:04.049 enu_sm1 i shb=0,1,0
2020-06-12T11:37:04.057 enu_sm1 i shr=0,1,0
2020-06-12T11:37:04.060 enu_sm1 i shutters="close"
2020-06-12T11:37:04.066 enu_sm1 : controllers=temps,rexm,iis,pdu,biasha
pfs@shell-ics:~$ oneCmd.py enu_sm1 shutters blue open
2020-06-12T11:37:18.423 sent enu_sm1 shutters blue open
2020-06-12T11:37:18.448 enu_sm1 f text="Unmatched command: shutters blue open (exception: Invalid cmd: shutters blue open)"
pfs@shell-ics:~$ oneCmd.py enu_sm1 shutters open blue
2020-06-12T11:37:26.086 sent enu_sm1 shutters open blue
2020-06-12T11:37:26.422 enu_sm1 i biasha="30"
2020-06-12T11:37:26.442 enu_sm1 i shb=1,0,0
2020-06-12T11:37:26.445 enu_sm1 i shr=0,1,0
2020-06-12T11:37:26.451 enu_sm1 i shutters="openblue"
2020-06-12T11:37:26.454 enu_sm1 : 
pfs@shell-ics:~$ oneCmd.py enu_sm1 shutters close blue
2020-06-12T11:37:42.314 sent enu_sm1 shutters close blue
2020-06-12T11:37:42.657 enu_sm1 i biasha="0"
2020-06-12T11:37:42.677 enu_sm1 i shb=0,1,0
2020-06-12T11:37:42.679 enu_sm1 i shr=0,1,0
2020-06-12T11:37:42.684 enu_sm1 i shutters="close"
2020-06-12T11:37:42.687 enu_sm1 : 
pfs@shell-ics:~$ oneCmd.py enu_sm1 shutters open red
2020-06-12T11:37:52.630 sent enu_sm1 shutters open red
2020-06-12T11:37:54.655 enu_sm1 f text="command failed: RuntimeError('error : shutter switch timeoutn',) in _gotoState() at /software/mhs/products/Linux64/ics_enuActor/1.0.4/python/enuActor/Controllers/biasha.py:346"



 Comments   
Comment by rhl [ 12/Jun/20 ]

Was the error returned when the flat failed useful to the innocent observer?

Comment by arnaud.lefur [ 12/Jun/20 ]
text="enu_sm1 shutters failed: RuntimeError('error : shutter switch timeoutn',) in _gotoState() at /software/mhs/products/Linux64/ics_enuActor/1.0.4/python/enuActor/Controllers/biasha.py:346";text="command failed: RuntimeError('exposure failed',) in process() at /software/mhs/products/Linux64/ics_spsActor/1.0.0/python/spsActor/Commands/ExposeCmd.py:79"

shutter switch timeout is an error returned by the arduino control board. Perhaps it could be a bit more specific about what's actually going on ...

Comment by hassan [ 10/Sep/20 ]

cloomis and arnaud.lefur report that this is a hardware issue, so no ICS updates required.

Generated at Sat Feb 10 16:30:58 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.