Author Topic: asset tracking (GPS) project  (Read 12782 times)

Offline tsimkus

  • Single posting newcomer
  • *
  • Posts: 3
asset tracking (GPS) project
« on: August 19, 2011, 10:24:38 pm »
I am starting the development of an embedded asset tracking application, and my first stop is to develop an emulation framework around the embedded application.  I will do this in Windows 7 on a laptop, probably, until the project progresses enough to head to the embedded hardware.

First question in the emulation stage is how to code a Windows service within CodeBlocks.  Is there a template for this, and any links you know of to help?  I know that the service must be CREATED and STARTED in windows, and then apparently must have its STATUS changed periodically to one of several known statuses.

I will be using these services to emulate the GPS receiver sending me serial data and the mobile data terminal receiving serial data from me in order to allow me to exercise my code and solution.  PLUS... I anticipate needing this knowledge in the future.

I intend to run either WINXP Embedded in the final hardware, or a linux variant.

Thank you in advance!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: asset tracking (GPS) project
« Reply #1 on: August 19, 2011, 11:23:45 pm »
This is mainly a Compiler/OS related question. I suggest you try another website to get an answer to this question.
Also, please re-read the rules. http://forums.codeblocks.org/index.php/topic,9996.0.html

I know of no Code::Blocks Wizard/Template to do Windows services.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline tsimkus

  • Single posting newcomer
  • *
  • Posts: 3
Re: asset tracking (GPS) project
« Reply #2 on: August 20, 2011, 01:20:19 am »
I'm sorry about breaking the rules.  What I was really asking was actually a CodeBlocks question about templates, just as you alluded to.

Thanks.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: asset tracking (GPS) project
« Reply #3 on: August 20, 2011, 10:10:15 am »
What I was really asking was actually a CodeBlocks question about templates, just as you alluded to.
All templates we have are provided with Code::Blocks and are mostly based on community contributions. If it's not there, most likely such a thing does not exist. I think most close comes the "Kernel Mode Driver wizard", but a native Win32 service template is unknown to me. However, you can easily create such a thing i.e. based on the kernel wizard. Remember: These wizards are script based, so no compilation / SDK is needed.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dasfoo

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: asset tracking (GPS) project
« Reply #4 on: August 23, 2011, 11:58:08 am »
I'm sorry about breaking the rules.  What I was really asking was actually a CodeBlocks question about templates, just as you alluded to.

Thanks.

Actually this belongs more in Using CodeBlocks.  But I'll break the rules too and suggest you use C++ and Visual Studio for coding a simple throw away Windows Service.  Such a thing won't run anywhere else and with Visual Studio a lot of that work is done for you.  At the very least once you are done, you'd be in a better position to port the project to CodeBlocks.

\Monkey now runs away with his hands over his butt.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: asset tracking (GPS) project
« Reply #5 on: August 23, 2011, 09:41:59 pm »
But I'll break the rules too and suggest you use C++ and Visual Studio for coding a simple throw away Windows Service.  Such a thing won't run anywhere else and with Visual Studio a lot of that work is done for you.
We don't fear VS (;-)) and in fact in that case you'll mostly find way more samples (i.e. at http://www.codeproject.com/) for that platform.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ