ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yura Kalinichenko <yuk@kalina.in.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] найти управу на модем  AnyDATA A500 (cdma)
Date: Sun, 18 Sep 2011 23:35:24 +0300
Message-ID: <4E76560C.6070307@kalina.in.ua> (raw)
In-Reply-To: <20110918011348.0355cda2@bird.localdomain>

Maks Re пишет:
> Здравствуйте,
>
> имеется модем, AnyDATA A500 (cdma, skylink)
>   
Работал с данным модемом по классической схеме pppd+chat.  Особенность 
модема состоит в том, что при разрыве ppp-соединения он не сбрасывается 
в начальное состояние (т.е. для повторного соединения не нужно "набирать 
номер" - достаточно просто поднять pppd еще раз). Однако в
случае использования для "дозвона" традиционных chat-скриптов мы не получаем
от модема ожидаемых ответов на AT-команды, и повторное соединение
невозможно, пока устройство не будет физически отсоединено.

В этом случае срабатывает следующий трюк (см. ниже chat-скрипт): 
AT-команды передаются модему без ожидания и анализа ответов, а 
соединение считается успешным в случае получения типичной 
ppp-последовательности, начинающейся с ~

-------------cut-----------------

ABORT           BUSY
ABORT           VOICE
ABORT           "NO CARRIER"
ABORT           "NO DIALTONE"
ABORT           "NO DIAL TONE"
TIMEOUT         10
''              '\r\c'
''              ATZ
''              ATDT\T
'~--' 
-------------cut-----------------

-- 
SY, 
   Yura Kalinichenko



      parent reply	other threads:[~2011-09-18 20:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-17 21:13 Maks Re
2011-09-18  9:49   ` Maks Re
2011-09-18 10:50   ` Olexander Chernetskyy
2011-09-18 11:08     ` Maks Re
2011-09-18 20:35 ` Yura Kalinichenko [this message]

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=4E76560C.6070307@kalina.in.ua \
    --to=yuk@kalina.in.ua \
    --cc=community@lists.altlinux.org \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git