LinuxQuestions.org
Help answer threads with 0 replies.
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 09-23-2009, 08:36 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Route USB connection thru telnet


I think this is a what obscure title, but the problem was (WAS) this. I have purchased a couple of MultiTech GPRS modems. My only application for now is to send SMS through these modems.

I did some research, and thought that Gammu would be a fine command line program to be called from my application.

The MultiTech modems also seemed to be designed for my application, and they come with RS-232, USB or Ethernet interface. I choose Ethernet becasue the modems will by mounted quite some distance from the server running my app. I talk to these modems over ethernet using Telnet.

Gammu is wonderful, ethernet GPRS modems are wonderful but I made a big fat mistake by forgetting Gammy can talk over devices like /dev/ttyS0 or /dev/ttyUSB0, but not via Telnet.

I solved the problem quickly (I needed it running THIS week!) by adapting an Expect script I had lying around, and now I am perfectly able to communicate and send SMS-es.

However, I am wondering if there is any way to set up a Telnet connection to the modem, and simulate a /dev/tty device through that connection. In other words, Gammu talks to my /dev/faketty, faketty routes everything thru the Telnet connection.

My application might need a little more functionality, not much. It would be possible to implement that in the Expect app I already have, but if there is a real easy solution to create a fake device and use Gammu, I might prefer that.

jlinkels
 
Old 10-01-2009, 10:33 AM   #2
dennis_k85
LQ Newbie
 
Registered: Aug 2008
Location: Dacono Colorado
Distribution: linux from scratch
Posts: 5

Rep: Reputation: 1
As far as I know, the only way to do that is to write your own "telnet" driver for your modems. This would not be that difficult, but you would need to understand the TCP/IP stack and linux character device drivers.

Yuo fix using expect is a great workaround.

dennis_k85
 
Old 10-29-2009, 01:21 PM   #3
dagnabit
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Unhappy Multi Tech MTCBA-C-U and gammu

I just purchased a MultiTech MTCBA-C-U to use with gammu in linux. I can see it with lsusb but I cannot figure out the correct settings in gammurc in order to communicate with it. This modem can do serial, usb, and ethernet. If I cannot get usb to work, your solution using expect sounds intriguing. Any chance you can send me a copy of your script? I would most rather use gammu though. Any thoughts on how to configure it for the MultiTech?

Thanks
 
Old 10-29-2009, 03:15 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Quote:
Originally Posted by dagnabit
Any thoughts on how to configure it for the MultiTech?
No, but it seems to be straightforward and there are plenty of examples available. Mutlitech is one of the best supported modems, thanks to the extensive documentation.

Frankly I doubt whether you can talk ethernet to that model. The modems are available for RS232, USB and Ethernet but those are 3 different models.

If your modem talks ethernet, make sure you are able to talk to it over telnet, send messages etc. One step at a time. The script is resilient against errors, but you won't get any message out and it is gonna take a long time if you try to debug using the script instead of going thre the basics.

This is the Expect script. Put the includes in the same directory.
http://pdis.rnw.nl/~hansl/links/multitech.tar.gz

jlinkels
 
Old 10-29-2009, 04:34 PM   #5
dagnabit
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by jlinkels View Post
No, but it seems to be straightforward and there are plenty of examples available. Mutlitech is one of the best supported modems, thanks to the extensive documentation.

Frankly I doubt whether you can talk ethernet to that model. The modems are available for RS232, USB and Ethernet but those are 3 different models.

If your modem talks ethernet, make sure you are able to talk to it over telnet, send messages etc. One step at a time. The script is resilient against errors, but you won't get any message out and it is gonna take a long time if you try to debug using the script instead of going thre the basics.

This is the Expect script. Put the includes in the same directory.
http://pdis.rnw.nl/~hansl/links/multitech.tar.gz

jlinkels
Thanks. You are right. It is just the USB version. I had read it could do all three, but that is because they sell three models. I've got it talking over minicom, but not with gammu or smstools3 which are both designed for GSM modems/phones and not CDMA as mine is.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora Core 8 : Telnet Problem: No route to host keen4linux Linux - Networking 1 04-25-2008 06:55 AM
Problem with 'route' on temporary dialup connection Gethyn Linux - Networking 3 06-11-2007 08:46 AM
telnet works but 'telnet host 25' gives 'no route to host' karlmdv Linux - Networking 2 07-25-2006 06:28 AM
ip ok, ap ok, ifconfig ok, route -n ok but NO CONNECTION jr0 Linux - Wireless Networking 4 10-09-2005 06:28 AM
DHCP is unable to route cable connection Wolfy Linux - Networking 2 07-09-2004 09:52 PM

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

All times are GMT -5. The time now is 01:58 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