Announcement

Collapse
No announcement yet.

ltrx_ip_socket_can_send() always returns 0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ltrx_ip_socket_can_send() always returns 0

    I'm working on a custom module on the xPico 250 evaluation module. I'm trying to add the capablity to send data via UDP. A user configures the desired UDP remote address and port, and the task will automatically send data periodically. I've tried opening the port with either

    ti->socket = ltrx_udp_socket_open_with_options(&options);

    or

    ti->socket = ltrx_udp_socket_open(NETS_ETHERNET_START, 10001);

    and then I sending data with ltrx_udp_socket_send();

    I wan't seeing any data, so to debug a little further, I checked the info returned by ltrx_ip_socket_get_local_information. This looks correct. I also checked the Lantronix Diagnostics page and looked at "IP Sockets". I don't see one there that corresponds to the port numbers I selected in my code (local or remote). Finally, I checked the result of ltrx_ip_socket_can_send() and it's always zero.

    What am I doing wrong? I've chosen to use ltrx_udp_socket_send becuase the remote IP address and remote port can be changed at any time by the user.

    Thanks,
    Jason

Working...
X