PLS62: Automatic restart of Java userware after PPP disconnect/hangup? | Thales IoT Developer Community
June 2, 2021 - 5:58pm, 1363 views
Is this possible? We're specifically running the PLS62T-W, but the variant we're shipping has bugs with the hardware watchdog.
The autostart functionality seems to be focused on bringing the module up after a power cycle event. AT+CALA is almost there, but that only starts it back up after being shut down.
If there is no functionality to accomplish this, is there another strategy anyone might recommend to get the app started up again? Maybe a second midlet just to monitor the status of the first and restart it (if that's even possible)?
Here's a rundown of the situation, in case that helps:
This application in particular is pretty old and has migrated through several modules on custom boards, but the general flow is Userware starts -> Wait for remote command -> Initialize PPP modem, kill userware -> client dials, hangs up -> [old hardware watchdog restarts module] -> Autostart triggers userware
Hello,
I'm looking into possible WA for this problem.
BR
Tymek
No luck?
Hello,
The hardware watchdog is not designed to reboot when PPP disconnects. I think that you could implement such a functionality in a MIDlet and do whatever is needed in your scenario. Is your current logic implemented in a MIDlet or external application? It could be the best idea to have this new logic in the same application. But I don't know your solution. The module also has a software watchdog which you can use in your MIDlet to reboot the module if something goes wrong (the watchdog is not kicked in time by your code).
Best regards,
Bartłomiej