×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    21

    Serial Communication Issue

    Hi,
    I have a mobile application that sends certain data n number of times (it can be any number), the data sent is read by another application running on some pc.
    The issue which i am facing is that, while writing the data on the port, at times the TRequestStatus stays pending only, Where as the data chunk on which the application stopped was successfully read by the other application, but my application stays in Pending state only.... Please help???

    Is there any issue with port settings....

    I tried the same application on two mobiles and send 10,000 messages. one handset completed the transimmision successfully and other got stuck with pending state on 2543th message.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Serial Communication Issue

    maybe you could, cancel the sending with timer, and then try again.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    21

    Re: Serial Communication Issue

    Thnx but i think thats not a good solution, there must be some thing wrong some where.
    Because its happens occasionally....
    Below are the port settings used in the mobile application:


    TCommConfig portSettings;
    iSerialSender.Config (portSettings);
    portSettings ().iRate = EBps115200;
    portSettings ().iParity = EParityOdd;
    portSettings ().iDataBits = EData8;
    portSettings ().iStopBits = EStop1;

    portSettings ().iFifo = EFifoEnable;
    portSettings ().iHandshake = (KConfigObeyCTS | KConfigFreeRTS | KConfigObeyDTR | KConfigWriteBufferedComplete); // for cts/rts

    portSettings ().iTerminator[0] = 10;
    portSettings ().iTerminatorCount = 1; // so that we terminate a read on each line feed arrives

    r = iSerialSender.SetConfig (portSettings);
    User::LeaveIfError (r);

    iSerialSender.SetSignals (KSignalDTR, 1);
    iSerialSender.SetSignals (KSignalRTS, 1);

    Kindly let me know if i am missing out something........

Similar Threads

  1. serial port communication
    By tondevold in forum Mobile Java General
    Replies: 2
    Last Post: 2009-05-08, 12:15
  2. problem in serial communication between pc and mobile
    By prakashvs in forum Bluetooth Technology
    Replies: 4
    Last Post: 2008-09-15, 08:10
  3. Nokia x Serial Communication
    By aleke in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-10-16, 19:35
  4. Serial communication with Java/Symbian ?
    By neo002 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2003-07-15, 11:09
  5. communication via serial port
    By baumi78 in forum Mobile Java General
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×