LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-28-2018, 01:17 AM   #1
antc
LQ Newbie
 
Registered: Jul 2018
Posts: 1

Rep: Reputation: Disabled
Not receiving sms notifications once ppp is up


Hi all,

I have an Siemens IoT2020 with a Sim7000e cellular board that I connect via USB to the board and connect to Telstra Cat-M1 network.

I can send and receive SMS and do so using Node-Red but can also do with Minicom etc. When connected I get :


Code:
root@iot2000:~# dmesg | grep USB
[ 2.318030] ACPI: bus type USB registered
[ 4.649537] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.664126] ehci-pci 0000:00:14.3: new USB bus registered, assigned bus number 1
[ 4.690190] ehci-pci 0000:00:14.3: USB 2.0 started, EHCI 1.00
[ 4.697598] hub 1-0:1.0: USB hub found
[ 4.705412] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.719721] ohci-pci 0000:00:14.4: new USB bus registered, assigned bus number 2
[ 4.797125] hub 2-0:1.0: USB hub found
[ 4.821630] usbserial: USB Serial support registered for generic
[ 6.075573] usbhid: USB HID core driver
[ 306.670178] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 307.026397] usbserial: USB Serial support registered for GSM modem (1-port)
[ 307.052558] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 307.064341] qmi_wwan 1-1:1.5: cdc-wdm0: USB WDM device
[ 307.101765] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 307.128055] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 307.144944] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 307.162073] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
I have been using /dev/ttyUSB2 for ppp connection and /dev/ttyUSB3 for AT commands in node-red. Node-Red has a serial connector that I use to publish AT Commands and another to receive responses.

I did have it running so I could bring up a ppp connection and still receive sms notifications. Now however I can't receive sms notifications unless I send an AT from node-red if ppp is up although this sometimes still doesn't receive sms and if does is in PDU format. I do note that it does appear to store on Sim and can receive as soon as I killall pppd, this however does not always happen.

It also changes some settings when I bring up connection:
Prior to pppde-Red has a serial connector that I use to publish AT Commands and another to receive responses.
I did have it running so I could bring up a ppp connection and still receive sms notifications. Now however I can't receive sms notifications unless I send an AT from node-red if ppp is up although this sometimes still doesn't receive sms and if does is in PDU format. I do note that it does appear to store on Sim and can receive as soon as I killall pppd, this however does not always happen.

It also changes some settings when I bring up connection:
Prior to ppp:
Code:
Code:
AT+CMGF=1 #text mode
AT+CSCS="GSM"
Post ppp:
Code:
AT+CMGF? returns 0 (PDU mode)
AT+CSCS? returns "IRA"
If I try to change
"AT+CNMI=2,2,0,0,0 ↵"
"+CMS ERROR: 303↵"
although it appears supported
"AT+CNMI=? ↵"
"+CNMI: (0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)↵"
Could it be my options file: /etc/ppp/options-mobile
Code:
/dev/ttyUSB2
115200
lock
crtscts
modem
passive
novj
defaultroute
noipdefault
usepeerdns
noauth
hide-password
persist
holdoff 10
maxfail 0
debug
logfile /var/log/ppplog
/etc/ppp/peers/provider
file /etc/ppp/options-mobile
connect "/usr/local/sbin/chat -e -r -v -V -t15 -f /etc/ppp/chatscripts/mobile-modem.chat"

/etc/ppp/chatscripts/mobile-modem.chat
Code:
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' 'ATZ'
'' \rAT
TIMEOUT 30
OK 'AT+CSQ'
OK 'AT+CGDCONT = 1,"IP","telstra.m2m"'
OK 'AT+CGDCONT?'
\r \d\c
'OK' 'ATD*99#'
\r \d\c
\r \d\c
'CONNECT' ''
I realise there may be some bad configurations as I haven't touched linux for over a decade and even then wasn't great. I'm wondering if my options are creating some sort of serial connection when ppp is up and node-red can't receive as it's using some sort of serial emulator or the TE-TA connection is locked by ppp.

Any ideas?
 
Old 07-29-2018, 08:05 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You explained yourself well, and I found myself retching as I remember my experiences with pppd and the bad old days of serial dialup. Use of the ohci module tells me this is very old hardware indeed.

The fact is, none of have your hardware, few of us remember pppd, and none of us remember it with fondness. We really can offer few suggestions. I doubt if it's objecting to pppd in itself (that's a purely human reaction), but probably reacting to an open connection. I never had much success either with /dev/ttyUSB connections either, because the voltages were wrong. Serial ttys used +/- whereas usb only offers +/0. You can mimic the pulses at a software level, but the thresholds are wrong and it may, or may not like it. Saying 'Oh but it used to work' doesn't impress me at all. You really need someone like I was - a small time electronics guru with the backside out of his trousers driving a banger and going around making people and businesses happy by fixing their junk. I was driven out of that act years ago.
 
Old 07-30-2018, 04:40 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
One further thought if you must persist.

There was something called wvdial, which IIRC became kwvdial back in those days. The whole purpose of it was to take the pain out of dialup by passing stuff to pppd. It had it's own config file.
 
Old 05-22-2022, 07:55 AM   #4
Odenkurtiak
LQ Newbie
 
Registered: May 2022
Posts: 1

Rep: Reputation: 0
I had a problem similar to yours. For a very long time, I did not receive any SMS on my real phone number, which annoyed me a lot. It wasn't very pleasant when I wanted to register on different platforms, and because I didn't receive the SMS, I couldn't do that. After a while, I thought that the problem was not in the phone but my phone number, and I tried to use a temp number Germany. Since I use this temporary number, I have no problem, and I can register on any app I want. This was the solution to my problem. Now I always use a temporary number.

Last edited by Odenkurtiak; 05-24-2022 at 07:00 AM.
 
  


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
What service should be used for sending and receiving sms on GSM modem shahz Linux - Software 4 06-19-2017 09:39 PM
Network services monitoring tool.. how to send text notifications by SMS to admins linuxFreshMan Linux - Networking 2 08-26-2011 08:56 PM
nagios & SMS notifications. mastrboy Linux - Software 4 03-21-2010 09:44 AM
Bind slave not receiving notifications (gentoo only) DukeLeto Linux - Software 8 07-10-2008 02:33 AM
Opennms on Debian not receiving notifications csross Linux - Software 0 03-16-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:14 PM.

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