[INSTRM-1113] Provide status-only gen2 client module Created: 17/Nov/20 Updated: 16/Feb/21 Resolved: 13/Feb/21 |
|
Status: | Done |
Project: | Instrument control development |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Task | Priority: | Normal |
Reporter: | cloomis | Assignee: | eric |
Resolution: | Done | Votes: | 0 |
Labels: | SuNSS | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
SuNSS will need to get Gen2 status values for telescope position, slewing/tracking/guiding state, etc. especially when PFS is not the active instrument and is probably connected to the g2sim simulator system. We will need an example of how best to do that safely. |
Comments |
Comment by hassan [ 17/Dec/20 ] |
eric: any feedback on this? |
Comment by eric [ 18/Dec/20 ] |
hassan, please see the example [here|https://github.com/naojsoft/g2cam/blob/master/examples/stream_status.py.]
|
Comment by cloomis [ 07/Jan/21 ] |
OK, so that gives us a (nice!) mechanism. Can you also point out which keywords we should be paying attention to and what the interesting values would be? There are a few configuration changes we will want to notice:
|
Comment by hassan [ 11/Feb/21 ] |
eric: Could you respond to Craig's questions above please? |
Comment by eric [ 11/Feb/21 ] |
There is a list of aliases here, if you access within the VPN. But it is a bit old and may not have all the values or descriptions. If you don't find what you are looking for there, you should just let me know what specific conditions you are interested in; that is quickest way to get you the information you need. starting/ending a new science field. We talked about using keywords which indicate that guiding is turned on/off. There is no status keyword that says "we are on a new science field". One that is probably useful is STATL.TELDRIVE. This will have a value of "Pointing", "Tracking*" or "Guiding*" (* means there are possible following characters). Starting with "Tracking" or "Guiding" means the telescope is locked on to a coordinate. But it doesn't necessarily mean that they are taking data or on a science field, or even that the dome is open. But at least you can detect that the telescope is fixed on a coordinate. I am looking up the status for dome open or closed. I know we are reporting that in statmon. taking calibration data. Is it possible to detect whether the telescope is pointed at the screen and/or that lamps are on? You can probably determine this by the elevation (>= 89.*), STATL.TELDRIVE == "Pointing" and the status for calibration lamps wattage. I'm looking up the latter.
|
Comment by cloomis [ 11/Feb/21 ] |
Thanks, that STAL.TELDRIVE point is definitely what we were looking for – our earlier discussions made those limitations clear. I'll look through that list. [ For others, I can get to the wiki when connected to the "Users" VPN group but not to the "PFS" VPN group. I'll ask about that issue elsewhere. ] |
Comment by eric [ 12/Feb/21 ] |
Dome open/close status via STATL.DOMESHUTTER_POS. Values are "" (blank), "OPEN" and "CLOSE". You should be able to use this to know when you are pointing at sky or dome.
|
Comment by cloomis [ 13/Feb/21 ] |
Which GEN2HOST should I use? And is it always safe/allowed to connect and fetch/stream queries if I use that mechanism? |
Comment by eric [ 13/Feb/21 ] |
"g2db.sum.subaru.nao.ac.jp" for StatusClient, "g2stat.sum.subaru.nao.ac.jp" for StatusStream. I sent you access info by DM.
You can connect anytime. But let's keep it to one stream for now.
|
Comment by cloomis [ 13/Feb/21 ] |
Works like a charm, as far as I can tell. If you ever find out about lamp power please append to this ticket, even though closed. |
Comment by eric [ 16/Feb/21 ] |
I'll try to confirm them during HSC flats tonight. |