<em><a href="../Non-Sumou.html">Other GNU/Linux on HTC Universal mobile phone tips</a></em></p>
To query the credit balance on your mobile phone in GNU/Linux:
<ul> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ titchy-phone-daemon atcmd 'at+cusd=1,"<em>104</em>#",15'</b></td></tr></table></li> <li>In a few seconds the operator's GSM system will send back your balance. It is recorded in the titchy-phone-daemon log.</li> <li>To view it: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ tail -n 1 /var/log/titchy-phone-daemon</b></td></tr></table> It is ASCII values, hex-encoded.</li> <li>To decipher this into regular ASCII text, install xxd, unless you have vim installed which has xxd included.</li> <li>To install xxd, download [[http://sumou.com/hoka/vebu/xxd-1.10.tar.gz][xxd-1.10.tar.gz</a> originally [[http://ftp.uni-erlangen.de:21/pub/utilities/etc/xxd-1.10.tar.gz][found here</a>: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ wget -c http://sumou.com/hoka/vebu/xxd-1.10.tar.gz</b></td></tr></table></li> <li>Compile xxd: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ tar xvf xxd-1.10.tar.gz<br /> $ cd xxd-1.10<br /> $ make</b></td></tr></table></li> <li>Put the xxd binary somewher in your path.</li> <li>To read the mobile credit balance now: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ tail /var/log/titchy-phone-daemon ][ grep CUSD ][ sed 's/.*0,"(.*)",15/1/' ][ xxd -r -p</b></td></tr></table></li> </ul> <!— Page published by Emacs Muse ends here —> </div> <i>To send me feedback about this page, use the below email.</i><br /> <b>© sumoudou.org 2010</b><br /> <img style="border:0" alt="sumoudou.org" src="email.gif" width="129" height="10" /><br /> <a href="http://www.gnu.org/" style="text-decoration: none;"><img style="border:0" alt="GNU" src="powered-by-gnu.png" />]] <a href="http://www.gnu.org/software/emacs/emacs.html" style="text-decoration: none;"><img style="border:0" alt="GNU Emacs" src="made-with-emacs.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hcoop-proud-member.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hosted-by-hcoop.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="made-with-muse.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="powered-by-muse.png" />]] <br /> <a href="http://www.fsf.org/resources/formats/playogg" style="text-decoration: none;"><img style="border:0" alt="Ogg" src="play-ogg.png" />]] <a href="http://www.catb.org/hacker-emblem/" style="text-decoration: none;"><img style="border:0" alt="Glider" src="glider.png" />]] <a href="http://ubuntu.com/" style="text-decoration: none;"><img style="border:0" alt="Ubuntu" src="ubuntu.png" />]] <a href="http://validator.w3.org/check?uri=referer" style="text-decoration: none;"><img style="border:0" alt="Valid XHTML 1.0 Strict!" src="valid-xhtml10-blue.png" />]] <a href="http://jigsaw.w3.org/css-validator/check/referer" style="text-decoration: none;"><img style="border:0" alt="Valid CSS!" src="valid-css-blue.png" />]] <br />Last updated January 10, 2010 </div> <br />. </body> </html>