VB.net or C# samples for using AirLink Raven XT

do you need a sample code in c# or vb which communicates with modem over serialport?
if so, i can share a simple c# sample which demonstrates how to communicate over serialport.

// add this in using list
using System.IO.Ports;

// define needed variables
SerialPort m_serialport = null;
string m_incomingBuffer = "";

private void InitSerialPort()
{
       m_seriPort = new SerialPort();
       m_seriPort.PortName = "COM1";
       m_seriPort.BaudRate = 115200;
       m_seriPort.Parity = Parity.None;
       m_seriPort.DataBits = 8;
       m_seriPort.StopBits = StopBits.One;
       m_seriPort.Handshake = Handshake.None;
       m_seriPort.DtrEnable = true;
       m_seriPort.RtsEnable = true;
       m_seriPort.DataReceived += new SerialDataReceivedEventHandler(m_seriPort_DataReceived);
}
private void OpenSerialPort()
{
        // you must do error handling here
       m_seriPort.Open();
}
private void CloseSerialPort()
{
      // you must do error handling here
      m_seriPort.Close();
}
private void SendData(string data)
{
      // you must do error handling here
      m_seriPort.Write(data);
}

// this callback function will be triggered when there is some data on serialport
void m_seriPort_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
       m_incomingBuffer += m_seriPort.ReadExisting();
 }

And you can communicate with modem by the following routine. Of course you need error checking again.

// create serial port object and set its variables
InitSerialPort();
// open serial port object
OpenSerialPort();
// send AT command to modem
SendData("AT\r");
// you will then get "OK\r\n" response in "m_seriPort_DataReceived" function. And then you can send any other command or just close the port.