Click here to get back home

Help with HTTP please

 HomeNewsGroups | Search | About
 microsoft.public.pocketpc.activesync    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Help with HTTP please kevin benson 08-02-2006
Get Chitika Premium
Posted by kevin benson on August 2, 2006, 1:04 am
Please log in for more thread options
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





Posted by Beverly Howard [Ms-MVP/MobileD on August 2, 2006, 7:27 pm
Please log in for more thread options
Looks like I was wrong about answers being found in this section...

Hate to sound like a snipe hunt, but since you have not received any
response, try posting at microsoft.public.pocketpc.developer to tap more
tech expertise.

Beverly Howard [MS MVP-Mobile Devices]

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
>
>
>
>



Posted by Beverly Howard [Ms-MVP/MobileD on August 4, 2006, 11:14 pm
Please log in for more thread options
>> If possible try upgrading to AS4.2 <<

Note that the op is using async 3.7 and all devices are pre wm5... it
was my assumption when I responded to his initial request that it was a
4.x network issue but found otherwise.

Beverly Howard [MS MVP-Mobile Devices]


Similar ThreadsPosted
HTTP/1.1 401 Unauthorized February 6, 2006, 10:14 pm
Activesync error HTTP 405 July 27, 2005, 12:19 pm
ActiveSync HTTP Errors October 21, 2005, 10:45 am
HTTP 503 error on Activesync November 2, 2005, 5:29 pm
AS 4.x bug: 15-second timeout in HTTP connections. November 21, 2005, 1:27 pm
activesync error http/1.1 401 December 21, 2005, 3:30 pm
http://spaces.msn.com/dvdbarato/ March 6, 2006, 6:03 pm
HTTP status code: [409]. March 7, 2006, 5:17 pm
http://spaces.msn.com/comprarverbatim/ April 2, 2006, 8:40 am
Activsync issue - HTTP/1.1 401 Unauthorised February 2, 2006, 4:46 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap