How can I catch unsolicited result code from RUT240 modem?

I want to detect ‘SIM is disabled or suspended by cloud settings’ with URC (unsolicited result code) from mobile network.

How can I catch URC from RUT240 modem with RutOS 7.6.5 SDK ?

Hello,

URCs on our devices are added to the logs in this manner:

Thu Feb 29 08:20:50 2024 daemon.info gsmd[2831]: Modem `3-1 [2c7c:0306]` URC Event: EMM reject cause => Implicitly detached

Or

Mon Feb 26 14:31:28 2024 daemon.info gsmd[14379]: Modem `1-1.4 [2c7c:0125]` URC Event: EMM reject cause => ESM failure  
Mon Feb 26 14:31:28 2024 daemon.info gsmd[14379]: Modem `1-1.4 [2c7c:0125]` URC Event: ESM reject cause => Service option not supported

So catching them from logread would likely be the best option.

Best regards,

Thank you. I can get URC events with logread on command line.

Can I get the same information via ubus ?
I want to watch URC in my Lua script.

This topic was automatically closed after 15 days. New replies are no longer allowed.