How to edit source code of a particular protocol and see the output in Qualnet?

9 views
Skip to first unread message

kanwal.p...@gmail.com

unread,
Nov 18, 2013, 2:16:57 AM11/18/13
to Qualn...@googlegroups.com
Hi can you explain, how to edit the source code of a particular protocol  in Qualnet. I mean from the basics, how do you edit the code and see the output in Qualnet?. I am working on multicast protocol ODMRP and want to edit the same. Your help will be appreciated.

Thanks
Kanwalpreet

Ankur Tyagi

unread,
Nov 19, 2013, 3:02:39 AM11/19/13
to Qualn...@googlegroups.com
Dear Kanwalpreet,

Have you gone through programmer's guide? It is a basic guide that can
help you understand programming concepts related to qualnet. It is
present in Qualnet_Home\documentation folder.

Thanks and regards.

Ankur Tyagi
Tech Lead
Eigen Technologies Pvt. Ltd., Delhi
> --
> You received this message because you are subscribed to the Google
> Groups "Qualnet Pune" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to QualnetPune...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

kanwal.p...@gmail.com

unread,
Nov 19, 2013, 4:31:57 AM11/19/13
to Qualn...@googlegroups.com, an...@eigen.in
Hello Sir,
 
Thank you so much for your reply. Actually I started with debugging the code in Visual Studio C++2010 Express Edition. First of all I am not able to find main function, so not able to track where to start from. Secondly I want to debug .cpp file for my protocol ODMRP. But in programmer's guide in topic 2.6.1, it's mentioned that
  Set Command Arguments to the name of the scenario configuration (.config) file to be debugged.
Set Working Directory to the directory where the scenario configuration file is located. 

I updated those changes as mentioned there, but got the error similar to "Source file not found". and moreover why should I give command argument as .config file, as I need to debug .cpp file. Are there any other changes too, which I have to make over there?
And Sir please provide some material other than as in documentation folder, because step by step description is not there, it's very precise. I searched everywhere on internet, I found no tutorial. I saw your presentation on Qualnet in Amity on youtube, but there also you have given the basic introduction . I believe that you can surely help me out. As I am Mtech Final year student(N/W Systems), I am using Qualnet for my thesis, but stuck over there.
Please guide me  for the same. Thanks in advance.

Thanks and Regards
Kanwalpreet Kaur

Ankur Tyagi

unread,
Nov 20, 2013, 1:34:55 AM11/20/13
to kanwal.p...@gmail.com, Qualn...@googlegroups.com
Dear Kanwalpreet,

You can't see main function of qualnet as it is part of qualnet kernel but to understand the code flow you may start with OdmrpInit function. I will still suggest you to go through programmer's guide as it is already mentioned in this doc that how you can understand the flow of a code running at a particular layer.

Regarding debugging, you might be doing something wrong. Had you made changes in required makefile present in Qualnet_home\main folder.

Always remember that when you debug, you are not debugging a cpp file but qualnet.exe. In debugging you can just make qualnet.exe pause when it hits a breakpoint present in required cpp file. Also, .config is required as argument to run qualnet.exe. Thus you need to provide this info to debugger also.

Regarding documentation, I still suggest that you go through programmer's guide once as it will answer most of your questions.


Thanks and regards.
Ankur Tyagi
Tech Lead
Eigen Technologies Pvt. Ltd., Delhi

kanwal.p...@gmail.com

unread,
Nov 25, 2013, 1:52:43 PM11/25/13
to Qualn...@googlegroups.com, kanwal.p...@gmail.com, an...@eigen.in
Hello Sir,

As u advised, I read the Programmer's guide till Chap 3rd, as far as necessary for Debugging information. I made all the changes in Makefile as mentioned in programmer's guide. and also set the debugger properties as mentioned in it. But still gettin the error while debugging. Not able to track , where I am wrong. Are there any other changes too, apart from as mentioned in Programmer's guide, which i have to make, in other makefiles which are included in main Makefile?. I am using Qualnet 6.1 and visual studio C++2010. Refering 2.6.1 topic of programmer's guide. Please guide , if any other changes required. I have attached screenshots of the error. PFA for it. Please guide if you are able to recognize the error. Looking forward for your reply.

Thanks and Regards
Kanwalpreet Kaur
error.GIF
error1.GIF
output.GIF

Ankur Tyagi

unread,
Nov 26, 2013, 1:45:20 AM11/26/13
to Qualn...@googlegroups.com, kanwal.p...@gmail.com
Dear Kanwalpreet,

Please send me the snapshot of error so that I can take a look at it. Also send the build result file.


Thanks and regards.
Ankur Tyagi
Tech Lead
Eigen Technologies Pvt. Ltd., Delhi

kanwal.p...@gmail.com

unread,
Nov 28, 2013, 1:01:24 AM11/28/13
to Qualn...@googlegroups.com, kanwal.p...@gmail.com, an...@eigen.in
Sir,

Please follow attachments for the screenshots of the error and build result file. Please help me to solve the problem.

Thank and Regards
Kanwalpreet Kaur
screenshots and build file.zip

Ankur Tyagi

unread,
Nov 28, 2013, 1:45:36 AM11/28/13
to kanwal.p...@gmail.com, Qualn...@googlegroups.com
Dear Kanwalpreet,

You have not built qualnet with debugging enabled. How are you compiling and which makefile are you using?

I can't reply on daily basis, so kindly wait for a reply next time instead of repeatedly sending the mail.


Thanks and regards.
Ankur Tyagi
Tech Lead
Eigen Technologies Pvt. Ltd., Delhi
Reply all
Reply to author
Forward
0 new messages