[Gb-ccb] CCB Software/Library interface
Martin Shepherd
mcs at astro.caltech.edu
Fri Aug 8 14:50:53 EDT 2003
On Fri, 8 Aug 2003, Brian Mason wrote:
> >From Melinda:
> 1) Sim mode: We would like to be able to put the backend in a
> simulation mode when we connect or disconnect from the server. This
> entails adding another parameter to the ccb_client_connect() function
> of the library.
Okay. Can I assume that this can wait until I have the hardware side
of the project well under way?
>...
> rather than a separate program and being able to choose between the
> two modes without having to reboot the system.
Actually you wouldn't have had to reboot the system for this. The
real-time CPU will be running linux, so one could simply have a script
which invoked ssh or rsh to remotely kill off one server process on
the target system, then run the other.
> 2) We can live with the log messages as is, but it would make our task
> much easier if they were willing to re-sequence the message ids. If
> they are willing to do this, I can provide them with the preferred
> message ids.
Currently the message IDs are taken from an automatically generated
unbroken sequence of numbers starting at zero. These are then offset
by the value of the CCB_BASE_LOGID macro in ccblogid.h, before being
presented to the manager. Thus by changing the value of the
CCB_BASE_LOGID macro, I can easily shift all of the ids to higher or
lower values to avoid clashes with other Green Bank software. If this
is what you mean by "re-sequence", simply send me the new offset and
I'll install it.
> 3) I would like to talk to them about using the start scan bit in the
> control register as a possible solution to the intra-scan issue.
If you simply want me to include a flag in the returned data to
indicate whether the data pertain to a primary scan or an intra-scan,
then I can easily do this. Is this what you are referring to?
Martin
More information about the gb-ccb
mailing list