Blank buffer from MSComm

G

GeorgeMar

I have some software that uses MSComm with mobile phones but I am having
trouble trapping the Input from the onComm event.

The puzzle is that it works fine for a Motorola phone but not for an Erisson.

Here is the code that I am using

Private Sub MSC_OnComm()
Static Buffer as String
Dim Pos as Integer

If MSC.CommEvent=comEvReceive Then
Buffer=Buffer & MSC.Input
Pos=InStr(Buffer,Chr$(13))

If Pos>0 Then
txtSend=Buffer
txtsend.requery

The above gives me the feedback from the device which is displayed in the
control txtSend.

All the settings are the same with the exception of the Com Port. Both
phones send messages OK but only the Motorola receives the feedback.

Does anyone know why it might work for one phone and not another?


many thanks
george
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top