rtone / cmux Goto Github PK
View Code? Open in Web Editor NEWEnables GSM 0710 multiplex using n_gsm line dicipline
Enables GSM 0710 multiplex using n_gsm line dicipline
Hello,
I try your code for a project where I need to mux my GSM serial line.
When I run cmux, it create 4 tty : ttyGSM1 to 4.
But I can't use them.
With python I do :
import serial
com=serial.Serial('/dev/ttyGSM1',115200)
and I have the following error :
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/serial/serialutil.py", line 171, in init
self.open()
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 179, in open
raise SerialException("could not open port %s: %s" % (self._port, msg))
serial.serialutil.SerialException: could not open port /dev/ttyGSM1: [Errno 51] Level 2 halted: '/dev/ttyGSM1'
Do you have any idea ?
Many thanks
Hello:
I try to use cmux in my atmel board ( linux 4.4.4) , cross compile cmux and run successful.
It created 4 virtual tty for me. /dev/ttyGSM1 ~ /dev/ttyGSM4.
When i write data to /dev/ttyGSM1 by using shell, like this: printf "at\r\n" > /dev/ttyGSM1 ,data was sent successful, using salease logic analyze tool, can see the GPRS module responds with OK using GPRS0710 protocol.
But when i using microcom (linux serial port tools in busybox, like minicom) in command line:
microcom -s 115200 /dev/ttyGSM1, After that, microcom seems dead ! microcom cannot send/read anything, and I cannot close microcom by using CTRL+C.
I do not know who cause this problem, cmux,GPRS module or linux kernel ? or microcom ?
can you help me to solve this problem? Thanks!
when module reset , the UART will not quit and the ttyGSM is residue , so can not rebuild the new ttyGSM.
please help me and tell me how to quit cmux, thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.