| Last update: 14/02/2016|
Linux free software
Other pages in this section:|
Page index: *** added Jan,26,2010 - Puppy Linux version (installable, packed for slackware as TGZ)
Tutto ciò che trovate nel sito è stato realizzato da me ed è disponibile gratuitamente per fini non commerciali. Non mi assumo alcuna responsabilità per le eventuali inesattezze contenute nei programmi e/o negli schemi elettrici e per OGNI POSSIBILE DANNO derivante dall'uso del materiale messo a disposizione. Effettuando un download, IMPLICITAMENTE ACCETTATE di utilizzare quanto prelevato sotto la VOSTRA ESCLUSIVA responsabilità.
Everything found at the site was made by me and is available free for non-commercial purposes.I do not take any responsibility for any inaccuracies contained in the programs and / or wiring diagrams and EVERY POSSIBLE DAMAGE arising out of the material made available. By doing a download, you IMPLICITLY AGREE to use as taken under YOUR EXCLUSIVE responsibility.
:: Lcd controller; connect 20x4 character LCD to parallel port
DB7..DB0 - Data bus, connected to 'D7..D0' of LCD
/STB - Strobe, connected to 'E' of LCD
/SCI - Slct-in, connected to 'WE' of LCD
/AFD - Auto-LF, connected to 'RS' of LCD
GND - Signal ground, connected to 'VSS' of LCD
The +5V supply can be taken from pin 4 of connector J15
Look at my page linux_howto for a small tutorial on Gambas2 environment installation.
:: Sms logger; reads sms from cellphone and stores to your disk
Immediatly after launching the program, click the "test" button; the program will send some AT commands to the mobile phone (using a script file named testcmd.txt) to verify that it's able to do the job. In this updated version, the program tries 5 times to make the phone operative; if the test is ok, you can see your telephone number in the text box at low left side; now can click on "start" button to start logging. The program sends AT commands to retrieve messages (in PDU format) and if an SMS is found, decodes the PDU to ascii format and appends the string to the output file named smslog.txt. The 'delete' checkbox, if set, removes the sms from the telephone memory after saving it to the file. As default it isn't checked, for making easier to test the program without the need for sending multiple messages (the sms that are in telephone's memory are re-saved to disk at every poll cycle).
The program has been written using the free Basic language Gambas2, running under Linux Ubuntu.
The install file is packaged also for Linux Ubuntu; if running such Linux distro, you can simply double click on the downloaded file to start installation.
A typical (default) script file testcmd.txt is:
The lines that have ! as start character will NOT wait for an answer from the cellphone (immediate commands)
The other lines are the AT commands to send to the phone and the expected answer; i.e. the "ATE1" command (line 5 of script) waits for OK (line 6 of script) from the phone. You can modify the script as you want, using the same scheme question/answer, one for each row.
If you run Ubuntu, you can install the program just double-clicking on the downloaded file,
but if you want to use the command line mode, then do:
sudo aptitude install gambas2-runtime gambas2-gb-gui gambas2-gb-form gambas2-gb-net gambas2-gb-vb
dpkg -i smslog*.deb
Note: thanks to my son Gilberto (aka Velenux) for his help for the command line example.
Note: you must have a working installation of Gambas2 on your PC to run the program...
Look at my page Linux HowTo for details about the Gambas2 installation under Puppy Linux.
*** added Jan,26,2010 - Puppy Linux version (installable, packed for slackware as TGZ)