[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gprs T200



Hei,

kiitoksia tiedoista. Olen nyt saanut ongelmaa osittain selvitetyä.

1)
Olen koioinut gprs scriptit ja chat-scriptit verkosta, ja yrittänyt niitä
sitten muuntaa toimiviksi. Kyseessä on Mikko Rapelin gprs.tar.gz.

2)
Kun käytän seuraavaa fileä komennossa 'pppd call gprs', yhteys alkoi
muodostua.

3)
Alla on huomionarvoista, että jouduin laittamaan nopeuden sarjaportille:

________________________________________
# Serial port line speed
9600	# fast enough
# 57600	# perhaps usefull with IrDA
_________________________________________

hyvin alas. Muuten ei kertakaikkiaan tapahtunut mitään.

4)
Mitähän tuo vaikuttaa yhteyden nopeuteen, ja mitähän sille asialle voisi
tehdä?


5)
Tässä se gprs:

____________________________

# File:
# gprs
#
# Description:
# Serial cable, IrDA and Bluetooth pppd options for GPRS phones

# Keep pppd attached to the terminal:
# Comment this to get daemon mode pppd.
nodetach

# Debug info from pppd:
# Comment this off, if you don't need more info.
debug

# Show password in debug messages
hide-password
noauth

# Connect chat script:
# uses AT commands to setup and 'call' the GPRS connection.
connect /etc/ppp/peers/gprs-connect-chat
# connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs-connect-chat"
# Disconnect script:
# AT commands used to 'hangup' the GPRS connection.
disconnect /etc/ppp/peers/gprs-disconnect-chat

# Serial device to which the GPRS phone is connected:
# /dev/ttyS0 for serial port (COM1 in Windows), /dev/ircomm0 for IrDA and
# /dev/ttyUB0 for Bluetooth (Bluez with rfcomm running).
# /dev/ttyS0	# serial port one
 /dev/ttyS1	# serial port two
#/dev/ircomm0	# IrDA serial port one
#/dev/rfcomm0	# Bluetooth serial port one

# Serial port line speed
9600	# fast enough (???)
# 57600	# perhaps usefull with IrDA

# Hardware flow control:
# Use hardware flow control with cable and Bluetooth but not with IrDA.
crtscts  # serial cable and Bluetooth
#nocrtscts # IrDA

# Ignore carrier detect signal from the modem
  local

# 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

# Add the ppp interface as default route to the IP routing table
defaultroute

# DNS servers from the phone:
# some phones support this, some don't.
# usepeerdns

# ppp compression:
# ppp compression may be used between the phone and the pppd, but the
# serial connection is usually not the bottleneck in GPRS, so the
# compression is useless (and with some phones need to disabled before
# the LCP negotiations succeed).
novj
nobsdcomp
novjccomp
nopcomp
noaccomp

# The phone is not required to authenticate:
noauth

# Username and password:
# If username and password are required by the APN, put here the username
# and put the username-password combination to the secrets file:
# /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP
# authentication. See pppd man pages for details.
# Example, Radiolinja operator pap-secrets:
#  "         *       "internet"	*
 user hv

# Asyncmap:
# some phones may require this option.
asyncmap 0xa0000

# No magic:
# some phones may require this option.
nomagic

# Require PAP authentication:
# some phones may require this option.
# require-pap

__________________
__________________

6)
Ja monien kokeilujen jälkeen chat-script näyttää seuraavalta.

En usko, että rivi

T&F<cr>,AT<cr>,AT V1E0S0=0&D2&C1<cr>,AT
+CMEE=1<cr>,AT+CGDCONT=1,"IP","internet","",0,0	\

on oikea, mutta nyt yhteys kuitenkin muodostui. Kun olin muuttanut sen
sarjaportin nopeuden.

Kopioin osan "T&F<cr>,AT<cr>,AT V1E0S0=0&D2&C1<cr>,AT +CMEE=1<cr>"
windowsin alustuskomennoista.

_________
_________


#!/bin/sh
#
# File:
# chat-gprs-connect
#
# Description:
# chat script to open Sonera GPRS service with GPRS phones. If ppp
# negotiation stalls, try restarting the phone. To try with other GPRS
# operator setting, change the PDP contex setting. The settings work with
# most Ericsson models, but Nokia 8310 and 30 do not support QoS parameters
# with AT commands, so just delete those lines and it'll work.
#
# Set PDP context CID=1, protocol=IP, APN=internet:
# AT+CGDCONT=1,"IP","internet","",0,0
#
# Set CID=1 QoS requirements from the network, not supported by Nokia:
# AT+CGQREQ=1,0,0,0,0,0
#
# Set CID=1 minimum acceptable QoS parameters, not supported by Nokia:
# AT+CGQMIN=1,0,0,0,0,0
#
# 'Call' CID=1 (activate PDP context one, perform GPRS attach):
# ATD*99***1#
#
# Some phones use this dial string to start GPRS connection:
# ATD*99#
#
# The actual chat script:
exec chat 						\
	TIMEOUT		5				\
	ECHO 		ON				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nERROR\r'			\
	ABORT		'\nNO ANSWER\r'			\
	ABORT		'\nNO CARRIER\r'		\
	ABORT		'\nNO DIALTONE\r'		\
	ABORT		'\nRINGING\r\n\r\nRINGING\r'	\
 	''		\rAT				\
	TIMEOUT		12				\
	SAY		"Press CTRL-C to close the connection at any stage!"	\
	SAY		"\ndefining PDP context...\n"	\
#                        AT&F<cr>
#                        AT V1E0S0=0&D2&C1<cr>
#                        AT +CMEE=1<cr>

        OK		ATH				\
	OK		ATE1				\

#                        AT&F<cr>
#                        AT<cr>
#                        AT V1E0S0=0&D2&C1<cr>
#                        AT +CMEE=1<cr>
AT&F<cr>,AT<cr>,AT V1E0S0=0&D2&C1<cr>,AT
+CMEE=1<cr>,AT+CGDCONT=1,"IP","internet","",0,0	\
			ATD*99***1#			\
	TIMEOUT		22				\
	SAY		"\nwaiting for connect...\n"	\
	CONNECT		''				\
	''\d\c

SAY		"\nConnected." \
	SAY		"\nIf the following ppp negotiations fail,\n"	\
	SAY		"try restarting the phone.\n"


___________________
___________________


7)
Windowsin ajurin mukana olevassa tekstissä sanotaan seuraavaa:

_________


[CONTENT]

Release notes for the SonyEricsson T200 Modem, version 1.25.7.12.

This version of the device driver that provides data
communication capabilities between the SonyEricsson(tm) T200
mobile handset and a Windows(tm) based PC.

The driver is compatible with Windows 98 SE/Me.


[TIME]

Wednesday December 11th, 2002


[AUTHOR]

These release notes was compiled by Fredrik Andersson


[DELTA]

Previous release: version 1.25.7.11, Tuesday October 9th, 2002

- A problem when using the T200 together with the USB Cable DCU-10
that sometimes caused the connection to fail for other port speeds
than 9600 bps has been fixed.


[KNOWN ISSUES]

- Upgrading the driver doesn't work. Any previous version must be
removed before this version can be installed.

- In Windows 98SE/Me there are two devices for each T200 modem in-
stalled. If you want to remove a version of the driver, both devices
must be removed. This is done automatically if you use the setup
application, Setup9x.exe.

- In Windows 98/98SE/Me the usable modem is connected to an invisible
virtual serial port.

- The Device Manager doesn't find the T200 when it does a "Scan for
hardware changes".



- Using the "Query Modem" button on the "Diagnostics" tab in the modem
properties dialog sometimes fails. It fails if used before any
connection attempt using dial-up-networking has been made. The reason
for this is that the dialog bypasses the modem driver and communicates
directly with the phone via the serial port using the default port
speed, 115200 bps currently. The phone will most likely have reset its
port speed to its default, 9600 bps. As the modem driver is bypassed,
there is no functionality for negotiating the proper speed. However,
when the "Query Modem" button is used after a dial-up-networking
connection has been used, the phone is most likely still at 115200 bps
and the function succeeds.

_________
_________


Jos sarjaportin hidas nopeus on syynä nyt edes jollain tavalla toimimaan
saamani yhteyden hitauteen, mitenhän asiaa voisi korjata?

Kokeilen kohta vielä sillä tavalla, että jätän kaikki alustuskomennot
pois... Niikuin sanot olevan mahdollista.


terveisin,

Hannu Virtanen
hvirtane@cc.jyu.fi


__________


> On Tue, Feb 11, 2003 at 01:30:15PM +0200, hvirtane@cc.jyu.fi wrote:
>> > On Mon, Feb 10, 2003 at 03:45:27PM +0200, hvirtane@cc.jyu.fi wrote:
>> >> onkohan kukaan saanut GPRS yhteyttä debianissa (tai muussa
>> linuxissa) toimimaan Ericsson T200 puhelimella?
>> >
>> > Olettaen että sinulla jo toimii GPRS tuossa puhelimessa, ja että
>> olet saanut sen onnistuneesti kytkettyä koneeseesi (siten että se
>> näkyy sarjaporttina) niin kyse on vain siitä että laitat koneesi
>> käyttämään kyseistä sarjaporttia modeemina ja soittamaan numeroon
>> *99**1# (vaikkakin ericssonin oma ohjelmisto laittaa windowsissa
>> numeroksi *98*1#, joka myöskin toimii)
>>
>


> Niissä puhelimissa on valitettavasti aika paljon eroja.
>
> Ericssonin kaikki puhelimet näyttävät käyttävän samoja modeemi
> asetuksia. (siis ei mitään asetuksia =)
>
>> Puhelimen gprs on kunnossa, se testattiin windowsissa. Puhelimeen on
>> ihan omat windows-ajurit, jotka sain puhelimen mukana. Se ei toimi
>> windowsin 'standardi modeemi' ajureilla, toisin kuin esim. Siemensin
>> puhelimet. Windowsiinkaan ajureita ei ole ollenkaan esim. win 95
>> versioon, vain 98 ja me.  Windowsissa ericssonin ajurien asennuksen
>> jälkeen se toimi ihan OK.
>
> Noista ajuriesta ei ainakaan minulla ole kokemusta, koska en ole koskaan
> asentanut mitään Ericssonin omia ajureita.. aina on menty standardi
> modeemi ajureilla.
>
>> Olen asentanut debian koneeseeni (verkosta ottamani) linuxin
>> gprs-scriptit. t200 näyttää niillä scripteillä (chat-scriptissä on
>> gprs-puhelimen alustuskomento ) täysin kuolleelta. Toisin kuin esim.
>> Siemensin puhelin.
>
> Alustuskomento? oletkos nyt aivan varma ettei sinulla ole jonkin nokian
> mallin gprs scriptejä? Nokian puhelimet kun vaativat kaiken näköistä
> asetusta ennen kuin niitä voi käyttää, Ericsson kun ei vaadi yhtään
> mitään (muuta kun tuon yllä mainitun puhelinnumeron)
>
>> Se ei vastaa yhtään enempää komentoihin kuin toisessa sarjaportissa
>> oleva hiiri. Myöskään esim. pppconfig ei tunnista ko puhelinta
>> lainkaan modeemiksi.
>
> kokeileppas jollain minicomilla tai muulla vastaavalla käyttää sitä
> puhelinta ihan normaalina modeemina, jos tuo T200 seuraa muiden
> Ericssonin puhelimien jalanjälkiä niin sen pitäisi vastata ihan
> tavallisesti AT-komentoihin sarjaportista.
>
> Terv, Sami Haahtinen
>
> --
> 			  -< Sami Haahtinen >-
>       -[ Notify immediately if you do not receive this message ]-
> 	-< 2209 3C53 D0FB 041C F7B1  F908 A9B6 F730 B83D 761C >-






Reply to: