Hi Vincent,
On 05/09/2017 10:45 AM, Vincent CESSON wrote:
Hi,
I am currently working with Gemalto modem Cinterion PHS8. This modem has
hardware related commands to check voltage and temperature. For example
read the temperature (enable temperature output and read it):
AT^SCTM=0,1
OK
AT^SCTM?
^SCTM: 0,0,32
I would like to read these parameters with Ofono but I didn't find in
documentation any existing interface that can handle hardware
monitoring. Maybe I could hack Ofono to add custom properties to an
existing interface for instance, or create my own interface. But if more
modems propose the same kind of features it could be interesting to find
a generic API.
The rule of thumb is that if a feature is supported by most vendors,
then we can consider adding a dedicated atom for it. Generally these
features have a very specific behavior and finding a unified API is
straightforward.
For features that are more manufacturer specific we like to use plugin
specific interfaces.
I do not recall any other manufacturers exposing such information, so
this may be a good fit for a plugin specific interface. There's an
example inside ril_intel.c which adds THERMAL_MANAGEMENT_INTERFACE.
Regards,
-Denis