 |
|
 |
Hello, may I trouble you can write a C++, in the WindowsCE Bluetooth virtual serial port on the demo? Thank you very much!My e-mail is xiaboyang@sohu.com,thank you.
|
|
|
|
 |
|
 |
Hi,
I'm trying to find the GPS device running on my WinCE 5.0 platform, to read data from it.
Your program runs just fine on my device.
Strangely, I only get
"COM2: Serial cable on USP5 Atlas Debugging Board"
"COM4: Serial cable on USP2 Atlas Debugging Board"
"COM5:"
"COM7:"
(An empty string for COM5 and 7).
Does that mean the architecture of this device (a Takara GP26) does not use a COM port to communicate with the application?
Any ideas welcome.
Great article, thanks!
Werner
|
|
|
|
 |
|
 |
That's not strange - device manufacturers do forget to implement (and sometimes document) their device's features. Have you tried to open any of the COM ports to see if they do provide the GPS feed?
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |
|
 |
Yes, the 2 ports that are not labeled raise an exception when I try to SerialPort.Open(),
the ones labeled "Serial cable on USPn Atlas Debugging Board" go past the Open, but the SerialPort.DataReceived() event handler I added is never called.
You're right, I have no documentation at all and just experiment, hoping to get as far as receiving a NMEA sentences from the device... that would be victory
I also have no idea how to find out what parameters to use for the port, once I found it (baud rate, ...) - is there a way to tell / 'usual' values?
Werner
|
|
|
|
 |
|
 |
Have you tried COM1 at all? Although not listed it does not mean it's not there... For the serial port parameters I would start at 4800 / 9600, 8 bits, no parity, one stop bit, no DTR or RTS control.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |
|
 |
Yes, I tried all combinations for port 1 .. 9 by now.
It always throws an exception during Open(), except for the ports 2 & 4 (which are labeled 'debugging board' and do not seem to receive data).
Maybe its a deployment problem (I couldn't deply the latest framework - not enough space on the device) - or, well, I'm looking into some weired architecture.
Anyway, thanks again for your helpfull article and advice!
Werner
|
|
|
|
 |
|
 |
Hello
I m developing an application in C#, in that i need to record the voice conversation done on mobile phone and that phone is connected to PC via bluetooth or DataCable can u suggest me how to do this.
Waiting for response..
With regards
|
|
|
|
 |
|
 |
I want to ask you if I can send and receive data via usb port on a windows mobile based platform device, like on a pc, and if you can give me some indications. Thank you. Respect.
|
|
|
|
 |
|
 |
Hi,
I tried your code for my pocket pc 2003 serial port enumeration. It shows COM2 : GPS_HWCOM. But actually on this mobile GPS Port is COM5, I checked that GPS setting.
I try to read the data from serial port COM2, it shows letters are small square box , then I use COM5 to read the buffer it show the GPS information.
whats the problem? Please clear for me... ASAP.
Thanks
|
|
|
|
 |
|
 |
GPS port implementations are device-specific, so I cannot offer any comment on why that is happening on your device. My best guess is that COM2 is some internal port used by the GPS device to convey binary data to the driver that exposes it as NMEA strings. But this is a WILD guess.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |
|
 |
Hi,
I would like to get information from Serial port. During enumeration its shows GPS,bluetooth device. How can i get information about GPS from the serial port. Anyone please suggest me ASAP.
Thanks
|
|
|
|
 |
|
 |
Do you mean querying the GPS device via serial port?
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |
|
 |
Yes sir. Can you please give some suggestion about this...
Thanks
modified on Tuesday, May 13, 2008 5:22 AM
|
|
|
|
 |
|
 |
Hi Mr.Joao,
Can you please give me a some idea or samples about query the GPS device via serial port ASAP. Need Urgently...
Thanks
|
|
|
|
 |
|
 |
If you just need to read NMEA sentences from the serial port, that is quite easy: just read the port. If you need to query specific GPS information you must write a query string to the port and wait for a reply. The query strings are device-dependent, so you must check with the GPS manufacturer.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |
|
 |
Thank you for Reply. I got it.
|
|
|
|
 |
|
 |
Hi Joao,
I downloaded the source code and tried to run it on my PDA, but found some header files missed. Could you tell me how to run it on my PDA? Thanks.
|
|
|
|
 |
|
 |
Hi Lisaqau,
I tried building the source with Visual Studio 2005 but found files like atlapp.h missing. I googled this and found that one needs to install the Windows Template Library, which can be found on the Microsoft website for free download.
Here's a discussion of the problem:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=86056&SiteID=1
Haven't done the install yet, but it looks like WTL 8.0 is appropriate for VS 2005.
Regards,
Fred
|
|
|
|
 |
|
 |
Hi Fred,
I am also try to building the source with VS2005, VC++ have error, Then installed WTL8.0 as per advice, but still I got the error "Cannot open include file: 'atlapp.h': No such file or directory"
How can i solve this error, pls give a suggestion.. ASAP.
Regards,
Susi
|
|
|
|
 |
|
 |
After installing WTL 8.0, you must add the WTL include directory to your dev environment. In VS 2005 you go to Tools / Options / Projects and Solutions / VC++ Directoried and select "Include Files" in the top-right combobox. The list shows the default search paths for #includes in your project. Just add the WTL include dir there and recompile.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |
|
 |
Hi Joao,
Thanks for your faster response. Its working. Your code really very helpful for me. Excellent Article.
Thanks and Regards,
Susi
|
|
|
|
 |
|
 |
Hi,
What about windows XP and Vista? Is there a place in the registry to look for Bluetooth virtual serial ports?
Thanks.
|
|
|
|
 |
|
 |
Sorry, never looked at that issue...
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
 |