From owner-freebsd-questions@FreeBSD.ORG Sun Dec 2 14:09:58 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5AD0E6AE for ; Sun, 2 Dec 2012 14:09:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0F60B8FC08 for ; Sun, 2 Dec 2012 14:09:57 +0000 (UTC) Received: from r56.edvax.de (port-92-195-51-39.dynamic.qsc.de [92.195.51.39]) by mx01.qsc.de (Postfix) with ESMTP id B4D823CA41; Sun, 2 Dec 2012 15:09:49 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id qB2E9pU1001973; Sun, 2 Dec 2012 15:09:51 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 2 Dec 2012 15:09:51 +0100 From: Polytropon To: s m Subject: Re: set connection to a modem Message-Id: <20121202150951.6adeebd4.freebsd@edvax.de> In-Reply-To: References: <20121128170525.c3fb92e8.freebsd@edvax.de> <50B7D85F.5040900@a1poweruser.com> <50BA6652.8090005@sdf.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2012 14:09:58 -0000 On Sun, 2 Dec 2012 09:41:12 +0330, s m wrote: > thanks chris > > ppp is used when you want connect to internet via modem. Basically yes, but it can do more than that. > i just want to > config my modem by AT command. This is _exactly_ what PPP does (among other things). :-) Refer to the example I've provided in an earlier message on how you can use /etc/ppp/ppp.conf to define the settings for speed and flow control which will then be processed by PPP, it will send the _proper_ AT commands using chat (see "man chat" for details). On the other hand, if you use a program like minicom, there will be a config file provided where you can put your settings and custom AT commands (if required) into it. I haven't been using it for long time, but if I remember correctly, the config file is /usr/local/etc/minirc.something... ??? > when my ppp.conf file is empty, i can talk to my modem so this config file > do nothing what you want talk to your modem. The file is only relevant to PPP. If you're using a different program, it will be ignored. Only PPP reads it at startup. > if i want to talk to my modem by a specific speed, which config file should > be changed? That depends on the _program_ you use to talk to the modem. Again: If you use ppp, put "set speed 115200" (or whatever speed you need) in ppp.conf's section for your connection. If you are using a different program, check its documentation to find out which config file it uses. There is no system-wide configuration file for what you need. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...