comunicazione seriale mscomm
Hi,
tjalps said:
Do you have COM3? Did you test if your COM port is working with any terminal program?
You should first verify the above points.. verify if you are receiving any data on hyperterminal or any other serial terminal then go for vb program.
There are few good guidlines I have red some-where , which should be followed when working on serial communications..
:idea:
Always build your project in steps.
Start with small, manageable pieces of code, (that deal with serial communication) and test them, one individually.
Add more and more small pieces, testing them each time, as you go.
Never write a large portion of code that works with serial communication without testing its smallest workable pieces first.
:idea:
Pay attention to wiring.
Take extra time to study and verify serial communication wiring diagrams. A mistake in wiring can cause strange problems in communication, or no communication at all. Make sure to connect the ground pins (Vss) between the devices that are communicating serially.
:idea:
Verify port setting on the PC .
Unmatched settings on the sender and receiver side will cause garbled data transfers or no data transfers.
If the serial data received is unreadable, it is most likely caused by a baud rate setting error, or a polarity error.