I'm currently using two separate GSM commands to set up call forwarding
for the two lines on my mobile / cell phone. To speed things up, is it
possible to have both commands on one line, using a separator? If so,
what is that separator?
cormie@uk2.net - 09 Aug 2005 17:01 GMT
To avoid any doubt here, since I've confused the issue by using the
word 'line' to mean two different things (!), I'm looking to send two
GSM commands to the network as a single string.
I've tried obvious command separators like comma, semi-colon, etc, but
to no avail. Maybe it's just not possible anyway, but confirmation
would be appreciated.
John Navas - 09 Aug 2005 18:11 GMT
>To avoid any doubt here, since I've confused the issue by using the
>word 'line' to mean two different things (!), I'm looking to send two
[quoted text clipped - 3 lines]
>to no avail. Maybe it's just not possible anyway, but confirmation
>would be appreciated.
Most AT-type commands can simply be concatenated without any separator.
Thus "AT&C1" and "AT&D2" can be concatenated as "AT&C1&D2"
Caveat: Specific devices may not support concatenation of specific commands;
e.g., many modems won't see a command concatenated after "Z" (Reset).

Signature
Best regards, HELP FOR CINGULAR GSM & SONY ERICSSON PHONES:
John Navas <http://navasgrp.home.att.net/#Cingular>
cormie@uk2.net - 10 Aug 2005 05:57 GMT
> Most AT-type commands can simply be concatenated without any separator.
I'm sorry, I was less than specific in my original post. I'm not using
AT-type commands. The commands I wish to concatenate are:
**21*<divert number>*11# and **21*<divert number>*89# [to divert Line 1
and Line 2 calls respectively]
and
##21*11# and ##21*89# to cancel those diverts.
Thanks,
Stuart
John Henderson - 10 Aug 2005 08:54 GMT
> I'm sorry, I was less than specific in my original post. I'm
> not using AT-type commands. The commands I wish to concatenate
[quoted text clipped - 6 lines]
>
> ##21*11# and ##21*89# to cancel those diverts.
If you haven't already, you could put each of these sequences
into your phonebook, and "call" each "number" to execute the
diversion.
They will be slow to execute, because the call-forwardings are
passed to the network for processing and storage. The same
delay would apply to implementing them via "AT" commands.
As far as concatenating two of these into one "number" is
concerned, I understand that's effectively what you've tried
unsuccessfully. The only thing I would add is to try putting a
couple of pause characters between the two. The pause
character can be different on different phones (check your
manual). On some phones, press and hold the asterisk and get a
"p" appearing. On others, use a plus, "+" for a pause of 3
seconds or so (when within a string - not beginning it). For
example,
**21*<divert number>*11#ppp**21*<divert number>*89#
just might be worth a try.
John
John Henderson - 09 Aug 2005 21:31 GMT
> I'm currently using two separate GSM commands to set up call
> forwarding for the two lines on my mobile / cell phone. To
> speed things up, is it possible to have both commands on one
> line, using a separator? If so, what is that separator?
Most of the general rules about constructing composite "AT"
commands seem to have exceptions, but here goes anyway.
The first rule is that only the leading command is prefixed by
"AT". The "AT" gets dropped elsewhere on the composite command
line.
GSM 07.07 (section 4, "AT Command Syntax") distinguishes between
_basic_ commands and _extended_ commands. Extended commands
(cellular extensions to the standard Hayes "AT" command set)
begin with "AT+C".
Basic commands get concatenated by simply dropping the "AT" as
described above. Extended commands get concatenated by
replacing the subsequent "AT"s with ";" (a semi-colon).
As John Navas mentions, concatenation is not always possible.
Examples might include commands where ";" forms part of the
syntax, and mixtures of GSM 07.07 and GSM 07.05 (SMS) commands.
John