Monday, July 26, 2010

My Paper: ROBIO 2008 (Guidance and Control Synthesis for a Short-range Homing Surface-to-air Missile)

Hi, 2 years ago i submitted a paper in IEEE event, ROBIO 2008. Click the following link.
Paper-Robio-2008-Bangkok-final.pdf

Its about classical control, proportional guidance, and navigation of a simple hypothetical missile. May be later, I will discuss it here.

Debugging (a more elegant way)

OK, this way of debugging is more elegant but can't see it working in a real device. So it's only for S60 2nd emulator. Create an empty file in [EPOCROOT]\winscw\c named ErrRd. Please note, no extension.

for example
C:\Symbian\8.1a\S60_2nd_FP3\Epoc32\winscw\c\ErrRd

and there you go. Run your app in emulator, and if there is an error, the emulator will raise a pop up note including the panic code. See the SDK documentation for the explanation of this error. Happy coding.

How to Debug Symbian C++

Hi guys/girls.

Um, this time i would like to share; how to debug your Symbian C++ code. Actually and as the most right and elegant way to do debugging, you need to put a breakpoint to your suspicious code line. But, i don't really like the way Carbide C++ 1.2 do it. So this is my way.

Suppose you have these lines of code

code1;

function1(code1);

code2=code1;


If the application crashed, and you think that function1 is wrong, create globalnote and display it before and after the function1.

code1;

CAknGlobalNote* globalNote = CAknGlobalNote::NewLC();
globalNote->>ShowNoteL(EAknGlobalInformationNote,_L("Before"));

function1(code1);

globalNote->ShowNoteL(EAknGlobalInformationNote,_L("After"));
CleanupStack::PopAndDestroy(globalNote);

code2=code1;


So, if Before message is popped-up but there is no "After" message popped-up, you're right, there is something wrong with function1. Happy coding.

PS: make sure you include aknglobalnote.h at the beginning of your implementation file.

#include
.
.
.

Find your SIM Card IMSI number

Hello.

Few days ago, I am in a need of IMSI of my SIM card. If you'd like to know what is IMSI, see this. So, i build a small Symbian based application, compatible with S60 2nd FP2 (haven't try it on other version).

Just install the following app, and open it. There are only two function, ie; getting IMEI and Phone model and getting IMSI number. Hope it helps.

CobaDevInfo.sis

First step to Symbian C++

Hello.

This is my first post on this blog. Um... I'd like to share a knowledge, how to prep and install Symbian Tools needed to create a Symbian S60 based application. If you haven't know what is Symbian S60, see this. Well, this is C++ language though.

OK, to get started, download S60 SDK also at the link listed above. Then, you need to install ActivePerl. see this. Install it. If you use Windows 7, then the installation won't be able to add environment path. So ad manually. Go to advanced system settings, click environment variables.... Then, on System Variables group, edit the "Path" Variable, add

;C:\perl\bin\

Make sure to add ';' character before the string.

SDK done, ActivePerl done, it's time to install IDE software. You may use Microsoft Visual C++, Warrior. But, i personally prefer Carbide.C++ IDE. The download site is this.

OK, there you go. For the first time, you may need to create a try-out project. Click File on the IDE, then select create Symbian Project. Just follow the dialog, and you'll be good to go.



Ok then, we need to build the project so that it can be installed on S60 phone. First, you need to set the build target to ARMI phone.



Final step. Go to Project | Build Project. You're done. Install it on your S60 Phone.