Serial connection via DKU-2

Login to reply to this topic.
Wed, 2005-03-23 10:23
Joined: 2004-05-20
Forum posts: 83
Hello, world!

Does anyone know is it possible to establish a serial connection between the phone device and PC by means of DKU-2 cable?

I have looked through the Internet, Symbian SDK and documentation and have found nothing about DKU-2. So I decided to make my own research manoeuvring cautiously between successes and fails. I decided to get serial connection like IrDA and Bluetooth allow to get via IRCOMM and BTCOMM CSYs. But there are only fails, no any success.

By practical consideration I have found ecacm.csy, eusbc.ldd and eusbc_ts.ldd inside z:\system\libs, discovered the port name, ACM::0, which should be used where COMM::0 is applied in usual way. Everything seems to work well at first glance, PDD has loaded OK (I'm loading EUART1), LDD has loaded OK (I'm having loaded as EUSBC single as EUSBC and EUSB_TS simultaneously), the communication server has started via StartC32(), CSY module ECACM has then loaded OK with KErrNone. But the last operation which is subsequent port opening for ACM::0 always returns -21, KErrAccessDenied.

Could anyone tell me what I do wrong and whether it is expedient to continue doing my tries in general? Is it possible in general to make basically thing I want?

c0deab1e


Wed, 2005-03-30 10:52
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
So anybody does not know any answer? Is it even possible?

c0deab1e

Wed, 2005-03-30 14:11
Joined: 2004-07-28
Forum posts: 1379
Serial connection via DKU-2
On what device are you running this?

Is it a real phone or a refrence board?

You'll probably find one of the OS background services has the port open for exclusive access - PC connectivity suite etc.

I can confirm this is possiable, but this is using a refrence board with all the non-essentail OS tasks removed from the ROM image.

didster

Wed, 2005-03-30 15:49
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
I run it on a real device Nokia 6260. I have suspicion that there is some service inside the phone OS which starts at bootup time and exclusively holds the port, but I don't know neither name of the service nor any way to shutdown that service.

c0deab1e

Thu, 2005-03-31 08:38
Joined: 2004-07-28
Forum posts: 1379
Serial connection via DKU-2
Probably yes.  Probably likley something related to mRouter - the PPP part of Symbians/Nokia's connectivity suite.

Here is what I would try.

1.  Remove all mRouter entries from your Comms DB on the phone.  Some earlier versions of mRouter refused to start if these entries where missing (newer ones just readd them).  I can't say for sure which version is on that phone, so it's worth a try.  Post here if you need help doing it.

2.  Get a task manager, and look for the process "iserverarcexe.exe".  Find it, and terminate it.  Then try your app again.

3.  Boot the phone holding down the pencil key.  This will boot without runing and loading the recogs (which start most apps on boot) - so you will have most non-essential services not started.

None of these help you with getting it working on a users phone (from your private message, I assume you will need to) - but they are at least a start in pinning down the culpret.

didster

Thu, 2005-03-31 10:28
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
1) Nokia 6260 does not require mRouter, previous phones like Nokia 7650 did.

2) There is no iserverarcexe.exe process running, there in no file with this name at all. I have dumped full contents of drive Z: on my local drive and searched through there. I have tried to terminate usbsrv.exe, the phone said that FaxModem app is closed and hang up in a few minutes.

3) Holding pencil key while bootup does not help, the same services are loaded as before.

Unfortunately the communication in OBEX way does not satisfy communication  conditions and, besides, OBEX realization turns out very slow, even more slowly than via Bluetooth. And sense of use of DKU-2 cable is to accelerate exchange data process as much as possible.

c0deab1e

Thu, 2005-03-31 14:14
Joined: 2005-03-31
Forum posts: 1
Serial connection via DKU-2
hi,

although it is not exactly what you have asked for, but after killing the FaxModem process (it respawns 2 times) on nokia 7610 i was able to establish a ppp link over ACM::0 (uses ECACM and PHONETSY in commdb modem config and KNullDesC as the phone number in the ISP config) with a remote box (pppd and mrouter tested also with nokia 9500). maybe this info can help you in some way.
Thu, 2005-03-31 14:26
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
I do not want ppp link which assumes ppp protocol, I need something like serial link via BTCOMM, ECUART and IRCOMM CSYs.

c0deab1e

Fri, 2005-04-01 16:02
Joined: 2005-03-28
Forum posts: 9
Serial connection via DKU-2
I had the same problem. Here is  what i did and solved it.

   _LIT8(KFAXMODEM,  "FaxModem" );


   TBuf8<50> buf;
   TFullName repName;

   TFindProcess process;
   while(process.Next(repName) != KErrNotFound)
   {
      buf.Copy(repName);
 
         if ( (buf.Find(KFAXMODEM) != KErrNotFound) )
       {
         
          RProcess aProcess;
          aProcess.Open(process);
          aProcess.Kill(0);
          aProcess.Close();
         
      }
   }
Fri, 2005-04-01 19:25
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
plamendev, which phone model you did this on? I've just tried this code on Nokia 6260 with no success. After killing FaxModem service respawns again, it repeats for three times against two as horizon said, and all three processes remain to live in memory and in the process list (TFindProcess finds them constantly) and no one of them could be terminated anymore. And anyway opening ACM::0 still returns -21, KErrAccessDenied.

c0deab1e

Mon, 2005-04-04 08:15
Joined: 2005-03-28
Forum posts: 9
Serial connection via DKU-2
I tried that on:
Nokia 6260
Nokia 6630
Nokia 7610

And on all that phones i was able to open the port. On different phones some times the process is killed once or twice but finnally my app start successfully and port is opened.
Tue, 2005-04-26 11:54
Joined: 2004-11-23
Forum posts: 1
No sucess on 6630
Hi Plamendev,
I tried the FaxModem kill on 6630 with following configuarion
LDD_NAME = EUSBC
csyName = ECACM
port name = ACM::0

but doesn't seem to work Cry  .FaxModem kill restarts the device and without the kill ,port open fails with -21!!
Can you give me the source code for the same,right from loading the drivers till opening the port(maybe I'm missing something in my code,like the various fussy flags with windows SDK)?

I have also seen a documentation stating that ECACM is meant to be for Symbian partenes.Is that resulting an access denied for me?

Thanks a lot in advance!!

-Pradeep

Pradeep

Tue, 2005-05-10 00:11
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
pbhimellu, why does killing FaxModem restart the device? Could you post your code that causes this? I cannot even imagine the situation, many thanks to plamendev everything works fine for me.

c0deab1e

Thu, 2005-05-12 07:26
Joined: 2005-05-12
Forum posts: 26
Serial connection via DKU-2
Hi,
I'm experiencing similar problems with my 6630.
When trying to open "just like that" the ACM::0, commPort.Open (...) returns -21.
After the third "kill" of the FaxModem, it is gone.
Then I try to open ACM::0 again, but commPort.Open (...) returns -5. Immediately afterwards, the screen dimms off and the phone restarts.
I'm using an adapted version of the console test program "glassterm" included in the Symbian SDK.
Thu, 2005-05-12 09:12
Joined: 2004-05-20
Forum posts: 83
Serial connection via DKU-2
Uncle Sam, -5 means KErrNotSupported. Have you loaded all neccessary LDD/PDD before opening?

c0deab1e

Thu, 2005-05-12 09:24
Joined: 2005-05-12
Forum posts: 26
Serial connection via DKU-2
Thx for your fast response.
I did the following (shorten to the important):
Code:
_LIT(LDD_NAME,"ECOMM");
_LIT(PDD_NAME,"EUART1");
_LIT(RS232,"ECUART");

User::LoadPhysicalDevice (PDD_NAME);
User::LoadLogicalDevice (LDD_NAME);
server.LoadCommModule (RS232);
I think u r right, I need to load another comm module, but which?
Does it have to be PDD=EUART1, LDD=EUSBC (and not ECOMM) and/or LDD=EUSB_TS?
And do I need CSY module ECACM?
(That's what I read in ur first post, but I didn't understand everything.)

Sorry I'm quite a newbie to Symbian, so it would be great if u could help me a little bit, thx.
  • Login to reply to this topic.