Martin Hundebøll
e69a30f1df
gatchat: add g_at_chat_retry()
...
The current API doesn't support canceling an in-progress command;
instead g_at_chat_cancel() simply removes the callback.
In cases where the modem doesn't respond at all to a command, a chat is
simply stalled without any way to write new commands to the modem.
Support that case by adding a g_at_chat_retry() function to the API. The
function does nothing if the command is not yet in-progress, or if the
command is finished. Otherwise, it resets the bytes-written counter to
re-write the command string.
2019-08-13 02:09:09 -05:00
Denis Kenzior
bce5d9579c
gatchat: Introduce g_at_chat_get_userdata
2015-05-13 09:57:52 -05:00
Marcel Holtmann
21f9da9916
gatchat: Update copyright information
2011-10-10 13:39:25 -07:00
Denis Kenzior
0471e3ec8d
gatchat: Add terminator blacklisting
2011-07-25 03:44:56 +02:00
Jarko Poutiainen
17599580d8
gatchat: introduce send for +CPOS
2011-03-28 18:06:58 -05:00
Marcel Holtmann
7492223f49
gatchat: Add support for slave chat instances
...
This adds support to assign a slave chat instance to an existing chat
instance. The slave chat is now additionally bound by the lifetime of
its master chat instance.
In case the master is cloned, the slave chat instance will also be
cloned as well.
With this it is possible to suspend the master while still have an
active slave for notifications or extra commands.
2010-10-21 18:41:38 +02:00
Denis Kenzior
5f47eca7ed
gatchat: Add g_at_chat_clone
...
This function will clone a chat object, but will create a new group
internally.
2010-08-12 16:06:32 -05:00
Kristen Carlson Accardi
72c38f7adb
gatchat: implement g_at_chat_get_io()
2010-05-10 15:41:39 -05:00
Denis Kenzior
3aa1faddef
gatchat: Replace shutdown by suspend/resume
...
Shutdown was actually pointless and according to Marcel he only had it
in mind for PPP useage.
2010-04-28 17:27:33 -05:00
Denis Kenzior
f09ce13ad7
gatchat: Remove g_at_chat_set_syntax
...
Never used and too unsafe in its current form
2010-04-28 17:27:32 -05:00
Marcel Holtmann
2dab6bc3a6
The user data pointer variable should be called user_data
2010-04-11 17:42:40 +02:00
Marcel Holtmann
455884d86e
Remove one empty line and add another one
2010-04-09 17:10:48 +02:00
Marcel Holtmann
c9a37e4a9a
Add new constructor for fully blocking operation
2010-01-28 22:05:44 +01:00
Zhenhua Zhang
7145edd3a4
Add gatutil.c to share common APIs with GAtServer
...
Add gatutil.c/h gat.h and move shared typedef and APIs into it.
So that they can be shared by GAtServer and GAtChat.
2010-01-20 14:13:57 -06:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00
Denis Kenzior
1d98c226b5
Add g_at_chat_unregister_all function
2009-12-02 19:10:08 -06:00
Denis Kenzior
cf98ebb653
Add: g_at_chat_cancel_all function
...
This will cancel all commands currently queued.
2009-12-02 19:10:04 -06:00
Yang Gu
d9acd12fae
Framework to support non-standard terminator
2009-11-24 18:06:20 +01:00
Denis Kenzior
9aa2182261
Add ability to retrieve the atchat IOChannel
2009-10-15 16:15:16 -05:00
Denis Kenzior
556186eb35
Remove more unused code
2009-10-15 16:15:16 -05:00
Marcel Holtmann
cfbc902287
Add support for switching to a different GAtSyntax at runtime
2009-10-02 12:29:02 +02:00
Denis Kenzior
c9d704955c
Add PDU listing support
2009-08-31 23:03:35 -05:00
Denis Kenzior
e3466d9b92
Remove unneeded declarations
2009-08-06 17:05:31 -05:00
Denis Kenzior
88b327cff5
Cleanup the debug support patch
2009-08-06 16:38:46 -05:00
Andres Salomon
d66fd48bf9
gatchat: add debugging infrastructure
...
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-06 16:38:45 -05:00
Denis Kenzior
83820c88b2
Refactor GAtChat to accept user-provided parsers
...
Intended for really broken modems. A default 27.007 compliant
parser is provided.
2009-08-06 16:38:39 -05:00
Denis Kenzior
86864c819c
Add extra_pdu_crlf quirk
2009-07-15 15:51:33 -05:00
Denis Kenzior
78a646797c
Add set / get flags for GAtChat
2009-07-15 15:51:28 -05:00
Marcel Holtmann
08b81f37a1
Add support for opening TTYs directly
2009-06-30 12:53:26 -07:00
Denis Kenzior
69372e642e
Add g_at_send_listing function
2009-06-16 16:38:19 -05:00
Denis Kenzior
64c4276473
Add AT chat library implementation
2009-05-06 14:42:54 -07:00