当前位置:编程学习 > wap >>

请教问题

哪为大侠知道GSM0710协议呀,给讲讲,给个中文质料最好,小弟不胜感激!! --------------------编程问答-------------------- 从这里去看代码吧。

http://www.koders.com/c/fid5A80584FEA531D2A0D88184251BFAA5448FF220D.aspx



/*
 *
 * GSM 07.10 Implementation with User Space Serial Ports
 *
 * Copyright (C) 2003  Tuukka Karvonen <tkarvone@iki.fi>
 *
 * Version 1.0 October 2003
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Modified November 2004 by David Jander <david@protonic.nl>
 *  - Hacked to use Pseudo-TTY's instead of the (obsolete?) USSP driver.
 *  - Fixed some bugs which prevented it from working with Sony-Ericsson modems
 *  - Seriously broke hardware handshaking.
 *  - Changed commandline interface to use getopts:
 *
 * Modified January 2006 by Tuukka Karvonen <tkarvone@iki.fi> and 
 * Antti Haapakoski <antti.haapakoski@iki.fi>
 *  - Applied patches received from Ivan S. Dubrov
 *  - Disabled possible CRLF -> LFLF conversions in serial port initialization
 *  - Added minicom like serial port option setting if baud rate is configured.
 *    This was needed to get the options right on some platforms and to 
 *    wake up some modems.
 *  - Added possibility to pass PIN code for modem in initialization
 *   (Sometimes WebBox modems seem to hang if PIN is given on a virtual channel)
 *  - Removed old code that was commented out
 *  - Added support for Unix98 scheme pseudo terminals (/dev/ptmx)
 *    and creation of symlinks for slave devices
 *  - Corrected logging of slave port names
 *  - at_command looks for AT/ERROR responses with findInBuf function instead
 *    of strstr function so that incoming carbage won't confuse it
 *
 * Modified March 2006 by Tuukka Karvonen <tkarvone@iki.fi>
 *  - Added -r option which makes the mux driver to restart itself in case
 *    the modem stops responding. This should make the driver more fault
 *    tolerant. 
 *  - Some code restructuring that was required by the automatic restarting
 *  - buffer.c to use syslog instead of PDEBUG
 *  - fixed open_pty function to grant right for Unix98 scheme pseudo
 *    terminals even though symlinks are not in use
 *
 * Modified October 2006 by Vasiliy Novikov <vn@hotbox.ru>
 *  - Added support for Benq M22a, M23a modules. These modules don't support
 *       basic multiplexer mode.
 *  - Added support for advanced non error recovery mode.
 *  - Added -n option: no daemon, don't fork, without debug messages.
 *
 *
 * New Usage:
 * gsmMuxd [options] <pty1> <pty2> ...
 *
 * To see the options, type:
 * ./gsmMuxd -h
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef _GNU_SOURCE
// To get ptsname grandpt and unlockpt definitions from stdlib.h
#define _GNU_SOURCE
#endif
#include <features.h>
#include <stdlib.h>


--------------------编程问答-------------------- 你的GSM0710搞好没有啊
补充:移动开发 ,  Windows Phone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,