LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 02-06-2020, 01:59 AM   #1
EHSANLINUX
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 13

Rep: Reputation: Disabled
Connecting 3g dongle usb to raspberry pi


I have an 3g dongle usm modem,I tested on windows works correctly
I tested on raspberry pi,using sakis3g software i got an error like
Modem responded "ERROR" while checking for PIN
I searched in google and try almost solutions but it does not work
I tested sending sms using gammu on raspberry pi and works correctly
sends sms without any error
but only internet connection has error
 
Old 02-06-2020, 02:31 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,400
Blog Entries: 9

Rep: Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655
It's been a while...
https://wiki.archlinux.org/index.php/USB_3G_Modem
 
Old 02-06-2020, 03:40 AM   #3
EHSANLINUX
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 13

Original Poster
Rep: Reputation: Disabled
reply

tnx for your solution
I tried this and i am sure my SIM does not have PIN but when i try to get internet connection by sakis3g i got error like
"Modem Responded "ERROR" While Checking For Pin"
I read that article in your post and i checked every possible issue but unfortunately got that error again
 
Old 02-07-2020, 01:28 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,400
Blog Entries: 9

Rep: Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655
Then you have to give us more information:
  • distro
  • configuration: what you did to get it to work, packages installed etc.
  • commands issued
  • full output received (*)

(*) use CODE tags for that, see my signature.
 
Old 02-18-2020, 01:17 AM   #5
EHSANLINUX
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 13

Original Poster
Rep: Reputation: Disabled
sakis3g

HTTP request sent, awaiting response... 200 OK
Length: 200713 (196K) [application/octet-stream]
Saving to: ‘sakis3g.tar.gz’

sakis3g.tar.gz 100%[===================>] 196.01K 165KB/s in 1.2s

2020-02-18 06:12:38 (165 KB/s) - ‘sakis3g.tar.gz’ saved [200713/200713]

root@ehsan:~# tar -zxvf sakis3g.tar.gz
sakis3g
root@ehsan:~# chmod +x sakis3g
root@ehsan:~# lsusb
Bus 001 Device 005: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@ehsan:~#
root@ehsan:~#
root@ehsan:~#
root@ehsan:~# ./sakis3g connect
Modem responded "ERROR" while checking for PIN.
Failed to connect.
root@ehsan:~#
----------------------------------------------------
ubuntu minimal:
Linux ehsan 4.15.0-76-generic #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
----------------------------------------------------
installed only:
ppp
usb_modeswitch
----------------------------------------------------
root@ehsan:~# dmesg | grep tty
[ 0.004000] console [tty0] enabled
[ 431.289811] usb 1-2.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 431.290037] usb 1-2.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 431.290310] usb 1-2.1: GSM modem (1-port) converter now attached to ttyUSB2

Last edited by EHSANLINUX; 02-18-2020 at 01:21 AM.
 
Old 02-19-2020, 07:22 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,400
Blog Entries: 9

Rep: Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655
Does it have to be sakis3g?
https://duckduckgo.com/?kae=d&kp=-1&...for+PIN&ia=web
Doesn't look too promising.

What about NetworkManager/ModemManager? Or Wvdial?
Or like this: https://wiki.archlinux.org/index.php/USB_3G_Modem
 
Old 02-19-2020, 07:45 AM   #7
EHSANLINUX
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 13

Original Poster
Rep: Reputation: Disabled
3gdongle

I used wvdial but i got error again
Attached Thumbnails
Click image for larger version

Name:	test.PNG
Views:	7
Size:	134.4 KB
ID:	32584  
 
Old 02-19-2020, 08:22 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,400
Blog Entries: 9

Rep: Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655
^ you're not trying very hard, are you?
 
1 members found this post helpful.
Old 02-19-2020, 08:31 AM   #9
EHSANLINUX
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 13

Original Poster
Rep: Reputation: Disabled
why
I try 10000 time
and every time gets error
I am frustrated for dongle 3g huawei however it does work on windows very nice
I used dlink dongle accessed to internet but sms function does not work
 
  


Reply

Tags
iot, raspberrry pi


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
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 01:03 PM
3g dongle connected via ppp daemon unable to send AT commnads to the dongle jarzi Linux - Networking 4 08-07-2015 05:45 AM
how to connect to internet via usb dongle (MPS internet dongle) on Fedora 16 O.S danibhai Linux - Newbie 1 07-30-2012 12:03 PM
Wireless G USB Dongle not connecting to my wireless canitocool Linux - Networking 3 10-25-2010 07:29 PM
Problem with connecting USB Bluetooth Dongle to icecube (MPC5200) kannath Debian 1 02-09-2007 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration