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.

Multiple Serial connections?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 10:03 PM
Junior Member
 
Join Date: Mar 2008
Posts: 10
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: 37
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting multiple files at ones sonavep Questions (Windows Mobile) 2 04-21-2008 03:00 PM
Multiple Listviews tsteward Questions (Windows Mobile) 2 04-20-2008 10:16 AM
IDE Multiple File Support davidmw Basic4ppc Wishlist 3 11-20-2007 11:47 AM
How to play multiple sounds at once? justdo Questions (Windows Mobile) 2 09-24-2007 03:59 AM
multiple connections to a sqlite database Peter Questions (Windows Mobile) 5 05-13-2007 07:49 AM


All times are GMT. The time now is 09:34 AM.


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