Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Serial Port won't open

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2008, 05: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, 05:59 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you try the GPS tutorial code: http://www.basic4ppc.com/forum/tutorials/1093-gps-application-part-i.html
Reply With Quote
  #3 (permalink)  
Old 03-16-2008, 10: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, 01: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, 02:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

What device are you using?
Reply With Quote
  #6 (permalink)  
Old 03-16-2008, 04: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, 04:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 08:59 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0