RS232 Port Communication using VB6.0 and AT Command Sets

V

Thread Starter

viji

hi,

i am viji. I am doing my final year project.

My doubts regarding as follows:
1. How can we link the AT Command Sets and VB6.0?
2. How can we transfer the messages (AT Command Sets) to VB6.0?
3. How can we send and receive the data using RS232 port in VB6.0?
 
K

kalpak dabir

Third question first, read the VB6.0 help (MSDN). The 1st two questions are then easier to solve on your own.
 
M

Manoj Mathew

Viji,
Use MSComm control to communicate in ASCII to devices using com port.

Eg. The following lines sends the ascii string "AT" through com port. (com1 or com2 port depending on CommPort property)

MSComm1.PortOpen = True
MSComm1.Output = "AT" & Chr(13)
MSComm1.PortOpen = False

In some cases, you may need to also use Chr(10) also in addition to Chr(13) for enter key / line feed.
 
Top