The BaudRate property specifies the baud rate at which the connected GSM Modem or Phone communicates with the computer.
| Usage |
|
| Value Type | Long |
| Access Mode | Read/Write |
| Valid Values | 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 230400, 460800, 921600 |
| Default Value | 19200 |
| Remarks | For proper communication between GSM Modem and the computer, the values set in the properties BaudRate, Parity, DataBits and StopBits should be same as settings of these communication parameters in the GSM Modem. |
| Visual Basic / ASP (VBScript) |
| Dim objSMS As mCore.SMS Set objSMS = New mCore.SMS ' You can also use Set objSMS = CreateObject("mCore.SMS") ' In case of ASP (VBScript) to create object use ' Set objSMS = Server.CreateObject("mCore.SMS") ' In ASP use Response.Write instead of MsgBox objSMS.Port = "COM2" objSMS.BaudRate = 57600 objSMS.Parity = "N" objSMS.DataBits = 8 objSMS.StopBits = "1" If objSMS.Connect Then MsgBox "Connected Successfully!" objSMS.Disconnect Else MsgBox "Error " & CStr(objSMS.ErrorCode) & _ ": " & objSMS.ErrorDescription End If Set objSMS = Nothing |