Results 1 to 12 of 12

Thread: accessing the GSM modem using serialport in windows OS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: accessing the GSM modem using serialport in windows OS

    Thanx for ur help calhal & katrina,

    yah,what u told ,i completed already,

    i checked my Gsm modem by connecting with com port and passed At commands using MS Hyperterminal,the modem works fine at that time,i sended sms message from PC to another mobile using that AT commands.
    we set the port and modem for 9600,8bit,no parity.

    My doubt was,how can i send "ENTER","CNTR+Z" signals of keyboard from my source code.can i give "\n" for "ENTER" signal?

    one more doubt is, after sending command to the modem,i will verify that"OK" response in the PC side,it will take some delay for this,how can i avoid the delay problem in this issue.

    u are really helpful to me,
    thanx alot..........

  2. #2
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: accessing the GSM modem using serialport in windows OS

    My doubt was,how can i send "ENTER","CNTR+Z" signals of keyboard from my source code.can i give "\n" for "ENTER" signal?
    I think enter is rather "\r\n" in this case. ctrl+z is a SUB character. IIRC it has 0x1a hex code.

    one more doubt is, after sending command to the modem,i will verify that"OK" response in the PC side,it will take some delay for this,how can i avoid the delay problem in this issue.
    I don't know if I understand correctly your question. I'd use a QTimer to receive data from RS232, then emit some signal when got "OK" and connect it to right slot. Same for other commands received from modem.
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

  3. The following user says thank you to calhal for this useful post:

    jjbabu (31st December 2007)

  4. #3
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: accessing the GSM modem using serialport in windows OS

    Hi calhal

    I think enter is rather "\r\n" in this case. ctrl+z is a SUB character. IIRC it has 0x1a hex code.
    If u dont mind can u give me some more clarity regarding "CNTR+Z" signal,i understood about that "enter" signal,but i didnt abt "CNTR+Z".

    In the source code what i have to mention for "CNTR+Z"?
    can u give me any example abt this,

    thanks,

  5. #4
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: accessing the GSM modem using serialport in windows OS

    In the source code what i have to mention for "CNTR+Z"?
    can u give me any example abt this
    When you press cntr+z in some serial terminal software, it will simply send ascii char representing this cntr+z.
    Here is some link http://www.cisco.com/en/US/docs/ios/.../papascii.html

    So in fact you must send this char to gsm modem. It would be string with something like "\x1a".
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

Similar Threads

  1. Mac OS X - Accessing Windows Samba Shares
    By marcel in forum General Programming
    Replies: 1
    Last Post: 11th April 2007, 00:28
  2. Accessing Windows Registry
    By musaulker in forum Newbie
    Replies: 1
    Last Post: 29th March 2007, 00:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.