Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User achu2203's Avatar
    Join Date
    Nov 2008
    Posts
    34
    Hi,
    I want to transfer data over USB serial connection using RComm.
    I am referring this.
    http://wiki.forum.nokia.com/index.ph...dition_devices
    But not able to open the port
    Code:
    User::LeaveIfError( commPort.Open( server, portName, ECommShared ) );//leave code -21 KErrAccessDenied
    I am not sure whether the port is being used by some other process.
    Please help to solve this.
    br,
    Achu

  2. #2
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    Looks like port is busy. Make sure to close down any other applications using the port on the PC.

  3. #3
    Registered User achu2203's Avatar
    Join Date
    Nov 2008
    Posts
    34
    Thanks for your reply.
    But i am trying it on emulator not on device. Is it not possible to check in emulator?
    Please guide

  4. #4
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    The Symbian OS provides USB client support on reference hardware. There is no such support in the emulator.

    So try to test your application on real device.

  5. #5
    Registered User achu2203's Avatar
    Join Date
    Nov 2008
    Posts
    34
    ok..thanks
    I will try.

  6. #6
    hello, I Had The Same Problem, Using It On Real Device, Can Anyone Help ?

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    Basically if the port is in use, you would need to find out ways on releasing it, which propably will be difficult, or even impossible.

    Or you should try using different port.

    of course if you get different errors than what has been discussed, then the problem and thus the solution could be different.

  8. #8
    It Worked, I Wasn't Connecting The Cable To The PC While Running The App, Thanks For Your Help

  9. #9
    i'm sorry , another thing , how can i read and write to the serial com port ?, is there an example code for this ?

  10. #10
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    Quote Originally Posted by mrvoltanetwork View Post
    i'm sorry , another thing , how can i read and write to the serial com port ?, is there an example code for this ?
    there are no serial ports with S60 devices, so you might want to specify a bit more clearly on what is the sue case you would want to achieve and how.

  11. #11
    I want to use the serial communication via USB, to control a microcontroller with serial interface, i did it now, i wrote to a program i made on the pc, but after completing the write , the program closes itself, that's the problem now

  12. #12
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    I suppose closes thing to that in our wiki would be: http://www.developer.nokia.com/Commu...dition_devices

  13. #13
    that's what i did, thanks for your help

Similar Threads

  1. C++ exceptions VS Symbian Leaves :)
    By metalim in forum Symbian C++
    Replies: 18
    Last Post: 2009-04-15, 11:54
  2. HookLogger and leaves monitoring
    By nuker85 in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-11-27, 07:51
  3. Commiting change on CMsvEntry using ChangeL leaves
    By dejan_medic in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-08-10, 08:37
  4. Why leaves with KErrOverflow???
    By supersuperguo in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-10-16, 08:49
  5. About leaves on HTTP API.
    By kosjanne in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-15, 07:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved