Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-03-24 | Refactor: Simplify parsing logic | Denis Kenzior | 1 | -14/+1 | |
It isn't actually necessary to check the basic command prefixes, if the extended prefix doesn't match we try to parse it like a basic command. That one does the same exact check anyway. If that fails, then this is not a recognized command line anyway. | |||||
2010-03-24 | Refactor basic command parsing | Denis Kenzior | 1 | -59/+46 | |
Make more bullet proof and efficient | |||||
2010-03-24 | Style: foo[0] is preferable to *foo | Denis Kenzior | 1 | -2/+2 | |
2010-03-24 | Fix: Be more paranoid in basic command parsing | Denis Kenzior | 1 | -6/+21 | |
2010-03-24 | Add basic command parsing | Zhenhua Zhang | 1 | -1/+111 | |
2010-03-22 | Fix: extract line should use S3, not hardcode CR | Denis Kenzior | 1 | -3/+4 | |
2010-03-22 | Refactor: Command line extraction | Denis Kenzior | 1 | -4/+10 | |
2010-03-22 | Refactor: Extended command parsing | Denis Kenzior | 1 | -114/+93 | |
Make the code more bullet proof and easier to follow | |||||
2010-03-22 | Add g_at_server_register and unregister callback | Zhenhua Zhang | 1 | -0/+48 | |
2010-03-22 | Add notify at command callback | Zhenhua Zhang | 1 | -0/+48 | |
2010-03-22 | Add server at command data structure | Zhenhua Zhang | 1 | -0/+27 | |
2010-03-22 | Add extended command parsing | Zhenhua Zhang | 1 | -2/+69 | |
2010-03-22 | Add framework of server parser | Zhenhua Zhang | 1 | -20/+26 | |
a. The parser fetch and parse one command per loop. The prefix is the command prefix without parameter. For example, the prefix of "AT+CLIP=1" is "+CLIP". b. Search registered notification node in command_list. Invoke the callback if found. c. Termiate the execution if the result is an error. Otherwise, parse next command. | |||||
2010-03-18 | Fix: Echo everything as soon as received | Denis Kenzior | 1 | -4/+5 | |
2010-03-18 | Refactor add is_basic_command_prefix function | Zhenhua Zhang | 1 | -2/+13 | |
2010-03-18 | Rename parse_v250_settings | Zhenhua Zhang | 1 | -2/+2 | |
To parse_basic_command | |||||
2010-03-18 | Rename parse_at_command | Zhenhua Zhang | 1 | -2/+2 | |
To parse_extended_command | |||||
2010-03-18 | Rename is_at_command_prefix | Zhenhua Zhang | 1 | -2/+2 | |
To is_extended_command_prefix | |||||
2010-03-18 | Rename g_at_server_send_result | Zhenhua Zhang | 1 | -8/+8 | |
To g_at_server_send_final | |||||
2010-03-03 | Fix: Use the proper enum type | Denis Kenzior | 1 | -1/+1 | |
2010-03-03 | Add command echo back if ATE=1 | Zhenhua Zhang | 1 | -0/+3 | |
2010-02-26 | Fix: Simplify write-again logic | Denis Kenzior | 1 | -6/+3 | |
2010-02-26 | Fix: Don't allocate buffers if we don't need to | Denis Kenzior | 1 | -1/+6 | |
2010-02-26 | Add write server response into non-blocking IO | Zhenhua Zhang | 1 | -0/+66 | |
Write server response into non-blocking GIOChannel when we have G_IO_OUT signal. | |||||
2010-02-26 | Add write buffer queue for non-blocking write | Zhenhua Zhang | 1 | -10/+95 | |
The head of the queue is the data to be written, the tail is the free buffer to cache data into. If the tail of queue is full, allocate a new free buffer and append it at the tail. | |||||
2010-02-26 | Add define for read and write buffer size | Zhenhua Zhang | 1 | -1/+3 | |
2010-02-26 | Do not trigger user disconnect at g_at_shutdown | Zhenhua Zhang | 1 | -14/+28 | |
Similar to gatchat, introduce read_watcher_destroy_notify and do not trigger user disconnect at g_at_shutdown. Delay destroy of gatserver until read_watcher is destroyed. | |||||
2010-02-10 | Rename server_io to channel | Zhenhua Zhang | 1 | -6/+6 | |
To make it consistent with GAtChat. | |||||
2010-02-10 | Replace sprintf with snprintf | Zhenhua Zhang | 1 | -2/+3 | |
2010-02-10 | Rename buf to read_buf in GAtServer | Zhenhua Zhang | 1 | -27/+27 | |
Because we may introduce write_buf for sever response buffer. | |||||
2010-02-02 | Fix change state immediately when meet the slash | Zhenhua Zhang | 1 | -15/+5 | |
According to V.250 spec section 5.2.4 Repeating a command line, if the prefix "A/" or "a/" is received, we should execute the last command immediately. No need to meet \r. | |||||
2010-02-01 | Fix: Remove unused label | Denis Kenzior | 1 | -1/+0 | |
2010-02-01 | Fix: Skip whitespace in AT command line | Denis Kenzior | 1 | -5/+33 | |
2010-02-01 | Refactor: Use more flexible parser framework | Denis Kenzior | 1 | -101/+165 | |
2010-02-01 | Fix: Don't set variables to NULL/0 | Denis Kenzior | 1 | -7/+1 | |
These were already set to 0 by g_try_new0 | |||||
2010-02-01 | Refactor: Support max_read attempts like GAtChat | Denis Kenzior | 1 | -6/+14 | |
2010-02-01 | Fix: Use a function instead of a table | Denis Kenzior | 1 | -32/+30 | |
2010-02-01 | Fix: Make compile | Denis Kenzior | 1 | -7/+7 | |
2010-02-01 | Add GAtServer basic parsing support | Zhenhua Zhang | 1 | -0/+486 | |
It's the basic skeleton of GAtServer, including new/shutdown, ref/ unref, received_data/parse_buffer and set_discuss/set_debug. GAtServer is to emulate the server side of AT conversation. It complies with V.250 and 27.007 spec to accept AT command like ATV1, ATE0 and extended command like AT+CLCC. Upper layer could create customize server to expose TTY, tcp or unix socket to client side application. |