LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA only receives UDP data when connected to PC; fails wirelessly

I have a UDP sender on PC, a receive program in PDA running Windows Mobile 5.0.

 

The wired thing is when I connect the PDA with PC through USB cable, receiver program in PDA works fine; but when disconnected, receiver program does not read UDP data any more. 

 

20359iB67835D022CF5A95

 

 

20357i06FA418C645D5D50

0 Kudos
Message 1 of 9
(3,539 Views)

Might you post a list of the values of your controls or a screen shot of the fully configured front panel? It might help illustrate what's going on.

Verne D. // Software R&D // National Instruments
0 Kudos
Message 2 of 9
(3,510 Views)

Here is the Sender program, everytime it runs, it broadcasts a 'T' or 'F' to all addresses. 

 

20491iBD8BD34AC48936F7

 

Here is the receiver program. It is constantly running reading the broadcast message. When PDA is connected to PC, it receives fine; when it disconnects, it does not receive any thing. 

 

20493i45A697DD60160C12

0 Kudos
Message 3 of 9
(3,503 Views)

Are you getting any errors when this happens or does the program hang? If you are, what errors appear?

Verne D. // Software R&D // National Instruments
0 Kudos
Message 4 of 9
(3,489 Views)

Nope, there is no error at all. When PDA is disconnected from PC, the program simply receives nothing without error. I checked the IP settings, it says the submask net is 255.255.255.0, and the assigned IP is 192.168.1.4.

0 Kudos
Message 5 of 9
(3,487 Views)

Can you verify that the wireless card works when the PDA is not bus powered by the USB through some other means, maybe an internet browser or other equivalent. I'm worried that there are two power modes and one does not keep your network components working properly.

Verne D. // Software R&D // National Instruments
0 Kudos
Message 6 of 9
(3,476 Views)

The wireless part physically works fine, because I can communicate with PC through TCP, and can browse internet too. It's just UDP functions that don't receive. 

 

If the LabVIEW code has nothing wrong, do I need to set up the PDA somehow to receive UDP messages? If TCP works fine, what's the difference between TCP and UDP?

0 Kudos
Message 7 of 9
(3,472 Views)

I'm not sure. What does the device manufacturer say about UDP communication on the device?

Verne D. // Software R&D // National Instruments
0 Kudos
Message 8 of 9
(3,468 Views)

Also, TCP and UDP are pretty similar protocols, but there are some details that are not conserved. Google em up and you should find some decent material like this.

Verne D. // Software R&D // National Instruments
0 Kudos
Message 9 of 9
(3,457 Views)