资源简介
GSM0710 CMUX源码,实现串口多路复用,实测可用
我用在gprs模块端口复用上,linux 下交叉编译后,拷入使用环境,运行gsm0710muxd_bp -s /dev/ttyS0 -b 115200 -n 3 &,成功后可以看到 /dev/下出现 /chn文件夹,打开看到1、2、3 3个端口,3个口都可以通AT命令

代码片段和文件信息
/*
* GSM 07.10 Implementation with User Space Serial Ports
*
* Code heavily based on gsmMuxd written by
* Copyright (C) 2003 Tuukka Karvonen
* Modified November 2004 by David Jander
* Modified January 2006 by Tuukka Karvonen
* Modified January 2006 by Antti Haapakoski
* Modified March 2006 by Tuukka Karvonen
* Modified October 2006 by Vasiliy Novikov
*
* Copyright (C) 2008 M. Dietrich
* Modified January 2009 by Ulrik Bech Hald
*
* 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.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
/* If compiled with the MUX_ANDROID flag this mux will be enabled to run under Android */
/**************************/
/* INCLUDES */
/**************************/
#include
#include
//#include
#include
#ifdef MUX_ANDROID
#include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
//#define XINGWANG_DEBUG
#ifdef XINGWANG_DEBUG
//#include “ct_linuxframwork_log.h“
#define ct_linuxframwork_radiolog(lvl tag f ...) do {{fprintf(stderr“%d:%s(): “ f “\n“ __LINE__ __FUNCTION__ ##__VA_ARGS__);}}while(0)
#endif
#ifdef MUX_ANDROID //full path is required on some boards i donot know why
int ql_system(const char * string) {
char system_bin[100];
strcpy(system_bin “/system/bin/“);
strcat(system_bin string);
return system(system_bin);
}
#else
#define ql_system system
#endif
/**************************/
/* DEFINES */
/**************************/
/*Logging*/
#ifndef MUX_ANDROID
#include
// #define LOG(lvl f ...) do{if(lvl<=syslog_level)syslog(lvl“%s:%d:%s(): “ f “\n“ __FILE__ __LINE__ __FUNCTION__ ##__VA_ARGS__);}while(0)
#ifdef XINGWANG_DEBUG
#define DEBUG
#ifdef DEBUG
#define MUX_TAG “gsm0710“
#define LOGMUX(lvlf...)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 101386 2015-07-07 11:14 gsm0710muxd_bp.c
文件 86 2017-08-15 22:28 Makefile
- 上一篇:软件工程第二版课后答案
- 下一篇:替换图片名称中的一部分.zip
相关资源
- GPRS(MC35型号)的发送短信程序
- 基于ARM和GPRS的无线通信系统设计
- 基于PLC、GPRS以及ZigBee的路灯无线控制
- 一种远程无线抄表系统的设计方案
- 基于Zigbee和GPRS的无线温湿度测量系统
- 收发短信,短信控制LED51单片机例程
- 基于LINUX与GPRS网络的无线数据采集与
- 华为 GTM900才模块资料大全
- 一个用C写很不错的GPRS的PDU编码程序
- GSM GPRS Modem USB驱动
- SIM7600CE-4G模块资料.rar
- 基于北斗/GPS双星和GSM/GPRS通信的车辆
- linux下面使用SIM300模块发送GPRS短信的
- GA6 gprs模块 51单片机 程序
- 温度、一氧化碳、二氧化碳、PM2.5以及
- STM32F单片机与SIM900A的硬件条件下读一
- HUAWEI MG323
- Air202 硬件设计手册
- gprsprotel仿真
- STM32的SIM900A的GPRS数据传输
- 灵期通讯软件
- GPRS编程DTU资料
- stm32f407 GPRS通信源码
- ucos+sim908+GPRS+GPS
- GPRS 模块 原理图
- 移远通信国网4G模块资料
- STM32实现GPRS与服务器数据传输
- GPRS数据采集上位机软件
- STM32平台GPS定位器源码
- LTE重要协议规范--3gpp TS 23.401
评论
共有 条评论