Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Serial Port won't open


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2008, 06:28 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default Serial Port won't open

Hello,

Need some help. I have an app that opens a serial port (Serial2.dll) to communicate with a gps. Bluetooth is connecting but I can establish a comm connection.

Seems to run fine on the desktop but wont run on the pda. What I find really funny is that GPS4PPC will run on the pda and I am using almost the same code.

Any help would we great.

Thanks
Dave
Reply With Quote
  #2 (permalink)  
Old 03-16-2008, 06:59 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Did you try the GPS tutorial code: GPS application - Part I
Reply With Quote
  #3 (permalink)  
Old 03-16-2008, 11:43 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

Yes, I just am missing something. Everything works on the desktop simulation that is the part that is confusing.

I talso dones seem to like the registry access to get the com ports, it throws any error when that runs as well.

Thanks
Dave
Reply With Quote
  #4 (permalink)  
Old 03-16-2008, 02:15 PM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

Just wanted to try and see if anyone had a suggestions.

The problem seems to be with the Serial.portopen statement.

I have reinstalled Netframework 2.0 sp2

I have tied every example possible, all with the same result, on the desktop they run fine. On the device they all get an error when I try to open the port.

Running the GPS4PPC example, if I install the exe that is zipped up, it runs on the device. If I compile the project and run I get the same error on the portopen and the registry calls.

Any help would really be appreciated. I am about 36 hours into this an I am really struggling.

Thanks
Dave
Reply With Quote
  #5 (permalink)  
Old 03-16-2008, 03:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

What device are you using?
Reply With Quote
  #6 (permalink)  
Old 03-16-2008, 05:01 PM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

Reinstalled SP2 of Net 2.0 and it took care of the port problem. Still doesn't want read the registry with REG component. HP 2210

Any suggestions

Thanks
Dave
Reply With Quote
  #7 (permalink)  
Old 03-16-2008, 05:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

What error message do you get?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial port handling mjcoon Questions & Help Needed 5 06-26-2008 11:48 AM
Send data to serial port for other application schimanski Questions & Help Needed 6 04-08-2008 06:45 PM
GPS and Virtual Serial Port alfcen Questions & Help Needed 2 10-05-2007 02:56 PM
Serial Port Profile & Bluetooth Paul Questions & Help Needed 5 07-27-2007 05:08 PM
Open serial port crashes program on device Steve Bug Reports 2 05-23-2007 10:52 PM


All times are GMT. The time now is 02:00 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0