Re: 2 identical GSM-modem discern.

2010-10-09 Thread Sthu Deus
Thank You for Your time and answer, Jasper: > In your example you miss a space before the ">", > and your /tmp/qq should look like > > "" atd*#06# > OK "" That's what I have now: /usr/sbin/chat -E -s -V -f /tmp/q /dev/ttyUSB0 atd*#06# NO CARRIER Failed In /tmp/q I have: "" atd*#06# OK "" S

Re: Re: 2 identical GSM-modem discern.

2010-10-08 Thread Jasper Noë
chat -E -s -V -f $modem_chat_script <$modem_device >$modem_device So, that's what I did: $ /usr/sbin/chat -E -s -V -f /tmp/qq /dev/ttyUSB0 Failed in /tmp/qq I have: atd*#06# Using the script in my previous mail you should be able to do modem_cmd atd*#06# In your example you miss a space

Re: 2 identical GSM-modem discern.

2010-10-08 Thread Sthu Deus
Thank You for Your time and answer, Jasper: > chat -E -s -V -f $modem_chat_script <$modem_device >$modem_device Excuse me for my previous messages - I did not see this Your message. So, that's what I did: $ /usr/sbin/chat -E -s -V -f /tmp/qq /dev/ttyUSB0 Failed in /tmp/qq I have: atd*#06# Do

Re: 2 identical GSM-modem discern.

2010-10-08 Thread Sthu Deus
Thank You for Your time and answer, Jasper: > Yes. > > I could send atd*#06# and got a long number as answer. That;s just great! Would show a command on command line or whatever how it can be used all? Say, I have a device called /dev/ttyUSB0 and the chat cammand, what is the command line then?

Re: Re: Re: 2 identical GSM-modem discern.

2010-10-07 Thread Jasper Noë
or it is possible w/ chat to find out device IMEI? Yes. I could send atd*#06# and got a long number as answer. I wrote a script to give single commands, using chat in it. I will try to rewrite it later today, so that it is more generally useful. Attempt to talk to modem using the chat comm

Re: Re: 2 identical GSM-modem discern.

2010-10-07 Thread Jasper Noë
or it is possible w/ chat to find out device IMEI? Yes. I could send atd*#06# and got a long number as answer. I wrote a script to give single commands, using chat in it. I will try to rewrite it later today, so that it is more generally useful. -- To UNSUBSCRIBE, email to debian-user-requ..

Re: 2 identical GSM-modem discern.

2010-10-07 Thread Sthu Deus
Thank You for Your time and answer, Jasper: > You can script communication with a modem using 'chat', that is a > tool that is part of the ppp - package. Do You suggest to look for error w/ chat script in case of wrong device-ISP pair, or it is possible w/ chat to find out device IMEI? -- To U

Re: 2 identical GSM-modem discern.

2010-10-06 Thread Jasper Noë
But AFAIK I can retrieve it only inside of minicom - that makes impossible to use in a connection script. You can script communication with a modem using 'chat', that is a tool that is part of the ppp - package. HTH, --Jasper. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.o

Re: 2 identical GSM-modem discern.

2010-10-05 Thread Ron Johnson
On 10/05/2010 11:33 AM, Sthu Deus wrote: Thank You for Your time and answer, Michelle: In your connection script, you can check, on which USB-Port it is connected, then get the /dev/ttyUSBn or /dev/ttyACMn and youare done. But how I can identify which one of the modems is connected on w

Re: 2 identical GSM-modem discern.

2010-10-05 Thread Sthu Deus
Thank You for Your time and answer, Michelle: > In your connection script, you can check, on which USB-Port it > is connected, then get the /dev/ttyUSBn or /dev/ttyACMn and youare > done. But how I can identify which one of the modems is connected on which port? -- To UNSUBSCRIBE, email

Re: 2 identical GSM-modem discern.

2010-10-04 Thread Michelle Konzack
Hello Sthu Deus, Am 2010-10-05 04:17:52, hacktest Du folgendes herunter: > Good day. > > I have 2 similar GSM-modems - both are connected at once having diver > ISP SIM in each. Same here, but with 8 USB HSPA GSM-Modems... > At connection time how I can easily discern between > them? > > At my

2 identical GSM-modem discern.

2010-10-04 Thread Sthu Deus
Good day. I have 2 similar GSM-modems - both are connected at once having diver ISP SIM in each. At connection time how I can easily discern between them? At my opinion it discerns only by its IMEI. But AFAIK I can retrieve it only inside of minicom - that makes impossible to use in a connection