summaryrefslogtreecommitdiff
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2010-03-07Remove internal GAtChat libraryMarcel Holtmann13-3317/+0
2010-01-28Use 3 read attempts when in non-blocking modeMarcel Holtmann1-1/+1
2010-01-28Add new constructor for fully blocking operationMarcel Holtmann4-7/+31
2010-01-28Fix: Take care of uninitialized variable conditionDenis Kenzior1-4/+2
In some (impossible) circumstances rbytes and err might be used uninitialized. Here we make a check that a read was actually attempted before checking those variables.
2010-01-28Limit the number of continues read attemptsMarcel Holtmann1-2/+11
2010-01-23Sync GAtChat library with oFonoMarcel Holtmann5-94/+211
2010-01-15Fix: One more fix for disconnect detectionDenis Kenzior1-2/+1
In situations where lots of data is generated by the remote side (e.g. phonebook is being read) we can get our ring buffer filled up. In this case setting rbytes to zero first and then breaking out of the loop leads to an erroneous disconnect detection. The fix is to move setting of rbytes after we know we still have some space.
2010-01-14Fix: Make remote disconnect detection workDenis Kenzior1-1/+1
2010-01-13Fix minor style issueMarcel Holtmann1-1/+1
2010-01-01Update copyright informationMarcel Holtmann10-10/+10
2009-12-24Unifiy all GAtChat error labelsMarcel Holtmann1-2/+2
2009-12-03Add g_at_chat_unregister_all functionDenis Kenzior2-0/+29
2009-12-03Add: g_at_chat_cancel_all functionDenis Kenzior2-0/+28
This will cancel all commands currently queued.
2009-12-03Fix: 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-03Fix: 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 Gu2-10/+52
2009-11-24Fix: Make sure we don't gobble up unsolicitedDenis Kenzior1-2/+4
2009-11-10Properly skip over quoted valuesAndrzej Zaborowski1-0/+11
Otherwise a left paren in a string can bring an obscure segfault.
2009-10-29Cleanup previous patch and update docsDenis Kenzior2-8/+9
2009-10-29Capitalize g_at_tty option namesRyan Raasch1-8/+8
2009-10-24Handle right bracket in next_unquoted_stringZhenhua Zhang1-2/+2
2009-10-22Update and sync GAtChat from oFonoMarcel Holtmann3-1/+18
2009-10-22Enable / Disable CREAD functionality in gatttyRyan Raasch1-0/+14
2009-10-19Stop crashing when unrefing chat in callbackDenis Kenzior1-3/+20
2009-10-03Fix: Make next_hexstring handle optional quotesDenis Kenzior1-0/+6
Ericsson MBM devices send CRSM information as hex strings, yet enclose them in quotes which is not according to the standard.
2009-10-02Add support for switching to a different GAtSyntax at runtimeMarcel Holtmann2-0/+14
2009-10-02Replace g_at_chat_new_from_tty with g_at_tty_openMarcel Holtmann3-43/+290
2009-09-24Unref GIOChannel in g_at_chat_new_from_ttyZhenhua Zhang1-1/+4
2009-09-18Simplify cleanup logicDenis Kenzior1-21/+17
2009-09-13Fix g_at_chat_unref from command callbackDenis Kenzior1-11/+13
The resources were being used after being freed in this case
2009-09-05Add GSM Permissive parserDenis Kenzior2-1/+100
2009-09-05Add unquoted string capabilityDenis Kenzior2-0/+47
This is completely broken according to the standard, but some vendors use this in their "special" commands.
2009-09-01Add PDU listing supportDenis Kenzior2-17/+79
2009-08-29Fix a problem with CtrlZ echoDenis Kenzior1-0/+10
When a PDU is submitted and echoed by the modem, the CtrlZ character is also echoed back. Fix the parser to handle this case appropriately.
2009-08-23Convert to fully non-recursive build systemMarcel Holtmann1-9/+0
2009-08-07Ensure g_timeout_add source can be removed safelyDenis Kenzior1-2/+10
2009-08-06Sync up with oFono's GAtChat versionMarcel Holtmann3-8/+125
2009-08-06Make overflow code a bit betterDenis Kenzior1-8/+5
2009-08-06Refactor GAtChat to accept user-provided parsersDenis Kenzior5-230/+387
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-16Add extra_pdu_crlf quirkDenis Kenzior2-1/+10
2009-07-16Add set / get flags for GAtChatDenis Kenzior2-0/+19
2009-07-15Fix modem wakeup handlingDenis Kenzior1-0/+8
2009-07-15Fix range handlingDenis Kenzior1-5/+2
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-07-01Fix uninitialized use of bufposDenis Kenzior1-1/+2
2009-06-30Add support for opening TTYs directlyMarcel Holtmann2-0/+42
2009-06-30Fixes to parser state when command prompt is usedDenis Kenzior1-1/+4