MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Sending SMS to port

This is a discussion on Sending SMS to port within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to retrieve, data from port7 and pass it to another computer through SMS, from port1 of same ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Sending SMS to port

I am trying to retrieve, data from port7 and pass it to another computer through SMS, from port1
of same computer.I am using 2 comm controls for same purpose.MSComm1 is commected to port1
and MSComm2 is connected to port2.Now my problem is that, i am able to retrieve data from port1,
but i am not able to SMS it to other computer.ReadMsg(MessageNo) is the procedure to send SMS.
The program do not show any error, but it foes not send SMS either.On debugging, the control passes
through ReadMsg() procedure, but do not send SMS.I am attaching the code with my query.
Do anybody have any idea?
Regards,
BN


Private Sub Form_Load()
If MSComm1.PortOpen = True Then MSComm1.PortOpen = False

MSComm1.RThreshold = 1
MSComm1.RTSEnable = True
MSComm1.Settings = "9600,n,8,1"
MSComm1.CommPort = 7
MSComm1.PortOpen = True
MSComm1.Output = "AT+CMGF=1" & vbCr

End Sub

Private Sub MSComm1_OnComm()

Dim MsgNo
Dim cominput


cominput = ""
cominput = MSComm1.Input

Text1 = Text1 & cominput

If InStr(cominput, "GetPos") > 0 Then
Call PortOpen
ElseIf InStr(cominput, "CMTI:") > 0 Then
MsgNo = (Mid(cominput, InStr(cominput, "SM") + 4))
Text3 = MsgNo
Call ReadMsg(Text3)
End If

cominput = ""

End Sub

Private Sub MSComm2_OnComm()
Text2 = Text2 & MSComm2.Input
End Sub

Private Sub ReadMsg(MessageNo)
Dim str
If MSComm1.PortOpen = True Then MSComm1.PortOpen = False
MSComm1.RThreshold = 1
MSComm1.RTSEnable = True
MSComm1.Settings = "9600,n,8,1"
MSComm1.CommPort = 7

MSComm1.PortOpen = True
MSComm1.Output = "AT+CMGR=" & MessageNo & vbCr

End Sub

Private Sub PortOpen()

If MSComm2.PortOpen = True Then MSComm2.PortOpen = False

MSComm2.RThreshold = 1
MSComm2.RTSEnable = True
MSComm2.Settings = "9600,n,8,1"
MSComm2.CommPort = 4
MSComm2.PortOpen = True

End Sub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-09-2004
techecho's Avatar
Junior Member
White Belt
 
Join Date: May 2004
Posts: 7
may not under stand question

If InStr(cominput, "GetPos") > 0 Then
Call PortOpen
???????
MSComm2.Output = "AT+CMGR=" & cominput & vbCr
???????
ElseIf InStr(cominput, "CMTI:") > 0 Then
MsgNo = (Mid(cominput, InStr(cominput, "SM") + 4))
Text3 = MsgNo
Call ReadMsg(Text3)
End If

"CMTI:" looks to be being sent back to CommPort = 7
but
"GetPos" only opens CommPort = 4 but does not send anything
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
port, sending, sms


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
COM port for GPS koan MapPoint 2006/2009 Discussion 0 09-15-2004 04:00 PM
IP and Port amitsh MapPoint 2006/2009 Discussion 1 03-24-2004 12:59 AM


All times are GMT -5. The time now is 01:33 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55