LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File transfer using UDP

I am trying to send the entire file in one UDP write.

0 Kudos
Message 11 of 22
(2,609 Views)

hi,

     you can use check(CRC-16 or CRC-32) verification mehode.and set port number both side same.

0 Kudos
Message 12 of 22
(2,606 Views)

Hi,

 

I have tried sending a text file but the last packets are missing.

 

I am attaching my code here.. Please go through it once.

 

Thanks, 

Hima

Download All
0 Kudos
Message 13 of 22
(2,601 Views)

Crosspost

 

Honestly not sure which thread has more discussion.

0 Kudos
Message 14 of 22
(2,585 Views)

@Hooovahh wrote:

Crosspost

 

Honestly not sure which thread has more discussion.


Especially since they are the same thread, just a new page...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 15 of 22
(2,569 Views)

See most of the time when I see a crosspost, one forum will have lots of discussions and replies, and the other has none, so I'll just point the thread with none to the one that is getting the attention.  But in this case I didn't catch it soon enough so both can be pointed to both, and you guys can figure out where you want to help.

0 Kudos
Message 16 of 22
(2,561 Views)

No.  It is actually all in one thread now.

 

Perhaps someone merged the two threads together into a single one, this one.

0 Kudos
Message 17 of 22
(2,553 Views)

What James has been telling you is correct.

 

The limit you are sieeing is due to the UDP protocol limitations. Datagrams were intended to be short and sweet and delivery was never gurenteed.

 

But you can CAN develop your own protocol that rides on top of UDP if you are determined. To that end, rather than re-invent the wheel, look into how TCP and IP work together to transfer larger messages.

 

UDP already has checksum built in so when a packet is recieved you can be sure it is intact.

 

You will have to break up the data file into small enough chunks to be transfered via Datagrams. You will also have to implement some sequencing logic so that recieving end can put the packets back together in the correct order because you could encounter a situation where one of many packets gets dropped and the reciever has to know which packet was dropped so it can request a resend of that packet. You should also "Ack" the packets that did get through so the sended side can check those off as done.

 

In a nutshell...

 

It can be done and all you have to do is recreate TCP/IP.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 18 of 22
(2,548 Views)

@crossrulz wrote:

@Hooovahh wrote:

Crosspost

 

Honestly not sure which thread has more discussion.


Especially since they are the same thread, just a new page...


No, I think the problem here was Hooovahh meant to post a link to the LAVA discussion but instead linked to the NI forum one.

0 Kudos
Message 19 of 22
(2,526 Views)

@nathand wrote:

@crossrulz wrote:

@Hooovahh wrote:

Crosspost

 

Honestly not sure which thread has more discussion.


Especially since they are the same thread, just a new page...


No, I think the problem here was Hooovahh meant to post a link to the LAVA discussion but instead linked to the NI forum one.



@nathand wrote:

@crossrulz wrote:

@Hooovahh wrote:

Crosspost

 

Honestly not sure which thread has more discussion.


Especially since they are the same thread, just a new page...


No, I think the problem here was Hooovahh meant to post a link to the LAVA discussion but instead linked to the NI forum one.


Now that makes a lot more sense.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 22
(2,521 Views)