LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2010, 01:32 PM   #1
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Rep: Reputation: 30
Question Running pppd and minicom concurrently on the same modem?


I'm developing some communications software that uses a CDMA modem over a USB connection to provide internet services for an embedded Linux device. The software also needs to monitor the modem status via AT commands without interrupting internet service on the device. I'm still in the exploration stages of this project and haven't really gotten into the meat of the coding yet, so for now I've just been playing around with the modem driver, pppd, and minicom on an Ubuntu laptop. Eventually when I develop the software, pppd will be running in the background and I'll be using libcurl to do HTTP gets/etcetra, and I'll want to write/read AT commands directly without the use of minicom.


The problem I have right now is that pppd and minicom can not run concurrently because they are both trying to access the same device file (/dev/ttyUSBModem0). The modem manufacturers, however, told me that the modem would be able to handle internet connectivity and AT commands concurrently.


I've read through what little documentation exists for this USB serial modem driver and it says that the modem has three interfaces: DATA channel (used by the modem driver, for pppd), ETS channel (for debugging), and the AT MUX channel (for AT commands). I'm a little shaky here...how would I access one USB interface on the same device versus another? Should there be a different device file created for each interface?



The main questions I'd like to ask are:

1) Is it indeed possible to use both pppd and minicom simultaneously on the same USB serial modem device?

2) With my USB device plugged in, how would I access one interface over the other? Is that something that the modem device driver should provide for?

3) How would I send AT commands to the modem and receive the results without the use of minicom? Do I just open the /dev/ttyUSBModem0 for read/write privileges? (That probably won't work though since pppd will already be accessing the device file).


Thanks for any help you can give me so I can get on the right track.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Preventing multiple instances of a shell script from running concurrently Dave Lerner Programming 17 04-21-2020 12:53 PM
Concurrently Editing and Running Shell Scripts Woodsman Slackware 3 04-04-2009 02:15 PM
Concurrently Running dd and md5sum Commands Woodsman Slackware 4 04-03-2009 05:15 PM
Preventing processes running concurrently - using ps TomCruise2002 Linux - General 1 03-21-2007 01:10 PM
Modem Configuration with minicom tayyab Linux - Hardware 1 09-01-2005 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration