Re: Making GPRS/pppd connection.

2007-09-18 Thread Bartlomiej Zdanowski


I managed to connect and it's very nice and stable. All with help of 
SettingsGUI by Kriss.


--
*Bartlomiej Zdanowski*
Programmer
Product Research  Development Department
AutoGuard S.A.

Place of registration: Regional Court for the Capital City of Warsaw
Registration no.: 287629
Share capital: 1 059 000 PLN
Polish VAT and tax ID no.: PL1132219747
Omulewska 27 street
04-128 Warsaw
Poland
phone +48 22 611 69 23
www.autoguard.pl http://www.autoguard.pl
___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Making GPRS/pppd connection.

2007-09-10 Thread Bartlomiej Zdanowski

Hello.
Henry, what OM major version do you have? 2007.1 or 2007.2? Maybe you 
know your build number?
I did some upgrade from openmoko repository and there are some 
differences in connecting progress (more AT commands passes) but still I 
have


[LCP ConfReq id=0x1 asyncmap 0x0 magic 0x309ee493 pcomp accomp]
tcsetattr: Invalid argument (line 964)


Henry Law pisze:


You should see some AT command in both file. May be try add the
debug option for pppd and search for AT in /var/log/message

There are AT commands which I wrote to connection sripts but no clue there.


Somebody has any idea?
--
*Bartlomiej Zdanowski*
Programmer
Product Research  Development Department
AutoGuard S.A.

Place of registration: Regional Court for the Capital City of Warsaw
Registration no.: 287629
Share capital: 1 059 000 PLN
Polish VAT and tax ID no.: PL1132219747
Omulewska 27 street
04-128 Warsaw
Poland
phone +48 22 611 69 23
www.autoguard.pl http://www.autoguard.pl
___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Making GPRS/pppd connection.

2007-09-09 Thread Henry Law



Bartlomiej Zdanowski wrote:

I lost my hope... Thank you for response.

Henry Law pisze:

My neo can use GPRS. But need to stop gsmd first.

I put all the AT command in to chatscript and try pon gprs. ppp0 appear
after a while. I am using PEOPLES in HongKong and the SIM card does not
have a PIN.

Could you send me your scripts?

Did you see any AT command log in /tmp/gsmd.log or /var/log/message?

I didn't search there. What should I search for?


You should see some AT command in both file. May be try add the
debug option for pppd and search for AT in /var/log/message



Best regards,




___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Henry
TIMEOUT  22
ABORTERROR
ABORTBUSY
ABORTNO CARRIER
ABORTVOICE
ABORTNO DIALTONE
# reset
   ATZ
# disable echo
OK   ATE0
# enable modem function
OK   AT+CFUN=1
# register with GSM network
OK   AT+COPS
# gprs init
OK   AT+CGDCONT=1,IP,peoples.net,0.0.0.0,0,0
OK   AT+CGDATA=PPP,1
# File:
# gprs
#
# Description:
# This file holds the pppd options for GPRS

# To give some debug info (could be provided on command line too)
debug

# To keep pppd output on the terminal (could be provided on command line too)
#nodetach

# Serial device to which the GPRS modem is connected
/dev/ttySAC0 # Raw serial on Neo1973

# Serial port line speed
115200

# use hardware flow control
crtscts # serial cables etc.
#nocrtscts # IrDA

# time between retries
holdoff 3

# Connect script
#connect /etc/ppp/peers/gprs-connect-chat
connect /usr/sbin/chat -v -f /etc/chatscripts/gprs

# Disconnect script
#disconnect /etc/ppp/peers/gprs-disconnect-chat
disconnect /usr/sbin/chat -v -f /etc/chatscripts/gprs-disconnect

# IP addresses:
# - accept peers idea of our local address and set address peer as 10.0.0.1
# (any address would do, since IPCP gives 0.0.0.0 to it)
# - if you use the 10. network at home or something and pppd rejects it,
# change the address to something else
#:10.0.0.1

# pppd must not propose any IP address to the peer!
noipdefault

# Accept peers idea of our local address
ipcp-accept-local

# No ppp compression
novj
novjccomp

# Add default route
defaultroute

# Replace any other default route for the time of the connection:
replacedefaultroute

# very long timeouts (unwise?)
lcp-echo-interval 30
lcp-echo-failure 300

local
usepeerdns
connect-delay 5000
noproxyarp

# don't require the other end to authenticate to us
noauth
persist

# username to use for authentication, should match client in 
/etc/ppp/{chap,pap}-secrets
user PTC
___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Making GPRS/pppd connection.

2007-09-07 Thread Bartlomiej Zdanowski

I lost my hope... Thank you for response.

Henry Law pisze:

My neo can use GPRS. But need to stop gsmd first.

I put all the AT command in to chatscript and try pon gprs. ppp0 appear
after a while. I am using PEOPLES in HongKong and the SIM card does not
have a PIN.

Could you send me your scripts?

Did you see any AT command log in /tmp/gsmd.log or /var/log/message?

I didn't search there. What should I search for?

Best regards,
--
*Bartlomiej Zdanowski*
Programmer
Product Research  Development Department
AutoGuard S.A.

Place of registration: Regional Court for the Capital City of Warsaw
Registration no.: 287629
Share capital: 1 059 000 PLN
Polish VAT and tax ID no.: PL1132219747
Omulewska 27 street
04-128 Warsaw
Poland
phone +48 22 611 69 23
www.autoguard.pl http://www.autoguard.pl
___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Making GPRS/pppd connection.

2007-09-07 Thread Henry Law

My neo can use GPRS. But need to stop gsmd first.

I put all the AT command in to chatscript and try pon gprs. ppp0 appear
after a while. I am using PEOPLES in HongKong and the SIM card does not
have a PIN.

Did you see any AT command log in /tmp/gsmd.log or /var/log/message?

Henry

Bartlomiej Zdanowski AutoGuard Ltd. wrote:

Hi Community.

Did anyone make successful GPRS connection according to the wiki? I got 
some errors after a few first AT commands. Enabling debug with


pppd debug call gprs

pppd shows series of lines

[LCP ConfReq id=0x1 asyncmap 0x0 magic 0x309ee493 pcomp accomp]

and then

tcsetattr: Invalid argument (line 964)

pppd hangups and no connections is made. I tried to stop gsmd, restart 
gsmd, kill dialer and other software which might be disturbing gsm but 
no success. I have a card with pin checking but I added

AT+CPIN?
AT+CPIN=mypin
and it works elsewhere correcly. Minor information is that I'm using 
Orange PL (polish) sim card. I didn't try other cards.

Does anybody know how to run this machinery? Please help.




___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Making GPRS/pppd connection.

2007-09-05 Thread Bartlomiej Zdanowski AutoGuard Ltd.

Hi Community.

Did anyone make successful GPRS connection according to the wiki? I got 
some errors after a few first AT commands. Enabling debug with


pppd debug call gprs

pppd shows series of lines

[LCP ConfReq id=0x1 asyncmap 0x0 magic 0x309ee493 pcomp accomp]

and then

tcsetattr: Invalid argument (line 964)

pppd hangups and no connections is made. I tried to stop gsmd, restart 
gsmd, kill dialer and other software which might be disturbing gsm but 
no success. I have a card with pin checking but I added

AT+CPIN?
AT+CPIN=mypin
and it works elsewhere correcly. Minor information is that I'm using 
Orange PL (polish) sim card. I didn't try other cards.

Does anybody know how to run this machinery? Please help.

--
*Bartlomiej Zdanowski*
Programmer
Product Research  Development Department
AutoGuard S.A.

Place of registration: Regional Court for the Capital City of Warsaw
Registration no.: 287629
Share capital: 1 059 000 PLN
Polish VAT and tax ID no.: PL1132219747
Omulewska 27 street
04-128 Warsaw
Poland
phone +48 22 611 69 23
www.autoguard.pl http://www.autoguard.pl
___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community