byte count with NBS UDP receive

suibaf
2016-05-11
2021-06-01
  • suibaf - 2016-05-11

    Hi,
    UDP communication with raspberry pi2 work fine, but I need to count byte in input. There is szCount variable, but it remain to zero.
    Can I do something?
    BR

    IMG: Capture1.JPG

     
  • eschwellinger

    eschwellinger - 2016-05-12

    Hi,
    could you give this a try and
    and you need to wait till xReady = TRUE, after that data's are valid and szCount should be <> 0.

    BR
    Edwin

    IMG: sizeof.jpg

     
  • suibaf - 2016-05-13

    Hi,
    as you advice me I tried but the result is the same. No change.
    BR

    IMG: udp_rasp.jpg

     
  • suibaf - 2016-05-17

    Please,
    can you say me something?
    BR

     
  • suibaf - 2016-09-13

    Edwin, the time pass but the problem remain? Can you tell me somethink abut this problem?

     
  • eschwellinger

    eschwellinger - 2016-09-13

    Hi,
    Could you attach your project to check?
    BR
    Edwin

     
  • eschwellinger

    eschwellinger - 2016-09-16

    Hi,

    if you Change FB_UDP_RECEIVE.xDone to FB_UDP_RECEIVE.xReady in Network 4 it should work

    BR
    Edwin

    IMG: xReady.jpg

     
  • suibaf - 2016-09-22

    It work Edwin.
    Thank you!

     
  • ph0010421 - 2021-06-01

    An old thread, but I've just found this is the same for the TCP_Read aswell.
    Paul

     

Log in to post a comment.