Hello.
i used wp7502 legato 20.04
when the modem is in AUTO mode. it reboots sometimes
When i swich modem in GSM mode. he is work stable.
how fix it?
what could be wrong?
Hi sound,
Could you please share with me AT command log, “logread –f” file when you switch modem in GSM mode and AUTO mode?
cm radio rat AUTO
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c app_Start() 3472 | Starting app ‘tools’
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_secstore.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_cm.so’ to '/legato/systems/current/appsWriteable/tools/lib/libComponent
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_moduleLoad.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_fwupdate.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_pmtool.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode_default.so’ to '/legato/systems/current/appsWriteable/to
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_gnss.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompone
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/cm’ to ‘/legato/systems/current/appsWriteable/tools/bin/cm’: Already exists
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/gnss’ to ‘/legato/systems/current/appsWriteable/tools/bin/gnss’: Already exists
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/kmod’ to ‘/legato/systems/current/appsWriteable/tools/bin/kmod’: Already exists
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/fwupdate’ to ‘/legato/systems/current/appsWriteable/tools/bin/fwupdate’: Already exi
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/secstore’ to ‘/legato/systems/current/appsWriteable/tools/bin/secstore’: Already exi
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/uartMode’ to ‘/legato/systems/current/appsWriteable/tools/bin/uartMode’: Already exi
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/pmtool’ to ‘/legato/systems/current/appsWriteable/tools/bin/pmtool’: Already exists
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/scripts/cm’ to ‘/legato/systems/current/appsWriteable/tools/scripts/cm’: Already exists
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | proc.c proc_Start() 1403 | Starting process ‘cm@0’ with pid 6252
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | supervisor.c SigChildHandler() 874 | Reaping unconfigured child process 6251.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | proc.c proc_Start() 1363 | Execing ‘scripts/cm’
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileBytes to value 90112.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxLockedMemoryBytes to value 8192.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileDescriptors to value 256.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxMQueueBytes to value 512.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxThreads to value 20.
Nov 23 07:18:09 stend user.info Legato: INFO | supervisor[6252]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxQueuedSignals to value 100.
Nov 23 07:18:10 stend user.warn Legato: -WRN- | UNKNOWN[6253]/framework T=main | safeRef.c le_ref_CreateRef() 547 | Safe reference map maximum exceeded for refFdMonitors, new size 42
Nov 23 07:18:10 stend user.info Legato: INFO | dcsDaemon[792]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 731 | Packet switch state: previous 1, new 0
Nov 23 07:18:10 stend user.info Legato: INFO | dcsDaemon[792]/dcs T=main | dcs_db.c dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to down
Nov 23 07:18:10 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process ‘cm@0’ (PID: 6252) has exited with exit code 0.
Nov 23 07:18:10 stend user.info Legato: INFO | modemDaemon[819]/modemDaemon T=main | le_mdc.c CloseSessionEventHandler() 988 | SessionRef 0xb7040518 has been closed
Nov 23 07:18:10 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c app_StopComplete() 4764 | app ‘tools’ has stopped.
Nov 23 07:18:10 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘tools’ has stopped.
Nov 23 07:18:10 stend user.err Legato: =ERR= | modemDaemon[819]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2198 | SessionRef (0xb703ec68) has been closed
Nov 23 07:18:10 stend user.info Legato: INFO | dcsDaemon[792]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 731 | Packet switch state: previous 0, new 1
Nov 23 07:18:10 stend user.info Legato: INFO | dcsDaemon[792]/dcs T=main | dcs_db.c dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to up
cm radio rat GSM
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_secstore.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_cm.so’ to '/legato/systems/current/appsWriteable/tools/lib/libComponent
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_moduleLoad.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_fwupdate.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_pmtool.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode_default.so’ to '/legato/systems/current/appsWriteable/to
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_gnss.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompone
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/cm’ to ‘/legato/systems/current/appsWriteable/tools/bin/cm’: Already exists
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/gnss’ to ‘/legato/systems/current/appsWriteable/tools/bin/gnss’: Already exists
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/kmod’ to ‘/legato/systems/current/appsWriteable/tools/bin/kmod’: Already exists
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/fwupdate’ to ‘/legato/systems/current/appsWriteable/tools/bin/fwupdate’: Already exi
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/secstore’ to ‘/legato/systems/current/appsWriteable/tools/bin/secstore’: Already exi
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/uartMode’ to ‘/legato/systems/current/appsWriteable/tools/bin/uartMode’: Already exi
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/pmtool’ to ‘/legato/systems/current/appsWriteable/tools/bin/pmtool’: Already exists
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c CreateFileLink() 2085 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/scripts/cm’ to ‘/legato/systems/current/appsWriteable/tools/scripts/cm’: Already exists
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | proc.c proc_Start() 1403 | Starting process ‘cm@0’ with pid 6429
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | supervisor.c SigChildHandler() 874 | Reaping unconfigured child process 6428.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | proc.c proc_Start() 1363 | Execing ‘scripts/cm’
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileBytes to value 90112.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxLockedMemoryBytes to value 8192.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileDescriptors to value 256.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxMQueueBytes to value 512.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxThreads to value 20.
Nov 23 07:19:44 stend user.info Legato: INFO | supervisor[6429]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxQueuedSignals to value 100.
Nov 23 07:19:44 stend user.warn Legato: -WRN- | UNKNOWN[6430]/framework T=main | safeRef.c le_ref_CreateRef() 547 | Safe reference map maximum exceeded for refFdMonitors, new size 42
Nov 23 07:19:45 stend user.info Legato: INFO | dcsDaemon[792]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 731 | Packet switch state: previous 1, new 0
Nov 23 07:19:45 stend user.info Legato: INFO | dcsDaemon[792]/dcs T=main | dcs_db.c dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to down
Nov 23 07:19:45 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process ‘cm@0’ (PID: 6429) has exited with exit code 0.
Nov 23 07:19:45 stend user.info Legato: INFO | modemDaemon[819]/modemDaemon T=main | le_mdc.c CloseSessionEventHandler() 988 | SessionRef 0xb7040170 has been closed
Nov 23 07:19:45 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | app.c app_StopComplete() 4764 | app ‘tools’ has stopped.
Nov 23 07:19:45 stend user.info Legato: INFO | supervisor[690]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘tools’ has stopped.
Nov 23 07:19:45 stend user.err Legato: =ERR= | modemDaemon[819]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2198 | SessionRef (0xb703e260) has been closed
Nov 23 07:19:48 stend user.info Legato: INFO | modemDaemon[819]/modemDaemon T=main | le_mrc.c SignalStrengthIndHandlerFunc() 1009 | Signal Strength Ind Handler called with RAT.5 and ss.-125
Nov 23 07:19:48 stend user.info Legato: INFO | modemDaemon[819]/modemDaemon T=main | le_mrc.c SignalStrengthIndHandlerFunc() 1009 | Signal Strength Ind Handler called with RAT.1 and ss.-48
Nov 23 07:19:50 stend user.info Legato: INFO | dcsDaemon[792]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 731 | Packet switch state: previous 0, new 1
Nov 23 07:19:50 stend user.info Legato: INFO | dcsDaemon[792]/dcs T=main | dcs_db.c dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to up
Hi Sound,
Please download the latest legato 20.08.0, firmware SWI9X15Y_07.14.01.00 version and retry.
Did you install any application on wp7502? If yes, try to remove it.
my version frimware.
Firmware Version: SWI9X15Y_07.14.01.00 595652d jenkins 2018/10/26 08:34:29
Bootloader Version: SWI9X15Y_07.14.01.00 595652d jenkins 2018/10/26 08:48:35
Linux Version: 3.14.29ltsi-yocto-standard #2 PREEMPT Fri Oct 26 12:26:51 UTC 2018
Software on the module is a script that starts a radio channel.
The bottom line is that the same module with the same software is on another object.
And everything is fine with him
Hi sound,
This issue has not been reproduced on WP7502 legato 20.08.0, firmware SWI9X15Y_07.14.01.00 on my side.
Can you share with me the script you run?
Do you still face an issue reboot the modem after switching it to AUTOMATIC mode?
What kind of commands do you do that will lead to the disappearance of the radio interface? Is it another issue?
adef
**version: 2.2.6
start: auto
sandboxed: false
// Specify the bundled components for your application here. This section needs to contain a list
// of system paths to your component directory.
components:
{
}
// Add the list of executables to be constructed and moved to the /bin directory of the app. The
// executable content is a list of the components inside the executable.
//
// Example binding format:
// clientExe.clientComponent.clientInterface -> serverExe.serverComponent.serverInterface
executables:
{
//MSD084_startComponentExe = ( MSD084_startComponent )
}
bundles:
{
file:
{
[rx] …/scripts/MSD084_start.sh /scripts/MSD084_start.sh
[rx] …/scripts/cm_script.sh /scripts/cm_script.sh
}
}
// The processes section specifies processes to run when the app is started including environment
// variables, command-line arguments, limits, and fault handling actions.
processes:
{
run:
{
// ( MSD084_startComponentExe )
(sh /legato/systems/current/apps/MSD084_start/read-only/scripts/MSD084_start.sh)
}
faultAction: ignore
watchdogTimeout: never
}
// Bindings that allow client side API interfaces to be bound to servers found within other
// applications in the system.
bindings:
{
}**
MSD084_start.sh
#!/bin/sh
echo “MSD_start : script”
start_cm_script=/legato/systems/current/apps/MSD084_start/read-only/scripts/cm_script.sh
#start_cm_script=/legato/systems/current/apps/tools/read-only/bin/cm
cm_data_get_param() {
local info=$1
local param=$2
echo "$info" | sed "s/^$param:[ \t]*//;t;d"
}
#connect to GSM 2 in phone
connect_to_GSM_in_phone() {
echo “MSD_start : connect second cycle”
info=(/legato/systems/current/apps/tools/read-only/bin/cm data info)
local index=(cm_data_get_param "info" "Index")
local apn=(cm_data_get_param "info" "APN")
local status=(cm_data_get_param “$info” “Connected”)
if [ "$status" = "no" ]; then
echo "MSD_start : connect try 2 again"
$start_cm_script data connect 9
/bin/sleep 9
cm_data=/legato/systems/current/apps/tools/read-only/bin/cm data info
echo "$cm_data"
fi
}
enable_can() {
#ENABLE CAN
echo “reset 1 CAN enable”
#reset '1 can enable
if ! [ -d /sys/class/gpio/gpio8/ ]
then
echo 8 > /sys/class/gpio/export
fi
echo out > /sys/class/gpio/gpio8/direction
echo 1 > /sys/class/gpio/gpio8/value
#enable clk
echo “enable clk”
if ! [ -d /sys/class/gpio/gpio2/ ]
then
echo 2 > /sys/class/gpio/export
fi
echo out > /sys/class/gpio/gpio2/direction
echo 0 > /sys/class/gpio/gpio2/value
#####load can drivers and start can
######/mnt/legato/system/bin/kmod unload can_iot.ko
/bin/sleep 1
/legato/systems/current/bin/kmod load can_iot.ko
/sbin/modprobe can
/sbin/modprobe can-dev
/sbin/modprobe can-raw
/sbin/modprobe mcp251x
/sbin/ifconfig can0 down
/bin/sleep 1
/sbin/ip link set can0 type can bitrate 125000 triple-sampling on
/bin/sleep 1
/sbin/ifconfig can0 up
}
#start app MSD
start_app_MSD084() {
local info_app=(/legato/systems/current/bin/app status MSD084)
local inf_MSD=(echo “$info_app” | grep -c “not installed”)
if [ 0 -eq $inf_MSD ]
then
/legato/systems/current/bin/app start MSD084
echo “MSD_start : app start MSD084”
else
echo “MSD_start : no programm MSD084”
fi
}
#indication control
indication_control() {
#Red
if ! [ -d /sys/class/gpio/gpio32/ ]
then
echo 32 > /sys/class/gpio/export
fi
echo out > /sys/class/gpio/gpio32/direction
echo 1 > /sys/class/gpio/gpio32/value
#Green
#echo 33 > /sys/class/gpio/export
#echo out > /sys/class/gpio/gpio33/direction
#echo 0 > /sys/class/gpio/gpio33/value
#Green
#echo 34 > /sys/class/gpio/export
#echo out > /sys/class/gpio/gpio34/direction
#echo 1 > /sys/class/gpio/gpio34/value
#Red
#echo 35 > /sys/class/gpio/export
#echo out > /sys/class/gpio/gpio35/direction
#echo 1 > /sys/class/gpio/gpio35/value
}
start_network ()
{
if [ -e /home/root/Upload/start_network.sh ]; then
/home/root/Upload/start_network.sh
fi
}
connect_to_GSM_in_phone
enable_can
start_app_MSD084
indication_control
start_network
echo “MSD_start end init”
exit
////////////////////////////////////////////////
Software MSD084 absent.
Therefore the function start_app_MSD084 fails
function start_network fails
Hi sound
Please share source code, scripts as attachments.
Can you share with me the log file what you want to do step by step i.e. 1, 2, 3, etc …, and say where the issue is?
Do you still face an issue reboot the modem after switching it to AUTOMATIC mode?
Is it another issue?
Yes. I am facing this problem.
This problem is repeated.
usually at night. at 3-4 hours.
A reboot is in progress. and then the radio channel disappears. it does not rise anymore. therefore, I do not have access to the log.
in the office, the radio channel disappeared. I connected via internet and received a log file.
I showed it above.
upload file write
Sorry, new users can not upload attachments.
Hi sound
Can you send source code, script files to me by mail or FTP server (example https://wetransfer.com/) ?
What do you want to do step by step i.e. 1, 2, 3, etc …?
So I can give it a try.