monitor signal strength (AT+CSQ) after pppd create ppp interface
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
monitor signal strength (AT+CSQ) after pppd create ppp interface
Hi All ~
I am trying to use USB 3G modem on my Linux laptop. When I insert my modem to USB port and load usbserial module, it creates ttyUSB0 and ttyUSB1. I am only able to use ttyUSB0 and launch my ppp scripts to connect to my HSDPA network. Once connected I am not able to use ttyUBS0 to launch minicom or other software to execute AT commands as it says ttyUSB0 file is locked by my ppp . Mainly I am interesting in finding signal strength and Bit Error Rate (AT+CSQ). I see that ttyUSB1 doesnt serve any purpose. Has anyone tried using AT commands or get signal strength info once ppp connection is already launched?Please provide your precious comment/experience to me. thanks a lot.
My experience is using a Sierra Wireless Compass 888 USB modem on Ubuntu 8.04.
My modem has (and I would image most/all mdoems) have two ports: a data port and a command port. Perhaps the locked port is the data port and the other is the command port.
You should send AT command only on the command port.
I am thinking that when you run ppp it's locking the data port.
With my setup from the terminal:
1) I run 'wvdialconfig' just to verify my two serial ports.
2) I run 'pppd call gsm885' to start the ppp daemon. gsm885 is specific for my modem. I think there is a generic gsm, but perhaps you need a modem specific one?
3) I open a new terminal and run 'minicom -s'. Mini com opens where I configure the serial port to the command port and the exit minicom configuration. The modem initialises and I can then send AT commands.
Very appreciate your reply and share with your experience.
I have few questions about about your description.
Can you give me more details?
>>My modem has (and I would image most/all mdoems) have two ports: a >>data port and a command port. Perhaps the locked port is the data >>port and the other is the command port.
The Two ports are ttyUSB0 and ttyUSB1?
In my experience, the pppd will use ttyUSB0 to send AT command to modem by chat, after all command be completed, it will lock the ttyUSB0 and create ppp0 interface, whether it is possible the data and command be sent to the same port?
>>2) I run 'pppd call gsm885' to start the ppp daemon. gsm885 is >>specific for my modem. I think there is a generic gsm, but perhaps >>you need a modem specific one?
So, the function of gsm885 is the same as chat, is it right?
Hmm, not sure whether both command and data can be sent on the same port? I would image this to be feasible it’s just the modems I have used have all used two ports. Anyhow, you modem manufacturer should be able to tell you this?
BTW: pppd only locks the port if directed to do so. This is done in your configuration file. For example if running 'pppd call chat', 'chat' is your configuration file. Look in here and the may be a command 'lock' just before the 'connect' command. Remove it and the port should not no longer get locked. Note, I am not sure it this has any adverse effects?
No 'gsm885' is not the same as 'chat'. Use 'man chat' to see description of chat. My example uses 'pppd call' and not 'chat' Using 'chat' you would also provide an additional script e.g. 'gsm_chat'.
Oops - on my last reply there is a mistake. IGNORE THE LAST REPLY AND READ THIS INSTEAD:
Hmm, not sure whether both command and data can be sent on the same port? I would image this to be feasible it’s just the modems I have used have all used two ports. Anyhow, you modem manufacturer should be able to tell you this?
BTW: pppd only locks the port if directed to do so. This is done in your configuration file. For example if running 'pppd call gsm', 'gsm' is your configuration file. Look in here and the may be a command 'lock' just before the 'connect' command. Remove it and the port should not no longer get locked. Note, I am not sure it this has any adverse effects?
No 'gsm885' is not the same as 'chat'. Use 'man chat' to see description of chat. My example uses 'pppd call' and not 'chat' Using 'chat' you would also provide an additional script e.g. 'gsm_chat'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.