From: Grigory Batalov <bga@altlinux.ru>
To: hardware@altlinux.ru
Subject: Re: [Hardware] IR (was: Notebook)
Date: Tue, 23 Nov 2004 01:54:37 +0300
Message-ID: <20041123015437.07baeb7f.bga@altlinux.ru> (raw)
In-Reply-To: <20041111110259.GL21187@osdn.org.ua>
[-- Attachment #1: Type: text/plain, Size: 922 bytes --]
On Thu, 11 Nov 2004 13:02:59 +0200
Michael Shigorin <mike@osdn.org.ua> wrote:
> > MS> Кому ещё интересно? (если никому -- то мне пока тоже, т.к. на
> > MS> localhost работает)
> > IMHO тем, кому нужно и кто мог настроить -- уже не нужно. А те,
> > кому ещё нужно -- слабо настроить. Так что лучше делись опытом
>
> Да опыт включал в себя atmsk.ru и, возможно, поиск по архивам.
> Не шибко более.
После выхода М2.4 поставил себе его на IBM Thinkpad A31.
Для irda сделал следующее:
$ cat /etc/modules.conf
...
options nsc-ircc io=0x2f8 irq=3 dma=3 dongle_id=0x09
pre-install nsc-ircc /bin/setserial /dev/ttyS1 uart none
alias irda0 nsc-ircc
...
$ cat /etc/sysconfig/irda
IRDA=yes
DEVICE=irda0
#DONGLE=actisys+
DISCOVERY=no
До кучи ещё вот настройки для GPRS через irda, так работает
с Питерским Мегафоном, по крайней мере.
$ sudo ls /etc/ppp/peers
gprs gprs-connect-chat gprs-disconnect-chat
(см. аттач)
[-- Attachment #2: gprs --]
[-- Type: text/plain, Size: 3776 bytes --]
# $Id: gprs,v 1.4 2004/04/28 08:40:32 mcfrisk Exp $
#
# File:
# gprs
#
# Description:
# Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones.
# See 'man pppd' for detailed option descriptions.
# Most GPRS phones don't reply to LCP echo's
lcp-echo-failure 0
lcp-echo-interval 0
# 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
show-password
# Connect script:
# scripts to initialize the GPRS modem and start the connection,
# wvdial command is for Orange SPV while other phones should work with chat
connect /etc/ppp/peers/gprs-connect-chat
#connect "/usr/bin/wvdial --chat --config /etc/ppp/peers/gprs-wvdial.conf radiolinja_usb_orange_spv"
# 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,
# /dev/ttyUB0 for Bluetooth (Bluez with rfcomm running) and
# /dev/ttyUSB0 for USB
#/dev/ttyS0 # serial port one
#/dev/ttyS1 # serial port two
/dev/ircomm0 # IrDA serial port one
#/dev/rfcomm0 # Bluetooth serial port one
#/dev/ttyUSB0 # USB serial device, for example Orange SPV
# Serial port line speed
#115200 # fast enough
57600 # perhaps usefull with IrDA as some phones don't like
# speeds higher than this
# Hardware flow control:
# Use hardware flow control with cable, Bluetooth and USB but not with IrDA.
#crtscts # serial cable, Bluetooth and USB, on some occations with IrDA too
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
# Newer pppd's also support replacing the default route, if one is
# already present, when the GPRS connetion should be set as the default route
# to the network
#replacedefaultroute
# 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:
# "rlnet" * "internet" *
user "rlnet"
# The persist tries to reopen the connection if it is dropped. This
# is usefull for example with a Nokia 7650 which only manages to
# 'dial' with every second attempt or when the network likes to drop the
# connection every now and then. It's not fun when the over-night
# 'apt-get dist-upgrade -d -y' fails constantly...
#persist
#maxfail 99
# 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
[-- Attachment #3: gprs-connect-chat --]
[-- Type: text/plain, Size: 1647 bytes --]
#!/bin/sh
#
# $Id: gprs-connect-chat,v 1.2 2004/02/02 23:19:28 mcfrisk Exp $
#
# File:
# gprs-connect-chat
#
# Description:
# chat script to open Radiolinjas 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 like the Orange SPV (yes, the Microsoft Smartphone) 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" \
OK ATH \
OK ATE1 \
OK 'AT+CGDCONT=1,"IP","internet.nw","",0,0' \
OK ATD*99# \
TIMEOUT 22 \
SAY "\nwaiting for connect...\n" \
CONNECT "" \
SAY "\nConnected." \
SAY "\nIf the following ppp negotiations fail,\n" \
SAY "try restarting the phone.\n"
[-- Attachment #4: gprs-disconnect-chat --]
[-- Type: text/plain, Size: 316 bytes --]
#!/bin/sh
#
# $Id: gprs-disconnect-chat,v 1.2 2004/02/02 23:19:28 mcfrisk Exp $
#
# File:
# gprs-disconnect-chat
#
# send break
exec /usr/sbin/chat -V -s -S \
ABORT "BUSY" \
ABORT "ERROR" \
ABORT "NO DIALTONE" \
SAY "\nSending break to the modem\n" \
"" "\K" \
"" "+++ATH" \
SAY "\nPDP context detached\n"
next prev parent reply other threads:[~2004-11-22 22:54 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-13 12:26 Re[2]: [Hardware] Notebook Вадим Левченко
2004-09-13 12:54 ` Anton Farygin
2004-09-13 13:48 ` Re[2]: " Вадим Левченко
2004-09-14 7:53 ` Anton Farygin
2004-09-13 14:41 ` Re[2]: " Вадим Левченко
2004-09-14 7:52 ` Anton Farygin
2004-09-14 22:25 ` [Hardware] Notebook Denis Smirnov
2004-09-15 7:05 ` Anton Farygin
2004-09-15 7:52 ` Denis Smirnov
2004-09-15 7:27 ` Anton Farygin
2004-09-15 19:43 ` Denis Smirnov
2004-09-16 6:57 ` Anton Farygin
2004-09-16 8:12 ` Denis Smirnov
2004-09-16 9:24 ` [Hardware][JT] " Andrey Rahmatullin
2004-09-16 10:18 ` Anton Farygin
2004-09-16 16:20 ` [Hardware] " Denis Smirnov
2004-09-17 10:17 ` [Hardware] Re: Notebook [JT] Anton Farygin
2004-09-16 16:19 ` [Hardware] Re: Notebook Denis Smirnov
2004-11-09 14:29 ` Re[2]: [Hardware] Notebook Вадим Левченко
2004-11-09 15:40 ` [Hardware] dups (was: Notebook) Michael Shigorin
2004-11-10 6:18 ` [Hardware] dups Genix
2004-11-10 17:52 ` Andrey Rahmatullin
2004-11-10 6:29 ` [Hardware] Notebook Anton Farygin
2004-11-10 9:44 ` [Hardware] IR (was: Notebook) Michael Shigorin
2004-11-10 14:25 ` Denis Ovsienko
2004-11-10 14:37 ` Denis Smirnov
2004-11-11 11:02 ` Michael Shigorin
2004-11-22 22:54 ` Grigory Batalov [this message]
2004-11-11 7:54 ` [Hardware] IR Anton Farygin
2004-11-10 14:34 ` [Hardware] Notebook Denis Smirnov
2004-11-11 7:57 ` Anton Farygin
2004-11-11 13:18 ` Andrey Rahmatullin
2004-11-11 15:53 ` Denis Smirnov
2004-11-12 11:33 ` Anton Farygin
2004-11-12 15:13 ` Denis Smirnov
2004-11-13 10:47 ` Michael Shigorin
2004-11-13 15:06 ` Denis Smirnov
2004-11-15 7:27 ` Re[2]: " Вадим Левченко
2004-11-16 16:09 ` Denis Smirnov
2004-11-16 16:26 ` Re[2]: " Вадим Левченко
2004-11-18 13:58 ` Denis Smirnov
2004-11-18 18:44 ` Re[2]: " Вадим Левченко
2004-11-19 14:12 ` Denis Smirnov
2004-11-21 14:23 ` Re[2]: " Вадим Левченко
2004-11-21 16:47 ` Denis Smirnov
2004-11-21 17:26 ` Re[2]: " Вадим Левченко
2004-11-21 19:41 ` Denis Smirnov
2004-11-21 22:20 ` Re[2]: " Вадим Левченко
2004-11-22 18:57 ` Denis Smirnov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041123015437.07baeb7f.bga@altlinux.ru \
--to=bga@altlinux.ru \
--cc=hardware@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux hardware support
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \
hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
public-inbox-index hardware
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.hardware
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git