91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 26KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-01
  • 語言: 其他
  • 標簽: gprs??CMUX??

資源簡介

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

評論

共有 條評論