Error code(-5 or -21) for GlassTerm sample application

Login to reply to this topic.
Tue, 2008-02-12 14:00
Joined: 2008-02-12
Forum posts: 2

Hi,

We hav Puzzled e executed the GlassTerm application (which is available in UIQ examples -> SymbianCompatible->SerialComms ) in Emulator.
1. Sometimes we are able to open the port COMM::0 and in the console we could able to see the "Powering up the port". After that we could not able to proceed further, since we dont know the procedure to continue the execution.
We could able to successfully execute till the following lines:

commPort.Read (readStat, localInputBuffer, 0);

User::WaitForRequest(readStat);

r = readStat.Int ();

User::LeaveIfError (r);

2. Sometimes we are finding error in Opening the port only. It is giving the leave code error -21 for COMM::0 and -5 for COMM::1

we are getting error from the following lines

console->Printf (KMessage9, &portName);

r = commPort.Open (server, portName, +ECommExclusive+);

User::LeaveIfError (r);

Note: the screenshots for both the scenarios are attached as Zip file

Please help us running this program successfully, as we are interested to do the Serial communication module for Symbian mobile.

Thanks,
Ashok

AttachmentSize
glassterm.zip155.1 KB

Thu, 2008-02-21 07:51
Joined: 2007-04-29
Forum posts: 51
Re: Error code(-5 or -21) for GlassTerm sample application

Hi
generally, a error code returned by the serial communication API is defined in E32err.h.

You can find out them.

And you can not run application on emulator successfully. this kind of application must run on phone.

hope it's helpful

  • Login to reply to this topic.