Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 23 Sep 2017, 23:28
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
How to use Nokia mobile phone as USB modem?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
fat-jack

Joined: 18 Mar 2007
Posts: 5

PostPosted: Sun 18 Mar 2007, 06:07    Post subject:  How to use Nokia mobile phone as USB modem?
Subject description: (Using cdc-acm in Puppy 2.14)
 

puppy is good but after several hours searching & trial I can use bluetooth intermittant - works about 1 in 5 times. can script USB cable connection using usbserial but would like to use cdc-acm as used in other distros. so how do i get puppy 2.14 to use cdc-acm to connect my nokia 3g mobile automatically so it can be found as a modem by wvdial.
Back to top
View user's profile Send private message 
mbutts


Joined: 11 Nov 2006
Posts: 231
Location: sitn on an iceburg waiting for my next meal to swim by.

PostPosted: Sun 18 Mar 2007, 17:54    Post subject:  

im curious what cellular provider you are using. i have a kyocera phone that can be used as a modem for g3 on alltel with the audio / mic plug going into usb. was hoping to try to figure out how to use the windows drivers for my connection. that would almost free me from windows use completely.
_________________
Penguin, the OTHER white meat.

Back to top
View user's profile Send private message 
mike webb

Joined: 18 Mar 2007
Posts: 16

PostPosted: Sun 18 Mar 2007, 22:21    Post subject:  

got most of this info from sling-shot, he got me 99% of the way.

go to /etc and ether create or edit a file called wvdial.conf
place the following in the file.
[Modem0]
Modem= /dev/ttyACM0
Baud= 115200
SetVolume= 0
DialCommand=ATDT
Init=ATZ
Init2=AT+CRM=1;$LGPKT=3
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM0
FlowControl= Hardware(CRTSCTS)
[Dialer Tata]
Username = 9999999999@alltel.net (your phone number + @alltel.net)
Password = alltel (password for alltel)
Phone = #777
Stupid Mode = 1
Inherits = Modem0
close and save file.
open file /etc/ppp/options and edit so that it contains:
lock
noauth
noipdefault
usepeerdns
save and close file.
open terminal and type
mknod /dev/ttyACM0 c 166 0
then
chmod go+w /dev/ttyACM0
then
mknod /dev/modem c 166 0

okay everything should be ready except i remember their was some missing file somewhere where i had to go make a empty file. don't remember what the name was now. later when you try these steps and it fails because it can't find a certain file get back to me and let me know what the name is okay ??

first thing we want to do is get on the internet, latter we will worry about making it all automatic.
reboot.

type these three commands from you terminal.
modprobe cdc-acm
mknod /dev/modem c 166 0
wvdial tata
you will need to type these three commands each time after you reboot.
if these instructions work let me know if not, well get back to me with the error messages okay??
saving all this up for a HOW-TO.
Back to top
View user's profile Send private message 
fat-jack

Joined: 18 Mar 2007
Posts: 5

PostPosted: Mon 19 Mar 2007, 02:09    Post subject:  post subject
Subject description: thanks
 

thanks for the pointers.

i have now a modified script of your info and several others as follows.

create a file called in your my-applications usb-cable (in my case) with the following in it:

#!/bin/sh

mknod /dev/ttyACM0 c 166 0

chmod go+w /dev/ttyACM0

modprobe cdc-acm

rxvt -bg "light yellow" -geometry 134x20 -title GPRS_connection_tail -e tail -n 20 -f /var/log/messages|grep info &

pppd call provider

gxmessage -center -bg "light green" -title "PPPD calling..." -buttons "EXIT" "PPPD calling...
press EXIT for exiting GPRS connection"

killall pppd
kill $(ps|grep GPRS_co)

exit

this file needs to be executable so change the permissions. as can be seen in the above script is relies on other files as it calls provider.
so in /etc/ppp/peers create the provider script to contain the following:

noauth
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/provider"
/dev/ttyACM0
115200
defaultroute
noipdefault
user 'me'
# usepeerdns

you will need to change the 'me' in above script to your isp login username. again this calls another file so create the /etc/ppp/chatscripts folder if it does not exist and then create the provider file in it with the following in the file:

ABORT ERROR
ABORT RING
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
REPORT CONNECT
"" "ATZ"
OK AT+CGDCONT=1,"IP","wild.internet"
OK ATDT*99#
TIMEOUT 60
CONNECT \c

now you will need to change the "wild.internet" above to what ever apn your access requires and you may need to change the number dialed from *99# to what you need to dial.
i suggest changing the file names to say your isp. if you do also remember to change them in the scripts above.

this automates the connection providing the mobile is connected before running the usb-cable script, which provides a way fo ending the connection using an EXIT button.

now all i need to do is set the dns as my isp provides dns servers that fail sometimes so they ask you to set other dns addresses. i have not yet found a good solution to this so any pointers to setting dns would be useful.
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 12528
Location: Mer méditerrannée (1 kms°)

PostPosted: Fri 10 Jun 2016, 02:04    Post subject: Nokia C2  

Bookmarked. New technologies ?
That would mean everywhere i can connect my computer to the web. Why are these topics abandoned Question

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
nic007


Joined: 13 Nov 2011
Posts: 2176
Location: Cradle of Humankind

PostPosted: Fri 10 Jun 2016, 03:30    Post subject:  

I use pupdial to setup the connection. Once setup, I run wvdialshell directly . See http://murga-linux.com/puppy/viewtopic.php?t=105455[/url]
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0495s ][ Queries: 12 (0.0054s) ][ GZIP on ]