PDA

View Full Version : !!! New program with AT commands



Crux
12-05-2003, 07:14 PM
Hi. i am making a new program using AT commands
in vb6, i can send it to phone by using mscomm1.output but how can i read the results from phone?
for example, how can i read messages?
can anyone post here a sample using at commands?
maybe a source code

I hope this program will do everyting that this programs does:

logo manager
hex editor
win arm
rolis tool
rolis flasher
flsedit
ppmedit
g3neolite
...
...




as soon as my first release is ok, i will share it and source code here on this post. maybe a month
thanks a lot!

yongmuh
14-05-2003, 04:22 AM
use mscomm1.input to get result

Crux
15-05-2003, 07:12 PM
thanks, but check this out:

Private Sub Command1_Click()
MSComm1.CommPort = 1
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
MSComm1.Output = "AT" & Chr$(13) & Chr(10)
MSComm1.Output = "AT+CMGF=1" & Chr$(13) & Chr(10)
MSComm1.Output = "AT+CSCA=" & Chr(34) & "+351911616161" & Chr(34) & Chr$(13) & Chr(10)
MSComm1.Output = "AT+CMGS=" & Chr(34) & "+351912345678" & Chr(34) & Chr$(13) & Chr(10)
MSComm1.Output = "HELLO WORLD" & Chr$(13) & Chr(26) & Chr$(13) & Chr(10)
Text1.Text = MSComm1.Input
MSComm1.PortOpen = False
End Sub

this was supposed to send an sms with the smsc specified to the number.
Should this work? i got this code at som webpage but i can't put it working

yongmuh
16-05-2003, 05:24 AM
Sure it cannot work!!

For nokia, the settings should be 9600,O,8,1 (if i am not mistaken)

So all the at command cannot work, the data sent and receive were also in the format like this: 0x01 0x02 0x03...

Crux
17-05-2003, 12:47 PM
OK, settings were worong. that's right.
but can you fix this sample for it works?
thanks a lot

yongmuh
17-05-2003, 04:41 PM
I don't have time to help you, sorry!!
(university will open & i have to go soon...)

You may view a reference here (http://3ton.com/besik/busik.html). Hope it helps!

Best regards,
N-Y-M
11:58 PM 5/17/2003