Gprs Modem on serial port - problem

Mike
Hello,

I have a problem with uploading big(>300KB) files via FTP client to
mini2440 which has GPRS modem connected on one of its serial ports. The
communication stops always with 262.144 bytes transfered wihich is equal to
256KB, so it seems to me that some kind of buffer gets filled and than it
stops. I tried several modem manufacturers and the outcome is always the
same so it has to be something with the mini. The wierd thing is that i can
download files normaly.

Anybody got any ideas?

Sham
Which is the file system u r using in ur mini2440??

Mike
I am using the TFAT file system.

NothinRandom
Could it be an error in code (if you're writing your own application)?
Perhaps try a different port?

Sham
i dont think there should be a issue with tfat file system
i guess there should be an error in your application.
cannot comment without actually without looking at your source code

if possible please attach your application source code

TheRegnirps
Who is you cellular service provider? Can you upload a larger file from
your PC?

Mike
Yes, I can upload files when I connected to mini2400 over Ethernet.

I wrote my own application, and I use RasDial function for establishing
connection.

public bool Connect(HELM.Hardware.Devices.CModem modem)
{
  try
  {
    Callback rasDialFunc = new Callback(RasDialFunc);
          RasDial(IntPtr.Zero, IntPtr.Zero, this._rasEntry, uint.MaxValue,
rasDialFunc, ref this._connectionHandle);
    return true;
  }
  catch (Exception ex)
        {
                CTrace.WriteLine(ex.Message);
    return false;
        }
}

private void InsertRasDialParameters()
{
  ClearPtr();
  IntPtr pCurrent = this._rasEntry;
  Marshal.WriteInt32(pCurrent, ENTRY_SIZE);

  pCurrent = (IntPtr)(pCurrent.ToInt32() + 4);
  foreach (byte b in Encoding.Unicode.GetBytes(this._connectionName))
  {
    Marshal.WriteByte(pCurrent, b);
                pCurrent = (IntPtr)(pCurrent.ToInt32() + 1);
  }

  pCurrent = (IntPtr)(this._rasEntry.ToInt32() + 0x192);
  foreach (byte b in Encoding.Unicode.GetBytes(this._userName))
  {
    Marshal.WriteByte(pCurrent, b);
    pCurrent = (IntPtr)(pCurrent.ToInt32() + 1);
  }
  
  pCurrent = (IntPtr)(this._rasEntry.ToInt32() + 0x394);
  foreach (byte b in Encoding.Unicode.GetBytes(this._password))
  {
    Marshal.WriteByte(pCurrent, b);
    pCurrent = (IntPtr)(pCurrent.ToInt32() + 1);
  }
}

private static void RasDialFunc(uint unMsg, int rasconnstate, int dwError)
{
}

When I establish a connection manually (Start->Settings->Network and
Dail-up connections, GPRSv1->Connect) everything works normally.

I think that the problem is in some parameters, maybe in RASBooks
parameters ([HKEY_CURRENT_USER\Comm\RasBook\GPRSv1]), but I cannot find 
any documentation about those parameters.

Sana
Hello, I have got two GPRS modules from your site 
http://www.forlinx.net/ProductsClass9/13.htm 
  I want to  connect it to pc using hyper terminal but i failed in doing
so, the AT command are not responding to , please tell me the initials to
use your modem with the PC  I am stucked with it.