We have devices where the POWERMODE seems to get corrupted not sure why?
The app is using
system(“echo -e “AT!POWERMODE=0\r\n” > /dev/ttyAT”);
or
system(“echo -e “AT!POWERMODE=2\r\n” > /dev/ttyAT”);
depending on mode
but it sometimes goes into this
AT!POWERMODE?
!POWERMODE: No request, status=2-Initialized
if the mode is like that the module will go to sleep before running any legato apps
if i can get a ssh connection and do “echo AT!POWERMODE=0 > /dev/ttyAT” it will not go to sleep,
I will try and run an initscript that set that unless there is a better way?
I know the USB is supposed to keep it from sleeping but that might be a hardware issue getting lots of
[ 14.897765] msm_otg 78d9000.usb: Could not get usb power_supply
[ 14.897803] msm_otg 78d9000.usb: Could not get usb power_supply
[ 15.013696] msm_otg 78d9000.usb: Could not get usb power_supply
[ 15.013727] msm_otg 78d9000.usb: Could not get usb power_supply
[ 15.076433] msm_otg 78d9000.usb: Could not get usb power_supply
[ 15.076465] msm_otg 78d9000.usb: Could not get usb power_supply