Re: Mobile Broadband - how do I trace/debug the modem initialisation?



The issue is that you have enabled unsolicited response codes. Several possable solutions
1) add +CREG=0 to your init string to disable.
2) perhaps nm should be able to parse the response string and match it to a regex _expression_ rather than a fixed string. What is important is the the modem is registered to a network so a response of 1 or 5 would be valid

Full command definition

3GPP 27007 defines +CREG

Command

Possible response(s)

+CREG=[<n>]

 

+CREG?

+CREG: <n>,<stat>[,<lac>,<ci>[,<AcT>]]

+CME ERROR: <err>

+CREG=?

+CREG: (list of supported <n>s)

 

Description

Set command controls the presentation of an unsolicited result code +CREG: <stat> when <n>=1 and there is a change in the MT network registration status, or code +CREG: <stat>[,<lac>,<ci>[,<AcT>]] when <n>=2 and there is a change of the network cell.

Read command returns the status of result code presentation and an integer <stat> which shows whether the network has currently indicated the registration of the MT. Location information elements <lac>, <ci> and <AcT>are returned only when <n>=2 and MT is registered in the network. Refer subclause 9.2 for possible <err> values.

Defined values

<n>:

0    disable network registration unsolicited result code

1    enable network registration unsolicited result code +CREG: <stat>

2    enable network registration and location information unsolicited result code +CREG: <stat>[,<lac>,<ci>[,<AcT>]]

<stat>: registration status

0    not registered, MT is not currently searching a new operator to register to

1    registered, home network

2    not registered, but MT is currently searching a new operator to register to

3    registration denied

4    unknown

5    registered, roaming

<lac>: string type; two byte location area code in hexadecimal format (e.g. "00C3" equals 195 in decimal)

<ci>: string type; four byte UTRAN/GERAN cell ID in hexadecimal format

<AcT>: access technology of the registered network

0    GSM

1    GSM Compact

2    UTRAN

3    GSM w/EGPRS (see NOTE 1)

4    UTRAN w/HSDPA (see NOTE 2)

5    UTRAN w/HSUPA (see NOTE 2)

6    UTRAN w/HSDPA and HSUPA (see NOTE 2)



-- Stuart Ward M +44 7782325143




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]