DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 13 of 13

Thread: Receive sms by GSM modem to show in PC

  1. #1
    Join Date
    Apr 2006
    Posts
    56

    Receive sms by GSM modem to show in PC

    i now doing a project in send and receive sms by pc. anyone can show me the code in VB6? really urgent... and plus a help... anyone know the coding to print image, graphic or picture from own application program... is an POS printer (black color).. thanks a lot to who can help me!!!!

  2. #2
    Join Date
    Apr 2006
    Posts
    56
    i have the code for send sms, but i dont know how to change the code for receive sms.. plus i also cant find any webside got sample code about it. problem also occur in the POS printer.

  3. #3
    Join Date
    Apr 2006
    Posts
    50
    Can u post the code for sending one ?

  4. #4
    Join Date
    Apr 2006
    Posts
    56
    i post the code for u, but hope others can help me in the part i need help....

    here the codes...

    MDIForm1.MSComm2.CommPort = 1 'Comm Port
    MDIForm1.MSComm2.Settings = "9600,N,8,1" 'Comm Port Setting String
    MDIForm1.MSComm2.InputMode = comInputModeText ' Read Text
    MDIForm1.MSComm2.InputLen = 0 ' Entire buffer
    MDIForm1.MSComm2.PortOpen = True
    phoneno = "AT+CMGS=" & Chr(34) & stringhpno & Chr(34) & vbCr
    MDIForm1.MSComm2.Output = phoneno
    phoneno = strmessage & Chr(26)
    MDIForm1.MSComm2.Output = phoneno

    yeah... liverpool 3-1

  5. #5
    Join Date
    Jan 2007
    Location
    India
    Posts
    9

    how is it done in .net

    can somebody help me, to do the same given above in .net

  6. #6
    Join Date
    Feb 2007
    Posts
    5
    i now doing a project in send and receive sms by pc. anyone can show me the code in VB6? really urgent... and plus a help... anyone know the coding to print image, graphic or picture from own application program... is an POS printer (black color).. thanks a lot to who can help me!!!!
    To send SMS from PC, I used a GSM modem (got it from http://www.mobitek-system.com/Products/GSM_Modem.html), connect it to a PC, use VB6 with SMS API (ActiveX) (http://www.mobitek-system.com/SMS_Ga...S_Gateway.html)

    The SMS API can also be used in .Net, refer to http://www.mobitek.com.my/SMS_Gatewa...studionet.html

    Hope it helps!

  7. #7
    Join Date
    May 2008
    Posts
    1
    Quote Originally Posted by nigege
    i have the code for send sms, but i dont know how to change the code for receive sms.. plus i also cant find any webside got sample code about it. problem also occur in the POS printer.
    Hi nigege pls could you send me the code on how to even send sms to a gsm handset? Many thanks. Agada Sunday Removed By Mod
    Last edited by Hack; 05-09-2008 at 10:21 AM. Reason: Removed EMail Address

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    I have edited your post and removed your email address.

    You should never post your email address in an open post on an open forum. Mail spam bots can pick that up and before you know it, your mailbox is full of junk mail. If you wish to share your email address with other forum members, please do so via our PM system.

    In addition, we prefer all answers to questions be publically posted rather than sent via EMail or PM. That way, everyone with a similar problem can benefit.

    Thanks.

    (Did you see Post #4?)

  9. #9
    Join Date
    May 2008
    Posts
    1
    I'm following nigege's advice precisely...
    The messages was sent but it keeps sending blank messages...
    None of my messages were sent...

    MDIForm1.MSComm2.CommPort = 1 'Comm Port
    MDIForm1.MSComm2.Settings = "9600,N,8,1" 'Comm Port Setting String
    MDIForm1.MSComm2.InputMode = comInputModeText ' Read Text
    MDIForm1.MSComm2.InputLen = 0 ' Entire buffer
    MDIForm1.MSComm2.PortOpen = True
    phoneno = "AT+CMGS=" & Chr(34) & stringhpno & Chr(34) & vbCr
    MDIForm1.MSComm2.Output = phoneno
    phoneno = strmessage & Chr(26)
    MDIForm1.MSComm2.Output = phoneno


    Do i miss somethin? Can anyone help me?
    I've been trying this thing since yesterday... it's drives me mad...

  10. #10
    Join Date
    Apr 2006
    Posts
    56
    did ur "strmessage" have data?? actually u need to catch its return after output. 1st output u need catch ">", second output u need catch "+CMGS:"
    u try on it. my program is almost done by myself. and going to push it. now in demo version only. if u interest then can have a look my program from my company web

  11. #11
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by nigege
    my program is almost done by myself. and going to push it. now in demo version only. if u interest then can have a look my program from my company web
    Is it free, open source, or is the source code proprietary?

  12. #12
    Join Date
    Apr 2006
    Posts
    56
    my boss pay me 1 year salary for that software, is it possible become open source?? haha. so i wanna help other who think to do a open source software lo...

  13. #13
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Yeah, that is what I thought, but it didn't hurt to ask.

Similar Threads

  1. send long sms via gsm modem
    By swy456 in forum Mobile
    Replies: 15
    Last Post: 06-13-2018, 03:54 AM
  2. want some knowledge for sms from pc to GSM
    By N B Shah in forum Mobile
    Replies: 3
    Last Post: 10-01-2005, 02:00 AM
  3. Range of Server to wireless GSM modem
    By ebeam in forum Mobile
    Replies: 0
    Last Post: 09-03-2002, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center