|
Posted by Carl Wolz [MSFT] on August 4, 2006, 9:11 pm
Please log in for more thread options If possible try upgrading to AS4.2. There were several fixes which addresses
your issue.
There is still a hard limit to the number of concurrent connection allowed.
Also another suggestion is to use HTTP keep-alive. The requests will reuse
the same socket.
--
Carl Wolz [MSFT]
This Posting is provided "AS IS" with no warranties, and confers no rights.
> Hi, I have a problem using activesync, if anyone has time for a short
> answer I would be most thankful.
>
> I am a Win Ce developer for barcode scanners, I dont use active sync
> myself, nor mobile devices, except for programming various CE based
> barcode scanners.
>
> These are plugged into my pc "all day" no disconnecting.
> I do NOT ever form a partnership - there are NO folders to sync, I just
> want a USB connection to the PC.
>
> I drag a program from the pc to the scanner, test it, find a bug,
> recompile the program and repeat this process.
>
> When I send data from the scanner to the pc, I run a small Http server on
> the workstation written by us (has worked fine for years)
> - The scanner makes a http connection to the ip address of the pc, and
> sends text like "http://192.168.1.1?/request=updateorder,data=1234"
> - active sync (pre ver 4) automatically sends this to the socket on the
> pc, and our http server picks it up and returns "OK" or some string.
> Pretty simple really.
>
> This works great most of the time. UNTIL
> IF I hit activesync with many http packets, say one for each line item in
> an order (say 50 items) this is OK
> If I send say 200 hits (hit the pc once, wait for a reply, then send line
> two, wait for a reply etc...) then the session is terminated part way
> through, say on item 80.
> ie. cant sent a packet from the scanner to ask the pc what time the server
> has.
> Even if I now terminate my program and start up IE on the scanner and
> browse the page of our http server, it cannot make a connection. So the
> scanner (Win CE) can no longer make this connection.
>
> Pull the USB cord and active sync goes grey, reconnect it, and the http
> connection is there. I can ask for the time, even IE works.
> Note -:- No programs were stopped or terminated, no resources given up.
>
> In fact, if I use an access point to for the connection to a 802-11
> scanner, instead of USB and active sync, it goes for months with no
> problems ! I have one site doing just this.
>
>
> I am currently using 3.7.1 build 3244 on my pc running XP Professional
> (latest patch), the Win CE device is MS CE.Net Ver 4.20
>
> Please note, this is reproducible on several pc's, (using ASync 3.7 & 3.8)
> and on 3 manufacturers of barcode scanner.
>
> This problem happens even using example programs from books such as Larry
> Roof, or Yates Kick start.
>
> Thanking you in advance
> Kevin
>
>
>
>
|