Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms'

Daniele Forsi <[email protected]>
Newsgroups gmane.linux.drivers.gnokii
Message-ID <CAN_we7Or0YrqOOCbksUidmDBpskb5ErX0EPq67c=EDVSY7J1uA@mail.gmail.com>
2013/1/4 helpFractal <stockton.simon@...>:

what happens if you connect to /dev/cu.usbmodem411 with a generic
terminal program (cu, tip, minicom or even screen if baud rate is
right) and issue the same commands as gnokii?

AT+CMGF=0
AT+CMGS=34

at this point the phone should reply with a prompt made with a
greater-than sign (AFAIR this isn't echoed by libgnokii) libgnokii
checks that at line 211 of common/links/atbus.c
        /* check if SMS prompt is found */
        if (bi->rbuf_pos > 4 && !strncmp(bi->rbuf + bi->rbuf_pos - 4,
"\r\n> ", 4))
                bi->rbuf[0] = GN_AT_PROMPT;

-- 
Daniele Forsi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.