|
|
| |
|
|
|
SMSDriver class
Full name
HeadwindGSM.SMSDriver
Properties
- String PortName - port name;
- Boolean Advanced - using advanced settings (baud rate, data bits, stop bits, parity);
- Long BaudRate - baud rate for serial port;
- Long DataBits - number of data bits for serial port;
- String Parity - parity of serial port (available values: "none", "odd", "even", "mark", "space");
- Long StopBits - number of stop bits for serial port;
- String SendMode - sending mode (available values: "pdu", "text");
- String ReadMode - read mode (available values: "index", "content", "polling", "none");
- String DeleteMode - delete mode (available values: "none", "last", "all");
- String PollingMemory - memory used for polling (available values: "SM", "ME");
- Long PollingTime - polling time (in seconds);
- Long DeleteAfter - how many SMS to skip before deleting all SMS;
- Long Timeout - serial port timeout for receiving reply from a modem (in seconds);
- Boolean AutoConfig - autoconfiguration flag (FALSE means manual configuration);
- [read-only] String ModemName - modem name (can be retrieved only after the connection);
- [read-only] Long SignalStrength - signal strength in percents (can be retrieved only after the connection);
- Long ModemChecks - Flags showing which modem checks to perform after connection:
0x0001 - SMS support
0x0002 - SMS mode
0x0004 - Receiving mode
0x0008 - Error mode
0x0010 - Deleting mode
0x0020 - Device
0x0040 - Signal strength
0x0080 - Available memory
- [read-only] Long ModemFeatures - determined modem features:
0x0001 - SMS support (GSM 03.40)
0x0002 - SMS support (Phase 2+)
0x0004 - Text mode supported
0x0008 - PDU mode supported
0x0010 - Can receive SMS
0x0020 - Received SMS are stored (notification by index)
0x0040 - Received SMS are output (notification by content)
0x0080 - Error mode "suppress errors"
0x0100 - Numeric error reporting
0x0200 - Text error reporting
0x0400 - Can delete by index
0x0800 - Can delete all messages
0x1000 - Can send USSD requests
0x2000 - Can receive replies to USSD requests
- [read-only] Long ModemFailures - Features which were failed to determine (flags are the
same as for ModemChecks);
- [read-only] String StatusStr - status string ("disconnected", "ready", "configuring", "busy", "error");
- [read-only] Long StatusCode - status code (0 - disconnected, 1 - ready, 2 - configuring, 3 - busy, 4 - error);
- [read-only] String ErrorStr - error string;
- [read-only] Long ErrorCode - error code (reserved).
Methods
- Connect() - establish the connection with the modem;
- Disconnect() - break the connection;
- OpenConfigWizard() - open the modem auto-configuration wizard. This function does not
return until the wizard is finished.
Events
- SMSStatusChanged(Long id, Long StatusCode) - notification on the changing of an
outgoing SMS status. The following status codes are returned: 1 - sent, 2 - failed, 3 - delivery
report received, 4 - undelivered.
- USSDReply(String content, Long code, String rcpt) - notification on the reply to USSD
request. The field 'content' contains the USSD reply, 'code' is the USSD result code
(0 - OK, 1 - action required, 2 - USSD terminated, 4 - not supported), 'rcpt' is reserved for
further use.
|
|
|
|
|
|
|