Re: Bluetooth and WSAECONNREFUSED (10061)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Comments...

"Greg Scott [MS]" <gregsco@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OIciHclbHHA.1400@xxxxxxxxxxxxxxxxxxxxxxx
It is not a known issue that you can only connect to a peer device two
times from CE. I'm not as familiar with the XP BT stack but I'd be
surprised if they had a bug this bad.

I am surprised, but possibly not as surprised as you are!

Many of the Bluetooth profiles on your device (e.g. Hands Free Profile)
communicate over winsock as well and we have tested multiple reconnections
without any issues.

I assumed this which is why I am surprised. I have done loads of work using
Winsock ever since it worked "properly" in Win98SE. Never had a problem
before, not one I couldn't code round, anyway.

Unfortunately I don't have any ideas to help you debug this. Have you
tried connecting between two PPCs to see if the issue reproduces? Or two
PCs?

Yes, I have been writing serial interfaces for something like 35 years. Not
all on Windows, obviously :-)

Regarding the issues with COM ports, I'm not sure what issue you are
seeing. These are not known issues so my only theory is that you are
incorrectly using these APIs.

I bet you a dollar I'm not!

You may want to download the Windows CE Platform Builder evaluation
version and look at the following sample code:

public\common\oak\drivers\bluetooth\sample\*
public\common\sdk\samples\bluetooth\*

There are a ton of samples here, some of which use winsock/COM ports.


Looked at these, they don't work on my device. I suspect that the device
itself is not good, there is a MS bug report on this at
http://support.microsoft.com/kb/916279 which also surprised me, and I
suspect the fix is not implemented in my device.

Interestingly, it states "This problem occurs because the internal counters
in the device are out of sync. These internal counters are not reset until
you restart the device by using the soft boot method". It should read "...
because the internal conters in the Microsoft Software are out of sync ..."
:-)

Good luck!

Thanks for looking, Greg.

--
Greg Scott
Software Design Engineer, Windows CE
Microsoft Corporation
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no
rights.
_____________________________________________________________

"Uncle Marvo" <paul.r@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:56iar1F2817reU1@xxxxxxxxxxxxxxxxxxxxx
And further to my last rant ...

I am now using a serial bluetooth connection from XP (a dongle) and a
Vodafone 1640.

It works one way (from PC to PDA), not the other. The PDA won't open a
serial with CreateFile most of the time (usually error 55), then when it
does, when you WriteData to it, the XP box doesn't see it. It *must* be
going down a big hole somewhere.

And if you turn the Bluetooth OFF while it's running, ReadFile returns
non-zero and GetLastError() isn't set. And WriteFile on the XP box just
hangs.

Wonderful.

Which device should I throw away, the XP one or the Vodafone 1640 (I
suspect the latter).

Anyone had any experience of BT devices in Mobile that actually work?
Money no object.

Many thanks - Unc






.



Relevant Pages

  • [OT] Re: A question (confusion) about closure
    ... I've re-read what Xah wrote and in addition to what you have pointed out ... variable has muddied the waters and clouded the message I suspect he ... His claim he can do closures using global ... to have tripped over a bug in the language (At the time, ...
    (comp.lang.lisp)
  • Re: BUG in Winsock on P4 HT CPU
    ... bug in Winsock though. ... The FD_READs that were sent because you read partial data are now processed ... Run it on a P4 HT CPU and it stops after just a few increments. ... The only possible explanation is that there is a timing bug or race ...
    (microsoft.public.win32.programmer.networks)
  • Re: Linux 2.6.21
    ... together so that you have a good chance of sending the bug in the right ... I suspect a lot of non-maintainers would be interested too! ... This, btw, is why email is *so* much nicer than a web interface. ... think it necessarily needs to be a hugely core person. ...
    (Linux-Kernel)
  • Re: Bug in winsock send?
    ... I am seeing a bug, the winsock sendsucceeds but the data is not put ... to the server, similarly server sends a status message every ... (TCP_NODELAY socket option). ...
    (microsoft.public.win32.programmer.networks)
  • Re: Access violation AFTER program exit !!
    ... I suspect a Leadtools upgrade is the culprit, but without more to go on ... This sort of bug is difficult to track down. ... with memory corruption problems, ... Another possibility is looking at the source code for finalization ...
    (borland.public.delphi.nativeapi)