Error code -21 or -5 while running the GlassTerm sample application

This is a discussion on Error code -21 or -5 while running the GlassTerm sample application within the Symbian forums in Other Technologies category; Hi, We have 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 ...

Go Back   Application Development Forum > Other Technologies > Symbian

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 02-12-2008, 07:56 AM
anithajustin
Guest
 
Default Error code -21 or -5 while running the GlassTerm sample application

Hi, We have 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); Please help us running this program successfully, as we are interested to do the Serial communication module for Symbian mobile. Thanks, Anitha
Reply With Quote
  #2  
Old 02-12-2008, 10:04 AM
khalid
Guest
 
Default Re: Error code -21 or -5 while running the GlassTerm sample application

Hi,
The link below shows you how to open a COM port, you need to be logged in t=
o access this link:-
[http://www.sonyericsson.com/develope....do?id=3D3972]

When you send information through the port, use RDebugrint and RDebug:wri=
te.

Regards
Khalid

Symbian Ltd
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:28 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.