![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
OK, now I achieved that the "outofmemorxexception" -error doesn`t appear any more. The errorlabel works and somehow the portsplitter as well (maybe I used an older version at first, sorry).
But I don`t receive GPS-data any more. Also GPS4PPC disconnects after 5 seconds if I use the portsplitter-port. |
|
||||
|
Quote:
I assume that you have tried Erels' code. Does "serial.InputString" ever return any data at all or is it always a null string? |
|
|||
|
Ok, sorry Agraham. I installed the latest JAL Portsplitter and now the error doesn`t appear any more. Also by using an errorlabel like Erel said above, I could get rid of the error. I think using the Portsplitter is the better way to solve my problem. The program opens the serialport and gps runs.
But now I don`t get any gps-data. I created a label to count the serial.inbuffercount, but it stays at 0. |
|
||||
|
Hmmm - stubborn problem isn't it.
It seems, from the gpstuner site, that using JAL Port Splitter on a P3300 does allow a .NET based program to read the GPS via the .NET serial port class. If we assume that this is so then there would seem to be no reason why a B4PPC app cannot do the same. As it presently cannot there would seem to be be two areas where the problem could lie. a) The JAL Port Splitter is not configured properly. I assume that you have the input port set to COM4 and the virtual output port to something different. GPStuner indicates that COM5 works so I assume you are using that. I don't know what other configuration might be needed b) The B4PPC app is not using the serial port correctly. I assume that you have altered the COM port that your app is using to be COM5. Your first post implies that you had a B4PPC program that worked previously before WM6. Have you tried that program with the Port Splitter exactly as it was before with only the COM port changed? Also have you tried Erels' GPS4PPC unmodified apart from changing the COM port to that of the Splitter? However at the bottom of this thread where someone has a similar problem http://www.gpstuner.com/forum/viewto...139dc7bb5065ef I found this Quote:
What I don't understand is how your application worked at all under WM5 on a P3300 as all the posts I have found imply that .NET apps won't work. Maybe it was because it was using the old serial library that is not .NET based. In the serial help Erel states that the old libraries don't work under .NET 2.0 yet I thought that WM5 came with .NET 2.0 included. I'm puzzled, any comments Erel? I'm afraid this is looking like a fundamental problem with the P3300 ![]() EDIT:- I've since seen a suggestion, I don't know if it is true, that the P3300 with WM5.0 didn't have .NET installed. Was this so? Did you have to install the Compact framework yourself? If so it must have been .NET 1.0. Does WM6 come with .NET 2.0 in ROM? You could always try installing .NET 1.0 SP3 and go back to the old serial libraries to see if that will work. Last edited by agraham : 10-22-2007 at 05:50 PM. |
|
|||
|
At first, thank you very much for taking your time to help me Agraham.
Of course I know that sometimes very little mistakes or malconfigurations happen and the search for it is a long way. But I think, I configured the portsplitter and the progs correctly. When I used GPSTuner some month ago under WM5 then I had to use the portsplitter as well, but the b4ppc-progs worked without the splitter. I use port 4 as incoming gps port and port 5 as virtual port. Erels GPS4ppc worked without help on WM5. With WM6 now: Also the installed Version of GPS4ppc (not changed by me) disconnects after the timeout of 5 seconds because serial.inbuffercount stays at 0. And I used the portsplitter too. What did you mean here: Quote:
My device has .net cf 1.0 installed with WM5 and .net cf 2.0 with WM6. I never had to install CF by Hand. Is it possible to install .Net 1.0 now? I thought it is already within .Net 2.0. I think there is an error with .Net 2.0 and some buildIn GPS-receivers. I found similar problems in a .Net-forum. I just don`t understand why it works very good with some progs or at least by using portsplitter. Maybe other gps-progs, developed with microsofts devolpment tools on .net cf, wouldn`t work either? But except of GPSTuner I don`t know any. |
|
||||
|
WM5 comes with .Net CF 1.0 in ROM and WM6 comes with .Net CF 2.0.
You could try to install .Net CF 1.0 on your device and then use SerialDevice instead of Serial2. .Net CF 1.0 can be downloaded here. After installing .Net CF 1.0 check Hardware.NetVersion to make sure you are running .Net CF 1.0. |
|
||||
|
Quote:
a) Your application worked with WM5 under .NET 1.0 using the original serial library. b) Your application breaks under WM6 using .NET 2.0 and the serial2 library because of an unresolved incompatibility between the .NET SerialPort class and the P3300 hardware/firmware. Other .NET based software trying to use SerialPort also suffers from this problem but this is not likely to be fixed by HTC as they only support TomTom on the device. c) Your solution (hopefully) is to install .NET 1.0 SP3 and go back to your original software with the original serial library. I hope this works as it is all that I think that can be done. |
|
|||
|
Oh, it`s so annoying. The installation of .Net 1.0 SP3 tells me that it couldn`t find a correct .Net-Version suitable for my device. (sounded strange to me, but finally it won`t install .Net 1.0)
I tested an old prog with serialdevice.dll and it couldn`t open the serialport. So, the last and unlikeliest solution would be to go back to WM5?! ![]() And I can`t give my progs to other people using WM6. ![]() |
|
||||
|
Look at this thread towards the end - last three messages.
http://www.gadgetapps.net/forum/viewtopic.php?t=287 At first he got the same error as you but eventually got it going but he doesn't know how! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|