LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP on PDA

I decided to test the TCP/IP examples on my IPAQ running Pocket PC 2002.

The client program caused my PDA to hang !!! Any explanations ??

The server program runs fine for the first time, but if I start the program again, I get an error code:10048 (i.e. The specified address is already in use). How do I get around this? I am using a static IP address 192.168.10.10, with submask 255.255.255.0 and gateway to be 192.168.1.1
0 Kudos
Message 1 of 12
(5,711 Views)
Hello tsheikh,

Thank you for contacting National Instruments.

Make sure that you are opening and closing your connection with TCP Open/Close Connection Functions in both the client and server VIs. The connection may otherwise stay open after you finish running the server program, and when you run the server VI a second time, it will be unable to establish a new connection at the same address.

Another possible and more likely cause of your problem is your port assignments. The client VI and the server VI must both be assigned the same target port. In addition, you may be using a port that is already in use by the OS, etc. Port numbers generally have the following classifications:

0 - 1023
Well-known ports

1024 - 49151
Registered po
rts, including DSTP (3015). You should not arbitrarily pick ports from this range.

49152 - 65535
Private or dynamic ports.

Experiment with different ports within the first range.
The following KB article also provides some useful information that may alleviate your problem.

http://digital.ni.com/public.nsf/websearch/81AED2A624ABD47886256DCE00458B50?OpenDocument

I hope this helps! If you are still having problems or have further questions, let me know.

Matthew C
Applications Engineer
National Instruments
Message 2 of 12
(5,711 Views)
Thanks for the information,

However I am running each of these VIs independently. Hence at any particular time either the client is working or the server.

The main problem is that the client VI causes the OS to hang. I can neither switch on/off the PDA. Only a reset works. I can neither see the Front Panel of the VI. Any Solutions ?????

For the Server VI, I added another step to the closing sequence. This step uses the "Exit Labview" function. Since then it has not given any problems to me.
0 Kudos
Message 3 of 12
(5,711 Views)
Hi guys, I have a question: I need to create a PDA version of my software and here is the situation: It is a server client application which works over DSTP protocol for communication. But the labVIEW PDA module does not support DSTP protocol so: I must create a PDA client which reads data using TCP protocol. So to simplify, the scope here is: To create a TCP client who reads data from DSTP server!! Thanks,
0 Kudos
Message 4 of 12
(4,203 Views)

TinoMK,

 

What you are trying to do is not trivial and rather complex. To accomplish what you want to need to find out how the DSTP works and implement it using TCP/IP calls.

Eli S.
National Instruments
Applications Engineer
Message 5 of 12
(4,168 Views)

Hello Eli S,

 

I suppose that I should start working with winsock in order to implement manually TCP/IP communication with the DSTP server?

 

Any other ideas?

 

I have tried with basic TCP vi's but after succesfull opening of the connection I am receiving error 66 from TCP read data vi.

 

Thank you,

0 Kudos
Message 6 of 12
(4,146 Views)

Hi,

 

I am not sure how a DSTP server would be implemented but you should be able to do it with the TCP/IP VI's in LabVIEW. Error 66 usually means that the connection has been closed due to a timeout. I would check your communication and your code to make sure that you are establishing a proper connection.

Eli S.
National Instruments
Applications Engineer
Message 7 of 12
(4,112 Views)

Hello,

 

Here are the test vi's with DSTP server on localhost which broadcast waveform and the TCP client. If someone can give me ideas how to read from data from DSTP using TCP...

 

Thank you,

0 Kudos
Message 8 of 12
(4,046 Views)

Hi TinoMK,

 

I did some research but I was not able to find any documentation about how to implement DSTP with TCP/IP. I think this is a proprietary protocol and that's why there is no publish documentation. If you are not able to find how to do this, I would recommend you change your sever to transmit data through a different protocol such a pure TCP/IP or UDP.

Eli S.
National Instruments
Applications Engineer
Message 9 of 12
(4,024 Views)

 Hello,

 

What are the ports that I can use to communicate with TCP vi's on PDA? The client is on PDA and server is desktop labview vi which broadcast data.

 

How can I see what are the opened ports on Pocket PC emulator?

 

Thanks,

0 Kudos
Message 10 of 12
(3,942 Views)