GPS Software Design, Kokai Senbashi

alfcen

Well-Known Member
Licensed User
Longtime User
Hi gang,

This Open Source project, Kokai Senbashi (Japanese for "Navigation Bridge"), does not only demonstrate the powerful GPS functions of Basic4ppc, but also:

1. Standard menu layout
2. Use of Image Buttons for 3D buttons
3. Retrieval of Zone Time
4. Retrieval of Owner Name
5. Setting of device system clock
6. INI file management
7. Scanning for GPS in the registry
8. Use of hardware.dll functions
9. Reading of GPS HDOP and quality values
10. Date, time, sexagesimal conversions and other routines

The source is included in the ZIP download as is the project file for PPC Installation Creator by which the installer was compiled. Requires framework 2.0 or higher. Tested on an iPAQ h2200 Pocket PC 2003.

Use or abuse; code support cannot be provided. A users' manual is US$ 1,050.00 :)

Enjoy exploring and programming with Basic4ppc and please don't forget to post your improvements in the forum.

Cheers

Robert

The project is too large for upload to the forum.
Download:
http://www.alfcen.net/anjin/anjin.zip
ZIP 1.25MB
 

Henry

Member
Licensed User
First look at code looks nice. I'm just working also on gps application (statistics for fix times and position quality) so I can learn something ;) Thanks for sharing yours knowledge!
 
D

Deleted member 103

Guest
Hallo Robert,

:sign0188: :sign0098:


Ciao,
Filippo
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hallo Filippo
In my opinion, the most useful feature is the system clock setting, thanks to YOUR library. :sign0142:
 
D

Deleted member 103

Guest
Hallo Robert,

I have changed these Procedur.

Sub RegisterPath
Dim key
reg.RootKey(reg.rtCurrentUser)
key = "Software\RBSoft\Kokai"
reg.CreateSubKey("",key)
reg.SetStringValue(key,"Path",AppPath & "\anjin.exe")
End Sub
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hallo Filippo,

Mille Gracie, this is elegant, much smarter than an ErrorLabel.

I overlooked that CreateSubKey will do nothing if the key already exists.
That's safe enough. Actually, the installer will create a complete registry section. If you run the source code in the IDE it will not.

If there is anything more that could be improved or abbreviated, please be so kind as to let me know.

Ciao
Robert
 

Henry

Member
Licensed User
I think there was an error in

B4X:
banner = SubString(banner, 1, StrLength(banner)-1) & SubString(banner,1, 1)
  labBan.Text = banner

To copy first char should be used SubString(banner,0, 1)... I'm right?
 

alfcen

Well-Known Member
Licensed User
Longtime User
Strictly speaking yes. I always use a cushion of 5 spaces, Chr(32), before and after the text in that this doesn't really make a difference.

Without that cushion the first character will escape your eye at a timer interval as short as 200ms or so.

Thanks for your feedback.
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hello Robert,
Great to 'meet' you! I'll buy you the coffee :)
Rather than writing manuals I often prefer to turn to the next project.
In a way, we are all programmers, and... who reads manuals?

I will provide an update of Kokai Senbashi as soon as the gps.dll
will be modified to deliver more details, such as satellite numbers
and positions. Sure, it can be done by parsing the NMEA string,
however, a dll is faster considering that everything must happen within
a second.

BTW, I've been to Bergen twice, both days with sunshine and blue sky.
I guess you have such weather two or three times a year, depending
on which side of the tunnel you are. Anyway, Norway is a great country
and home to beautiful nature. Fjords, lakes, forests.. all on the same spot.

Cheers
Robert
 

mjcoon

Well-Known Member
Licensed User
...
Rather than writing manuals I often prefer to turn to the next project.
In a way, we are all programmers, and... who reads manuals?
Robert

Hmmm, and who maintains old downloads once they have moved on... that old link now seems stale, now I have discovered this interesting developers' product and forum!

(I am a refugee from Psion PDAs, which originally came with a built-in Basic-like development environment.)

Cheers, Mike.
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hi Mike,
Welcome aboard.
Fully agreed about maintenance.
I had to give up my previous server for financial reasons.
Hobby will have to wait until better times.

Cheers
Robert
 

Cableguy

Expert
Licensed User
Longtime User
@Alfcen:

Have you considered, having your own desktop acting as a webserver?
Almost surtenly, your internet SP, does have some cliente alocation space for free, and there are a few "redirection" web-sites that would redirect your web address to your IP...
 
Last edited:

SavCo

New Member
Could not download anything from your site. I am working on a GPS project as well and am interested in your example. Are your files stored anywhere else?
 
Top