473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problem with rs232

Hello,

I am developing a serial-communication application for a pocket-PC and
a PC.

I am trying to make a serial-port connection via Bluetooth. All goes
well: Bluetooth connection and COM ports starting at both sides.

The problem is by sending Data via the COM port.
For example whenn I send: "Foo Data to send". I receive at the other
side: "F.o.o. .D.a.t.a." where the "." Are 0s (ascii) (cheked in
debuging).

The bug is in the COM port communication because I minitored the COM
port in the PC during a sending operation and it sends the wrong
Data: "F.o.o. .D.a.t.a." for "Foo Data to send"

I am using Visual Studio 2005 on the PC side and developing with C++.

Have you had the same problem once?

thanks

Jul 5 '07 #1
4 1695
On Thu, 05 Jul 2007 03:01:35 -0700, j.*******@googlemail.com wrote:
>Hello,

I am developing a serial-communication application for a pocket-PC and
a PC.

I am trying to make a serial-port connection via Bluetooth. All goes
well: Bluetooth connection and COM ports starting at both sides.

The problem is by sending Data via the COM port.
For example whenn I send: "Foo Data to send". I receive at the other
side: "F.o.o. .D.a.t.a." where the "." Are 0s (ascii) (cheked in
debuging).

The bug is in the COM port communication because I minitored the COM
port in the PC during a sending operation and it sends the wrong
Data: "F.o.o. .D.a.t.a." for "Foo Data to send"

I am using Visual Studio 2005 on the PC side and developing with C++.

Have you had the same problem once?

thanks

This is pretty specifical to the compiler and operating system you are
using.

(BTW: Try to send non-Unicode strings)
Jul 5 '07 #2
On 2007-07-05 12:01, j.*******@googlemail.com wrote:
Hello,

I am developing a serial-communication application for a pocket-PC and
a PC.

I am trying to make a serial-port connection via Bluetooth. All goes
well: Bluetooth connection and COM ports starting at both sides.

The problem is by sending Data via the COM port.
For example whenn I send: "Foo Data to send". I receive at the other
side: "F.o.o. .D.a.t.a." where the "." Are 0s (ascii) (cheked in
debuging).

The bug is in the COM port communication because I minitored the COM
port in the PC during a sending operation and it sends the wrong
Data: "F.o.o. .D.a.t.a." for "Foo Data to send"

I am using Visual Studio 2005 on the PC side and developing with C++.

Have you had the same problem once?
And your C++ question is? This kind of question is probably better
answered in a group for windows system programming, try one in the
microsoft.public.* hierarchy.

--
Erik Wikström
Jul 5 '07 #3

<j.*******@googlemail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
Hello,

I am developing a serial-communication application for a pocket-PC and
a PC.

I am trying to make a serial-port connection via Bluetooth. All goes
well: Bluetooth connection and COM ports starting at both sides.

The problem is by sending Data via the COM port.
For example whenn I send: "Foo Data to send". I receive at the other
side: "F.o.o. .D.a.t.a." where the "." Are 0s (ascii) (cheked in
debuging).
Are your compiling in Unicode ? In other words are you sending char or
wchar_t ?

Fabio
Jul 5 '07 #4
On 5 Jul., 14:40, "FabioAng" <fabioangNOS...@libero.itwrote:
<j.alou...@googlemail.comwrote in message

news:11**********************@m36g2000hse.googlegr oups.com...Hello,
I am developing a serial-communication application for a pocket-PC and
a PC.
I am trying to make a serial-port connection via Bluetooth. All goes
well: Bluetooth connection and COM ports starting at both sides.
The problem is by sending Data via the COM port.
For example whenn I send: "Foo Data to send". I receive at the other
side: "F.o.o. .D.a.t.a." where the "." Are 0s (ascii) (cheked in
debuging).

Are your compiling in Unicode ? In other words are you sending char or
wchar_t ?

Fabio

Yes I am compiling with Unicode(Windows CE doesn't support
Multibyte!).

I solve the problem using W2A in the Pocket-PC with unicode and
Multibytechar in the PC application.

thanks for your help

Jul 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
8
by: Terry Olsen | last post by:
I'm trying to use the RS232 class that was in the Platform SDK (i think). Has anyone else used this with events successfully? Here's what i've got: ====================== Public WithEvents...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
4
by: Dave Harry | last post by:
I found the RS232 class from MS's 101 VB samples. Writing to the port works fine. (I've got hyperterminal on the other comm port and a crossover cable between COM1 and COM2) The port is opened...
0
by: zektor | last post by:
Hi there, I have an application that have 1 backgroundworker doing operation in hw through rs232 (like a pooling constantly). In my UI thread I have do operations also on that resource (rs232...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.