Use user list for this kind of requests.

You should check your modems specs to see if that is possible.

Regards

Alvaro

On Sat, Nov 21, 2009 at 12:22 PM, emocanos <[email protected]> wrote:
>
> hi,
> thank you for your reply. I found that as a problem: On some type huawei
> when we enter the above command - and get an answer just OK. The problem is
> that the modem sends the response to another port. BUT! we can get. we run
> two terminals: one for the modem port, as described above, the second - the
> port device 3G PC UI Interface: cat / dev/ttyUSB1 (the port number in the
> list of COM ports in Manager device, it is usually more than 1 modem port
> number). Then type the command in the Modem Port Terminal minicom: AT + USDc
> = 1, "* 111 # * xxxxxxxxxxxx", 15 - a couple of seconds see the answer in
> the window of the second terminal, 3G PC UI Interface.
> So how to redirect the output to kannel?
>
>
> Alvaro Cornejo wrote:
>>
>> You should add this command to the init string and kannel will issue
>> the command ONCE at startup.
>>
>> Else you can add that command to the keepalive string and kannel will
>> send this command to the modem at the specified keepalive interval.
>>
>> For viewing/monitoring the results, you must set the log level to 0
>> (debug) and have an application that will monitor that log in realtime
>> and take necessary actions if the balance drop below your settings.
>>
>> Else you can patch kannel to report that commad in another way you
>> want. In this case you will branch-off kannel, but you can submit your
>> patch to kannel in order to have devel group validate it and evaluate
>> if the kannel main branch can benefit of that patch.
>>
>> Regards
>>
>> Alvaro
>>
>> On Sat, Nov 21, 2009 at 10:29 AM, emocanos <[email protected]> wrote:
>>>
>>> For sending SMS, I use kannel, which installs as a daemon taking control
>>> of
>>> GSM modem huawei e220. SIM card installed in the modem is a prepaid card.
>>> in this case I want to add code to monitor the credit card. and issue a
>>> warning if it falls too low.
>>> type sends commands to the modem using the AT command CUSD. Are tested
>>> immediately with minicom:
>>>
>>> AT + CUSD = 1 * 222 #, 15
>>> OK
>>> normally after this OK I have a message like this
>>> + CUSD: 2, "Current Credit: 00.00 DA", 15
>>>
>>> but I will have no result
>>> I do not know what the problem is and if there Is there a solution
>>>
>>> thank you for answer
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Check-the-credit-card-SIM-tp26457505p26457505.html
>>> Sent from the Kannel - Dev mailing list archive at Nabble.com.
>>>
>>>
>>>
>>
>>
>>
>> --
>> |-----------------------------------------------------------------------------------------------------------------|
>> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
>> celular y Nextel
>> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
>> SMS y GPRS online
>>               Visitenos en www.perusms.NET www.smsglobal.com.mx y
>> www.pravcom.com
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Check-the-credit-card-SIM-tp26457505p26458475.html
> Sent from the Kannel - Dev mailing list archive at Nabble.com.
>
>
>



-- 
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com

Reply via email to