×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    RComm::Read/ReadOneOrMore never completes on N8

    I am trying to use AT-commands on the N8 but the call to RComm::Read or RComm::ReadOneOrMore never completes.

    The following works on N97 but on N8 the 'status2' never completes:
    ------------
    RCommServ s;
    RComm p;
    s.Connect();
    _LIT(KModule, "dataport");
    _LIT(KPort, "DATAPORT::1");
    s.LoadCommModule(KModule);
    p.Open(s, KPort, ECommExclusive);

    _LIT8(KCommand, "AT I0\r\n");
    TRequestStatus status;
    p.Write(status, KCommand);
    User::WaitForRequest(status);

    TBuf8<100> buf;
    TRequestStatus status2;
    p.ReadOneOrMore(status2, buf);
    User::WaitForRequest(status2);

    N97 reach this point, N8 does not, it is stuck...
    ------------
    Changing the AT-command does not help. And i assume the read shall complete even if the command is not supported.

    For N8 i build against the 0.9 SDK.

    Has anyone encountered the same problems or have any input about this?
    All hints are welcome.

    Also: On the page What's new in Symbian^3
    http://library.forum.nokia.com/index...E7AEC916F.html
    they mention 'Centralized AT-command Handling'. I have failed in finding any more informaiton about that. Anyone knows where info about that can be found?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: RComm::Read/ReadOneOrMore never completes on N8

    The name 'RecvOneOrMore' means that it does not complete until reading at least one byte of data. If the device does not reply anything to you, it will not complete.
    Note that Symbian^3 has open source code, and it often contains test code for the various modules. http://developer.symbian.org is the site, and then you can search in Source / Browse code, Search OSS code. I would suggest either the classes, RComm/Serv, or the word 'dataport' as search keys.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Re: RComm::Read/ReadOneOrMore never completes on N8

    Thank you for the response.

    One interesting thing to note is that: if the same command ('AT I0') is sent to the device from a PC using HyperTerminal - there is a response.
    I have tested other commands as well where response is expected, but i get the same behaviour, read never completes.

    I'll dig deeper into symbian.org and see if i find any interesting stuff.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: RComm::Read/ReadOneOrMore never completes on N8

    That is OK, just the USB connection may happen to be some other one than 'DATAPORT::1'

  5. #5
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Re: RComm::Read/ReadOneOrMore never completes on N8

    I iterated over available modules and ports. If port was opened successfully i tried to write and read. Here is the result.

    Module dataport:
    DATAPORT::0, 1, 4, 5, 6: no error when opening port, but call to read times out
    DATAPORT::2, 3: KErrPermissionDenied when opening port

    Module Ecacm:
    ACM::0, 1: KErrAccessDenied when opening port

    There is some confusion in forums on what capabilities is needed, but during the test i had
    CommDD NetworkControl NetworkServices ReadDeviceData ReadUserData WriteDeviceData WriteUserData
    which i hope shall be enough?

    So - so far, no sucess in reading.

  6. #6
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Re: RComm::Read/ReadOneOrMore never completes on N8

    Does anyone know where informaton can be found about the 'Centralized AT-command Handling' or the 'AT Extension Plug-in API'. These are mentioned under 'What´s new in Symbian^3'.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: RComm::Read/ReadOneOrMore never completes on N8

    Could it be that you had App TRK accidentally running on your N8. I am using a serial debugging tool. Today I ported it to N8. Initially I had problems to open ACM::1 port, but this disappeared (obviously) after I closed the port that App TRK had open ...

    BR,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

Similar Threads

  1. RComm cancel ReadOneOrMore and read again
    By jeetu_basai in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2010-02-22, 11:53
  2. RComm::Read problem
    By vineet.jain in forum Symbian
    Replies: 0
    Last Post: 2009-10-29, 11:20
  3. Replies: 0
    Last Post: 2008-11-07, 14:45
  4. Replies: 2
    Last Post: 2007-07-16, 15:48
  5. 3650 crashes on RComm.ReadOneOrMore
    By justcoder in forum Symbian
    Replies: 0
    Last Post: 2003-07-09, 01:35

Posting Permissions

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