Hi,
Regarding to your last question, you might need to increase a span parameter in the following functions.
.../chan_extra-xxx/src/libgsmat/gsm.c
1. Find function `gsm_dump`(near line 477), then get the debug output line(near 499). Please modify them like this:
From:
gsm_message(gsm, "%s %s\n",(txrx) ? ">>" : "<<", buf);
To:
gsm_message(gsm, "span:%d%s %s\n", gsm->span, (txrx) ? ">>" : "<<", buf);
2: Another function `gsm_set_switchtype`,
From:
gsm_message(gsm, "\t\t<<< %d %s -- %s , %d\n", i, tmp, buf, len);
To:
gsm_message(gsm, "\t\tspan:%d<<< %d %s -- %s , %d\n", gsm->span, i, tmp, buf, len);
3. ../chan_extra-xxx/src/libgsmat/m20.c (M20 Module)
Function `m20_receive`
From:
gsm_message(gsm, "\t\t<<< %d %s -- %s , NULL\n", i, tmp, buf);
gsm_message(gsm, "\t\t<<< %d %s -- %s , %d\n", i, tmp, buf, len);
To:
gsm_message(gsm, "\t\tspan:%d<<< %d %s -- %s , NULL\n", gsm->span, i, tmp, buf);
gsm_message(gsm, "\t\tspan:%d<<< %d %s -- %s , %d\n", gsm->span, i, tmp, buf, len);
4. .../chan_extra-xxx/src/libgsmat/simcom.c (Simcom Module)
Function `simcom_receive`
From:
gsm_message(gsm, "\t\t<<< %d %s -- %s , NULL\n", i, tmp, buf);
gsm_message(gsm, "\t\t<<< %d %s -- %s , %d\n", i, tmp, buf, len);
To:
gsm_message(gsm, "\t\tspan:<<< %d %s -- %s , NULL\n", gsm->span, i, tmp, buf);
gsm_message(gsm, "\t\tspan:<<< %d %s -- %s , %d\n", gsm->span, i, tmp, buf, len);
5. .../chan_extra-xxx/src/libgsmat/sim900.c (sim900 Module)
Function `sim900_receive`
From:
gsm_message(gsm, "\t\t<<< %d %s -- %s , NULL\n", i, tmp, buf);
gsm_message(gsm, "\t\t<<< %d %s -- %s , %d\n", i, tmp, buf, len);
To:
gsm_message(gsm, "\t\tspan:%d<<< %d %s -- %s , NULL\n", gsm->span, i, tmp, buf);
gsm_message(gsm, "\t\tspan:%d<<< %d %s -- %s , %d\n", gsm->span, i, tmp, buf, len);
After modification, you have to recompile it.
With regard to the first question, since they are different modules, the AT commands between them are not same. We will be trying to solve it.