RE: Unable to get a usable connection to send and receive SMS with a wwan device

"Kamal Gendi" <[email protected]> Tue, 14 Apr 2020 00:01:07 +1000
Newsgroups gmane.linux.drivers.gammu
Message-ID <SY2PR01MB24255A6ADBCC3366404B3A21C5DD0@SY2PR01MB2425.ausprd01.prod.outlook.com>
--===============8037843516692813116==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0001_01D611EF.D17BDD60"
Content-Language: en-au

------=_NextPart_000_0001_01D611EF.D17BDD60
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hi There,

=20

Thanks for the link. I had a good read and followed its suggestions but =
got nowhere.

=20

For some strange reason, all the suggestions mentioned 192.168.8.1 as =
the IP address of the USB stick when mine is 169.254.49.220.

=20

The other page mentioned assumed that the USB stick has been recognised =
by the system as eth1 when mine was recognised as wwan.

=20

I am prepared to use a shell or a python script to be able to send and =
receive SMS with my Huawei K4606 USB stick, if I can manage to get to it =
on Raspberry Pi Linux.

=20

Any other ideas?

Cheers,

Kamal

=20

From: mail public [mailto:[email protected]]=20
Sent: Sunday, 12 April 2020 01:48
To: Gammu and Wammu related discussions =
<[email protected]>
Subject: Re: Unable to get a usable connection to send and receive SMS =
with a wwan device

=20

Hi Kamal,

=20

I tried also with Gammu, but I'm really sorry I didn't success as =
expected.
So I take another way with Rest API, and it works since 2017 without any =
problem.
I am able to receive and send SMS.

see screenshot attached.
The webpage which gave me the right way to go is:
https://stackoverflow.com/questions/38016641/sending-and-receiving-sms-by=
-command-line-with-huawei-e3131-and-hilink-on-a-debi

Hope this can help you

=20

=20

On Sat, Apr 11, 2020 at 5:33 PM Kamal Gendi <[email protected] =
<mailto:[email protected]> > wrote:

I have been trying to SMS with my Raspberry Pi using a Vodafone (Huawei) =
K4606 USB stick with a vendor ID of 12D1 and a product ID of 1F19. It =
works fine, using the provided Vodafone software, on a Windows box.

I found so many Raspberry Pi tutorials on the subject and all of them =
used a USB stick that creates one or more ttyUSB devices (with or =
without usb_modeswitch) that allows a user to issue AT commands, either =
directly with the CLI on a terminal screen or a shell script, or through =
the use of a utility such as Gammu. None of the resources I found talked =
about using wwan to send and receive SMS, which is what my K4606 stick =
creates.

I am not interested in making phone calls, finding my GPS coordinates, =
surfing the web or anything else at present. Only the sending and =
receiving of text messages.

I did set the Port to(0x12d1:0x1f19) with every possible connection =
available and also changed the port to (wwan0), again with every =
possible connection available in gammu-config screen, rebooting and =
testing every time, but never got anywhere.

I am trying to test it with a very simple:

echo "Hello World!" | sudo gammu --sendsms TEXT +61435055555

Depending on the Gammu connection selected, the errors returned are =
either:

Error opening device, it doesn=E2=80=99t exist.

Unknown connection type string. Check config file.

Error opening device. Some hardware not connected/wrongly configured.

Bluetooth configuration requires channel option.

Desired functionality has been disabled on compile time.

Error opening device. Unknown, busy or no permissions.

I just do not know where to go from here and am hoping that someone may =
be able to give me some guidance.

=20

_______________________________________________
Gammu-users mailing list - =
https://lists.sourceforge.net/lists/listinfo/gammu-users


------=_NextPart_000_0001_01D611EF.D17BDD60
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"><m=
eta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"><sty=
le><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.gmail-m-6300108868932329684codetext
	{mso-style-name:gmail-m_-6300108868932329684codetext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3D"EN-AU" link=3D"blue"=
 vlink=3D"purple"><div class=3D"WordSection1"><p class=3D"MsoNormal"><span =
style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:=
#1F497D;mso-fareast-language:EN-US">Hi There,<o:p></o:p></span></p><p class=
=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&qu=
ot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p><=
/span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-famil=
y:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">=
Thanks for the link. I had a good read and followed its suggestions but got=
 nowhere.<o:p></o:p></span></p><p class=3D"MsoNormal"><span style=3D"font-s=
ize:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-far=
east-language:EN-US"><o:p>&nbsp;</o:p></span></p><p class=3D"MsoNormal"><sp=
an style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;col=
or:#1F497D;mso-fareast-language:EN-US">For some strange reason, all the sug=
gestions mentioned 192.168.8.1 as the IP address of the USB stick when mine=
 is 169.254.49.220.<o:p></o:p></span></p><p class=3D"MsoNormal"><span style=
=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F49=
7D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p><p class=3D"MsoN=
ormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans=
-serif;color:#1F497D;mso-fareast-language:EN-US">The other page mentioned a=
ssumed that the USB stick has been recognised by the system as eth1 when mi=
ne was recognised as wwan.<o:p></o:p></span></p><p class=3D"MsoNormal"><spa=
n style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;colo=
r:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p><p class=
=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&qu=
ot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I am prepared to u=
se a shell or a python script to be able to send and receive SMS with my Hu=
awei K4606 USB stick, if I can manage to get to it on Raspberry Pi Linux.<o=
:p></o:p></span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;=
font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-langua=
ge:EN-US"><o:p>&nbsp;</o:p></span></p><p class=3D"MsoNormal"><span style=3D=
"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;=
mso-fareast-language:EN-US">Any other ideas?<o:p></o:p></span></p><p class=
=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&qu=
ot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p>=
</span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-fami=
ly:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"=
>Kamal<o:p></o:p></span></p><p class=3D"MsoNormal"><span style=3D"font-size=
:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareas=
t-language:EN-US"><o:p>&nbsp;</o:p></span></p><p class=3D"MsoNormal"><b><sp=
an lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;=
,sans-serif">From:</span></b><span lang=3D"EN-US" style=3D"font-size:11.0pt=
;font-family:&quot;Calibri&quot;,sans-serif"> mail public [mailto:mailpubli=
[email protected]] <br><b>Sent:</b> Sunday, 12 April 2020 01:48<br><b>To:</b> G=
ammu and Wammu related discussions &lt;[email protected]&gt=
;<br><b>Subject:</b> Re: Unable to get a usable connection to send and rece=
ive SMS with a wwan device<o:p></o:p></span></p><p class=3D"MsoNormal"><o:p=
>&nbsp;</o:p></p><div><div><p class=3D"MsoNormal">Hi Kamal,<o:p></o:p></p><=
div><p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p></div><div><p class=3D"MsoN=
ormal">I tried also with Gammu, but I'm really sorry I didn't success&nbsp;=
as expected.<br>So I take another way with Rest API, and it works since 201=
7 without any problem.<br>I am able to receive and send SMS.<o:p></o:p></p>=
</div><div><p class=3D"MsoNormal">see screenshot attached.<br>The webpage w=
hich gave me the right way to go is:<br><a href=3D"https://stackoverflow.co=
m/questions/38016641/sending-and-receiving-sms-by-command-line-with-huawei-=
e3131-and-hilink-on-a-debi">https://stackoverflow.com/questions/38016641/se=
nding-and-receiving-sms-by-command-line-with-huawei-e3131-and-hilink-on-a-d=
ebi</a><o:p></o:p></p></div><div><p class=3D"MsoNormal">Hope this can help =
you<o:p></o:p></p></div><div><p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p></=
div></div></div><p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p><div><div><p cl=
ass=3D"MsoNormal">On Sat, Apr 11, 2020 at 5:33 PM Kamal Gendi &lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<o:p></o:p>=
</p></div><blockquote style=3D"border:none;border-left:solid #CCCCCC 1.0pt;=
padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p =
class=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-margin-bottom-alt:auto;te=
xt-align:justify">I have been trying to SMS with my Raspberry Pi using a Vo=
dafone (Huawei) K4606 USB stick with a vendor ID of 12D1 and a product ID o=
f 1F19. It works fine, using the provided Vodafone software, on a Windows b=
ox.<o:p></o:p></p><p class=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-marg=
in-bottom-alt:auto;text-align:justify">I found so many Raspberry Pi tutoria=
ls on the subject and all of them used a USB stick that creates one or more=
 ttyUSB devices (with or without usb_modeswitch) that allows a user to issu=
e AT commands, either directly with the CLI on a terminal screen or a shell=
 script, or through the use of a utility such as Gammu. None of the resourc=
es I found talked about using wwan to send and receive SMS, which is what m=
y K4606 stick creates.<o:p></o:p></p><p class=3D"MsoNormal" style=3D"margin=
-top:6.0pt;mso-margin-bottom-alt:auto;text-align:justify">I am not interest=
ed in making phone calls, finding my GPS coordinates, surfing the web or an=
ything else at present. Only the sending and receiving of text messages.<o:=
p></o:p></p><p class=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-margin-bot=
tom-alt:auto;text-align:justify">I did set the Port to(0x12d1:0x1f19) with =
every possible connection available and also changed the port to (wwan0), a=
gain with every possible connection available in gammu-config screen, reboo=
ting and testing every time, but never got anywhere.<o:p></o:p></p><p class=
=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-margin-bottom-alt:auto;text-al=
ign:justify">I am trying to test it with a very simple:<o:p></o:p></p><p cl=
ass=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-margin-bottom-alt:auto;text=
-align:justify">echo &quot;Hello World!&quot; | sudo gammu --sendsms TEXT <=
span class=3D"gmail-m-6300108868932329684codetext">&#43;61435055555</span><=
o:p></o:p></p><p class=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-margin-b=
ottom-alt:auto;text-align:justify">Depending on the Gammu connection select=
ed, the errors returned are either:<o:p></o:p></p><p class=3D"MsoNormal" st=
yle=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:11.35=
pt;text-align:justify"><span style=3D"font-size:10.0pt;font-family:&quot;Co=
urier New&quot;">Error opening device, it doesn=E2=80=99t exist.</span><o:p=
></o:p></p><p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-marg=
in-bottom-alt:auto;margin-left:11.35pt;text-align:justify"><span style=3D"f=
ont-size:10.0pt;font-family:&quot;Courier New&quot;">Unknown connection typ=
e string. Check config file.</span><o:p></o:p></p><p class=3D"MsoNormal" st=
yle=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:11.35=
pt;text-align:justify"><span style=3D"font-size:10.0pt;font-family:&quot;Co=
urier New&quot;">Error opening device. Some hardware not connected/wrongly =
configured.</span><o:p></o:p></p><p class=3D"MsoNormal" style=3D"mso-margin=
-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:11.35pt;text-align:jus=
tify"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">=
Bluetooth configuration requires channel option.</span><o:p></o:p></p><p cl=
ass=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:au=
to;margin-left:11.35pt;text-align:justify"><span style=3D"font-size:10.0pt;=
font-family:&quot;Courier New&quot;">Desired functionality has been disable=
d on compile time.</span><o:p></o:p></p><p class=3D"MsoNormal" style=3D"mso=
-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:11.35pt;text-al=
ign:justify"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&=
quot;">Error opening device. Unknown, busy or no permissions.</span><o:p></=
o:p></p><p class=3D"MsoNormal" style=3D"margin-top:6.0pt;mso-margin-bottom-=
alt:auto;text-align:justify">I just do not know where to go from here and a=
m hoping that someone may be able to give me some guidance.<o:p></o:p></p><=
p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-al=
t:auto"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,san=
s-serif">&nbsp;</span><o:p></o:p></p></div></div><p class=3D"MsoNormal">___=
____________________________________________<br>Gammu-users mailing list - =
<a href=3D"https://lists.sourceforge.net/lists/listinfo/gammu-users" target=
=3D"_blank">https://lists.sourceforge.net/lists/listinfo/gammu-users</a><o:=
p></o:p></p></blockquote></div></div></body></html>=

------=_NextPart_000_0001_01D611EF.D17BDD60--


--===============8037843516692813116==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8037843516692813116==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users

--===============8037843516692813116==--