As some others here, I observed that none of the ec2x command work (except ec2x.help).
I’ve also confirmed that at least some of them can be substituted with modem.connection (at least in the Terminal).
For example, to get a current GPS location, instead of ec2x.gnss_location
(which times out), I can use:
modem.connection execute AT$GPSACP
Which returns:
data: >-
$GPSACP:
051256.000,9999.9999N,09999.9999W,0.7,16.3,3,74.8,0.0,0.0,090423,05,06
_stamp: '2023-04-09T05:12:56.290650'
Per Telit’s documentation, these are:
<UTC>,<latitude>,<longitude>,<hdop>,<altitude>,<fix>,<cog>,<spkm>,<spkn>,<date>,<nsat_gps>,<nsat_glonass>
That’s exactly what I want!
My issue is: how to correctly use this in the Custom Code?
Currently, there is:
__salt__['ec2x.gnss_location'](*[], **{})
Which doesn’t work.
Can I use something like:
__salt__['modem.connection'](*[],**{'execute': 'AT$GPSACP'})