Excuse my absence. I was held captive by the local raging mooses during a stroll in the wilderness.
I'll update myself with all that has been going on in this thread after i have had my revenge on said mooses.
Printable View
Excuse my absence. I was held captive by the local raging mooses during a stroll in the wilderness.
I'll update myself with all that has been going on in this thread after i have had my revenge on said mooses.
Guys, I've checked in the latest code.
Please re-download the app from here.
As usual, choose your port and click Verbose, if you get junk data, then you're at the right place. Then stop it and click 'start' and wait for it to start logging.
Exceptions should show up in the textbox too. Let me know how you get along. You're welcome to try it via source code too, change anything you please.
Good luck with the moose. I am sure that this re-download and retry will be worth the slaughter.
I've left in lots of commented code, we can clean up later. The important thing right now is that we get it working on your phones. I won't dwell on why the other class library didn't work.
Also, any help with the... UI would be great. You should also be able to flip the phone orientation and still have the app looking 'OK'.
Good show,
I even went back to the .net serialport and tried adding all the settings that work here, including the handshake one that got the OpenNetCF one working for me and it still didn't work.
Just adding this into my app now.
I cant find the instructions :cry:Quote:
Originally Posted by mendhak
Hey,
Once you have got the SDK installed, all you need to do is to deploy the the attached device, rather than the emulator.
This is done by first connecting your device through ActiveSync, which I will assume you are already doing, if not, let me know. Once that is done, select the Windows Mobile 6 Classic Device from the dropdown list, see attached screen shot, and the application should be deployed to the Device.
You might get some warning appearing on your phone, just acknowledge them, assuming you trust Mendhak :)
Hope that helps
Gary
Oh... i have to trust mendhak?... i dont know...
just kidding. Thanks for that information, I assumed that was all that had to be done, but I keep getting the error "No such interface supported" no matter what option I choose to deploy to (both emulators and real devices). I cant understand why.
Mendhak,
I was having a quick play with the code today, and it is looking a lot more promising. I had the textbox filling up with stuff when I hit Verbose. I only had a few minutes to play though, because I was wrestling with trying to get ActiveSync working, for some reason connecting my phone with the USB cable was causing a BSOD, so ended up connecting my phone using Bluetooth, which meant I had to wrestle with the Toshiba Bluetooth Stack....
Anyway, long story short, I can now deploy to my phone, and should be in a better position to have a look at this tomorrow.
I have some ideas for some UI changes as well, so I will try and get them incorporated as well.
Gary
Hmm, that sounds similar to some problems that I have seen in the past, and normally they have just sorted themselves out, never really found an "actual" solution.Quote:
Originally Posted by Atheist
What OS are you running on your desktop? What OS are you running on your Mobile? Are you able to establish an ActiveSync connection successfully? Can you sync data between phone and desktop?
Gary
Im running Vista Business 64 bit on my PC, Windows Mobile 6 on my mobile.
ActiveSync works like a charm. I have been able to use the device emulator to earlier, it suddenly all stopped working..
Hey,
I am running Windows XP Pro, so I think the extent of knowledge to help you is going to end. I know if XP Pro and you run the emulator through activesync you have to change a setting in ActiveSync to use a "DMA" port, and then you have to change it back again when using a physical device. I don't know if that sounds familiar to you, but if it does have you confirmed this setting?
The other thing that rings a bell, and it sounds ridiculous, but....
Can you establish an ActiveSync connection, and then open up Visual Studio. I seem to remember that this caused my problems before, and this was one way I could guarantee the connection.
Apart from that though, i have nothing. I know the connections in Vista are handled differently using the Mobile Device Center, and I have never played with it.
Gary
The guy in this Connect feedback seems to get the same error.
http://connect.microsoft.com/VisualS...dbackID=106030
Can you try a repair/reinstall like he did?
You can also try turning your device off and on again.
Atheist, can you try running the app as-is just to test if it's working in Verbose?
Gep, thanks again. Good to hear about Verbose.
I tried it on the other coworkers' phones and it worked fine, but the one problem that did crop up was that not every phone lets you write to \My Documents\GPSLogs... many of them will probably want to write to a storage card. So we should probably expose the folder path. Looks like the settings are taking up more and more space from that poor textbox :D
That was actually going to be one of the UI changes that I was going to make.
I was going to make another form that handled the settings. At the end of the day, you only really need to set them once, so no real need for them to be displayed on screen all the time.
Gary
Yeah good point. I guess I kept them in one place because in the beginning there were only two or three controls. Now it's... lots. :)
Hey,
Right, I decided to have a play with the code a little and I have come up with the following, and I thought I would get some thoughts before checking anything in, so here goes...
Main Form (all screen real estate is given to the TextBox):
Attachment 68973
About Form:
Attachment 68972
Settings Form:
Attachment 68974
I know there are two schools of thought on this, but I decided to only use one form and then multiple panels to create the different pages, this prevents the need to instantiate multiple forms, rather simply show and hide panels, this should keep the app responsive.
In the designer, this means it looks like this:
Attachment 68975
I have to play some more obviously with the Settings screen, I have a GroupBox Control that I want to use to group like settings. There isn't one be default in the Compact Framework, so I rolled my own in another project.
The usage of the form has changed slightly. Rather than having both a start button and a verbose button, you now either check or uncheck the verbose menuitem and then depending on the checked state you either start in normal mode or verbose mode.
Let me know what you think, and if you like it I can finish it off and then check in the changes.
Gary
Wow. I just woke up and I'm stunned, you've done so much.
I like your verbose check/uncheck idea. Dude, well done. Nice concept with the settings screen too.
:lol: @ about screen
Wait! Does it work for you then? Were you able to get GPX log files written? Was it able to find your position?
Oh, when you check it in, if you get unresolved conflicts, make sure you 'merge in merge tool' instead of getting it done automatically :D
Really nice work.
You would think that that would be something I would have checked by now wouldn't you, but I keep forgetting. I don't get a reliable GPS signal either at the office or at home, so I keep meaning to do it on the way to and from, but always seem to forget. I will "try" and remember today.Quote:
Originally Posted by mendhak
I will keep in mind what you say about the check in's. I should get everything checked in tonight.
Glad you like it.
Gary
If you feel a little restless before checking in, then you can also introduce a 'save to folder' path in there. If you don't do it, then I will. :)
:) Yip, that was on my list of things to do. Just looking out the source code for the GroupBox which is on this machine. This might be excessive but was thinking a GroupBox for Baud Rate, one for Comm Port and another for logging the text file. Maybe this is too much, but I will have a play tonight and see what I think.
Hello there,
Right, I finally made a check in, still have some work to do on it, but here is a brief run through of what I have done:
- Altered Main Form to include panels for different sections
- Added ConfigurationManager class
- Added UIHelper class, but not working correctly yet
- Added GroupBox Control for segregatng Settings Panel (needs layout work)
- Altered flow of logic uses Verbose CheckBox, needs verification
If you get an error when you build, I am going to guess that it is due to the GroupBox control that I added.
For some reason, when you add the GroupBox control to the design surface it adds it using:
But this can't be found, you have to use:Code:this.groupBox2 = new GPSTracka.GroupBox();
I couldn't figure out why it was doing that, but then again I didn't look at it very long, just got it working.Code:this.groupBox2 = new GroupBox();
Let me know what you think.
Gary
Hey, I just noticed that you checked something in. I'll download it tonight!
And let's pat ourselves on the back, we've just passed 100 downloads :D
Some site picked it up already and is 'advertising' it.
http://www.freewarepocketpc.net/ppc-...ps-tracka.html
Wow!!! That's good!!
Yeah, I checked some stuff in, still needs some work though, but think things are starting to take shape. :)
Oh, and you need to try the application out too. Don't worry, I'll keep reminding you until you do try it :afrog:
Wow, I like the settings screen, very well done.
Nice configuration manager too. I'm working out a few things right now. Surprising that there's no folder dialog in .NET CF, we'll just use the file browse dialog and parse the directory name out.
I've done some code cleanup; some of the rearranging had broken other parts of the functionality which is understandable. I've also removed a reference to Microsoft.WindowsCE.Forms. I assume that was there because you were experimenting with something. After removing it, it still builds fine, so... let's see. Checking in now.
Also, I can't figure out how to add GpsTracka.exe.config to the deployment CAB. I've modified the code so that it gets created if it doesn't exist. Got any ideas?
Files checked in, please get latest, rebuild, test if everything's OK.
Hey,
Ok, so bad news first....
I tried the application last night on my way home, and I wasn't getting anything in the TextBox. All I got was the message saying that the polling would start in 60 seconds. I get lot's of information in the textbox when I use Verbose, but not when I just hit start. I will try and do some more debugging in the next couple of days, I am sure we will get it working.
Did you get the config file added to the deployment project? I made sure it was added to the output folder on build, so you should be able to add the "content files" from the primary project and this will copy over the config file. That is from memory though, haven't done that recently.
Will grab the most recent code this morning and have a look.
Gary
OK, for your situation, go into verbose mode and keep it running. The text will run by pretty fast, but what you're looking for is $GPGGA with some proper numbers after it. Usually, you'll get
$GPGGA,,,,,,0,,,*50
(Something like that)
That means that there's nothing yet.
Keep verbose running until you see
$GPGGA,192932.0,5121.490279,N....
In other words, not the series of empty commas. It'll take a while the first time and it's usually best if you're in the open. I'm pretty sure you'll be able to get something. If by 'on my way home' you mean in the train, it shouldn't work, I've tried it in trains and it usually doesn't.
I did check for 'content file' and tried to build but it wouldn't work, which is why I added the code to create the config file. Adding the default config would be great. I'm going to update the screenshots on the codeplex page.
Hey,Quote:
Originally Posted by mendhak
What I was talking about was this:
Attachment 69053
From here you can select to include the content files of an application (i.e. the content file) in the CAB. At the minute, all that is in the Deployment Project is the Primary Output (i.e. the dll).
I think that should get it to work.
Gary
Also, did you have a look at the UIHelper Class that I added? This is a very small point, but it would be good to get it working. On the main screen there is no need for the user to be able to type anything in, so there is no need for this:
Attachment 69054
The SIP Button, which pops up the on screen keyboard. The UIHelper Class includes a method for showing and hiding this button. The code works when you call the method on the click event of a button, but I tried to put it in the load event of the form, but this didn't work. I can only assume that when the form gets painted it puts the button back in. I tried putting the method call in a few places, but no luck.
Any ideas?
I know it's a small thing, but thought it was a nice touch.
Gary
Ok I will give this a try as well. By "on my way home" I meant driving from work to the flat. This isn't the most valid of test again, but I have been able to get Google Maps to work well whilst driving this route, so I thought this might work as well. I will test the application again when not driving.Quote:
Originally Posted by mendhak
Gary
Hey,
Just made a couple small changes, nothing major though.
Gary
Yep, tried that. That's when I got the errors.Quote:
Originally Posted by gep13
I tried it again and this time excluded 'logo.jpg' from the solution and it worked. How has logo.jpg been added? Is it embedded?
Hmmm, I thought it had been added, but maybe it hasn't.
Let me check.
Ok, I think I know what the problem is, but I will not be able to sort it until I get home. The logo.jpg in locked for check-out on my home machine. Not sure how that happened, but I will fix it tonight. Sorry about that. Still finding my way around TFS, more used to SVN :)
No prob. Good luck with the testing thing. Keep your eyes on the road.
Interesting problem. A search reveals to me that Form Load is called before the form is painted. I then tried Form Paint and Form GotFocus, no luck. I'll try some more.
Glad to know that I am not going crazy :DQuote:
Originally Posted by mendhak
Hello,
I think I have corrected the problem with the logo for the about page. Not sure how it ended up getting locked on my home pc, but it is now checked in. Was thinking though, maybe it should be added as a resource, rather than just a file.
What do you think?
I was giving some thought to the application as well. Would it be worth extending the app to use the camera that is built into the phone? Obviously this wouldn't provide as good photos as a stand alone camera, but was just thinking it could be a nice addition.
Gary
Yeah, a resource would be nice. I've been trying the SIP thing as well with no success :sick:
I'm guessing the app still isn't recording locations for you? :(
I wonder if it's working for Atheist.
Can you explain what you have in mind about the camera?
Yeah, the SIP thing is a bit strange?!? As I said, it is only a small point, but just thought it made sense.
Nope, so far the tests that I have done haven't been successful. I am determined to get it working though, just haven't had enough time to devote to it. Studying for a Microsoft Exam at the minute, and I have just started some Spanish lessons as well, so got a lot on. Keeping getting sucked into VBForums as well, think I am going to have to go cold turkey for a bit :)
What I was thinking was this. Within a Mobile Device Application, you can get access to using the camera control, and can use the results, i.e. the image that is taken. So what i was thinking (this could be completely off by the way) was, from GPSTracka give the option to take a photo. When the photo is complete, save it off, as well as saving off a gpx file that is specfic to the photo, same same just different extension, that way you don't have to compare date times etc, you know exactly where the photo was taken.
Does that make sense? Does it seem sensible?
It was just something that occurred to me.
Gary
I've been rethinking the SIP thing today. A coworker told me that they wanted to use it when their car was stuck on the highway (why?) and couldn't copy paste from the textbox.
Hmmm... I'll try to re-enable and allow copying from the textbox, you know, by holding down the stylus. (They could also press Ctl+C on the onscreen keyboard but the hold-down is more intuitive). I'll let the SIP go for now, we can readdress it.
I also thought about your comments this morning. The camera thing could work, but there are a few things involved. The most intuitive scenario here would be that they go to the camera app they have, take a photo and the photo is geotagged by GPSTracka.
In such a situation, GPSTracka would need to somehow need to monitor the camera for a picture taken. Another problem posed is that in the .NET framework, you can insert EXIF data into an image by accessing an Image object's Properties collection at 0x0001, 0x0002 and so on. But there's nothing like that in the .NET CF, so another way will need to be found.
Anyways, it's a good idea. I understand you're busy and I'm appreciative of your help but not happy that it isn't working for you. It would have been nice if it did... right, so I'll look into this and see what can be done.
OpenNETCF to the rescue....Quote:
Originally Posted by mendhak
http://blog.markarteaga.com/Extracti...Framework.aspx
The link to the namespace in that article doesn't work, but you can get to it by browsing through the documention here:
http://www.opennetcf.com/library/sdf/
Gary
That's a good point actually. Hadn't considered the need to use that functionality.Quote:
Originally Posted by mendhak
Success! With the latest version I was able to successfully track my little trip from the university to the apartment.
Thanks Atheist.
And those OpenNetCF guys have thought of everything!
Gep, you have a Sony Xperia X1, right?
Atheist, what phone do you have?
That's right.Quote:
Originally Posted by mendhak
Im a proud owner of a HTC Touch HD!
I've put your (plural) phone models on the page there. Sure, it still isn't working for gep unless in verbose, but I said tested. :p
Woot Woot!!! Over 200 downloads!!
300 downloads! :D
In my 'extended delay' I was looking at using Objective C and how this application would be ported to the iPhone. Note: I do not like the iPhone, because the target audience would then be below-intelligence individuals and so this application wouldn't apply to them. I just wanted to see what would be involved.
I soon discovered, get this... if you write such an app for the iPhone:
a) The phone must always be on. No going to sleep, no suspend mode.
b) The app must always be in 'foreground'
c) The screen must be unlocked.
So that means if a Mactard decided to use such an app, they'd have to walk around with the iPhone in one hand constantly stroking it to ensure that it doesn't lock. Come to think of it, they probably do that anyways but my statement about below-average intelligence still stands.
Has there been any feedback from anyone? Are they having any issues at all?Quote:
Originally Posted by mendhak