Linux gsm modem

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I would like to use a GSM modem to make a voice call to a phone number, play a recorded message, wait for a digit to be pressed and then disconnect the call.

The system needs to know if the line was busy, if the user answered and which digit was pressed by user if any. It should drop the line if nothing is pressed in 30 seconds. If user presses the digit before the question is completed then the voice should stop user doesn't have to wait. Also, it would be nice if system could handle invalid digits play "invalid digit" message, play original message and wait for input.

Multiple calls in parallel would be nice, but I guess this is not possible? I have found this article which explains low-level interface quite nicely. However, this question is more pragmatic - which libraries and which GSM modem would you recommend?

A modem is generally used for data transmission but it sounds like you are actually transmitting voice, albeit prerecorded voice, and tones. Although you can achieve this with the extra voice capability of a voice modem as you have identified, it might actually be easier to use a GSM to VoIP gateway, unless you actually need the modems data capability for some reason.

Some gateways even support multiple SIMS so you can target the SIM which gives the lowest call rate for the number you are calling - for example if you know that the number you want to call is on a particular operator, then that operator may offer free 'on network' calls between it's SIMs. This might be an advantage if you are expecting to make a large number of calls.

I am no expert in this field but it is something of a personal project that I have wanted to dive into. Then you will need to follow the instructions of the PABX development to create your dial plans and routing. I don't know if there are any already out there but I'm sure you will find many examples of the bits and pieces you need.

Learn more. Asked 8 years, 7 months ago. Active 7 years, 1 month ago. Viewed 23k times. BTW: this is not telemarketing, it is a notification system.

How to configure Huawei USB modem to send and receive SMS on Linux or Ubuntu machine

Not that it matters Mousavi Jul 3 '15 at I have not used this personally, but it supports voice calls with Arduino. Since Arduino is open source, maybe it would be possible to implement it in Linux as well. Active Oldest Votes. Mick Mick I was hoping I could avoid using Asterisk - I hear it is very difficult to setup. But if nothing else comes up, I'll have to bite into it. Here is what I think will be the best way to do this. Talon Talon 3, 3 3 gold badges 24 24 silver badges 40 40 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. In the other word, how can I make sure if a specific modem can be detected on kernel 2. Having some problems with it though - sometimes it doesn't send sms with error code 11, but it might be related to the service provider vodafone.

It showed only as a network card. It was able to send sms in windows though. Sign up to join this community. The best answers are voted up and rise to the top.

Home Questions Tags Users Unanswered. Asked 4 years, 3 months ago. Active 4 years, 3 months ago. Viewed times. As long as it presents itself to the system as a serial device and speaks AT commands, it should work. Active Oldest Votes.

Yarik Dot Yarik Dot 1, 10 10 silver badges 22 22 bronze badges. The Overflow Blog. Podcast Cryptocurrency-Based Life Forms. Q2 Community Roadmap. Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Related 3. Hot Network Questions.

Server Fault works best with JavaScript enabled.As part of this production I needed to build a system that could send and receive SMS messages from audience members. The API route is the easiest way to go from a programming aspect.

This allowed us to receive unlimited messages for free. There are quite a few GSM modems to choose from. The other big requirement is Linux drivers, and Google is really your friend here. The main thing to watch out for is manufacturers changing the chipsets in minor product revisions. We ended up going with an old Vodafone modem using a Huawei chipset.

It includes a daemon, SMSD, which receives messages. SMSD is configured to run your own scripts when messages are received, allowing you to do pretty much anything you want with them. The configuration file is a bit unwieldybut thankfully it comes with some sane default settings. Edit the file in your favourite text editor:. First up you will need to configure your modem.

The modem configuration is at the end of the config file, and the exact parameters will vary depending on what modem you have. Some modems require initialisation commands before they start doing anything.

Send and receive SMS using GSM modem or phone on Ubuntu

Like I said, there are many options to pick from, but this is the bare minimum I needed. Check the SMSTools website and forum for help! The other big important part of the config file is the event handler. From this script you can do any processing you need, and could even reply to incoming messages.

My script is some simple Bash which inserts a message into a database, but more on that in a moment. Sending SMS messages is super easy.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I would like to use a GSM modem to make a voice call to a phone number, play a recorded message, wait for a digit to be pressed and then disconnect the call. The system needs to know if the line was busy, if the user answered and which digit was pressed by user if any. It should drop the line if nothing is pressed in 30 seconds. If user presses the digit before the question is completed then the voice should stop user doesn't have to wait.

Also, it would be nice if system could handle invalid digits play "invalid digit" message, play original message and wait for input. Multiple calls in parallel would be nice, but I guess this is not possible? I have found this article which explains low-level interface quite nicely.

However, this question is more pragmatic - which libraries and which GSM modem would you recommend? A modem is generally used for data transmission but it sounds like you are actually transmitting voice, albeit prerecorded voice, and tones. Although you can achieve this with the extra voice capability of a voice modem as you have identified, it might actually be easier to use a GSM to VoIP gateway, unless you actually need the modems data capability for some reason.

Some gateways even support multiple SIMS so you can target the SIM which gives the lowest call rate for the number you are calling - for example if you know that the number you want to call is on a particular operator, then that operator may offer free 'on network' calls between it's SIMs. This might be an advantage if you are expecting to make a large number of calls. I am no expert in this field but it is something of a personal project that I have wanted to dive into.

Then you will need to follow the instructions of the PABX development to create your dial plans and routing. I don't know if there are any already out there but I'm sure you will find many examples of the bits and pieces you need. How are we doing? Please help us improve Stack Overflow. Take our short survey. Learn more. Asked 8 years, 7 months ago. Active 7 years, 1 month ago. Viewed 23k times. BTW: this is not telemarketing, it is a notification system.

Not that it matters Mousavi Jul 3 '15 at I have not used this personally, but it supports voice calls with Arduino.

Since Arduino is open source, maybe it would be possible to implement it in Linux as well. Active Oldest Votes. Mick Mick I was hoping I could avoid using Asterisk - I hear it is very difficult to setup. But if nothing else comes up, I'll have to bite into it. Here is what I think will be the best way to do this. Talon Talon 3, 3 3 gold badges 24 24 silver badges 40 40 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.Add the following snippet to your HTML:. This article explains how to to connect a device running Linux to the internet by means of the PPP point-to-point protocol.

Read up about this project on. Embedded devices connected to the internet are growing every day. In many cases, these devices will be installed somewhere without a wire or wireless network connection. A good way to keep the devices connected to the internet in these situations is by seeking mobile network coverage.

Therefore, this blog post will present the necessary configurations to connect a device running Linux to the internet through the PPP Point-to-Point Protocol link. The Colibri Evaluation Board is recommended specifically for project evaluation and development. To follow this tutorial, you can use any USB or Serial modem to connect to the internet. To understand how to compile the kernel, I suggest following the link below. Basically, the process to compile the Kernel can be summarized in the following steps:.

When you are configuring the kernel features, go into menuconfig and be sure to enable the following options:. To configure and connect the 3G modem to the internet, Linux uses, in addition to the kernel drivers, a software which manages the connection.

This software is PPP.

Send SMS from Ubuntu Linux Command-line via GSM Modem

Usually Toradex images already have the PPP software installed by default. In case you do not have PPP installed, just add the following to your local. After all the necessary drivers and software are installed, it is possible to check if the module recognizes the 3G modem. Basically the driver simulates a USB connection as many serial connections. In my case the modem had a baudrate of After validating the communication with the modem, it is time to create the configuration files responsible for connecting to the internet.

Some files need to be created inside this folder. Now we create the file responsible for sending the AT commands to the modem so it can connect to the internet. Next we run ppp and analyze the log files. In the log files we can see when each AT command has been executed.

linux gsm modem

As seen in the log file, the chat script is executed step-by-step until we get the following:. You can validate the necessary command sequence to get connected using the serial terminal.Use a fake number for pranks? Evil knows no boundaries…. First thing you need is a device that you can use as a GSM modem. He also explains how to do that with a USB modem stick, which is much easier, and since I am a lazy guy well, if a recruiter is reading that, only at homeI am going to use that method.

Those gadgets were thought to access to the internet through the SIM card. The capability from the new smartphones to access to the internet and provide tetering enable the Wifi in that smartphone so other devices have also internet access through it has made that those surfsticks are not so needed anymore.

But they are still easy to find, and they are great for what we want. For the Raspberry Pi, it is recommended among others the Huawei E It is pretty easy to find loads of them, since O2 sells them, and most of them are SIM-Unlocked at least, the one I have got in original package ;-p. In my case, the first element Huawei Technologies Co. That means that the Raspberry Pi has recognized the device. I have to investigate why I get 3 items for just one modem.

If someone knows, please post it in the comments. For example, sending and receiving SMS. In order to […]. Like Like. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email.

That is a GSM modem. That is how a naked GSM Modem looks like. Notice the inserted SIM card. GSM stick connected to a Raspberry Pi. Share this: Twitter Facebook. Like this: Like Loading In order to […] Like Like. Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:. Email required Address never made public.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Ask Ubuntu is a question and answer site for Ubuntu users and developers.

linux gsm modem

It only takes a minute to sign up. How to talk to that device e. What dev device should I use? Then I had to change some files to adapt them to work with the 3. If I had a bit operating system I executed. It asked "Where is the linux source build directory that matches your running kernel?

I also accepted the default answer in other questions. You could also use a program like efax-gtk to send faxes through the modem. Click the network icon and select Edit connections. This will launch Ubuntu's networking management utility. Select the name of the USB modem from the list of available connections, then click Properties. Click Enable this Connection to tell Ubuntu that you want to use this device to connect to Internet networks.

Click OK. Your USB modem will now be properly connected to and configured in Ubuntu, and you can now use it to connect to the Internet. Source of tutorial here. There are two software I know of you can use to send AT Attention commands to your modem one is Serial port terminal and other one is Cutecom. Ubuntu Community Ask!

Send and receive SMS using GSM modem or phone on Ubuntu

Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How to 'talk' to USB modem in Linux? Ask Question.

linux gsm modem

Asked 7 years, 6 months ago. Active 5 years, 1 month ago. Viewed 65k times. Peachy 5, 8 8 gold badges 32 32 silver badges 45 45 bronze badges. Alex Alex 5 5 gold badges 18 18 silver badges 29 29 bronze badges. Active Oldest Votes. Eric Carvalho Bruno Bruno 46 1 1 bronze badge.

Welcome to Ask Ubuntu!


thoughts on “Linux gsm modem”

Leave a Reply

Your email address will not be published. Required fields are marked *