Connect with us

transferring messages from mobile to PC

Discussion in 'Microcontrollers, Programming and IoT' started by bobdxcool, Mar 5, 2013.

Scroll to continue with content
  1. bobdxcool

    bobdxcool

    98
    0
    Mar 9, 2012
    I wanted to transfer the messages that my mobile receives to a word or text file in my PC. Is it possible to do it serially through COM port ??

    I also tried sending a message to USB Modem (micromax modem with a docomo SIM). I used the following python code.

    Code:
    import serial
    import time
    ser = serial.Serial('COM4', 9600)
    while 1:
    	data = ser.read()
    	if (data):
    		print "data : ", data
    
    
    
    The baud rate and all are correct.

    When I used this, I checked for the output in cmd window. the output was just blank space.
    Meaning that, the message was not being read by serial COM port.

    Please help. Pls suggest any code in python or any other language in order to transfer messages from my mobile to computer, or transfer messages sent to the usb modem to a notepad or wordpad or anything else.

    If this is not possible, is it possible to send the messages from mobile to any webpage or email,using some android application ?
     
  2. sirch

    sirch

    109
    1
    Dec 6, 2012
    Where are you running that code, on your PC or Mobile phone? What are you running on the other end?
     
  3. bobdxcool

    bobdxcool

    98
    0
    Mar 9, 2012
    Running code on pc.

    on com port I am runing usb modem.
     
  4. sirch

    sirch

    109
    1
    Dec 6, 2012
    So what is running on the phone to send data down USB cable to the PC? What sort of phone is it?

    I appreciate that you may want to do this over serial, but generally you can access a phone directly via USB. Which ever way you do it you need some software on the phone to output the messages.
     
  5. bobdxcool

    bobdxcool

    98
    0
    Mar 9, 2012
    Sir, actually I am not using any software on the phone. I am using an Android phone (samsung galaxy ace duos- android 2.4).

    Connecting it directly via USB port is also not a problem, but again I do not know what software to use on the phone.

    Pls tell me what software I should use in order for this to work.

    I also tried the code with a USB modem (using the sim card present in it), but again as you said I think I need some software which will read these messages.
     
  6. sirch

    sirch

    109
    1
    Dec 6, 2012
    I haven't tried it but a quick google turned up this app https://play.google.com/store/apps/details?id=com.smeiti.smstotext&hl=en

    My guess is that you need to save the messages to your SD card somehow (e.g. with the above app and then just connect) connect the phone to the PC, the phone should then prompt you to allow USB access, once turned on on the phone your PC will see the Phones SD card as an external drive.
     
  7. bobdxcool

    bobdxcool

    98
    0
    Mar 9, 2012
    And then, I run the program posted above on my pc, so that data is transferred serially via COM port ?
     
  8. sirch

    sirch

    109
    1
    Dec 6, 2012
    No, just directly via USB
     
  9. bobdxcool

    bobdxcool

    98
    0
    Mar 9, 2012
    Sir, this what I exactly want to do.

    Any Sms received on my mobile (connected to pc) should be automatically (without human intervention) transferred to a word/txt file on the PC.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-