[INSTRM-1837] Add remote top-level acquisition FMS commands Created: 13/Jan/23  Updated: 07/Feb/23  Resolved: 07/Feb/23

Status: Done
Project: Instrument control development
Component/s: ics_fmsActor
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We have added a TCP listener to the FMS pi image/system, and an all command to control the lamps and take both exposures.

The output images are also now saved to timestamped files in /data/fms/$DATE/, for example:

cloomis@shell-ics:raw$ ls -l /data/fms/2022-12-18/
total 94050
-rw-r--r-- 1 pfs pfs 32781120 Dec 18 03:27 snap0_20221218_032623.fits
-rw-r--r-- 1 pfs pfs 32781120 Dec 18 14:14 snap0_20221218_141359.fits
-rw-r--r-- 1 pfs pfs 32781120 Dec 18 03:27 snap1_20221218_032703.fits
-rw-r--r-- 1 pfs pfs 32781120 Dec 18 14:14 snap1_20221218_141359.fits

This has not been wrapped with an actor command, but can be fired with:

$ echo all | nc fms 1024


 Comments   
Comment by cloomis [ 13/Jan/23 ]

This has not been burned to the non-overlay filesystem. Besides updating /usr/local/bin/, we need to launch python3 tcpserver.py either from /etc/rc.local or a user systemd unit.

Comment by cloomis [ 07/Feb/23 ]

Merged at ec1f63c, tagged 1.0.0, and installed to overlay. We don't have a good make install yet, but I:

  • booted into normal mode,
  • copied tcp_server.py to /usr/local/bin/
  • copied snap.c to /opt/Zwo/src
  • compiled and copied snap to /opt/Zwo/bin/
  • added a @reboot stanza to the pfs crontab.
  • booted back into overlay mode.

After that, echo all | nc fms 1024 on shell-ics did create the two files in /data/fms/20230206/.

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