Results 1 to 20 of 20

Thread: Send AT command to mobile phone

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Send AT command to mobile phone

    hello

    i want send the AT command to Sony ericsson T610 using VB 6 use serial or USB data cable..

    can u help me.. give idea or something

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Send AT command to mobile phone

    This has been asked recently. AT commands only can be sent to modems over the COM port. I'm pretty sure mobile phones cannot accept AT commands.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    New Member
    Join Date
    Mar 2006
    Posts
    8

    Re: Send AT command to mobile phone

    i think the mobile phone can accept AT command .....try this link

    http://discussion.forum.nokia.com/fo...ad.php?t=19396

    may be it will give some idea

  4. #4
    Addicted Member
    Join Date
    Mar 2006
    Posts
    187

    Re: Send AT command to mobile phone

    i'm sure that a mobile phone accept at command....in every mobile phone there is a modem so.....

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Send AT command to mobile phone

    Use the MSComm control. A USB port appears to VB as a serial port once the driver is installed (which usually happens automatically). Most mobile phones (in fact I've never heard of a current one that doesn't) accept AT commands.

  6. #6
    Junior Member
    Join Date
    Mar 2006
    Posts
    23

    Talking Re: Send AT command to mobile phone

    search the net for prevous projects...use google or other search engine..there are a lot who have done almost the same projects...and gud luck with the project...

  7. #7

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Re: Send AT command to mobile phone

    hello
    thank for reply..

    my phone have build in modem. so the phone support at command...
    my problem is, i use usb data cable.but i connot know how to send at command using vb. if use serial data cabel i know.. the command for serial and peraller(usb) is not same in vb. can some one help me..

    thank for help

  8. #8
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Send AT command to mobile phone

    You can try the MSCOMM control (mscomm32.ocx).
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  9. #9

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Re: Send AT command to mobile phone

    i dont understand.. can u explain more.

    i use mscomm for serial communicatian.
    but i want use usb (perallel).

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Send AT command to mobile phone

    USB isn't parallel - it looks like a serial port to the software.

  11. #11

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Re: Send AT command to mobile phone

    so i can use same program like serial datacable. just change the com port..
    or i must change the program.

  12. #12
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Send AT command to mobile phone

    Same exact program. Sort of. You're going to have to experiment with speed - the only devices I've written code for are things attached to USB->serial converters, so the speeds were the normal serial speeds. I don't know if you can get full USB 2 speed with MSComm. But the rest of the code is plain serial input and output.

  13. #13

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Re: Send AT command to mobile phone

    this my code

    Dim Hookdata As String
    Private Sub CmdEnter_Click()
    MSComm.Output = Text5.Text + Chr(13)
    Text5.Text = ""
    End Sub

    Private Sub Form_Load()
    MSComm.CommPort = 3
    MSComm.Settings = "57600,n,8,1"
    MSComm.PortOpen = True
    MSComm.Handshaking = comNone

    End Sub

    Private Sub MSC_OnComm()
    If MSComm.CommEvent = comEvReceive Then
    Hookdata = Hookdata & MSC.Input
    Text2.Text = Hookdata
    End If

    i try use many speed but still cannot. i dont know why. i use usb data cable for sonyericsson T610

  14. #14

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Re: Send AT command to mobile phone

    hello..
    i use hyperterminal for send at command. i use usb cable. it ok. all the speed support. i dont know why i use vb6 it cannot function.

  15. #15
    Hyperactive Member Vishalgiri's Avatar
    Join Date
    Oct 2003
    Location
    India
    Posts
    345

    Re: Send AT command to mobile phone

    I think you need to Enumaret Port to find the port at which mobile is connected once you get the port then proceed
    Regards,
    Vishalgiri Goswami
    Gujarat, ( INDIA ).
    ---------------------

  16. #16
    New Member
    Join Date
    Mar 2006
    Posts
    8

    Re: Send AT command to mobile phone

    Dear potetojb,

    Try using 9600 or 19200 as the baud rate....works for me...hope it work for you too..

    Thanks,

    Warm regards,
    Dharmasasta

  17. #17

    Thread Starter
    Member
    Join Date
    Mar 2006
    Location
    Johor,Malaysia
    Posts
    45

    Re: Send AT command to mobile phone

    thankQ

    i success do this 2 week ago... use serial data cable
    thank for all

    but cant use USB Cable. i dont know why.
    i try many speed... still cant.

  18. #18
    New Member
    Join Date
    May 2006
    Posts
    5

    Re: Send AT command to mobile phone

    Sorry to answer it so late.
    I'm not sure wether you all will get the message.
    In facts ,A USB->Com has delay times more than PCI->Com & ISA->Com.

    I know this from a hardware project.
    For example if a string "ABC" & vbcrlf is sending to terminal:
    The USB->Com will do like this "AB" wait a while "C" & vbcrlf .It's so high speed device & no one will care about it till failure.

    You'd better use the internal 2 coms or buy another PCI or PCIM to com card.

  19. #19
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Send AT command to mobile phone

    Bomb, I communicate with serial devices through the USB port all the time and have never seen what you describe unless the data is being sent too fast for the receiving device, which is a function of the receiving device when it wants the data stream to stop.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  20. #20
    New Member
    Join Date
    May 2006
    Posts
    5

    Re: Send AT command to mobile phone

    Thank you above all.
    I used the spool fuction to chr 10 & chr 13.

    The hardware delay may be look on as 0 & the transform time depends on the shift regist clk frequence(internal ).If stream length > buffer length.data will be divided into several block.USB->com have less buffer lenth than PCI or ISA expanding card maybe.

    Am I right? Are you a system designer? It's avocation to me.My idear maybe wrong It's also depending on the software.We can have it as a topic to us.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width