Visual Basic Stats:

How to support the site


Site Wide Message: (current site time 7/29/2010 9:08:24 PM EDT)
  • We want your input! One of our sponsors wants to know your opinion about development related issues. Click here to tell us what you think.
  • Are you an emerging/young developer (aged 18-30)? If so, would you like the chance to affect future developer tools and products?
    If so, then click here to give your feedback.
 

SMSlogger

Print
Email
winzip icon
Submitted on: 3/13/2010 8:56:25 AM
By: Emilio Ficara  
Level: Intermediate
User Rating: By 3 Users
Compatibility:VB 6.0

Users have accessed this code  4742 times.
 
author picture
 
     This program allows you to save on a text file all SMS messages that are received from a mobile phone. The phone is connected to a serial port and is seen as a modem. The modem must support the AT commands for SMS. The tests were performed on a Siemens M50 mobile phone connected to the serial port or USB via USB-RS232. It should work with all phones that support AT commands for SMS. When launched, the program asks for permission to proceed with acceptance of responsibility by the user. If you agreed, the program creates the file comm.ini in the working directory and initializes the serial port as COM1. If you use another port, edit the above file with notepad and change the number depending on your hardware. When you launch the program, only the test button is enabled; clicking the button, you run the script that's stored in the file testcmd.txt. The text lines of that file are a series of commands that are sent to the modem to see if it's able to do the job. The user can change these commands to run a different model of modem. The lines that begin with ! are commands and not expect immediate response, the other lines are in the order: data transmitted to the modem and the expected answer. For the answer, it's enough if the script line is PART of modem string; i.e. if 'OK', the program accepts as valid ANY modem answer string that has 'OK' inside. If all commands in 'testcmd.txt' run successfully, then the Start button is enabled so you can activate the log procedure. The output file, called smslog.txt, will contain all the SMS read from the cellphone and reside in the directory where you installed the program. The selection box called 'Delete', if activated, will erase the SMS from your mobile phone once it has been appended to the file. This option is disabled by default to allow efficient testing of the system without having to send every time a new SMS. In the SMS messages are theoretically available some symbols of Greek alphabet. They could not be represented in the same character set as the other symbols, so these will be replaced by spaces and will not be readable in the log file. I apologize to the friends of Greece!
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
3/9/2010 5:21:15 AMim a beginner

Is it possible to send SMS through this application?
(If this comment was disrespectful, please report it.)

 
3/11/2010 8:51:36 PMEmilio Ficara

hello, no, this code just reads SMS from cellphone in PDU format and logs to text file. A PDU encode function and some accessories are needed to sen SMS, but it's not the purrpose of this program :-)
(If this comment was disrespectful, please report it.)

 
3/14/2010 1:49:19 PMT.Jackson

You dabble in a bit of ASM do you Emilio?
(If this comment was disrespectful, please report it.)

 
3/15/2010 9:06:32 AMEmilio Ficara

Hello, I worked hard on ASM for microcontrollers like 6502, 68000, Z8, TMS7000, ST6 and many others. On the PC I used ASM only for a music player game, about 10 years ago. under DOS environment. Take a look at my site http://ficara.altervista.org for more infos, bye :-)

(If this comment was disrespectful, please report it.)

 
3/16/2010 1:13:44 PMT.Jackson

Yeah I could tell by your coding style. Lot of great arcade games made using the 68000 CPU. It make me laugh a bit that we now need Pentium CPUs running at 3.0GHz to achieve the same thing! I used to repair arcade game boards many moons ago.
(If this comment was disrespectful, please report it.)

 
3/20/2010 4:52:25 PMEmilio Ficara

I received a message about this software not working. The program really works, if you respect all the specs. The phone must be able to work with the AT commands extension for SMS. The initial TEST command must terminate with your telephone number written in the low left box. Note that if you use USB-RS232 interfaces it's good practice to set the properties for NOT use the FIFO buffers, or reduce anyway the latency introduced by such devices. The source code provided worked fine with an home-made RS232-Siemens M50 serial cable connected to notebook serial connector COM1, but you can easily modify the source if there are problems with USB. Simply increase the timeouts after verifying the serial connection. It's fundamental that you see in the text box the transmitted and received messages. If you don't see messages from or to the telephone, there is something wrong on your serial connection.
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!

Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.