Changeset 2744


Ignore:
Timestamp:
08/19/07 23:03:58 (6 years ago)
Author:
mickey
Message:

gsmd: make it slightly more forgiving:
1.) remove early-alive trigger
2.) don't use AT as initial command since TI firmware errors out

Location:
trunk/src/target/gsm
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/gsm/src/gsmd/gsmd.c

    r2742 r2744  
    144144                return -1; 
    145145 
    146         gsmd_modem_alive(gsmd); 
    147  
    148146        return 0; 
    149147} 
     
    209207        if (strcmp(resp, "OK") && 
    210208            (!(gsmd->flags & GSMD_FLAG_V0) || resp[0] != '0')) { 
    211                 gsmd_log(GSMD_FATAL, "response '%s' to initial command invalid", resp); 
    212                 exit(5); 
     209                // temporarily changed to GSMD_ERROR instead of GSMD_FATAL + commented out exit(4) :M: 
     210                gsmd_log(GSMD_ERROR, "response '%s' to initial command invalid", resp); 
     211                //exit(4); 
    213212        } 
    214213 
     
    242241        struct timeval tv; 
    243242 
    244         cmd = atcmd_fill("AT", strlen("AT")+1, &firstcmd_atcb, gsmd, 0); 
     243        cmd = atcmd_fill("ATZ", strlen("ATZ")+1, &firstcmd_atcb, gsmd, 0); 
    245244        if (!cmd) 
    246245                return -ENOMEM; 
    247          
    248         tv.tv_sec = GSMD_ALIVE_TIMEOUT; 
    249         tv.tv_usec = 0; 
    250         gsmd_timer_create(&tv, &firstcmd_tmr_cb, NULL); 
    251246 
    252247        return atcmd_submit(gsmd, cmd); 
Note: See TracChangeset for help on using the changeset viewer.