Re: Inject USSD when SMSd is running

Emiliano Vazquez <[email protected]>
Newsgroups gmane.linux.drivers.gammu
Organization PcCentro S.R.L.
Message-ID <[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
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.