summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-02Add g_at_chat_unregister_all functionDenis Kenzior1-0/+28
2009-12-02Add: g_at_chat_cancel_all functionDenis Kenzior1-0/+27
This will cancel all commands currently queued.
2009-12-02Fix: Sometimes it is possible to cancel first cmdDenis Kenzior1-1/+2
Commands on the head of the queue can be canceled if none of its bytes have actually been written to the modem. This is tracked by cmd_bytes_written variable.
2009-12-02Fix: Don't allow cancelation of command id 0Denis Kenzior1-0/+4
2009-11-26Fix: Retry the wakeup command until the modem OKsDenis Kenzior1-16/+38
The calypso is weird where it doesn't actually wakeup on the first try, we need to bang its head a few times until it responds
2009-11-24Framework to support non-standard terminatorYang Gu1-10/+49
2009-11-23Fix: Make sure we don't gobble up unsolicitedDenis Kenzior1-2/+4
2009-10-16Fix: Stop crashing when unrefing chat in callbackDenis Kenzior1-3/+20
2009-10-15Add ability to retrieve the atchat IOChannelDenis Kenzior1-0/+8
2009-10-02Add support for switching to a different GAtSyntax at runtimeMarcel Holtmann1-0/+12
2009-10-01Replace g_at_chat_new_from_tty with g_at_tty_openDenis Kenzior1-43/+1
2009-09-24Unref GIOChannel in g_at_chat_new_from_ttyZhenhua Zhang1-1/+4
2009-09-18Fix trailing whitespaceMarcel Holtmann1-1/+1
2009-09-18Simplify cleanup logicDenis Kenzior1-21/+17
2009-09-07Fix g_at_chat_unref from command callbackDenis Kenzior1-11/+13
The resources were being used after being freed in this case
2009-08-31Add PDU listing supportDenis Kenzior1-16/+66
2009-08-07Ensure g_timeout_add source can be removed safelyDenis Kenzior1-2/+10
2009-08-06Cleanup the debug support patchDenis Kenzior1-25/+72
2009-08-06gatchat: add debugging infrastructureAndres Salomon1-0/+46
This patch adds debugging support to GAtChat (specifically of what's going across the serial line). Callbacks can be set via g_at_chat_set_debugging, and that callback is called after any channel reads or writes.
2009-08-06Make overflow code a bit betterDenis Kenzior1-8/+5
2009-08-06Refactor GAtChat to accept user-provided parsersDenis Kenzior1-224/+80
Intended for really broken modems. A default 27.007 compliant parser is provided.
2009-08-06Fix refcounting in GAtChatDenis Kenzior1-0/+1
2009-07-21Fix a crash with unsolicited notificationsDenis Kenzior1-1/+1
When a line comes in from the modem, we check against prefixes in outstanding commands and unsolicited notifications. If the outstanding command has not yet been sent (cmd_bytes_written == 0), we still check it resulting in access violation.
2009-07-15Add extra_pdu_crlf quirkDenis Kenzior1-1/+9
2009-07-15Add set / get flags for GAtChatDenis Kenzior1-0/+16
2009-07-15Fix modem wakeup handlingDenis Kenzior1-0/+8
2009-07-07Fix case where CMGS returns an error before pduDenis Kenzior1-3/+15
Commands like CMGS might return an error before the entire command has been submitted. This results in gatchat stalling completely.
2009-06-30Add support for opening TTYs directlyMarcel Holtmann1-0/+41
2009-06-19Fixes to parser state when command prompt is usedDenis Kenzior1-1/+4
2009-06-16Add g_at_send_listing functionDenis Kenzior1-6/+42
2009-06-08Additional fixes to multiline responsesDenis Kenzior1-5/+33
The previous fix did not take into account the logic in have_line function, which takes care of certain modems that do not prefix their responses by <cr><lf> at all. This fix should take both into consideration
2009-06-08Fix multiline responses in GAtChatDenis Kenzior1-0/+11
The standard is a bit fuzzy on how multiline responses are returned GAtChat assumed that they will always start with <cr><lf>, however this doesn't seem to be correct. Add a new state which is entered when a response is obtained. If <cr> is encountered, then it is processed regularly, otherwise the parser assumes that the next line is part of the multiline response
2009-05-06Add AT chat library implementationDenis Kenzior1-0/+1104