Re: Inject USSD when SMSd is running

gilberto dos santos alves <[email protected]>
Newsgroups gmane.linux.drivers.gammu
Message-ID <CAP9G-NLmZOeWv+Fk1wMnu15NvD2wortwbjtCWERANdsFxV_-2w@mail.gmail.com>
[1] http://www.cyberciti.biz/faq/linux-command-line-run-in-background/
hi.
IMHO, for kill process you need some time after kill comand, like 5 seconds.
for start of gammu add a char & that meaning running in background process
for more control state.
use some control time between commands.

2016-07-06 8:32 GMT-03:00 Emiliano Vazquez <[email protected]>:

> El 06/07/16 a las 08:09, gilberto dos santos alves escribió:
>
> hi. please could you post your scripts? after read life will be more easy!
>
> Sorry i forgot it!
>
> http://linkode.org/wDG7Wzxo98SR3eo3ZOJ5h7
>
>
> How it works?
>
> 1. kill gammu
> 2. using pyserial i connect to /dev/ttyUSB#    (reading from gammu file)
> 3. make a test using "AT" command. If i receive "OK" i continue.
> 4. using USSD i try to get the account balance and SMS balance if it is
> available.
> 5. send balance to gammu database. I create a table with this information.
> 6. Start gammu again.
>
> If i don't stop&start gammu everything goes crazy.
>
>
> You can do the same using *minicom -D /dev/ttyUSB#* and execute every
> command in "ussd" function.
>
> Best regards and thanks for your time.
>
> Emiliano.
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Gammu-users mailing list -
> https://lists.sourceforge.net/lists/listinfo/gammu-users
>
>


-- 
gilberto dos santos alves
+55(11)9-8646-5049
sao paulo - sp - brasil

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.