Ticket #480 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

gsmd should report error if can't connect to modem

Reported by: mickey@… Owned by: laforge@…
Priority: high Milestone:
Component: gsmd Version: unspecified
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

If the modem doesn't respond to all the init commands within a certain
timeframe, gsmd should exit and not hang silently.

Change History

comment:1 Changed 6 years ago by laforge@…

  • Status changed from new to closed
  • Resolution set to fixed

this has now been implemented.

In svn rev. 2131, gsmd has the following extensions:

1) at startup, we only fork into background (daemonize) after the GSM modem has

responded. We wait for 30 seconds and exit with error level otherwise.

2) every five minutes, we check if the modem is still alive. If we cannot

get any response at all (within 30 seconds), we terminate and write
a "FATAL" log line into the log file.

Note: See TracTickets for help on using tickets.