How to execute program automatically in fx30

Hi Sierra team,

We want to use fx30 as a router.
We think below procedure.

  1. fx30 power on
  2. confirm to attach to the base station(like +CEREG:1)
  3. app runProc modemDemo send --exe=send – 1234567 “Online”

We want to be executed #2 and #3 automatically if fx30 after #1.
In other words, when control fx30 using command, we don’t use Host PC.

Could you tell us the way or command that confirm to attach to the base station without using the cm command? We plans to use fx30 in the field, so we can not use cm command for evaluation purposes.

cm - Legato Docs

Please tell us the way execute #2 and #3 automatically in fx30.

Thank you.

you can get the network registration status by :
app runProc modemDemo1 send --exe=send -- 1234567 "Status"

So you should modify the modemDemo application

Hi jyijyi,

Thank you for answering.

So you should modify the modemDemo application

Please tell us the specific procedure.
We want to send “app runProc modemDemo1 send --exe=send – 1234567 “Status””.

Could you tell us how to write the code?

Thank you

I think you need to modify the source file here: