05-01-2010 08:49 PM
I created a peer-to-peer network between two PDAs loaded with Windows Mobile 5.0. It is shown that both of them were connected, and their IPs were assigned automatically.
But when I used TCP/IP Open function, it returns an error 10060 'Cannot open connection'. DO I miss something here? It should be a simple connection.
Solved! Go to Solution.
05-02-2010 04:41 PM
anybody help PLZ.
05-03-2010 01:44 PM
The error you are receiving is become the timeout on the connection has been exceeded. If your time out is too short (or non-existant) you can get this error without proper time to establish a connection. Check out these two articles for more information regarding how to establish a TCP/IP connection with your PDA.
http://digital.ni.com/public.nsf/allkb/7A02D810EE88A23F86256EEB005B6283?OpenDocument
http://digital.ni.com/public.nsf/websearch/7D98C202FEC3F39086256D1E007A7609?OpenDocument
Let me know if you have any questions.
05-03-2010 08:47 PM
Thanks very much. I did noticed that PDA requires longer time to connect.
I will try this soon and post the results here. Thx again.
05-04-2010 01:22 PM
I tried, I put a 20s time out instead of 2s. It still timed out with an error 'TCP open connection 10060'.
I think it is probably the IP problem. It's a seperated local network.
05-04-2010 02:22 PM
If you put them on the same sub-net and it works and then does NOT work when moved to seperate subnets...
Then your code works it is the network that needs configured OR you need to get routing IPs from your network people.
Ben
05-13-2010 02:32 PM
Here is the follow up. I tried a little more.
I put another computer into the LAN. So now two pcs and one SmartPhone (Windows Mobile 5.0) connected through peer-to-peer wireless signal.
All three devices were connected, IP assigned to each (169.254.30.37, 169,254.139.208, and 169.254.239.193). They are local IPs, since the LAN is seperated to the Internet.
I used the TCP example programs Passive and Acitve VIs to test the connection. Two PCs communicated fine on port 828. But when trying to connect to SmartPhone, it does not work. Always an error "TCP open connection 10060".
Anybody tried similar setups with SmartPhones? Help PLZ. Thanks much.
05-14-2010 06:05 PM
05-27-2010 10:44 AM
Scott, it worked now after changing the IPs. Can you explain why the previous '169.xxxxxx' IPs did not work?
I thought IP was an address to a specific computer. As long as it is assigned, you should be able to find the computer with that IP. Apparently that's not correct.
05-28-2010 10:10 AM