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.


Multiple Serial connections?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 10:03 PM
Newbie
 
Join Date: Mar 2008
Posts: 5
Default Multiple Serial connections?

Is it possible to use two serial connections simultaniously?

I am working on some software which leverages a built in GPS on COM5 and a Vector device (RS232) on COM1. My device is an ASUS A639 with built in GPS.

I've added the serial components and created two serial objects serial1 and serial2.

At startup of the app, serial1 is new2'd and Opened on COM5 and works great.

When the user decides to connect to the Vector device, Serial2 is new2'd and Opened on COM1... or actually it's not. My "error opening port" message box is coming up and the port isn't opened.

If the user disconnects from the GPS on COM5, then attempts to connect to the device on COM1, it works fine and the data transfer is successful.

*EDIT*
I just ran a test with a small app I wrote... It seems it may be a hardware issue.
I'm using an ASUS A639 PPC running WM6.

I can connect to any other COM port in the device sumultaniously with COM5 (GPS) except COM1.
Is it possible that ASUS wired the GPS to the serial port driver since they do not expose that serial port to the user?
To Use the COM1 port I cut up an extra sync cable, and experimented to find the Data Rx and Data Tx pins.

Is it possible this is just due to some settings I can change within the OS?

*EDIT*

Thanks for any help anyone can offer,
Chris

Last edited by cwtoyota : 05-21-2008 at 12:27 AM.
Reply With Quote
  #2 (permalink)  
Old 05-23-2008, 11:05 AM
Junior Member
 
Join Date: Jul 2007
Posts: 31
Default Simultaneous Com Ports

Hi Chris,

You should not have problems using two serial ports simultaneously; I've done it with an HTC. But I don't know how is physically the COM1 you use in your ASUS, or what connector does it uses.

I suggest you to just try to only open, and send/receive data to/from your COM1, to see it it's available, and after that, add the GPS COM port.

Regards,

Jesus.
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
Multiple Undo/Redo Rioven Questions & Help Needed 2 05-15-2008 08:41 AM
Multiple Listviews tsteward Questions & Help Needed 2 04-20-2008 10:16 AM
IDE Multiple File Support davidmw Basic4ppc Wishlist 3 11-20-2007 11:47 AM
Supporting multiple resolutions davidmw Basic4ppc Wishlist 2 07-24-2007 11:34 AM
multiple connections to a sqlite database Peter Questions & Help Needed 5 05-13-2007 07:49 AM


All times are GMT. The time now is 10:14 AM.


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