OpenWrt Forum Archive

Topic: Problem sending SMS OpenWRT (minicom)

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi colleagues , I'm having trouble sending or see my SMS sim card on OpenWRT .

My 3G modem was recognized as ttyUSB01 and ttyUSB01 . Use the ttyUSB0 to connect to the internet.

To try to send text messages on the router used the minicom package.

I added one of the entries in the serial port settings minicom ( minicom -s ) , saved and then tried the commands for sending SMS :


Welcome to minicom 2.7

OPTIONS:
Compiled on Jun  8 2015, 16:21:40.
Port /dev/ttyUSB1, 03:46:15

Press CTRL-A Z for help on special keys


AT+CREG?
+CREG: 0,4

OK
AT+CSQ  #signal strength:
+CSQ: 99, 99

OK


AT+CSCA?
+CSCA: "55123456789", 145

OK


AT+CMGF=1
OK
AT+CMEE=1
OK
AT+CMGS="123456789"
> Message test <ctrl+z>
ERROR

minicom
continuation...

The following command should list all SMS on SIM Card ( PC shows 3 ):

AT+CMGL="ALL"
OK


dmesg:

(...)
1655.280000] sd 3:0:0:0: [sda] Attached SCSI removable disk
[ 2990.090000] da match,0x640980549e18
[ 3892.160000] nf_conntrack: automatic helper assignment is deprecated and it wi                                                                                        ll be removed soon. Use the iptables CT target to attach helpers instead.
[ 5219.900000] usb 1-1: USB disconnect, device number 5
[ 5219.910000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected fr                                                                                        om ttyUSB0
[ 5219.920000] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb faile                                                                                        d. (-19)
[ 5219.930000] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb faile                                                                                        d. (-19)
[ 5219.940000] option 1-1:1.0: device disconnected
[ 5219.950000] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb faile                                                                                        d. (-19)
[ 5219.950000] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb faile                                                                                        d. (-19)
[ 5219.970000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected fr                                                                                        om ttyUSB1
[ 5219.980000] option 1-1:1.1: device disconnected
[ 6087.730000] usb 1-1: new high-speed USB device number 6 using ehci-platform
[ 6087.880000] usb 1-1: New USB device found, idVendor=2001, idProduct=a80b
[ 6087.880000] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 6087.890000] usb 1-1: Product: D-Link DWM-156
[ 6087.900000] usb 1-1: Manufacturer: D-Link,Inc
[ 6087.900000] usb 1-1: SerialNumber: 532274406387760
[ 6087.920000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 6087.920000] scsi4 : usb-storage 1-1:1.0
[ 6088.180000] usb 1-1: USB disconnect, device number 6
[ 6088.980000] usb 1-1: new high-speed USB device number 7 using ehci-platform
[ 6089.130000] usb 1-1: New USB device found, idVendor=2001, idProduct=7d00
[ 6089.130000] usb 1-1: New USB device strings: Mfr=5, Product=6, SerialNumber=0
[ 6089.140000] usb 1-1: Product: D-Link DWM-156
[ 6089.140000] usb 1-1: Manufacturer: D-Link,Inc
[ 6089.160000] option 1-1:1.0: GSM modem (1-port) converter detected
[ 6089.170000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 6089.170000] option 1-1:1.1: GSM modem (1-port) converter detected
[ 6089.190000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 6089.200000] usb-storage 1-1:1.2: USB Mass Storage device detected
[ 6089.200000] scsi5 : usb-storage 1-1:1.2
[ 6092.230000] scsi 5:0:0:0: Direct-Access     HSPA USB SCSI CD-ROM      6229 PQ                                                                                        : 0 ANSI: 0 CCS
[ 6092.240000] sd 5:0:0:0: [sda] Attached SCSI removable disk

Could someone help me solve this problem ?

Grateful for the attention!
sorry about my English!

(Last edited by murilo.xd on 11 Jun 2016, 09:01)

This topic is not relevant to OpenWrt.

Be so kind to move this thread to an appropriate forum supporting minicom.

Max Hopper wrote:

This topic is not relevant to OpenWrt.

Be so kind to move this thread to an appropriate forum supporting minicom.

There is no specific forum dealing on minicom.

That was the only tool that could try to use the feature now that I can not use the smstools3 or even Gnokii unavailability.

I believe that many here use the 3G modem for Internet access or for specific use in VPN (real IP) and did not want to give mobility to consult the SMS router itself without taking all day sim card to your smartphone.

It is quite possible that might be a mistake by the way that the OpenWRT treat the integration package with the device.

minicom is a package feed offered via opkg as a convenience.

Be so kind to help reduce the forum SNR and seek support elsewhere.

Max Hopper wrote:

minicom is a package feed offered via opkg as a convenience.

Be so kind to help reduce the forum SNR and seek support elsewhere.


The very concept of OpenWRT is a more clean system , but advanced, that can be expanded packet.

How many other cases, SAMBA is an optional package , FTP is an optional package , including the very LUCI is a package that until recently did not follow the ROM OpenWRT.

With all due respect , can not restrict knowledge to it.

The area itself of the Forum is for general increasing discussion about the system as a whole, including its derived resources. If this were the case, nowhere else I could deal with that since there is no specific forum for this , which unambiguously limit the possibility to acquire valuable knowledge and help those in need.


At this point , there is a paradox with the same vc advocates :
"Combatting ignorance since 2015. "

(Last edited by murilo.xd on 11 Jun 2016, 19:24)

Irrelevant.

Max Hopper wrote:

Irrelevant.

Max we realize this seems irrelevant to you, but guess what, as far as we know this is not your forum, so why do you believe anybody is interested in your (often flawed) assessment of suitability to the forum?
        For many problems you deem irrelevant the actual issue often is based on the differences between more usual linux distributions and openwrt, so there is good reason for many posters to believe this forum might be able to help them. If you feel they are wrong, simply ignore them and do NOT bother to post a (hostile) response. Trust me, the forum will be a better place if you follow that advice, you certainly are quite busy increasing the noise in the forum. You might say, so am I, the big difference is that I am willing to accepts a little more noise and do not constantly pester people by telling them my opinion on their posts. On the contrary, I typically reserve such judgement on you quixotic quest to shape this forum after your personal preferences wink, but I digress...


Best Regards
        M.

<hijack>

moeller0 wrote:

... the actual issue often is based on the differences between more usual linux distributions and openwrt, ...

Be so kind to substantiate this assertion.
</hijack>

@OPer - 3X minicom mailing lists.

Max Hopper wrote:

<hijack>

moeller0 wrote:

... the actual issue often is based on the differences between more usual linux distributions and openwrt, ...

Be so kind to substantiate this assertion.
</hijack>

@OPer - 3X minicom mailing lists.

Max I rather spent my time on this forum actually trying to help people than collecting statistics for you, so sorry. That said, I am also willing to take the time to tell you when your posting seem out of bounds, but that really is all the time I want to spend on your behavior. If you compile the statistics you seem to expect, I am willing to fact-check it though...
        I think it is worth repeating, that your input would be much more welcome in this forum if you attempted a bit more friendliness and openness instead of constant border-line flame-baiting. But your behavior obviously is your choice...
        But, hey maybe the majority of active posters here sees this differently and thinks that your postings actually improve the forum, so let's ask them...
        Side-note since you only address my quantification "often" I take this that you agree with my main assessment...
     

Best Regards
        M.

<hijack.
Au contraire.  Until evidenced, the assertion in full is conjecture.
</hijack>

N.B. unlike others, Max Hopper has provided resources to the OPer

Max Hopper wrote:

<hijack.
Au contraire.  Until evidenced, the assertion in full is conjecture.
</hijack>

That is a bit lame to argue that after the fact wink. Really, your terseness is starting to bite you in the back... Please be kind and considerate enough to actually verbalize the points you want to make...
[quote

Max Hopper wrote:

]
N.B. unlike others, Max Hopper has provided resources to the OPer

N.B.: You know that you lost an argument when:
a) you start talking about yourself in the 3rd person
b) you play fast and loose with the facts:
Neither

Max Hopper wrote:

This topic is not relevant to OpenWrt.
Be so kind to move this thread to an appropriate forum supporting minicom.

nor

Max Hopper wrote:

minicom is a package feed offered via opkg as a convenience.
Be so kind to help reduce the forum SNR and seek support elsewhere.

nor

Max Hopper wrote:

Irrelevant.

are "resources" that the OP asked for or that will be helpful for him/her. The fact that you do not realize this is I assume the biggest part of you troubles with blending in with the forum regulars. Just assume that if people want to receice condescending put downs from you they will ask explicitly wink

Best Regards & you might want to stop responding to this thread as you lost most of the standing your position might have had, "si tacuisses..."

        M.

(Last edited by moeller0 on 12 Jun 2016, 14:48)

<hijack>

moeller0 wrote:
Max Hopper wrote:

<hijack>

moeller0 wrote:

... the actual issue often is based on the differences between more usual linux distributions and openwrt, ...

Be so kind to substantiate this assertion.


@OPer - 3X minicom mailing lists.

<snip>
Best Regards
        M.

Own goal, moeller0.
</hijack>

Max Hopper wrote:

<hijack>

moeller0 wrote:
Max Hopper wrote:

<hijack>Be so kind to substantiate this assertion.


@OPer - 3X minicom mailing lists.

<snip>
Best Regards
        M.

Own goal, moeller0.
</hijack>

I see, the only thing you are interesting in post count then, as you obviously do not care that your posting lacked relevant content. Ah, no you are the one always arguing for more signal and less noise in the forum, yet you only added noise to this one...
        But then it seems you also do not grasp soccer rules (assuming your "own goal" comment was modeled on soccer)...
        Really give it up, in this thread you are "sunk" there is amount of hair-splitting that will give you back the "lead". You lost this one, not accepting that loss is not going to change the fact that you lost, it does illustrate you relation ship with "reality" somewhat though wink

Best Regards
        M.

<hijack>
own goal
</hijack>

Max Hopper wrote:

<hijack>
own goal
</hijack>

Okay, so again you fail at delivering sufficient words to make your posts unambiguously understandable; this pattern of non-communication might be what you consider "your personal style", but really it is weak way of hedging your bets. For any possible exgesis of your laconic one-worders you have always "plausible deniability". Be that as it may...

So since you seem to understand the rules behind own goals (I assume you actually read the link you posted) the only reasonable explanation is that you consider your argument that "Max Hopper has provided resources to the OPer"* to be your own goal, to which I heartily concur.
        But on the unrealistic chance that you consider your postings that basically tell openwrt users basically "take you question to another forum" to be worthwhile resources you would like to have had when your experience was at what you perceive the poster level to be then let me share a resource with you. Max be "so kind to help reduce the forum SNR and" post "support elsewhere". You are not helping the forum SNR at all with what I like to call your quixotic quest for forum purity according to Max Hopper; and your not helping improve the forum atmosphere unless you start to be a bit more forgiving...
        But as I said you lost this one. So count your losses, lick your wounds, and move on, really...
        Unless you truly deliver a zinger of a next reply, I intend to leave you the last words in this thread. I would be pleasantly surprised if these would be "I came to the conclusion that the forum could do with less hostility and zealotry and more friendly and firm guidance, and I intend to help improve the forums further"... as  I still believe you could could consistently be a great resource in the forum, if you wanted to...

*) I have to admit, your awkward reference to yourself in the 3rd person, does allow for easier quoting, so thanks for that.

Best Regards
        M.

<hijack>
@moeller0 - you quoted a post which included the references and yet failed to enumerate it.

Awkward, ehh?
</hijack>

Max Hopper wrote:

<hijack>
@moeller0 - you quoted a post which included the references and yet failed to enumerate it.

Awkward, ehh?
</hijack>

I expected a zinger and all you got is this non-sequitur that even lacks the quote showing what you are referring to. You truly fail at communications 101 wink I am willing to continue our little discussion (if it does nothing else it keeps you busy, so you leave other posts alone) if and only if you start to give me the courtesy to actually fully forming your arguments and rationale into complete sentences with sufficient context. Otherwise just "give up" you lost this argument. Finally, baring either a real come-back zinger or an understandable formulated argument I am done with this thread...

Best Regards
        M.

moeller0 wrote:
Max Hopper wrote:

Irrelevant.

Max we realize this seems irrelevant to you, but guess what, as far as we know this is not your forum, so why do you believe anybody is interested in your (often flawed) assessment of suitability to the forum?
        For many problems you deem irrelevant the actual issue often is based on the differences between more usual linux distributions and openwrt, so there is good reason for many posters to believe this forum might be able to help them. If you feel they are wrong, simply ignore them and do NOT bother to post a (hostile) response. Trust me, the forum will be a better place if you follow that advice, you certainly are quite busy increasing the noise in the forum. You might say, so am I, the big difference is that I am willing to accepts a little more noise and do not constantly pester people by telling them my opinion on their posts. On the contrary, I typically reserve such judgement on you quixotic quest to shape this forum after your personal preferences wink, but I digress...


Best Regards
        M.


Excellent , I could not have done better !



For those who are dealing with similar problems , I try to explain what solved in my case:

At first , all the commands I posted were correct , including the detection of the modem Minicom .

My problem was not in Minicom itself but in the way the OpenWRT kept the serial connection of the modem to the mobile network .

Using the following command in the SSH ( Putty ) and specifying the correct serial port was possible to make use of the service (check the signal and connects to the network ) .


gcom -d /dev/ttyUSB1

After that , start Minicom ...

If all goes well , your modem is now connected to the mobile network and able to use the messaging service.

My language is not English , so if there are errors in the writing blame Google translator smile

(Last edited by murilo.xd on 13 Jun 2016, 05:30)

The discussion might have continued from here.