General discussion

Locked

MSComm woes (& Nokia!)

By tym-techrepublic ·
I have an application using MSComm in VB6. This application is used to connect to a remote unit to download data from its datalogger. Once connected, I send a command to it to trigger the sending of the data. OK? With me so far? thought so....

Well... using a "normal" modem, I get ComEents 1 and 2 occuring quite normally. However, when using my Nokia 6310i modem, it triggers other events... this is causing a problem.

The Remote unit requires 2400,7,e,1 (re-arrange if necessary!) and Handshake = 2 port settings

Using the Nokia modem I get a CommEvent 4 as soon as the Remote Unit Answers then CommEvent 3 when the connection is made "CONNECT 2400"

Then when I send my command - nothing happens...

Why?

How can I correct this please - its driving me bats!!!

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by tym-techrepublic In reply to MSComm woes (& Nokia!)

FURTHER INFO:

After testing a number of events I can elaborate futher thus...

Once the remote unit answers the call, CTS and DSR are set to true.

However, when the handshake is complete. the CTS is then set to FALSE

What does this mean? Do I have to wait for it to return to TRUE before I can send my command? Is there a way to force it to TRUE?

Collapse -

by tech_wiz03 In reply to MSComm woes (& Nokia!)

sounds like you need to initialize the modem to not send responce codes. Your nokia is responding with connect and connect2400 which the others are not responding back with. Under hayes compatibility modems you have the chioce of receaving or not receaving responce to connects.

hope this helps
rick

Collapse -

by tym-techrepublic In reply to

Not true - the "proper" modem also returns "CONNECT 2400" which is perfect

Collapse -

by tym-techrepublic In reply to MSComm woes (& Nokia!)

Not true - the "proper" modem also returns "CONNECT 2400" which is perfect

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums